@heartlandone/vega 2.77.1 → 2.78.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 (374) hide show
  1. package/dist/cjs/{app-globals-1021e33e.js → app-globals-55e26945.js} +6 -6
  2. package/dist/cjs/{breakpoints-751d433a.js → breakpoints-a8ff22f0.js} +1 -1
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-cc6d2919.js → child-nodes-event-prevent-slimmer-dd0bb8b6.js} +1 -1
  4. package/dist/cjs/{code-block-f9b86a25.js → code-block-1a5fafed.js} +2 -2
  5. package/dist/cjs/{component-value-history-controller-slimmer.abstract-6bcff70b.js → component-value-history-controller-slimmer.abstract-42683f23.js} +4 -4
  6. package/dist/cjs/{date-required-rule-d3c2d088.js → date-required-rule-ad536cb5.js} +1 -1
  7. package/dist/cjs/{design-token-b21879b6.js → design-token-45ebd5e4.js} +3 -3
  8. package/dist/cjs/{dto-renderer-manager-e2823eb8.js → dto-renderer-manager-7557d562.js} +3 -3
  9. package/dist/cjs/{element-appender-slimmer-40d39bba.js → element-appender-slimmer-16ec8591.js} +5 -5
  10. package/dist/cjs/{event-emit-slimmer-062cdcb8.js → event-emit-slimmer-c84121c8.js} +1 -1
  11. package/dist/cjs/{form-field-controller-slimmer-1b3a1388.js → form-field-controller-slimmer-73f5849e.js} +4 -4
  12. package/dist/cjs/{image-annotation-action-b83283d4.js → image-annotation-action-f275863e.js} +3 -3
  13. package/dist/cjs/index.cjs.js +18 -18
  14. package/dist/cjs/{inject-keyboard-manager-ea5c598e.js → inject-keyboard-manager-6667c0f1.js} +1 -1
  15. package/dist/cjs/{internal-translation-controller-1f84ab0a.js → internal-translation-controller-24df468f.js} +1 -0
  16. package/dist/cjs/{internal-vega-event-manager-f7ecf3d4.js → internal-vega-event-manager-cc0f511c.js} +2 -2
  17. package/dist/cjs/{keyboard-manager-16494c34.js → keyboard-manager-7de7ecfd.js} +1 -1
  18. package/dist/cjs/{keyboard-manager-slimmer-5b8fa209.js → keyboard-manager-slimmer-b44f0dc9.js} +1 -1
  19. package/dist/cjs/loader.cjs.js +13 -13
  20. package/dist/cjs/{month-view-generator-1a57578d.js → month-view-generator-36c42772.js} +1 -1
  21. package/dist/cjs/{page-resize-observer-slimmer-7f065ee1.js → page-resize-observer-slimmer-e050cd26.js} +1 -1
  22. package/dist/cjs/{public-rules-5bd1624d.js → public-rules-6c6cb4ac.js} +9 -9
  23. package/dist/cjs/{range-7a038973.js → range-e298d4aa.js} +1 -1
  24. package/dist/cjs/{responsive-format-facade-0b65ce4a.js → responsive-format-facade-bddac47c.js} +3 -3
  25. package/dist/cjs/{rich-text-editor-required-rule-d984c0b6.js → rich-text-editor-required-rule-6346a888.js} +1 -1
  26. package/dist/cjs/{string-format-strategy.abstract-714bfad2.js → string-format-strategy.abstract-814d66c4.js} +1 -1
  27. package/dist/cjs/{string-input-formatter-slimmer-9ef2ec7a.js → string-input-formatter-slimmer-749e3cfe.js} +3 -3
  28. package/dist/cjs/{string-mask-strategy-bd2c18df.js → string-mask-strategy-d00871c2.js} +2 -2
  29. package/dist/cjs/{style-formatter-7a4e9811.js → style-formatter-94c1a1ff.js} +2 -2
  30. package/dist/cjs/{sub-state-notify-slimmer-58121111.js → sub-state-notify-slimmer-ac1dae32.js} +1 -1
  31. package/dist/cjs/{sub-state-observer-slimmer-1dfbc4c3.js → sub-state-observer-slimmer-e692d849.js} +1 -1
  32. package/dist/cjs/{time-required-rule-50784b9f.js → time-required-rule-f1f3c8c2.js} +1 -1
  33. package/dist/cjs/{token-extension-5a1c473e.js → token-extension-1e98ddf3.js} +7 -7
  34. package/dist/cjs/{translation-slimmer-2c207e34.js → translation-slimmer-3fa03d81.js} +1 -1
  35. package/dist/cjs/{type-guard-cd0376d4.js → type-guard-a0d9ff1f.js} +2 -2
  36. package/dist/cjs/{ui-32e69595.js → ui-024696c0.js} +8 -1
  37. package/dist/cjs/{valid-credit-card-number-rule-3f8dc897.js → valid-credit-card-number-rule-cba7d66a.js} +1 -1
  38. package/dist/cjs/vega-accordion.cjs.entry.js +9 -9
  39. package/dist/cjs/vega-app-header-button.cjs.entry.js +11 -11
  40. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  41. package/dist/cjs/vega-box.cjs.entry.js +8 -8
  42. package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
  43. package/dist/cjs/vega-button-circle.cjs.entry.js +11 -11
  44. package/dist/cjs/vega-button-group_2.cjs.entry.js +7 -7
  45. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-button.cjs.entry.js +11 -11
  47. package/dist/cjs/vega-calendar_4.cjs.entry.js +14 -14
  48. package/dist/cjs/vega-card.cjs.entry.js +6 -6
  49. package/dist/cjs/vega-carousel.cjs.entry.js +9 -9
  50. package/dist/cjs/vega-checkbox_2.cjs.entry.js +11 -11
  51. package/dist/cjs/vega-chip.cjs.entry.js +11 -11
  52. package/dist/cjs/vega-code-block.cjs.entry.js +16 -15
  53. package/dist/cjs/vega-color-picker.cjs.entry.js +10 -10
  54. package/dist/cjs/vega-combo-box.cjs.entry.js +14 -14
  55. package/dist/cjs/vega-date-picker_2.cjs.entry.js +23 -23
  56. package/dist/cjs/vega-dialog_2.cjs.entry.js +11 -11
  57. package/dist/cjs/vega-divider.cjs.entry.js +7 -7
  58. package/dist/cjs/vega-dropdown_5.cjs.entry.js +17 -17
  59. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  60. package/dist/cjs/{vega-event-id-ee01d8dd.js → vega-event-id-c08ce3d3.js} +2 -0
  61. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  62. package/dist/cjs/vega-file-uploader.cjs.entry.js +11 -11
  63. package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -6
  64. package/dist/cjs/vega-flex.cjs.entry.js +9 -9
  65. package/dist/cjs/vega-font.cjs.entry.js +7 -7
  66. package/dist/cjs/vega-form.cjs.entry.js +13 -13
  67. package/dist/cjs/vega-grid.cjs.entry.js +6 -6
  68. package/dist/cjs/vega-icon.cjs.entry.js +6 -6
  69. package/dist/cjs/vega-image-uploader.cjs.entry.js +14 -14
  70. package/dist/cjs/vega-input-credit-card.cjs.entry.js +16 -16
  71. package/dist/cjs/vega-input-numeric.cjs.entry.js +102 -42
  72. package/dist/cjs/vega-input-passcode.cjs.entry.js +77 -34
  73. package/dist/cjs/vega-input-phone-number.cjs.entry.js +91 -41
  74. package/dist/cjs/vega-input-range.cjs.entry.js +27 -12
  75. package/dist/cjs/vega-input-select.cjs.entry.js +17 -17
  76. package/dist/cjs/vega-input.cjs.entry.js +201 -69
  77. package/dist/cjs/{vega-internal-event-id-f2465f1b.js → vega-internal-event-id-e0aeac45.js} +2 -0
  78. package/dist/cjs/vega-item-toggle.cjs.entry.js +4 -4
  79. package/dist/cjs/vega-left-nav_5.cjs.entry.js +13 -13
  80. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
  81. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  82. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +4 -4
  83. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +4 -4
  84. package/dist/cjs/vega-pagination.cjs.entry.js +12 -12
  85. package/dist/cjs/vega-popover_2.cjs.entry.js +14 -14
  86. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +12 -12
  87. package/dist/cjs/vega-radio_2.cjs.entry.js +14 -14
  88. package/dist/cjs/vega-rich-text-content.cjs.entry.js +10 -10
  89. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +474 -379
  90. package/dist/cjs/vega-segment-control.cjs.entry.js +6 -6
  91. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +14 -14
  92. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +12 -12
  93. package/dist/cjs/vega-sidenav_3.cjs.entry.js +12 -12
  94. package/dist/cjs/vega-signature-capture.cjs.entry.js +14 -14
  95. package/dist/cjs/vega-stepper.cjs.entry.js +12 -12
  96. package/dist/cjs/vega-tab-group_2.cjs.entry.js +7 -7
  97. package/dist/cjs/vega-table_11.cjs.entry.js +14 -14
  98. package/dist/cjs/vega-text.cjs.entry.js +3 -3
  99. package/dist/cjs/vega-textarea.cjs.entry.js +110 -42
  100. package/dist/cjs/vega-time-picker_2.cjs.entry.js +18 -18
  101. package/dist/cjs/vega-toggle-switch.cjs.entry.js +10 -10
  102. package/dist/cjs/vega-tooltip_2.cjs.entry.js +10 -10
  103. package/dist/cjs/vega.cjs.js +13 -13
  104. package/dist/cjs/{wait-for-component-did-render-70a01bf9.js → wait-for-component-did-render-cbebfc33.js} +1 -1
  105. package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +1 -1
  106. package/dist/collection/components/vega-code-block/slimmers/renderers/vega-code-block-content-renderer.js +4 -0
  107. package/dist/collection/components/vega-flex/vega-flex.css +32 -0
  108. package/dist/collection/components/vega-flex/vega-flex.js +1 -1
  109. package/dist/collection/components/vega-grid/vega-grid.js +2 -2
  110. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +1 -1
  111. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-prefix-slot-renderer.js +1 -1
  112. package/dist/collection/components/vega-input/vega-input.js +358 -100
  113. package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +1 -1
  114. package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +175 -49
  115. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +123 -35
  116. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +145 -56
  117. package/dist/collection/components/vega-input-range/slimmers/renderers/vega-input-range-input-renderer.js +15 -0
  118. package/dist/collection/components/vega-input-select/vega-input-select.js +6 -5
  119. package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +1 -1
  120. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +2 -2
  121. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +4 -17
  122. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.js +102 -0
  123. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +49 -1
  124. package/dist/collection/components/vega-stepper/vega-stepper.js +1 -1
  125. package/dist/collection/components/vega-textarea/vega-textarea.js +183 -52
  126. package/dist/collection/constants/ui.js +9 -1
  127. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -2
  128. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
  129. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  130. package/dist/collection/helpers/translation/locales/en.js +1 -0
  131. package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +2 -0
  132. package/dist/collection/helpers/translation/tests/translation.test.js +14 -0
  133. package/dist/esm/{app-globals-0b3b7111.js → app-globals-3b97bb20.js} +6 -6
  134. package/dist/esm/{breakpoints-56e5407b.js → breakpoints-13353e09.js} +1 -1
  135. package/dist/esm/{child-nodes-event-prevent-slimmer-331312b8.js → child-nodes-event-prevent-slimmer-4feabae0.js} +1 -1
  136. package/dist/esm/{code-block-2408a812.js → code-block-d65bab61.js} +2 -2
  137. package/dist/esm/{component-value-history-controller-slimmer.abstract-ac40820f.js → component-value-history-controller-slimmer.abstract-556fcf2a.js} +4 -4
  138. package/dist/esm/{date-required-rule-09d5aa16.js → date-required-rule-4ffd9cae.js} +1 -1
  139. package/dist/esm/{design-token-7dec1eab.js → design-token-b518a2aa.js} +3 -3
  140. package/dist/esm/{dto-renderer-manager-d413de1e.js → dto-renderer-manager-73df5cbe.js} +3 -3
  141. package/dist/esm/{element-appender-slimmer-5d573612.js → element-appender-slimmer-36b7a572.js} +5 -5
  142. package/dist/esm/{event-emit-slimmer-ffaecb9a.js → event-emit-slimmer-f879fd58.js} +1 -1
  143. package/dist/esm/{form-field-controller-slimmer-e1a5a884.js → form-field-controller-slimmer-9a880420.js} +4 -4
  144. package/dist/esm/{image-annotation-action-54936eaa.js → image-annotation-action-eb3dcad5.js} +3 -3
  145. package/dist/esm/index.js +18 -18
  146. package/dist/esm/{inject-keyboard-manager-9339bba8.js → inject-keyboard-manager-e5481833.js} +1 -1
  147. package/dist/esm/{internal-translation-controller-113a6288.js → internal-translation-controller-0787a7a7.js} +1 -0
  148. package/dist/esm/{internal-vega-event-manager-32a3d848.js → internal-vega-event-manager-3aebbe55.js} +2 -2
  149. package/dist/esm/{keyboard-manager-f9bfa678.js → keyboard-manager-4dfc625f.js} +1 -1
  150. package/dist/esm/{keyboard-manager-slimmer-c8898843.js → keyboard-manager-slimmer-87bf68f1.js} +1 -1
  151. package/dist/esm/loader.js +13 -13
  152. package/dist/esm/{month-view-generator-160a9feb.js → month-view-generator-94134ec5.js} +1 -1
  153. package/dist/esm/{page-resize-observer-slimmer-d6af0d86.js → page-resize-observer-slimmer-e0505250.js} +1 -1
  154. package/dist/esm/{public-rules-41561e6e.js → public-rules-49912d52.js} +9 -9
  155. package/dist/esm/{range-a5d78e69.js → range-0a22b512.js} +1 -1
  156. package/dist/esm/{responsive-format-facade-2a36c54a.js → responsive-format-facade-b3799ff9.js} +3 -3
  157. package/dist/esm/{rich-text-editor-required-rule-b09039da.js → rich-text-editor-required-rule-d86e3a51.js} +1 -1
  158. package/dist/esm/{string-format-strategy.abstract-944f759b.js → string-format-strategy.abstract-e40a0df7.js} +1 -1
  159. package/dist/esm/{string-input-formatter-slimmer-2508d88b.js → string-input-formatter-slimmer-076764fc.js} +3 -3
  160. package/dist/esm/{string-mask-strategy-f9e252a2.js → string-mask-strategy-df1f5707.js} +2 -2
  161. package/dist/esm/{style-formatter-6db1e890.js → style-formatter-95255392.js} +2 -2
  162. package/dist/esm/{sub-state-notify-slimmer-5133f1a8.js → sub-state-notify-slimmer-f4b3b0b9.js} +1 -1
  163. package/dist/esm/{sub-state-observer-slimmer-478c9f41.js → sub-state-observer-slimmer-058feaf0.js} +1 -1
  164. package/dist/esm/{time-required-rule-c7cfb257.js → time-required-rule-b4af75ae.js} +1 -1
  165. package/dist/esm/{token-extension-25df8dbb.js → token-extension-ffd98170.js} +7 -7
  166. package/dist/esm/{translation-slimmer-9f0339aa.js → translation-slimmer-e788cae4.js} +1 -1
  167. package/dist/esm/{type-guard-af324dcd.js → type-guard-f69d2935.js} +2 -2
  168. package/dist/esm/{ui-28fd4193.js → ui-41f725b7.js} +8 -1
  169. package/dist/esm/{valid-credit-card-number-rule-099dba7d.js → valid-credit-card-number-rule-c023326d.js} +1 -1
  170. package/dist/esm/vega-accordion.entry.js +9 -9
  171. package/dist/esm/vega-app-header-button.entry.js +11 -11
  172. package/dist/esm/vega-banner.entry.js +3 -3
  173. package/dist/esm/vega-box.entry.js +8 -8
  174. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  175. package/dist/esm/vega-button-circle.entry.js +11 -11
  176. package/dist/esm/vega-button-group_2.entry.js +7 -7
  177. package/dist/esm/vega-button-link.entry.js +4 -4
  178. package/dist/esm/vega-button.entry.js +11 -11
  179. package/dist/esm/vega-calendar_4.entry.js +14 -14
  180. package/dist/esm/vega-card.entry.js +6 -6
  181. package/dist/esm/vega-carousel.entry.js +9 -9
  182. package/dist/esm/vega-checkbox_2.entry.js +11 -11
  183. package/dist/esm/vega-chip.entry.js +11 -11
  184. package/dist/esm/vega-code-block.entry.js +16 -15
  185. package/dist/esm/vega-color-picker.entry.js +10 -10
  186. package/dist/esm/vega-combo-box.entry.js +14 -14
  187. package/dist/esm/vega-date-picker_2.entry.js +23 -23
  188. package/dist/esm/vega-dialog_2.entry.js +11 -11
  189. package/dist/esm/vega-divider.entry.js +7 -7
  190. package/dist/esm/vega-dropdown_5.entry.js +17 -17
  191. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  192. package/dist/esm/{vega-event-id-38aa77a0.js → vega-event-id-fdc58a67.js} +2 -1
  193. package/dist/esm/vega-field-label.entry.js +3 -3
  194. package/dist/esm/vega-file-uploader.entry.js +11 -11
  195. package/dist/esm/vega-flag-icon.entry.js +6 -6
  196. package/dist/esm/vega-flex.entry.js +9 -9
  197. package/dist/esm/vega-font.entry.js +7 -7
  198. package/dist/esm/vega-form.entry.js +13 -13
  199. package/dist/esm/vega-grid.entry.js +6 -6
  200. package/dist/esm/vega-icon.entry.js +6 -6
  201. package/dist/esm/vega-image-uploader.entry.js +14 -14
  202. package/dist/esm/vega-input-credit-card.entry.js +16 -16
  203. package/dist/esm/vega-input-numeric.entry.js +102 -42
  204. package/dist/esm/vega-input-passcode.entry.js +77 -34
  205. package/dist/esm/vega-input-phone-number.entry.js +91 -41
  206. package/dist/esm/vega-input-range.entry.js +27 -12
  207. package/dist/esm/vega-input-select.entry.js +17 -17
  208. package/dist/esm/vega-input.entry.js +201 -69
  209. package/dist/esm/{vega-internal-event-id-799d012e.js → vega-internal-event-id-12783594.js} +2 -1
  210. package/dist/esm/vega-item-toggle.entry.js +4 -4
  211. package/dist/esm/vega-left-nav_5.entry.js +13 -13
  212. package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
  213. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  214. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
  215. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +4 -4
  216. package/dist/esm/vega-pagination.entry.js +12 -12
  217. package/dist/esm/vega-popover_2.entry.js +14 -14
  218. package/dist/esm/vega-progress-tracker_2.entry.js +12 -12
  219. package/dist/esm/vega-radio_2.entry.js +14 -14
  220. package/dist/esm/vega-rich-text-content.entry.js +10 -10
  221. package/dist/esm/vega-rich-text-editor_4.entry.js +474 -379
  222. package/dist/esm/vega-segment-control.entry.js +6 -6
  223. package/dist/esm/vega-selection-chip_2.entry.js +14 -14
  224. package/dist/esm/vega-selection-tile_2.entry.js +12 -12
  225. package/dist/esm/vega-sidenav_3.entry.js +12 -12
  226. package/dist/esm/vega-signature-capture.entry.js +14 -14
  227. package/dist/esm/vega-stepper.entry.js +12 -12
  228. package/dist/esm/vega-tab-group_2.entry.js +7 -7
  229. package/dist/esm/vega-table_11.entry.js +14 -14
  230. package/dist/esm/vega-text.entry.js +3 -3
  231. package/dist/esm/vega-textarea.entry.js +110 -42
  232. package/dist/esm/vega-time-picker_2.entry.js +18 -18
  233. package/dist/esm/vega-toggle-switch.entry.js +10 -10
  234. package/dist/esm/vega-tooltip_2.entry.js +10 -10
  235. package/dist/esm/vega.js +13 -13
  236. package/dist/esm/{wait-for-component-did-render-b08ef07b.js → wait-for-component-did-render-4d0a3428.js} +1 -1
  237. package/dist/sri/vega-sri-manifest.json +345 -345
  238. package/dist/types/components/vega-input/vega-input.d.ts +317 -79
  239. package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +117 -42
  240. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +82 -28
  241. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +99 -34
  242. package/dist/types/components/vega-input-range/slimmers/renderers/vega-input-range-input-renderer.d.ts +8 -0
  243. package/dist/types/components/vega-input-select/vega-input-select.d.ts +2 -2
  244. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.d.ts +1 -1
  245. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +1 -3
  246. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.d.ts +37 -0
  247. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +16 -0
  248. package/dist/types/components/vega-textarea/vega-textarea.d.ts +123 -41
  249. package/dist/types/components.d.ts +418 -218
  250. package/dist/types/constants/ui.d.ts +2 -2
  251. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
  252. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  253. package/dist/types/helpers/translation/interface.d.ts +2 -1
  254. package/dist/types/types/type-guard.d.ts +3 -3
  255. package/dist/vega/index.esm.js +1 -1
  256. package/dist/vega/p-0009e0bc.entry.js +1 -0
  257. package/dist/vega/{p-1a9b361b.js → p-02976501.js} +1 -1
  258. package/dist/vega/{p-bf6fc19f.entry.js → p-03280f85.entry.js} +1 -1
  259. package/dist/vega/{p-a79fdf2f.js → p-03b1e442.js} +1 -1
  260. package/dist/vega/{p-33f9ad94.entry.js → p-0681ffee.entry.js} +1 -1
  261. package/dist/vega/{p-e4c99b72.entry.js → p-093aa0cb.entry.js} +1 -1
  262. package/dist/vega/{p-3b9fc697.entry.js → p-1828f9e6.entry.js} +1 -1
  263. package/dist/vega/{p-d70e1b75.entry.js → p-19883e27.entry.js} +1 -1
  264. package/dist/vega/p-1e015382.js +1 -0
  265. package/dist/vega/{p-eab9d999.entry.js → p-1ff45314.entry.js} +1 -1
  266. package/dist/vega/{p-9a3a5b9e.js → p-24b4c64f.js} +1 -1
  267. package/dist/vega/{p-c7a9960f.entry.js → p-2e7ec8e0.entry.js} +1 -1
  268. package/dist/vega/{p-0ac9a732.entry.js → p-309b5016.entry.js} +1 -1
  269. package/dist/vega/{p-c871619c.entry.js → p-3592a26d.entry.js} +1 -1
  270. package/dist/vega/{p-b35bb4a2.entry.js → p-383e235a.entry.js} +1 -1
  271. package/dist/vega/p-3992038a.js +1 -0
  272. package/dist/vega/{p-02c9796a.js → p-3a537cd0.js} +1 -1
  273. package/dist/vega/{p-e0fb1f60.entry.js → p-3b7ad04b.entry.js} +1 -1
  274. package/dist/vega/{p-d0975995.entry.js → p-3d4b8066.entry.js} +1 -1
  275. package/dist/vega/{p-7d7aaff9.entry.js → p-3e484d99.entry.js} +1 -1
  276. package/dist/vega/{p-70444f6f.entry.js → p-3fd3861c.entry.js} +1 -1
  277. package/dist/vega/{p-600f7d6c.js → p-4079e932.js} +1 -1
  278. package/dist/vega/{p-5eb7f382.js → p-43df17a1.js} +1 -1
  279. package/dist/vega/{p-e1c017d1.entry.js → p-473ceda5.entry.js} +1 -1
  280. package/dist/vega/{p-ffb3e479.entry.js → p-474b97cf.entry.js} +1 -1
  281. package/dist/vega/{p-242fbcad.entry.js → p-47c202eb.entry.js} +1 -1
  282. package/dist/vega/p-4e0344bc.entry.js +1 -0
  283. package/dist/vega/{p-ed9ad4fd.entry.js → p-4efe9cd8.entry.js} +1 -1
  284. package/dist/vega/{p-36a09524.entry.js → p-536ad3d7.entry.js} +1 -1
  285. package/dist/vega/{p-3237be8b.entry.js → p-53e0b2bd.entry.js} +1 -1
  286. package/dist/vega/p-57180993.entry.js +1 -0
  287. package/dist/vega/{p-e827d56d.js → p-5b238c6d.js} +1 -1
  288. package/dist/vega/p-5ba34330.js +1 -0
  289. package/dist/vega/{p-acbb96b3.entry.js → p-5e1d0f21.entry.js} +1 -1
  290. package/dist/vega/{p-cf6bfac7.js → p-5ed5aa26.js} +1 -1
  291. package/dist/vega/p-5f377954.js +1 -1
  292. package/dist/vega/{p-d64fab3d.js → p-5f81beae.js} +1 -1
  293. package/dist/vega/{p-ef603656.entry.js → p-6a8ac66d.entry.js} +1 -1
  294. package/dist/vega/{p-051bbce6.js → p-6b3776ec.js} +1 -1
  295. package/dist/vega/{p-aaf9b39f.entry.js → p-6b4021f0.entry.js} +1 -1
  296. package/dist/vega/{p-4f146dae.js → p-6cf28c27.js} +1 -1
  297. package/dist/vega/{p-0037068c.entry.js → p-71cd1d9e.entry.js} +1 -1
  298. package/dist/vega/{p-ddce3e0e.entry.js → p-7440325c.entry.js} +1 -1
  299. package/dist/vega/p-764425e4.entry.js +1 -0
  300. package/dist/vega/{p-ff287001.entry.js → p-77908e45.entry.js} +1 -1
  301. package/dist/vega/{p-4c060ba9.js → p-7ade785e.js} +1 -1
  302. package/dist/vega/{p-c857e6e2.js → p-7db5e003.js} +1 -1
  303. package/dist/vega/{p-021d4ae4.js → p-7db918f4.js} +1 -1
  304. package/dist/vega/{p-ea96b0f9.entry.js → p-7f398d23.entry.js} +1 -1
  305. package/dist/vega/{p-1ccba615.entry.js → p-7f665911.entry.js} +1 -1
  306. package/dist/vega/{p-9466619f.entry.js → p-840f156e.entry.js} +1 -1
  307. package/dist/vega/{p-a17312a6.js → p-87379d3c.js} +1 -1
  308. package/dist/vega/{p-638d30a5.entry.js → p-87ed06cd.entry.js} +1 -1
  309. package/dist/vega/{p-fc049028.js → p-882a220c.js} +1 -1
  310. package/dist/vega/p-898bcb24.js +1 -0
  311. package/dist/vega/{p-d07f5d5a.entry.js → p-8fbb677e.entry.js} +1 -1
  312. package/dist/vega/p-9493d87a.js +1 -0
  313. package/dist/vega/{p-c7b9b7c2.js → p-951c0172.js} +1 -1
  314. package/dist/vega/p-95919581.entry.js +1 -0
  315. package/dist/vega/{p-7c39ce96.js → p-95d1b547.js} +1 -1
  316. package/dist/vega/{p-c086529c.entry.js → p-99c8f9a4.entry.js} +1 -1
  317. package/dist/vega/{p-7127f966.js → p-9c713bc0.js} +1 -1
  318. package/dist/vega/{p-da0fd3dc.entry.js → p-9dc77b66.entry.js} +1 -1
  319. package/dist/vega/{p-4d7d5583.js → p-9f467a59.js} +1 -1
  320. package/dist/vega/p-a113fd15.entry.js +1 -0
  321. package/dist/vega/{p-a0e69236.entry.js → p-a253e791.entry.js} +1 -1
  322. package/dist/vega/{p-4d4bf82a.entry.js → p-a3272850.entry.js} +1 -1
  323. package/dist/vega/{p-27b0af38.entry.js → p-a432708d.entry.js} +1 -1
  324. package/dist/vega/p-a57a7ab8.entry.js +1 -0
  325. package/dist/vega/{p-f65cb0b6.entry.js → p-a58bd510.entry.js} +1 -1
  326. package/dist/vega/{p-6188e783.js → p-a957e15f.js} +1 -1
  327. package/dist/vega/{p-38e850c3.js → p-abb81b7b.js} +1 -1
  328. package/dist/vega/{p-67b0ccdc.entry.js → p-ae6ed091.entry.js} +1 -1
  329. package/dist/vega/{p-2c2193f2.entry.js → p-b5e31243.entry.js} +1 -1
  330. package/dist/vega/{p-718c74ba.js → p-b88ca09b.js} +1 -1
  331. package/dist/vega/{p-a800bf6d.js → p-b901d624.js} +1 -1
  332. package/dist/vega/p-ba475520.entry.js +1 -0
  333. package/dist/vega/{p-ffd080db.js → p-bf04ff19.js} +1 -1
  334. package/dist/vega/{p-1a51bf6f.js → p-c208a3b7.js} +1 -1
  335. package/dist/vega/{p-c61bcd92.entry.js → p-c25577ae.entry.js} +1 -1
  336. package/dist/vega/{p-cbeb47be.entry.js → p-c2560608.entry.js} +1 -1
  337. package/dist/vega/{p-10e51081.js → p-c2df94f6.js} +1 -1
  338. package/dist/vega/{p-9feaac4b.entry.js → p-c3eec160.entry.js} +1 -1
  339. package/dist/vega/{p-f5fcd13e.entry.js → p-c6031d3f.entry.js} +1 -1
  340. package/dist/vega/{p-da552ddf.entry.js → p-c87cf96a.entry.js} +1 -1
  341. package/dist/vega/{p-19270396.entry.js → p-cc243e62.entry.js} +1 -1
  342. package/dist/vega/{p-af2110fc.entry.js → p-cd3d177b.entry.js} +1 -1
  343. package/dist/vega/{p-be1a210b.js → p-d0687ec0.js} +1 -1
  344. package/dist/vega/{p-7cde8489.js → p-d25db724.js} +1 -1
  345. package/dist/vega/{p-dfb12762.js → p-d42dbe39.js} +1 -1
  346. package/dist/vega/{p-1033e4c4.entry.js → p-d5570331.entry.js} +1 -1
  347. package/dist/vega/p-d5797747.js +1 -0
  348. package/dist/vega/{p-9adfcd47.entry.js → p-d7434f44.entry.js} +1 -1
  349. package/dist/vega/p-db92453f.entry.js +1 -0
  350. package/dist/vega/{p-0a3a285b.entry.js → p-e5be807b.entry.js} +1 -1
  351. package/dist/vega/p-e6f0097f.js +1 -0
  352. package/dist/vega/{p-e8775a56.entry.js → p-e7a8b61e.entry.js} +1 -1
  353. package/dist/vega/{p-d2ee5711.entry.js → p-f46f6679.entry.js} +1 -1
  354. package/dist/vega/{p-41d14339.entry.js → p-f49e8cc5.entry.js} +1 -1
  355. package/dist/vega/{p-9863e7a1.entry.js → p-f5b6059d.entry.js} +1 -1
  356. package/dist/vega/{p-68846f0d.js → p-fb40a829.js} +1 -1
  357. package/dist/vega/vega.esm.js +1 -1
  358. package/package.json +3 -2
  359. package/dist/vega/p-15335b69.entry.js +0 -1
  360. package/dist/vega/p-22f3d35c.entry.js +0 -1
  361. package/dist/vega/p-23427f6a.entry.js +0 -1
  362. package/dist/vega/p-2466316a.js +0 -1
  363. package/dist/vega/p-40f39194.js +0 -1
  364. package/dist/vega/p-77167587.entry.js +0 -1
  365. package/dist/vega/p-78ecfea0.entry.js +0 -1
  366. package/dist/vega/p-999950d1.js +0 -1
  367. package/dist/vega/p-9e36f7ff.entry.js +0 -1
  368. package/dist/vega/p-9f9d9a53.entry.js +0 -1
  369. package/dist/vega/p-ab834f06.js +0 -1
  370. package/dist/vega/p-b7f3221f.js +0 -1
  371. package/dist/vega/p-b8c10187.js +0 -1
  372. package/dist/vega/p-d2fc470e.entry.js +0 -1
  373. package/dist/vega/p-e841c1fe.entry.js +0 -1
  374. package/dist/vega/p-faa9a3bd.js +0 -1
