@globalpayments/vega 2.35.0 → 2.36.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 (205) hide show
  1. package/dist/cjs/{app-globals-fb3693cc.js → app-globals-13d4a0be.js} +3 -4
  2. package/dist/cjs/{list-block-91116257.js → content-state-2336e368.js} +130 -4
  3. package/dist/cjs/{element-appender-slimmer-700b7004.js → element-appender-slimmer-77f9c4a0.js} +11 -3
  4. package/dist/cjs/{form-field-controller-slimmer-dbb321ad.js → form-field-controller-slimmer-8d4d2723.js} +11 -3
  5. package/dist/cjs/{image-annotation-action-d3e1699c.js → image-annotation-action-4135ca69.js} +12 -12
  6. package/dist/cjs/index.cjs.js +5 -6
  7. package/dist/cjs/loader.cjs.js +5 -6
  8. package/dist/cjs/{node-annotation.abstract-e5d3a859.js → node-annotation.abstract-c3c07af5.js} +1 -1
  9. package/dist/cjs/{sub-state-notify-slimmer-c2e08e06.js → sub-state-notify-slimmer-994eb848.js} +1 -1
  10. package/dist/cjs/{sub-state-observer-slimmer-b97e46b5.js → sub-state-observer-slimmer-080a4bea.js} +1 -1
  11. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  12. package/dist/cjs/vega-calendar_3.cjs.entry.js +3 -3
  13. package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
  14. package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
  15. package/dist/cjs/vega-combo-box.cjs.entry.js +2 -2
  16. package/dist/cjs/vega-date-picker_2.cjs.entry.js +497 -116
  17. package/dist/cjs/vega-dropdown_5.cjs.entry.js +68 -19
  18. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  19. package/dist/cjs/vega-file-uploader.cjs.entry.js +120 -40
  20. package/dist/cjs/vega-font.cjs.entry.js +8 -1
  21. package/dist/cjs/vega-form.cjs.entry.js +2 -2
  22. package/dist/cjs/vega-image-uploader.cjs.entry.js +2 -2
  23. package/dist/cjs/vega-input-credit-card.cjs.entry.js +2 -2
  24. package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -3
  25. package/dist/cjs/vega-input-phone-number.cjs.entry.js +2 -2
  26. package/dist/cjs/vega-input-range.cjs.entry.js +2 -2
  27. package/dist/cjs/vega-input-select.cjs.entry.js +2 -2
  28. package/dist/cjs/vega-input.cjs.entry.js +3 -3
  29. package/dist/cjs/{vega-internal-event-id-85b68849.js → vega-internal-event-id-b12071ea.js} +2 -0
  30. package/dist/cjs/vega-left-nav_5.cjs.entry.js +3 -3
  31. package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
  32. package/dist/cjs/vega-popover_2.cjs.entry.js +2 -2
  33. package/dist/cjs/vega-radio_2.cjs.entry.js +2 -2
  34. package/dist/cjs/vega-rich-text-content.cjs.entry.js +35 -13
  35. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +135 -119
  36. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
  37. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
  38. package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
  39. package/dist/cjs/vega-signature-capture.cjs.entry.js +2 -2
  40. package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
  41. package/dist/cjs/vega-table_8.cjs.entry.js +3 -3
  42. package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
  43. package/dist/cjs/vega-time-picker_2.cjs.entry.js +3 -3
  44. package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
  45. package/dist/cjs/vega-tooltip_2.cjs.entry.js +1 -1
  46. package/dist/cjs/vega.cjs.js +5 -6
  47. package/dist/collection/components/vega-date-picker/assets/icons.js +3 -0
  48. package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.js +23 -1
  49. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.js +316 -0
  50. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +23 -2
  51. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +16 -4
  52. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +24 -0
  53. package/dist/collection/components/vega-date-picker/vega-date-picker.js +39 -0
  54. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +56 -14
  55. package/dist/collection/components/vega-dropdown/vega-dropdown.js +37 -0
  56. package/dist/collection/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-file-limit-controller.js +35 -0
  57. package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-container-renderer.js +36 -7
  58. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +41 -0
  59. package/dist/collection/components/vega-font/slimmers/renderers/vega-font-renderer.js +8 -1
  60. package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
  61. package/dist/collection/components/vega-pagination/internal/vega-pagination-page-size-selector.js +2 -2
  62. package/dist/collection/components/vega-pagination/vega-pagination.js +24 -1
  63. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +19 -1
  64. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +11 -4
  65. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +15 -1
  66. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +4 -2
  67. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  68. package/dist/collection/helpers/slimmers/field-error-controller-silmmer.js +8 -2
  69. package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +1 -1
  70. package/dist/collection/helpers/ui/element-appender.js +10 -2
  71. package/dist/collection/helpers/validator/form-field-controller.js +2 -0
  72. package/dist/collection/helpers/validator/rules/rich-text-editor-required-rule.js +4 -3
  73. package/dist/collection/helpers/validator/test/rules/rich-text-editor-required-rule.test.js +43 -0
  74. package/dist/esm/{app-globals-5b154b6d.js → app-globals-9ded4406.js} +2 -3
  75. package/dist/esm/{list-block-ba82c846.js → content-state-42a06d75.js} +130 -3
  76. package/dist/esm/{element-appender-slimmer-d71e3109.js → element-appender-slimmer-f3eceb79.js} +11 -3
  77. package/dist/esm/{form-field-controller-slimmer-add614f1.js → form-field-controller-slimmer-6ef5641b.js} +11 -3
  78. package/dist/esm/{image-annotation-action-a8e00f28.js → image-annotation-action-8a12e0bd.js} +2 -2
  79. package/dist/esm/index.js +3 -4
  80. package/dist/esm/loader.js +5 -6
  81. package/dist/esm/{node-annotation.abstract-d7d52bce.js → node-annotation.abstract-af11b11b.js} +1 -1
  82. package/dist/esm/{sub-state-notify-slimmer-48bad548.js → sub-state-notify-slimmer-7d5a295a.js} +1 -1
  83. package/dist/esm/{sub-state-observer-slimmer-403cc4e7.js → sub-state-observer-slimmer-901c7953.js} +1 -1
  84. package/dist/esm/vega-button-group_2.entry.js +3 -3
  85. package/dist/esm/vega-calendar_3.entry.js +3 -3
  86. package/dist/esm/vega-checkbox_2.entry.js +2 -2
  87. package/dist/esm/vega-color-picker.entry.js +2 -2
  88. package/dist/esm/vega-combo-box.entry.js +2 -2
  89. package/dist/esm/vega-date-picker_2.entry.js +498 -117
  90. package/dist/esm/vega-dropdown_5.entry.js +68 -19
  91. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  92. package/dist/esm/vega-file-uploader.entry.js +120 -40
  93. package/dist/esm/vega-font.entry.js +8 -1
  94. package/dist/esm/vega-form.entry.js +2 -2
  95. package/dist/esm/vega-image-uploader.entry.js +2 -2
  96. package/dist/esm/vega-input-credit-card.entry.js +2 -2
  97. package/dist/esm/vega-input-numeric.entry.js +3 -3
  98. package/dist/esm/vega-input-phone-number.entry.js +2 -2
  99. package/dist/esm/vega-input-range.entry.js +2 -2
  100. package/dist/esm/vega-input-select.entry.js +2 -2
  101. package/dist/esm/vega-input.entry.js +3 -3
  102. package/dist/esm/{vega-internal-event-id-4af5c6e9.js → vega-internal-event-id-458939b6.js} +2 -1
  103. package/dist/esm/vega-left-nav_5.entry.js +3 -3
  104. package/dist/esm/vega-pagination.entry.js +3 -3
  105. package/dist/esm/vega-popover_2.entry.js +2 -2
  106. package/dist/esm/vega-radio_2.entry.js +2 -2
  107. package/dist/esm/vega-rich-text-content.entry.js +28 -6
  108. package/dist/esm/vega-rich-text-editor_4.entry.js +28 -12
  109. package/dist/esm/vega-selection-chip_2.entry.js +4 -4
  110. package/dist/esm/vega-selection-tile_2.entry.js +4 -4
  111. package/dist/esm/vega-sidenav_3.entry.js +3 -3
  112. package/dist/esm/vega-signature-capture.entry.js +2 -2
  113. package/dist/esm/vega-stepper.entry.js +2 -2
  114. package/dist/esm/vega-table_8.entry.js +3 -3
  115. package/dist/esm/vega-textarea.entry.js +2 -2
  116. package/dist/esm/vega-time-picker_2.entry.js +3 -3
  117. package/dist/esm/vega-toggle-switch.entry.js +2 -2
  118. package/dist/esm/vega-tooltip_2.entry.js +1 -1
  119. package/dist/esm/vega.js +5 -6
  120. package/dist/types/components/vega-date-picker/assets/icons.d.ts +1 -1
  121. package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.d.ts +4 -18
  122. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.d.ts +85 -0
  123. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +6 -0
  124. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.d.ts +2 -0
  125. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +12 -2
  126. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +20 -0
  127. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +10 -0
  128. package/dist/types/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-file-limit-controller.d.ts +18 -0
  129. package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-container-renderer.d.ts +15 -0
  130. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +12 -0
  131. package/dist/types/components/vega-input-select/types.d.ts +1 -0
  132. package/dist/types/components/vega-pagination/internal/vega-pagination-page-size-selector.d.ts +2 -0
  133. package/dist/types/components/vega-pagination/types.d.ts +6 -0
  134. package/dist/types/components/vega-pagination/vega-pagination.d.ts +9 -1
  135. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +3 -0
  136. package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +4 -1
  137. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +4 -0
  138. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +3 -1
  139. package/dist/types/components.d.ts +49 -5
  140. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  141. package/dist/types/helpers/slimmers/field-error-controller-silmmer.d.ts +7 -2
  142. package/dist/types/helpers/ui/element-appender.d.ts +4 -0
  143. package/dist/types/helpers/validator/rules/rich-text-editor-required-rule.d.ts +1 -1
  144. package/dist/types/types/components.type.d.ts +1 -1
  145. package/dist/vega/index.esm.js +1 -1
  146. package/dist/vega/p-032ed643.entry.js +13 -0
  147. package/dist/vega/{p-f48711fa.entry.js → p-13ce8d87.entry.js} +1 -1
  148. package/dist/vega/{p-f84fd31c.js → p-26af2a8b.js} +1 -1
  149. package/dist/vega/{p-dcdac4d0.entry.js → p-2ff936da.entry.js} +1 -1
  150. package/dist/vega/{p-8fc170d9.entry.js → p-317c72e4.entry.js} +1 -1
  151. package/dist/vega/{p-4f0b56fc.js → p-349dd552.js} +1 -1
  152. package/dist/vega/p-36ad5ee1.entry.js +1 -0
  153. package/dist/vega/p-42465abc.entry.js +1 -0
  154. package/dist/vega/{p-7ecbf764.entry.js → p-43b6aced.entry.js} +1 -1
  155. package/dist/vega/{p-c6f544fe.entry.js → p-441c9c90.entry.js} +1 -1
  156. package/dist/vega/{p-926596cc.js → p-446c691b.js} +1 -1
  157. package/dist/vega/{p-1a64716b.entry.js → p-4d307520.entry.js} +1 -1
  158. package/dist/vega/p-524ff1a3.entry.js +1 -0
  159. package/dist/vega/p-558450ba.entry.js +1 -0
  160. package/dist/vega/{p-c02f650e.entry.js → p-589530e4.entry.js} +1 -1
  161. package/dist/vega/{p-71eeb279.entry.js → p-5ae1a322.entry.js} +1 -1
  162. package/dist/vega/p-5f377954.js +1 -1
  163. package/dist/vega/{p-fc6ea557.entry.js → p-61cffe6a.entry.js} +1 -1
  164. package/dist/vega/{p-5760619c.entry.js → p-6bf28253.entry.js} +1 -1
  165. package/dist/vega/{p-b6f09c98.entry.js → p-6df81ec2.entry.js} +1 -1
  166. package/dist/vega/p-75bca1c6.js +1 -0
  167. package/dist/vega/{p-4873be94.entry.js → p-7b72dc7a.entry.js} +1 -1
  168. package/dist/vega/{p-b9a09a76.js → p-83d87df5.js} +1 -1
  169. package/dist/vega/{p-c56965fc.entry.js → p-8a77ff64.entry.js} +1 -1
  170. package/dist/vega/{p-e480babd.entry.js → p-906991ec.entry.js} +1 -1
  171. package/dist/vega/{p-f6b89936.entry.js → p-96389073.entry.js} +1 -1
  172. package/dist/vega/{p-f31bb1fd.js → p-983c7d9b.js} +1 -1
  173. package/dist/vega/{p-91aa058f.entry.js → p-9ec7d6c4.entry.js} +1 -1
  174. package/dist/vega/{p-f2cc36ae.entry.js → p-a213b305.entry.js} +1 -1
  175. package/dist/vega/{p-e093b2c5.entry.js → p-a956561e.entry.js} +1 -1
  176. package/dist/vega/{p-625771d7.entry.js → p-b0c6cc78.entry.js} +1 -1
  177. package/dist/vega/{p-b57792b7.js → p-b1524c6c.js} +1 -1
  178. package/dist/vega/{p-2bbcb1ca.entry.js → p-bd2cdf10.entry.js} +1 -1
  179. package/dist/vega/p-c06e55d6.js +1 -0
  180. package/dist/vega/{p-eaf6c3d8.entry.js → p-cea7506a.entry.js} +1 -1
  181. package/dist/vega/p-cff45d92.entry.js +1 -0
  182. package/dist/vega/p-d3d4bf51.entry.js +1 -0
  183. package/dist/vega/{p-0be711b6.entry.js → p-df4142dd.entry.js} +1 -1
  184. package/dist/vega/p-df9dbe2d.entry.js +1 -0
  185. package/dist/vega/p-ebb30774.entry.js +1 -0
  186. package/dist/vega/{p-e04d4ba3.entry.js → p-eed64b78.entry.js} +1 -1
  187. package/dist/vega/{p-193d2c51.entry.js → p-f7fdf737.entry.js} +1 -1
  188. package/dist/vega/p-fe9644a0.js +1 -0
  189. package/dist/vega/vega.esm.js +1 -1
  190. package/package.json +1 -1
  191. package/dist/cjs/content-state-3e4467a3.js +0 -134
  192. package/dist/esm/content-state-f39c4bbf.js +0 -132
  193. package/dist/vega/p-0634f06b.entry.js +0 -1
  194. package/dist/vega/p-0ee10fd7.js +0 -1
  195. package/dist/vega/p-21d59593.entry.js +0 -1
  196. package/dist/vega/p-42df8a42.js +0 -1
  197. package/dist/vega/p-5dd923e0.entry.js +0 -1
  198. package/dist/vega/p-6d23c08b.entry.js +0 -1
  199. package/dist/vega/p-7258cb9c.entry.js +0 -1
  200. package/dist/vega/p-85365f8b.js +0 -1
  201. package/dist/vega/p-b0e824df.entry.js +0 -13
  202. package/dist/vega/p-c016c3b2.entry.js +0 -1
  203. package/dist/vega/p-c88acd87.entry.js +0 -1
  204. package/dist/vega/p-f357cf46.js +0 -1
  205. package/dist/vega/p-ff50c204.entry.js +0 -1
