@heartlandone/vega 2.34.1 → 2.35.0-RTE-preview

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 (487) hide show
  1. package/dist/cjs/{app-globals-48582633.js → app-globals-fb3693cc.js} +22 -21
  2. package/dist/cjs/{change-manager-bda1d107.js → change-manager-a297e4d2.js} +1 -1
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-e1a6e5ad.js → child-nodes-event-prevent-slimmer-96c3c4ae.js} +3 -3
  4. package/dist/cjs/{child-nodes-notify-observer-slimmer-03a3f79e.js → child-nodes-notify-observer-slimmer-be92f366.js} +5 -5
  5. package/dist/cjs/{component-63af66ea.js → component-73a88c4e.js} +1 -1
  6. package/dist/cjs/{component-global-style-slimmer-6b64a26c.js → component-global-style-slimmer-6749808c.js} +1 -1
  7. package/dist/cjs/{component-usage-runtime-metrics-019d3c00.js → component-usage-runtime-metrics-dcb32c24.js} +1 -1
  8. package/dist/cjs/content-state-3e4467a3.js +134 -0
  9. package/dist/cjs/{create-public-api-runtime-metrics-slimmer-8c6a8fb7.js → create-public-api-runtime-metrics-slimmer-54c3f73b.js} +2 -2
  10. package/dist/cjs/{date-ffe382a4.js → date-0a6bb035.js} +1 -1
  11. package/dist/cjs/{deprecated-property-slimmer-f36e3779.js → deprecated-property-slimmer-fc729fd9.js} +2 -2
  12. package/dist/cjs/{design-token-908e3f69.js → design-token-30c069c1.js} +3 -3
  13. package/dist/cjs/{dom-node-subject-observer-factory-093462f1.js → dom-node-subject-factory-3ec114b8.js} +1 -41
  14. package/dist/cjs/dom-node-subject-observer-factory-5f0eae19.js +44 -0
  15. package/dist/cjs/{dynamic-slimmer-dc30600a.js → dynamic-slimmer-f31fdfd7.js} +1 -1
  16. package/dist/cjs/{element-appender-slimmer-0dd70e61.js → element-appender-slimmer-700b7004.js} +6 -6
  17. package/dist/cjs/{event-emit-slimmer-a46bb411.js → event-emit-slimmer-9c223f73.js} +7 -6
  18. package/dist/cjs/{feature-flag-controller-e97b5f29.js → feature-flag-controller-7b22e598.js} +1 -1
  19. package/dist/cjs/{form-field-controller-slimmer-9aeabcdc.js → form-field-controller-slimmer-7ef32059.js} +16 -15
  20. package/dist/cjs/global-slimmer-registry-b3bce7e0.js +297 -0
  21. package/dist/cjs/{icon-manager-36dcfb65.js → icon-manager-edc2400b.js} +2 -2
  22. package/dist/cjs/{text-color-toolbar-button-slimmer-21a166e4.js → image-annotation-action-d3e1699c.js} +78 -27
  23. package/dist/cjs/{global-slimmer-registry-dd2691b8.js → index-09acd3c9.js} +282 -296
  24. package/dist/cjs/index.cjs.js +27 -28
  25. package/dist/cjs/{inject-keyboard-manager-af37c861.js → inject-keyboard-manager-4a5c27a2.js} +1 -1
  26. package/dist/cjs/{internal-icon-manager-2282a62f.js → internal-icon-manager-5ccb9443.js} +1 -1
  27. package/dist/cjs/{internal-vega-event-manager-d7643ec6.js → internal-vega-event-manager-e5e4bcf4.js} +72 -72
  28. package/dist/cjs/{internal-vega-z-index-manager-e24e4309.js → internal-vega-z-index-manager-f03ddb37.js} +1 -1
  29. package/dist/cjs/{keyboard-manager-5afbc8f1.js → keyboard-manager-2df53b2f.js} +1 -1
  30. package/dist/cjs/{keyboard-manager-slimmer-9be2a880.js → keyboard-manager-slimmer-feba3a83.js} +2 -2
  31. package/dist/cjs/{content-state-6a5b9736.js → list-block-91116257.js} +1346 -402
  32. package/dist/cjs/loader.cjs.js +21 -21
  33. package/dist/cjs/{mutation-observer-slimmer-98bbbdf0.js → mutation-observer-slimmer-895b3d3e.js} +1 -1
  34. package/dist/cjs/{node.abstract-f8075f84.js → node-annotation.abstract-e5d3a859.js} +37 -48
  35. package/dist/cjs/{page-resize-observer-slimmer-e54fa9d4.js → page-resize-observer-slimmer-bb1eaebe.js} +1 -1
  36. package/dist/cjs/{remote-invocation-registry-71a45468.js → remote-invocation-registry-ff9af278.js} +3 -3
  37. package/dist/cjs/{responsive-format-facade-74079f1b.js → responsive-format-facade-4363a00d.js} +1 -1
  38. package/dist/cjs/{state-background-color-formatter-d32a1098.js → state-background-color-formatter-e585a027.js} +1 -1
  39. package/dist/cjs/{string-input-formatter-slimmer-297765c0.js → string-input-formatter-slimmer-6155c9f5.js} +1 -1
  40. package/dist/cjs/{style-formatter-5deb065f.js → style-formatter-63218b76.js} +1 -1
  41. package/dist/cjs/{sub-state-notify-slimmer-73201c53.js → sub-state-notify-slimmer-c2e08e06.js} +8 -8
  42. package/dist/cjs/{sub-state-observer-slimmer-10c0d402.js → sub-state-observer-slimmer-b97e46b5.js} +8 -8
  43. package/dist/cjs/{translation-f6b7ee84.js → translation-b9be41e0.js} +3 -3
  44. package/dist/cjs/{translation-slimmer-90f9f71f.js → translation-slimmer-ec76c5a2.js} +2 -2
  45. package/dist/cjs/{ui-b5906704.js → ui-5fd9b267.js} +1 -1
  46. package/dist/cjs/vega-accordion.cjs.entry.js +41 -39
  47. package/dist/cjs/vega-app-footer.cjs.entry.js +13 -12
  48. package/dist/cjs/vega-app-header-button.cjs.entry.js +42 -40
  49. package/dist/cjs/vega-backdrop.cjs.entry.js +9 -8
  50. package/dist/cjs/vega-banner.cjs.entry.js +36 -34
  51. package/dist/cjs/vega-bar-chart.cjs.entry.js +6 -5
  52. package/dist/cjs/vega-box.cjs.entry.js +13 -12
  53. package/dist/cjs/vega-breadcrumb.cjs.entry.js +34 -32
  54. package/dist/cjs/vega-button-circle.cjs.entry.js +25 -23
  55. package/dist/cjs/vega-button-group_2.cjs.entry.js +32 -30
  56. package/dist/cjs/vega-button-link.cjs.entry.js +26 -24
  57. package/dist/cjs/vega-button.cjs.entry.js +26 -24
  58. package/dist/cjs/vega-calendar_3.cjs.entry.js +135 -133
  59. package/dist/cjs/vega-card.cjs.entry.js +11 -10
  60. package/dist/cjs/vega-carousel.cjs.entry.js +25 -23
  61. package/dist/cjs/vega-checkbox_2.cjs.entry.js +46 -44
  62. package/dist/cjs/vega-chip.cjs.entry.js +36 -34
  63. package/dist/cjs/vega-color-picker.cjs.entry.js +26 -24
  64. package/dist/cjs/vega-combo-box.cjs.entry.js +46 -44
  65. package/dist/cjs/vega-counter-badge.cjs.entry.js +10 -9
  66. package/dist/cjs/vega-date-picker_2.cjs.entry.js +56 -54
  67. package/dist/cjs/{vega-dialog-controller-aaf1f43e.js → vega-dialog-controller-fe610705.js} +2 -2
  68. package/dist/cjs/vega-dialog_2.cjs.entry.js +47 -45
  69. package/dist/cjs/vega-divider.cjs.entry.js +11 -10
  70. package/dist/cjs/vega-dropdown_5.cjs.entry.js +132 -130
  71. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  72. package/dist/cjs/vega-field-error.cjs.entry.js +8 -7
  73. package/dist/cjs/vega-field-label.cjs.entry.js +22 -20
  74. package/dist/cjs/vega-file-uploader.cjs.entry.js +67 -65
  75. package/dist/cjs/vega-flex.cjs.entry.js +14 -13
  76. package/dist/cjs/vega-font.cjs.entry.js +14 -13
  77. package/dist/cjs/vega-form.cjs.entry.js +38 -36
  78. package/dist/cjs/vega-grid.cjs.entry.js +11 -10
  79. package/dist/cjs/vega-hint.cjs.entry.js +7 -6
  80. package/dist/cjs/vega-icon.cjs.entry.js +16 -15
  81. package/dist/cjs/vega-image-uploader.cjs.entry.js +51 -49
  82. package/dist/cjs/vega-input-credit-card.cjs.entry.js +37 -35
  83. package/dist/cjs/vega-input-numeric.cjs.entry.js +30 -28
  84. package/dist/cjs/vega-input-phone-number.cjs.entry.js +49 -47
  85. package/dist/cjs/vega-input-range.cjs.entry.js +40 -38
  86. package/dist/cjs/vega-input-select.cjs.entry.js +62 -60
  87. package/dist/cjs/vega-input.cjs.entry.js +46 -44
  88. package/dist/cjs/vega-item-toggle.cjs.entry.js +21 -19
  89. package/dist/cjs/vega-left-nav_5.cjs.entry.js +102 -100
  90. package/dist/cjs/vega-line-chart.cjs.entry.js +7 -6
  91. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +16 -15
  92. package/dist/cjs/vega-page-notification_2.cjs.entry.js +20 -18
  93. package/dist/cjs/vega-pagination.cjs.entry.js +52 -50
  94. package/dist/cjs/vega-pie-chart.cjs.entry.js +7 -6
  95. package/dist/cjs/vega-popover_2.cjs.entry.js +34 -32
  96. package/dist/cjs/vega-progress-tracker.cjs.entry.js +29 -27
  97. package/dist/cjs/vega-radio_2.cjs.entry.js +50 -48
  98. package/dist/cjs/vega-rich-text-content.cjs.entry.js +321 -23
  99. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +336 -334
  100. package/dist/cjs/vega-section-title.cjs.entry.js +15 -14
  101. package/dist/cjs/vega-segment-control.cjs.entry.js +24 -22
  102. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +49 -47
  103. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +61 -59
  104. package/dist/cjs/vega-sidenav_3.cjs.entry.js +46 -44
  105. package/dist/cjs/vega-signature-capture.cjs.entry.js +40 -38
  106. package/dist/cjs/{block-annotation.abstract-4d88b939.js → vega-skeleton-loader-controller-7dac484f.js} +7 -21
  107. package/dist/cjs/vega-skeleton.cjs.entry.js +26 -25
  108. package/dist/cjs/vega-slot-container.cjs.entry.js +6 -5
  109. package/dist/cjs/vega-stepper.cjs.entry.js +34 -32
  110. package/dist/cjs/vega-tab-group_2.cjs.entry.js +54 -52
  111. package/dist/cjs/vega-table_8.cjs.entry.js +184 -182
  112. package/dist/cjs/vega-text.cjs.entry.js +9 -8
  113. package/dist/cjs/vega-textarea.cjs.entry.js +34 -32
  114. package/dist/cjs/vega-time-picker_2.cjs.entry.js +83 -81
  115. package/dist/cjs/vega-toggle-switch.cjs.entry.js +23 -21
  116. package/dist/cjs/vega-tooltip_2.cjs.entry.js +20 -19
  117. package/dist/cjs/vega.cjs.js +21 -21
  118. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +22 -1
  119. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +0 -90
  120. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +0 -24
  121. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +67 -13
  122. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +45 -12
  123. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +68 -8
  124. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +111 -36
  125. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +23 -50
  126. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +0 -25
  127. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +95 -19
  128. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.js +37 -0
  129. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +13 -0
  130. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +12 -0
  131. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +16 -0
  132. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +123 -0
  133. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +48 -0
  134. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.js +37 -0
  135. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +26 -0
  136. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +0 -10
  137. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +0 -48
  138. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-item.test.js +0 -40
  139. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +0 -39
  140. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +0 -14
  141. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +0 -34
  142. package/dist/esm/{app-globals-48531a04.js → app-globals-5b154b6d.js} +13 -12
  143. package/dist/esm/{change-manager-8f5b72c2.js → change-manager-6a7eb88c.js} +1 -1
  144. package/dist/esm/{child-nodes-event-prevent-slimmer-8ceabe63.js → child-nodes-event-prevent-slimmer-97aae8a8.js} +3 -3
  145. package/dist/esm/{child-nodes-notify-observer-slimmer-afc15e00.js → child-nodes-notify-observer-slimmer-289caacc.js} +4 -4
  146. package/dist/esm/{component-051a594c.js → component-cae24190.js} +1 -1
  147. package/dist/esm/{component-global-style-slimmer-631f956f.js → component-global-style-slimmer-000e0c11.js} +1 -1
  148. package/dist/esm/{component-usage-runtime-metrics-21813c36.js → component-usage-runtime-metrics-385c7124.js} +1 -1
  149. package/dist/esm/content-state-f39c4bbf.js +132 -0
  150. package/dist/esm/{create-public-api-runtime-metrics-slimmer-14cb4599.js → create-public-api-runtime-metrics-slimmer-9ab05523.js} +2 -2
  151. package/dist/esm/{date-655c0af8.js → date-732bc749.js} +1 -1
  152. package/dist/esm/{deprecated-property-slimmer-9ea5019c.js → deprecated-property-slimmer-43d184b3.js} +2 -2
  153. package/dist/esm/{design-token-20fdba82.js → design-token-d06bc718.js} +3 -3
  154. package/dist/esm/{dom-node-subject-observer-factory-80358591.js → dom-node-subject-factory-5831cdd4.js} +2 -41
  155. package/dist/esm/dom-node-subject-observer-factory-dc486a8b.js +42 -0
  156. package/dist/esm/{dynamic-slimmer-85746483.js → dynamic-slimmer-90b8af32.js} +1 -1
  157. package/dist/esm/{element-appender-slimmer-4dfa326d.js → element-appender-slimmer-d71e3109.js} +6 -6
  158. package/dist/esm/{event-emit-slimmer-c03cf145.js → event-emit-slimmer-f285e3ac.js} +6 -5
  159. package/dist/esm/{feature-flag-controller-dfde0cfa.js → feature-flag-controller-4b3fe6f8.js} +1 -1
  160. package/dist/esm/{form-field-controller-slimmer-de5fe574.js → form-field-controller-slimmer-af969d03.js} +10 -9
  161. package/dist/esm/global-slimmer-registry-17c4efd4.js +283 -0
  162. package/dist/esm/{icon-manager-3cef32e7.js → icon-manager-b889176b.js} +2 -2
  163. package/dist/esm/{text-color-toolbar-button-slimmer-b2270b64.js → image-annotation-action-a8e00f28.js} +55 -6
  164. package/dist/esm/{global-slimmer-registry-6887a59f.js → index-187f71d1.js} +283 -284
  165. package/dist/esm/index.js +20 -21
  166. package/dist/esm/{inject-keyboard-manager-45309420.js → inject-keyboard-manager-b0135018.js} +1 -1
  167. package/dist/esm/{internal-icon-manager-7fc7535a.js → internal-icon-manager-900a5bb4.js} +1 -1
  168. package/dist/esm/{internal-vega-event-manager-3a3815d3.js → internal-vega-event-manager-07e1b3d9.js} +2 -2
  169. package/dist/esm/{internal-vega-z-index-manager-89e8b6f5.js → internal-vega-z-index-manager-7d2b54c3.js} +1 -1
  170. package/dist/esm/{keyboard-manager-2c06eafe.js → keyboard-manager-4c898a0d.js} +1 -1
  171. package/dist/esm/{keyboard-manager-slimmer-fd177285.js → keyboard-manager-slimmer-f80d6835.js} +2 -2
  172. package/dist/esm/{content-state-4b036bf1.js → list-block-ba82c846.js} +1225 -299
  173. package/dist/esm/loader.js +19 -19
  174. package/dist/esm/{mutation-observer-slimmer-ca2cb2e8.js → mutation-observer-slimmer-6cef9549.js} +1 -1
  175. package/dist/esm/{node.abstract-93746055.js → node-annotation.abstract-d7d52bce.js} +35 -47
  176. package/dist/esm/{page-resize-observer-slimmer-8589ebc8.js → page-resize-observer-slimmer-beb7b0bd.js} +1 -1
  177. package/dist/esm/polyfills/core-js.js +0 -0
  178. package/dist/esm/polyfills/dom.js +0 -0
  179. package/dist/esm/polyfills/es5-html-element.js +0 -0
  180. package/dist/esm/polyfills/index.js +0 -0
  181. package/dist/esm/polyfills/system.js +0 -0
  182. package/dist/esm/{remote-invocation-registry-2ec6936d.js → remote-invocation-registry-d97fa3bc.js} +2 -2
  183. package/dist/esm/{responsive-format-facade-559ec469.js → responsive-format-facade-c2ab9c87.js} +1 -1
  184. package/dist/esm/{state-background-color-formatter-16031a43.js → state-background-color-formatter-121ae7d3.js} +1 -1
  185. package/dist/esm/{string-input-formatter-slimmer-c9fb1fa1.js → string-input-formatter-slimmer-73fa06e6.js} +1 -1
  186. package/dist/esm/{style-formatter-51845b6d.js → style-formatter-f91471e8.js} +1 -1
  187. package/dist/esm/{sub-state-notify-slimmer-6e97a58a.js → sub-state-notify-slimmer-48bad548.js} +4 -4
  188. package/dist/esm/{sub-state-observer-slimmer-0968ce04.js → sub-state-observer-slimmer-403cc4e7.js} +4 -4
  189. package/dist/esm/{translation-b3fe8e74.js → translation-a98970d8.js} +3 -3
  190. package/dist/esm/{translation-slimmer-860cd766.js → translation-slimmer-5ee9912b.js} +2 -2
  191. package/dist/esm/{ui-5600b48f.js → ui-62e4be97.js} +1 -1
  192. package/dist/esm/vega-accordion.entry.js +17 -15
  193. package/dist/esm/vega-app-footer.entry.js +4 -3
  194. package/dist/esm/vega-app-header-button.entry.js +20 -18
  195. package/dist/esm/vega-backdrop.entry.js +5 -4
  196. package/dist/esm/vega-banner.entry.js +15 -13
  197. package/dist/esm/vega-bar-chart.entry.js +3 -2
  198. package/dist/esm/vega-box.entry.js +10 -9
  199. package/dist/esm/vega-breadcrumb.entry.js +13 -11
  200. package/dist/esm/vega-button-circle.entry.js +16 -14
  201. package/dist/esm/vega-button-group_2.entry.js +15 -13
  202. package/dist/esm/vega-button-link.entry.js +13 -11
  203. package/dist/esm/vega-button.entry.js +15 -13
  204. package/dist/esm/vega-calendar_3.entry.js +23 -21
  205. package/dist/esm/vega-card.entry.js +8 -7
  206. package/dist/esm/vega-carousel.entry.js +14 -12
  207. package/dist/esm/vega-checkbox_2.entry.js +19 -17
  208. package/dist/esm/vega-chip.entry.js +17 -15
  209. package/dist/esm/vega-color-picker.entry.js +16 -14
  210. package/dist/esm/vega-combo-box.entry.js +20 -18
  211. package/dist/esm/vega-counter-badge.entry.js +4 -3
  212. package/dist/esm/vega-date-picker_2.entry.js +31 -29
  213. package/dist/esm/{vega-dialog-controller-5b23f68c.js → vega-dialog-controller-34eb8967.js} +2 -2
  214. package/dist/esm/vega-dialog_2.entry.js +20 -18
  215. package/dist/esm/vega-divider.entry.js +8 -7
  216. package/dist/esm/vega-dropdown_5.entry.js +27 -25
  217. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  218. package/dist/esm/vega-field-error.entry.js +5 -4
  219. package/dist/esm/vega-field-label.entry.js +11 -9
  220. package/dist/esm/vega-file-uploader.entry.js +19 -17
  221. package/dist/esm/vega-flex.entry.js +11 -10
  222. package/dist/esm/vega-font.entry.js +9 -8
  223. package/dist/esm/vega-form.entry.js +19 -17
  224. package/dist/esm/vega-grid.entry.js +8 -7
  225. package/dist/esm/vega-hint.entry.js +4 -3
  226. package/dist/esm/vega-icon.entry.js +11 -10
  227. package/dist/esm/vega-image-uploader.entry.js +21 -19
  228. package/dist/esm/vega-input-credit-card.entry.js +20 -18
  229. package/dist/esm/vega-input-numeric.entry.js +21 -19
  230. package/dist/esm/vega-input-phone-number.entry.js +21 -19
  231. package/dist/esm/vega-input-range.entry.js +19 -17
  232. package/dist/esm/vega-input-select.entry.js +22 -20
  233. package/dist/esm/vega-input.entry.js +18 -16
  234. package/dist/esm/vega-item-toggle.entry.js +12 -10
  235. package/dist/esm/vega-left-nav_5.entry.js +24 -22
  236. package/dist/esm/vega-line-chart.entry.js +4 -3
  237. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -6
  238. package/dist/esm/vega-page-notification_2.entry.js +8 -6
  239. package/dist/esm/vega-pagination.entry.js +16 -14
  240. package/dist/esm/vega-pie-chart.entry.js +4 -3
  241. package/dist/esm/vega-popover_2.entry.js +18 -16
  242. package/dist/esm/vega-progress-tracker.entry.js +12 -10
  243. package/dist/esm/vega-radio_2.entry.js +21 -19
  244. package/dist/esm/vega-rich-text-content.entry.js +315 -17
  245. package/dist/esm/vega-rich-text-editor_4.entry.js +31 -29
  246. package/dist/esm/vega-section-title.entry.js +4 -3
  247. package/dist/esm/vega-segment-control.entry.js +12 -10
  248. package/dist/esm/vega-selection-chip_2.entry.js +21 -19
  249. package/dist/esm/vega-selection-tile_2.entry.js +21 -19
  250. package/dist/esm/vega-sidenav_3.entry.js +19 -17
  251. package/dist/esm/vega-signature-capture.entry.js +22 -20
  252. package/dist/esm/{block-annotation.abstract-b0554e2b.js → vega-skeleton-loader-controller-0aaaf1fa.js} +8 -21
  253. package/dist/esm/vega-skeleton.entry.js +4 -3
  254. package/dist/esm/vega-slot-container.entry.js +3 -2
  255. package/dist/esm/vega-stepper.entry.js +18 -16
  256. package/dist/esm/vega-tab-group_2.entry.js +14 -12
  257. package/dist/esm/vega-table_8.entry.js +25 -23
  258. package/dist/esm/vega-text.entry.js +5 -4
  259. package/dist/esm/vega-textarea.entry.js +18 -16
  260. package/dist/esm/vega-time-picker_2.entry.js +25 -23
  261. package/dist/esm/vega-toggle-switch.entry.js +16 -14
  262. package/dist/esm/vega-tooltip_2.entry.js +13 -12
  263. package/dist/esm/vega.js +19 -19
  264. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +1 -0
  265. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +0 -6
  266. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -15
  267. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +68 -4
  268. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +45 -3
  269. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +68 -3
  270. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +110 -5
  271. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +21 -5
  272. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +1 -14
  273. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +86 -2
  274. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.d.ts +22 -0
  275. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.d.ts +8 -0
  276. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +8 -0
  277. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.d.ts +9 -0
  278. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +15 -0
  279. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.d.ts +10 -0
  280. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.d.ts +22 -0
  281. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +10 -0
  282. package/dist/vega/index.esm.js +1 -1
  283. package/dist/vega/p-000b3ab0.js +1 -0
  284. package/dist/vega/p-00738ae9.entry.js +1 -0
  285. package/dist/vega/p-01d0dbe6.entry.js +1 -0
  286. package/dist/vega/{p-b3f9cc3a.entry.js → p-0283712e.entry.js} +2 -2
  287. package/dist/vega/p-032df16f.js +1 -0
  288. package/dist/vega/p-05f5e22b.entry.js +1 -0
  289. package/dist/vega/p-0945a58d.entry.js +1 -0
  290. package/dist/vega/p-09c5de7f.entry.js +1 -0
  291. package/dist/vega/p-0a8b91f5.entry.js +1 -0
  292. package/dist/vega/{p-f763e2eb.js → p-0af4bda9.js} +1 -1
  293. package/dist/vega/p-0bd9b1d9.entry.js +1 -0
  294. package/dist/vega/p-0c2eb135.entry.js +1 -0
  295. package/dist/vega/p-0da2de05.entry.js +1 -0
  296. package/dist/vega/p-0ee10fd7.js +1 -0
  297. package/dist/vega/p-12ad8ada.entry.js +1 -0
  298. package/dist/vega/p-14514252.entry.js +1 -0
  299. package/dist/vega/{p-11a19ca0.js → p-149d2801.js} +1 -1
  300. package/dist/vega/p-14f85e30.entry.js +1 -0
  301. package/dist/vega/p-19556584.entry.js +1 -0
  302. package/dist/vega/p-1b3e0a9f.entry.js +1 -0
  303. package/dist/vega/p-1c298d5a.js +2 -0
  304. package/dist/vega/p-1d805cc0.entry.js +1 -0
  305. package/dist/vega/p-1dd9f841.entry.js +1 -0
  306. package/dist/vega/p-211df22a.entry.js +1 -0
  307. package/dist/vega/p-2205ee4c.js +1 -0
  308. package/dist/vega/p-29b09aad.js +1 -0
  309. package/dist/vega/{p-443ad3b3.js → p-2d0d575f.js} +1 -1
  310. package/dist/vega/p-2f32a9ba.js +1 -0
  311. package/dist/vega/{p-368d0060.js → p-2fbda931.js} +1 -1
  312. package/dist/vega/p-33b62194.js +1 -0
  313. package/dist/vega/p-36db2554.entry.js +1 -0
  314. package/dist/vega/p-3a6c9b9d.entry.js +1 -0
  315. package/dist/vega/p-42df8a42.js +1 -0
  316. package/dist/vega/{p-8f93242a.js → p-4387d550.js} +1 -1
  317. package/dist/vega/p-45c88f7f.entry.js +1 -0
  318. package/dist/vega/p-45dd4698.entry.js +1 -0
  319. package/dist/vega/p-465fa96d.entry.js +1 -0
  320. package/dist/vega/{p-3b4bde3e.js → p-4b500240.js} +1 -1
  321. package/dist/vega/{p-e0b25eaf.js → p-4f0b56fc.js} +1 -1
  322. package/dist/vega/p-5298fd92.entry.js +1 -0
  323. package/dist/vega/p-5915634b.js +1 -0
  324. package/dist/vega/p-5f377954.js +1 -1
  325. package/dist/vega/{p-70151c27.js → p-5f589974.js} +1 -1
  326. package/dist/vega/p-61116634.entry.js +1 -0
  327. package/dist/vega/p-618b35e4.entry.js +1 -0
  328. package/dist/vega/p-625771d7.entry.js +1 -0
  329. package/dist/vega/p-6661a462.entry.js +1 -0
  330. package/dist/vega/{p-62774231.js → p-6705c68a.js} +1 -1
  331. package/dist/vega/p-68f0aa72.entry.js +1 -0
  332. package/dist/vega/{p-59bdf9b8.js → p-6a334573.js} +1 -1
  333. package/dist/vega/p-6a3989dd.js +1 -0
  334. package/dist/vega/{p-0e0c47ad.js → p-6a5a5c7b.js} +1 -1
  335. package/dist/vega/p-6c09b79a.entry.js +1 -0
  336. package/dist/vega/p-6d23c08b.entry.js +1 -0
  337. package/dist/vega/p-6d43b123.entry.js +1 -0
  338. package/dist/vega/p-6e1ab235.js +1 -0
  339. package/dist/vega/p-71eeb279.entry.js +1 -0
  340. package/dist/vega/p-72eee5e2.js +1 -0
  341. package/dist/vega/{p-eac38d87.js → p-781fd6e0.js} +1 -1
  342. package/dist/vega/{p-1995e98e.js → p-79ec5d69.js} +1 -1
  343. package/dist/vega/p-8067bd31.entry.js +1 -0
  344. package/dist/vega/{p-3f1b542a.js → p-81dbada7.js} +1 -1
  345. package/dist/vega/{p-a6a7d0c9.js → p-8284a445.js} +1 -1
  346. package/dist/vega/p-84113217.entry.js +1 -0
  347. package/dist/vega/p-843b13e6.entry.js +1 -0
  348. package/dist/vega/p-84f2f342.js +1 -0
  349. package/dist/vega/p-85365f8b.js +1 -0
  350. package/dist/vega/p-8ab356e8.entry.js +1 -0
  351. package/dist/vega/p-8ba43640.entry.js +1 -0
  352. package/dist/vega/p-8be7b62c.entry.js +1 -0
  353. package/dist/vega/p-8d69f9ef.entry.js +1 -0
  354. package/dist/vega/p-91aa058f.entry.js +1 -0
  355. package/dist/vega/{p-8c26227e.js → p-926596cc.js} +1 -1
  356. package/dist/vega/p-92707b74.entry.js +1 -0
  357. package/dist/vega/p-96f0ef53.entry.js +1 -0
  358. package/dist/vega/p-97453cd8.entry.js +1 -0
  359. package/dist/vega/{p-843a0c1c.js → p-987fbbd0.js} +1 -1
  360. package/dist/vega/{p-296cc56b.js → p-9b797118.js} +1 -1
  361. package/dist/vega/p-a01f149d.entry.js +1 -0
  362. package/dist/vega/p-a0e90d5d.entry.js +1 -0
  363. package/dist/vega/{p-3953c705.js → p-af7a3154.js} +1 -1
  364. package/dist/vega/p-b2bca332.entry.js +1 -0
  365. package/dist/vega/p-b450bf46.entry.js +1 -0
  366. package/dist/vega/p-b5990090.js +1 -0
  367. package/dist/vega/p-b64981de.entry.js +1 -0
  368. package/dist/vega/p-b6815874.js +1 -0
  369. package/dist/vega/p-b688a71b.js +1 -0
  370. package/dist/vega/p-b9a09a76.js +1 -0
  371. package/dist/vega/p-bcb10ae3.entry.js +1 -0
  372. package/dist/vega/{p-39836361.js → p-be12fa36.js} +1 -1
  373. package/dist/vega/p-c02f650e.entry.js +1 -0
  374. package/dist/vega/p-c2b276f7.entry.js +1 -0
  375. package/dist/vega/p-c51a3e3c.entry.js +1 -0
  376. package/dist/vega/p-c88acd87.entry.js +1 -0
  377. package/dist/vega/p-cb8f8458.entry.js +1 -0
  378. package/dist/vega/p-cda26bdf.entry.js +1 -0
  379. package/dist/vega/p-d09d153f.entry.js +1 -0
  380. package/dist/vega/p-d994874a.entry.js +1 -0
  381. package/dist/vega/p-dbec03ed.entry.js +1 -0
  382. package/dist/vega/p-dcdac4d0.entry.js +1 -0
  383. package/dist/vega/p-de13b747.entry.js +1 -0
  384. package/dist/vega/p-de25326f.js +1 -0
  385. package/dist/vega/{p-e1e1fcf0.js → p-de664bdd.js} +1 -1
  386. package/dist/vega/p-e04d4ba3.entry.js +1 -0
  387. package/dist/vega/p-e8f540d8.js +1 -0
  388. package/dist/vega/p-e923637d.entry.js +1 -0
  389. package/dist/vega/p-efbea85a.entry.js +1 -0
  390. package/dist/vega/{p-81ead59a.js → p-f31bb1fd.js} +1 -1
  391. package/dist/vega/p-f690539e.entry.js +1 -0
  392. package/dist/vega/p-f6b89936.entry.js +1 -0
  393. package/dist/vega/p-f84fd31c.js +1 -0
  394. package/dist/vega/p-fe388812.entry.js +1 -0
  395. package/dist/vega/{p-acf7f903.js → p-ff4bafa3.js} +1 -1
  396. package/dist/vega/p-ff50c204.entry.js +1 -0
  397. package/dist/vega/vega.esm.js +1 -1
  398. package/package.json +3 -2
  399. package/dist/cjs/text-node-494856f3.js +0 -955
  400. package/dist/esm/text-node-a652ca87.js +0 -933
  401. package/dist/vega/p-0190095c.entry.js +0 -1
  402. package/dist/vega/p-034e6348.entry.js +0 -1
  403. package/dist/vega/p-0cd2b50f.entry.js +0 -1
  404. package/dist/vega/p-10393104.js +0 -1
  405. package/dist/vega/p-109a00cf.entry.js +0 -1
  406. package/dist/vega/p-11cb477b.js +0 -1
  407. package/dist/vega/p-1564cc4d.entry.js +0 -1
  408. package/dist/vega/p-18886765.entry.js +0 -1
  409. package/dist/vega/p-19b26168.entry.js +0 -1
  410. package/dist/vega/p-21992602.entry.js +0 -1
  411. package/dist/vega/p-22563151.entry.js +0 -1
  412. package/dist/vega/p-23795da1.entry.js +0 -1
  413. package/dist/vega/p-29277e41.entry.js +0 -1
  414. package/dist/vega/p-2a7e9422.entry.js +0 -1
  415. package/dist/vega/p-2ca6d977.entry.js +0 -1
  416. package/dist/vega/p-2e419309.entry.js +0 -1
  417. package/dist/vega/p-3039bef8.js +0 -1
  418. package/dist/vega/p-34939c97.entry.js +0 -1
  419. package/dist/vega/p-3897bb2d.entry.js +0 -1
  420. package/dist/vega/p-390c5236.entry.js +0 -1
  421. package/dist/vega/p-3ce31dc3.js +0 -1
  422. package/dist/vega/p-452e284a.js +0 -1
  423. package/dist/vega/p-4c41dd64.js +0 -1
  424. package/dist/vega/p-55beac7f.entry.js +0 -1
  425. package/dist/vega/p-57405834.entry.js +0 -1
  426. package/dist/vega/p-584dcd9b.js +0 -1
  427. package/dist/vega/p-589e6041.entry.js +0 -1
  428. package/dist/vega/p-5e95402a.entry.js +0 -1
  429. package/dist/vega/p-5eee21b4.entry.js +0 -1
  430. package/dist/vega/p-62cea2e7.entry.js +0 -1
  431. package/dist/vega/p-65b79fd7.js +0 -1
  432. package/dist/vega/p-6741e2b9.entry.js +0 -1
  433. package/dist/vega/p-6a084fe1.entry.js +0 -1
  434. package/dist/vega/p-6b286226.entry.js +0 -1
  435. package/dist/vega/p-6b722905.entry.js +0 -1
  436. package/dist/vega/p-6e4b2752.entry.js +0 -1
  437. package/dist/vega/p-7209d03b.js +0 -1
  438. package/dist/vega/p-734ea281.entry.js +0 -1
  439. package/dist/vega/p-76fc408e.entry.js +0 -1
  440. package/dist/vega/p-7a9f453e.entry.js +0 -1
  441. package/dist/vega/p-80ccd894.entry.js +0 -1
  442. package/dist/vega/p-84c597c8.entry.js +0 -1
  443. package/dist/vega/p-8836c1b9.js +0 -1
  444. package/dist/vega/p-8b78c6a3.entry.js +0 -1
  445. package/dist/vega/p-8be45a45.entry.js +0 -1
  446. package/dist/vega/p-8d7b45f7.entry.js +0 -1
  447. package/dist/vega/p-8e17b9dd.entry.js +0 -1
  448. package/dist/vega/p-8f004647.entry.js +0 -1
  449. package/dist/vega/p-925a2137.js +0 -1
  450. package/dist/vega/p-92f88033.entry.js +0 -1
  451. package/dist/vega/p-94de7a02.entry.js +0 -1
  452. package/dist/vega/p-9968e71d.entry.js +0 -1
  453. package/dist/vega/p-9c1eeff2.js +0 -2
  454. package/dist/vega/p-9d1b9e70.entry.js +0 -1
  455. package/dist/vega/p-9e732a26.entry.js +0 -1
  456. package/dist/vega/p-9f39dd10.js +0 -1
  457. package/dist/vega/p-a5ffe912.js +0 -1
  458. package/dist/vega/p-a6104aa7.js +0 -1
  459. package/dist/vega/p-a6169ad6.entry.js +0 -1
  460. package/dist/vega/p-a8bf559a.js +0 -1
  461. package/dist/vega/p-afec17ad.entry.js +0 -1
  462. package/dist/vega/p-b693c1ac.entry.js +0 -1
  463. package/dist/vega/p-b9e2add4.entry.js +0 -1
  464. package/dist/vega/p-bd894860.entry.js +0 -1
  465. package/dist/vega/p-c0d6a587.entry.js +0 -1
  466. package/dist/vega/p-c26e6820.entry.js +0 -1
  467. package/dist/vega/p-c34487e1.entry.js +0 -1
  468. package/dist/vega/p-c532b132.entry.js +0 -1
  469. package/dist/vega/p-ca2fb711.js +0 -1
  470. package/dist/vega/p-cebf93f1.entry.js +0 -1
  471. package/dist/vega/p-cfdc148a.entry.js +0 -1
  472. package/dist/vega/p-d0351d71.entry.js +0 -1
  473. package/dist/vega/p-d2ab6096.entry.js +0 -1
  474. package/dist/vega/p-d35643c5.entry.js +0 -1
  475. package/dist/vega/p-d400a1d9.entry.js +0 -1
  476. package/dist/vega/p-d6732a72.entry.js +0 -1
  477. package/dist/vega/p-d720b06a.entry.js +0 -1
  478. package/dist/vega/p-d987e404.entry.js +0 -1
  479. package/dist/vega/p-d9b86108.entry.js +0 -1
  480. package/dist/vega/p-e27e115d.entry.js +0 -1
  481. package/dist/vega/p-e65c8ac7.entry.js +0 -1
  482. package/dist/vega/p-e79057cc.js +0 -1
  483. package/dist/vega/p-e89e9769.entry.js +0 -1
  484. package/dist/vega/p-ecd64c7f.entry.js +0 -1
  485. package/dist/vega/p-f5b2e72a.entry.js +0 -1
  486. package/dist/vega/p-f6af3749.js +0 -1
  487. package/dist/vega/p-fc622a75.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as t,V as e,h as i,H as n,F as r,M as s,L as o,r as a,e as h,g as c,I as d}from"./p-9c1eeff2.js";import{s as l}from"./p-296cc56b.js";import{i as p,c as u,a as f,b as m}from"./p-fc622a75.js";import{V as v,I as g}from"./p-8f93242a.js";import{F as w}from"./p-4c41dd64.js";import{a as x,g as b,D as y}from"./p-1995e98e.js";import{D as k,b as _,V as D}from"./p-a5ffe912.js";import{V as j}from"./p-a6a7d0c9.js";import{c as R}from"./p-86194314.js";import{i as M}from"./p-b0502d01.js";import{c as I}from"./p-112455b1.js";import{I as C}from"./p-eac38d87.js";import{b as O}from"./p-d057999f.js";import{C as E}from"./p-443ad3b3.js";import{S as z,a as S}from"./p-368d0060.js";import{E as V}from"./p-81ead59a.js";import"./p-5f377954.js";import"./p-452e284a.js";import{F as L}from"./p-acf7f903.js";import"./p-8c26227e.js";import"./p-11a19ca0.js";import"./p-65b79fd7.js";import"./p-e1e1fcf0.js";import{K as T}from"./p-ca2fb711.js";import{C as P}from"./p-ed4a57a8.js";import{c as A}from"./p-11cb477b.js";import{C as H}from"./p-39836361.js";import{T as Y}from"./p-7209d03b.js";import"./p-0bb29d98.js";import"./p-3ce31dc3.js";import"./p-59bdf9b8.js";import"./p-f357cf46.js";import"./p-70151c27.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-843a0c1c.js";import"./p-a9354a5c.js";import"./p-262ec334.js";import"./p-b1f65b13.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-62774231.js";import"./p-0c667d6a.js";import"./p-f763e2eb.js";import"./p-7a40e033.js";import"./p-0e0c47ad.js";class F{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=p(t);break;case"range":e=Array.isArray(t)&&2===t.length&&t.every(p)}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 N{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=u(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(p)}}class W{constructor(t){this.evaluateSingleDate=t=>{const e=new Date(t);return this.minDate&&f(e,this.minDate)?this.invalidResult({key:"The date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&m(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&&f(e,this.minDate)?this.invalidResult({key:"The start date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&m(e,this.maxDate)?this.invalidResult({key:"The start date should be earlier than {0}",args:[this.config.maxDate]}):i&&this.maxDate&&m(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&&p(t)||Array.isArray(t)&&2===t.length&&t.every(p)}}const U={"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>'}};var $=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 B extends e{constructor(){super(...arguments),this.renderInputPrefix=()=>i("div",{class:"vega-input-prefix"},i("vega-icon",{icon:j.getIconKey("calendar"),color:"text-secondary",onClick:()=>this.focusInput()})),this.isInputEnabled=()=>!this.readOnly&&!this.vegaDatePickerMobileController.getIsMobileDevice(),this.renderLabel=()=>this.label&&i("vega-field-label",{ref:t=>{k.addUniqueObserverToNode(t,_,(()=>{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 t=["vega-input-container",this.size,`${this.mode}-mode`,this.vegaDatePickerMobileController.getIsMobileDevice()?"mobile":""];return i(n,{class:{disabled:this.disabled}},this.renderLabel(),i("div",{class:x(t),ref:t=>this.datePickerContainer=t},"range"===this.mode?this.vegaDatePickerRangeInputRenderer.render():this.vegaDatePickerSingleInputRenderer.render()))}}j.register({calendar:U.calendar}),$([t()],B.prototype,"disabled",void 0),$([t()],B.prototype,"size",void 0),$([t()],B.prototype,"mode",void 0),$([t()],B.prototype,"label",void 0),$([t()],B.prototype,"required",void 0),$([t()],B.prototype,"readOnly",void 0),$([t()],B.prototype,"autoValidation",void 0),$([t()],B.prototype,"host",void 0),$([t()],B.prototype,"vegaDatePickerMobileController",void 0),$([t()],B.prototype,"vegaDatePickerSingleInputRenderer",void 0),$([t()],B.prototype,"vegaDatePickerRangeInputRenderer",void 0),$([t()],B.prototype,"vegaDatePickerCalendarRenderer",void 0);var Z=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 K extends e{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()))}}Z([t()],K.prototype,"host",void 0),Z([t()],K.prototype,"vegaDatePickerCalendarRenderer",void 0);var G=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 e{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&&!M(t,["",""])}{const t=this.vegaDatePickerValueController.getValue();return!this.disabled&&Boolean(t.length)}}}renderClearIcon(){return i(r,null,this.showClearIcon&&this.isClearIconVisible()&&i("div",{class:"vega-input-clear-icon",tabIndex:-1,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:R()},i("vega-icon",{icon:"close"})))}}G([t()],q.prototype,"disabled",void 0),G([t()],q.prototype,"showClearIcon",void 0),G([t()],q.prototype,"mode",void 0),G([t()],q.prototype,"vegaDatePickerValueController",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 q{constructor(){super(...arguments),this.render=()=>i("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),i("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?(o.warn("The placeholder should be a string"),this.format):this.placeholder:this.format,this.onSingleDateChange=t=>{const e=t.currentTarget.value;p(e)?this.vegaDatePickerValueController.setValue(this.vegaDatePickerFormatController.formatDate(e)):(this.vegaDatePickerValueController.setValue(""),this.singleDateInputRef.value="",o.warn("The date value of ${date} is invalid"))}}componentWillRender(){this.oldSingleDateInputRef=this.singleDateInputRef}getSingleDateInputRef(){return this.singleDateInputRef}getOldSingleDateInputRef(){return this.oldSingleDateInputRef}}X([t()],J.prototype,"placeholder",void 0),X([t()],J.prototype,"format",void 0),X([t()],J.prototype,"vegaDatePickerFormatController",void 0),X([t()],J.prototype,"vegaDatePickerRenderer",void 0),X([t()],J.prototype,"vegaDatePickerCalendarRenderer",void 0),X([s("componentWillRender")],J.prototype,"componentWillRender",null);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 q{constructor(){super(...arguments),this.render=()=>i(r,null,i("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),i("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})),i("span",{class:{"range-input-divider":!0}}),i("div",{class:"date-picker-input"},i("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:(o.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;p(e)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerFormatController.formatDate(e),this.vegaDatePickerValueController.getValue()[1]]):(this.vegaDatePickerValueController.setValue(["",this.vegaDatePickerValueController.getValue()[1]]),this.startDateInputRef.value="",o.warn("The date value of ${date} is invalid"))},this.onEndDateChange=t=>{const e=t.currentTarget.value;p(e)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],this.vegaDatePickerFormatController.formatDate(e)]):(this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],""]),this.endDateInputRef.value="",o.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}}Q([t()],tt.prototype,"placeholder",void 0),Q([t()],tt.prototype,"vegaDatePickerFormatController",void 0),Q([t()],tt.prototype,"vegaDatePickerRenderer",void 0),Q([t()],tt.prototype,"translationSlimmer",void 0),Q([s("componentWillRender")],tt.prototype,"componentWillRender",null);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 e{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&&!M(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=()=>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()}),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&&(f(i,new Date(this.minDate))||this.maxDate&&m(i,new Date(this.maxDate)))?e.gotoDate(this.minDate,0):this.maxDate&&m(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()}}}et([t({writable:!0})],it.prototype,"minDate",void 0),et([t({writable:!0})],it.prototype,"maxDate",void 0),et([t()],it.prototype,"allowRepick",void 0),et([t()],it.prototype,"format",void 0),et([t()],it.prototype,"mode",void 0),et([t()],it.prototype,"vegaDatePickerMobileController",void 0),et([t()],it.prototype,"vegaDatePickerValueController",void 0),et([t()],it.prototype,"vegaDatePickerFormatController",void 0),et([t()],it.prototype,"vegaDatePickerSingleInputRenderer",void 0),et([t()],it.prototype,"vegaDatePickerRangeInputRenderer",void 0),et([t()],it.prototype,"vegaDatePickerCalendarRenderer",void 0),et([s("watchMinDate")],it.prototype,"watchMinDate",null),et([s("watchMaxDate")],it.prototype,"watchMaxDate",null),et([s("watchValue")],it.prototype,"watchValue",null);var nt=I((function(t){
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-2f32a9ba.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 _,f as D}from"./p-6a3989dd.js";import{V as j}from"./p-8284a445.js";import{c as R}from"./p-86194314.js";import{i as M}from"./p-b0502d01.js";import{c as I}from"./p-112455b1.js";import{I as C}from"./p-781fd6e0.js";import{b as O}from"./p-d057999f.js";import{C as E}from"./p-2d0d575f.js";import{S as z,a as S}from"./p-2fbda931.js";import{E as V}from"./p-f31bb1fd.js";import"./p-5f377954.js";import"./p-84f2f342.js";import{F as L}from"./p-ff4bafa3.js";import"./p-926596cc.js";import"./p-149d2801.js";import"./p-032df16f.js";import"./p-de664bdd.js";import{K as T}from"./p-de25326f.js";import{C as P}from"./p-ed4a57a8.js";import{c as A}from"./p-e8f540d8.js";import{C as H}from"./p-be12fa36.js";import{T as Y}from"./p-b688a71b.js";import"./p-0bb29d98.js";import"./p-33b62194.js";import"./p-6a334573.js";import"./p-f357cf46.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 F{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 N{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 W{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 U={"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>'}};var $=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 B extends p{constructor(){super(...arguments),this.renderInputPrefix=()=>t("div",{class:"vega-input-prefix"},t("vega-icon",{icon:j.getIconKey("calendar"),color:"text-secondary",onClick:()=>this.focusInput()})),this.isInputEnabled=()=>!this.readOnly&&!this.vegaDatePickerMobileController.getIsMobileDevice(),this.renderLabel=()=>this.label&&t("vega-field-label",{ref:t=>{k.addUniqueObserverToNode(t,_,(()=>{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()))}}j.register({calendar:U.calendar}),$([l()],B.prototype,"disabled",void 0),$([l()],B.prototype,"size",void 0),$([l()],B.prototype,"mode",void 0),$([l()],B.prototype,"label",void 0),$([l()],B.prototype,"required",void 0),$([l()],B.prototype,"readOnly",void 0),$([l()],B.prototype,"autoValidation",void 0),$([l()],B.prototype,"host",void 0),$([l()],B.prototype,"vegaDatePickerMobileController",void 0),$([l()],B.prototype,"vegaDatePickerSingleInputRenderer",void 0),$([l()],B.prototype,"vegaDatePickerRangeInputRenderer",void 0),$([l()],B.prototype,"vegaDatePickerCalendarRenderer",void 0);var Z=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 K 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()))}}Z([l()],K.prototype,"host",void 0),Z([l()],K.prototype,"vegaDatePickerCalendarRenderer",void 0);var G=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.onClickClearIcon=()=>{this.vegaDatePickerValueController.setValue("range"===this.mode?["",""]:"")},this.isClearIconVisible=()=>{if("range"===this.mode){const t=this.vegaDatePickerValueController.getValue();return!this.disabled&&!M(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:R()},t("vega-icon",{icon:"close"})))}}G([l()],q.prototype,"disabled",void 0),G([l()],q.prototype,"showClearIcon",void 0),G([l()],q.prototype,"mode",void 0),G([l()],q.prototype,"vegaDatePickerValueController",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 q{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}}X([l()],J.prototype,"placeholder",void 0),X([l()],J.prototype,"format",void 0),X([l()],J.prototype,"vegaDatePickerFormatController",void 0),X([l()],J.prototype,"vegaDatePickerRenderer",void 0),X([l()],J.prototype,"vegaDatePickerCalendarRenderer",void 0),X([u("componentWillRender")],J.prototype,"componentWillRender",null);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 q{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}}Q([l()],tt.prototype,"placeholder",void 0),Q([l()],tt.prototype,"vegaDatePickerFormatController",void 0),Q([l()],tt.prototype,"vegaDatePickerRenderer",void 0),Q([l()],tt.prototype,"translationSlimmer",void 0),Q([u("componentWillRender")],tt.prototype,"componentWillRender",null);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 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&&!M(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=()=>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()}),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()}}}et([l({writable:!0})],it.prototype,"minDate",void 0),et([l({writable:!0})],it.prototype,"maxDate",void 0),et([l()],it.prototype,"allowRepick",void 0),et([l()],it.prototype,"format",void 0),et([l()],it.prototype,"mode",void 0),et([l()],it.prototype,"vegaDatePickerMobileController",void 0),et([l()],it.prototype,"vegaDatePickerValueController",void 0),et([l()],it.prototype,"vegaDatePickerFormatController",void 0),et([l()],it.prototype,"vegaDatePickerSingleInputRenderer",void 0),et([l()],it.prototype,"vegaDatePickerRangeInputRenderer",void 0),et([l()],it.prototype,"vegaDatePickerCalendarRenderer",void 0),et([u("watchMinDate")],it.prototype,"watchMinDate",null),et([u("watchMaxDate")],it.prototype,"watchMaxDate",null),et([u("watchValue")],it.prototype,"watchValue",null);var nt=I((function(t){
2
2
  /*!
3
3
  *
4
4
  * litepicker.umd.js
@@ -10,4 +10,4 @@ import{d as t,V as e,h as i,H as n,F as r,M as s,L as o,r as a,e as h,g as c,I a
10
10
  * Hash: f46190e781537007f2f2
11
11
  *
12
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 c=h[a],d=c[1],l=Number(c[0]),p=t.formatPatterns(d[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],c=h[1],d=Number(h[0]);n+=this.formatTokens(c[0],i),r[d+1]&&(n+=e.substring(c.index+c[0].length,r[d+1].index)),d===r.length-1&&(n+=e.substring(c.index+c[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),c=i(2),d=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()&&c.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=c.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=c.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 c=this.ui.parentNode.getBoundingClientRect();o-=c.top,a-=c.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 c=r.clone();r=s.clone(),s=c.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 d=s.diff(r,"day")+1;if("function"==typeof this.options.tooltipNumber&&(d=this.options.tooltipNumber.call(this,d)),d>0){var l=this.pluralSelector(d);this.showTooltip(i,d+" "+(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=d},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),c=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 c=n.clone();c.setDate(1),c.setHours(0,0,0,0),this.options.splitView?c=this.calendars[o].clone():c.setMonth(h),i.appendChild(this.renderMonth(c,o)),o+=1}if(this.ui.innerHTML="",e.appendChild(i),this.options.resetButton){var d=void 0;"function"==typeof this.options.resetButton?d=this.options.resetButton.call(this):((d=document.createElement("button")).type="button",d.className=a.resetButton,d.innerHTML=this.options.buttonText.reset),d.addEventListener("click",(function(e){e.preventDefault(),t.clearSelection()})),e.querySelector("."+a.monthItem+":last-child").querySelector("."+a.monthItemHeader).appendChild(d)}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 c=document.createElement("div");if(this.options.dropdowns.months){var d=document.createElement("select");d.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(),d.appendChild(p)}d.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)})),c.appendChild(d)}else(u=document.createElement("strong")).className=a.monthItemName,u.innerHTML=t.toLocaleString(this.options.lang,{month:"long"}),c.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)})),c.appendChild(m)}else{var b=document.createElement("span");b.className=a.monthItemYear,b.innerHTML=String(t.getFullYear()),c.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(c),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 _=document.createElement("div");_.className=a.monthItemWeekdaysRow,this.options.showWeekNumbers&&(_.innerHTML="<div>W</div>");for(var D=1;D<=7;D+=1){var j=3+this.options.firstDay+D,R=document.createElement("div");R.innerHTML=this.weekdayName(j),R.title=this.weekdayName(j,"long"),_.appendChild(R)}var M=document.createElement("div");M.className=a.containerDays;var I=this.calcSkipDays(i);this.options.showWeekNumbers&&I&&M.appendChild(this.renderWeekNumber(i));for(var C=0;C<I;C+=1){var O=document.createElement("div");M.appendChild(O)}for(C=1;C<=n;C+=1)i.setDate(C),this.options.showWeekNumbers&&i.getDay()===this.options.firstDay&&M.appendChild(this.renderWeekNumber(i)),M.appendChild(this.renderDay(i));return r.appendChild(s),r.appendChild(_),r.appendChild(M),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"),c=this.datePicked[0].clone().add(r,"day");t.isBetween(s,this.datePicked[0],"(]")&&e.classList.add(a.isLocked),t.isBetween(this.datePicked[0],c,"[)")&&e.classList.add(a.isLocked)}if(this.options.maxDays&&1===this.datePicked.length){var d=this.options.maxDays;s=this.datePicked[0].clone().subtract(d,"day"),c=this.datePicked[0].clone().add(d,"day"),t.isSameOrBefore(s)&&e.classList.add(a.isLocked),t.isSameOrAfter(c)&&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=c},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),c=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(),c=h[0],d=h[1];i.options.startDate&&(i.options.singleMode||i.options.endDate)&&(c=new a.DateTime(i.options.startDate,i.options.format,i.options.lang)),c&&i.options.endDate&&(d=new a.DateTime(i.options.endDate,i.options.format,i.options.lang)),c instanceof a.DateTime&&!isNaN(c.getTime())&&(i.options.startDate=c),i.options.startDate&&d instanceof a.DateTime&&!isNaN(d.getTime())&&(i.options.endDate=d),!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=c},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 c(){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 d(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=c.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 c=h.length,d=u(h,c);for(i=0;i<c;++i)n(d[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,d(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,d(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")}}])})),rt=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 st extends e{constructor(){super(...arguments),this.alterLitePickerHeader=t=>{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=U["chevron-left"].icon})),t.querySelectorAll(".button-next-month").forEach((t=>{t.innerHTML=U["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)}}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}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)}))}initDatePicker(){this.datePicker=new nt.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()})).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()}))}}rt([t()],st.prototype,"clearButton",void 0),rt([t()],st.prototype,"dropdownConfig",void 0),rt([t()],st.prototype,"allowRepick",void 0),rt([t()],st.prototype,"format",void 0),rt([t()],st.prototype,"vegaDatePickerCalendarController",void 0),rt([t()],st.prototype,"vegaDatePickerMobileController",void 0),rt([t()],st.prototype,"vegaDatePickerElementAppenderController",void 0),rt([t()],st.prototype,"vegaDatePickerZIndexController",void 0),rt([t()],st.prototype,"vegaDatePickerValueController",void 0),rt([t()],st.prototype,"vegaDatePickerSingleInputRenderer",void 0),rt([t()],st.prototype,"vegaDatePickerRangeInputRenderer",void 0),rt([t()],st.prototype,"translationSlimmer",void 0),rt([s("connectedCallback")],st.prototype,"connectedCallback",null),rt([s("disconnectedCallback")],st.prototype,"disconnectedCallback",null),rt([s("componentWillLoad")],st.prototype,"componentWillLoad",null),rt([s("componentDidLoad")],st.prototype,"componentDidLoad",null),rt([s("componentDidRender")],st.prototype,"componentDidRender",null),rt([s("doOpen")],st.prototype,"doOpen",null),rt([s("doClose")],st.prototype,"doClose",null),rt([s("watchAllowRepick")],st.prototype,"watchAllowRepick",null),rt([s("watchDisabled")],st.prototype,"watchDisabled",null),rt([s("watchFormat")],st.prototype,"watchFormat",null),rt([s("watchMode")],st.prototype,"watchMode",null);var ot=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 at extends e{setZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");C.setZIndex(t,"base"),C.setZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}removeZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");C.removeZIndex(t,"base"),C.removeZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}}ot([t()],at.prototype,"host",void 0),ot([t()],at.prototype,"vegaDatePickerCalendarRenderer",void 0);var 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 ct extends e{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||M(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&&M(t,e)||(this.valueGuard(t)?this.vegaDatePickerCalendarController.shouldUpdateCalendar(t):this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),E.notify(O,{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&&p(t)||""===t;break;case"range":e=Array.isArray(t)&&2===t.length&&t.every((t=>p(t)||""===t))}return e||o.warn(`Invalid date picker value ${t} for ${this.mode} mode`),e}}ht([t({writable:!0})],ct.prototype,"value",void 0),ht([t()],ct.prototype,"mode",void 0),ht([t()],ct.prototype,"format",void 0),ht([t()],ct.prototype,"changeEventEmitter",void 0),ht([t()],ct.prototype,"host",void 0),ht([t()],ct.prototype,"vegaDatePickerCalendarController",void 0),ht([t()],ct.prototype,"vegaDatePickerCalendarRenderer",void 0),ht([s("componentWillLoad")],ct.prototype,"componentWillLoad",null),ht([s("watchValue")],ct.prototype,"watchValue",null),ht([s("watchMode")],ct.prototype,"watchMode",null);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};class lt extends z{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 S({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()}}dt([t()],lt.prototype,"format",void 0),dt([t()],lt.prototype,"mode",void 0),dt([t()],lt.prototype,"vegaDatePickerCalendarRenderer",void 0),dt([t()],lt.prototype,"vegaDatePickerSingleInputRenderer",void 0),dt([t()],lt.prototype,"vegaDatePickerRangeInputRenderer",void 0),dt([s("componentDidLoad")],lt.prototype,"componentDidLoad",null),dt([s("watchFormat")],lt.prototype,"watchFormat",null);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 V{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"))}}pt([t()],ut.prototype,"dropdownConfig",void 0),pt([t()],ut.prototype,"vegaDatePickerRenderer",void 0),pt([t()],ut.prototype,"vegaDatePickerCalendarRenderer",void 0);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(){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()}}]))}}ft([t()],mt.prototype,"vegaDatePickerCalendarRenderer",void 0),ft([t()],mt.prototype,"vegaDatePickerSingleInputRenderer",void 0),ft([t()],mt.prototype,"vegaDatePickerRangeInputRenderer",void 0);const vt=[{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 gt=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 wt=class{constructor(t){a(this,t),this.vegaChange=h(this,"vegaChange",7),this.change=h(this,"change",7),this.globalSlimmers={},this.translationSlimmer=new Y,this.vegaDatePickerMobileController=new K,this.vegaDatePickerCalendarController=new it,this.vegaDatePickerZIndexController=new at,this.vegaDatePickerValueController=new ct,this.vegaDatePickerFormatController=new lt("single"),this.startInputFormatController=new lt("rangeStart"),this.endInputFormatController=new lt("rangeEnd"),this.vegaDatePickerElementAppenderController=new ut,this.vegaDatePickerKeyboardController=new mt,this.vegaDatePickerRenderer=new B,this.vegaDatePickerSingleInputRenderer=new J,this.vegaDatePickerRangeInputRenderer=new tt,this.vegaDatePickerCalendarRenderer=new st,this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:(t,e)=>t?new F({mode:e}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:t=>"range"===t?new N:null},{propertyName:"minDate",ruleFactory:(t,e)=>new W({minDate:t,maxDate:e}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(t,e)=>new W({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=A(wt,D),this.inputEventPrevent=new H([D],(()=>this.vegaDatePickerRenderer.getDatePickerContainer())),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(vt),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.disabled=!1}watchMode(){}watchValue(t,e){}watchFormat(t){}watchValidationRules(){}watchMinDate(t){}watchMaxDate(t){}watchAllowRepick(){}watchDisabled(){}async doClose(){}async doOpen(){}render(){return l(this.vegaDatePickerRenderer.render(),this.host)}get host(){return c(this)}static get watchers(){return{mode:["watchMode"],value:["watchValue"],format:["watchFormat"],validationRules:["watchValidationRules"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],allowRepick:["watchAllowRepick"],disabled:["watchDisabled"]}}};gt([g()],wt.prototype,"globalSlimmers",void 0),gt([d()],wt.prototype,"translationSlimmer",void 0),gt([d()],wt.prototype,"vegaDatePickerMobileController",void 0),gt([d()],wt.prototype,"vegaDatePickerCalendarController",void 0),gt([d()],wt.prototype,"vegaDatePickerZIndexController",void 0),gt([d()],wt.prototype,"vegaDatePickerValueController",void 0),gt([d()],wt.prototype,"vegaDatePickerFormatController",void 0),gt([d()],wt.prototype,"startInputFormatController",void 0),gt([d()],wt.prototype,"endInputFormatController",void 0),gt([d()],wt.prototype,"vegaDatePickerElementAppenderController",void 0),gt([d()],wt.prototype,"vegaDatePickerKeyboardController",void 0),gt([d()],wt.prototype,"vegaDatePickerRenderer",void 0),gt([d()],wt.prototype,"vegaDatePickerSingleInputRenderer",void 0),gt([d()],wt.prototype,"vegaDatePickerRangeInputRenderer",void 0),gt([d()],wt.prototype,"vegaDatePickerCalendarRenderer",void 0),gt([d()],wt.prototype,"formFieldController",void 0),gt([d()],wt.prototype,"changeEventEmitter",void 0),gt([d()],wt.prototype,"inputEventPrevent",void 0),gt([d()],wt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gt([P()],wt.prototype,"watchValue",null),wt.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 xt=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 bt=class{constructor(t){a(this,t),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return i(n,null)}get host(){return c(this)}};xt([g()],bt.prototype,"globalSlimmers",void 0),xt([d()],bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),bt.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}';export{wt as vega_date_picker,bt as vega_date_picker_calendar}
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 _=document.createElement("div");_.className=a.monthItemWeekdaysRow,this.options.showWeekNumbers&&(_.innerHTML="<div>W</div>");for(var D=1;D<=7;D+=1){var j=3+this.options.firstDay+D,R=document.createElement("div");R.innerHTML=this.weekdayName(j),R.title=this.weekdayName(j,"long"),_.appendChild(R)}var M=document.createElement("div");M.className=a.containerDays;var I=this.calcSkipDays(i);this.options.showWeekNumbers&&I&&M.appendChild(this.renderWeekNumber(i));for(var C=0;C<I;C+=1){var O=document.createElement("div");M.appendChild(O)}for(C=1;C<=n;C+=1)i.setDate(C),this.options.showWeekNumbers&&i.getDay()===this.options.firstDay&&M.appendChild(this.renderWeekNumber(i)),M.appendChild(this.renderDay(i));return r.appendChild(s),r.appendChild(_),r.appendChild(M),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")}}])})),rt=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 st extends p{constructor(){super(...arguments),this.alterLitePickerHeader=t=>{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=U["chevron-left"].icon})),t.querySelectorAll(".button-next-month").forEach((t=>{t.innerHTML=U["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)}}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}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)}))}initDatePicker(){this.datePicker=new nt.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()})).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()}))}}rt([l()],st.prototype,"clearButton",void 0),rt([l()],st.prototype,"dropdownConfig",void 0),rt([l()],st.prototype,"allowRepick",void 0),rt([l()],st.prototype,"format",void 0),rt([l()],st.prototype,"vegaDatePickerCalendarController",void 0),rt([l()],st.prototype,"vegaDatePickerMobileController",void 0),rt([l()],st.prototype,"vegaDatePickerElementAppenderController",void 0),rt([l()],st.prototype,"vegaDatePickerZIndexController",void 0),rt([l()],st.prototype,"vegaDatePickerValueController",void 0),rt([l()],st.prototype,"vegaDatePickerSingleInputRenderer",void 0),rt([l()],st.prototype,"vegaDatePickerRangeInputRenderer",void 0),rt([l()],st.prototype,"translationSlimmer",void 0),rt([u("connectedCallback")],st.prototype,"connectedCallback",null),rt([u("disconnectedCallback")],st.prototype,"disconnectedCallback",null),rt([u("componentWillLoad")],st.prototype,"componentWillLoad",null),rt([u("componentDidLoad")],st.prototype,"componentDidLoad",null),rt([u("componentDidRender")],st.prototype,"componentDidRender",null),rt([u("doOpen")],st.prototype,"doOpen",null),rt([u("doClose")],st.prototype,"doClose",null),rt([u("watchAllowRepick")],st.prototype,"watchAllowRepick",null),rt([u("watchDisabled")],st.prototype,"watchDisabled",null),rt([u("watchFormat")],st.prototype,"watchFormat",null),rt([u("watchMode")],st.prototype,"watchMode",null);var ot=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 at extends p{setZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");C.setZIndex(t,"base"),C.setZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}removeZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");C.removeZIndex(t,"base"),C.removeZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}}ot([l()],at.prototype,"host",void 0),ot([l()],at.prototype,"vegaDatePickerCalendarRenderer",void 0);var 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.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||M(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&&M(t,e)||(this.valueGuard(t)?this.vegaDatePickerCalendarController.shouldUpdateCalendar(t):this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),E.notify(O,{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}}ht([l({writable:!0})],dt.prototype,"value",void 0),ht([l()],dt.prototype,"mode",void 0),ht([l()],dt.prototype,"format",void 0),ht([l()],dt.prototype,"changeEventEmitter",void 0),ht([l()],dt.prototype,"host",void 0),ht([l()],dt.prototype,"vegaDatePickerCalendarController",void 0),ht([l()],dt.prototype,"vegaDatePickerCalendarRenderer",void 0),ht([u("componentWillLoad")],dt.prototype,"componentWillLoad",null),ht([u("watchValue")],dt.prototype,"watchValue",null),ht([u("watchMode")],dt.prototype,"watchMode",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 z{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 S({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()}}ct([l()],lt.prototype,"format",void 0),ct([l()],lt.prototype,"mode",void 0),ct([l()],lt.prototype,"vegaDatePickerCalendarRenderer",void 0),ct([l()],lt.prototype,"vegaDatePickerSingleInputRenderer",void 0),ct([l()],lt.prototype,"vegaDatePickerRangeInputRenderer",void 0),ct([u("componentDidLoad")],lt.prototype,"componentDidLoad",null),ct([u("watchFormat")],lt.prototype,"watchFormat",null);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 V{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"))}}pt([l()],ut.prototype,"dropdownConfig",void 0),pt([l()],ut.prototype,"vegaDatePickerRenderer",void 0),pt([l()],ut.prototype,"vegaDatePickerCalendarRenderer",void 0);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(){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()}}]))}}ft([l()],mt.prototype,"vegaDatePickerCalendarRenderer",void 0),ft([l()],mt.prototype,"vegaDatePickerSingleInputRenderer",void 0),ft([l()],mt.prototype,"vegaDatePickerRangeInputRenderer",void 0);const vt=[{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 gt=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 wt=class{constructor(t){n(this,t),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.globalSlimmers={},this.translationSlimmer=new Y,this.vegaDatePickerMobileController=new K,this.vegaDatePickerCalendarController=new it,this.vegaDatePickerZIndexController=new at,this.vegaDatePickerValueController=new dt,this.vegaDatePickerFormatController=new lt("single"),this.startInputFormatController=new lt("rangeStart"),this.endInputFormatController=new lt("rangeEnd"),this.vegaDatePickerElementAppenderController=new ut,this.vegaDatePickerKeyboardController=new mt,this.vegaDatePickerRenderer=new B,this.vegaDatePickerSingleInputRenderer=new J,this.vegaDatePickerRangeInputRenderer=new tt,this.vegaDatePickerCalendarRenderer=new st,this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:(t,e)=>t?new F({mode:e}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:t=>"range"===t?new N:null},{propertyName:"minDate",ruleFactory:(t,e)=>new W({minDate:t,maxDate:e}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(t,e)=>new W({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=A(wt,D),this.inputEventPrevent=new H([D],(()=>this.vegaDatePickerRenderer.getDatePickerContainer())),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(vt),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.disabled=!1}watchMode(){}watchValue(t,e){}watchFormat(t){}watchValidationRules(){}watchMinDate(t){}watchMaxDate(t){}watchAllowRepick(){}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"],disabled:["watchDisabled"]}}};gt([g()],wt.prototype,"globalSlimmers",void 0),gt([m()],wt.prototype,"translationSlimmer",void 0),gt([m()],wt.prototype,"vegaDatePickerMobileController",void 0),gt([m()],wt.prototype,"vegaDatePickerCalendarController",void 0),gt([m()],wt.prototype,"vegaDatePickerZIndexController",void 0),gt([m()],wt.prototype,"vegaDatePickerValueController",void 0),gt([m()],wt.prototype,"vegaDatePickerFormatController",void 0),gt([m()],wt.prototype,"startInputFormatController",void 0),gt([m()],wt.prototype,"endInputFormatController",void 0),gt([m()],wt.prototype,"vegaDatePickerElementAppenderController",void 0),gt([m()],wt.prototype,"vegaDatePickerKeyboardController",void 0),gt([m()],wt.prototype,"vegaDatePickerRenderer",void 0),gt([m()],wt.prototype,"vegaDatePickerSingleInputRenderer",void 0),gt([m()],wt.prototype,"vegaDatePickerRangeInputRenderer",void 0),gt([m()],wt.prototype,"vegaDatePickerCalendarRenderer",void 0),gt([m()],wt.prototype,"formFieldController",void 0),gt([m()],wt.prototype,"changeEventEmitter",void 0),gt([m()],wt.prototype,"inputEventPrevent",void 0),gt([m()],wt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gt([P()],wt.prototype,"watchValue",null),wt.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 xt=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 bt=class{constructor(t){n(this,t),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return t(e,null)}get host(){return s(this)}};xt([g()],bt.prototype,"globalSlimmers",void 0),xt([m()],bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),bt.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}';export{wt as vega_date_picker,bt as vega_date_picker_calendar}
@@ -0,0 +1 @@
1
+ import"./p-6e1ab235.js";import{I as e,c as a}from"./p-33b62194.js";const c=[{payloadKey:"IS_REGISTER_METHOD_CALLED",payloadDescription:"Indicate if the method register of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"register"===a,payloadValue:()=>!0},{payloadKey:"IS_GETICON_METHOD_CALLED",payloadDescription:"Indicate if the method getIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"getIcon"===a,payloadValue:()=>!0},{payloadKey:"IS_HASICON_METHOD_CALLED",payloadDescription:"Indicate if the method hasIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"hasIcon"===a,payloadValue:()=>!0}];class t{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=a(t,["register","getIcon","hasIcon"],c),this.icons=new Map}register(e){for(const a in e)this.icons.has(a)||this.icons.set(a,e[a])}getIcon(e){return this.icons.get(e)}hasIcon(e){return this.icons.has(e)}}!function(e,a,c,t){var o,n=arguments.length,i=n<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,c):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,a,c,t);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(i=(n<3?o(i):n>3?o(a,c,i):o(a,c))||i);n>3&&i&&Object.defineProperty(a,c,i)}([e()],t.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const o=new t;export{o as V}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as s,g as e}from"./p-1c298d5a.js";import{c as o,M as h,I as l}from"./p-6e1ab235.js";import{V as a,I as r}from"./p-4387d550.js";import{e as n,j as c}from"./p-79ec5d69.js";import{P as p}from"./p-5f589974.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";var d=function(t,i,s,e){var o,h=arguments.length,l=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(h<3?o(l):h>3?o(i,s,l):o(i,s))||l);return h>3&&l&&Object.defineProperty(i,s,l),l};class f extends p{constructor(){super({callback:()=>{"ellipsis"===this.overflow&&(this.tooltipRef&&(this.tooltipRef.innerText=this.content),this.handleTooltip())},isDeferred:!0}),this.handleTooltip=async()=>{n(this.host)?this.createTooltip().componentOnReady().then((()=>{this.updateTooltipDisplayText()})):(this.tooltipRef&&this.tooltipRef.classList.contains("hydrated")&&(this.host.innerText=this.content,this.tooltipRef.remove(),this.tooltipRef=null),this.host.style.minWidth="auto")},this.createTooltip=()=>{var t;return this.tooltipRef=this.host.querySelector("vega-tooltip"),this.tooltipRef||(this.tooltipRef=document.createElement("vega-tooltip"),this.tooltipRef.text=this.content,this.tooltipRef.innerText=this.content,this.tooltipRef.placement=null===(t=this.tooltip)||void 0===t?void 0:t.placement,this.host.replaceChildren(this.tooltipRef)),this.tooltipRef},this.updateTooltipDisplayText=async()=>{let t=parseFloat(c(this.host,"font-size"));t=isNaN(t)?f.DEFAULT_FONT_SIZE:t;const i=Math.floor(this.host.getBoundingClientRect().width/Math.floor(t/2));if(n(this.tooltipRef))for(let t=i;t>=1&&(this.tooltipRef.textContent=this.truncateStringWithEllipsis(t),n(this.tooltipRef));t--)if(t<=1){this.insertMinWidthStyle();break}},this.truncateStringWithEllipsis=t=>this.content.substring(0,t)+"...",this.initTextContent=()=>{this.content=this.host.textContent}}componentDidLoad(){this.initTextContent()}watchTooltip(){var t;this.tooltipRef&&(this.tooltipRef.placement=null===(t=this.tooltip)||void 0===t?void 0:t.placement)}insertMinWidthStyle(){let t=this.host.shadowRoot.querySelector("#min-width-placeholder");t||(t=document.createElement("span"),t.id="min-width-placeholder",t.style.cssText="position:absolute; visibility:hidden; word-break:keep-all;",this.host.shadowRoot.appendChild(t)),t.textContent=this.truncateStringWithEllipsis(1),this.host.style.minWidth=t.getBoundingClientRect().width+"px"}}f.DEFAULT_FONT_SIZE=16,d([o()],f.prototype,"host",void 0),d([o()],f.prototype,"tooltip",void 0),d([o()],f.prototype,"overflow",void 0),d([h("componentDidLoad")],f.prototype,"componentDidLoad",null),d([h("watchTooltip")],f.prototype,"watchTooltip",null);var v=function(t,i,s,e){var o,h=arguments.length,l=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(h<3?o(l):h>3?o(i,s,l):o(i,s))||l);return h>3&&l&&Object.defineProperty(i,s,l),l};const m=class{constructor(i){t(this,i),this.globalSlimmers={},this.tooltipRenderer=new f,this.vegaComponentUsageRuntimeMetricsSlimmer=new a,this.overflow="newline"}watchTooltip(){}componentDidLoad(){}render(){return i(s,{class:{"vega-container-text-ellipsis":"ellipsis"===this.overflow,"vega-container-text-newline":"newline"===this.overflow}},i("slot",null))}get host(){return e(this)}static get watchers(){return{tooltip:["watchTooltip"]}}};v([r()],m.prototype,"globalSlimmers",void 0),v([l()],m.prototype,"tooltipRenderer",void 0),v([l()],m.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),m.style=":host{display:block}:host(.vega-container-text-newline){overflow-wrap:break-word}:host(.vega-container-text-ellipsis){word-break:break-all}";export{m as vega_text}