@@ -1 +1 @@
1
- import{h as e,H as t,F as i,r as a,c as n,g as r}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{D as s}from"./p-cf6bfac7.js";import{Z as d,Q as h,_ as l,$ as c,a0 as m,a1 as p,a2 as g,a3 as f}from"./p-4d7d5583.js";import{I as x}from"./p-abd7aeaa.js";import{c as v,V as w,L as u,M as y,I as b}from"./p-6e1ab235.js";import{V as _,I as C}from"./p-4415ad28.js";import{F as k}from"./p-fc049028.js";import{a as D,e as I,g as z,D as R}from"./p-6c170474.js";import{D as j,d as S}from"./p-31ac7386.js";import{a as M,q as O,p as P,o as E,N as V,d as L,f as A,V as T,r as Y,s as F}from"./p-d64fab3d.js";import{V as H}from"./p-e1fbfd20.js";import{c as $}from"./p-86194314.js";import{i as B}from"./p-d27ae9ff.js";import{V as N}from"./p-68846f0d.js";import{F as W}from"./p-18e8d9b7.js";import{t as K}from"./p-b75ee3ba.js";import{F as U}from"./p-a528714c.js";import{C as Z}from"./p-2d0d575f.js";import{S as G}from"./p-9a3a5b9e.js";import{S as q}from"./p-7cde8489.js";import{K as J}from"./p-10e51081.js";import{C as Q}from"./p-75b58efe.js";import{c as X}from"./p-02c9796a.js";import{C as ee}from"./p-1a51bf6f.js";import{T as te}from"./p-faa9a3bd.js";import{E as ie}from"./p-ffd080db.js";import{S as ae}from"./p-1fb56e14.js";import{C as ne}from"./p-8187878e.js";import{v as re,w as oe}from"./p-7c39ce96.js";import{O as se}from"./p-331a62d5.js";import{M as de}from"./p-4f146dae.js";import"./p-ed45b3b6.js";import"./p-40f39194.js";import"./p-d884c644.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-f0e828d8.js";import"./p-021d4ae4.js";import"./p-ab834f06.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-5eb7f382.js";import"./p-e6adf829.js";import"./p-593e0f80.js";import"./p-262ec334.js";import"./p-5a25014f.js";import"./p-c7b9b7c2.js";import"./p-be1a210b.js";import"./p-a17312a6.js";import"./p-b7f3221f.js";import"./p-5f377954.js";import"./p-781fd6e0.js";import"./p-600f7d6c.js";import"./p-0c667d6a.js";class he extends x{canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);const t=new Date(e[0]),i=new Date(e[1]),a=d(t,i);return{isValid:a,message:a?"":"The end date should be later than start date"}}isAcceptedInputType(e){return Array.isArray(e)&&2===e.length&&e.every(h)}}class le extends x{constructor(e){super(),this.evaluateSingleDate=e=>{const t=new Date(e);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.evaluateRangeDates=e=>{const t=new Date(e[0]),i=new Date(e[1]);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The start date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The start date should be earlier than {0}",args:[this.config.maxDate]}):i&&this.maxDate&&c(i,this.maxDate)?this.invalidResult({key:"The end date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.invalidResult=e=>({isValid:!1,message:e}),this.validResult=()=>({isValid:!0,message:""}),this.config=e,this.minDate=e.minDate?new Date(e.minDate):null,this.maxDate=e.maxDate?new Date(e.maxDate):null}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);return"string"==typeof e?this.evaluateSingleDate(e):this.evaluateRangeDates(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){return"string"==typeof e&&h(e)||Array.isArray(e)&&2===e.length&&e.every(h)}}const ce={"chevron-left":{icon:'<svg width="12" height="16" viewBox="0 0 12 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M1.2937 7.29414C0.903076 7.68477 0.903076 8.31914 1.2937 8.70977L7.2937 14.7098C7.68433 15.1004 8.3187 15.1004 8.70933 14.7098C9.09995 14.3191 9.09995 13.6848 8.70933 13.2941L3.41558 8.00039L8.7062 2.70664C9.09683 2.31602 9.09683 1.68164 8.7062 1.29102C8.31558 0.900391 7.6812 0.900391 7.29058 1.29102L1.29058 7.29102L1.2937 7.29414Z" fill="currentColor"/></svg>'},"chevron-right":{icon:'<svg width="12" height="16" viewBox="0 0 12 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M10.7063 7.29414C11.0969 7.68477 11.0969 8.31914 10.7063 8.70977L4.70627 14.7098C4.31565 15.1004 3.68127 15.1004 3.29065 14.7098C2.90002 14.3191 2.90002 13.6848 3.29065 13.2941L8.5844 8.00039L3.29377 2.70664C2.90315 2.31602 2.90315 1.68164 3.29377 1.29102C3.6844 0.900391 4.31877 0.900391 4.7094 1.29102L10.7094 7.29102L10.7063 7.29414Z" fill="currentColor"/></svg>'},calendar:{icon:'<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_41275_12898)"><path d="M5.75 2H10.25V0.75C10.25 0.335938 10.5844 0 11 0C11.4156 0 11.75 0.335938 11.75 0.75V2H13C14.1031 2 15 2.89531 15 4V14C15 15.1031 14.1031 16 13 16H3C1.89531 16 1 15.1031 1 14V4C1 2.89531 1.89531 2 3 2H4.25V0.75C4.25 0.335938 4.58437 0 5 0C5.41563 0 5.75 0.335938 5.75 0.75V2ZM2.5 7.75H5V6H2.5V7.75ZM2.5 9.25V11.25H5V9.25H2.5ZM6.5 9.25V11.25H9.5V9.25H6.5ZM11 9.25V11.25H13.5V9.25H11ZM13.5 6H11V7.75H13.5V6ZM13.5 12.75H11V14.5H13C13.275 14.5 13.5 14.275 13.5 14V12.75ZM9.5 12.75H6.5V14.5H9.5V12.75ZM5 12.75H2.5V14C2.5 14.275 2.72375 14.5 3 14.5H5V12.75ZM9.5 6H6.5V7.75H9.5V6Z" fill="currentColor"/></g><defs><clipPath id="clip0_41275_12898"><rect width="14" height="16" fill="white" transform="translate(1)"/></clipPath></defs></svg>'},"caret-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor">\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 d="M199 401c9.4 9.4 24.6 9.4 33.9 0L425 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L41 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L199 401z"/></svg>'},"bulls-eye":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">\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 d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM256 368a112 112 0 1 0 0-224 112 112 0 1 0 0 224zm0-272a160 160 0 1 1 0 320 160 160 0 1 1 0-320zm0 176a16 16 0 1 0 0-32 16 16 0 1 0 0 32zm0-80a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>'}};var me=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class pe extends w{constructor(){super(...arguments),this.renderInputPrefix=()=>e("div",{class:"vega-input-prefix"},e("vega-icon",{icon:H.getIconKey("calendar"),color:"text-secondary",onClick:async()=>{this.disabled||(await this.focusInput(),await this.vegaDatePickerCalendarRenderer.triggerRepick("start"))}})),this.isInputEnabled=()=>!this.readOnly&&!this.isMobileDevice,this.renderLabel=()=>this.label&&e("vega-field-label",{ref:e=>{j.addUniqueObserverToNode(e,M,(async()=>{await this.focusInput()}))},isFieldRequired:this.required,disabled:this.disabled,label:this.label}),this.focusInput=async()=>{var e,t;null===(e=this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef())||void 0===e||e.focus(),null===(t=this.vegaDatePickerRangeInputRenderer.getStartDateInputRef())||void 0===t||t.focus(),await this.calendarOpenStateController.showCalendar()}}getDatePickerContainer(){return this.datePickerContainer}render(){const i=["vega-input-container",this.size,`${this.mode}-mode`,this.isMobileDevice?"mobile":""];return e(t,{class:{disabled:this.disabled}},this.renderLabel(),e("div",{class:D(i),ref:e=>this.datePickerContainer=e},"range"===this.mode?this.vegaDatePickerRangeInputRenderer.render():this.vegaDatePickerSingleInputRenderer.render()),this.vegaDatePickerCalendarRenderer.render())}}H.register({calendar:ce.calendar}),me([v()],pe.prototype,"disabled",void 0),me([v()],pe.prototype,"size",void 0),me([v()],pe.prototype,"mode",void 0),me([v()],pe.prototype,"label",void 0),me([v()],pe.prototype,"required",void 0),me([v()],pe.prototype,"readOnly",void 0),me([v()],pe.prototype,"autoValidation",void 0),me([v()],pe.prototype,"host",void 0),me([v()],pe.prototype,"isMobileDevice",void 0),me([v()],pe.prototype,"vegaDatePickerSingleInputRenderer",void 0),me([v()],pe.prototype,"vegaDatePickerRangeInputRenderer",void 0),me([v()],pe.prototype,"vegaDatePickerCalendarRenderer",void 0),me([v()],pe.prototype,"calendarOpenStateController",void 0);var ge=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class fe extends w{constructor(){super(...arguments),this.onClickClearIcon=async()=>{this.vegaDatePickerValueController.setValue("range"===this.mode?["",""]:""),await this.calendarOpenStateController.hideCalendar()},this.isClearIconVisible=()=>{if("range"===this.mode){const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&!B(e,["",""])}{const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&Boolean(e.length)}}}renderClearIcon(){return e(i,null,this.showClearIcon&&this.isClearIconVisible()&&e("div",{class:"vega-input-clear-icon",tabIndex:-1,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:$()},e("vega-icon",{icon:"close"})))}}ge([v()],fe.prototype,"disabled",void 0),ge([v()],fe.prototype,"showClearIcon",void 0),ge([v()],fe.prototype,"mode",void 0),ge([v()],fe.prototype,"vegaDatePickerValueController",void 0),ge([v()],fe.prototype,"calendarOpenStateController",void 0);var xe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ve extends fe{constructor(){super(...arguments),this.render=()=>e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getSinglePlaceholder(),value:this.vegaDatePickerValueController.getValue(),ref:e=>this.singleDateInputRef=e,onChange:this.onSingleDateChange,disabled:this.disabled,onClick:()=>this.calendarOpenStateController.showCalendar()}),this.renderClearIcon()),this.getSinglePlaceholder=()=>this.placeholder?"string"!=typeof this.placeholder?(u.warn("The placeholder should be a string"),this.format):this.placeholder:this.format,this.onSingleDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue(this.vegaDatePickerFormatController.formatDate(t)):(this.vegaDatePickerValueController.setValue(""),this.singleDateInputRef.value="",u.warn("The date value of ${date} is invalid"))}}getSingleDateInputRef(){return this.singleDateInputRef}}xe([v()],ve.prototype,"placeholder",void 0),xe([v()],ve.prototype,"format",void 0),xe([v()],ve.prototype,"vegaDatePickerFormatController",void 0),xe([v()],ve.prototype,"vegaDatePickerRenderer",void 0),xe([v()],ve.prototype,"calendarOpenStateController",void 0);var we=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ue extends fe{constructor(){super(...arguments),this.render=()=>e(i,null,e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[0],value:this.vegaDatePickerValueController.getValue()[0],ref:e=>this.startDateInputRef=e,onChange:this.onStartDateChange,disabled:this.disabled,onClick:async()=>await this.onInputClicked("start")})),e("span",{class:{"range-input-divider":!0}}),e("div",{class:"date-picker-input"},e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[1],value:this.vegaDatePickerValueController.getValue()[1],ref:e=>this.endDateInputRef=e,onChange:this.onEndDateChange,disabled:this.disabled,onClick:async()=>await this.onInputClicked("end")}),this.renderClearIcon())),this.getRangePlaceholder=()=>this.placeholder?Array.isArray(this.placeholder)&&2===this.placeholder.length?this.placeholder:(u.warn("The placeholder should be an array, including start and end placeholder"),["Start Date","End Date"].map((e=>this.translationSlimmer.t(e)))):["Start Date","End Date"].map((e=>this.translationSlimmer.t(e))),this.onStartDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerFormatController.formatDate(t),this.vegaDatePickerValueController.getValue()[1]]):(this.vegaDatePickerValueController.setValue(["",this.vegaDatePickerValueController.getValue()[1]]),this.startDateInputRef.value="",u.warn("The date value of ${date} is invalid"))},this.onEndDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],this.vegaDatePickerFormatController.formatDate(t)]):(this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],""]),this.endDateInputRef.value="",u.warn("The date value of ${date} is invalid"))}}getStartDateInputRef(){return this.startDateInputRef}getEndDateInputRef(){return this.endDateInputRef}async onInputClicked(e){await this.calendarOpenStateController.showCalendar(),await this.vegaDatePickerCalendarRenderer.triggerRepick(e)}}we([v()],ue.prototype,"placeholder",void 0),we([v()],ue.prototype,"vegaDatePickerFormatController",void 0),we([v()],ue.prototype,"vegaDatePickerRenderer",void 0),we([v()],ue.prototype,"calendarOpenStateController",void 0),we([v()],ue.prototype,"translationSlimmer",void 0),we([v()],ue.prototype,"allowRepick",void 0),we([v()],ue.prototype,"format",void 0),we([v()],ue.prototype,"vegaDatePickerCalendarRenderer",void 0);var ye=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class be extends w{componentDidLoad(){this.appendCalendarToBodyIfMobile()}getCalendarContentBoxRef(){return this.calendarContentBoxRef}getCalendarRef(){return this.calendarRef}getMobileModalRef(){return this.mobileModalRef}async triggerRepick(e){this.allowRepick&&"range"===this.mode&&await this.calendarRef.triggerRepick(e)}render(){return this.isMobileDevice?this.mobileRender():this.renderCalendar()}mobileRender(){return e("vega-modal",{showCloseButton:!1,size:be.calendarModalSize,padding:"0",isVerticallyCentered:!0,backdropColor:"semi",ref:e=>{this.mobileModalRef=e,this.addModalObserver(e)}},e("div",{slot:"modal-content"},this.renderCalendar()))}renderCalendar(){return e("vega-box",{padding:{default:"size-12",S:"size-32"},corners:"rounded-12",backgroundColor:"bg-primary",shadow:"shadow-dropdown-menu",border:"border-input-field",ref:e=>{this.calendarContentBoxRef=e},class:"date-picker-content-box"},e("vega-box",{width:this.getDefaultCalendarDimension("width"),height:this.getDefaultCalendarDimension("height")},e("vega-date-picker-calendar",{selection:this.value,mode:this.mode,minDate:this.minDate,maxDate:this.maxDate,clearButton:this.clearButton,format:this.format,staticHeight:!1!==this.dropdownConfig.staticHeight,showYearMonthDropdowns:this.showYearMonthDropdowns,timezone:this.timezone,yearMonthDropdownProps:{isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")},ref:e=>{this.calendarRef=e,this.addCalendarObserver(e)},isDateDisabled:e=>this.isDateDisabled(e)})))}addCalendarObserver(e){j.addUniqueObserverToNode(e,O,(async e=>{await this.onCalendarSelected(e.detail)})),j.addUniqueObserverToNode(e,P,(async()=>{await this.calendarOpenStateController.hideCalendar()})),j.addUniqueObserverToNode(e,E,(async e=>{this.monthYearChangeEventEmitter.emit(e.detail)}))}addModalObserver(e){j.addUniqueObserverToNode(e,V,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!0)})),j.addUniqueObserverToNode(e,L,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!1)}))}async onCalendarSelected(e){("single"===this.mode||"range"===this.mode)&&this.vegaDatePickerValueController.setValue(e),this.isCalendarShow&&await this.calendarOpenStateController.hideCalendar()}appendCalendarToBodyIfMobile(){const e=K();this.isMobileDevice&&e&&e.body.append(this.mobileModalRef)}getDefaultCalendarDimension(e){if("height"===e&&!1===this.dropdownConfig.staticHeight)return"auto";let t=("range"!==this.mode||this.isMobileDevice?be.regularDatePickerCalendarDimensionsForSingle:be.regularDatePickerCalendarDimensionsForRange)[e];return"height"===e&&this.clearButton&&(t+=40),`${t}px`}}be.calendarModalSize=344,be.regularDatePickerCalendarDimensionsForSingle={width:280,height:320},be.regularDatePickerCalendarDimensionsForRange={width:608,height:358},ye([v()],be.prototype,"format",void 0),ye([v()],be.prototype,"value",void 0),ye([v()],be.prototype,"mode",void 0),ye([v()],be.prototype,"minDate",void 0),ye([v()],be.prototype,"maxDate",void 0),ye([v()],be.prototype,"clearButton",void 0),ye([v()],be.prototype,"dropdownConfig",void 0),ye([v()],be.prototype,"showYearMonthDropdowns",void 0),ye([v()],be.prototype,"timezone",void 0),ye([v()],be.prototype,"isMobileDevice",void 0),ye([v()],be.prototype,"isCalendarShow",void 0),ye([v()],be.prototype,"isDateDisabled",void 0),ye([v()],be.prototype,"allowRepick",void 0),ye([v()],be.prototype,"monthYearChangeEventEmitter",void 0),ye([v()],be.prototype,"vegaDatePickerValueController",void 0),ye([v()],be.prototype,"calendarOpenStateController",void 0),ye([y("componentDidLoad")],be.prototype,"componentDidLoad",null);var _e=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ce extends w{componentWillLoad(){this.value&&this.valueGuard(this.value)||this.setDefaultValueByMode()}watchValue(e,t){"range"===this.mode&&B(e,t)||(this.valueGuard(e)||this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),Z.notify(U,{host:this.host,detail:this.value}))}watchMode(){this.setDefaultValueByMode()}getValue(){return this.valueGuard(this.value),this.value}setValue(e){this.valueGuard(e)&&(this.value=e)}setDefaultValueByMode(){"range"===this.mode&&this.setValue(["",""]),"single"===this.mode&&this.setValue("")}valueGuard(e){let t;switch(this.mode){case"single":t=e&&"string"==typeof e&&!!m.fromString(e,this.format)||""===e;break;case"range":t=Array.isArray(e)&&2===e.length&&e.every((e=>!!m.fromString(e,this.format)||""===e))}return t||u.warn(`Invalid date picker value ${e} for ${this.mode} mode`),t}}_e([v({writable:!0})],Ce.prototype,"value",void 0),_e([v()],Ce.prototype,"mode",void 0),_e([v()],Ce.prototype,"format",void 0),_e([v()],Ce.prototype,"changeEventEmitter",void 0),_e([v()],Ce.prototype,"host",void 0),_e([v()],Ce.prototype,"isCalendarShow",void 0),_e([v()],Ce.prototype,"vegaDatePickerCalendarRenderer",void 0),_e([v()],Ce.prototype,"calendarOpenStateController",void 0),_e([y("componentWillLoad")],Ce.prototype,"componentWillLoad",null),_e([y("watchValue")],Ce.prototype,"watchValue",null),_e([y("watchMode")],Ce.prototype,"watchMode",null);var ke=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class De extends q{constructor(e){super(),this.formatDate=e=>m.fromString(e,this.format).toString(this.format),this.getInputElementRef=()=>{switch(this.inputType){case"single":return this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef();case"rangeStart":return this.vegaDatePickerRangeInputRenderer.getStartDateInputRef();case"rangeEnd":return this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()}},this.getInputModeStrategy=()=>this.datePickerFormatStrategy,this.getBlurModeStrategy=()=>null,this.getDateFormatMask=e=>{const t=e.match(/M/gi);return new G({mask:e.replace(/[MDY]/gi,"9"),slot:"9",accept:(t&&t.length)>2?/\w/g:/\d/g})},this.inputType=e}componentDidLoad(){this.setupStringFormatter(this.format)}watchFormat(e){this.setupStringFormatter(e)}setupStringFormatter(e){this.datePickerFormatStrategy=this.getDateFormatMask(e),this.setup()}}ke([v()],De.prototype,"format",void 0),ke([v()],De.prototype,"mode",void 0),ke([v()],De.prototype,"vegaDatePickerCalendarRenderer",void 0),ke([v()],De.prototype,"vegaDatePickerSingleInputRenderer",void 0),ke([v()],De.prototype,"vegaDatePickerRangeInputRenderer",void 0),ke([y("componentDidLoad")],De.prototype,"componentDidLoad",null),ke([y("watchFormat")],De.prototype,"watchFormat",null);var Ie=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ze extends J{constructor(){super((e=>[{keyCode:"Enter",activeElementInScope:()=>[e.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),e.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),e.vegaDatePickerRangeInputRenderer.getEndDateInputRef(),e.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef()],eventName:"keydown",callback:e=>{var t;const i=(null===(t=e.target.shadowRoot)||void 0===t?void 0:t.activeElement)||e.target;return null==i?void 0:i.click()}}]))}}Ie([v()],ze.prototype,"vegaDatePickerCalendarRenderer",void 0),Ie([v()],ze.prototype,"vegaDatePickerSingleInputRenderer",void 0),Ie([v()],ze.prototype,"vegaDatePickerRangeInputRenderer",void 0);const Re=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!1===e.autoValidation},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the selection mode of the date picker. Use `single` to allow selecting a single date",payloadValue:e=>"single"===e.mode},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the selection mode of the date picker. Use `range` to allow selecting a date range",payloadValue:e=>"range"===e.mode}];var je=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Se extends ie{constructor(){super((()=>({target:this.vegaDatePickerRenderer.getDatePickerContainer(),appendableElement:this.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef(),positionRelativeTo:this.dropdownConfig.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],alignment:["start","end"],isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")})),(()=>new ne),"isCalendarShow"),this.clearCalendarStateTaskQueue=new ae}connectedCallback(){this.isMobileDevice||super.connectedCallback()}disconnectedCallback(){this.isMobileDevice||super.disconnectedCallback()}componentDidLoad(){this.isMobileDevice||super.componentDidLoad()}async componentDidRender(){await this.clearCalendarStateTaskQueue.runTask()}async doOpen(){await this.showCalendar()}async doClose(){await this.hideCalendar()}async watchDisabled(){await this.hideCalendar()}async watchIsCalendarShow(){await this.clearCalendarSelectingState()}async showCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("show"):this.show()}async hideCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("hide"):this.hide(),this.focusContainerWithAnnouncement()}updateIsCalendarShowState(e){this.isCalendarShow=e}focusContainerWithAnnouncement(){const e=I();if((null==e?void 0:e.matches)&&e.matches(":focus-visible")){const e=this.vegaDatePickerRenderer.getDatePickerContainer();if(e){const t=this.buildAriaAnnouncement(this.value);e.setAttribute("role","group"),e.setAttribute("aria-label",t),e.setAttribute("tabindex","-1"),e.addEventListener("blur",(()=>{e.removeAttribute("role"),e.removeAttribute("aria-label"),e.removeAttribute("tabindex")}),{once:!0}),setTimeout((()=>e.focus()),0)}}}buildAriaAnnouncement(e){let t=null,i=null;return"single"===this.mode&&"string"==typeof e?t=e?m.fromString(e,this.format):null:"range"===this.mode&&Array.isArray(e)&&(t=e[0]?m.fromString(e[0],this.format):null,i=e[1]?m.fromString(e[1],this.format):null),`\n\t\t\t${p({startDate:t,endDate:i,mode:this.mode})},\n\t\t\t${N.t("date picker")}\n\t\t`}async clearCalendarSelectingState(){if(!this.isCalendarShow){const e=this.vegaDatePickerCalendarRenderer.getCalendarRef();await this.clearCalendarStateTaskQueue.enqueue({run:async()=>await e.reset()},!1)}}}je([v()],Se.prototype,"dropdownConfig",void 0),je([v()],Se.prototype,"vegaDatePickerRenderer",void 0),je([v()],Se.prototype,"vegaDatePickerCalendarRenderer",void 0),je([v()],Se.prototype,"value",void 0),je([v()],Se.prototype,"format",void 0),je([v()],Se.prototype,"mode",void 0),je([v({writable:!0})],Se.prototype,"isCalendarShow",void 0),je([v()],Se.prototype,"isMobileDevice",void 0),je([y("componentDidRender")],Se.prototype,"componentDidRender",null),je([y("doOpen")],Se.prototype,"doOpen",null),je([y("doClose")],Se.prototype,"doClose",null),je([y("watchDisabled")],Se.prototype,"watchDisabled",null),je([y("watchIsCalendarShow")],Se.prototype,"watchIsCalendarShow",null);var Me=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const Oe=class{constructor(e){a(this,e),this.vegaChange=n(this,"vegaChange",7),this.change=n(this,"change",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.globalSlimmers={},this.translationSlimmer=new te,this.calendarOpenStateController=new Se,this.vegaDatePickerValueController=new Ce,this.vegaDatePickerFormatController=new De("single"),this.startInputFormatController=new De("rangeStart"),this.endInputFormatController=new De("rangeEnd"),this.vegaDatePickerKeyboardController=new ze,this.vegaDatePickerRenderer=new pe,this.vegaDatePickerSingleInputRenderer=new ve,this.vegaDatePickerRangeInputRenderer=new ue,this.vegaDatePickerCalendarRenderer=new be,this.formFieldController=new k({propertyRules:[{propertyName:"required",ruleFactory:(e,t)=>e?new s({mode:t}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:e=>"range"===e?new he:null},{propertyName:"minDate",ruleFactory:(e,t)=>new le({minDate:e,maxDate:t}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(e,t)=>new le({minDate:t,maxDate:e}),dependence:"minDate"}],validationRulesName:"validationRules",defaultValue:e=>"range"===e.mode?["",""]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),touchableAreaGetter:()=>[this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),this.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()].filter(Boolean)}),this.changeEventEmitter=X(Oe,A),this.monthYearChangeEventEmitter=X(Oe,E),this.inputEventPrevent=new ee([A,P,E],(()=>this.vegaDatePickerCalendarRenderer.getCalendarRef())),this.vegaComponentUsageRuntimeMetricsSlimmer=new _(Re),this.isMobileDevice=z()===R.MOBILE,this.isCalendarShow=!1,this.mode="single",this.value="range"===this.mode?["",""]:"",this.required=!1,this.isValid=null,this.autoValidation=!0,this.format="MM/DD/YYYY",this.size="default",this.validationRules=[],this.clearButton=!1,this.readOnly=!1,this.allowRepick=!1,this.dropdownConfig={},this.showClearIcon=!0,this.showYearMonthDropdowns=!1,this.disabled=!1,this.isDateDisabled=()=>!1}watchIsCalendarShow(){}watchMode(){}watchValue(e,t){}watchFormat(e){}watchValidationRules(){}watchMinDate(e){}watchMaxDate(e){}watchAllowRepick(){}watchShowYearMonthDropdowns(){}watchDisabled(){}async doClose(){}async doOpen(){}render(){return o(this.vegaDatePickerRenderer.render(),this.host)}get host(){return r(this)}static get watchers(){return{isCalendarShow:["watchIsCalendarShow"],mode:["watchMode"],value:["watchValue"],format:["watchFormat"],validationRules:["watchValidationRules"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],allowRepick:["watchAllowRepick"],showYearMonthDropdowns:["watchShowYearMonthDropdowns"],disabled:["watchDisabled"]}}};Me([C()],Oe.prototype,"globalSlimmers",void 0),Me([b()],Oe.prototype,"translationSlimmer",void 0),Me([b()],Oe.prototype,"calendarOpenStateController",void 0),Me([b()],Oe.prototype,"vegaDatePickerValueController",void 0),Me([b()],Oe.prototype,"vegaDatePickerFormatController",void 0),Me([b()],Oe.prototype,"startInputFormatController",void 0),Me([b()],Oe.prototype,"endInputFormatController",void 0),Me([b()],Oe.prototype,"vegaDatePickerKeyboardController",void 0),Me([b()],Oe.prototype,"vegaDatePickerRenderer",void 0),Me([b()],Oe.prototype,"vegaDatePickerSingleInputRenderer",void 0),Me([b()],Oe.prototype,"vegaDatePickerRangeInputRenderer",void 0),Me([b()],Oe.prototype,"vegaDatePickerCalendarRenderer",void 0),Me([b()],Oe.prototype,"formFieldController",void 0),Me([b()],Oe.prototype,"changeEventEmitter",void 0),Me([b()],Oe.prototype,"monthYearChangeEventEmitter",void 0),Me([b()],Oe.prototype,"inputEventPrevent",void 0),Me([b()],Oe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Me([Q()],Oe.prototype,"watchValue",null),Oe.style=':host{display:inline-block;width:100%;text-align:left;line-height:normal}:host vega-field-label{margin-bottom:8px}:host .vega-input-container{position:relative;display:block;border-radius:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));display:flex;align-items:center}:host .vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-input-container .date-picker-input{padding-left:16px;padding-right:16px;width:100%;box-sizing:border-box;display:flex;align-items:center}:host .vega-input-container.default .date-picker-input{padding-left:16px;padding-right:16px}:host .vega-input-container.small .date-picker-input{padding-left:12px;padding-right:12px}:host .vega-input-container.default .date-picker-input input{padding-top:12px;padding-bottom:12px}:host .vega-input-container.small .date-picker-input input{padding-top:8px;padding-bottom:8px}:host .vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-input-container.single-mode.error:focus-within,:host .vega-input-container.range-mode.error .date-picker-input:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1));border-radius:8px}:host .vega-input-container.range-mode.error .date-picker-input:first-of-type:focus-within{margin:-1px 0 -1px -1px}:host .vega-input-container.range-mode.error .date-picker-input:last-of-type:focus-within{margin:-1px -1px -1px 0}:host .vega-input-container.single-mode:not(.error):focus-within,:host .vega-input-container.range-mode:not(.error) .date-picker-input:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));border-radius:8px}:host .vega-input-container.range-mode .date-picker-input:first-of-type:focus-within{margin:-1px 0 -1px -1px}:host .vega-input-container.range-mode .date-picker-input:last-of-type:focus-within{margin:-1px -1px -1px 0}:host .vega-input-container input{width:100%;box-sizing:content-box;border-width:0px;margin:0px;outline:2px solid transparent;outline-offset:2px;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-left:8px;padding-right:8px;padding-top:12px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}:host .range-input-divider{width:1px;height:24px;border-style:solid;border-right-width:1px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}:host .vega-input-container.range-mode.mobile .range-input-divider{width:100%;height:1px;border-style:solid;border-right-width:0px;border-top-width:1px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}:host .vega-input-prefix{display:flex;margin-right:8px}:host .vega-input-container.range-mode.mobile.small .vega-input-prefix{margin-right:8px}:host .vega-input-container.range-mode.mobile{flex-direction:column}:host .vega-input-container.range-mode.mobile .date-picker-input:last-of-type{padding-left:40px}:host .vega-input-container.range-mode.mobile.small .date-picker-input:last-of-type{padding-left:36px}:host(.disabled) .vega-input-container{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1));--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host(.disabled) .vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.disabled) .vega-input-container input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}';var Pe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ee extends w{render(){return e("div",{class:{calendar:!0,"static-height":this.staticHeight}},e("div",{class:"container__main"},this.headerRenderer.render(),this.renderContainer(),this.renderFooter()),e("div",{class:"aria-announcement","aria-live":"polite","aria-atomic":"true"},this.buildAnnouncement()))}renderContainer(){const t=this.shouldRenderRangeMonth();return e("div",{class:{container__months:!0,"columns-2":t}},t?this.renderRangeMonth():this.monthItemRenderer.render("start"))}renderRangeMonth(){return e(i,null,this.monthItemRenderer.render("start"),this.monthItemRenderer.render("end"))}renderFooter(){return this.clearButton&&e("div",{class:"footer-container"},e("vega-button-link",{ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.clearCalendar()}))},label:this.translationSlimmer.t("Clear")}))}shouldRenderRangeMonth(){return"range"===this.mode&&!this.isMobileDevice}clearCalendar(){this.clearEventEmitter.emit(),Z.notify(S.getSubject(this.host,re),{})}buildAnnouncement(){const{startDate:e,endDate:t}=this.calendarSelection;return p({mode:this.mode,startDate:e,endDate:t})}}Pe([v()],Ee.prototype,"host",void 0),Pe([v()],Ee.prototype,"clearButton",void 0),Pe([v()],Ee.prototype,"calendarSelection",void 0),Pe([v()],Ee.prototype,"monthItemRenderer",void 0),Pe([v()],Ee.prototype,"staticHeight",void 0),Pe([v()],Ee.prototype,"translationSlimmer",void 0),Pe([v()],Ee.prototype,"mode",void 0),Pe([v()],Ee.prototype,"clearEventEmitter",void 0),Pe([v()],Ee.prototype,"isMobileDevice",void 0),Pe([v()],Ee.prototype,"headerRenderer",void 0);const Ve=["January","February","March","April","May","June","July","August","September","October","November","December"];var Le=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ae extends w{render(){return("range"!==this.mode||this.showYearMonthDropdowns||this.isMobileDevice)&&e("vega-flex",{justifyContent:"center"},this.showYearMonthDropdowns?this.renderMonthDropdownSwitcher():this.renderCurrentMonth(),this.showYearMonthDropdowns?this.renderYearDropdownSwitcher():this.renderCurrentYear())}getMonthDropdownOptions(){const e=this.currentPeriod.current.year;return Ve.map(((t,i)=>({key:`${i}`,label:this.translationSlimmer.t(t),disabled:this.isDisabledMonth(e,i+1)})))}isDisabledMonth(e,t){var i,a,n,r;const o=null===(i=this.minCalendarDate)||void 0===i?void 0:i.month,s=null===(a=this.minCalendarDate)||void 0===a?void 0:a.year,d=null===(n=this.maxCalendarDate)||void 0===n?void 0:n.month,h=null===(r=this.maxCalendarDate)||void 0===r?void 0:r.year;return e<s||e>h||e===s&&o>t||e===h&&d<t}getYearDropdownOptions(){var e,t,i,a;const n=(new Date).getFullYear(),r=(null===(e=this.minCalendarDate)||void 0===e?void 0:e.year)||Math.min((null===(t=this.maxCalendarDate)||void 0===t?void 0:t.year)||n,n)-Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR,o=(null===(i=this.maxCalendarDate)||void 0===i?void 0:i.year)||Math.max((null===(a=this.minCalendarDate)||void 0===a?void 0:a.year)||n,n)+Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR,s=[];for(let e=r;e<=o;e++)s.push({key:String(e),label:String(e)});return s}renderMonthDropdownSwitcher(){const{month:t}=this.currentPeriod.current,i=t-1;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getMonthDropdownOptions(),selectedSourceKey:i.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,T,(e=>{const t=parseInt(e.detail);this.setDateBasedOnSelectedMonth(t)}))}},this.renderCurrentMonth())}renderYearDropdownSwitcher(){const{year:t}=this.currentPeriod.current;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getYearDropdownOptions(),selectedSourceKey:t.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,T,(e=>{this.setDateBasedOnSelectedYear(parseInt(e.detail))}))}},this.renderCurrentYear())}onDropdownShowOrHide(e){j.addUniqueObserverToNode(e,Y,(async()=>{e.classList.add("active")})),j.addUniqueObserverToNode(e,F,(()=>{const t=e.closest(".calendar");if(t){const e=t.querySelector("vega-dropdown.active");e&&e.classList.remove("active")}}))}renderCurrentMonth(){const t=this.translationSlimmer.t(this.currentPeriod.current.getMonthName());return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-name",size:"small",label:t}):e("div",{class:"month-item-name",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?$():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderCurrentYear(){const t=this.currentPeriod.current.year.toString();return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-year",size:"small",label:t}):e("div",{class:"month-item-year",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?$():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderDropdownSwitchIcon(){return this.showYearMonthDropdowns&&e("vega-icon",{icon:H.getIconKey("caret-down"),color:"text-link"})}setDateBasedOnSelectedMonth(e){const{year:t}=this.currentPeriod.current,i=new Date(t,e,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}setDateBasedOnSelectedYear(e){const{month:t}=this.currentPeriod.current,i=new Date(e,t-1,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}}H.register({"caret-down":ce["caret-down"]}),Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR=10,Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR=10,Le([v()],Ae.prototype,"currentPeriodController",void 0),Le([v()],Ae.prototype,"showYearMonthDropdowns",void 0),Le([v()],Ae.prototype,"translationSlimmer",void 0),Le([v()],Ae.prototype,"minCalendarDate",void 0),Le([v()],Ae.prototype,"maxCalendarDate",void 0),Le([v()],Ae.prototype,"yearMonthDropdownProps",void 0),Le([v()],Ae.prototype,"currentPeriod",void 0),Le([v()],Ae.prototype,"size",void 0),Le([v()],Ae.prototype,"mode",void 0),Le([v()],Ae.prototype,"isMobileDevice",void 0);var Te=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ye extends w{connectedCallback(){this.initCalendarClearObserver()}disconnectedCallback(){this.removeCalendarClearObserver()}initCalendarClearObserver(){this.calendarClearObserver=new se(this.canAcceptClearEvent.bind(this),this.clear.bind(this)),Z.register(S.getSubject(this.host,re),this.calendarClearObserver)}removeCalendarClearObserver(){Z.unregister(S.getSubject(this.host,re),this.calendarClearObserver)}canAcceptClearEvent(){return!0}}Te([v()],Ye.prototype,"host",void 0),Te([y("connectedCallback")],Ye.prototype,"connectedCallback",null),Te([y("disconnectedCallback")],Ye.prototype,"disconnectedCallback",null);var Fe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class He extends Ye{connectedCallback(){super.connectedCallback(),this.initCalendarPeriodUpdateObserver()}disconnectedCallback(){super.disconnectedCallback(),this.removeCalendarPeriodUpdateObserver()}componentWillLoad(){this.setCurrentMonthPeriod()}watchMaxCalendarDate(){this.setCurrentMonthPeriod()}watchMinCalendarDate(){this.setCurrentMonthPeriod()}watchCurrentPeriod(){this.monthYearChangeEventEmitter.emit(this.getCurrentYearMonthByPeriod())}resetCurrentPeriod(){this.setCurrentMonthPeriod()}clear(){this.setCurrentMonthPeriod()}gotoNextPeriod(){const e=this.isRangeView()?this.currentPeriod.next().next():this.currentPeriod.next();this.updateCalendarPeriod(e)}gotoPreviousPeriod(){const e=this.isRangeView()?this.currentPeriod.previous().previous():this.currentPeriod.previous();this.updateCalendarPeriod(e)}updateCalendarPeriod(e){this.currentPeriod&&this.currentPeriod.equal(e)||(this.currentPeriod=e)}setCurrentMonthPeriod(){let e;const t=this.calendarSelection.startDate;e=f(t)?t:this.minCalendarDate&&(this.today.isBefore(this.minCalendarDate)||this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate))?this.minCalendarDate:this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate)?this.maxCalendarDate:this.today,this.updateCalendarPeriod(new g(e,!0,this.timezone))}isRangeView(){return"range"===this.mode&&!this.isMobileDevice}getCurrentYearMonthByPeriod(){const e={month:Ve[this.currentPeriod.current.month-1],year:`${this.currentPeriod.current.year}`};return"range"===this.mode?[e,{month:Ve[this.currentPeriod.endDate.month-1],year:`${this.currentPeriod.endDate.year}`}]:e}initCalendarPeriodUpdateObserver(){j.addUniqueObserverToNode(this.host,oe,this.setCurrentMonthPeriod.bind(this))}removeCalendarPeriodUpdateObserver(){j.removeUniqueObserverFromNode(this.host,oe)}}Fe([v({writable:!0})],He.prototype,"currentPeriod",void 0),Fe([v()],He.prototype,"host",void 0),Fe([v()],He.prototype,"today",void 0),Fe([v()],He.prototype,"mode",void 0),Fe([v()],He.prototype,"format",void 0),Fe([v()],He.prototype,"timezone",void 0),Fe([v()],He.prototype,"minCalendarDate",void 0),Fe([v()],He.prototype,"maxCalendarDate",void 0),Fe([v()],He.prototype,"isMobileDevice",void 0),Fe([v()],He.prototype,"monthYearChangeEventEmitter",void 0),Fe([v()],He.prototype,"calendarSelection",void 0),Fe([y("connectedCallback")],He.prototype,"connectedCallback",null),Fe([y("disconnectedCallback")],He.prototype,"disconnectedCallback",null),Fe([y("componentWillLoad")],He.prototype,"componentWillLoad",null),Fe([y("watchMaxCalendarDate")],He.prototype,"watchMaxCalendarDate",null),Fe([y("watchMinCalendarDate")],He.prototype,"watchMinCalendarDate",null),Fe([y("watchCurrentPeriod")],He.prototype,"watchCurrentPeriod",null),Fe([y("reset")],He.prototype,"resetCurrentPeriod",null);var $e=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Be extends w{connectedCallback(){this.setToday()}watchTimezone(){this.setToday()}setToday(){this.today=m.from(new Date,this.timezone)}}$e([v()],Be.prototype,"timezone",void 0),$e([v({writable:!0})],Be.prototype,"today",void 0),$e([y("connectedCallback")],Be.prototype,"connectedCallback",null),$e([y("watchTimezone")],Be.prototype,"watchTimezone",null);var Ne=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class We extends w{constructor(){super(...arguments),this.monthViewGenerator=new de}render(t){const i="end"===t?this.currentPeriod.next():this.currentPeriod,a=this.monthViewGenerator.generate(i);return e("div",{class:"month-item"},this.renderCurrentYearMonth(i),this.renderWeek(a),this.renderDays(a,i))}renderCurrentYearMonth(t){return"range"===this.mode&&!this.isMobileDevice&&e("vega-box",{class:"current-month-year"},this.translationSlimmer.t(t.current.getMonthName())," ",t.current.year)}renderWeek(t){return e("vega-grid",{class:"month-item-weekdays-row",column:"7-auto",row:1},t.weekdays.map((t=>{const i=this.translationSlimmer.t(`${t}-full`);return e("div",{key:t,role:"columnheader","aria-label":i},this.translationSlimmer.t(`${t}-short`))})))}renderDays(t,i){return e("vega-grid",{class:"container__days",column:"7-auto",row:this.staticHeight?6:"6-auto"},t.dateItems.flat().filter((e=>e.month<=i.current.month||e.year<i.current.year)).map((e=>this.renderItem(e,i))))}renderItem(e,t){const i=this.dateIndicator(e.toDate()),a=this.renderDay(e,t);return i&&i.text?this.renderDayWithIndicator(i,a):a}renderDayWithIndicator(t,i){return e("vega-tooltip",Object.assign({},t),i)}renderDay(t,i){const a=t.month===i.current.month,n=this.isBeforeMinDate(t)||this.isAfterMaxDate(t),r=this.getCurrentRangeDates(),o=this.isDateDisabled(t.toDate()),s=t.isAfter(r[0])&&t.isBefore(r[1]),d=a&&!n&&!o;return e("div",{key:`${t.month}-${t.date}`,class:a&&{"day-item":!0,"is-today":t.equal(this.today),"is-start-date":t.equal(r[0]),"is-in-range":s,"is-end-date":t.equal(r[1]),"is-locked":n,"is-disabled":o},onClick:()=>d&&this.selectionController.onDayClick(t),onMouseEnter:()=>d&&this.selectionController.onDayHover(t),onKeyDown:$(),role:"menuitem","aria-label":`${t.getMonthName()} ${t.date} ${t.year}`,"aria-hidden":a?void 0:"true","aria-disabled":n||o?"true":void 0,tabIndex:d?0:-1},e("div",{class:"day-content"},a?t.date:""))}getCurrentRangeDates(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;return f(e)&&!t&&this.hoverDate?this.hoverDate.isBefore(e)?[this.hoverDate,e]:[e,this.hoverDate]:!f(e)&&t&&this.hoverDate?this.hoverDate.isBefore(t)?[this.hoverDate,t]:[t,this.hoverDate]:[e,t]}isBeforeMinDate(e){return this.minCalendarDate&&e.isBefore(this.minCalendarDate)}isAfterMaxDate(e){return this.maxCalendarDate&&e.isAfter(this.maxCalendarDate)}}Ne([v()],We.prototype,"currentPeriod",void 0),Ne([v()],We.prototype,"today",void 0),Ne([v()],We.prototype,"translationSlimmer",void 0),Ne([v()],We.prototype,"hoverDate",void 0),Ne([v()],We.prototype,"maxCalendarDate",void 0),Ne([v()],We.prototype,"minCalendarDate",void 0),Ne([v()],We.prototype,"selectionController",void 0),Ne([v()],We.prototype,"calendarSelection",void 0),Ne([v()],We.prototype,"staticHeight",void 0),Ne([v()],We.prototype,"mode",void 0),Ne([v()],We.prototype,"size",void 0),Ne([v()],We.prototype,"isDateDisabled",void 0),Ne([v()],We.prototype,"dateIndicator",void 0),Ne([v()],We.prototype,"isMobileDevice",void 0);class Ke{constructor(e,t,i){if(this.startDate=e,this.endDate=t,this.mode=i,"range"===this.mode&&this.startDate&&this.endDate&&this.startDate.isAfter(this.endDate)){const e=this.startDate;this.startDate=this.endDate,this.endDate=e}}static fromSelection(e,t,i){let a=null,n=null;if(this.isValidSelection(e,t,i))if("single"===t&&"string"==typeof e){const t=m.fromString(e,i);a=t,n=t}else"range"===t&&Array.isArray(e)&&(a=m.fromString(e[0],i),n=m.fromString(e[1],i));return new Ke(a,n,t)}static isValidSelection(e,t,i){let a;switch(t){case"single":a=this.isValidDateString(e,i);break;case"range":a=Array.isArray(e)&&2===e.length&&e.every((e=>this.isValidDateString(e,i)))}return a||u.warn(`Invalid date picker calendar selection ${e} for ${t} mode`),a}static isValidDateString(e,t){return e&&"string"==typeof e&&!!m.fromString(e,t)||""===e}toSelection(e){var t,i,a;return"range"===this.mode?[(null===(t=this.startDate)||void 0===t?void 0:t.toString(e))||"",(null===(i=this.endDate)||void 0===i?void 0:i.toString(e))||""]:(null===(a=this.startDate)||void 0===a?void 0:a.toString(e))||""}equals(e){if(!e)return!1;const t=this.startDate&&e.startDate?this.startDate.equal(e.startDate):this.startDate===this.endDate,i=this.endDate&&e.endDate?this.endDate.equal(e.endDate):this.endDate===e.endDate;return t&&i}isCompleted(){return f(this.startDate)&&("range"!==this.mode||f(this.endDate))}isEmpty(){return!f(this.startDate)&&!f(this.endDate)}}var Ue=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ze extends Ye{componentWillLoad(){this.setCalendarSelectionBySelection(this.selection)}watchSelection(e){!this.isSameSelection(e,this.calendarSelection.toSelection(this.format))&&(this.setCalendarSelectionBySelection(e),this.notifyPeriodChange())}resetRange(){const e=!this.calendarSelection.isCompleted()&&!this.calendarSelection.isEmpty()&&!!this.previousCalendarSelection;this.setCalendarSelectionBySelection(e?this.previousCalendarSelection.toSelection(this.format):this.selection),this.hoverDate=null}watchCalendarSelection(){(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&this.setSelection(this.calendarSelection.toSelection(this.format))}clear(){this.setCalendarSelectionByRange(null,null),this.hoverDate=null}onDayClick(e){"single"===this.mode?this.setCalendarSelectionByRange(e,e):"range"===this.mode&&(this.calendarSelection.startDate&&!this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.startDate,e):!this.calendarSelection.startDate&&this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.endDate,e):this.setCalendarSelectionByRange(e,null),this.hoverDate=null)}onDayHover(e){const t=this.allowRepickController.getRepickType();t&&"range"===this.mode&&this.calendarSelection.isCompleted()&&("start"===t?this.setCalendarSelectionByRange(null,this.calendarSelection.endDate):this.setCalendarSelectionByRange(this.calendarSelection.startDate,null)),this.calendarSelection.isEmpty()||this.calendarSelection.isCompleted()||(this.hoverDate=e)}setCalendarSelectionBySelection(e){const t=Ke.fromSelection(e,this.mode,this.format);this.calendarSelection&&(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&(this.previousCalendarSelection=this.calendarSelection),t.equals(this.calendarSelection)||(this.calendarSelection=t),this.setSelection(t.toSelection(this.format))}setCalendarSelectionByRange(e,t){this.calendarSelection=new Ke(e,t,this.mode)}setSelection(e){this.isSameSelection(e,this.selection)||(this.selection=e,this.vegaSelectionChangeEventEmitter.emit(this.selection))}isSameSelection(e,t){return"range"===this.mode&&Array.isArray(e)&&Array.isArray(t)?B(e,t):e===t}notifyPeriodChange(){Z.notify(S.getSubject(this.host,oe),{})}}Ue([v()],Ze.prototype,"host",void 0),Ue([v()],Ze.prototype,"mode",void 0),Ue([v()],Ze.prototype,"format",void 0),Ue([v({writable:!0})],Ze.prototype,"selection",void 0),Ue([v({writable:!0})],Ze.prototype,"calendarSelection",void 0),Ue([v({writable:!0})],Ze.prototype,"hoverDate",void 0),Ue([v()],Ze.prototype,"clearEventEmitter",void 0),Ue([v()],Ze.prototype,"vegaSelectionChangeEventEmitter",void 0),Ue([v()],Ze.prototype,"allowRepickController",void 0),Ue([v()],Ze.prototype,"translationSlimmer",void 0),Ue([y("componentWillLoad")],Ze.prototype,"componentWillLoad",null),Ue([y("watchSelection")],Ze.prototype,"watchSelection",null),Ue([y("reset")],Ze.prototype,"resetRange",null),Ue([y("watchCalendarSelection")],Ze.prototype,"watchCalendarSelection",null);var Ge=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class qe extends w{componentWillLoad(){this.setMaxCalendarDate(),this.setMinCalendarDate()}watchMaxDate(){this.setMaxCalendarDate()}watchMinDate(){this.setMinCalendarDate()}setMaxCalendarDate(){this.maxCalendarDate=m.fromString(this.maxDate,this.format)}setMinCalendarDate(){this.minCalendarDate=m.fromString(this.minDate,this.format)}}Ge([v()],qe.prototype,"maxDate",void 0),Ge([v()],qe.prototype,"minDate",void 0),Ge([v()],qe.prototype,"format",void 0),Ge([v({writable:!0})],qe.prototype,"maxCalendarDate",void 0),Ge([v({writable:!0})],qe.prototype,"minCalendarDate",void 0),Ge([y("componentWillLoad")],qe.prototype,"componentWillLoad",null),Ge([y("watchMaxDate")],qe.prototype,"watchMaxDate",null),Ge([y("watchMinDate")],qe.prototype,"watchMinDate",null);var Je=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Qe extends w{triggerRepick(e){this.repickType=e,"end"===e&&this.setEndDateAsCurrentMonthPeriod()}watchCalendarSelection(){this.calendarSelection.isCompleted()&&(this.repickType=null)}getRepickType(){return this.repickType}setEndDateAsCurrentMonthPeriod(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;if(t){const i=f(e)&&e.compare(t).inMonth?e:this.isMobileDevice?t:t.add(0,-1);this.currentPeriodController.updateCalendarPeriod(new g(i))}}}Je([v()],Qe.prototype,"calendarSelection",void 0),Je([v()],Qe.prototype,"isMobileDevice",void 0),Je([v()],Qe.prototype,"currentPeriodController",void 0),Je([y("triggerRepick")],Qe.prototype,"triggerRepick",null),Je([y("watchCalendarSelection")],Qe.prototype,"watchCalendarSelection",null);var Xe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class et extends w{render(){return e("vega-flex",{class:"month-item-header",alignItems:"center"},this.renderSwitcher(),this.yearMonthSwitcherRender.render())}renderSwitcher(){return e("vega-flex",{gap:"size-8",alignItems:"center"},this.renderPrevIcon(),this.renderToday(),this.renderNextIcon())}renderPrevIcon(){const t=this.currentPeriod.current.firstDateOfMonth(),i=this.minCalendarDate&&(t.isBefore(this.minCalendarDate)||t.equal(this.minCalendarDate));return e("vega-button-circle",{class:{"button-previous-month":!0,disabled:i},variant:"icon-only",icon:H.getIconKey("chevron-left"),"data-aria-label":this.translationSlimmer.t("Previous month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoPreviousPeriod()}))},iconColor:i?"text-disabled":"text-link",size:this.getNavigationIconSize(),disabled:i})}renderNextIcon(){const t=("range"===this.mode?this.currentPeriod.next():this.currentPeriod).current.lastDateOfMonth(),i=this.maxCalendarDate&&(t.isAfter(this.maxCalendarDate)||t.equal(this.maxCalendarDate));return e("vega-button-circle",{class:{"button-next-month":!0,disabled:i},variant:"icon-only",icon:H.getIconKey("chevron-right"),"data-aria-label":this.translationSlimmer.t("Next month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoNextPeriod()}))},size:this.getNavigationIconSize(),iconColor:i?"text-disabled":"text-link",disabled:i})}renderToday(){const t="range"===this.mode&&!this.isMobileDevice&&"small"!==this.size;return e("vega-button-link",{class:{"button-today":!0,"with-label":t},"data-aria-label":this.translationSlimmer.t("Today"),label:t?this.translationSlimmer.t("Today"):"",ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.updateCalendarPeriod(new g(this.today,!0,this.timezone))}))},size:"large"===this.size?"default":"small",icon:H.getIconKey("bulls-eye")})}getNavigationIconSize(){return"large"===this.size?"small":"extra-small"}}H.register({"chevron-left":ce["chevron-left"],"chevron-right":ce["chevron-right"],"bulls-eye":ce["bulls-eye"]}),Xe([v()],et.prototype,"currentPeriod",void 0),Xe([v()],et.prototype,"today",void 0),Xe([v()],et.prototype,"translationSlimmer",void 0),Xe([v()],et.prototype,"yearMonthSwitcherRender",void 0),Xe([v()],et.prototype,"mode",void 0),Xe([v()],et.prototype,"currentPeriodController",void 0),Xe([v()],et.prototype,"maxCalendarDate",void 0),Xe([v()],et.prototype,"minCalendarDate",void 0),Xe([v()],et.prototype,"size",void 0),Xe([v()],et.prototype,"timezone",void 0),Xe([v()],et.prototype,"isMobileDevice",void 0);var tt=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const it=class{constructor(e){a(this,e),this.vegaClear=n(this,"vegaClear",7),this.clear=n(this,"clear",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.vegaSelectionChange=n(this,"vegaSelectionChange",7),this.selectionChange=n(this,"selectionChange",7),this.globalSlimmers={},this.renderer=new Ee,this.monthItemRenderer=new We,this.headerRenderer=new et,this.translationSlimmer=new te,this.todayController=new Be,this.selectionController=new Ze,this.minMaxDateController=new qe,this.currentPeriodController=new He,this.yearMonthSwitcherRender=new Ae,this.allowRepickController=new Qe,this.vegaComponentUsageRuntimeMetricsSlimmer=new _,this.clearEventEmitter=X(it,P),this.monthYearChangeEventEmitter=X(it,E),this.vegaSelectionChangeEventEmitter=X(it,O),this.isMobileDevice=z()===R.MOBILE,this.size="regular",this.mode="single",this.selection="range"===this.mode?["",""]:"",this.format="MM/DD/YYYY",this.clearButton=!1,this.staticHeight=!1,this.showYearMonthDropdowns=!1,this.yearMonthDropdownProps={},this.isDateDisabled=()=>!1,this.dateIndicator=()=>null}watchCurrentPeriod(){}watchCalendarSelection(){}watchMaxCalendarDate(){}watchMinCalendarDate(){}watchSelection(){}watchMinDate(){}watchMaxDate(){}watchTimezone(){}async reset(){}async triggerRepick(e){}render(){return o(e(t,{class:{[this.size]:!0,[this.mode]:!0,mobile:this.isMobileDevice}},this.renderer.render()),this.host)}get host(){return r(this)}static get watchers(){return{currentPeriod:["watchCurrentPeriod"],calendarSelection:["watchCalendarSelection"],maxCalendarDate:["watchMaxCalendarDate"],minCalendarDate:["watchMinCalendarDate"],selection:["watchSelection"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],timezone:["watchTimezone"]}}};tt([C()],it.prototype,"globalSlimmers",void 0),tt([b()],it.prototype,"renderer",void 0),tt([b()],it.prototype,"monthItemRenderer",void 0),tt([b()],it.prototype,"headerRenderer",void 0),tt([b()],it.prototype,"translationSlimmer",void 0),tt([b()],it.prototype,"todayController",void 0),tt([b()],it.prototype,"selectionController",void 0),tt([b()],it.prototype,"minMaxDateController",void 0),tt([b()],it.prototype,"currentPeriodController",void 0),tt([b()],it.prototype,"yearMonthSwitcherRender",void 0),tt([b()],it.prototype,"allowRepickController",void 0),tt([b()],it.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),tt([b()],it.prototype,"clearEventEmitter",void 0),tt([b()],it.prototype,"monthYearChangeEventEmitter",void 0),tt([b()],it.prototype,"vegaSelectionChangeEventEmitter",void 0),it.style=':host{--vega-litepicker-container-width:calc(var(--vega-litepicker-day-width) * 7)}.calendar,.calendar .container__main,.calendar .container__months{height:100%}:host(.small.range) .calendar.static-height .container__main,:host(.regular.range) .calendar.static-height .container__main,:host(.large.range) .calendar.static-height .container__main{aspect-ratio:1/1}:host .month-item-header .button-today::part(link){color:rgba(var(--v-text-link, 19, 98, 226, 1));vertical-align:top}:host .month-item-header vega-dropdown .month-item-name,:host .month-item-header vega-dropdown .month-item-year{display:flex;gap:8px;align-items:center;cursor:pointer;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}:host .month-item-header vega-dropdown.active .month-item-name,:host .month-item-header vega-dropdown.active .month-item-year{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .month-item-header .button-previous-month.disabled,:host .month-item-header .button-next-month.disabled{pointer-events:none}:host(.small.single) vega-dropdown .month-item-name span{max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.small){--vega-litepicker-day-width:28px;--vega-litepicker-day-height:28px;--vega-date-picker-calendar-range-space-size:16px}:host(.small) .current-month-year{text-align:center;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(.small) .current-month-year{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(.small) .current-month-year{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(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header{gap:8px;margin-bottom:12px}:host(.small) .month-item-header .button-today{height:16px}:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{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(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{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(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{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(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header .month-item-name{margin-right:4px}:host(.small) .month-item-header vega-dropdown .month-item-name{margin-right:8px}:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:4px;padding-right:4px;font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;gap:2px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{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(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{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(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .month-item-header vega-dropdown .month-item-name vega-icon,:host(.small) .month-item-header vega-dropdown .month-item-year vega-icon{width:12px;height:12px}:host(.small) .month-item-header .small-month-item-name{margin-right:8px}:host(.small) .month-item-header .small-month-item-name::part(label-container),:host(.small) .month-item-header .small-month-item-year::part(label-container){font-size:14px}:host(.small) .month-item .current-month-year{margin-bottom:4px}:host(.small) .calendar .container__main{max-width:360px;max-height:360px}:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;margin-bottom:4px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-header{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(.small) .calendar .container__months .month-item-header{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(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row{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(.small) .calendar .container__months .month-item-weekdays-row{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(.small) .calendar .container__months .month-item-weekdays-row{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(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row div{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(.small) .calendar .container__months .month-item-weekdays-row div{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(.small) .calendar .container__months .month-item-weekdays-row div{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(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item{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(.small) .calendar .container__days .day-item{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(.small) .calendar .container__days .day-item{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(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .calendar .container__days .day-item .day-content{width:18px;height:18px}:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;width:18px;height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__days .day-item.is-today .day-content{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(.small) .calendar .container__days .day-item.is-today .day-content{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(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.small.range) .calendar .container__main{width:100%;max-width:600px;max-height:360px}:host(.regular){--vega-litepicker-day-width:40px;--vega-litepicker-day-height:40px;--vega-date-picker-calendar-range-space-size:24px}:host(.regular) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header{gap:16px;margin-bottom:24px}:host(.regular) .month-item-header .button-today{height:16px}:host(.regular) .month-item-header .button-today.with-label{height:18px}:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header .month-item-name{margin-right:4px}:host(.regular) .month-item-header vega-dropdown .month-item-name{margin-right:16px}:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:8px;padding-right:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px;padding-top:3px;padding-bottom:3px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}:host(.regular) .month-item .current-month-year{margin-bottom:12px}:host(.regular) .calendar .container__main{max-width:450px;max-height:450px}:host(.regular) .calendar .container__months .month-item-header{margin-bottom:12px}:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__months .month-item-weekdays-row 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){:host(.regular) .calendar .container__months .month-item-weekdays-row 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){:host(.regular) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item .day-content{width:24px;height:24px}:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.regular.range) .calendar .container__main{width:100%;max-width:900px;max-height:450px}:host(.large){--vega-litepicker-day-width:56px;--vega-litepicker-day-height:56px;--vega-date-picker-calendar-range-space-size:40px}:host(.large) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header{gap:16px;margin-bottom:24px}:host(.large) .month-item-header .button-today{height:16px}:host(.large) .month-item-header .button-today.with-label{height:24px}:host(.large) .month-item-header .month-item-name{margin-right:4px}:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header vega-dropdown .month-item-name{margin-right:24px}:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{border-radius:8px;padding-left:12px;padding-right:12px;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;padding-top:7px;padding-bottom:7px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.large) .month-item .current-month-year{margin-bottom:16px}:host(.large) .calendar .container__main{max-width:600px;max-height:600px}:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;margin-bottom:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item{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){:host(.large) .calendar .container__days .day-item{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){:host(.large) .calendar .container__days .day-item{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){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .day-content{width:36px;height:36px}:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days vega-tooltip .day-item .day-content:after{width:6px;height:6px;bottom:-4px;left:calc(50% - 3px)}:host(.regular) .container__days .day-item.is-today .day-content,:host(.large) .container__days .day-item.is-today .day-content{border:1px solid rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.regular) .container__days .day-item.is-today.is-start-date .day-content,:host(.regular) .container__days .day-item.is-today.is-end-date .day-content,:host(.regular) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content,:host(.large) .container__days .day-item.is-today.is-start-date .day-content,:host(.large) .container__days .day-item.is-today.is-end-date .day-content,:host(.large) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content{border-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.large.range) .calendar .container__main{width:100%;max-width:1200px;max-height:600px}.calendar .container__main{display:flex;flex-direction:column}.calendar .container__months{display:flex}.calendar .container__months.columns-2{width:100%;flex-direction:row}.calendar .container__months .month-item{box-sizing:content-box;position:relative;width:100%;height:100%;z-index:1;display:flex;flex-direction:column}.calendar .container__months.columns-2 .month-item:first-of-type{padding-right:var(--vega-date-picker-calendar-range-space-size)}.calendar .container__months.columns-2 .month-item:last-of-type{padding-left:var(--vega-date-picker-calendar-range-space-size)}.calendar .container__months .month-item:nth-child(2)::before{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-bottom:32px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:none;width:1px;content:"";display:block}.calendar .container__months .month-item-weekdays-row{color:rgba(var(--v-text-primary, 32, 54, 69, 1));place-items:center}.calendar .aria-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.calendar .container__days{text-align:center;place-items:center;flex:1 1 auto}.calendar.static-height .container__days{align-content:flex-start}.calendar:not(.static-height) .container__days{flex:none}.calendar .container__months .month-item-weekdays-row>div,.calendar .container__days>div,.calendar .container__days>vega-tooltip>div,.calendar .container__days>a{padding:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:var(--vega-litepicker-day-height);width:100%;min-width:var(--vega-litepicker-day-width)}.calendar .container__days .day-item{color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:center;border-radius:9999px;cursor:default}.calendar .container__days .day-item .day-content{display:flex;align-items:center;justify-content:center;border-radius:4px;box-sizing:border-box}.calendar .container__days .day-item:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.calendar .container__days .day-item:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));border-width:0px;outline:none}.calendar .container__days .day-item:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days .day-item.is-locked,.calendar .container__days .day-item.is-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));-webkit-tap-highlight-color:transparent;cursor:not-allowed}.calendar .container__days .day-item.is-locked:hover,.calendar .container__days .day-item.is-disabled:hover{border-width:0px}.calendar .container__days .day-item.is-locked:active,.calendar .container__days .day-item.is-disabled:active{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:none}.calendar .container__days .day-item.is-disabled{text-decoration:line-through}.calendar .container__days .day-item.is-start-date,.calendar .container__days .day-item.is-end-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));position:relative;border-width:0px}.calendar .container__days .day-item.is-start-date:hover,.calendar .container__days .day-item.is-end-date:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar .container__days .day-item.is-start-date:active,.calendar .container__days .day-item.is-end-date:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar .container__days .day-item.is-start-date:focus-visible,.calendar .container__days .day-item.is-end-date:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;background-color:rgba(var(--v-bg-action-focus, 19, 98, 226, 1))}.calendar .container__days .day-item.is-start-date.is-disabled,.calendar .container__days .day-item.is-start-date.is-locked,.calendar .container__days .day-item.is-end-date.is-disabled,.calendar .container__days .day-item.is-end-date.is-locked{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1));color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}.calendar .container__days .day-item.is-start-date.is-end-date:after{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}.calendar .container__days .day-item.is-start-date:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-top-left-radius:9999px;border-bottom-left-radius:9999px;content:" ";z-index:-1;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.calendar .container__days .day-item.is-end-date:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-left-radius:0px;border-bottom-left-radius:0px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;content:" ";z-index:-1;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.calendar .container__days .day-item.is-in-range{border-radius:0px;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1));border-width:0px}.calendar .container__days .day-item.is-in-range:hover{position:relative}.calendar .container__days .day-item.is-in-range:hover:before{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1));border-radius:9999px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;content:" "}.calendar .container__days .day-item.is-in-range:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days vega-tooltip{width:100%}.calendar .container__days vega-tooltip .day-item .day-content{position:relative}.calendar .container__days vega-tooltip .day-item .day-content:after{position:absolute;border-radius:9999px;content:" ";background-color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar .container__days vega-tooltip .day-item.is-start-date .day-content:after,.calendar .container__days vega-tooltip .day-item.is-end-date .day-content:after,.calendar .container__days vega-tooltip .day-item:active:not(.is-locked):not(.is-disabled) .day-content:after{background-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar.mobilefriendly[data-plugins*=mobilefriendly] .container__days>div{height:var(--vega-date-picker-calendar-day-height)}.calendar .clear-button{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}.calendar .footer-container{margin-top:16px;height:24px}:host(.vega-force-hidden){display:none !important}.calendar{left:initial !important;top:initial !important;position:initial !important}.button-next-month svg,.button-previous-month svg{width:12px;height:16px}.calendar .container__days>div:not(.day-item){-webkit-tap-highlight-color:transparent}';export{Oe as vega_date_picker,it as vega_date_picker_calendar}
1
+ import{h as e,H as t,F as i,r as a,c as n,g as r}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{D as s}from"./p-5ed5aa26.js";import{Z as d,Q as h,_ as l,$ as c,a0 as m,a1 as p,a2 as g,a3 as f}from"./p-9f467a59.js";import{I as x}from"./p-abd7aeaa.js";import{c as v,V as w,L as u,M as y,I as b}from"./p-6e1ab235.js";import{V as _,I as C}from"./p-4415ad28.js";import{F as k}from"./p-882a220c.js";import{a as D,e as I,g as z,D as R}from"./p-6c170474.js";import{D as j,d as S}from"./p-31ac7386.js";import{a as M,q as O,p as P,o as E,N as V,d as L,f as A,V as T,r as Y,s as F}from"./p-5f81beae.js";import{V as H}from"./p-e1fbfd20.js";import{c as $}from"./p-86194314.js";import{i as B}from"./p-d27ae9ff.js";import{V as N}from"./p-fb40a829.js";import{F as W}from"./p-18e8d9b7.js";import{t as K}from"./p-b75ee3ba.js";import{F as U}from"./p-a528714c.js";import{C as Z}from"./p-2d0d575f.js";import{S as G}from"./p-24b4c64f.js";import{S as q}from"./p-d25db724.js";import{K as J}from"./p-c2df94f6.js";import{C as Q}from"./p-75b58efe.js";import{c as X}from"./p-3a537cd0.js";import{C as ee}from"./p-c208a3b7.js";import{T as te}from"./p-898bcb24.js";import{E as ie}from"./p-bf04ff19.js";import{S as ae}from"./p-1fb56e14.js";import{C as ne}from"./p-8187878e.js";import{w as re,x as oe}from"./p-95d1b547.js";import{O as se}from"./p-331a62d5.js";import{M as de}from"./p-6cf28c27.js";import"./p-ed45b3b6.js";import"./p-1e015382.js";import"./p-d884c644.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-f0e828d8.js";import"./p-7db918f4.js";import"./p-e6f0097f.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-43df17a1.js";import"./p-e6adf829.js";import"./p-593e0f80.js";import"./p-262ec334.js";import"./p-5a25014f.js";import"./p-951c0172.js";import"./p-d0687ec0.js";import"./p-87379d3c.js";import"./p-9493d87a.js";import"./p-5f377954.js";import"./p-781fd6e0.js";import"./p-4079e932.js";import"./p-0c667d6a.js";class he extends x{canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);const t=new Date(e[0]),i=new Date(e[1]),a=d(t,i);return{isValid:a,message:a?"":"The end date should be later than start date"}}isAcceptedInputType(e){return Array.isArray(e)&&2===e.length&&e.every(h)}}class le extends x{constructor(e){super(),this.evaluateSingleDate=e=>{const t=new Date(e);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.evaluateRangeDates=e=>{const t=new Date(e[0]),i=new Date(e[1]);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The start date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The start date should be earlier than {0}",args:[this.config.maxDate]}):i&&this.maxDate&&c(i,this.maxDate)?this.invalidResult({key:"The end date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.invalidResult=e=>({isValid:!1,message:e}),this.validResult=()=>({isValid:!0,message:""}),this.config=e,this.minDate=e.minDate?new Date(e.minDate):null,this.maxDate=e.maxDate?new Date(e.maxDate):null}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);return"string"==typeof e?this.evaluateSingleDate(e):this.evaluateRangeDates(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){return"string"==typeof e&&h(e)||Array.isArray(e)&&2===e.length&&e.every(h)}}const ce={"chevron-left":{icon:'<svg width="12" height="16" viewBox="0 0 12 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M1.2937 7.29414C0.903076 7.68477 0.903076 8.31914 1.2937 8.70977L7.2937 14.7098C7.68433 15.1004 8.3187 15.1004 8.70933 14.7098C9.09995 14.3191 9.09995 13.6848 8.70933 13.2941L3.41558 8.00039L8.7062 2.70664C9.09683 2.31602 9.09683 1.68164 8.7062 1.29102C8.31558 0.900391 7.6812 0.900391 7.29058 1.29102L1.29058 7.29102L1.2937 7.29414Z" fill="currentColor"/></svg>'},"chevron-right":{icon:'<svg width="12" height="16" viewBox="0 0 12 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M10.7063 7.29414C11.0969 7.68477 11.0969 8.31914 10.7063 8.70977L4.70627 14.7098C4.31565 15.1004 3.68127 15.1004 3.29065 14.7098C2.90002 14.3191 2.90002 13.6848 3.29065 13.2941L8.5844 8.00039L3.29377 2.70664C2.90315 2.31602 2.90315 1.68164 3.29377 1.29102C3.6844 0.900391 4.31877 0.900391 4.7094 1.29102L10.7094 7.29102L10.7063 7.29414Z" fill="currentColor"/></svg>'},calendar:{icon:'<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_41275_12898)"><path d="M5.75 2H10.25V0.75C10.25 0.335938 10.5844 0 11 0C11.4156 0 11.75 0.335938 11.75 0.75V2H13C14.1031 2 15 2.89531 15 4V14C15 15.1031 14.1031 16 13 16H3C1.89531 16 1 15.1031 1 14V4C1 2.89531 1.89531 2 3 2H4.25V0.75C4.25 0.335938 4.58437 0 5 0C5.41563 0 5.75 0.335938 5.75 0.75V2ZM2.5 7.75H5V6H2.5V7.75ZM2.5 9.25V11.25H5V9.25H2.5ZM6.5 9.25V11.25H9.5V9.25H6.5ZM11 9.25V11.25H13.5V9.25H11ZM13.5 6H11V7.75H13.5V6ZM13.5 12.75H11V14.5H13C13.275 14.5 13.5 14.275 13.5 14V12.75ZM9.5 12.75H6.5V14.5H9.5V12.75ZM5 12.75H2.5V14C2.5 14.275 2.72375 14.5 3 14.5H5V12.75ZM9.5 6H6.5V7.75H9.5V6Z" fill="currentColor"/></g><defs><clipPath id="clip0_41275_12898"><rect width="14" height="16" fill="white" transform="translate(1)"/></clipPath></defs></svg>'},"caret-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor">\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 d="M199 401c9.4 9.4 24.6 9.4 33.9 0L425 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L41 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L199 401z"/></svg>'},"bulls-eye":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">\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 d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM256 368a112 112 0 1 0 0-224 112 112 0 1 0 0 224zm0-272a160 160 0 1 1 0 320 160 160 0 1 1 0-320zm0 176a16 16 0 1 0 0-32 16 16 0 1 0 0 32zm0-80a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>'}};var me=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class pe extends w{constructor(){super(...arguments),this.renderInputPrefix=()=>e("div",{class:"vega-input-prefix"},e("vega-icon",{icon:H.getIconKey("calendar"),color:"text-secondary",onClick:async()=>{this.disabled||(await this.focusInput(),await this.vegaDatePickerCalendarRenderer.triggerRepick("start"))}})),this.isInputEnabled=()=>!this.readOnly&&!this.isMobileDevice,this.renderLabel=()=>this.label&&e("vega-field-label",{ref:e=>{j.addUniqueObserverToNode(e,M,(async()=>{await this.focusInput()}))},isFieldRequired:this.required,disabled:this.disabled,label:this.label}),this.focusInput=async()=>{var e,t;null===(e=this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef())||void 0===e||e.focus(),null===(t=this.vegaDatePickerRangeInputRenderer.getStartDateInputRef())||void 0===t||t.focus(),await this.calendarOpenStateController.showCalendar()}}getDatePickerContainer(){return this.datePickerContainer}render(){const i=["vega-input-container",this.size,`${this.mode}-mode`,this.isMobileDevice?"mobile":""];return e(t,{class:{disabled:this.disabled}},this.renderLabel(),e("div",{class:D(i),ref:e=>this.datePickerContainer=e},"range"===this.mode?this.vegaDatePickerRangeInputRenderer.render():this.vegaDatePickerSingleInputRenderer.render()),this.vegaDatePickerCalendarRenderer.render())}}H.register({calendar:ce.calendar}),me([v()],pe.prototype,"disabled",void 0),me([v()],pe.prototype,"size",void 0),me([v()],pe.prototype,"mode",void 0),me([v()],pe.prototype,"label",void 0),me([v()],pe.prototype,"required",void 0),me([v()],pe.prototype,"readOnly",void 0),me([v()],pe.prototype,"autoValidation",void 0),me([v()],pe.prototype,"host",void 0),me([v()],pe.prototype,"isMobileDevice",void 0),me([v()],pe.prototype,"vegaDatePickerSingleInputRenderer",void 0),me([v()],pe.prototype,"vegaDatePickerRangeInputRenderer",void 0),me([v()],pe.prototype,"vegaDatePickerCalendarRenderer",void 0),me([v()],pe.prototype,"calendarOpenStateController",void 0);var ge=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class fe extends w{constructor(){super(...arguments),this.onClickClearIcon=async()=>{this.vegaDatePickerValueController.setValue("range"===this.mode?["",""]:""),await this.calendarOpenStateController.hideCalendar()},this.isClearIconVisible=()=>{if("range"===this.mode){const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&!B(e,["",""])}{const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&Boolean(e.length)}}}renderClearIcon(){return e(i,null,this.showClearIcon&&this.isClearIconVisible()&&e("div",{class:"vega-input-clear-icon",tabIndex:-1,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:$()},e("vega-icon",{icon:"close"})))}}ge([v()],fe.prototype,"disabled",void 0),ge([v()],fe.prototype,"showClearIcon",void 0),ge([v()],fe.prototype,"mode",void 0),ge([v()],fe.prototype,"vegaDatePickerValueController",void 0),ge([v()],fe.prototype,"calendarOpenStateController",void 0);var xe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ve extends fe{constructor(){super(...arguments),this.render=()=>e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getSinglePlaceholder(),value:this.vegaDatePickerValueController.getValue(),ref:e=>this.singleDateInputRef=e,onChange:this.onSingleDateChange,disabled:this.disabled,onClick:()=>this.calendarOpenStateController.showCalendar()}),this.renderClearIcon()),this.getSinglePlaceholder=()=>this.placeholder?"string"!=typeof this.placeholder?(u.warn("The placeholder should be a string"),this.format):this.placeholder:this.format,this.onSingleDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue(this.vegaDatePickerFormatController.formatDate(t)):(this.vegaDatePickerValueController.setValue(""),this.singleDateInputRef.value="",u.warn("The date value of ${date} is invalid"))}}getSingleDateInputRef(){return this.singleDateInputRef}}xe([v()],ve.prototype,"placeholder",void 0),xe([v()],ve.prototype,"format",void 0),xe([v()],ve.prototype,"vegaDatePickerFormatController",void 0),xe([v()],ve.prototype,"vegaDatePickerRenderer",void 0),xe([v()],ve.prototype,"calendarOpenStateController",void 0);var we=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ue extends fe{constructor(){super(...arguments),this.render=()=>e(i,null,e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[0],value:this.vegaDatePickerValueController.getValue()[0],ref:e=>this.startDateInputRef=e,onChange:this.onStartDateChange,disabled:this.disabled,onClick:async()=>await this.onInputClicked("start")})),e("span",{class:{"range-input-divider":!0}}),e("div",{class:"date-picker-input"},e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[1],value:this.vegaDatePickerValueController.getValue()[1],ref:e=>this.endDateInputRef=e,onChange:this.onEndDateChange,disabled:this.disabled,onClick:async()=>await this.onInputClicked("end")}),this.renderClearIcon())),this.getRangePlaceholder=()=>this.placeholder?Array.isArray(this.placeholder)&&2===this.placeholder.length?this.placeholder:(u.warn("The placeholder should be an array, including start and end placeholder"),["Start Date","End Date"].map((e=>this.translationSlimmer.t(e)))):["Start Date","End Date"].map((e=>this.translationSlimmer.t(e))),this.onStartDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerFormatController.formatDate(t),this.vegaDatePickerValueController.getValue()[1]]):(this.vegaDatePickerValueController.setValue(["",this.vegaDatePickerValueController.getValue()[1]]),this.startDateInputRef.value="",u.warn("The date value of ${date} is invalid"))},this.onEndDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],this.vegaDatePickerFormatController.formatDate(t)]):(this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],""]),this.endDateInputRef.value="",u.warn("The date value of ${date} is invalid"))}}getStartDateInputRef(){return this.startDateInputRef}getEndDateInputRef(){return this.endDateInputRef}async onInputClicked(e){await this.calendarOpenStateController.showCalendar(),await this.vegaDatePickerCalendarRenderer.triggerRepick(e)}}we([v()],ue.prototype,"placeholder",void 0),we([v()],ue.prototype,"vegaDatePickerFormatController",void 0),we([v()],ue.prototype,"vegaDatePickerRenderer",void 0),we([v()],ue.prototype,"calendarOpenStateController",void 0),we([v()],ue.prototype,"translationSlimmer",void 0),we([v()],ue.prototype,"allowRepick",void 0),we([v()],ue.prototype,"format",void 0),we([v()],ue.prototype,"vegaDatePickerCalendarRenderer",void 0);var ye=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class be extends w{componentDidLoad(){this.appendCalendarToBodyIfMobile()}getCalendarContentBoxRef(){return this.calendarContentBoxRef}getCalendarRef(){return this.calendarRef}getMobileModalRef(){return this.mobileModalRef}async triggerRepick(e){this.allowRepick&&"range"===this.mode&&await this.calendarRef.triggerRepick(e)}render(){return this.isMobileDevice?this.mobileRender():this.renderCalendar()}mobileRender(){return e("vega-modal",{showCloseButton:!1,size:be.calendarModalSize,padding:"0",isVerticallyCentered:!0,backdropColor:"semi",ref:e=>{this.mobileModalRef=e,this.addModalObserver(e)}},e("div",{slot:"modal-content"},this.renderCalendar()))}renderCalendar(){return e("vega-box",{padding:{default:"size-12",S:"size-32"},corners:"rounded-12",backgroundColor:"bg-primary",shadow:"shadow-dropdown-menu",border:"border-input-field",ref:e=>{this.calendarContentBoxRef=e},class:"date-picker-content-box"},e("vega-box",{width:this.getDefaultCalendarDimension("width"),height:this.getDefaultCalendarDimension("height")},e("vega-date-picker-calendar",{selection:this.value,mode:this.mode,minDate:this.minDate,maxDate:this.maxDate,clearButton:this.clearButton,format:this.format,staticHeight:!1!==this.dropdownConfig.staticHeight,showYearMonthDropdowns:this.showYearMonthDropdowns,timezone:this.timezone,yearMonthDropdownProps:{isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")},ref:e=>{this.calendarRef=e,this.addCalendarObserver(e)},isDateDisabled:e=>this.isDateDisabled(e)})))}addCalendarObserver(e){j.addUniqueObserverToNode(e,O,(async e=>{await this.onCalendarSelected(e.detail)})),j.addUniqueObserverToNode(e,P,(async()=>{await this.calendarOpenStateController.hideCalendar()})),j.addUniqueObserverToNode(e,E,(async e=>{this.monthYearChangeEventEmitter.emit(e.detail)}))}addModalObserver(e){j.addUniqueObserverToNode(e,V,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!0)})),j.addUniqueObserverToNode(e,L,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!1)}))}async onCalendarSelected(e){("single"===this.mode||"range"===this.mode)&&this.vegaDatePickerValueController.setValue(e),this.isCalendarShow&&await this.calendarOpenStateController.hideCalendar()}appendCalendarToBodyIfMobile(){const e=K();this.isMobileDevice&&e&&e.body.append(this.mobileModalRef)}getDefaultCalendarDimension(e){if("height"===e&&!1===this.dropdownConfig.staticHeight)return"auto";let t=("range"!==this.mode||this.isMobileDevice?be.regularDatePickerCalendarDimensionsForSingle:be.regularDatePickerCalendarDimensionsForRange)[e];return"height"===e&&this.clearButton&&(t+=40),`${t}px`}}be.calendarModalSize=344,be.regularDatePickerCalendarDimensionsForSingle={width:280,height:320},be.regularDatePickerCalendarDimensionsForRange={width:608,height:358},ye([v()],be.prototype,"format",void 0),ye([v()],be.prototype,"value",void 0),ye([v()],be.prototype,"mode",void 0),ye([v()],be.prototype,"minDate",void 0),ye([v()],be.prototype,"maxDate",void 0),ye([v()],be.prototype,"clearButton",void 0),ye([v()],be.prototype,"dropdownConfig",void 0),ye([v()],be.prototype,"showYearMonthDropdowns",void 0),ye([v()],be.prototype,"timezone",void 0),ye([v()],be.prototype,"isMobileDevice",void 0),ye([v()],be.prototype,"isCalendarShow",void 0),ye([v()],be.prototype,"isDateDisabled",void 0),ye([v()],be.prototype,"allowRepick",void 0),ye([v()],be.prototype,"monthYearChangeEventEmitter",void 0),ye([v()],be.prototype,"vegaDatePickerValueController",void 0),ye([v()],be.prototype,"calendarOpenStateController",void 0),ye([y("componentDidLoad")],be.prototype,"componentDidLoad",null);var _e=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ce extends w{componentWillLoad(){this.value&&this.valueGuard(this.value)||this.setDefaultValueByMode()}watchValue(e,t){"range"===this.mode&&B(e,t)||(this.valueGuard(e)||this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),Z.notify(U,{host:this.host,detail:this.value}))}watchMode(){this.setDefaultValueByMode()}getValue(){return this.valueGuard(this.value),this.value}setValue(e){this.valueGuard(e)&&(this.value=e)}setDefaultValueByMode(){"range"===this.mode&&this.setValue(["",""]),"single"===this.mode&&this.setValue("")}valueGuard(e){let t;switch(this.mode){case"single":t=e&&"string"==typeof e&&!!m.fromString(e,this.format)||""===e;break;case"range":t=Array.isArray(e)&&2===e.length&&e.every((e=>!!m.fromString(e,this.format)||""===e))}return t||u.warn(`Invalid date picker value ${e} for ${this.mode} mode`),t}}_e([v({writable:!0})],Ce.prototype,"value",void 0),_e([v()],Ce.prototype,"mode",void 0),_e([v()],Ce.prototype,"format",void 0),_e([v()],Ce.prototype,"changeEventEmitter",void 0),_e([v()],Ce.prototype,"host",void 0),_e([v()],Ce.prototype,"isCalendarShow",void 0),_e([v()],Ce.prototype,"vegaDatePickerCalendarRenderer",void 0),_e([v()],Ce.prototype,"calendarOpenStateController",void 0),_e([y("componentWillLoad")],Ce.prototype,"componentWillLoad",null),_e([y("watchValue")],Ce.prototype,"watchValue",null),_e([y("watchMode")],Ce.prototype,"watchMode",null);var ke=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class De extends q{constructor(e){super(),this.formatDate=e=>m.fromString(e,this.format).toString(this.format),this.getInputElementRef=()=>{switch(this.inputType){case"single":return this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef();case"rangeStart":return this.vegaDatePickerRangeInputRenderer.getStartDateInputRef();case"rangeEnd":return this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()}},this.getInputModeStrategy=()=>this.datePickerFormatStrategy,this.getBlurModeStrategy=()=>null,this.getDateFormatMask=e=>{const t=e.match(/M/gi);return new G({mask:e.replace(/[MDY]/gi,"9"),slot:"9",accept:(t&&t.length)>2?/\w/g:/\d/g})},this.inputType=e}componentDidLoad(){this.setupStringFormatter(this.format)}watchFormat(e){this.setupStringFormatter(e)}setupStringFormatter(e){this.datePickerFormatStrategy=this.getDateFormatMask(e),this.setup()}}ke([v()],De.prototype,"format",void 0),ke([v()],De.prototype,"mode",void 0),ke([v()],De.prototype,"vegaDatePickerCalendarRenderer",void 0),ke([v()],De.prototype,"vegaDatePickerSingleInputRenderer",void 0),ke([v()],De.prototype,"vegaDatePickerRangeInputRenderer",void 0),ke([y("componentDidLoad")],De.prototype,"componentDidLoad",null),ke([y("watchFormat")],De.prototype,"watchFormat",null);var Ie=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ze extends J{constructor(){super((e=>[{keyCode:"Enter",activeElementInScope:()=>[e.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),e.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),e.vegaDatePickerRangeInputRenderer.getEndDateInputRef(),e.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef()],eventName:"keydown",callback:e=>{var t;const i=(null===(t=e.target.shadowRoot)||void 0===t?void 0:t.activeElement)||e.target;return null==i?void 0:i.click()}}]))}}Ie([v()],ze.prototype,"vegaDatePickerCalendarRenderer",void 0),Ie([v()],ze.prototype,"vegaDatePickerSingleInputRenderer",void 0),Ie([v()],ze.prototype,"vegaDatePickerRangeInputRenderer",void 0);const Re=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!1===e.autoValidation},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the selection mode of the date picker. Use `single` to allow selecting a single date",payloadValue:e=>"single"===e.mode},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the selection mode of the date picker. Use `range` to allow selecting a date range",payloadValue:e=>"range"===e.mode}];var je=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Se extends ie{constructor(){super((()=>({target:this.vegaDatePickerRenderer.getDatePickerContainer(),appendableElement:this.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef(),positionRelativeTo:this.dropdownConfig.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],alignment:["start","end"],isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")})),(()=>new ne),"isCalendarShow"),this.clearCalendarStateTaskQueue=new ae}connectedCallback(){this.isMobileDevice||super.connectedCallback()}disconnectedCallback(){this.isMobileDevice||super.disconnectedCallback()}componentDidLoad(){this.isMobileDevice||super.componentDidLoad()}async componentDidRender(){await this.clearCalendarStateTaskQueue.runTask()}async doOpen(){await this.showCalendar()}async doClose(){await this.hideCalendar()}async watchDisabled(){await this.hideCalendar()}async watchIsCalendarShow(){await this.clearCalendarSelectingState()}async showCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("show"):this.show()}async hideCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("hide"):this.hide(),this.focusContainerWithAnnouncement()}updateIsCalendarShowState(e){this.isCalendarShow=e}focusContainerWithAnnouncement(){const e=I();if((null==e?void 0:e.matches)&&e.matches(":focus-visible")){const e=this.vegaDatePickerRenderer.getDatePickerContainer();if(e){const t=this.buildAriaAnnouncement(this.value);e.setAttribute("role","group"),e.setAttribute("aria-label",t),e.setAttribute("tabindex","-1"),e.addEventListener("blur",(()=>{e.removeAttribute("role"),e.removeAttribute("aria-label"),e.removeAttribute("tabindex")}),{once:!0}),setTimeout((()=>e.focus()),0)}}}buildAriaAnnouncement(e){let t=null,i=null;return"single"===this.mode&&"string"==typeof e?t=e?m.fromString(e,this.format):null:"range"===this.mode&&Array.isArray(e)&&(t=e[0]?m.fromString(e[0],this.format):null,i=e[1]?m.fromString(e[1],this.format):null),`\n\t\t\t${p({startDate:t,endDate:i,mode:this.mode})},\n\t\t\t${N.t("date picker")}\n\t\t`}async clearCalendarSelectingState(){if(!this.isCalendarShow){const e=this.vegaDatePickerCalendarRenderer.getCalendarRef();await this.clearCalendarStateTaskQueue.enqueue({run:async()=>await e.reset()},!1)}}}je([v()],Se.prototype,"dropdownConfig",void 0),je([v()],Se.prototype,"vegaDatePickerRenderer",void 0),je([v()],Se.prototype,"vegaDatePickerCalendarRenderer",void 0),je([v()],Se.prototype,"value",void 0),je([v()],Se.prototype,"format",void 0),je([v()],Se.prototype,"mode",void 0),je([v({writable:!0})],Se.prototype,"isCalendarShow",void 0),je([v()],Se.prototype,"isMobileDevice",void 0),je([y("componentDidRender")],Se.prototype,"componentDidRender",null),je([y("doOpen")],Se.prototype,"doOpen",null),je([y("doClose")],Se.prototype,"doClose",null),je([y("watchDisabled")],Se.prototype,"watchDisabled",null),je([y("watchIsCalendarShow")],Se.prototype,"watchIsCalendarShow",null);var Me=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const Oe=class{constructor(e){a(this,e),this.vegaChange=n(this,"vegaChange",7),this.change=n(this,"change",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.globalSlimmers={},this.translationSlimmer=new te,this.calendarOpenStateController=new Se,this.vegaDatePickerValueController=new Ce,this.vegaDatePickerFormatController=new De("single"),this.startInputFormatController=new De("rangeStart"),this.endInputFormatController=new De("rangeEnd"),this.vegaDatePickerKeyboardController=new ze,this.vegaDatePickerRenderer=new pe,this.vegaDatePickerSingleInputRenderer=new ve,this.vegaDatePickerRangeInputRenderer=new ue,this.vegaDatePickerCalendarRenderer=new be,this.formFieldController=new k({propertyRules:[{propertyName:"required",ruleFactory:(e,t)=>e?new s({mode:t}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:e=>"range"===e?new he:null},{propertyName:"minDate",ruleFactory:(e,t)=>new le({minDate:e,maxDate:t}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(e,t)=>new le({minDate:t,maxDate:e}),dependence:"minDate"}],validationRulesName:"validationRules",defaultValue:e=>"range"===e.mode?["",""]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),touchableAreaGetter:()=>[this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),this.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()].filter(Boolean)}),this.changeEventEmitter=X(Oe,A),this.monthYearChangeEventEmitter=X(Oe,E),this.inputEventPrevent=new ee([A,P,E],(()=>this.vegaDatePickerCalendarRenderer.getCalendarRef())),this.vegaComponentUsageRuntimeMetricsSlimmer=new _(Re),this.isMobileDevice=z()===R.MOBILE,this.isCalendarShow=!1,this.mode="single",this.value="range"===this.mode?["",""]:"",this.required=!1,this.isValid=null,this.autoValidation=!0,this.format="MM/DD/YYYY",this.size="default",this.validationRules=[],this.clearButton=!1,this.readOnly=!1,this.allowRepick=!1,this.dropdownConfig={},this.showClearIcon=!0,this.showYearMonthDropdowns=!1,this.disabled=!1,this.isDateDisabled=()=>!1}watchIsCalendarShow(){}watchMode(){}watchValue(e,t){}watchFormat(e){}watchValidationRules(){}watchMinDate(e){}watchMaxDate(e){}watchAllowRepick(){}watchShowYearMonthDropdowns(){}watchDisabled(){}async doClose(){}async doOpen(){}render(){return o(this.vegaDatePickerRenderer.render(),this.host)}get host(){return r(this)}static get watchers(){return{isCalendarShow:["watchIsCalendarShow"],mode:["watchMode"],value:["watchValue"],format:["watchFormat"],validationRules:["watchValidationRules"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],allowRepick:["watchAllowRepick"],showYearMonthDropdowns:["watchShowYearMonthDropdowns"],disabled:["watchDisabled"]}}};Me([C()],Oe.prototype,"globalSlimmers",void 0),Me([b()],Oe.prototype,"translationSlimmer",void 0),Me([b()],Oe.prototype,"calendarOpenStateController",void 0),Me([b()],Oe.prototype,"vegaDatePickerValueController",void 0),Me([b()],Oe.prototype,"vegaDatePickerFormatController",void 0),Me([b()],Oe.prototype,"startInputFormatController",void 0),Me([b()],Oe.prototype,"endInputFormatController",void 0),Me([b()],Oe.prototype,"vegaDatePickerKeyboardController",void 0),Me([b()],Oe.prototype,"vegaDatePickerRenderer",void 0),Me([b()],Oe.prototype,"vegaDatePickerSingleInputRenderer",void 0),Me([b()],Oe.prototype,"vegaDatePickerRangeInputRenderer",void 0),Me([b()],Oe.prototype,"vegaDatePickerCalendarRenderer",void 0),Me([b()],Oe.prototype,"formFieldController",void 0),Me([b()],Oe.prototype,"changeEventEmitter",void 0),Me([b()],Oe.prototype,"monthYearChangeEventEmitter",void 0),Me([b()],Oe.prototype,"inputEventPrevent",void 0),Me([b()],Oe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Me([Q()],Oe.prototype,"watchValue",null),Oe.style=':host{display:inline-block;width:100%;text-align:left;line-height:normal}:host vega-field-label{margin-bottom:8px}:host .vega-input-container{position:relative;display:block;border-radius:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));display:flex;align-items:center}:host .vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-input-container .date-picker-input{padding-left:16px;padding-right:16px;width:100%;box-sizing:border-box;display:flex;align-items:center}:host .vega-input-container.default .date-picker-input{padding-left:16px;padding-right:16px}:host .vega-input-container.small .date-picker-input{padding-left:12px;padding-right:12px}:host .vega-input-container.default .date-picker-input input{padding-top:12px;padding-bottom:12px}:host .vega-input-container.small .date-picker-input input{padding-top:8px;padding-bottom:8px}:host .vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-input-container.single-mode.error:focus-within,:host .vega-input-container.range-mode.error .date-picker-input:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1));border-radius:8px}:host .vega-input-container.range-mode.error .date-picker-input:first-of-type:focus-within{margin:-1px 0 -1px -1px}:host .vega-input-container.range-mode.error .date-picker-input:last-of-type:focus-within{margin:-1px -1px -1px 0}:host .vega-input-container.single-mode:not(.error):focus-within,:host .vega-input-container.range-mode:not(.error) .date-picker-input:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));border-radius:8px}:host .vega-input-container.range-mode .date-picker-input:first-of-type:focus-within{margin:-1px 0 -1px -1px}:host .vega-input-container.range-mode .date-picker-input:last-of-type:focus-within{margin:-1px -1px -1px 0}:host .vega-input-container input{width:100%;box-sizing:content-box;border-width:0px;margin:0px;outline:2px solid transparent;outline-offset:2px;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-left:8px;padding-right:8px;padding-top:12px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}:host .range-input-divider{width:1px;height:24px;border-style:solid;border-right-width:1px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}:host .vega-input-container.range-mode.mobile .range-input-divider{width:100%;height:1px;border-style:solid;border-right-width:0px;border-top-width:1px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}:host .vega-input-prefix{display:flex;margin-right:8px}:host .vega-input-container.range-mode.mobile.small .vega-input-prefix{margin-right:8px}:host .vega-input-container.range-mode.mobile{flex-direction:column}:host .vega-input-container.range-mode.mobile .date-picker-input:last-of-type{padding-left:40px}:host .vega-input-container.range-mode.mobile.small .date-picker-input:last-of-type{padding-left:36px}:host(.disabled) .vega-input-container{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1));--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host(.disabled) .vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.disabled) .vega-input-container input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}';var Pe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ee extends w{render(){return e("div",{class:{calendar:!0,"static-height":this.staticHeight}},e("div",{class:"container__main"},this.headerRenderer.render(),this.renderContainer(),this.renderFooter()),e("div",{class:"aria-announcement","aria-live":"polite","aria-atomic":"true"},this.buildAnnouncement()))}renderContainer(){const t=this.shouldRenderRangeMonth();return e("div",{class:{container__months:!0,"columns-2":t}},t?this.renderRangeMonth():this.monthItemRenderer.render("start"))}renderRangeMonth(){return e(i,null,this.monthItemRenderer.render("start"),this.monthItemRenderer.render("end"))}renderFooter(){return this.clearButton&&e("div",{class:"footer-container"},e("vega-button-link",{ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.clearCalendar()}))},label:this.translationSlimmer.t("Clear")}))}shouldRenderRangeMonth(){return"range"===this.mode&&!this.isMobileDevice}clearCalendar(){this.clearEventEmitter.emit(),Z.notify(S.getSubject(this.host,re),{})}buildAnnouncement(){const{startDate:e,endDate:t}=this.calendarSelection;return p({mode:this.mode,startDate:e,endDate:t})}}Pe([v()],Ee.prototype,"host",void 0),Pe([v()],Ee.prototype,"clearButton",void 0),Pe([v()],Ee.prototype,"calendarSelection",void 0),Pe([v()],Ee.prototype,"monthItemRenderer",void 0),Pe([v()],Ee.prototype,"staticHeight",void 0),Pe([v()],Ee.prototype,"translationSlimmer",void 0),Pe([v()],Ee.prototype,"mode",void 0),Pe([v()],Ee.prototype,"clearEventEmitter",void 0),Pe([v()],Ee.prototype,"isMobileDevice",void 0),Pe([v()],Ee.prototype,"headerRenderer",void 0);const Ve=["January","February","March","April","May","June","July","August","September","October","November","December"];var Le=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ae extends w{render(){return("range"!==this.mode||this.showYearMonthDropdowns||this.isMobileDevice)&&e("vega-flex",{justifyContent:"center"},this.showYearMonthDropdowns?this.renderMonthDropdownSwitcher():this.renderCurrentMonth(),this.showYearMonthDropdowns?this.renderYearDropdownSwitcher():this.renderCurrentYear())}getMonthDropdownOptions(){const e=this.currentPeriod.current.year;return Ve.map(((t,i)=>({key:`${i}`,label:this.translationSlimmer.t(t),disabled:this.isDisabledMonth(e,i+1)})))}isDisabledMonth(e,t){var i,a,n,r;const o=null===(i=this.minCalendarDate)||void 0===i?void 0:i.month,s=null===(a=this.minCalendarDate)||void 0===a?void 0:a.year,d=null===(n=this.maxCalendarDate)||void 0===n?void 0:n.month,h=null===(r=this.maxCalendarDate)||void 0===r?void 0:r.year;return e<s||e>h||e===s&&o>t||e===h&&d<t}getYearDropdownOptions(){var e,t,i,a;const n=(new Date).getFullYear(),r=(null===(e=this.minCalendarDate)||void 0===e?void 0:e.year)||Math.min((null===(t=this.maxCalendarDate)||void 0===t?void 0:t.year)||n,n)-Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR,o=(null===(i=this.maxCalendarDate)||void 0===i?void 0:i.year)||Math.max((null===(a=this.minCalendarDate)||void 0===a?void 0:a.year)||n,n)+Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR,s=[];for(let e=r;e<=o;e++)s.push({key:String(e),label:String(e)});return s}renderMonthDropdownSwitcher(){const{month:t}=this.currentPeriod.current,i=t-1;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getMonthDropdownOptions(),selectedSourceKey:i.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,T,(e=>{const t=parseInt(e.detail);this.setDateBasedOnSelectedMonth(t)}))}},this.renderCurrentMonth())}renderYearDropdownSwitcher(){const{year:t}=this.currentPeriod.current;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getYearDropdownOptions(),selectedSourceKey:t.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,T,(e=>{this.setDateBasedOnSelectedYear(parseInt(e.detail))}))}},this.renderCurrentYear())}onDropdownShowOrHide(e){j.addUniqueObserverToNode(e,Y,(async()=>{e.classList.add("active")})),j.addUniqueObserverToNode(e,F,(()=>{const t=e.closest(".calendar");if(t){const e=t.querySelector("vega-dropdown.active");e&&e.classList.remove("active")}}))}renderCurrentMonth(){const t=this.translationSlimmer.t(this.currentPeriod.current.getMonthName());return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-name",size:"small",label:t}):e("div",{class:"month-item-name",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?$():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderCurrentYear(){const t=this.currentPeriod.current.year.toString();return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-year",size:"small",label:t}):e("div",{class:"month-item-year",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?$():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderDropdownSwitchIcon(){return this.showYearMonthDropdowns&&e("vega-icon",{icon:H.getIconKey("caret-down"),color:"text-link"})}setDateBasedOnSelectedMonth(e){const{year:t}=this.currentPeriod.current,i=new Date(t,e,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}setDateBasedOnSelectedYear(e){const{month:t}=this.currentPeriod.current,i=new Date(e,t-1,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}}H.register({"caret-down":ce["caret-down"]}),Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR=10,Ae.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR=10,Le([v()],Ae.prototype,"currentPeriodController",void 0),Le([v()],Ae.prototype,"showYearMonthDropdowns",void 0),Le([v()],Ae.prototype,"translationSlimmer",void 0),Le([v()],Ae.prototype,"minCalendarDate",void 0),Le([v()],Ae.prototype,"maxCalendarDate",void 0),Le([v()],Ae.prototype,"yearMonthDropdownProps",void 0),Le([v()],Ae.prototype,"currentPeriod",void 0),Le([v()],Ae.prototype,"size",void 0),Le([v()],Ae.prototype,"mode",void 0),Le([v()],Ae.prototype,"isMobileDevice",void 0);var Te=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ye extends w{connectedCallback(){this.initCalendarClearObserver()}disconnectedCallback(){this.removeCalendarClearObserver()}initCalendarClearObserver(){this.calendarClearObserver=new se(this.canAcceptClearEvent.bind(this),this.clear.bind(this)),Z.register(S.getSubject(this.host,re),this.calendarClearObserver)}removeCalendarClearObserver(){Z.unregister(S.getSubject(this.host,re),this.calendarClearObserver)}canAcceptClearEvent(){return!0}}Te([v()],Ye.prototype,"host",void 0),Te([y("connectedCallback")],Ye.prototype,"connectedCallback",null),Te([y("disconnectedCallback")],Ye.prototype,"disconnectedCallback",null);var Fe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class He extends Ye{connectedCallback(){super.connectedCallback(),this.initCalendarPeriodUpdateObserver()}disconnectedCallback(){super.disconnectedCallback(),this.removeCalendarPeriodUpdateObserver()}componentWillLoad(){this.setCurrentMonthPeriod()}watchMaxCalendarDate(){this.setCurrentMonthPeriod()}watchMinCalendarDate(){this.setCurrentMonthPeriod()}watchCurrentPeriod(){this.monthYearChangeEventEmitter.emit(this.getCurrentYearMonthByPeriod())}resetCurrentPeriod(){this.setCurrentMonthPeriod()}clear(){this.setCurrentMonthPeriod()}gotoNextPeriod(){const e=this.isRangeView()?this.currentPeriod.next().next():this.currentPeriod.next();this.updateCalendarPeriod(e)}gotoPreviousPeriod(){const e=this.isRangeView()?this.currentPeriod.previous().previous():this.currentPeriod.previous();this.updateCalendarPeriod(e)}updateCalendarPeriod(e){this.currentPeriod&&this.currentPeriod.equal(e)||(this.currentPeriod=e)}setCurrentMonthPeriod(){let e;const t=this.calendarSelection.startDate;e=f(t)?t:this.minCalendarDate&&(this.today.isBefore(this.minCalendarDate)||this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate))?this.minCalendarDate:this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate)?this.maxCalendarDate:this.today,this.updateCalendarPeriod(new g(e,!0,this.timezone))}isRangeView(){return"range"===this.mode&&!this.isMobileDevice}getCurrentYearMonthByPeriod(){const e={month:Ve[this.currentPeriod.current.month-1],year:`${this.currentPeriod.current.year}`};return"range"===this.mode?[e,{month:Ve[this.currentPeriod.endDate.month-1],year:`${this.currentPeriod.endDate.year}`}]:e}initCalendarPeriodUpdateObserver(){j.addUniqueObserverToNode(this.host,oe,this.setCurrentMonthPeriod.bind(this))}removeCalendarPeriodUpdateObserver(){j.removeUniqueObserverFromNode(this.host,oe)}}Fe([v({writable:!0})],He.prototype,"currentPeriod",void 0),Fe([v()],He.prototype,"host",void 0),Fe([v()],He.prototype,"today",void 0),Fe([v()],He.prototype,"mode",void 0),Fe([v()],He.prototype,"format",void 0),Fe([v()],He.prototype,"timezone",void 0),Fe([v()],He.prototype,"minCalendarDate",void 0),Fe([v()],He.prototype,"maxCalendarDate",void 0),Fe([v()],He.prototype,"isMobileDevice",void 0),Fe([v()],He.prototype,"monthYearChangeEventEmitter",void 0),Fe([v()],He.prototype,"calendarSelection",void 0),Fe([y("connectedCallback")],He.prototype,"connectedCallback",null),Fe([y("disconnectedCallback")],He.prototype,"disconnectedCallback",null),Fe([y("componentWillLoad")],He.prototype,"componentWillLoad",null),Fe([y("watchMaxCalendarDate")],He.prototype,"watchMaxCalendarDate",null),Fe([y("watchMinCalendarDate")],He.prototype,"watchMinCalendarDate",null),Fe([y("watchCurrentPeriod")],He.prototype,"watchCurrentPeriod",null),Fe([y("reset")],He.prototype,"resetCurrentPeriod",null);var $e=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Be extends w{connectedCallback(){this.setToday()}watchTimezone(){this.setToday()}setToday(){this.today=m.from(new Date,this.timezone)}}$e([v()],Be.prototype,"timezone",void 0),$e([v({writable:!0})],Be.prototype,"today",void 0),$e([y("connectedCallback")],Be.prototype,"connectedCallback",null),$e([y("watchTimezone")],Be.prototype,"watchTimezone",null);var Ne=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class We extends w{constructor(){super(...arguments),this.monthViewGenerator=new de}render(t){const i="end"===t?this.currentPeriod.next():this.currentPeriod,a=this.monthViewGenerator.generate(i);return e("div",{class:"month-item"},this.renderCurrentYearMonth(i),this.renderWeek(a),this.renderDays(a,i))}renderCurrentYearMonth(t){return"range"===this.mode&&!this.isMobileDevice&&e("vega-box",{class:"current-month-year"},this.translationSlimmer.t(t.current.getMonthName())," ",t.current.year)}renderWeek(t){return e("vega-grid",{class:"month-item-weekdays-row",column:"7-auto",row:1},t.weekdays.map((t=>{const i=this.translationSlimmer.t(`${t}-full`);return e("div",{key:t,role:"columnheader","aria-label":i},this.translationSlimmer.t(`${t}-short`))})))}renderDays(t,i){return e("vega-grid",{class:"container__days",column:"7-auto",row:this.staticHeight?6:"6-auto"},t.dateItems.flat().filter((e=>e.month<=i.current.month||e.year<i.current.year)).map((e=>this.renderItem(e,i))))}renderItem(e,t){const i=this.dateIndicator(e.toDate()),a=this.renderDay(e,t);return i&&i.text?this.renderDayWithIndicator(i,a):a}renderDayWithIndicator(t,i){return e("vega-tooltip",Object.assign({},t),i)}renderDay(t,i){const a=t.month===i.current.month,n=this.isBeforeMinDate(t)||this.isAfterMaxDate(t),r=this.getCurrentRangeDates(),o=this.isDateDisabled(t.toDate()),s=t.isAfter(r[0])&&t.isBefore(r[1]),d=a&&!n&&!o;return e("div",{key:`${t.month}-${t.date}`,class:a&&{"day-item":!0,"is-today":t.equal(this.today),"is-start-date":t.equal(r[0]),"is-in-range":s,"is-end-date":t.equal(r[1]),"is-locked":n,"is-disabled":o},onClick:()=>d&&this.selectionController.onDayClick(t),onMouseEnter:()=>d&&this.selectionController.onDayHover(t),onKeyDown:$(),role:"menuitem","aria-label":`${t.getMonthName()} ${t.date} ${t.year}`,"aria-hidden":a?void 0:"true","aria-disabled":n||o?"true":void 0,tabIndex:d?0:-1},e("div",{class:"day-content"},a?t.date:""))}getCurrentRangeDates(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;return f(e)&&!t&&this.hoverDate?this.hoverDate.isBefore(e)?[this.hoverDate,e]:[e,this.hoverDate]:!f(e)&&t&&this.hoverDate?this.hoverDate.isBefore(t)?[this.hoverDate,t]:[t,this.hoverDate]:[e,t]}isBeforeMinDate(e){return this.minCalendarDate&&e.isBefore(this.minCalendarDate)}isAfterMaxDate(e){return this.maxCalendarDate&&e.isAfter(this.maxCalendarDate)}}Ne([v()],We.prototype,"currentPeriod",void 0),Ne([v()],We.prototype,"today",void 0),Ne([v()],We.prototype,"translationSlimmer",void 0),Ne([v()],We.prototype,"hoverDate",void 0),Ne([v()],We.prototype,"maxCalendarDate",void 0),Ne([v()],We.prototype,"minCalendarDate",void 0),Ne([v()],We.prototype,"selectionController",void 0),Ne([v()],We.prototype,"calendarSelection",void 0),Ne([v()],We.prototype,"staticHeight",void 0),Ne([v()],We.prototype,"mode",void 0),Ne([v()],We.prototype,"size",void 0),Ne([v()],We.prototype,"isDateDisabled",void 0),Ne([v()],We.prototype,"dateIndicator",void 0),Ne([v()],We.prototype,"isMobileDevice",void 0);class Ke{constructor(e,t,i){if(this.startDate=e,this.endDate=t,this.mode=i,"range"===this.mode&&this.startDate&&this.endDate&&this.startDate.isAfter(this.endDate)){const e=this.startDate;this.startDate=this.endDate,this.endDate=e}}static fromSelection(e,t,i){let a=null,n=null;if(this.isValidSelection(e,t,i))if("single"===t&&"string"==typeof e){const t=m.fromString(e,i);a=t,n=t}else"range"===t&&Array.isArray(e)&&(a=m.fromString(e[0],i),n=m.fromString(e[1],i));return new Ke(a,n,t)}static isValidSelection(e,t,i){let a;switch(t){case"single":a=this.isValidDateString(e,i);break;case"range":a=Array.isArray(e)&&2===e.length&&e.every((e=>this.isValidDateString(e,i)))}return a||u.warn(`Invalid date picker calendar selection ${e} for ${t} mode`),a}static isValidDateString(e,t){return e&&"string"==typeof e&&!!m.fromString(e,t)||""===e}toSelection(e){var t,i,a;return"range"===this.mode?[(null===(t=this.startDate)||void 0===t?void 0:t.toString(e))||"",(null===(i=this.endDate)||void 0===i?void 0:i.toString(e))||""]:(null===(a=this.startDate)||void 0===a?void 0:a.toString(e))||""}equals(e){if(!e)return!1;const t=this.startDate&&e.startDate?this.startDate.equal(e.startDate):this.startDate===this.endDate,i=this.endDate&&e.endDate?this.endDate.equal(e.endDate):this.endDate===e.endDate;return t&&i}isCompleted(){return f(this.startDate)&&("range"!==this.mode||f(this.endDate))}isEmpty(){return!f(this.startDate)&&!f(this.endDate)}}var Ue=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ze extends Ye{componentWillLoad(){this.setCalendarSelectionBySelection(this.selection)}watchSelection(e){!this.isSameSelection(e,this.calendarSelection.toSelection(this.format))&&(this.setCalendarSelectionBySelection(e),this.notifyPeriodChange())}resetRange(){const e=!this.calendarSelection.isCompleted()&&!this.calendarSelection.isEmpty()&&!!this.previousCalendarSelection;this.setCalendarSelectionBySelection(e?this.previousCalendarSelection.toSelection(this.format):this.selection),this.hoverDate=null}watchCalendarSelection(){(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&this.setSelection(this.calendarSelection.toSelection(this.format))}clear(){this.setCalendarSelectionByRange(null,null),this.hoverDate=null}onDayClick(e){"single"===this.mode?this.setCalendarSelectionByRange(e,e):"range"===this.mode&&(this.calendarSelection.startDate&&!this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.startDate,e):!this.calendarSelection.startDate&&this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.endDate,e):this.setCalendarSelectionByRange(e,null),this.hoverDate=null)}onDayHover(e){const t=this.allowRepickController.getRepickType();t&&"range"===this.mode&&this.calendarSelection.isCompleted()&&("start"===t?this.setCalendarSelectionByRange(null,this.calendarSelection.endDate):this.setCalendarSelectionByRange(this.calendarSelection.startDate,null)),this.calendarSelection.isEmpty()||this.calendarSelection.isCompleted()||(this.hoverDate=e)}setCalendarSelectionBySelection(e){const t=Ke.fromSelection(e,this.mode,this.format);this.calendarSelection&&(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&(this.previousCalendarSelection=this.calendarSelection),t.equals(this.calendarSelection)||(this.calendarSelection=t),this.setSelection(t.toSelection(this.format))}setCalendarSelectionByRange(e,t){this.calendarSelection=new Ke(e,t,this.mode)}setSelection(e){this.isSameSelection(e,this.selection)||(this.selection=e,this.vegaSelectionChangeEventEmitter.emit(this.selection))}isSameSelection(e,t){return"range"===this.mode&&Array.isArray(e)&&Array.isArray(t)?B(e,t):e===t}notifyPeriodChange(){Z.notify(S.getSubject(this.host,oe),{})}}Ue([v()],Ze.prototype,"host",void 0),Ue([v()],Ze.prototype,"mode",void 0),Ue([v()],Ze.prototype,"format",void 0),Ue([v({writable:!0})],Ze.prototype,"selection",void 0),Ue([v({writable:!0})],Ze.prototype,"calendarSelection",void 0),Ue([v({writable:!0})],Ze.prototype,"hoverDate",void 0),Ue([v()],Ze.prototype,"clearEventEmitter",void 0),Ue([v()],Ze.prototype,"vegaSelectionChangeEventEmitter",void 0),Ue([v()],Ze.prototype,"allowRepickController",void 0),Ue([v()],Ze.prototype,"translationSlimmer",void 0),Ue([y("componentWillLoad")],Ze.prototype,"componentWillLoad",null),Ue([y("watchSelection")],Ze.prototype,"watchSelection",null),Ue([y("reset")],Ze.prototype,"resetRange",null),Ue([y("watchCalendarSelection")],Ze.prototype,"watchCalendarSelection",null);var Ge=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class qe extends w{componentWillLoad(){this.setMaxCalendarDate(),this.setMinCalendarDate()}watchMaxDate(){this.setMaxCalendarDate()}watchMinDate(){this.setMinCalendarDate()}setMaxCalendarDate(){this.maxCalendarDate=m.fromString(this.maxDate,this.format)}setMinCalendarDate(){this.minCalendarDate=m.fromString(this.minDate,this.format)}}Ge([v()],qe.prototype,"maxDate",void 0),Ge([v()],qe.prototype,"minDate",void 0),Ge([v()],qe.prototype,"format",void 0),Ge([v({writable:!0})],qe.prototype,"maxCalendarDate",void 0),Ge([v({writable:!0})],qe.prototype,"minCalendarDate",void 0),Ge([y("componentWillLoad")],qe.prototype,"componentWillLoad",null),Ge([y("watchMaxDate")],qe.prototype,"watchMaxDate",null),Ge([y("watchMinDate")],qe.prototype,"watchMinDate",null);var Je=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Qe extends w{triggerRepick(e){this.repickType=e,"end"===e&&this.setEndDateAsCurrentMonthPeriod()}watchCalendarSelection(){this.calendarSelection.isCompleted()&&(this.repickType=null)}getRepickType(){return this.repickType}setEndDateAsCurrentMonthPeriod(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;if(t){const i=f(e)&&e.compare(t).inMonth?e:this.isMobileDevice?t:t.add(0,-1);this.currentPeriodController.updateCalendarPeriod(new g(i))}}}Je([v()],Qe.prototype,"calendarSelection",void 0),Je([v()],Qe.prototype,"isMobileDevice",void 0),Je([v()],Qe.prototype,"currentPeriodController",void 0),Je([y("triggerRepick")],Qe.prototype,"triggerRepick",null),Je([y("watchCalendarSelection")],Qe.prototype,"watchCalendarSelection",null);var Xe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class et extends w{render(){return e("vega-flex",{class:"month-item-header",alignItems:"center"},this.renderSwitcher(),this.yearMonthSwitcherRender.render())}renderSwitcher(){return e("vega-flex",{gap:"size-8",alignItems:"center"},this.renderPrevIcon(),this.renderToday(),this.renderNextIcon())}renderPrevIcon(){const t=this.currentPeriod.current.firstDateOfMonth(),i=this.minCalendarDate&&(t.isBefore(this.minCalendarDate)||t.equal(this.minCalendarDate));return e("vega-button-circle",{class:{"button-previous-month":!0,disabled:i},variant:"icon-only",icon:H.getIconKey("chevron-left"),"data-aria-label":this.translationSlimmer.t("Previous month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoPreviousPeriod()}))},iconColor:i?"text-disabled":"text-link",size:this.getNavigationIconSize(),disabled:i})}renderNextIcon(){const t=("range"===this.mode?this.currentPeriod.next():this.currentPeriod).current.lastDateOfMonth(),i=this.maxCalendarDate&&(t.isAfter(this.maxCalendarDate)||t.equal(this.maxCalendarDate));return e("vega-button-circle",{class:{"button-next-month":!0,disabled:i},variant:"icon-only",icon:H.getIconKey("chevron-right"),"data-aria-label":this.translationSlimmer.t("Next month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoNextPeriod()}))},size:this.getNavigationIconSize(),iconColor:i?"text-disabled":"text-link",disabled:i})}renderToday(){const t="range"===this.mode&&!this.isMobileDevice&&"small"!==this.size;return e("vega-button-link",{class:{"button-today":!0,"with-label":t},"data-aria-label":this.translationSlimmer.t("Today"),label:t?this.translationSlimmer.t("Today"):"",ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.updateCalendarPeriod(new g(this.today,!0,this.timezone))}))},size:"large"===this.size?"default":"small",icon:H.getIconKey("bulls-eye")})}getNavigationIconSize(){return"large"===this.size?"small":"extra-small"}}H.register({"chevron-left":ce["chevron-left"],"chevron-right":ce["chevron-right"],"bulls-eye":ce["bulls-eye"]}),Xe([v()],et.prototype,"currentPeriod",void 0),Xe([v()],et.prototype,"today",void 0),Xe([v()],et.prototype,"translationSlimmer",void 0),Xe([v()],et.prototype,"yearMonthSwitcherRender",void 0),Xe([v()],et.prototype,"mode",void 0),Xe([v()],et.prototype,"currentPeriodController",void 0),Xe([v()],et.prototype,"maxCalendarDate",void 0),Xe([v()],et.prototype,"minCalendarDate",void 0),Xe([v()],et.prototype,"size",void 0),Xe([v()],et.prototype,"timezone",void 0),Xe([v()],et.prototype,"isMobileDevice",void 0);var tt=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const it=class{constructor(e){a(this,e),this.vegaClear=n(this,"vegaClear",7),this.clear=n(this,"clear",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.vegaSelectionChange=n(this,"vegaSelectionChange",7),this.selectionChange=n(this,"selectionChange",7),this.globalSlimmers={},this.renderer=new Ee,this.monthItemRenderer=new We,this.headerRenderer=new et,this.translationSlimmer=new te,this.todayController=new Be,this.selectionController=new Ze,this.minMaxDateController=new qe,this.currentPeriodController=new He,this.yearMonthSwitcherRender=new Ae,this.allowRepickController=new Qe,this.vegaComponentUsageRuntimeMetricsSlimmer=new _,this.clearEventEmitter=X(it,P),this.monthYearChangeEventEmitter=X(it,E),this.vegaSelectionChangeEventEmitter=X(it,O),this.isMobileDevice=z()===R.MOBILE,this.size="regular",this.mode="single",this.selection="range"===this.mode?["",""]:"",this.format="MM/DD/YYYY",this.clearButton=!1,this.staticHeight=!1,this.showYearMonthDropdowns=!1,this.yearMonthDropdownProps={},this.isDateDisabled=()=>!1,this.dateIndicator=()=>null}watchCurrentPeriod(){}watchCalendarSelection(){}watchMaxCalendarDate(){}watchMinCalendarDate(){}watchSelection(){}watchMinDate(){}watchMaxDate(){}watchTimezone(){}async reset(){}async triggerRepick(e){}render(){return o(e(t,{class:{[this.size]:!0,[this.mode]:!0,mobile:this.isMobileDevice}},this.renderer.render()),this.host)}get host(){return r(this)}static get watchers(){return{currentPeriod:["watchCurrentPeriod"],calendarSelection:["watchCalendarSelection"],maxCalendarDate:["watchMaxCalendarDate"],minCalendarDate:["watchMinCalendarDate"],selection:["watchSelection"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],timezone:["watchTimezone"]}}};tt([C()],it.prototype,"globalSlimmers",void 0),tt([b()],it.prototype,"renderer",void 0),tt([b()],it.prototype,"monthItemRenderer",void 0),tt([b()],it.prototype,"headerRenderer",void 0),tt([b()],it.prototype,"translationSlimmer",void 0),tt([b()],it.prototype,"todayController",void 0),tt([b()],it.prototype,"selectionController",void 0),tt([b()],it.prototype,"minMaxDateController",void 0),tt([b()],it.prototype,"currentPeriodController",void 0),tt([b()],it.prototype,"yearMonthSwitcherRender",void 0),tt([b()],it.prototype,"allowRepickController",void 0),tt([b()],it.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),tt([b()],it.prototype,"clearEventEmitter",void 0),tt([b()],it.prototype,"monthYearChangeEventEmitter",void 0),tt([b()],it.prototype,"vegaSelectionChangeEventEmitter",void 0),it.style=':host{--vega-litepicker-container-width:calc(var(--vega-litepicker-day-width) * 7)}.calendar,.calendar .container__main,.calendar .container__months{height:100%}:host(.small.range) .calendar.static-height .container__main,:host(.regular.range) .calendar.static-height .container__main,:host(.large.range) .calendar.static-height .container__main{aspect-ratio:1/1}:host .month-item-header .button-today::part(link){color:rgba(var(--v-text-link, 19, 98, 226, 1));vertical-align:top}:host .month-item-header vega-dropdown .month-item-name,:host .month-item-header vega-dropdown .month-item-year{display:flex;gap:8px;align-items:center;cursor:pointer;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}:host .month-item-header vega-dropdown.active .month-item-name,:host .month-item-header vega-dropdown.active .month-item-year{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .month-item-header .button-previous-month.disabled,:host .month-item-header .button-next-month.disabled{pointer-events:none}:host(.small.single) vega-dropdown .month-item-name span{max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.small){--vega-litepicker-day-width:28px;--vega-litepicker-day-height:28px;--vega-date-picker-calendar-range-space-size:16px}:host(.small) .current-month-year{text-align:center;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(.small) .current-month-year{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(.small) .current-month-year{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(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header{gap:8px;margin-bottom:12px}:host(.small) .month-item-header .button-today{height:16px}:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{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(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{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(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{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(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header .month-item-name{margin-right:4px}:host(.small) .month-item-header vega-dropdown .month-item-name{margin-right:8px}:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:4px;padding-right:4px;font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;gap:2px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{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(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{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(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .month-item-header vega-dropdown .month-item-name vega-icon,:host(.small) .month-item-header vega-dropdown .month-item-year vega-icon{width:12px;height:12px}:host(.small) .month-item-header .small-month-item-name{margin-right:8px}:host(.small) .month-item-header .small-month-item-name::part(label-container),:host(.small) .month-item-header .small-month-item-year::part(label-container){font-size:14px}:host(.small) .month-item .current-month-year{margin-bottom:4px}:host(.small) .calendar .container__main{max-width:360px;max-height:360px}:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;margin-bottom:4px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-header{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(.small) .calendar .container__months .month-item-header{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(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row{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(.small) .calendar .container__months .month-item-weekdays-row{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(.small) .calendar .container__months .month-item-weekdays-row{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(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row div{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(.small) .calendar .container__months .month-item-weekdays-row div{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(.small) .calendar .container__months .month-item-weekdays-row div{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(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item{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(.small) .calendar .container__days .day-item{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(.small) .calendar .container__days .day-item{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(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .calendar .container__days .day-item .day-content{width:18px;height:18px}:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;width:18px;height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__days .day-item.is-today .day-content{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(.small) .calendar .container__days .day-item.is-today .day-content{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(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.small.range) .calendar .container__main{width:100%;max-width:600px;max-height:360px}:host(.regular){--vega-litepicker-day-width:40px;--vega-litepicker-day-height:40px;--vega-date-picker-calendar-range-space-size:24px}:host(.regular) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header{gap:16px;margin-bottom:24px}:host(.regular) .month-item-header .button-today{height:16px}:host(.regular) .month-item-header .button-today.with-label{height:18px}:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header .month-item-name{margin-right:4px}:host(.regular) .month-item-header vega-dropdown .month-item-name{margin-right:16px}:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:8px;padding-right:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px;padding-top:3px;padding-bottom:3px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}:host(.regular) .month-item .current-month-year{margin-bottom:12px}:host(.regular) .calendar .container__main{max-width:450px;max-height:450px}:host(.regular) .calendar .container__months .month-item-header{margin-bottom:12px}:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__months .month-item-weekdays-row 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){:host(.regular) .calendar .container__months .month-item-weekdays-row 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){:host(.regular) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item .day-content{width:24px;height:24px}:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.regular.range) .calendar .container__main{width:100%;max-width:900px;max-height:450px}:host(.large){--vega-litepicker-day-width:56px;--vega-litepicker-day-height:56px;--vega-date-picker-calendar-range-space-size:40px}:host(.large) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header{gap:16px;margin-bottom:24px}:host(.large) .month-item-header .button-today{height:16px}:host(.large) .month-item-header .button-today.with-label{height:24px}:host(.large) .month-item-header .month-item-name{margin-right:4px}:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header vega-dropdown .month-item-name{margin-right:24px}:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{border-radius:8px;padding-left:12px;padding-right:12px;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;padding-top:7px;padding-bottom:7px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.large) .month-item .current-month-year{margin-bottom:16px}:host(.large) .calendar .container__main{max-width:600px;max-height:600px}:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;margin-bottom:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item{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){:host(.large) .calendar .container__days .day-item{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){:host(.large) .calendar .container__days .day-item{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){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .day-content{width:36px;height:36px}:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days vega-tooltip .day-item .day-content:after{width:6px;height:6px;bottom:-4px;left:calc(50% - 3px)}:host(.regular) .container__days .day-item.is-today .day-content,:host(.large) .container__days .day-item.is-today .day-content{border:1px solid rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.regular) .container__days .day-item.is-today.is-start-date .day-content,:host(.regular) .container__days .day-item.is-today.is-end-date .day-content,:host(.regular) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content,:host(.large) .container__days .day-item.is-today.is-start-date .day-content,:host(.large) .container__days .day-item.is-today.is-end-date .day-content,:host(.large) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content{border-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.large.range) .calendar .container__main{width:100%;max-width:1200px;max-height:600px}.calendar .container__main{display:flex;flex-direction:column}.calendar .container__months{display:flex}.calendar .container__months.columns-2{width:100%;flex-direction:row}.calendar .container__months .month-item{box-sizing:content-box;position:relative;width:100%;height:100%;z-index:1;display:flex;flex-direction:column}.calendar .container__months.columns-2 .month-item:first-of-type{padding-right:var(--vega-date-picker-calendar-range-space-size)}.calendar .container__months.columns-2 .month-item:last-of-type{padding-left:var(--vega-date-picker-calendar-range-space-size)}.calendar .container__months .month-item:nth-child(2)::before{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-bottom:32px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:none;width:1px;content:"";display:block}.calendar .container__months .month-item-weekdays-row{color:rgba(var(--v-text-primary, 32, 54, 69, 1));place-items:center}.calendar .aria-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.calendar .container__days{text-align:center;place-items:center;flex:1 1 auto}.calendar.static-height .container__days{align-content:flex-start}.calendar:not(.static-height) .container__days{flex:none}.calendar .container__months .month-item-weekdays-row>div,.calendar .container__days>div,.calendar .container__days>vega-tooltip>div,.calendar .container__days>a{padding:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:var(--vega-litepicker-day-height);width:100%;min-width:var(--vega-litepicker-day-width)}.calendar .container__days .day-item{color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:center;border-radius:9999px;cursor:default}.calendar .container__days .day-item .day-content{display:flex;align-items:center;justify-content:center;border-radius:4px;box-sizing:border-box}.calendar .container__days .day-item:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.calendar .container__days .day-item:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));border-width:0px;outline:none}.calendar .container__days .day-item:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days .day-item.is-locked,.calendar .container__days .day-item.is-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));-webkit-tap-highlight-color:transparent;cursor:not-allowed}.calendar .container__days .day-item.is-locked:hover,.calendar .container__days .day-item.is-disabled:hover{border-width:0px}.calendar .container__days .day-item.is-locked:active,.calendar .container__days .day-item.is-disabled:active{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:none}.calendar .container__days .day-item.is-disabled{text-decoration:line-through}.calendar .container__days .day-item.is-start-date,.calendar .container__days .day-item.is-end-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));position:relative;border-width:0px}.calendar .container__days .day-item.is-start-date:hover,.calendar .container__days .day-item.is-end-date:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar .container__days .day-item.is-start-date:active,.calendar .container__days .day-item.is-end-date:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar .container__days .day-item.is-start-date:focus-visible,.calendar .container__days .day-item.is-end-date:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;background-color:rgba(var(--v-bg-action-focus, 19, 98, 226, 1))}.calendar .container__days .day-item.is-start-date.is-disabled,.calendar .container__days .day-item.is-start-date.is-locked,.calendar .container__days .day-item.is-end-date.is-disabled,.calendar .container__days .day-item.is-end-date.is-locked{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1));color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}.calendar .container__days .day-item.is-start-date.is-end-date:after{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}.calendar .container__days .day-item.is-start-date:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-top-left-radius:9999px;border-bottom-left-radius:9999px;content:" ";z-index:-1;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.calendar .container__days .day-item.is-end-date:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-left-radius:0px;border-bottom-left-radius:0px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;content:" ";z-index:-1;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.calendar .container__days .day-item.is-in-range{border-radius:0px;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1));border-width:0px}.calendar .container__days .day-item.is-in-range:hover{position:relative}.calendar .container__days .day-item.is-in-range:hover:before{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1));border-radius:9999px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;content:" "}.calendar .container__days .day-item.is-in-range:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days vega-tooltip{width:100%}.calendar .container__days vega-tooltip .day-item .day-content{position:relative}.calendar .container__days vega-tooltip .day-item .day-content:after{position:absolute;border-radius:9999px;content:" ";background-color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar .container__days vega-tooltip .day-item.is-start-date .day-content:after,.calendar .container__days vega-tooltip .day-item.is-end-date .day-content:after,.calendar .container__days vega-tooltip .day-item:active:not(.is-locked):not(.is-disabled) .day-content:after{background-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar.mobilefriendly[data-plugins*=mobilefriendly] .container__days>div{height:var(--vega-date-picker-calendar-day-height)}.calendar .clear-button{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}.calendar .footer-container{margin-top:16px;height:24px}:host(.vega-force-hidden){display:none !important}.calendar{left:initial !important;top:initial !important;position:initial !important}.button-next-month svg,.button-previous-month svg{width:12px;height:16px}.calendar .container__days>div:not(.day-item){-webkit-tap-highlight-color:transparent}';export{Oe as vega_date_picker,it as vega_date_picker_calendar}
@@ -1 +1 @@
1
- import{b as t,e}from"./p-6c170474.js";import{i as s}from"./p-4d7d5583.js";const i=new class{constructor(){this.listeners=[],this.listenKeyPress()}register(t){t.map((t=>t.eventName||(t.eventName="keyup"))),this.listeners=this.listeners.concat(t)}deregister(t){this.listeners=this.listeners.filter((e=>!t.includes(e)))}listenKeyPress(){document.addEventListener("keydown",(t=>{this.invokeListeners("keydown",t)})),document.addEventListener("keyup",(t=>{this.invokeListeners("keyup",t)}))}invokeListeners(t,e){this.listeners.filter((s=>s.eventName===t&&this.shouldInvokeListener(s,e))).forEach((t=>t.callback(e)))}shouldInvokeListener(i,o){let n="";o.code?n=o.code:o.key&&"Unidentified"!==o.key&&(n=o.key);let r=[],c=[];const d=Array.isArray(i.keyCode)?i.keyCode.includes(n):i.keyCode===n;if(!d)return!1;"function"==typeof i.activeElementInScope?r=i.activeElementInScope():"object"==typeof i.activeElementInScope&&(r=i.activeElementInScope),"function"==typeof i.activeElementOutScope?c=i.activeElementOutScope():"object"==typeof i.activeElementOutScope&&(c=i.activeElementOutScope);const h=!i.activeElementInScope||r.some((s=>t(e(),s)));if(!h)return!1;const u=!i.activeElementOutScope||c.every((s=>!t(e(),s))),f=!s(i.modifierPressed)||i.modifierPressed===this.isModifierPressed(o),p=!s(i.shiftKey)||i.shiftKey===o.shiftKey;return d&&h&&u&&f&&p}isModifierPressed(t){return/Mac|iPhone|iPad/.test(navigator.userAgent)?t.metaKey:t.ctrlKey}};export{i as K}
1
+ import{b as t,e}from"./p-6c170474.js";import{i as s}from"./p-9f467a59.js";const i=new class{constructor(){this.listeners=[],this.listenKeyPress()}register(t){t.map((t=>t.eventName||(t.eventName="keyup"))),this.listeners=this.listeners.concat(t)}deregister(t){this.listeners=this.listeners.filter((e=>!t.includes(e)))}listenKeyPress(){document.addEventListener("keydown",(t=>{this.invokeListeners("keydown",t)})),document.addEventListener("keyup",(t=>{this.invokeListeners("keyup",t)}))}invokeListeners(t,e){this.listeners.filter((s=>s.eventName===t&&this.shouldInvokeListener(s,e))).forEach((t=>t.callback(e)))}shouldInvokeListener(i,o){let n="";o.code?n=o.code:o.key&&"Unidentified"!==o.key&&(n=o.key);let r=[],c=[];const f=Array.isArray(i.keyCode)?i.keyCode.includes(n):i.keyCode===n;if(!f)return!1;"function"==typeof i.activeElementInScope?r=i.activeElementInScope():"object"==typeof i.activeElementInScope&&(r=i.activeElementInScope),"function"==typeof i.activeElementOutScope?c=i.activeElementOutScope():"object"==typeof i.activeElementOutScope&&(c=i.activeElementOutScope);const h=!i.activeElementInScope||r.some((s=>t(e(),s)));if(!h)return!1;const u=!i.activeElementOutScope||c.every((s=>!t(e(),s))),p=!s(i.modifierPressed)||i.modifierPressed===this.isModifierPressed(o),a=!s(i.shiftKey)||i.shiftKey===o.shiftKey;return f&&h&&u&&p&&a}isModifierPressed(t){return/Mac|iPhone|iPad/.test(navigator.userAgent)?t.metaKey:t.ctrlKey}};export{i as K}