@@ -29,11 +29,14 @@ export declare class VegaRichTextContent {
29
29
  */
30
30
  contentEditable: boolean;
31
31
  /**
32
- * Specifies the text or formatted information displayed by the rich text content.
32
+ * Specifies the text or formatted information displayed by the rich text content, which can be either VegaRTEContent or VegaRTEContentBlock.
33
+ * It is recommended to use the VegaRTEContent type.
34
+ * Only in exceptional cases should the original data in the VegaRTEContentBlock type be used.
33
35
  *
34
36
  * @vegaVersion 2.34.0
35
37
  */
36
38
  content: VegaRTEContent;
39
+ watchValueUpdate(): void;
37
40
  /**
38
41
  * Invoke this method to focus on rich text content editable div
39
42
  *
@@ -19,6 +19,10 @@ export declare class ValueController extends VegaSlimmer {
19
19
  * Component lifecycle - [connectedCallback]{@link VegaRichTextEditor.disconnectedCallback}
20
20
  */
21
21
  disconnectedCallback(): void;
22
+ /**
23
+ * Component lifecycle - [componentWillLoad]{@link VegaRichTextEditor.componentWillLoad}
24
+ */
25
+ componentWillLoad(): void;
22
26
  /**
23
27
  * Watches the value of the editor and updates the internal value.
24
28
  */
@@ -123,7 +123,9 @@ export declare class VegaRichTextEditor {
123
123
  */
124
124
  rows: number;
125
125
  /**
126
- * Specifies the value of the rich text editor
126
+ * Specifies the value of the rich text editor, which can be either VegaRTEContent or VegaRTEContentBlock.
127
+ * It is recommended to use the VegaRTEContent type.
128
+ * Only in exceptional cases should the original data in the VegaRTEContentBlock type be used.
127
129
  *
128
130
  * @vegaVersion 2.34.0
129
131
  */
@@ -45,7 +45,7 @@ import { LineChartOptionsType } from "./helpers/chart/line-chart";
45
45
  import { VegaLoadingIndicatorSize } from "./components/vega-loading-indicator/types";
46
46
  import { VegaModalBackdrop, VegaModalBackdropColor } from "./components/vega-modal/types";
47
47
  import { VegaPageNotificationActionButtonConfig, VegaPageNotificationTypes } from "./components/vega-page-notification/types";
48
- import { VegaPaginationItemType } from "./components/vega-pagination/types";
48
+ import { DropdownPropsForPagination, VegaPaginationItemType } from "./components/vega-pagination/types";
49
49
  import { PieChartOptions } from "./helpers/chart/pie-chart";
50
50
  import { VegaRTEContent } from "./components/vega-rich-text-editor/dto/content-state";
51
51
  import { VegaRichTextEditorImage, VegaRTEContentBlock, VegaRTEToolbarItem } from "./components/vega-rich-text-editor/interface";
@@ -1108,6 +1108,11 @@ export namespace Components {
1108
1108
  * @vegaVersion 2.33.0
1109
1109
  */
1110
1110
  "showClearIcon": boolean;
1111
+ /**
1112
+ * Determines whether to show months and years dropdown in date picker If set to true, date picker calendar will have months and years dropdown
1113
+ * @vegaVersion 2.36.0
1114
+ */
1115
+ "showYearMonthDropdowns": boolean;
1111
1116
  /**
1112
1117
  * Specifies the size of the date picker field.
1113
1118
  * @vegaVersion 1.3.0
@@ -1236,6 +1241,13 @@ export namespace Components {
1236
1241
  * @vegaVersion 1.24.0
1237
1242
  */
1238
1243
  "isLoading": boolean;
1244
+ /**
1245
+ * Determines whether the dropdown position is calculated relative to the screen.
1246
+ * @VegaWarning When enabled (set to true), it overrides the positionRelativeTo and matchContainerHeight properties, rendering them ineffective.
1247
+ * @VegaWarning Currently, when set to true, position calculation may be inaccurate if the dropdown is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
1248
+ * @vegaVersion 2.36.0
1249
+ */
1250
+ "isScreenPosition": boolean;
1239
1251
  /**
1240
1252
  * Specifies the display rule for items in the dropdown.
1241
1253
  * @vegaVersion 1.13.0
@@ -1455,6 +1467,11 @@ export namespace Components {
1455
1467
  * @vegaVersion 2.25.0
1456
1468
  */
1457
1469
  "label": string;
1470
+ /**
1471
+ * Specifies the maximum number of files that can be uploaded using the File Uploader. The value must be a positive integer.
1472
+ * @vegaVersion 2.36.0
1473
+ */
1474
+ "maxCount": number | null;
1458
1475
  /**
1459
1476
  * Specifies whether uploading a file is mandatory.
1460
1477
  * @vegaVersion 2.25.0
@@ -2532,6 +2549,11 @@ export namespace Components {
2532
2549
  * @vegaVersion 1.3.0
2533
2550
  */
2534
2551
  "current": number;
2552
+ /**
2553
+ * Specifies the properties of the vega-dropdown component used to configure the dropdown for the page size selector in pagination.
2554
+ * @vegaVersion 2.36.0
2555
+ */
2556
+ "dropdownProps": DropdownPropsForPagination;
2535
2557
  /**
2536
2558
  * Specifies the extensions associated with the pagination items in the pagination component. It refers to additional elements or components that can be added to enhance the functionality or appearance of each pagination item.
2537
2559
  * @vegaVersion 1.25.0
@@ -2748,7 +2770,7 @@ export namespace Components {
2748
2770
  }
2749
2771
  interface VegaRichTextContent {
2750
2772
  /**
2751
- * Specifies the text or formatted information displayed by the rich text content.
2773
+ * Specifies the text or formatted information displayed by the rich text content, which can be either VegaRTEContent or VegaRTEContentBlock. It is recommended to use the VegaRTEContent type. Only in exceptional cases should the original data in the VegaRTEContentBlock type be used.
2752
2774
  * @vegaVersion 2.34.0
2753
2775
  */
2754
2776
  "content": VegaRTEContent;
@@ -2810,7 +2832,7 @@ export namespace Components {
2810
2832
  */
2811
2833
  "validationRules": FormFieldValidationRule<unknown>[];
2812
2834
  /**
2813
- * Specifies the value of the rich text editor
2835
+ * Specifies the value of the rich text editor, which can be either VegaRTEContent or VegaRTEContentBlock. It is recommended to use the VegaRTEContent type. Only in exceptional cases should the original data in the VegaRTEContentBlock type be used.
2814
2836
  * @vegaVersion 2.34.0
2815
2837
  */
2816
2838
  "value": VegaRTEContent;
@@ -6146,6 +6168,11 @@ declare namespace LocalJSX {
6146
6168
  * @vegaVersion 2.33.0
6147
6169
  */
6148
6170
  "showClearIcon"?: boolean;
6171
+ /**
6172
+ * Determines whether to show months and years dropdown in date picker If set to true, date picker calendar will have months and years dropdown
6173
+ * @vegaVersion 2.36.0
6174
+ */
6175
+ "showYearMonthDropdowns"?: boolean;
6149
6176
  /**
6150
6177
  * Specifies the size of the date picker field.
6151
6178
  * @vegaVersion 1.3.0
@@ -6259,6 +6286,13 @@ declare namespace LocalJSX {
6259
6286
  * @vegaVersion 1.24.0
6260
6287
  */
6261
6288
  "isLoading"?: boolean;
6289
+ /**
6290
+ * Determines whether the dropdown position is calculated relative to the screen.
6291
+ * @VegaWarning When enabled (set to true), it overrides the positionRelativeTo and matchContainerHeight properties, rendering them ineffective.
6292
+ * @VegaWarning Currently, when set to true, position calculation may be inaccurate if the dropdown is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
6293
+ * @vegaVersion 2.36.0
6294
+ */
6295
+ "isScreenPosition"?: boolean;
6262
6296
  /**
6263
6297
  * Specifies the display rule for items in the dropdown.
6264
6298
  * @vegaVersion 1.13.0
@@ -6555,6 +6589,11 @@ declare namespace LocalJSX {
6555
6589
  * @vegaVersion 2.25.0
6556
6590
  */
6557
6591
  "label"?: string;
6592
+ /**
6593
+ * Specifies the maximum number of files that can be uploaded using the File Uploader. The value must be a positive integer.
6594
+ * @vegaVersion 2.36.0
6595
+ */
6596
+ "maxCount"?: number | null;
6558
6597
  /**
6559
6598
  * An event emitter notifying a change in the file list.
6560
6599
  * @eventSemantics namespace:native
@@ -7916,6 +7955,11 @@ declare namespace LocalJSX {
7916
7955
  * @vegaVersion 1.3.0
7917
7956
  */
7918
7957
  "current"?: number;
7958
+ /**
7959
+ * Specifies the properties of the vega-dropdown component used to configure the dropdown for the page size selector in pagination.
7960
+ * @vegaVersion 2.36.0
7961
+ */
7962
+ "dropdownProps"?: DropdownPropsForPagination;
7919
7963
  /**
7920
7964
  * Specifies the extensions associated with the pagination items in the pagination component. It refers to additional elements or components that can be added to enhance the functionality or appearance of each pagination item.
7921
7965
  * @vegaVersion 1.25.0
@@ -8196,7 +8240,7 @@ declare namespace LocalJSX {
8196
8240
  }
8197
8241
  interface VegaRichTextContent {
8198
8242
  /**
8199
- * Specifies the text or formatted information displayed by the rich text content.
8243
+ * Specifies the text or formatted information displayed by the rich text content, which can be either VegaRTEContent or VegaRTEContentBlock. It is recommended to use the VegaRTEContent type. Only in exceptional cases should the original data in the VegaRTEContentBlock type be used.
8200
8244
  * @vegaVersion 2.34.0
8201
8245
  */
8202
8246
  "content"?: VegaRTEContent;
@@ -8275,7 +8319,7 @@ declare namespace LocalJSX {
8275
8319
  */
8276
8320
  "validationRules"?: FormFieldValidationRule<unknown>[];
8277
8321
  /**
8278
- * Specifies the value of the rich text editor
8322
+ * Specifies the value of the rich text editor, which can be either VegaRTEContent or VegaRTEContentBlock. It is recommended to use the VegaRTEContent type. Only in exceptional cases should the original data in the VegaRTEContentBlock type be used.
8279
8323
  * @vegaVersion 2.34.0
8280
8324
  */
8281
8325
  "value"?: VegaRTEContent;
@@ -31,6 +31,7 @@ export declare const VegaDropdownRenderItemInternalOverridden: VegaInternalEvent
31
31
  export declare const VegaDropdownSearchInternalOverridden: VegaInternalEventID;
32
32
  export declare const VegaInternalSidenavLinkClick: VegaInternalEventID;
33
33
  export declare const VegaInternalLeftNavGroupExpand: VegaInternalEventID;
34
+ export declare const VegaInternalDropdownUpdateTarget: VegaInternalEventID;
34
35
  export declare const VegaInternalRichTextEditorFlushChanges: VegaInternalEventID;
35
36
  export declare const VegaInternalRichTextEditorSelectionRangeChange: VegaInternalEventID;
36
37
  export declare const VegaInternalRichTextImageClick: VegaInternalEventID;
@@ -1,7 +1,12 @@
1
1
  import { VegaSlimmer } from '../../vega-slimmer/vega-slimmer-core';
2
2
  import { FormFieldOptionForSlimmer } from './form-field-controller-slimmer';
3
3
  import { FieldErrorUIControllerSlimmer } from './field-error-ui-controller-slimmer';
4
- /** The `FieldBoxControllerSlimmer` class is a TypeScript class that extends the `VegaSlimmer` class and provides methods for handling error UI in a field error component. */
4
+ /**
5
+ * The current class is used to manually control the form element error message.
6
+ * The component `vega-field-error` is used to control the error messages for form fields. to implement the error message display, we needs to know the form field error message container, field element, and other necessary options,
7
+ * the `form-field-controller-slimmer` has the required options and will inject to the all form fields, so we create current slimmer class and inject to the `form-field-controller-slimmer` to get all options.
8
+ * When the property `message` of the vega-field-error component changed, the target form field will receive the special subject and update the error message.
9
+ */
5
10
  export declare class FieldErrorControllerSlimmer extends VegaSlimmer {
6
11
  host: HTMLElement;
7
12
  options: FormFieldOptionForSlimmer<unknown>;
@@ -23,7 +28,7 @@ export declare class FieldErrorControllerSlimmer extends VegaSlimmer {
23
28
  */
24
29
  private canAcceptFieldErrorMessageUpdate;
25
30
  /**
26
- * call the method when observer trigger
31
+ * This method called mean that the current form field element nest in a vega-field-error component and the parent component property `message` changed, we need to show or hide the error message.
27
32
  *
28
33
  * @param {FieldErrorEventPayload} payload payload param
29
34
  */
@@ -115,6 +115,10 @@ export declare class ElementAppender {
115
115
  * @returns {void}
116
116
  */
117
117
  private prepareShow;
118
+ /**
119
+ * init visible append element.
120
+ */
121
+ private initVisibleAppendElement;
118
122
  /**
119
123
  * A function that takes no parameters and returns nothing. It sets the position of the appendable element.
120
124
  *
@@ -2,7 +2,7 @@ import { FormFieldStatusMeta, FormFieldValidationRule } from './form-field-valid
2
2
  import { EvaluateResultTranslation } from './validation-rule';
3
3
  import { VegaRTEContent } from '../../../components/vega-rich-text-editor/dto/content-state';
4
4
  /**
5
- * A rule that checks if input range is empty or not
5
+ * A rule that checks if the input range is empty or not
6
6
  *
7
7
  * @implements {FormFieldValidationRule<string[]>}
8
8
  */
@@ -157,7 +157,7 @@ export {
157
157
  VegaPageNotificationActionButtonConfig,
158
158
  VegaPageNotificationTypes,
159
159
  } from '../components/vega-page-notification/types';
160
- export { VegaPaginationItemType } from '../components/vega-pagination/types';
160
+ export { DropdownPropsForPagination, VegaPaginationItemType } from '../components/vega-pagination/types';
161
161
  export { PieChartOptions } from '../helpers/chart/pie-chart';
162
162
  export { VegaRTEContent } from '../components/vega-rich-text-editor/dto/content-state';
163
163
  export {
@@ -1 +1 @@
1
- export{g as getCurrentBreakpoint}from"./p-4bcd6612.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-81dbada7.js";export{c as camelToDashCase}from"./p-0bb29d98.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-b1f65b13.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{B as BreakpointKeys}from"./p-74168615.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{b as VegaEventManager,V as VegaLoader,a as VegaNotify,d as VegaSkeletonLoader,c as VegaZIndexManager}from"./p-84f2f342.js";export{F as FeatureFlag}from"./p-ff4bafa3.js";export{V as VegaThemeManager}from"./p-926596cc.js";export{V as VegaDialog}from"./p-149d2801.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-0af4bda9.js";export{V as VegaIconManager}from"./p-032df16f.js";export{V as ValidCreditCardNumberRule}from"./p-74958b1a.js";export{w as waitForVega}from"./p-f84fd31c.js";export{a as VegaTranslation,s as VegaTranslationResourceEN}from"./p-de664bdd.js";export{V as VegaRTEContent}from"./p-0ee10fd7.js";import"./p-6705c68a.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-2205ee4c.js";import"./p-3a0a4d15.js";import"./p-33b62194.js";import"./p-6a334573.js";import"./p-79ec5d69.js";import"./p-781fd6e0.js";import"./p-5f589974.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-d057999f.js";import"./p-2d0d575f.js";import"./p-6a3989dd.js";import"./p-f357cf46.js";const o=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{o as Rings}
1
+ export{g as getCurrentBreakpoint}from"./p-4bcd6612.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-81dbada7.js";export{c as camelToDashCase}from"./p-0bb29d98.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-b1f65b13.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{B as BreakpointKeys}from"./p-74168615.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{b as VegaEventManager,V as VegaLoader,a as VegaNotify,d as VegaSkeletonLoader,c as VegaZIndexManager}from"./p-84f2f342.js";export{F as FeatureFlag}from"./p-ff4bafa3.js";export{V as VegaThemeManager}from"./p-446c691b.js";export{V as VegaDialog}from"./p-149d2801.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-0af4bda9.js";export{V as VegaIconManager}from"./p-032df16f.js";export{V as ValidCreditCardNumberRule}from"./p-74958b1a.js";export{V as VegaRTEContent,w as waitForVega}from"./p-26af2a8b.js";export{a as VegaTranslation,s as VegaTranslationResourceEN}from"./p-de664bdd.js";import"./p-6705c68a.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-2205ee4c.js";import"./p-3a0a4d15.js";import"./p-33b62194.js";import"./p-6a334573.js";import"./p-79ec5d69.js";import"./p-781fd6e0.js";import"./p-5f589974.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-d057999f.js";import"./p-2d0d575f.js";import"./p-6a3989dd.js";import"./p-fe9644a0.js";const o=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{o as Rings}
@@ -0,0 +1,13 @@
1
+ import{h as t,H as e,F as i,r as n,c as r,g as s}from"./p-1c298d5a.js";import{s as o}from"./p-9b797118.js";import{i as a,c as h,a as d,b as c}from"./p-b5990090.js";import{c as l,V as p,M as u,L as f,I as m}from"./p-6e1ab235.js";import{V as v,I as g}from"./p-4387d550.js";import{F as w}from"./p-b1524c6c.js";import{a as x,g as b,D as y}from"./p-79ec5d69.js";import{D as k}from"./p-29b09aad.js";import{a as D,b as _,d as j,f as M}from"./p-6a3989dd.js";import{V as R}from"./p-8284a445.js";import{c as I}from"./p-86194314.js";import{i as O}from"./p-b0502d01.js";import{c as C}from"./p-112455b1.js";import{I as E}from"./p-781fd6e0.js";import{b as S}from"./p-d057999f.js";import{C as z}from"./p-2d0d575f.js";import{S as T,a as V}from"./p-2fbda931.js";import{E as P}from"./p-983c7d9b.js";import"./p-5f377954.js";import"./p-84f2f342.js";import{F as L}from"./p-ff4bafa3.js";import"./p-446c691b.js";import"./p-149d2801.js";import"./p-032df16f.js";import"./p-de664bdd.js";import{K as A}from"./p-de25326f.js";import{C as Y}from"./p-ed4a57a8.js";import{c as N}from"./p-e8f540d8.js";import{C as H}from"./p-be12fa36.js";import{T as F}from"./p-b688a71b.js";import{r as B}from"./p-4b500240.js";import{k as W}from"./p-fe9644a0.js";import"./p-0bb29d98.js";import"./p-33b62194.js";import"./p-6a334573.js";import"./p-5f589974.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-987fbbd0.js";import"./p-a9354a5c.js";import"./p-262ec334.js";import"./p-b1f65b13.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-6705c68a.js";import"./p-0c667d6a.js";import"./p-0af4bda9.js";import"./p-7a40e033.js";import"./p-6a5a5c7b.js";class ${constructor(t){this.config=t}evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Invalid date value ${t} for mode ${this.config.mode}`);let e;switch(this.config.mode){case"single":e=a(t);break;case"range":e=Array.isArray(t)&&2===t.length&&t.every(a)}return{isValid:e,message:e?"":"This field is required"}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){if(null==t)return!0;if(!this.config.mode)throw new Error(`Unexpected type of mode: ${this.config.mode}`);switch(this.config.mode){case"single":return"string"==typeof t;case"range":return Array.isArray(t);default:return!1}}}class U{canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=new Date(t[0]),i=new Date(t[1]),n=h(e,i);return{isValid:n,message:n?"":"The end date should be later than start date"}}isAcceptedInputType(t){return Array.isArray(t)&&2===t.length&&t.every(a)}}class Z{constructor(t){this.evaluateSingleDate=t=>{const e=new Date(t);return this.minDate&&d(e,this.minDate)?this.invalidResult({key:"The date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(e,this.maxDate)?this.invalidResult({key:"The date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.evaluateRangeDates=t=>{const e=new Date(t[0]),i=new Date(t[1]);return this.minDate&&d(e,this.minDate)?this.invalidResult({key:"The start date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(e,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=t=>({isValid:!1,message:t}),this.validResult=()=>({isValid:!0,message:""}),this.config=t,this.minDate=t.minDate?new Date(t.minDate):null,this.maxDate=t.maxDate?new Date(t.maxDate):null}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);return"string"==typeof t?this.evaluateSingleDate(t):this.evaluateRangeDates(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&a(t)||Array.isArray(t)&&2===t.length&&t.every(a)}}const G={"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 320 512">\x3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--\x3e<path fill="currentColor" d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>'}};var K=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class q extends p{constructor(){super(...arguments),this.renderInputPrefix=()=>t("div",{class:"vega-input-prefix"},t("vega-icon",{icon:R.getIconKey("calendar"),color:"text-secondary",onClick:()=>{this.disabled||this.focusInput()}})),this.isInputEnabled=()=>!this.readOnly&&!this.vegaDatePickerMobileController.getIsMobileDevice(),this.renderLabel=()=>this.label&&t("vega-field-label",{ref:t=>{k.addUniqueObserverToNode(t,D,(()=>{this.focusInput()}))},isFieldRequired:this.required,disabled:this.disabled,label:this.label}),this.focusInput=()=>{var t,e;null===(t=this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef())||void 0===t||t.focus(),null===(e=this.vegaDatePickerRangeInputRenderer.getStartDateInputRef())||void 0===e||e.focus(),this.vegaDatePickerCalendarRenderer.getDatePicker().show()}}getDatePickerContainer(){return this.datePickerContainer}render(){const i=["vega-input-container",this.size,`${this.mode}-mode`,this.vegaDatePickerMobileController.getIsMobileDevice()?"mobile":""];return t(e,{class:{disabled:this.disabled}},this.renderLabel(),t("div",{class:x(i),ref:t=>this.datePickerContainer=t},"range"===this.mode?this.vegaDatePickerRangeInputRenderer.render():this.vegaDatePickerSingleInputRenderer.render(),this.showYearMonthDropdowns&&this.monthYearDropdownRenderer.render()))}}R.register({calendar:G.calendar}),K([l()],q.prototype,"disabled",void 0),K([l()],q.prototype,"size",void 0),K([l()],q.prototype,"mode",void 0),K([l()],q.prototype,"label",void 0),K([l()],q.prototype,"required",void 0),K([l()],q.prototype,"readOnly",void 0),K([l()],q.prototype,"autoValidation",void 0),K([l()],q.prototype,"host",void 0),K([l()],q.prototype,"showYearMonthDropdowns",void 0),K([l()],q.prototype,"vegaDatePickerMobileController",void 0),K([l()],q.prototype,"vegaDatePickerSingleInputRenderer",void 0),K([l()],q.prototype,"vegaDatePickerRangeInputRenderer",void 0),K([l()],q.prototype,"vegaDatePickerCalendarRenderer",void 0),K([l()],q.prototype,"monthYearDropdownRenderer",void 0);var X=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class J extends p{constructor(){super(...arguments),this.isMobileDevice=b()===y.MOBILE}getIsMobileDevice(){return this.isMobileDevice}preventElementTouchMoveInMobile(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");t&&(t.removeEventListener("touchmove",(t=>t.preventDefault())),t.addEventListener("touchmove",(t=>t.preventDefault()))),this.vegaDatePickerCalendarRenderer.getCalendarContainerRef().removeEventListener("touchmove",(t=>t.preventDefault())),this.vegaDatePickerCalendarRenderer.getCalendarContainerRef().addEventListener("touchmove",(t=>t.preventDefault()))}}X([l()],J.prototype,"host",void 0),X([l()],J.prototype,"vegaDatePickerCalendarRenderer",void 0);var Q=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class tt extends p{constructor(){super(...arguments),this.onClickClearIcon=()=>{this.vegaDatePickerValueController.setValue("range"===this.mode?["",""]:"")},this.isClearIconVisible=()=>{if("range"===this.mode){const t=this.vegaDatePickerValueController.getValue();return!this.disabled&&!O(t,["",""])}{const t=this.vegaDatePickerValueController.getValue();return!this.disabled&&Boolean(t.length)}}}renderClearIcon(){return t(i,null,this.showClearIcon&&this.isClearIconVisible()&&t("div",{class:"vega-input-clear-icon",tabIndex:-1,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:I()},t("vega-icon",{icon:"close"})))}}Q([l()],tt.prototype,"disabled",void 0),Q([l()],tt.prototype,"showClearIcon",void 0),Q([l()],tt.prototype,"mode",void 0),Q([l()],tt.prototype,"vegaDatePickerValueController",void 0);var et=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class it extends tt{constructor(){super(...arguments),this.render=()=>t("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),t("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getSinglePlaceholder(),value:this.vegaDatePickerValueController.getValue(),ref:t=>this.singleDateInputRef=t,onChange:this.onSingleDateChange,disabled:this.disabled,onClick:()=>{this.vegaDatePickerCalendarRenderer.getDatePicker().show()}}),this.renderClearIcon()),this.getSinglePlaceholder=()=>this.placeholder?"string"!=typeof this.placeholder?(f.warn("The placeholder should be a string"),this.format):this.placeholder:this.format,this.onSingleDateChange=t=>{const e=t.currentTarget.value;a(e)?this.vegaDatePickerValueController.setValue(this.vegaDatePickerFormatController.formatDate(e)):(this.vegaDatePickerValueController.setValue(""),this.singleDateInputRef.value="",f.warn("The date value of ${date} is invalid"))}}componentWillRender(){this.oldSingleDateInputRef=this.singleDateInputRef}getSingleDateInputRef(){return this.singleDateInputRef}getOldSingleDateInputRef(){return this.oldSingleDateInputRef}}et([l()],it.prototype,"placeholder",void 0),et([l()],it.prototype,"format",void 0),et([l()],it.prototype,"vegaDatePickerFormatController",void 0),et([l()],it.prototype,"vegaDatePickerRenderer",void 0),et([l()],it.prototype,"vegaDatePickerCalendarRenderer",void 0),et([u("componentWillRender")],it.prototype,"componentWillRender",null);var nt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class rt extends tt{constructor(){super(...arguments),this.render=()=>t(i,null,t("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),t("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[0],value:this.vegaDatePickerValueController.getValue()[0],ref:t=>this.startDateInputRef=t,onChange:this.onStartDateChange,disabled:this.disabled})),t("span",{class:{"range-input-divider":!0}}),t("div",{class:"date-picker-input"},t("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[1],value:this.vegaDatePickerValueController.getValue()[1],ref:t=>this.endDateInputRef=t,onChange:this.onEndDateChange,disabled:this.disabled}),this.renderClearIcon())),this.getRangePlaceholder=()=>this.placeholder?Array.isArray(this.placeholder)&&2===this.placeholder.length?this.placeholder:(f.warn("The placeholder should be an array, including start and end placeholder"),["Start Date","End Date"].map((t=>this.translationSlimmer.t(t)))):["Start Date","End Date"].map((t=>this.translationSlimmer.t(t))),this.onStartDateChange=t=>{const e=t.currentTarget.value;a(e)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerFormatController.formatDate(e),this.vegaDatePickerValueController.getValue()[1]]):(this.vegaDatePickerValueController.setValue(["",this.vegaDatePickerValueController.getValue()[1]]),this.startDateInputRef.value="",f.warn("The date value of ${date} is invalid"))},this.onEndDateChange=t=>{const e=t.currentTarget.value;a(e)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],this.vegaDatePickerFormatController.formatDate(e)]):(this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],""]),this.endDateInputRef.value="",f.warn("The date value of ${date} is invalid"))}}componentWillRender(){this.oldStartDateInputRef=this.startDateInputRef,this.oldEndDateInputRef=this.endDateInputRef}getStartDateInputRef(){return this.startDateInputRef}getEndDateInputRef(){return this.endDateInputRef}getOldStartDateInputRef(){return this.oldStartDateInputRef}getOldEndDateInputRef(){return this.oldEndDateInputRef}}nt([l()],rt.prototype,"placeholder",void 0),nt([l()],rt.prototype,"vegaDatePickerFormatController",void 0),nt([l()],rt.prototype,"vegaDatePickerRenderer",void 0),nt([l()],rt.prototype,"translationSlimmer",void 0),nt([u("componentWillRender")],rt.prototype,"componentWillRender",null);var st=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class ot extends p{constructor(){super(...arguments),this.handleClear=()=>{this.vegaDatePickerCalendarRenderer.getDatePicker().clearSelection(),this.vegaDatePickerValueController.setDefaultValueByMode(),this.vegaDatePickerCalendarRenderer.getDatePicker().hide()},this.shouldUpdateCalendar=t=>{var e,i;const n=(null===(e=this.vegaDatePickerCalendarRenderer.getDatePicker().getStartDate())||void 0===e?void 0:e.format(this.format))||"",r=(null===(i=this.vegaDatePickerCalendarRenderer.getDatePicker().getEndDate())||void 0===i?void 0:i.format(this.format))||"";("single"===this.mode&&t!==n||"range"===this.mode&&!O(t,[n,r]))&&this.updateCalendar()},this.onDatePickerSelected=(t,e)=>{if("range"===this.mode){const i=t.format(this.format),n=e.format(this.format);this.vegaDatePickerRangeInputRenderer.getStartDateInputRef().value=i,this.vegaDatePickerRangeInputRenderer.getEndDateInputRef().value=n,this.vegaDatePickerValueController.syncUpValueWithCalendar()}else this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef().value=t.format(this.format),this.vegaDatePickerValueController.syncUpValueWithCalendar()},this.getDefaultLitePickerConfig=()=>{const t=Object.assign(Object.assign({},this.getModeConfig()),{splitView:!1,showTooltip:!1,firstDay:0,minDate:this.minDate,maxDate:this.maxDate,allowRepick:this.allowRepick,format:this.format,plugins:[this.vegaDatePickerMobileController.getIsMobileDevice()?"mobilefriendly":null].filter(Boolean),parentEl:this.vegaDatePickerCalendarRenderer.getCalendarContainerRef()});if(this.showYearMonthDropdowns){const e=this.minDate?new Date(this.minDate).getFullYear():(new Date).getFullYear()-ot.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR,i=this.maxDate?new Date(this.maxDate).getFullYear():(new Date).getFullYear()+ot.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR;t.dropdowns={months:!0,years:!0,minYear:e,maxYear:i}}return t},this.getModeConfig=()=>({singleMode:"single"===this.mode,numberOfMonths:"single"===this.mode?1:2,numberOfColumns:"single"===this.mode?1:2,startDate:"range"===this.mode?this.vegaDatePickerValueController.getValue()[0]:this.vegaDatePickerValueController.getValue(),endDate:"range"===this.mode?this.vegaDatePickerValueController.getValue()[1]:null,element:"range"===this.mode?this.vegaDatePickerRangeInputRenderer.getStartDateInputRef():this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),elementEnd:"range"===this.mode?this.vegaDatePickerRangeInputRenderer.getEndDateInputRef():null})}watchMinDate(t){this.minDate=t?this.vegaDatePickerFormatController.formatDate(t):"",this.vegaDatePickerCalendarRenderer.getDatePicker().setOptions({minDate:this.minDate?this.minDate:null}),this.goToDate()}watchMaxDate(t){this.maxDate=t?this.vegaDatePickerFormatController.formatDate(t):"",this.vegaDatePickerCalendarRenderer.getDatePicker().setOptions({maxDate:this.maxDate?this.maxDate:null}),this.goToDate()}watchValue(){this.goToDate()}goToDate(){const t="range"===this.mode?this.vegaDatePickerValueController.getValue()[0]:this.vegaDatePickerValueController.getValue(),e=this.vegaDatePickerCalendarRenderer.getDatePicker(),i=new Date;t?e.gotoDate(t,0):this.minDate&&(d(i,new Date(this.minDate))||this.maxDate&&c(i,new Date(this.maxDate)))?e.gotoDate(this.minDate,0):this.maxDate&&c(i,new Date(this.maxDate))?e.gotoDate(this.maxDate,0):e.gotoDate(i,0)}updateCalendar(){if(this.vegaDatePickerCalendarRenderer.getDatePicker()&&("single"===this.mode&&(this.vegaDatePickerValueController.getValue()?this.vegaDatePickerCalendarRenderer.getDatePicker().setDate(this.vegaDatePickerValueController.getValue()):this.vegaDatePickerCalendarRenderer.getDatePicker().clearSelection()),"range"===this.mode)){const t=this.vegaDatePickerValueController.getValue()[0],e=this.vegaDatePickerValueController.getValue()[1];t&&e?this.vegaDatePickerCalendarRenderer.getDatePicker().setDateRange(t,e):""===t&&""===e&&this.vegaDatePickerCalendarRenderer.getDatePicker().clearSelection()}}}ot.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR=10,ot.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR=10,st([l({writable:!0})],ot.prototype,"minDate",void 0),st([l({writable:!0})],ot.prototype,"maxDate",void 0),st([l()],ot.prototype,"allowRepick",void 0),st([l()],ot.prototype,"format",void 0),st([l()],ot.prototype,"mode",void 0),st([l()],ot.prototype,"showYearMonthDropdowns",void 0),st([l()],ot.prototype,"vegaDatePickerMobileController",void 0),st([l()],ot.prototype,"vegaDatePickerValueController",void 0),st([l()],ot.prototype,"vegaDatePickerFormatController",void 0),st([l()],ot.prototype,"vegaDatePickerSingleInputRenderer",void 0),st([l()],ot.prototype,"vegaDatePickerRangeInputRenderer",void 0),st([l()],ot.prototype,"vegaDatePickerCalendarRenderer",void 0),st([u("watchMinDate")],ot.prototype,"watchMinDate",null),st([u("watchMaxDate")],ot.prototype,"watchMaxDate",null),st([u("watchValue")],ot.prototype,"watchValue",null);var at=C((function(t){
2
+ /*!
3
+ *
4
+ * litepicker.umd.js
5
+ * Litepicker v2.0.12 (https://github.com/wakirin/Litepicker)
6
+ * Package: litepicker (https://www.npmjs.com/package/litepicker)
7
+ * License: MIT (https://github.com/wakirin/Litepicker/blob/master/LICENCE.md)
8
+ * Copyright 2019-2021 Rinat G.
9
+ *
10
+ * Hash: f46190e781537007f2f2
11
+ *
12
+ */
13
+ window,t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(e,i,n){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n="en-US"),this.dateInstance="object"==typeof i&&null!==i?i.parse(e instanceof t?e.clone().toJSDate():e):"string"==typeof i?t.parseDateTime(e,i,n):t.parseDateTime(e||new Date),this.lang=n}return t.parseDateTime=function(e,i,n){if(void 0===i&&(i="YYYY-MM-DD"),void 0===n&&(n="en-US"),!e)return new Date(NaN);if(e instanceof Date)return new Date(e);if(e instanceof t)return e.clone().toJSDate();if(/^-?\d{10,}$/.test(e))return t.getDateZeroTime(new Date(Number(e)));if("string"==typeof e){for(var r=[],s=null;null!=(s=t.regex.exec(i));)"\\"!==s[1]&&r.push(s);if(r.length){var o={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};r[0].index>0&&(o.value+=".*?");for(var a=0,h=Object.entries(r);a<h.length;a++){var d=h[a],c=d[1],l=Number(d[0]),p=t.formatPatterns(c[0],n),u=p.pattern;o[p.group]=l+1,o.value+=u,o.value+=".*?"}var f=new RegExp("^"+o.value+"$");if(f.test(e)){var m=f.exec(e),v=Number(m[o.year]),g=null;o.month?g=Number(m[o.month])-1:o.shortMonth?g=t.shortMonths(n).indexOf(m[o.shortMonth]):o.longMonth&&(g=t.longMonths(n).indexOf(m[o.longMonth]));var w=Number(m[o.day])||1;return new Date(v,g,w,0,0,0,0)}}}return t.getDateZeroTime(new Date(e))},t.convertArray=function(e,i){return e.map((function(e){return e instanceof Array?e.map((function(e){return new t(e,i)})):new t(e,i)}))},t.getDateZeroTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},t.shortMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"short"})}))},t.longMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"long"})}))},t.formatPatterns=function(e,i){switch(e){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+e.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+t.shortMonths(i).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+t.longMonths(i).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},t.prototype.toJSDate=function(){return this.dateInstance},t.prototype.toLocaleString=function(t,e){return this.dateInstance.toLocaleString(t,e)},t.prototype.toDateString=function(){return this.dateInstance.toDateString()},t.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},t.prototype.getDay=function(){return this.dateInstance.getDay()},t.prototype.getTime=function(){return this.dateInstance.getTime()},t.prototype.getDate=function(){return this.dateInstance.getDate()},t.prototype.getMonth=function(){return this.dateInstance.getMonth()},t.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},t.prototype.setMonth=function(t){return this.dateInstance.setMonth(t)},t.prototype.setHours=function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.dateInstance.setHours(t,e,i,n)},t.prototype.setSeconds=function(t){return this.dateInstance.setSeconds(t)},t.prototype.setDate=function(t){return this.dateInstance.setDate(t)},t.prototype.setFullYear=function(t){return this.dateInstance.setFullYear(t)},t.prototype.getWeek=function(t){var e=new Date(this.timestamp()),i=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-i);var n=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((n-e.getTime())/6048e5)},t.prototype.clone=function(){return new t(this.toJSDate())},t.prototype.isBetween=function(t,e,i){switch(void 0===i&&(i="()"),i){default:case"()":return this.timestamp()>t.getTime()&&this.timestamp()<e.getTime();case"[)":return this.timestamp()>=t.getTime()&&this.timestamp()<e.getTime();case"(]":return this.timestamp()>t.getTime()&&this.timestamp()<=e.getTime();case"[]":return this.timestamp()>=t.getTime()&&this.timestamp()<=e.getTime()}},t.prototype.isBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},t.prototype.isSameOrBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>=this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},t.prototype.isAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw new Error("isAfter: Invalid unit!")},t.prototype.isSameOrAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>=t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},t.prototype.isSame=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()===t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},t.prototype.add=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()+t);break;case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this},t.prototype.subtract=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()-t);break;case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this},t.prototype.diff=function(t,e){switch(void 0===e&&(e="seconds"),e){default:case"second":case"seconds":return this.getTime()-t.getTime();case"day":case"days":return Math.round((this.timestamp()-t.getTime())/864e5);case"month":case"months":}},t.prototype.format=function(e,i){if(void 0===i&&(i="en-US"),"object"==typeof e)return e.output(this.clone().toJSDate());for(var n="",r=[],s=null;null!=(s=t.regex.exec(e));)"\\"!==s[1]&&r.push(s);if(r.length){r[0].index>0&&(n+=e.substring(0,r[0].index));for(var o=0,a=Object.entries(r);o<a.length;o++){var h=a[o],d=h[1],c=Number(h[0]);n+=this.formatTokens(d[0],i),r[c+1]&&(n+=e.substring(d.index+d[0].length,r[c+1].index)),c===r.length-1&&(n+=e.substring(d.index+d[0].length))}}return n.replace(/\\/g,"")},t.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},t.prototype.formatTokens=function(e,i){switch(e){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return t.shortMonths(i)[this.getMonth()];case"MMMM":return t.longMonths(i)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},t.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,t.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],t}();e.DateTime=i},function(t,e,i){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)n[r]=s[o];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),a=i(0),h=i(3),d=i(2),c=function(t){function e(e){var i=t.call(this,e)||this;return i.preventClick=!1,i.bindEvents(),i}return r(e,t),e.prototype.scrollToDate=function(t){if(this.options.scrollToDate){var e=this.options.startDate instanceof a.DateTime?this.options.startDate.clone():null,i=this.options.endDate instanceof a.DateTime?this.options.endDate.clone():null;!this.options.startDate||t&&t!==this.options.element?t&&this.options.endDate&&t===this.options.elementEnd&&(i.setDate(1),this.options.numberOfMonths>1&&i.isAfter(e)&&i.setMonth(i.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=i.clone()):(e.setDate(1),this.calendars[0]=e.clone())}},e.prototype.bindEvents=function(){document.addEventListener("click",this.onClick.bind(this),!0),this.ui=document.createElement("div"),this.ui.className=h.litepicker,this.ui.style.display="none",this.ui.addEventListener("mouseenter",this.onMouseEnter.bind(this),!0),this.ui.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",this.onInput.bind(this),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",this.onInput.bind(this),!0)),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.ui):document.querySelector(this.options.parentEl).appendChild(this.ui):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.ui):this.options.element.appendChild(this.ui):document.body.appendChild(this.ui),this.updateInput(),this.init(),"function"==typeof this.options.setup&&this.options.setup.call(this,this),this.render(),this.options.inlineMode&&this.show()},e.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){var t=this.options.startDate,e=this.options.endDate;if(this.options.singleMode&&t)this.options.element.value=t.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&t&&e){var i=t.format(this.options.format,this.options.lang),n=e.format(this.options.format,this.options.lang);this.options.elementEnd instanceof HTMLInputElement?(this.options.element.value=i,this.options.elementEnd.value=n):this.options.element.value=""+i+this.options.delimiter+n}t||e||(this.options.element.value="",this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.value=""))}},e.prototype.isSamePicker=function(t){return t.closest("."+h.litepicker)===this.ui},e.prototype.shouldShown=function(t){return!t.disabled&&(t===this.options.element||this.options.elementEnd&&t===this.options.elementEnd)},e.prototype.shouldResetDatePicked=function(){return this.options.singleMode||2===this.datePicked.length},e.prototype.shouldSwapDatePicked=function(){return 2===this.datePicked.length&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},e.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&2===this.datePicked.length},e.prototype.onClick=function(t){var e=t.target;if(t.target.shadowRoot&&(e=t.composedPath()[0]),e&&this.ui)if(this.shouldShown(e))this.show(e);else if(e.closest("."+h.litepicker)||!this.isShowning()){if(this.isSamePicker(e))if(this.emit("before:click",e),this.preventClick)this.preventClick=!1;else{if(e.classList.contains(h.dayItem)){if(t.preventDefault(),e.classList.contains(h.isLocked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new a.DateTime(e.dataset.time),this.shouldSwapDatePicked()){var i=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=i.clone()}return this.shouldCheckLockDays()&&d.rangeIsLocked(this.datePicked,this.options)&&(this.emit("error:range",this.datePicked),this.datePicked.length=0),this.render(),this.emit.apply(this,s(["preselect"],s(this.datePicked).map((function(t){return t.clone()})))),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||2!==this.datePicked.length||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(e.classList.contains(h.buttonPreviousMonth)){t.preventDefault();var n=0,r=this.options.switchingMonths||this.options.numberOfMonths;if(this.options.splitView){var o=e.closest("."+h.monthItem);n=d.findNestedMonthItem(o),r=1}return this.calendars[n].setMonth(this.calendars[n].getMonth()-r),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n)}if(e.classList.contains(h.buttonNextMonth))return t.preventDefault(),n=0,r=this.options.switchingMonths||this.options.numberOfMonths,this.options.splitView&&(o=e.closest("."+h.monthItem),n=d.findNestedMonthItem(o),r=1),this.calendars[n].setMonth(this.calendars[n].getMonth()+r),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n);e.classList.contains(h.buttonCancel)&&(t.preventDefault(),this.hide(),this.emit("button:cancel")),e.classList.contains(h.buttonApply)&&(t.preventDefault(),this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||2!==this.datePicked.length||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide(),this.emit("button:apply",this.options.startDate,this.options.endDate))}}else this.hide()},e.prototype.showTooltip=function(t,e){var i=this.ui.querySelector("."+h.containerTooltip);i.style.visibility="visible",i.innerHTML=e;var n=this.ui.getBoundingClientRect(),r=i.getBoundingClientRect(),s=t.getBoundingClientRect(),o=s.top,a=s.left;if(this.options.inlineMode&&this.options.parentEl){var d=this.ui.parentNode.getBoundingClientRect();o-=d.top,a-=d.left}else o-=n.top,a-=n.left;a-=r.width/2,a+=s.width/2,i.style.top=(o-=r.height)+"px",i.style.left=a+"px",this.emit("tooltip",i,t)},e.prototype.hideTooltip=function(){this.ui.querySelector("."+h.containerTooltip).style.visibility="hidden"},e.prototype.shouldAllowMouseEnter=function(t){return!this.options.singleMode&&!t.classList.contains(h.isLocked)},e.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},e.prototype.isDayItem=function(t){return t.classList.contains(h.dayItem)},e.prototype.onMouseEnter=function(t){var e=this,i=t.target;if(this.isDayItem(i)&&this.shouldAllowMouseEnter(i)){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),1!==this.datePicked.length)return;var n=this.ui.querySelector("."+h.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),r=this.datePicked[0].clone(),s=new a.DateTime(i.dataset.time),o=!1;if(r.getTime()>s.getTime()){var d=r.clone();r=s.clone(),s=d.clone(),o=!0}if(Array.prototype.slice.call(this.ui.querySelectorAll("."+h.dayItem)).forEach((function(t){var i=new a.DateTime(t.dataset.time),n=e.renderDay(i);i.isBetween(r,s)&&n.classList.add(h.isInRange),t.className=n.className})),i.classList.add(h.isEndDate),o?(n&&n.classList.add(h.isFlipped),i.classList.add(h.isFlipped)):(n&&n.classList.remove(h.isFlipped),i.classList.remove(h.isFlipped)),this.options.showTooltip){var c=s.diff(r,"day")+1;if("function"==typeof this.options.tooltipNumber&&(c=this.options.tooltipNumber.call(this,c)),c>0){var l=this.pluralSelector(c);this.showTooltip(i,c+" "+(this.options.tooltipText[l]?this.options.tooltipText[l]:"["+l+"]"));var p=window.navigator.userAgent,u=/(iphone|ipad)/i.test(p),f=/OS 1([0-2])/i.test(p);u&&f&&i.dispatchEvent(new Event("click"))}else this.hideTooltip()}}},e.prototype.onMouseLeave=function(){this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},e.prototype.onInput=function(t){var e=this.parseInput(),i=e[0],n=e[1],r=this.options.format;if(this.options.elementEnd?i instanceof a.DateTime&&n instanceof a.DateTime&&i.format(r)===this.options.element.value&&n.format(r)===this.options.elementEnd.value:this.options.singleMode?i instanceof a.DateTime&&i.format(r)===this.options.element.value:i instanceof a.DateTime&&n instanceof a.DateTime&&""+i.format(r)+this.options.delimiter+n.format(r)===this.options.element.value){if(n&&i.getTime()>n.getTime()){var s=i.clone();i=n.clone(),n=s.clone()}this.options.startDate=new a.DateTime(i,this.options.format,this.options.lang),n&&(this.options.endDate=new a.DateTime(n,this.options.format,this.options.lang)),this.updateInput(),this.render();var o=i.clone(),h=0;(this.options.elementEnd?i.format(r)===t.target.value:t.target.value.startsWith(i.format(r)))||(o=n.clone(),h=this.options.numberOfMonths-1),this.emit("selected",this.getStartDate(),this.getEndDate()),this.gotoDate(o,h)}},e}(o.Calendar);e.Litepicker=c},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.findNestedMonthItem=function(t){for(var e=t.parentNode.childNodes,i=0;i<e.length;i+=1)if(e.item(i)===t)return i;return 0},e.dateIsLocked=function(t,e,i){var n=!1;return e.lockDays.length&&(n=e.lockDays.filter((function(i){return i instanceof Array?t.isBetween(i[0],i[1],e.lockDaysInclusivity):i.isSame(t,"day")})).length),n||"function"!=typeof e.lockDaysFilter||(n=e.lockDaysFilter.call(this,t.clone(),null,i)),n},e.rangeIsLocked=function(t,e){var i=!1;return e.lockDays.length&&(i=e.lockDays.filter((function(i){if(i instanceof Array){var n=t[0].toDateString()===i[0].toDateString()&&t[1].toDateString()===i[1].toDateString();return i[0].isBetween(t[0],t[1],e.lockDaysInclusivity)||i[1].isBetween(t[0],t[1],e.lockDaysInclusivity)||n}return i.isBetween(t[0],t[1],e.lockDaysInclusivity)})).length),i||"function"!=typeof e.lockDaysFilter||(i=e.lockDaysFilter.call(this,t[0].clone(),t[1].clone(),t)),i}},function(t){t.exports={showWeekNumbers:"show-week-numbers",litepicker:"litepicker",containerMain:"container__main",containerMonths:"container__months",columns2:"columns-2",columns3:"columns-3",columns4:"columns-4",splitView:"split-view",monthItemHeader:"month-item-header",buttonPreviousMonth:"button-previous-month",buttonNextMonth:"button-next-month",monthItem:"month-item",monthItemName:"month-item-name",monthItemYear:"month-item-year",resetButton:"reset-button",monthItemWeekdaysRow:"month-item-weekdays-row",noPreviousMonth:"no-previous-month",noNextMonth:"no-next-month",containerDays:"container__days",dayItem:"day-item",isToday:"is-today",isLocked:"is-locked",isInRange:"is-in-range",isStartDate:"is-start-date",isFlipped:"is-flipped",isEndDate:"is-end-date",isHighlighted:"is-highlighted",weekNumber:"week-number",containerFooter:"container__footer",previewDateRange:"preview-date-range",buttonCancel:"button-cancel",buttonApply:"button-apply",containerTooltip:"container__tooltip"}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(1);e.Litepicker=n.Litepicker,i(8),window.Litepicker=n.Litepicker,e.default=n.Litepicker},function(t,e,i){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(6),o=i(0),a=i(3),h=i(2),d=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.render=function(){var t=this;this.emit("before:render",this.ui);var e=document.createElement("div");e.className=a.containerMain;var i=document.createElement("div");i.className=a.containerMonths,a["columns"+this.options.numberOfColumns]&&(i.classList.remove(a.columns2,a.columns3,a.columns4),i.classList.add(a["columns"+this.options.numberOfColumns])),this.options.splitView&&i.classList.add(a.splitView),this.options.showWeekNumbers&&i.classList.add(a.showWeekNumbers);for(var n=this.calendars[0].clone(),r=n.getMonth(),s=n.getMonth()+this.options.numberOfMonths,o=0,h=r;h<s;h+=1){var d=n.clone();d.setDate(1),d.setHours(0,0,0,0),this.options.splitView?d=this.calendars[o].clone():d.setMonth(h),i.appendChild(this.renderMonth(d,o)),o+=1}if(this.ui.innerHTML="",e.appendChild(i),this.options.resetButton){var c=void 0;"function"==typeof this.options.resetButton?c=this.options.resetButton.call(this):((c=document.createElement("button")).type="button",c.className=a.resetButton,c.innerHTML=this.options.buttonText.reset),c.addEventListener("click",(function(e){e.preventDefault(),t.clearSelection()})),e.querySelector("."+a.monthItem+":last-child").querySelector("."+a.monthItemHeader).appendChild(c)}this.ui.appendChild(e),this.options.autoApply&&!this.options.footerHTML||this.ui.appendChild(this.renderFooter()),this.options.showTooltip&&this.ui.appendChild(this.renderTooltip()),this.ui.dataset.plugins=(this.options.plugins||[]).join("|"),this.emit("render",this.ui)},e.prototype.renderMonth=function(t){var e=this,i=t.clone(),n=32-new Date(i.getFullYear(),i.getMonth(),32).getDate(),r=document.createElement("div");r.className=a.monthItem;var s=document.createElement("div");s.className=a.monthItemHeader;var d=document.createElement("div");if(this.options.dropdowns.months){var c=document.createElement("select");c.className=a.monthItemName;for(var l=0;l<12;l+=1){var p=document.createElement("option"),u=new o.DateTime(new Date(t.getFullYear(),l,2,0,0,0)),f=new o.DateTime(new Date(t.getFullYear(),l,1,0,0,0));p.value=String(l),p.text=u.toLocaleString(this.options.lang,{month:"long"}),p.disabled=this.options.minDate&&f.isBefore(new o.DateTime(this.options.minDate),"month")||this.options.maxDate&&f.isAfter(new o.DateTime(this.options.maxDate),"month"),p.selected=f.getMonth()===t.getMonth(),c.appendChild(p)}c.addEventListener("change",(function(t){var i=t.target,n=0;if(e.options.splitView){var r=i.closest("."+a.monthItem);n=h.findNestedMonthItem(r)}e.calendars[n].setMonth(Number(i.value)),e.render(),e.emit("change:month",e.calendars[n],n,t)})),d.appendChild(c)}else(u=document.createElement("strong")).className=a.monthItemName,u.innerHTML=t.toLocaleString(this.options.lang,{month:"long"}),d.appendChild(u);if(this.options.dropdowns.years){var m=document.createElement("select");m.className=a.monthItemYear;var v=this.options.dropdowns.minYear,g=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:(new Date).getFullYear();for(t.getFullYear()>g&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,m.appendChild(p)),l=g;l>=v;l-=1){p=document.createElement("option");var w=new o.DateTime(new Date(l,0,1,0,0,0));p.value=String(l),p.text=String(l),p.disabled=this.options.minDate&&w.isBefore(new o.DateTime(this.options.minDate),"year")||this.options.maxDate&&w.isAfter(new o.DateTime(this.options.maxDate),"year"),p.selected=t.getFullYear()===l,m.appendChild(p)}if(t.getFullYear()<v&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,m.appendChild(p)),"asc"===this.options.dropdowns.years){var x=Array.prototype.slice.call(m.childNodes).reverse();m.innerHTML="",x.forEach((function(t){t.innerHTML=t.value,m.appendChild(t)}))}m.addEventListener("change",(function(t){var i=t.target,n=0;if(e.options.splitView){var r=i.closest("."+a.monthItem);n=h.findNestedMonthItem(r)}e.calendars[n].setFullYear(Number(i.value)),e.render(),e.emit("change:year",e.calendars[n],n,t)})),d.appendChild(m)}else{var b=document.createElement("span");b.className=a.monthItemYear,b.innerHTML=String(t.getFullYear()),d.appendChild(b)}var y=document.createElement("button");y.type="button",y.className=a.buttonPreviousMonth,y.innerHTML=this.options.buttonText.previousMonth;var k=document.createElement("button");k.type="button",k.className=a.buttonNextMonth,k.innerHTML=this.options.buttonText.nextMonth,s.appendChild(y),s.appendChild(d),s.appendChild(k),this.options.minDate&&i.isSameOrBefore(new o.DateTime(this.options.minDate),"month")&&r.classList.add(a.noPreviousMonth),this.options.maxDate&&i.isSameOrAfter(new o.DateTime(this.options.maxDate),"month")&&r.classList.add(a.noNextMonth);var D=document.createElement("div");D.className=a.monthItemWeekdaysRow,this.options.showWeekNumbers&&(D.innerHTML="<div>W</div>");for(var _=1;_<=7;_+=1){var j=3+this.options.firstDay+_,M=document.createElement("div");M.innerHTML=this.weekdayName(j),M.title=this.weekdayName(j,"long"),D.appendChild(M)}var R=document.createElement("div");R.className=a.containerDays;var I=this.calcSkipDays(i);this.options.showWeekNumbers&&I&&R.appendChild(this.renderWeekNumber(i));for(var O=0;O<I;O+=1){var C=document.createElement("div");R.appendChild(C)}for(O=1;O<=n;O+=1)i.setDate(O),this.options.showWeekNumbers&&i.getDay()===this.options.firstDay&&R.appendChild(this.renderWeekNumber(i)),R.appendChild(this.renderDay(i));return r.appendChild(s),r.appendChild(D),r.appendChild(R),this.emit("render:month",r,t),r},e.prototype.renderDay=function(t){t.setHours();var e=document.createElement("div");if(e.className=a.dayItem,e.innerHTML=String(t.getDate()),e.dataset.time=String(t.getTime()),t.toDateString()===(new Date).toDateString()&&e.classList.add(a.isToday),this.datePicked.length)this.datePicked[0].toDateString()===t.toDateString()&&(e.classList.add(a.isStartDate),this.options.singleMode&&e.classList.add(a.isEndDate)),2===this.datePicked.length&&this.datePicked[1].toDateString()===t.toDateString()&&e.classList.add(a.isEndDate),2===this.datePicked.length&&t.isBetween(this.datePicked[0],this.datePicked[1])&&e.classList.add(a.isInRange);else if(this.options.startDate){var i=this.options.startDate,n=this.options.endDate;i.toDateString()===t.toDateString()&&(e.classList.add(a.isStartDate),this.options.singleMode&&e.classList.add(a.isEndDate)),n&&n.toDateString()===t.toDateString()&&e.classList.add(a.isEndDate),i&&n&&t.isBetween(i,n)&&e.classList.add(a.isInRange)}if(this.options.minDate&&t.isBefore(new o.DateTime(this.options.minDate))&&e.classList.add(a.isLocked),this.options.maxDate&&t.isAfter(new o.DateTime(this.options.maxDate))&&e.classList.add(a.isLocked),this.options.minDays>1&&1===this.datePicked.length){var r=this.options.minDays-1,s=this.datePicked[0].clone().subtract(r,"day"),d=this.datePicked[0].clone().add(r,"day");t.isBetween(s,this.datePicked[0],"(]")&&e.classList.add(a.isLocked),t.isBetween(this.datePicked[0],d,"[)")&&e.classList.add(a.isLocked)}if(this.options.maxDays&&1===this.datePicked.length){var c=this.options.maxDays;s=this.datePicked[0].clone().subtract(c,"day"),d=this.datePicked[0].clone().add(c,"day"),t.isSameOrBefore(s)&&e.classList.add(a.isLocked),t.isSameOrAfter(d)&&e.classList.add(a.isLocked)}return this.options.selectForward&&1===this.datePicked.length&&t.isBefore(this.datePicked[0])&&e.classList.add(a.isLocked),this.options.selectBackward&&1===this.datePicked.length&&t.isAfter(this.datePicked[0])&&e.classList.add(a.isLocked),h.dateIsLocked(t,this.options,this.datePicked)&&e.classList.add(a.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter((function(e){return e instanceof Array?t.isBetween(e[0],e[1],"[]"):e.isSame(t,"day")})).length&&e.classList.add(a.isHighlighted),e.tabIndex=e.classList.contains("is-locked")?-1:0,this.emit("render:day",e,t),e},e.prototype.renderFooter=function(){var t=document.createElement("div");if(t.className=a.containerFooter,t.innerHTML=this.options.footerHTML?this.options.footerHTML:'\n <span class="'+a.previewDateRange+'"></span>\n <button type="button" class="'+a.buttonCancel+'">'+this.options.buttonText.cancel+'</button>\n <button type="button" class="'+a.buttonApply+'">'+this.options.buttonText.apply+"</button>\n ",this.options.singleMode){if(1===this.datePicked.length){var e=this.datePicked[0].format(this.options.format,this.options.lang);t.querySelector("."+a.previewDateRange).innerHTML=e}}else if(1===this.datePicked.length&&t.querySelector("."+a.buttonApply).setAttribute("disabled",""),2===this.datePicked.length){e=this.datePicked[0].format(this.options.format,this.options.lang);var i=this.datePicked[1].format(this.options.format,this.options.lang);t.querySelector("."+a.previewDateRange).innerHTML=""+e+this.options.delimiter+i}return this.emit("render:footer",t),t},e.prototype.renderWeekNumber=function(t){var e=document.createElement("div"),i=t.getWeek(this.options.firstDay);return e.className=a.weekNumber,e.innerHTML=53===i&&0===t.getMonth()?"53 / 1":i,e},e.prototype.renderTooltip=function(){var t=document.createElement("div");return t.className=a.containerTooltip,t},e.prototype.weekdayName=function(t,e){return void 0===e&&(e="short"),new Date(1970,0,t,12,0,0,0).toLocaleString(this.options.lang,{weekday:e})},e.prototype.calcSkipDays=function(t){var e=t.getDay()-this.options.firstDay;return e<0&&(e+=7),e},e}(s.LPCore);e.Calendar=d},function(t,e,i){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(7),a=i(0),h=i(1),d=function(t){function e(e){var i=t.call(this)||this;i.datePicked=[],i.calendars=[],i.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,position:"auto",selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,scrollToDate:!0,mobileFriendly:!0,resetButton:!1,autoRefresh:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n </svg>'},tooltipText:{one:"day",other:"days"}},i.options=s(s({},i.options),e.element.dataset),Object.keys(i.options).forEach((function(t){"true"!==i.options[t]&&"false"!==i.options[t]||(i.options[t]="true"===i.options[t])}));var n=s(s({},i.options.dropdowns),e.dropdowns),r=s(s({},i.options.buttonText),e.buttonText),o=s(s({},i.options.tooltipText),e.tooltipText);i.options=s(s({},i.options),e),i.options.dropdowns=s({},n),i.options.buttonText=s({},r),i.options.tooltipText=s({},o),i.options.elementEnd||(i.options.allowRepick=!1),i.options.lockDays.length&&(i.options.lockDays=a.DateTime.convertArray(i.options.lockDays,i.options.lockDaysFormat)),i.options.highlightedDays.length&&(i.options.highlightedDays=a.DateTime.convertArray(i.options.highlightedDays,i.options.highlightedDaysFormat));var h=i.parseInput(),d=h[0],c=h[1];i.options.startDate&&(i.options.singleMode||i.options.endDate)&&(d=new a.DateTime(i.options.startDate,i.options.format,i.options.lang)),d&&i.options.endDate&&(c=new a.DateTime(i.options.endDate,i.options.format,i.options.lang)),d instanceof a.DateTime&&!isNaN(d.getTime())&&(i.options.startDate=d),i.options.startDate&&c instanceof a.DateTime&&!isNaN(c.getTime())&&(i.options.endDate=c),!i.options.singleMode||i.options.startDate instanceof a.DateTime||(i.options.startDate=null),i.options.singleMode||i.options.startDate instanceof a.DateTime&&i.options.endDate instanceof a.DateTime||(i.options.startDate=null,i.options.endDate=null);for(var l=0;l<i.options.numberOfMonths;l+=1){var p=i.options.startDate instanceof a.DateTime?i.options.startDate.clone():new a.DateTime;if(!i.options.startDate&&(0===l||i.options.splitView)){var u=i.options.maxDate?new a.DateTime(i.options.maxDate):null,f=i.options.minDate?new a.DateTime(i.options.minDate):null,m=i.options.numberOfMonths-1;f&&u&&p.isAfter(u)?(p=f.clone()).setDate(1):!f&&u&&p.isAfter(u)&&((p=u.clone()).setDate(1),p.setMonth(p.getMonth()-m))}p.setDate(1),p.setMonth(p.getMonth()+l),i.calendars[l]=p}if(i.options.showTooltip)if(i.options.tooltipPluralSelector)i.pluralSelector=i.options.tooltipPluralSelector;else try{var v=new Intl.PluralRules(i.options.lang);i.pluralSelector=v.select.bind(v)}catch(t){i.pluralSelector=function(t){return 0===Math.abs(t)?"one":"other"}}return i}return r(e,t),e.add=function(t,e){h.Litepicker.prototype[t]=e},e.prototype.DateTime=function(t,e){return t?new a.DateTime(t,e):new a.DateTime},e.prototype.init=function(){var t=this;this.options.plugins&&this.options.plugins.length&&this.options.plugins.forEach((function(e){h.Litepicker.prototype.hasOwnProperty(e)?h.Litepicker.prototype[e].init.call(t,t):console.warn("Litepicker: plugin «"+e+"» not found.")}))},e.prototype.parseInput=function(){var t=this.options.delimiter,e=new RegExp(""+t),i=this.options.element instanceof HTMLInputElement?this.options.element.value.split(t):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new a.DateTime(this.options.element.value,this.options.format),new a.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new a.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&e.test(this.options.element.value)&&i.length&&i.length%2==0){var n=i.slice(0,i.length/2).join(t),r=i.slice(i.length/2).join(t);return[new a.DateTime(n,this.options.format),new a.DateTime(r,this.options.format)]}return[]},e.prototype.isShowning=function(){return this.ui&&"none"!==this.ui.style.display},e.prototype.findPosition=function(t){var e=t.getBoundingClientRect(),i=this.ui.getBoundingClientRect(),n=this.options.position.split(" "),r=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset,o=0,a=0;if("auto"!==n[0]&&/top|bottom/.test(n[0]))o=e[n[0]]+s,"top"===n[0]&&(o-=i.height);else{o=e.bottom+s;var h=e.bottom+i.height>window.innerHeight;h&&e.top+s-i.height>=i.height&&(o=e.top+s-i.height)}return/left|right/.test(n[0])||n[1]&&"auto"!==n[1]&&/left|right/.test(n[1])?(a=/left|right/.test(n[0])?e[n[0]]+r:e[n[1]]+r,"right"!==n[0]&&"right"!==n[1]||(a-=i.width)):(a=e.left+r,(h=e.left+i.width>window.innerWidth)&&e.right+r-i.width>=0&&(a=e.right+r-i.width)),{left:a,top:o}},e}(o.EventEmitter);e.LPCore=d},function(t){var e,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};e=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,i,n){var r,s,o;if("function"!=typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i);if(void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events),o=s[e]),void 0===o)o=s[e]=i,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=a(t))>0&&o.length>r&&!o.warned){o.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=o.length,console&&console.warn&&console.warn(h)}return t}function d(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,n(this.listener,this.target,t))}function c(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=d.bind(n);return r.listener=i,n.wrapFn=r,r}function l(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(r):u(r,r.length)}function p(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function u(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");o=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return a(this)},s.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,s=this._events;if(void 0!==s)r=r&&void 0===s.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var h=s[t];if(void 0===h)return!1;if("function"==typeof h)n(h,this,e);else{var d=h.length,c=u(h,d);for(i=0;i<d;++i)n(c[i],this,e)}return!0},s.prototype.on=s.prototype.addListener=function(t,e){return h(this,t,e,!1)},s.prototype.prependListener=function(t,e){return h(this,t,e,!0)},s.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.on(t,c(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.prependListener(t,c(this,t,e)),this},s.prototype.off=s.prototype.removeListener=function(t,e){var i,n,r,s,o;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);if(void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(r=-1,s=i.length-1;s>=0;s--)if(i[s]===e||i[s].listener===e){o=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,o||e)}return this},s.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,s=Object.keys(i);for(n=0;n<s.length;++n)"removeListener"!==(r=s[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return l(this,t,!0)},s.prototype.rawListeners=function(t){return l(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},function(t,e,i){var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(1),o=i(2);s.Litepicker.prototype.show=function(t){void 0===t&&(t=null),this.emit("before:show",t);var e=t||this.options.element;if(this.triggerElement=e,!this.isShowning()){if(this.options.inlineMode)return this.ui.style.position="relative",this.ui.style.display="inline-block",this.ui.style.top=null,this.ui.style.left=null,this.ui.style.bottom=null,void(this.ui.style.right=null);this.scrollToDate(t),this.render(),this.ui.style.position="absolute",this.ui.style.display="block",this.ui.style.zIndex=this.options.zIndex;var i=this.findPosition(e);this.ui.style.top=i.top+"px",this.ui.style.left=i.left+"px",this.ui.style.right=null,this.ui.style.bottom=null,this.emit("show",t)}},s.Litepicker.prototype.hide=function(){this.isShowning()&&(this.datePicked.length=0,this.updateInput(),this.options.inlineMode?this.render():(this.ui.style.display="none",this.emit("hide")))},s.Litepicker.prototype.getDate=function(){return this.getStartDate()},s.Litepicker.prototype.getStartDate=function(){return this.options.startDate?this.options.startDate.clone():null},s.Litepicker.prototype.getEndDate=function(){return this.options.endDate?this.options.endDate.clone():null},s.Litepicker.prototype.setDate=function(t,e){void 0===e&&(e=!1);var i=new r.DateTime(t,this.options.format,this.options.lang);o.dateIsLocked(i,this.options,[i])&&!e?this.emit("error:date",i):(this.setStartDate(t),this.options.inlineMode&&this.render(),this.emit("selected",this.getDate()))},s.Litepicker.prototype.setStartDate=function(t){t&&(this.options.startDate=new r.DateTime(t,this.options.format,this.options.lang),this.updateInput())},s.Litepicker.prototype.setEndDate=function(t){t&&(this.options.endDate=new r.DateTime(t,this.options.format,this.options.lang),this.options.startDate.getTime()>this.options.endDate.getTime()&&(this.options.endDate=this.options.startDate.clone(),this.options.startDate=new r.DateTime(t,this.options.format,this.options.lang)),this.updateInput())},s.Litepicker.prototype.setDateRange=function(t,e,i){void 0===i&&(i=!1),this.triggerElement=void 0;var n=new r.DateTime(t,this.options.format,this.options.lang),s=new r.DateTime(e,this.options.format,this.options.lang);(this.options.disallowLockDaysInRange?o.rangeIsLocked([n,s],this.options):o.dateIsLocked(n,this.options,[n,s])||o.dateIsLocked(s,this.options,[n,s]))&&!i?this.emit("error:range",[n,s]):(this.setStartDate(n),this.setEndDate(s),this.options.inlineMode&&this.render(),this.updateInput(),this.emit("selected",this.getStartDate(),this.getEndDate()))},s.Litepicker.prototype.gotoDate=function(t,e){void 0===e&&(e=0);var i=new r.DateTime(t);i.setDate(1),this.calendars[e]=i.clone(),this.render()},s.Litepicker.prototype.setLockDays=function(t){this.options.lockDays=r.DateTime.convertArray(t,this.options.lockDaysFormat),this.render()},s.Litepicker.prototype.setHighlightedDays=function(t){this.options.highlightedDays=r.DateTime.convertArray(t,this.options.highlightedDaysFormat),this.render()},s.Litepicker.prototype.setOptions=function(t){delete t.element,delete t.elementEnd,delete t.parentEl,t.startDate&&(t.startDate=new r.DateTime(t.startDate,this.options.format,this.options.lang)),t.endDate&&(t.endDate=new r.DateTime(t.endDate,this.options.format,this.options.lang));var e=n(n({},this.options.dropdowns),t.dropdowns),i=n(n({},this.options.buttonText),t.buttonText),s=n(n({},this.options.tooltipText),t.tooltipText);this.options=n(n({},this.options),t),this.options.dropdowns=n({},e),this.options.buttonText=n({},i),this.options.tooltipText=n({},s),!this.options.singleMode||this.options.startDate instanceof r.DateTime||(this.options.startDate=null,this.options.endDate=null),this.options.singleMode||this.options.startDate instanceof r.DateTime&&this.options.endDate instanceof r.DateTime||(this.options.startDate=null,this.options.endDate=null);for(var o=0;o<this.options.numberOfMonths;o+=1){var a=this.options.startDate?this.options.startDate.clone():new r.DateTime;a.setDate(1),a.setMonth(a.getMonth()+o),this.calendars[o]=a}this.options.lockDays.length&&(this.options.lockDays=r.DateTime.convertArray(this.options.lockDays,this.options.lockDaysFormat)),this.options.highlightedDays.length&&(this.options.highlightedDays=r.DateTime.convertArray(this.options.highlightedDays,this.options.highlightedDaysFormat)),this.render(),this.options.inlineMode&&this.show(),this.updateInput()},s.Litepicker.prototype.clearSelection=function(){this.options.startDate=null,this.options.endDate=null,this.datePicked.length=0,this.updateInput(),this.isShowning()&&this.render(),this.emit("clear:selection")},s.Litepicker.prototype.destroy=function(){this.ui&&this.ui.parentNode&&(this.ui.parentNode.removeChild(this.ui),this.ui=null),this.emit("destroy")}}])})),ht=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class dt extends p{constructor(){super(...arguments),this.alterLitePickerHeader=t=>{this.showYearMonthDropdowns?this.monthYearDropdownRenderer.renderMonthYearDropdowns(this.datePicker):this.renderMonthName(t),this.renderWeekdays(t),this.renderPrevAndNextMonthButtons(t)},this.alterLitePickerFooter=t=>{this.clearButton&&this.renderClearButton(t)},this.alterLitePickerHeight=t=>{!1===this.dropdownConfig.staticHeight?t.classList.remove("static-height"):t.classList.add("static-height")},this.renderWeekdays=t=>{t.querySelectorAll(".month-item-weekdays-row").forEach((t=>{Array.from(t.children).forEach((t=>{t.innerText=t.innerText.replace(/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun)$/,(t=>this.translationSlimmer.t(`${t}-short`)))}))}))},this.renderPrevAndNextMonthButtons=t=>{t.querySelectorAll(".button-previous-month").forEach((t=>{t.innerHTML=G["chevron-left"].icon})),t.querySelectorAll(".button-next-month").forEach((t=>{t.innerHTML=G["chevron-right"].icon}))},this.renderClearButton=t=>{const e=document.createElement("div");e.className="footer-container";const i=document.createElement("vega-button-link");i.label=this.translationSlimmer.t("Clear"),i.addEventListener("click",this.vegaDatePickerCalendarController.handleClear),e.append(i);const n=t.querySelector(".container__main");n&&n.append(e)},this.getSystemTimeZone=()=>Intl.DateTimeFormat().resolvedOptions().timeZone}connectedCallback(){null===this.datePicker&&this.initDatePicker(),this.calendarContainerRef=document.createElement("vega-date-picker-calendar"),document.body.append(this.calendarContainerRef)}disconnectedCallback(){var t;null===(t=this.datePicker)||void 0===t||t.destroy(),this.datePicker=null,this.calendarContainerRef.remove()}async componentWillLoad(){this.vegaDatePickerMobileController.getIsMobileDevice()&&await import("./p-a10b9f2e.js")}componentDidLoad(){this.initDatePicker()}componentDidRender(){(this.requireRefreshLitePicker||this.vegaDatePickerSingleInputRenderer.getOldSingleDateInputRef()&&this.vegaDatePickerSingleInputRenderer.getOldSingleDateInputRef()!==this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef()||this.vegaDatePickerRangeInputRenderer.getOldStartDateInputRef()&&this.vegaDatePickerRangeInputRenderer.getOldStartDateInputRef()!==this.vegaDatePickerRangeInputRenderer.getStartDateInputRef()||this.vegaDatePickerRangeInputRenderer.getOldEndDateInputRef()&&this.vegaDatePickerRangeInputRenderer.getOldEndDateInputRef()!==this.vegaDatePickerRangeInputRenderer.getEndDateInputRef())&&this.refreshLitePicker()}doOpen(){this.datePicker.show()}doClose(){this.datePicker.hide()}watchAllowRepick(){this.datePicker.setOptions({allowRepick:this.allowRepick})}watchDisabled(){this.datePicker.hide()}watchFormat(){this.datePicker.setOptions({format:this.format})}watchMode(){this.requireRefreshLitePicker=!0}watchShowYearMonthDropdowns(){this.requireRefreshLitePicker=!0}getDatePicker(){return this.datePicker}getCalendarContainerRef(){return this.calendarContainerRef}refreshLitePicker(){this.datePicker&&(this.datePicker.destroy(),this.initDatePicker(),this.requireRefreshLitePicker=!1)}renderMonthName(t){t.querySelectorAll(".month-item-name").forEach((t=>{t.innerText=this.translationSlimmer.t(t.innerText)}))}resetTodayByTimezone(){if(this.timezone&&this.timezone!==this.getSystemTimeZone())try{const t=new Intl.DateTimeFormat([],{timeZone:this.timezone,year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date),e=new Date(t.split("/").join("-")).getTime(),i=this.calendarContainerRef.shadowRoot.querySelectorAll(".day-item");for(let t=0;t<i.length;t++)i[t].classList.contains("is-today")&&Number(i[t].dataset.time)!==e&&i[t].classList.remove("is-today"),i[t].classList.contains("is-today")||Number(i[t].dataset.time)!==e||i[t].classList.add("is-today")}catch(t){f.warn("Invalid timezone: ",this.timezone)}}initDatePicker(){this.datePicker=new at.Litepicker(this.vegaDatePickerCalendarController.getDefaultLitePickerConfig()).on("render",(t=>{this.alterLitePickerHeader(t),this.alterLitePickerFooter(t),this.alterLitePickerHeight(t),this.litepickerRef=t,this.getCalendarContainerRef().shadowRoot.append(this.litepickerRef),this.vegaDatePickerMobileController.getIsMobileDevice()&&this.vegaDatePickerMobileController.preventElementTouchMoveInMobile(),this.resetTodayByTimezone()})).on("selected",this.vegaDatePickerCalendarController.onDatePickerSelected).on("before:show",(()=>{this.vegaDatePickerCalendarController.goToDate()})).on("show",(()=>{this.vegaDatePickerElementAppenderController.show()})).on("mobilefriendly.show",(()=>{this.vegaDatePickerZIndexController.setZIndex(),this.getCalendarContainerRef().style.position="fixed",this.getCalendarContainerRef().style.top="50%",this.getCalendarContainerRef().style.left="50%",this.getCalendarContainerRef().style.transform="translate(-50%, -50%)",this.getCalendarContainerRef().classList.remove("vega-force-hidden")})).on("hide",(()=>{this.vegaDatePickerValueController.syncUpValueWithCalendar(),this.vegaDatePickerMobileController.getIsMobileDevice()?(this.getCalendarContainerRef().classList.add("vega-force-hidden"),this.vegaDatePickerZIndexController.removeZIndex()):this.vegaDatePickerElementAppenderController.hide()}))}}ht([l()],dt.prototype,"clearButton",void 0),ht([l()],dt.prototype,"dropdownConfig",void 0),ht([l()],dt.prototype,"allowRepick",void 0),ht([l()],dt.prototype,"format",void 0),ht([l()],dt.prototype,"showYearMonthDropdowns",void 0),ht([l()],dt.prototype,"vegaDatePickerCalendarController",void 0),ht([l()],dt.prototype,"vegaDatePickerMobileController",void 0),ht([l()],dt.prototype,"vegaDatePickerElementAppenderController",void 0),ht([l()],dt.prototype,"vegaDatePickerZIndexController",void 0),ht([l()],dt.prototype,"vegaDatePickerValueController",void 0),ht([l()],dt.prototype,"vegaDatePickerSingleInputRenderer",void 0),ht([l()],dt.prototype,"vegaDatePickerRangeInputRenderer",void 0),ht([l()],dt.prototype,"monthYearDropdownRenderer",void 0),ht([l()],dt.prototype,"translationSlimmer",void 0),ht([l()],dt.prototype,"timezone",void 0),ht([u("connectedCallback")],dt.prototype,"connectedCallback",null),ht([u("disconnectedCallback")],dt.prototype,"disconnectedCallback",null),ht([u("componentWillLoad")],dt.prototype,"componentWillLoad",null),ht([u("componentDidLoad")],dt.prototype,"componentDidLoad",null),ht([u("componentDidRender")],dt.prototype,"componentDidRender",null),ht([u("doOpen")],dt.prototype,"doOpen",null),ht([u("doClose")],dt.prototype,"doClose",null),ht([u("watchAllowRepick")],dt.prototype,"watchAllowRepick",null),ht([u("watchDisabled")],dt.prototype,"watchDisabled",null),ht([u("watchFormat")],dt.prototype,"watchFormat",null),ht([u("watchMode")],dt.prototype,"watchMode",null),ht([u("watchShowYearMonthDropdowns")],dt.prototype,"watchShowYearMonthDropdowns",null);var ct=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class lt extends p{setZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");E.setZIndex(t,"base"),E.setZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}removeZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");E.removeZIndex(t,"base"),E.removeZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}}ct([l()],lt.prototype,"host",void 0),ct([l()],lt.prototype,"vegaDatePickerCalendarRenderer",void 0);var pt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class ut extends p{constructor(){super(...arguments),this.syncUpValueWithCalendar=()=>{var t,e;const i=(null===(t=this.vegaDatePickerCalendarRenderer.getDatePicker().getStartDate())||void 0===t?void 0:t.format(this.format))||"",n=(null===(e=this.vegaDatePickerCalendarRenderer.getDatePicker().getEndDate())||void 0===e?void 0:e.format(this.format))||"";"range"!==this.mode||O(this.getValue(),[i,n])||this.setValue([i,n]),"single"===this.mode&&this.getValue()!==i&&this.setValue(i)}}componentWillLoad(){this.value&&this.valueGuard(this.value)||this.setDefaultValueByMode()}watchValue(t,e){"range"===this.mode&&O(t,e)||(this.valueGuard(t)?this.vegaDatePickerCalendarController.shouldUpdateCalendar(t):this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),z.notify(S,{host:this.host,detail:this.value}))}watchMode(){this.setDefaultValueByMode()}getValue(){return this.valueGuard(this.value),this.value}setValue(t){this.valueGuard(t)&&(this.value=t)}setDefaultValueByMode(){"range"===this.mode&&this.setValue(["",""]),"single"===this.mode&&this.setValue("")}valueGuard(t){let e;switch(this.mode){case"single":e=t&&"string"==typeof t&&a(t)||""===t;break;case"range":e=Array.isArray(t)&&2===t.length&&t.every((t=>a(t)||""===t))}return e||f.warn(`Invalid date picker value ${t} for ${this.mode} mode`),e}}pt([l({writable:!0})],ut.prototype,"value",void 0),pt([l()],ut.prototype,"mode",void 0),pt([l()],ut.prototype,"format",void 0),pt([l()],ut.prototype,"changeEventEmitter",void 0),pt([l()],ut.prototype,"host",void 0),pt([l()],ut.prototype,"vegaDatePickerCalendarController",void 0),pt([l()],ut.prototype,"vegaDatePickerCalendarRenderer",void 0),pt([u("componentWillLoad")],ut.prototype,"componentWillLoad",null),pt([u("watchValue")],ut.prototype,"watchValue",null),pt([u("watchMode")],ut.prototype,"watchMode",null);var ft=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class mt extends T{constructor(t){super(),this.formatDate=t=>this.vegaDatePickerCalendarRenderer.getDatePicker().DateTime(t).format(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=t=>{const e=t.match(/M/gi);return new V({mask:t.replace(/[MDY]/gi,"9"),slot:"9",accept:(e&&e.length)>2?/\w/g:/\d/g})},this.inputType=t}componentDidLoad(){this.setupStringFormatter(this.format)}watchFormat(t){this.setupStringFormatter(t)}setupStringFormatter(t){this.datePickerFormatStrategy=this.getDateFormatMask(t),this.setup()}}ft([l()],mt.prototype,"format",void 0),ft([l()],mt.prototype,"mode",void 0),ft([l()],mt.prototype,"vegaDatePickerCalendarRenderer",void 0),ft([l()],mt.prototype,"vegaDatePickerSingleInputRenderer",void 0),ft([l()],mt.prototype,"vegaDatePickerRangeInputRenderer",void 0),ft([u("componentDidLoad")],mt.prototype,"componentDidLoad",null),ft([u("watchFormat")],mt.prototype,"watchFormat",null);var vt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class gt extends P{constructor(){super((()=>({target:this.vegaDatePickerRenderer.getDatePickerContainer(),appendableElement:this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),positionRelativeTo:this.dropdownConfig.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],alignment:["start","end"],isScreenPosition:L.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")})),(()=>"none"))}}vt([l()],gt.prototype,"dropdownConfig",void 0),vt([l()],gt.prototype,"vegaDatePickerRenderer",void 0),vt([l()],gt.prototype,"vegaDatePickerCalendarRenderer",void 0);var wt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class xt extends A{constructor(){super((t=>[{keyCode:"Enter",activeElementInScope:()=>[t.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),t.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),t.vegaDatePickerRangeInputRenderer.getEndDateInputRef(),t.vegaDatePickerCalendarRenderer.getCalendarContainerRef()],eventName:"keydown",callback:t=>{var e;const i=(null===(e=t.target.shadowRoot)||void 0===e?void 0:e.activeElement)||t.target;return null==i?void 0:i.click()}}]))}}wt([l()],xt.prototype,"vegaDatePickerCalendarRenderer",void 0),wt([l()],xt.prototype,"vegaDatePickerSingleInputRenderer",void 0),wt([l()],xt.prototype,"vegaDatePickerRangeInputRenderer",void 0);const bt=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:t=>!1===t.autoValidation},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the selection mode of the date picker. Use `single` to allow selecting a single date",payloadValue:t=>"single"===t.mode},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the selection mode of the date picker. Use `range` to allow selecting a date range",payloadValue:t=>"range"===t.mode}];var yt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class kt extends p{constructor(){super(...arguments),this.startDropdownRef={month:null,year:null},this.endDropdownRef={month:null,year:null},this.onVegaDropdownContentBoxClick=t=>{"VEGA-DROPDOWN-CONTENT-BOX"===t.target.tagName&&(this.datePickerCalendar.classList.remove("vega-force-hidden"),this.datePickerCalendar.shadowRoot.querySelector(".litepicker").style.display="block")},this.onVegaDropdownContentBoxActivate=t=>{const e=t.target;"VEGA-DROPDOWN-CONTENT-BOX"===e.tagName?(this.isMonthsOrYearsDropdownContentBoxOnFocus=!0,e.classList.remove("vega-force-hidden")):this.isMonthsOrYearsDropdownContentBoxOnFocus=!1}}renderMonthYearDropdowns(t){this.datePicker=t,this.datePickerCalendar=this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),this.renderMonthButton(this.datePicker.ui),this.renderYearButton(this.datePicker.ui),this.initSetup()}render(){return t("div",{class:"month-year-dropdown-container",style:{display:"none"}},t("div",{class:"start-date-month-year"},this.renderDropdown("month","start"),this.renderDropdown("year","start")),t("div",{class:"end-date-month-year"},this.renderDropdown("month","end"),this.renderDropdown("year","end")))}renderMonthButton(t){t.querySelectorAll("select.month-item-name").forEach(((t,e)=>{this.syncDropdownOptions("month",t,e);const i=this.getSelectedOptionFromSelect(t),n=kt.monthName[parseInt(i)],r=document.createElement("span");r.classList.add("dropdown-current-value"),r.innerText=`${this.translationSlimmer.t(n)}`,this.appendDropdownIconToButton(r),t.parentNode&&t.parentNode.replaceChild(r,t);const s=0===e?this.startDropdownRef.month:this.endDropdownRef.month;s&&this.updateDropdownValueAndTarget(r,s,t.value),r.addEventListener("click",(()=>{this.setDropdownAsActive(r)}))}))}renderYearButton(t){t.querySelectorAll("select.month-item-year").forEach(((t,e)=>{this.syncDropdownOptions("year",t,e);const i=this.getSelectedOptionFromSelect(t),n=document.createElement("span");n.classList.add("dropdown-current-value"),n.innerText=`${this.translationSlimmer.t(i)}`,this.appendDropdownIconToButton(n),t.parentNode&&t.parentNode.replaceChild(n,t);const r=0===e?this.startDropdownRef.year:this.endDropdownRef.year;r&&this.updateDropdownValueAndTarget(n,r,t.value),n.addEventListener("click",(()=>{this.setDropdownAsActive(n)}))}))}getSelectedOptionFromSelect(t){return Array.from(t.querySelectorAll("option")).find((t=>t.selected)).value}renderDropdown(e,i){return t("vega-dropdown",{trigger:"click",selectType:"single",class:"vega-force-hidden","match-target-width":"false","max-height":"300",ref:t=>{this.onDropdownShowOrHide(t),"start"===i?this.startDropdownRef[e]=t:this.endDropdownRef[e]=t,k.addUniqueObserverToNode(t,_,(n=>{this.setDefaultViewValues(e,t),this.monthYearDropdownClick(e,i,n.detail)}))}},t("span",null,e))}syncDropdownOptions(t,e,i){const n=e.querySelectorAll("option"),r=Array.from(n).map((t=>({key:t.value,label:this.translationSlimmer.t(t.text),disabled:!!t.disabled})));if("month"===t){const t=0===i?this.startDropdownRef.month:this.endDropdownRef.month;t&&(t.source=r)}if("year"===t){r.sort(((t,e)=>Number(t.key)-Number(e.key)));const t=0===i?this.startDropdownRef.year:this.endDropdownRef.year;t&&(t.source=r)}}onDropdownShowOrHide(t){null==t||t.addEventListener("vegaShow",(()=>{this.onDropdownShow()})),null==t||t.addEventListener("vegaHide",(()=>{this.onDropdownHide()}))}setDefaultViewValues(t,e){"month"===t?this.currentStartYearInView=parseInt(e.nextElementSibling.selectedSourceKey):this.currentStartMonthInView=parseInt(e.previousElementSibling.selectedSourceKey)}appendDropdownIconToButton(t){t.innerHTML+=`<vega-icon icon='${R.getIconKey("caret-down")}'></vega-icon>`,t.tabIndex=0}monthYearDropdownClick(t,e,i){const n=parseInt(i);this.updateDatePickerOnSelect(t,e,n)}updateDropdownValueAndTarget(t,e,i){const n=t.closest("div");n&&n.classList.add("dropdown-section"),e.selectedSourceKey=i,B.call(j.getSubject(e,W),t)}updateDatePickerOnSelect(t,e,i){"month"===t?null!==this.currentStartYearInView&&("start"===e&&this.datePicker.gotoDate(new Date(this.currentStartYearInView,i,1)),"end"===e&&this.datePicker.gotoDate(new Date(this.currentStartYearInView,i-1,1))):null!==this.currentStartMonthInView&&("start"===e&&this.datePicker.gotoDate(new Date(i,this.currentStartMonthInView,1)),"end"===e&&this.datePicker.gotoDate(new Date(i,this.currentStartMonthInView-1,1)))}setDropdownAsActive(t){Array.from(this.datePicker.ui.querySelectorAll(".dropdown-current-value.active")).forEach((t=>t.classList.remove("active"))),t.classList.add("active")}removeActiveDropdownClass(){Array.from(this.datePicker.ui.querySelectorAll(".dropdown-current-value.active")).forEach((t=>t.classList.remove("active")))}onDropdownShow(){document.addEventListener("mouseenter",this.onVegaDropdownContentBoxActivate,!0),document.addEventListener("click",this.onVegaDropdownContentBoxClick)}onDropdownHide(){this.isMonthsOrYearsDropdownContentBoxOnFocus=!1,this.removeActiveDropdownClass(),document.removeEventListener("mouseenter",this.onVegaDropdownContentBoxActivate,!0),document.removeEventListener("click",this.onVegaDropdownContentBoxClick)}initSetup(){const t=this.datePicker.hide.bind(this.datePicker);this.datePicker.hide=async()=>{const e=document.activeElement;this.isMonthsOrYearsDropdownContentBoxOnFocus||"VEGA-DROPDOWN-CONTENT-BOX"===(null==e?void 0:e.tagName)||(await this.closeOpenDropdowns(),t())}}async closeOpenDropdowns(){const t=[this.startDropdownRef,this.endDropdownRef];await Promise.all(t.flatMap((t=>[t.month,t.year])).filter(Boolean).map((t=>{t&&t.hide()})))}}R.register({"caret-down":G["caret-down"]}),kt.monthName=["January","February","March","April","May","June","July","August","September","October","November","December"],yt([l()],kt.prototype,"translationSlimmer",void 0),yt([l()],kt.prototype,"vegaDatePickerCalendarRenderer",void 0);var Dt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const _t=class{constructor(t){n(this,t),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.globalSlimmers={},this.translationSlimmer=new F,this.vegaDatePickerMobileController=new J,this.vegaDatePickerCalendarController=new ot,this.vegaDatePickerZIndexController=new lt,this.vegaDatePickerValueController=new ut,this.vegaDatePickerFormatController=new mt("single"),this.startInputFormatController=new mt("rangeStart"),this.endInputFormatController=new mt("rangeEnd"),this.vegaDatePickerElementAppenderController=new gt,this.vegaDatePickerKeyboardController=new xt,this.vegaDatePickerRenderer=new q,this.vegaDatePickerSingleInputRenderer=new it,this.vegaDatePickerRangeInputRenderer=new rt,this.vegaDatePickerCalendarRenderer=new dt,this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:(t,e)=>t?new $({mode:e}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:t=>"range"===t?new U:null},{propertyName:"minDate",ruleFactory:(t,e)=>new Z({minDate:t,maxDate:e}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(t,e)=>new Z({minDate:e,maxDate:t}),dependence:"minDate"}],validationRulesName:"validationRules",defaultValue:t=>"range"===t.mode?["",""]:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),touchableAreaGetter:()=>[this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),this.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()].filter(Boolean)}),this.changeEventEmitter=N(_t,M),this.inputEventPrevent=new H([M],(()=>this.vegaDatePickerRenderer.getDatePickerContainer())),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(bt),this.monthYearDropdownRenderer=new kt,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}watchMode(){}watchValue(t,e){}watchFormat(t){}watchValidationRules(){}watchMinDate(t){}watchMaxDate(t){}watchAllowRepick(){}watchShowYearMonthDropdowns(){}watchDisabled(){}async doClose(){}async doOpen(){}render(){return o(this.vegaDatePickerRenderer.render(),this.host)}get host(){return s(this)}static get watchers(){return{mode:["watchMode"],value:["watchValue"],format:["watchFormat"],validationRules:["watchValidationRules"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],allowRepick:["watchAllowRepick"],showYearMonthDropdowns:["watchShowYearMonthDropdowns"],disabled:["watchDisabled"]}}};Dt([g()],_t.prototype,"globalSlimmers",void 0),Dt([m()],_t.prototype,"translationSlimmer",void 0),Dt([m()],_t.prototype,"vegaDatePickerMobileController",void 0),Dt([m()],_t.prototype,"vegaDatePickerCalendarController",void 0),Dt([m()],_t.prototype,"vegaDatePickerZIndexController",void 0),Dt([m()],_t.prototype,"vegaDatePickerValueController",void 0),Dt([m()],_t.prototype,"vegaDatePickerFormatController",void 0),Dt([m()],_t.prototype,"startInputFormatController",void 0),Dt([m()],_t.prototype,"endInputFormatController",void 0),Dt([m()],_t.prototype,"vegaDatePickerElementAppenderController",void 0),Dt([m()],_t.prototype,"vegaDatePickerKeyboardController",void 0),Dt([m()],_t.prototype,"vegaDatePickerRenderer",void 0),Dt([m()],_t.prototype,"vegaDatePickerSingleInputRenderer",void 0),Dt([m()],_t.prototype,"vegaDatePickerRangeInputRenderer",void 0),Dt([m()],_t.prototype,"vegaDatePickerCalendarRenderer",void 0),Dt([m()],_t.prototype,"formFieldController",void 0),Dt([m()],_t.prototype,"changeEventEmitter",void 0),Dt([m()],_t.prototype,"inputEventPrevent",void 0),Dt([m()],_t.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt([m()],_t.prototype,"monthYearDropdownRenderer",void 0),Dt([Y()],_t.prototype,"watchValue",null),_t.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{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-input-danger-focus, 230, 50, 87, 0.25));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{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25));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))}.litepicker-backdrop{display:none;background-color:var(--litepicker-mobilefriendly-backdrop-color-bg);opacity:0.3;position:fixed;top:0;right:0;bottom:0;left:0}';var jt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const Mt=class{constructor(t){n(this,t),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return t(e,null)}get host(){return s(this)}};jt([g()],Mt.prototype,"globalSlimmers",void 0),jt([m()],Mt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Mt.style=':host{--vega-litepicker-container-width:calc(var(--vega-litepicker-day-width) * 7);--vega-litepicker-day-width:40px;--vega-litepicker-day-height:40px}.litepicker{display:none}.litepicker button{border-width:0px;background:none}.litepicker .container__main{display:flex;flex-direction:column;padding:32px;border-radius:12px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));box-shadow:var(--v-shadow-dropdown-menu, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}@media screen and (min-width: 320px) and (max-width: 350px){.litepicker .container__main{padding:12px}}.litepicker .container__months{display:flex}.litepicker .container__months.columns-2{width:100%}@media (min-width: 320px){.litepicker .container__months.columns-2{flex-direction:column}}@media (min-width: 768px){.litepicker .container__months.columns-2{flex-direction:row}}.litepicker .container__months .month-item{box-sizing:content-box;position:relative;width:var(--vega-litepicker-container-width);z-index:1}@media (min-width: 768px){.litepicker .container__months.columns-2 .month-item:first-of-type{padding-right:32px}}@media (min-width: 768px){.litepicker .container__months.columns-2 .month-item:last-of-type{padding-left:32px}}.litepicker .container__months .month-item:nth-child(2)::before{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-top:32px;margin-bottom:32px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:none;width:1px;content:""}@media (min-width: 768px){.litepicker .container__months .month-item:nth-child(2)::before{display:block}}.litepicker .container__months .month-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;text-align:center;font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px}}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;cursor:default}.litepicker .container__months .month-item-header .button-previous-month *,.litepicker .container__months .month-item-header .button-next-month *{pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.litepicker .container__months .month-item-weekdays-row{display:flex;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){.litepicker .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){.litepicker .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){.litepicker .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__months .month-item-weekdays-row>div{padding-top:12px;padding-bottom:12px;padding-left:8px;padding-right:8px;display:flex;align-items:center;justify-content:center;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;width:var(--vega-litepicker-day-width)}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .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){.litepicker .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){.litepicker .container__months .month-item-weekdays-row>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visibility:hidden}.litepicker .container__months .month-item.no-next-month .button-next-month{visibility:hidden}.litepicker .container__days{display:flex;flex-wrap:wrap;justify-content:flex-start;text-align:center}.litepicker.static-height .container__days{align-content:flex-start;height:calc(var(--vega-litepicker-day-height) * 6)}.litepicker .container__days>div,.litepicker .container__days>a{padding:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:var(--vega-litepicker-day-height);width:var(--vega-litepicker-day-width)}.litepicker .container__days .day-item{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;text-align:center;border-radius:9999px;cursor:default}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__days .day-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__days .day-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__days .day-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .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){.litepicker .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){.litepicker .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.litepicker .container__days .day-item:not(.is-locked):active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));border-width:0px}.litepicker .day-item.is-start-date.is-end-date.is-locked:active{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}.litepicker .container__days .day-item: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:" ";z-index:-1}.litepicker .container__days .day-item.is-locked:hover:before,html.dark .litepicker .container__days .day-item.is-locked:hover:before{border-style:none}.litepicker .container__days .day-item:hover{position:relative}.litepicker .container__days .day-item.is-today{color:rgba(var(--v-text-link, 19, 98, 226, 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){.litepicker .container__days .day-item.is-today{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__days .day-item.is-today{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__days .day-item.is-today{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__days .day-item.is-in-range{border-radius:0px;position:relative;z-index:2;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.litepicker .container__days .day-item:not(.is-locked).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:" ";z-index:-1}.litepicker .container__days .day-item.is-start-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-radius:9999px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));position:relative}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__days .day-item.is-start-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){.litepicker .container__days .day-item.is-start-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){.litepicker .container__days .day-item.is-start-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__days .day-item.is-start-date:hover:before{z-index:2}.litepicker .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))}.litepicker .container__days .day-item.is-start-date.is-flipped{border-radius:9999px;position:relative}.litepicker .container__days .day-item.is-start-date.is-flipped: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}.litepicker .container__days .day-item.is-end-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-radius:9999px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));position:relative}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .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){.litepicker .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){.litepicker .container__days .day-item.is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__days .day-item.is-end-date:hover:before{z-index:2}.litepicker .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))}.litepicker .container__days .day-item.is-end-date.is-flipped{border-radius:9999px;position:relative}.litepicker .container__days .day-item.is-end-date.is-flipped: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}.litepicker .container__days .day-item.is-start-date.is-end-date{border-radius:9999px}.litepicker .container__days .day-item.is-start-date.is-end-date:after,html.dark .litepicker .container__days .day-item.is-start-date.is-end-date:after{background:none}.litepicker .container__tooltip{display:none}.litepicker .container__days .day-item.is-locked{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));cursor:not-allowed}.litepicker.mobilefriendly[data-plugins*=mobilefriendly] .container__days>div{height:var(--vega-litepicker-day-height)}.litepicker .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){.litepicker .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){.litepicker .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){.litepicker .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}.litepicker .footer-container{margin-top:16px;height:24px}:host(.vega-force-hidden){display:none !important}.litepicker{left:initial !important;top:initial !important;position:initial !important}:host{position:absolute}.button-next-month svg,.button-previous-month svg{width:12px;height:16px}.litepicker .month-item-header>div.dropdown-section{display:flex;gap:12px}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value{position:relative;display:flex;gap:4px;align-items:center;cursor:pointer}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}';export{_t as vega_date_picker,Mt as vega_date_picker_calendar}