@maggioli-design-system/magma 1.11.8 → 1.12.1

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 (324) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/magma-components.cjs.js +1 -1
  3. package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
  5. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  6. package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
  7. package/dist/cjs/mds-author.cjs.entry.js +2 -2
  8. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
  9. package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
  10. package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/mds-badge.cjs.entry.js +1 -1
  12. package/dist/cjs/mds-banner_3.cjs.entry.js +6 -6
  13. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
  14. package/dist/cjs/mds-bibliography.cjs.entry.js +7 -7
  15. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
  16. package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
  17. package/dist/cjs/mds-button-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
  19. package/dist/cjs/mds-button_3.cjs.entry.js +4 -3
  20. package/dist/cjs/mds-calendar_2.cjs.entry.js +246 -128
  21. package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
  22. package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
  23. package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
  24. package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
  25. package/dist/cjs/mds-card.cjs.entry.js +1 -1
  26. package/dist/cjs/mds-details.cjs.entry.js +1 -1
  27. package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
  28. package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
  29. package/dist/cjs/mds-entity.cjs.entry.js +4 -4
  30. package/dist/cjs/mds-file-preview.cjs.entry.js +2 -2
  31. package/dist/cjs/mds-file.cjs.entry.js +3 -3
  32. package/dist/cjs/mds-filter-item.cjs.entry.js +1 -1
  33. package/dist/cjs/mds-filter.cjs.entry.js +1 -1
  34. package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
  35. package/dist/cjs/mds-header.cjs.entry.js +2 -2
  36. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
  37. package/dist/cjs/mds-hr.cjs.entry.js +1 -1
  38. package/dist/cjs/mds-input-date-range.cjs.entry.js +197 -55
  39. package/dist/cjs/mds-input-date.cjs.entry.js +16 -10
  40. package/dist/cjs/mds-input.cjs.entry.js +9 -9
  41. package/dist/cjs/mds-paginator.cjs.entry.js +24 -8
  42. package/dist/cjs/mds-text.cjs.entry.js +7 -4
  43. package/dist/collection/components/mds-accordion/mds-accordion.js +1 -1
  44. package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +1 -1
  45. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +1 -1
  46. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
  47. package/dist/collection/components/mds-author/mds-author.js +2 -2
  48. package/dist/collection/components/mds-avatar/mds-avatar.js +1 -1
  49. package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +1 -1
  50. package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +1 -1
  51. package/dist/collection/components/mds-badge/mds-badge.js +1 -1
  52. package/dist/collection/components/mds-banner/mds-banner.js +2 -2
  53. package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +1 -1
  54. package/dist/collection/components/mds-bibliography/mds-bibliography.js +7 -7
  55. package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -2
  56. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
  57. package/dist/collection/components/mds-button/mds-button.js +3 -2
  58. package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
  59. package/dist/collection/components/mds-button-group/mds-button-group.js +1 -1
  60. package/dist/collection/components/mds-calendar/mds-calendar.css +50 -7
  61. package/dist/collection/components/mds-calendar/mds-calendar.js +413 -128
  62. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
  63. package/dist/collection/components/mds-card/mds-card.js +1 -1
  64. package/dist/collection/components/mds-card-content/mds-card-content.js +1 -1
  65. package/dist/collection/components/mds-card-footer/mds-card-footer.js +1 -1
  66. package/dist/collection/components/mds-card-header/mds-card-header.js +1 -1
  67. package/dist/collection/components/mds-card-media/mds-card-media.js +1 -1
  68. package/dist/collection/components/mds-chip/mds-chip.js +3 -3
  69. package/dist/collection/components/mds-details/mds-details.js +1 -1
  70. package/dist/collection/components/mds-dropdown/mds-dropdown.js +2 -2
  71. package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
  72. package/dist/collection/components/mds-entity/mds-entity.js +4 -4
  73. package/dist/collection/components/mds-file/mds-file.js +3 -3
  74. package/dist/collection/components/mds-file-preview/mds-file-preview.js +2 -2
  75. package/dist/collection/components/mds-filter/mds-filter.js +1 -1
  76. package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
  77. package/dist/collection/components/mds-header/mds-header.js +2 -2
  78. package/dist/collection/components/mds-header-bar/mds-header-bar.js +3 -3
  79. package/dist/collection/components/mds-help/mds-help.js +1 -1
  80. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +1 -1
  81. package/dist/collection/components/mds-hr/mds-hr.js +1 -1
  82. package/dist/collection/components/mds-icon/mds-icon.js +1 -1
  83. package/dist/collection/components/mds-input/mds-input.js +9 -9
  84. package/dist/collection/components/mds-input-date/mds-input-date.js +19 -11
  85. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +33 -1
  86. package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +221 -71
  87. package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +10 -0
  88. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
  89. package/dist/collection/components/mds-paginator/mds-paginator.js +24 -8
  90. package/dist/collection/components/mds-text/mds-text.js +7 -4
  91. package/dist/components/mds-accordion-item.js +1 -1
  92. package/dist/components/mds-accordion-timer-item.js +1 -1
  93. package/dist/components/mds-accordion-timer.js +1 -1
  94. package/dist/components/mds-accordion.js +1 -1
  95. package/dist/components/mds-author.js +2 -2
  96. package/dist/components/mds-avatar-stack-item2.js +1 -1
  97. package/dist/components/mds-avatar-stack.js +1 -1
  98. package/dist/components/mds-avatar2.js +1 -1
  99. package/dist/components/mds-badge2.js +1 -1
  100. package/dist/components/mds-banner2.js +2 -2
  101. package/dist/components/mds-benchmark-bar.js +1 -1
  102. package/dist/components/mds-bibliography.js +7 -7
  103. package/dist/components/mds-breadcrumb-item.js +1 -1
  104. package/dist/components/mds-breadcrumb.js +2 -2
  105. package/dist/components/mds-button-dropdown.js +1 -1
  106. package/dist/components/mds-button-group.js +1 -1
  107. package/dist/components/mds-button2.js +3 -2
  108. package/dist/components/mds-calendar-cell2.js +1 -1
  109. package/dist/components/mds-calendar2.js +256 -128
  110. package/dist/components/mds-card-content.js +1 -1
  111. package/dist/components/mds-card-footer.js +1 -1
  112. package/dist/components/mds-card-header.js +1 -1
  113. package/dist/components/mds-card-media.js +1 -1
  114. package/dist/components/mds-card.js +1 -1
  115. package/dist/components/mds-chip2.js +3 -3
  116. package/dist/components/mds-details.js +1 -1
  117. package/dist/components/mds-dropdown2.js +2 -2
  118. package/dist/components/mds-emoji.js +1 -1
  119. package/dist/components/mds-entity.js +4 -4
  120. package/dist/components/mds-file-preview2.js +2 -2
  121. package/dist/components/mds-file.js +3 -3
  122. package/dist/components/mds-filter-item2.js +1 -1
  123. package/dist/components/mds-filter.js +1 -1
  124. package/dist/components/mds-header-bar.js +3 -3
  125. package/dist/components/mds-header.js +2 -2
  126. package/dist/components/mds-help2.js +1 -1
  127. package/dist/components/mds-horizontal-scroll.js +1 -1
  128. package/dist/components/mds-hr.js +1 -1
  129. package/dist/components/mds-icon2.js +1 -1
  130. package/dist/components/mds-input-date-range.js +199 -55
  131. package/dist/components/mds-input-date.js +17 -10
  132. package/dist/components/mds-input2.js +9 -9
  133. package/dist/components/mds-paginator.js +24 -8
  134. package/dist/components/mds-text2.js +7 -4
  135. package/dist/documentation.json +239 -33
  136. package/dist/esm/loader.js +1 -1
  137. package/dist/esm/magma-components.js +1 -1
  138. package/dist/esm/mds-accordion-item.entry.js +1 -1
  139. package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
  140. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  141. package/dist/esm/mds-accordion.entry.js +1 -1
  142. package/dist/esm/mds-author.entry.js +2 -2
  143. package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
  144. package/dist/esm/mds-avatar-stack.entry.js +1 -1
  145. package/dist/esm/mds-avatar.entry.js +1 -1
  146. package/dist/esm/mds-badge.entry.js +1 -1
  147. package/dist/esm/mds-banner_3.entry.js +6 -6
  148. package/dist/esm/mds-benchmark-bar.entry.js +1 -1
  149. package/dist/esm/mds-bibliography.entry.js +7 -7
  150. package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
  151. package/dist/esm/mds-breadcrumb.entry.js +2 -2
  152. package/dist/esm/mds-button-dropdown.entry.js +1 -1
  153. package/dist/esm/mds-button-group.entry.js +1 -1
  154. package/dist/esm/mds-button_3.entry.js +4 -3
  155. package/dist/esm/mds-calendar_2.entry.js +246 -128
  156. package/dist/esm/mds-card-content.entry.js +1 -1
  157. package/dist/esm/mds-card-footer.entry.js +1 -1
  158. package/dist/esm/mds-card-header.entry.js +1 -1
  159. package/dist/esm/mds-card-media.entry.js +1 -1
  160. package/dist/esm/mds-card.entry.js +1 -1
  161. package/dist/esm/mds-details.entry.js +1 -1
  162. package/dist/esm/mds-dropdown.entry.js +2 -2
  163. package/dist/esm/mds-emoji.entry.js +1 -1
  164. package/dist/esm/mds-entity.entry.js +4 -4
  165. package/dist/esm/mds-file-preview.entry.js +2 -2
  166. package/dist/esm/mds-file.entry.js +3 -3
  167. package/dist/esm/mds-filter-item.entry.js +1 -1
  168. package/dist/esm/mds-filter.entry.js +1 -1
  169. package/dist/esm/mds-header-bar.entry.js +3 -3
  170. package/dist/esm/mds-header.entry.js +2 -2
  171. package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
  172. package/dist/esm/mds-hr.entry.js +1 -1
  173. package/dist/esm/mds-input-date-range.entry.js +197 -55
  174. package/dist/esm/mds-input-date.entry.js +16 -10
  175. package/dist/esm/mds-input.entry.js +9 -9
  176. package/dist/esm/mds-paginator.entry.js +24 -8
  177. package/dist/esm/mds-text.entry.js +7 -4
  178. package/dist/esm/polyfills/core-js.js +0 -0
  179. package/dist/esm/polyfills/dom.js +0 -0
  180. package/dist/esm/polyfills/es5-html-element.js +0 -0
  181. package/dist/esm/polyfills/index.js +0 -0
  182. package/dist/esm/polyfills/system.js +0 -0
  183. package/dist/esm-es5/loader.js +1 -1
  184. package/dist/esm-es5/magma-components.js +1 -1
  185. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  186. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  187. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  188. package/dist/esm-es5/mds-accordion.entry.js +1 -1
  189. package/dist/esm-es5/mds-author.entry.js +1 -1
  190. package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
  191. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  192. package/dist/esm-es5/mds-avatar.entry.js +1 -1
  193. package/dist/esm-es5/mds-badge.entry.js +1 -1
  194. package/dist/esm-es5/mds-banner_3.entry.js +1 -1
  195. package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
  196. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  197. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  198. package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
  199. package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
  200. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  201. package/dist/esm-es5/mds-button_3.entry.js +1 -1
  202. package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
  203. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  204. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  205. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  206. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  207. package/dist/esm-es5/mds-card.entry.js +1 -1
  208. package/dist/esm-es5/mds-details.entry.js +1 -1
  209. package/dist/esm-es5/mds-dropdown.entry.js +1 -1
  210. package/dist/esm-es5/mds-emoji.entry.js +2 -2
  211. package/dist/esm-es5/mds-entity.entry.js +1 -1
  212. package/dist/esm-es5/mds-file-preview.entry.js +1 -1
  213. package/dist/esm-es5/mds-file.entry.js +1 -1
  214. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  215. package/dist/esm-es5/mds-filter.entry.js +1 -1
  216. package/dist/esm-es5/mds-header-bar.entry.js +1 -1
  217. package/dist/esm-es5/mds-header.entry.js +1 -1
  218. package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
  219. package/dist/esm-es5/mds-hr.entry.js +1 -1
  220. package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
  221. package/dist/esm-es5/mds-input-date.entry.js +1 -1
  222. package/dist/esm-es5/mds-input.entry.js +1 -1
  223. package/dist/esm-es5/mds-paginator.entry.js +1 -1
  224. package/dist/esm-es5/mds-text.entry.js +1 -1
  225. package/dist/hydrate/index.js +572 -275
  226. package/dist/hydrate/index.mjs +572 -275
  227. package/dist/magma-components/magma-components.esm.js +1 -1
  228. package/dist/magma-components/{p-e3b0adb8.entry.js → p-02c9dffb.entry.js} +1 -1
  229. package/dist/magma-components/{p-e8626e7a.system.entry.js → p-03b5bdae.system.entry.js} +1 -1
  230. package/dist/magma-components/{p-fec5168f.entry.js → p-09b27f6e.entry.js} +1 -1
  231. package/dist/magma-components/p-09cbad84.system.entry.js +1 -0
  232. package/dist/magma-components/{p-0c3b813d.entry.js → p-0a9db9fc.entry.js} +1 -1
  233. package/dist/magma-components/{p-beeaec1c.entry.js → p-10957e40.entry.js} +1 -1
  234. package/dist/magma-components/{p-42f5037a.entry.js → p-14cad758.entry.js} +1 -1
  235. package/dist/magma-components/{p-35d85970.entry.js → p-188c906e.entry.js} +1 -1
  236. package/dist/magma-components/{p-91e16169.system.entry.js → p-191e79c8.system.entry.js} +1 -1
  237. package/dist/magma-components/{p-1a8d42d1.system.entry.js → p-1c37f4ce.system.entry.js} +1 -1
  238. package/dist/magma-components/{p-30648e76.system.entry.js → p-1cd6c3fe.system.entry.js} +1 -1
  239. package/dist/magma-components/{p-c3ae9ba7.system.entry.js → p-1f52a479.system.entry.js} +1 -1
  240. package/dist/magma-components/p-20e0f9e3.entry.js +1 -0
  241. package/dist/magma-components/p-26cd6ec8.system.js +1 -1
  242. package/dist/magma-components/{p-237d60e2.system.entry.js → p-2910fa0c.system.entry.js} +1 -1
  243. package/dist/magma-components/{p-d95c9d2e.system.entry.js → p-2d947462.system.entry.js} +1 -1
  244. package/dist/magma-components/{p-0b25be9f.entry.js → p-342a07c7.entry.js} +1 -1
  245. package/dist/magma-components/{p-b228a186.system.entry.js → p-39d9f24d.system.entry.js} +1 -1
  246. package/dist/magma-components/{p-27cb23f6.entry.js → p-3a57f53d.entry.js} +1 -1
  247. package/dist/magma-components/{p-0689710c.system.entry.js → p-3b267a52.system.entry.js} +1 -1
  248. package/dist/magma-components/p-3e72a9f4.entry.js +1 -0
  249. package/dist/magma-components/{p-2de8157b.system.entry.js → p-432be440.system.entry.js} +1 -1
  250. package/dist/magma-components/{p-5eca660e.system.entry.js → p-43a2f192.system.entry.js} +1 -1
  251. package/dist/magma-components/{p-eaf4805a.entry.js → p-48a2e8e4.entry.js} +1 -1
  252. package/dist/magma-components/{p-ff674ef9.entry.js → p-4ab9c985.entry.js} +1 -1
  253. package/dist/magma-components/{p-40eeffe8.entry.js → p-4b76248b.entry.js} +1 -1
  254. package/dist/magma-components/{p-11df77b3.entry.js → p-4cf97724.entry.js} +1 -1
  255. package/dist/magma-components/{p-1e686661.system.entry.js → p-4ece2e21.system.entry.js} +1 -1
  256. package/dist/magma-components/{p-0e2b6dd3.system.entry.js → p-5359bf5e.system.entry.js} +1 -1
  257. package/dist/magma-components/{p-536b4c16.entry.js → p-5619ed51.entry.js} +1 -1
  258. package/dist/magma-components/{p-d738a403.system.entry.js → p-5edd2f30.system.entry.js} +1 -1
  259. package/dist/magma-components/{p-033e85f1.entry.js → p-606cd4bb.entry.js} +1 -1
  260. package/dist/magma-components/{p-e9ade624.system.entry.js → p-61c35e05.system.entry.js} +1 -1
  261. package/dist/magma-components/{p-6e680417.system.entry.js → p-68a7d370.system.entry.js} +1 -1
  262. package/dist/magma-components/{p-50b07c72.system.entry.js → p-68dde65c.system.entry.js} +1 -1
  263. package/dist/magma-components/{p-409c9518.system.entry.js → p-7244ca7a.system.entry.js} +1 -1
  264. package/dist/magma-components/{p-a9d6984e.entry.js → p-726cd93c.entry.js} +1 -1
  265. package/dist/magma-components/{p-c2798c9a.system.entry.js → p-7359e097.system.entry.js} +1 -1
  266. package/dist/magma-components/{p-723fbfb0.entry.js → p-78088de2.entry.js} +1 -1
  267. package/dist/magma-components/{p-83b2ee17.entry.js → p-7ae676db.entry.js} +1 -1
  268. package/dist/magma-components/{p-6d3ea2b6.entry.js → p-7b788f04.entry.js} +1 -1
  269. package/dist/magma-components/{p-b727c3a6.system.entry.js → p-80518658.system.entry.js} +1 -1
  270. package/dist/magma-components/{p-f6ef6105.entry.js → p-8314f381.entry.js} +1 -1
  271. package/dist/magma-components/{p-86f45462.entry.js → p-8469b603.entry.js} +1 -1
  272. package/dist/magma-components/{p-09aaa62b.system.entry.js → p-855f1617.system.entry.js} +1 -1
  273. package/dist/magma-components/{p-cae0e727.entry.js → p-89757b16.entry.js} +1 -1
  274. package/dist/magma-components/{p-60342fa8.system.entry.js → p-8bc52935.system.entry.js} +1 -1
  275. package/dist/magma-components/{p-6b4bf0df.entry.js → p-8f091ceb.entry.js} +1 -1
  276. package/dist/magma-components/{p-8859d528.entry.js → p-94fb14aa.entry.js} +1 -1
  277. package/dist/magma-components/{p-755dff75.system.entry.js → p-9b7e1f4b.system.entry.js} +1 -1
  278. package/dist/magma-components/{p-dfdc83ab.entry.js → p-9d5ab31c.entry.js} +1 -1
  279. package/dist/magma-components/{p-ddd59ddb.system.entry.js → p-9d86dd4c.system.entry.js} +1 -1
  280. package/dist/magma-components/{p-9e08e8f1.system.entry.js → p-a776c78c.system.entry.js} +1 -1
  281. package/dist/magma-components/{p-854848ca.entry.js → p-aacb6b47.entry.js} +1 -1
  282. package/dist/magma-components/{p-bdc49c99.entry.js → p-b4bad440.entry.js} +1 -1
  283. package/dist/magma-components/{p-3095eab8.system.entry.js → p-b7aae63a.system.entry.js} +1 -1
  284. package/dist/magma-components/{p-03cadeb4.system.entry.js → p-b7b0f420.system.entry.js} +1 -1
  285. package/dist/magma-components/{p-788e95ce.entry.js → p-ba8142cf.entry.js} +1 -1
  286. package/dist/magma-components/{p-84cf6604.system.entry.js → p-be5a7e23.system.entry.js} +1 -1
  287. package/dist/magma-components/{p-61e3603c.system.entry.js → p-c3304189.system.entry.js} +1 -1
  288. package/dist/magma-components/{p-a201cbab.entry.js → p-c372fe03.entry.js} +1 -1
  289. package/dist/magma-components/{p-b4baf323.entry.js → p-c5730248.entry.js} +1 -1
  290. package/dist/magma-components/{p-3e50c4ab.entry.js → p-c5d2cd00.entry.js} +1 -1
  291. package/dist/magma-components/p-c6785782.entry.js +1 -0
  292. package/dist/magma-components/p-ca4ee5b5.system.entry.js +1 -0
  293. package/dist/magma-components/{p-7262712f.system.entry.js → p-cae04975.system.entry.js} +1 -1
  294. package/dist/magma-components/p-d7cf7569.entry.js +1 -0
  295. package/dist/magma-components/{p-6d1ce884.system.entry.js → p-d98a34dc.system.entry.js} +1 -1
  296. package/dist/magma-components/{p-2b3517af.system.entry.js → p-d99f38a7.system.entry.js} +1 -1
  297. package/dist/magma-components/{p-3c2df04e.system.entry.js → p-dd7b9422.system.entry.js} +1 -1
  298. package/dist/magma-components/{p-58b77d4f.entry.js → p-e0bd7509.entry.js} +1 -1
  299. package/dist/magma-components/p-e137eebd.entry.js +1 -0
  300. package/dist/magma-components/{p-a786264e.system.entry.js → p-e32a0ec8.system.entry.js} +1 -1
  301. package/dist/magma-components/{p-12527b99.system.entry.js → p-ef488f9f.system.entry.js} +1 -1
  302. package/dist/magma-components/{p-70223843.system.entry.js → p-f250731c.system.entry.js} +1 -1
  303. package/dist/magma-components/{p-8de607ef.entry.js → p-f2e7d2f0.entry.js} +1 -1
  304. package/dist/magma-components/{p-a9c9e071.system.entry.js → p-f349e728.system.entry.js} +1 -1
  305. package/dist/magma-components/p-f3f64ecf.entry.js +1 -0
  306. package/dist/magma-components/{p-1c2b1a44.system.entry.js → p-f584c1d7.system.entry.js} +1 -1
  307. package/dist/magma-components/{p-f5f97018.entry.js → p-fd25f69a.entry.js} +1 -1
  308. package/dist/magma-components/{p-977d3bf0.entry.js → p-fe3879f3.entry.js} +1 -1
  309. package/dist/stats.json +1159 -746
  310. package/dist/types/components/mds-calendar/mds-calendar.d.ts +43 -1
  311. package/dist/types/components/mds-input-date/mds-input-date.d.ts +1 -0
  312. package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +23 -4
  313. package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +12 -0
  314. package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -1
  315. package/dist/types/components.d.ts +94 -6
  316. package/package.json +6 -2
  317. package/dist/magma-components/p-224f80f4.entry.js +0 -1
  318. package/dist/magma-components/p-3da97c74.system.entry.js +0 -1
  319. package/dist/magma-components/p-643fd688.entry.js +0 -1
  320. package/dist/magma-components/p-80b11d2e.entry.js +0 -1
  321. package/dist/magma-components/p-9c97817b.entry.js +0 -1
  322. package/dist/magma-components/p-e1f3cc6d.entry.js +0 -1
  323. package/dist/magma-components/p-ead9e4c4.system.entry.js +0 -1
  324. package/dist/magma-components/p-fe0446d4.entry.js +0 -1
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,a){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function d(t){try{s(a.next(t))}catch(t){i(t)}}function o(t){try{s(a["throw"](t))}catch(t){i(t)}}function s(t){t.done?r(t.value):n(t.value).then(d,o)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,d;return d={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(t){return function(e){return s([t,e])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(r=0)),r)try{if(a=1,n&&(i=o[0]&2?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;if(n=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;n=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=e.call(t,r)}catch(t){o=[6,t];n=0}finally{a=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-2aef517c.system.js","./p-1a1dc53d.system.js","./p-c95d3b63.system.js","./p-d68089ba.system.js","./p-0b49b32e.system.js","./p-21b1acec.system.js"],(function(t){"use strict";var e,r,a,n,i,d,o,s,h;return{setters:[function(t){e=t.r;r=t.c;a=t.h;n=t.H;i=t.g},function(t){d=t.m},function(t){o=t.D},function(t){s=t.c},function(t){h=t.L},function(){}],execute:function(){var c="Από";var l="έως";var u={from:c,to:l};var m="From";var p="to";var f={from:m,to:p};var y="De";var b="a";var g={from:y,to:b};var v="Dal";var w="al";var x={from:v,to:w};var k=':host{--mds-input-date-range-background:rgb(var(--tone-neutral));--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 0.5rem;--mds-input-date-range-icon-color:var(--mds-input-date-range-variant-color);--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color) / 0.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color) / 0.06);--mds-input-date-range-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;cursor:text;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.date-preselection{display:grid;gap:0.5rem}.inputs{font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;border-radius:0.5rem;padding-left:1rem;padding-right:3rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-date-range-background);border:0;-webkit-box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap);min-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:100%}.input-element{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex}:host(:focus-within) .inputs{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color) / 1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color) / 0.06)}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host() ::slotted(mds-input-date){color:inherit}.date-label{margin-left:0.125rem;margin-right:0.125rem;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-range-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}.inputs{padding-right:1rem;-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content);justify-content:var(--mds-input-date-range-fields-firefox-justify-content)}}:host{--mds-input-date-range-icon-color:var(--variant-primary-03);--mds-input-date-range-variant-color:0 0 0}:host(:focus-within){--mds-input-date-range-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-range-icon-color:var(--status-info-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-range-icon-color:var(--status-info-04);--mds-input-date-range-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-range-icon-color:var(--status-success-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-range-icon-color:var(--status-success-04);--mds-input-date-range-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-range-icon-color:var(--status-warning-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-range-icon-color:var(--status-warning-04);--mds-input-date-range-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-range-icon-color:var(--status-error-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-range-icon-color:var(--status-error-04);--mds-input-date-range-variant-color:var(--status-error-05)}';var D=k;var z=t("mds_input_date_range",function(){function t(t){var a=this;e(this,t);this.dateRangeSelected=r(this,"mdsInputDateRangeSelect",7);this.valueChanged=r(this,"mdsInputDateRangeValueChange",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.calendarKey=0;this.internalStartDate="";this.internalEndDate="";this.hasPreselection=false;this.t=new h({el:u,en:f,es:g,it:x});this.startDate="";this.endDate="";this.min=null;this.max=null;this.delay=500;this.lastEmittedStartDate=null;this.lastEmittedEndDate=null;this.initialStartDate="";this.initialEndDate="";this.handleFocusOut=function(t){if(!a.host.contains(t.relatedTarget)){var e=o.fromISO(a.internalStartDate).isValid;var r=o.fromISO(a.internalEndDate).isValid;if(e&&r){a.validateDateRange();a.syncFormValue();a.dateRangeSelected.emit({startDate:a.internalStartDate,endDate:a.internalEndDate});a.checkPreselections()}if(a.internalStartDate!==a.lastEmittedStartDate||a.internalEndDate!==a.lastEmittedEndDate){a.valueChanged.emit({startDate:a.internalStartDate,endDate:a.internalEndDate});a.lastEmittedStartDate=a.internalStartDate;a.lastEmittedEndDate=a.internalEndDate}}};this.focusInput=function(t){t.focusInput()};this.focusDateInput=function(t){if(t.target!==a.host){return}a.focusStartDateInput(t)};this.focusStartDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="start"]'))};this.focusEndDateInput=function(t){t.preventDefault();t.stopPropagation();a.focusInput(a.host.querySelector('mds-input-date[slot="end"]'))}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);return[2]}))}))};t.prototype.handleStartDateChange=function(t){this.syncExternalDate("start",t)};t.prototype.handleEndDateChange=function(t){this.syncExternalDate("end",t)};t.prototype.componentWillLoad=function(){this.language=this.t.lang(this.host);this.internalStartDate=this.startDate;this.internalEndDate=this.endDate;this.initialStartDate=this.startDate;this.initialEndDate=this.endDate;if(this.min&&this.max){var t=o.fromISO(this.min);var e=o.fromISO(this.max);if(e<t){this.max=this.min}}this.syncFormValue()};t.prototype.disconnectedCallback=function(){this.host.removeEventListener("focusout",this.handleFocusOut)};t.prototype.preselect=function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,a,n,i,d;return __generator(this,(function(s){switch(s.label){case 0:if(!this.togglePreselection){this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))}this.togglePreselection.forEach((function(t){t.selected=false}));t.caller.selected=true;a=o.fromISO(t.start);if(a.isValid){this.internalStartDate=t.start;this.updateInputValue("start",this.internalStartDate)}if(t.end!==undefined){n=o.fromISO(t.end);if(n.isValid){this.internalEndDate=t.end}}else{this.internalEndDate=t.start}this.updateInputValue("end",this.internalEndDate);this.syncFormValue();i=(r=(e=this.host)===null||e===void 0?void 0:e.shadowRoot)===null||r===void 0?void 0:r.querySelector("mds-calendar");if(!i)return[3,2];return[4,i.updateCurrentDate(this.internalStartDate)];case 1:s.sent();if(this.delay===0)return[2];d=this.dropdownRef;if(d){setTimeout((function(){d.visible=false}),this.delay)}s.label=2;case 2:this.dateRangeSelected.emit({startDate:this.internalStartDate,endDate:this.internalEndDate});return[2,Promise.resolve()]}}))}))};t.prototype.componentDidLoad=function(){this.updateInputListeners();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.syncFormValue();this.host.addEventListener("focusout",this.handleFocusOut)};t.prototype.formResetCallback=function(){this.internalStartDate=this.initialStartDate;this.internalEndDate=this.initialEndDate;this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.syncExternalDate=function(t,e){var r=e!==null&&e!==void 0?e:"";if(t==="start"){if(r===this.internalStartDate)return;this.internalStartDate=r}else{if(r===this.internalEndDate)return;this.internalEndDate=r}this.validateDateRange();this.updateInputValue("start",this.internalStartDate);this.updateInputValue("end",this.internalEndDate);this.checkPreselections();this.syncFormValue()};t.prototype.updateInputValue=function(t,e){var r;var a=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.querySelector('slot[name="'.concat(t,'"]'));var n=a===null||a===void 0?void 0:a.assignedElements()[0];if(n){n.setValue(e)}};t.prototype.updateInputListeners=function(){var t,e;var r=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector('slot[name="start"]');var a=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelector('slot[name="end"]');this.hasPreselection=this.host.querySelector("mds-input-date-range-preselection")!==null;if(r){var n=r.assignedElements()[0];n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"))}if(a){var n=a.assignedElements()[0];n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}};t.prototype.createFocusoutListener=function(t){var e=this;return function(r){var a=r;if(t==="start"){e.internalStartDate=a.detail}else{e.internalEndDate=a.detail}e.syncFormValue()}};t.prototype.validateDateRange=function(){if(this.internalStartDate&&this.internalEndDate){var t=o.fromISO(this.internalStartDate);var e=o.fromISO(this.internalEndDate);if(e<t){this.internalEndDate=this.internalStartDate;this.updateInputValue("end",this.internalEndDate)}}};t.prototype.checkPreselections=function(){var t=this;var e=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));if(e){e.forEach((function(e){var r=e;var a=r.start===t.internalStartDate&&r.end===t.internalEndDate;var n=r.start===t.internalStartDate&&t.internalStartDate===t.internalEndDate&&r.end===undefined;if(a||n){r.selected=true}else{r.selected=false}}))}};t.prototype.render=function(){var t=this;return a(n,{key:"a0d2991f2840c21d10410d9a2759bea2140b5fb8",onClick:this.focusDateInput},a("div",{key:"42a70b643de49c02a1db422e9f7e69c4c16b5df2",class:"inputs"},a("div",{key:"9aaef7664e161099e93dcf09f70e8a12ac26cba5",class:"input-element"},a("mds-text",{key:"d7a2f85dbd2ad2d4f2dbeefcad2d23c7062fa193",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),a("div",{key:"c430288d5850666258269faf269934c9771b62bf",class:"input-wrapper"},a("slot",{key:"3cfdeacc1c9b024ce7f5a2a306425eeaa51f1130",name:"start"}))),a("div",{key:"e8543d95071704939d879f87790f0fc711a34046",class:"input-element"},a("mds-text",{key:"125cb1e5b7fe872f353624555af070cad0da30b0",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),a("div",{key:"35884f542a3ebd824dab00a514e3aec69c79ae11",class:"input-wrapper"},a("slot",{key:"74f1b59daecc34daf576297c93fff43071dccabd",name:"end"})))),a("mds-button",{key:"be0b0f4af844d95a82211330de00c3545b136da3",class:"action-open-calendar",variant:"dark",tone:"quiet",icon:d,id:"calendar-dropdown",onClick:function(){t.calendarKey+=1}}),a("mds-dropdown",{key:"d7bd7782dbcb0f7647643d6054b5fec2947e81e9",ref:function(e){return t.dropdownRef=e},target:"#calendar-dropdown","auto-placement":false,placement:"bottom-end"},a("mds-calendar",Object.assign({lang:this.language,key:this.calendarKey,rangePicker:true,onMdsCalendarChange:function(e){t.internalStartDate=e.detail.startDate;t.updateInputValue("start",t.internalStartDate);if(e.detail.endDate){t.internalEndDate=e.detail.endDate;t.updateInputValue("end",t.internalEndDate)}t.syncFormValue();if(t.internalStartDate&&t.internalEndDate){t.dateRangeSelected.emit({startDate:t.internalStartDate,endDate:t.internalEndDate});if(t.delay===0)return;var r=t.dropdownRef;if(r){setTimeout((function(){r.visible=false}),t.delay)}}},onMdsCalendarPreselect:function(){t.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min?{min:this.min}:{},this.max?{max:this.max}:{}),a("div",{key:"5f94b5fef9bdca001020776e18c79875015452c7",slot:"preselection",class:s("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},a("slot",{key:"58524f199d07343671ffc752be0ed74d21c3f021",name:"calendar-preselection"})))))};t.prototype.syncFormValue=function(){var t,e,r,a;var n=(e=(t=this.internalStartDate)===null||t===void 0?void 0:t.trim())!==null&&e!==void 0?e:"";var i=(a=(r=this.internalEndDate)===null||r===void 0?void 0:r.trim())!==null&&a!==void 0?a:"";if(!n&&!i){this.internals.setFormValue(null);return}this.internals.setFormValue(JSON.stringify({startDate:n,endDate:i}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{startDate:["handleStartDateChange"],endDate:["handleEndDateChange"]}},enumerable:false,configurable:true});return t}());z.style=D}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as a,h as r,H as t,g as n}from"./p-3a6b32e7.js";import{D as l}from"./p-3833e170.js";import{L as s}from"./p-2d77deaf.js";import{s as o}from"./p-cba6ae1b.js";import{c as i}from"./p-8a1a6e56.js";import"./p-85aa8e05.js";const d=class{constructor(r){e(this,r),this.datesEmitter=a(this,"mdsCalendarChange",7),this.checkPreselectionsEmitter=a(this,"mdsCalendarPreselect",7),this.hasPreselection=!1,this.currentDate=l.now(),this.weekDaysinMonth=[],this.weekdays=[],this.startDateIdentifier=null,this.endDateIdentifier=null,this.isFirstClick=!0,this.currentView="calendar",this.selectedYear=this.currentDate.year,this.t=new s({it:{},en:{},es:{},el:{}}),this.rangePicker=!0,this.startDate=null,this.endDate=null,this.min=null,this.max=null,this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.currentMonth="",this.currentYear=""}async updateLang(){this.language=this.t.lang(this.host)}handleStartDate(e){if(null!==e&&""!==e){if(this.internalStartDate=o(null==e?void 0:e.toString()),this.internalEndDate&&l.fromISO(this.internalStartDate)>l.fromISO(this.internalEndDate))return void console.warn("startDate is after endDate, swapping values");this.updateDates()}}handleEndDate(e){if(this.rangePicker){if(null!==e&&""!==e){if(this.internalEndDate=o(null==e?void 0:e.toString()),this.internalStartDate&&l.fromISO(this.internalStartDate)>l.fromISO(this.internalEndDate))return void console.warn("startDate is after endDate, swapping values");this.updateDates()}}else console.warn("rangePicker is disabled, endDate cannot be set"),this.internalEndDate=null}componentWillLoad(){var e,a;this.language=this.t.lang(this.host),this.internalStartDate&&(this.internalStartDate=o(null===(e=this.internalStartDate)||void 0===e?void 0:e.toString()),this.startDateTime=l.fromISO(this.internalStartDate),this.startDateTime.isValid&&(this.currentDate=this.startDateTime)),this.internalEndDate&&(this.internalEndDate=o(null===(a=this.internalEndDate)||void 0===a?void 0:a.toString()),this.endDateTime=l.fromISO(this.internalEndDate)),this.updateCalendar()}componentDidLoad(){var e,a,r;this.hasPreselection=null!==(null===(e=this.host)||void 0===e?void 0:e.querySelector(".date-preselection--has-preselection")),null===(r=null===(a=this.host)||void 0===a?void 0:a.shadowRoot)||void 0===r||r.addEventListener("mouseover",(e=>{const a=e.target;a.matches("mds-calendar-cell")&&this.startDateIdentifier&&this.rangePicker&&this.handleHover(a)})),this.setDates()}disconnectedCallback(){var e,a;null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.removeEventListener("mouseover",(e=>{const a=e.target;a.matches("mds-calendar-cell")&&this.startDateIdentifier&&this.rangePicker&&this.handleHover(a)}))}async updateCurrentDate(e){return this.currentDate=l.fromISO(e),Promise.resolve()}updateDates(){(this.internalStartDate&&this.internalEndDate&&this.rangePicker||this.internalStartDate&&!this.rangePicker)&&this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}async updateCalendar(){try{const e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map(((a,r)=>e.setLocale(this.language).plus({days:r}).toFormat("ccc"))),this.calculateWeekDaysInMonth(),this.currentMonth=this.currentDate.setLocale(this.language).toFormat("MMMM"),this.currentMonthNumber=this.currentDate.month,this.currentYear=this.currentDate.toFormat("yyyy")}catch(e){console.error("Error while updating the calendar:",e)}}setDates(){const e=this.host;if(!e)return;const{shadowRoot:a}=e;if(!a)return;const r=a.querySelectorAll("mds-calendar-cell[selection]");this.isFirstClick&&(this.rangePicker?this.setRangeSelection(r,a):this.setSingleSelection(r,a))}setRangeSelection(e,a){if(e.forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")})),!this.internalStartDate||!this.internalEndDate)return;this.startDateTime=l.fromISO(this.internalStartDate.toString()),this.endDateTime=l.fromISO(this.internalEndDate.toString());const r=a.querySelectorAll("mds-calendar-cell");if(r){let e;for(let a=0;a<r.length;a++){const t=r[a].getAttribute("date");if(t){const n=l.fromISO(t);n.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&r[a].setAttribute("selection","start"),n.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")&&(this.startDateTime.equals(this.endDateTime)?r[a].setAttribute("selection","single"):r[a].setAttribute("selection","end")),e=n>this.startDateTime&&n<this.endDateTime,e&&r[a].setAttribute("selection","middle")}}}}setSingleSelection(e,a){if(e.forEach((e=>{e.removeAttribute("selection")})),!this.internalStartDate)return;this.startDateTime=l.fromISO(this.internalStartDate.toString());const r=a.querySelectorAll("mds-calendar-cell");if(r)for(let e=0;e<r.length;e++){const a=r[e].getAttribute("date");a&&l.fromISO(a).toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&r[e].setAttribute("selection","single")}}changeMonth(e){this.currentDate=this.currentDate.plus({months:e}),this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}calculateWeekDaysInMonth(){const e=this.currentDate.startOf("month"),a=this.currentDate.endOf("month"),r=[];for(let a=e.minus({days:e.weekday-1});a<e;a=a.plus({days:1}))r.push({date:a,isCurrentMonth:!1});for(let t=e;t<=a;t=t.plus({days:1}))r.push({date:t,isCurrentMonth:!0});const t=7-a.weekday,n=a.plus({days:1});for(let e=n;e<n.plus({days:t});e=e.plus({days:1}))r.push({date:e,isCurrentMonth:!1});this.weekDaysinMonth=r}handleRange(e,a){var r,t;if(this.startDateIdentifier&&this.endDateIdentifier&&(()=>{this.internalStartDate=null,this.internalEndDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.endDateIdentifier=null,this.endDateTime=null,this.isFirstClick=!0;const e=this.host;requestAnimationFrame((()=>{var a;null===(a=null==e?void 0:e.shadowRoot)||void 0===a||a.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")}))}))})(),this.isFirstClick){this.startDateIdentifier=a.toISODate(),this.startDateTime=a,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1;const r=this.host;return requestAnimationFrame((()=>{var e;null===(e=null==r?void 0:r.shadowRoot)||void 0===e||e.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection")}))})),void requestAnimationFrame((()=>{e.setAttribute("selection","single"),e.setAttribute("preview","true")}))}const n=this.host,s=null===(r=null==n?void 0:n.shadowRoot)||void 0===r?void 0:r.querySelectorAll("mds-calendar-cell"),o=Array.from(null!=s?s:[]).findIndex((e=>e.getAttribute("date")===this.startDateIdentifier)),i=Array.from(null!=s?s:[]).indexOf(e);if(this.startDateIdentifier&&l.fromISO(this.startDateIdentifier)<l.fromISO(e.getAttribute("date"))?(this.endDateIdentifier=e.getAttribute("date"),this.endDateTime=a,this.internalEndDate=this.endDateTime.toISO().split("T")[0]):(this.endDateIdentifier=this.startDateIdentifier,this.endDateTime=this.startDateTime,this.internalEndDate=this.internalStartDate,this.startDateIdentifier=e.getAttribute("date"),this.startDateTime=a,this.internalStartDate=this.startDateTime.toISO().split("T")[0]),null===(t=null==n?void 0:n.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar-cell[preview]").forEach((e=>{e.removeAttribute("preview")})),s&&-1!==o)for(let e=o+1;e<i;e++)s[e].setAttribute("selection","middle");this.internalStartDate&&this.internalEndDate&&(this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselectionsEmitter.emit())}handleHover(e){var a,r;const t=e,n=l.fromISO(this.internalStartDate);if(!n.isValid||null!==this.endDateIdentifier)return;const s=this.host,o=Array.from(null!==(r=null===(a=null==s?void 0:s.shadowRoot)||void 0===a?void 0:a.querySelectorAll("mds-calendar-cell"))&&void 0!==r?r:[]),i=t.getAttribute("date");if(!i)return;const d=l.fromISO(i);if(!d.isValid)return;const c=o.find((e=>e.getAttribute("date")===this.internalStartDate));o.forEach((e=>{e.removeAttribute("preview"),e.removeAttribute("selection")})),t.setAttribute("preview","true");const h=t.getAttribute("date");if(h){const e=l.fromISO(h);e.isValid&&c&&(n<e?c.setAttribute("selection","start"):n>e?(c.setAttribute("selection","end"),t.setAttribute("selection","start")):t.setAttribute("selection","single"))}if(n.equals(d))t.setAttribute("selection","single");else{const[e,a]=n<d?[n,d]:[d,n];o.forEach((r=>{const t=r.getAttribute("date");if(!t)return;const n=l.fromISO(t);if(n.isValid&&n>=e&&n<=a){r.setAttribute("preview","true");let t="middle";n.equals(e)&&(t="start"),n.equals(a)&&(t="end"),r.setAttribute("selection",t)}}))}}handleSingleSelection(e,a){var r;const t=this.host;null===(r=null==t?void 0:t.shadowRoot)||void 0===r||r.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection")})),this.startDateIdentifier=e.getAttribute("date"),this.startDateTime=a,this.internalStartDate=this.startDateTime.toISO().split("T")[0],this.isFirstClick=!1,e.setAttribute("selection","single"),this.internalStartDate&&this.datesEmitter.emit({startDate:this.internalStartDate})}render(){return r(t,{key:"f8c99b009fa780f683430e40a3f9e5a0b46b30d7"},r("div",{key:"ef190bc2d84e08c6214cf8ed3143e93fb39dd8e8",class:i("calendar-preselection",this.hasPreselection&&"calendar-preselection--has-preselection")},r("slot",{key:"80bc77b47e0aee093314222aa3c147ac57e0f494",name:"preselection"})),r("div",{key:"0f9a115dc3cbd9632a9b87e94ffdab78a61e9ef8",class:"calendar-view"},r("nav",{key:"cdec70c0d9263e0a7404976b1b9c9b1460f4760a"},r("mds-button",{key:"19cb046b6c4a3b0935b9dc50e38a99fd98c2fe56",class:"action-back",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>',variant:"dark",tone:"quiet",onClick:e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(-1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear-=10):e.stopPropagation()}}),r("div",{key:"04e4e1ca98ea00d4513f88131cae65f8f3d368ae",class:"select-month-or-year"},("calendar"===this.currentView||"months"===this.currentView)&&r("mds-button",{key:"d6995e7c68177356e60a1c77aff3649848f91275",class:"action-month",variant:"dark",tone:"quiet",onClick:e=>{e.stopPropagation(),this.currentView="months"===this.currentView?"calendar":"months",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))}))}},this.currentMonth),("calendar"===this.currentView||"years"===this.currentView)&&r("mds-button",{key:"d79d4de0219d05724b173290fa39a034324d950b",class:"action-year",variant:"dark",tone:"quiet",onClick:e=>{e.stopPropagation(),this.currentView="years"===this.currentView?"calendar":"years",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))}))}},this.currentYear)),r("mds-button",{key:"596683e3960b61627fbe8d774db076e2297cd99a",class:"action-forward",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>',variant:"dark",tone:"quiet",onClick:e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear+=10):e.stopPropagation()}})),"calendar"===this.currentView&&r("section",{key:"2bac904c98af5bd276fbc3f1587655bea71dd138",class:"month-view"},r("header",{key:"eaf5ace7f5a3f822bf860f3ec3cceb01582fbe93",class:"month-view__days-names"},this.weekdays.map((e=>r("mds-button",{class:"week-day-name",variant:"dark",tone:"quiet"},e)))),r("div",{key:"ae14ce81225094dea1b082398901496ed77868eb",class:"month-view__cells"},this.weekDaysinMonth.map(((e,a)=>r("mds-calendar-cell",{key:a,today:l.now().toFormat("yyyy-MM-dd")===e.date.toFormat("yyyy-MM-dd"),date:e.date.toFormat("yyyy-MM-dd"),month:e.isCurrentMonth?"current":"other",disabled:(()=>!!(this.min&&""!==this.min&&e.date<l.fromISO(this.min))||!!(this.max&&""!==this.max&&e.date>l.fromISO(this.max))||void 0)(),onClick:a=>{a.stopPropagation();const r=a.currentTarget;this.rangePicker?this.handleRange(r,e.date):this.handleSingleSelection(r,e.date)}},e.date.toFormat("dd")))))),"months"===this.currentView&&r("section",{key:"d85ff88559bac8c6999e939cfd317e78e67bdcdb",class:"month-selection"},r("header",{key:"ed18653752d8d403c86dd8e78ff4cd182d8ec435",class:"month-view__month-names"},Array.from({length:12}).map(((e,a)=>{const t=l.local().set({month:a+1}).setLocale(this.language).toFormat("MMMM");return r("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:e=>{e.stopPropagation(),this.currentDate=this.currentDate.set({month:a+1}),this.currentMonth=this.currentDate.toFormat("MMMM"),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}},t)})))),"years"===this.currentView&&r("section",{key:"a9473ac1c4027e4e25635217a665aadd924d055a",class:"year-selection"},r("header",{key:"adc5de34d23fbb299aa8ab5debb1b210c7cb4bb0",class:"month-view__years"},Array.from({length:12}).map(((e,a)=>{const t=this.selectedYear+a;return r("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:e=>{e.stopPropagation(),this.currentDate=this.currentDate.set({year:t}),this.currentYear=t.toString(),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}},t)}))))))}get host(){return n(this)}static get watchers(){return{startDate:["handleStartDate"],endDate:["handleEndDate"]}}};d.style=":host{--mds-calendar-day-number-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-day-number-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-gap:0.125rem;--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:0.5rem;--mds-calendar-background:rgb(var(--tone-neutral));--mds-calendar-padding:1rem;background-color:rgb(var(--tone-neutral-09));border-radius:var(--mds-calendar-border-radius);cursor:auto;display:-ms-inline-flexbox;display:inline-flex;max-width:380px;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background);border-radius:inherit;display:grid;padding:var(--mds-calendar-padding)}.calendar-preselection{display:none;gap:0.125rem;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content;padding:var(--mds-calendar-padding)}.calendar-preselection--has-preselection{display:grid}nav{display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-pack:justify;justify-content:space-between}.action{padding-left:0.5rem;padding-right:0.5rem;-ms-flex-pack:left;justify-content:left;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content}.action-back,.action-forward{-ms-flex-negative:0;flex-shrink:0}.select-month-or-year{background-color:rgb(var(--tone-neutral-09));border-radius:0.5rem;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:space-evenly;justify-content:space-evenly}.action-month,.action-year{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1}.week-day-name{-ms-flex-align:center;align-items:center;aspect-ratio:1;min-height:auto;padding:0}.month-view{display:grid}.month-view__days-names,.month-view__cells{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7, minmax(1px, 100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3, minmax(1px, 100%));min-width:0}";const c=class{constructor(a){e(this,a),this.month="current",this.orientation="horizontal",this.preview=!1,this.disabled=void 0,this.today=void 0}render(){return r(t,{key:"f7e1c5be903ff151cbad616718740fb2eb8f27f0"},r("div",{key:"3e4b838f78c0ce8df5813b468a6a1a00ae2730b0",class:"inner-dot"}),r("div",{key:"873c7e63491cf3a3c630632509410227ada07694",class:"area-background"}),r("mds-button",{key:"623915907fcb6d6c4aadba14c5db3f0e9b5d1aae",class:"action",variant:"dark",tone:"quiet",disabled:this.disabled},r("slot",{key:"8d78ee0a9b723f68bbf1a521106f77fe03f3a606"})))}};c.style=':host{--mds-calendar-cell-background:transparent;--mds-calendar-cell-boundaries-background:transparent;--mds-calendar-cell-boundaries-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-boundaries-padding:0.25rem;--mds-calendar-cell-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-other-month-background:transparent;--mds-calendar-cell-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-disabled-background:transparent;--mds-calendar-cell-disabled-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-weekend-background:transparent;--mds-calendar-cell-weekend-color:rgb(var(--tone-neutral-06));--mds-calendar-cell-size:3rem;--mds-calendar-cell-selection-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-selection-week-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-preselection-today-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-today-color:rgb(var(--variant-primary-03));--mds-calendar-cell-preselection-current-month-background:rgb(var(--variant-primary-08));--mds-calendar-cell-preselection-current-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-preselection-other-month-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-other-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-background:rgb(var(--variant-primary-04));--mds-calendar-cell-selection-current-month-color:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-current-month-weekend-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-color:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-current-month-weekend-boundaries-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-other-month-background:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-other-month-color:rgb(var(--tone-neutral-04));--mds-calendar-cell-selection-other-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-selection-other-month-boundaries-color:rgb(var(--tone-neutral-05));aspect-ratio:1 / 1;display:-ms-flexbox;display:flex;padding:var(--mds-calendar-cell-boundaries-padding);position:relative}:host([month="other"]){visibility:var(--mds-calendar-cell-other-month-visibility, hidden)}.inner-dot{aspect-ratio:1 / 1;background-color:var(--mds-calendar-cell-inner-background);border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);display:-ms-flexbox;display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--mds-calendar-cell-background);color:var(--mds-calendar-cell-color);inset:0;position:absolute;z-index:0}.action{-ms-flex-align:center;align-items:center;aspect-ratio:1 / 1;background-color:transparent;border-radius:0;color:var(--mds-calendar-cell-color);display:-ms-flexbox;display:flex;inset:calc(var(--mds-calendar-cell-gap) * -1);-ms-flex-pack:center;justify-content:center;min-height:0;min-width:0;padding:0;position:absolute;width:auto;z-index:2}:host([selection][orientation="horizontal"]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap) * -1);margin-right:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="horizontal"]) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection="end"][orientation="horizontal"]) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection][orientation="vertical"]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap) * -1);margin-top:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="vertical"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection="end"][orientation="vertical"]) .area-background{border-radius:0 0 var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius);margin-bottom:0}:host([orientation="vertical"]:not([selection="start"],[selection="end"])) .area-background{border-radius:0}:host(:nth-child(7n - 6)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n - 6)) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius)}:host([selection][orientation="horizontal"]:nth-child(7n - 6)) .area-background{margin-left:0}:host([selection][orientation="horizontal"]:nth-child(7n)) .area-background{margin-right:0}:host([selection="single"][orientation="horizontal"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n - 1)),:host(:nth-child(7n)){--mds-calendar-cell-color:var(--mds-calendar-cell-weekend-color);--mds-calendar-cell-background:var(--mds-calendar-cell-weekend-background)}:host([month="other"]:not([selection])){--mds-calendar-cell-color:var(--mds-calendar-cell-other-month-color);--mds-calendar-cell-background:var(--mds-calendar-cell-other-month-background)}:host([disabled]){--mds-calendar-cell-color:var(--mds-calendar-cell-disabled-color);--mds-calendar-cell-background:var(--mds-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection])[today]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-today-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-today-color)}:host([selection][month="current"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-color)}:host([selection][month="current"]:nth-child(7n - 1)),:host([selection][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-color)}:host([selection="start"][month="current"]:nth-child(7n - 1)),:host([selection="end"][month="current"]:nth-child(7n - 1)),:host([selection="start"][month="current"]:nth-child(7n)),:host([selection="end"][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection][month="other"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-color)}:host([selection="start"][month="current"]),:host([selection="end"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-boundaries-color)}:host([selection="start"][month="other"]),:host([selection="end"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-boundaries-color)}:host([selection][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-color)}:host([selection][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-color)}:host([selection="start"][month="current"][preview]:not([preview="false"])),:host([selection="end"][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="start"][month="other"][preview]:not([preview="false"])),:host([selection="end"][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}:host([selection="single"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="single"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}';export{d as mds_calendar,c as mds_calendar_cell}
@@ -1 +0,0 @@
1
- import{r as t,c as r,h as a,H as e,g as d}from"./p-3a6b32e7.js";import{m as i}from"./p-d2f61b1f.js";import{D as o}from"./p-3833e170.js";import{L as n}from"./p-2d77deaf.js";import"./p-85aa8e05.js";const s=class{constructor(a){t(this,a),this.validationEvent=r(this,"mdsInputValidation",7),this.valueChange=r(this,"mdsInputDateSelect",7),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals),this.isSlotted=!1,this.t=new n({el:{},en:{},es:{},it:{}}),this.touched=!1,this.value="",this.variant="primary",this.min=null,this.max=null,this.delay=500,this.disabled=!1,this.readonly=!1,this.required=!1,this.calendarKey=0,this.hasFocus=!1,this.handleChange=t=>{const r=t.target;this.touched=!0,r.value&&(this.value=r.value),this.validateValue()},this.onBlur=t=>{const r=t.target;this.hasFocus=!1,this.value=r.value},this.onFocus=t=>{const r=t.target;this.hasFocus=!0,this.readonly&&setTimeout((()=>{r.select()}),10)}}async updateLang(){this.language=this.t.lang(this.host)}handleValue(){this.valueChange.emit(this.value),this.validateValue()}validateValue(){const t=o.fromISO(this.value),r=t.invalid,a=this.max&&o.fromISO(this.max)<t||this.min&&o.fromISO(this.min)>t;r&&this.required||a?(this.isValid=!1,this.variant="error",this.internals.setFormValue(null)):(this.isValid=!0,this.variant="primary",this.internals.setFormValue(this.value)),this.validationEvent.emit(this.isValid)}async focusInput(){var t;(null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".input")).focus()}async setValue(t){return this.value=t,this.validateValue(),Promise.resolve()}async getErrors(){return Promise.resolve(this.isValid?null:{error:""})}formResetCallback(){this.internals.setFormValue("")}componentWillLoad(){if(this.isSlotted=!!this.host.getAttribute("slot"),this.value=this.value||"",this.language=this.t.lang(this.host),this.min&&this.max){const t=o.fromISO(this.min);o.fromISO(this.max)<t&&(this.max=this.min)}this.validateValue()}render(){return a(e,{key:"6f98a43d84a87d7e0540331a3f7d37bbf4eca633"},a("input",{key:"ec75ae2fd091ee48a4f965057e2b2ae1b3ecddd4",value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&a("mds-button",{key:"6c7ea4d660fa79b2ba681d255ab48a6d8a0015a9",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"quiet",icon:i,onClick:()=>{this.calendarKey+=1}}),a("mds-input-tip",{key:"ebbc8300462052aa8bac94a9ac7f66fc96852a0b",lang:this.language,position:"top",active:this.hasFocus},this.disabled&&a("mds-input-tip-item",{key:"54a9dd6905b25759f13fd625a9e64b0e41152e04",expanded:!0,variant:"disabled"}),this.readonly&&a("mds-input-tip-item",{key:"ecd6bfc83bda3ee8faeb9a990fc6886ab45f0f8d",expanded:!0,variant:"readonly"}),this.required&&a("mds-input-tip-item",{key:"e5b890f827a7a17b58d075bd4f500d208a512512",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&a("mds-dropdown",{key:"34a37a18aea7c9e9476fc660229d3bec208ec8c9",placement:"bottom-end","auto-placement":!1,ref:t=>this.dropdownRef=t,target:"#calendar-dropdown"},a("mds-calendar",Object.assign({key:this.calendarKey,rangePicker:!1,lang:this.language,onMdsCalendarChange:t=>{if(this.value=t.detail.startDate,0===this.delay)return;const{dropdownRef:r}=this;r&&setTimeout((()=>{r.visible=!1}),this.delay)},startDate:this.value},this.min?{min:this.min}:{},this.max?{max:this.max}:{}))))}static get formAssociated(){return!0}get host(){return d(this)}static get watchers(){return{value:["handleValue"]}}};s.style='@tailwind utilities; :host{--mds-input-date-background:rgb(var(--tone-neutral));--mds-input-date-field-background-empty:rgb(var(--status-error-10));--mds-input-date-field-color-empty:rgb(var(--status-error-06));--mds-input-date-icon-color:var(--mds-input-date-variant-color);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color) / 0.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-variant-color) / 0.06);--mds-input-date-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.input::-webkit-calendar-picker-indicator{-webkit-appearance:none;appearance:none;-moz-appearance:textfield;display:none}.input{min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:transparent;border:0;border-radius:0.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:-moz-min-content;width:-webkit-min-content;width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty);color:var(--mds-input-date-field-color-empty)}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{border-radius:0.5rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:3rem;background-color:var(--mds-input-date-background);-webkit-box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);min-height:3rem;width:100%}:host(:focus-within) .input{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input:focus{outline:2px solid transparent;outline-offset:2px;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input::-moz-placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-04))}.input:-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-outer-spin-button,.input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;display:none;margin:0}.input:disabled{background-color:rgb(var(--tone-neutral-10))}.input:disabled::-moz-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-webkit-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled:-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--tone-neutral-05))}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}:host([disabled]:not([disabled="false"])) .action-open-calendar{-webkit-transform:translate(0.625rem, 0.5rem);transform:translate(0.625rem, 0.5rem)}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:1rem}}:host{--mds-input-date-icon-color:var(--variant-primary-03);--mds-input-date-variant-color:0 0 0}:host(:focus-within){--mds-input-date-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-icon-color:var(--status-info-05);--mds-input-date-tip-background:var(--status-info-05);--mds-input-date-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-icon-color:var(--status-info-04);--mds-input-date-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-icon-color:var(--status-success-05);--mds-input-date-tip-background:var(--status-success-05);--mds-input-date-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-icon-color:var(--status-success-04);--mds-input-date-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-icon-color:var(--status-warning-05);--mds-input-date-tip-background:var(--status-warning-05);--mds-input-date-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-icon-color:var(--status-warning-04);--mds-input-date-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-icon-color:var(--status-error-05);--mds-input-date-tip-background:var(--status-error-05);--mds-input-date-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-icon-color:var(--status-error-04);--mds-input-date-variant-color:var(--status-error-05)}';export{s as mds_input_date}
@@ -1 +0,0 @@
1
- import{r as t,c as d,h as e,H as a,g as r}from"./p-3a6b32e7.js";import{m as s}from"./p-adc5a87e.js";import{m as i}from"./p-24ec3f86.js";const o=class{constructor(e){t(this,e),this.pageChangedEvent=d(this,"mdsPaginatorChange",7),this.pages=0,this.currentPage=1,this.scrollPage=t=>{var d;const e=t,a=null===(d=this.element.shadowRoot)||void 0===d?void 0:d.querySelector(".pages"),r=null==a?void 0:a.querySelectorAll("mds-paginator-item");if(!a||!r)return;if(e<0)return void(a.scrollLeft=0);if(e>r.length-1)return void(a.scrollLeft=r[r.length-1].offsetLeft-a.offsetLeft);const s=r[e];a.scrollLeft=s.offsetLeft-a.offsetLeft-a.offsetWidth/2+s.offsetWidth/2},this.focus=t=>{var d;const e=null===(d=this.element.shadowRoot)||void 0===d?void 0:d.querySelector(".pages"),a=null==e?void 0:e.querySelectorAll("mds-paginator-item");if(a&&t.target){const d=Array.from(a).indexOf(t.target);this.scrollPage(d)}},this.goToPage=(t,d)=>{t<1||t>this.pages||(this.currentPage=t,this.pages>2&&this.scrollPage(this.currentPage-2),this.pageChangedEvent.emit({page:this.currentPage,caller:d}))}}componentDidLoad(){setTimeout((()=>{this.goToPage(this.currentPage)}),10)}render(){return e(a,{key:"b9d657eba839f340e6884a33a60679318d54f34d"},e("mds-paginator-item",{key:"cf00f632028acf9b723cd5262445d344d5eaf247",class:"item-icon",icon:s,disabled:1===this.currentPage,onClick:t=>this.goToPage(this.currentPage-1,t.target)}),this.pages>0&&e("mds-paginator-item",{key:"fa939c14a850380e2f176bab540822569ad69920",class:"item-first",selected:1===this.currentPage,onClick:t=>this.goToPage(1,t.target)},"1"),this.pages>2&&e("div",{key:"59d2f6299c3272a5a9eeb775debd951c92b010d3",class:"pages"},Array.from(Array(this.pages-2).keys()).map((t=>e("mds-paginator-item",{key:t,class:"item",selected:this.currentPage===t+2,onClick:d=>this.goToPage(t+2,d.target),onFocus:this.focus},t+2)))),this.pages>1&&e("mds-paginator-item",{key:"da7bdcac91a730b578d40d87d3eafe376c504d0a",class:"item-last",selected:this.currentPage===this.pages,onClick:t=>this.goToPage(this.pages,t.target)},this.pages),e("mds-paginator-item",{key:"96c940a778f155d35297834eada78c7fb5207ef6",class:"item-icon",icon:i,disabled:this.currentPage===this.pages,onClick:t=>this.goToPage(this.currentPage+1,t.target)}))}get element(){return r(this)}};o.style="@tailwind components; :host{--mds-paginator-background:rgb(var(--tone-neutral-09));--mds-paginator-scroll-behavior:smooth;gap:0.25rem;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.pages{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}.pages::-webkit-scrollbar{display:none}.pages{margin-left:0.5rem;margin-right:0.5rem;border-radius:9999px;padding:0.5rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-background);display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;gap:2px;overflow:auto;scroll-behavior:var(--mds-paginator-scroll-behavior);-webkit-transition-property:background-color, -webkit-box-shadow;transition-property:background-color, -webkit-box-shadow;transition-property:background-color, box-shadow;transition-property:background-color, box-shadow, -webkit-box-shadow}.pages::-webkit-scrollbar{display:none}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .pages{--mds-paginator-scroll-behavior:auto;-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .pages{--mds-paginator-scroll-behavior:auto;-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-paginator-background:rgb(var(--tone-neutral-09))}:host-context(.pref-theme-dark) .pages{-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-paginator-background:rgb(var(--tone-neutral-09))}:host-context(.pref-theme-system) .pages{-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset}}:host-context(.pref-contrast-more) .pages{-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}:host-context(.pref-contrast-more) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral));--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:none}:host-context(.pref-contrast-more) .item-first,:host-context(.pref-contrast-more) .item-last,:host-context(.pref-contrast-more) .item-icon{--mds-paginator-item-shadow-disabled:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}@media (prefers-contrast: more){:host-context(.pref-contrast-system) .pages{-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}:host-context(.pref-contrast-system) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral));--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:none}:host-context(.pref-contrast-system) .item-first,:host-context(.pref-contrast-system) .item-last,:host-context(.pref-contrast-system) .item-icon{--mds-paginator-item-shadow-disabled:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";export{o as mds_paginator}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as a,H as r,g as d}from"./p-3a6b32e7.js";import{m as i}from"./p-d2f61b1f.js";import{D as s}from"./p-3833e170.js";import{c as n}from"./p-8a1a6e56.js";import{L as o}from"./p-2d77deaf.js";import"./p-85aa8e05.js";const h={from:"Από",to:"έως"},l={from:"From",to:"to"},c={from:"De",to:"a"},m={from:"Dal",to:"al"},p=class{constructor(a){t(this,a),this.dateRangeSelected=e(this,"mdsInputDateRangeSelect",7),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.hasPreselection=!1,this.t=new o({el:h,en:l,es:c,it:m}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=s.fromISO(this.internalStartDate).isValid,e=s.fromISO(this.internalEndDate).isValid;t&&e&&(this.validateDateRange(),this.syncFormValue(),this.dateRangeSelected.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselections()),this.internalStartDate===this.lastEmittedStartDate&&this.internalEndDate===this.lastEmittedEndDate||(this.valueChanged.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.lastEmittedStartDate=this.internalStartDate,this.lastEmittedEndDate=this.internalEndDate)}},this.focusInput=t=>{t.focusInput()},this.focusDateInput=t=>{t.target===this.host&&this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))}}async updateLang(){this.language=this.t.lang(this.host)}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}componentWillLoad(){if(this.language=this.t.lang(this.host),this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.initialStartDate=this.startDate,this.initialEndDate=this.endDate,this.min&&this.max){const t=s.fromISO(this.min);s.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){this.host.removeEventListener("focusout",this.handleFocusOut)}async preselect(t){var e,a;this.togglePreselection||(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,s.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?s.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const r=null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a?void 0:a.querySelector("mds-calendar");if(r){if(await r.updateCurrentDate(this.internalStartDate),0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}return this.dateRangeSelected.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),Promise.resolve()}componentDidLoad(){this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.syncFormValue(),this.host.addEventListener("focusout",this.handleFocusOut)}formResetCallback(){this.internalStartDate=this.initialStartDate,this.internalEndDate=this.initialEndDate,this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}syncExternalDate(t,e){const a=null!=e?e:"";if("start"===t){if(a===this.internalStartDate)return;this.internalStartDate=a}else{if(a===this.internalEndDate)return;this.internalEndDate=a}this.validateDateRange(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}updateInputValue(t,e){var a;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`),d=null==r?void 0:r.assignedElements()[0];d&&d.setValue(e)}updateInputListeners(){var t,e;const a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),r=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection"),a&&a.assignedElements()[0].addEventListener("mdsInputDateSelect",this.createFocusoutListener("start")),r&&r.assignedElements()[0].addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return e=>{const a=e;"start"===t?this.internalStartDate=a.detail:this.internalEndDate=a.detail,this.syncFormValue()}}validateDateRange(){if(this.internalStartDate&&this.internalEndDate){const t=s.fromISO(this.internalStartDate);s.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}render(){return a(r,{key:"a0d2991f2840c21d10410d9a2759bea2140b5fb8",onClick:this.focusDateInput},a("div",{key:"42a70b643de49c02a1db422e9f7e69c4c16b5df2",class:"inputs"},a("div",{key:"9aaef7664e161099e93dcf09f70e8a12ac26cba5",class:"input-element"},a("mds-text",{key:"d7a2f85dbd2ad2d4f2dbeefcad2d23c7062fa193",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),a("div",{key:"c430288d5850666258269faf269934c9771b62bf",class:"input-wrapper"},a("slot",{key:"3cfdeacc1c9b024ce7f5a2a306425eeaa51f1130",name:"start"}))),a("div",{key:"e8543d95071704939d879f87790f0fc711a34046",class:"input-element"},a("mds-text",{key:"125cb1e5b7fe872f353624555af070cad0da30b0",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),a("div",{key:"35884f542a3ebd824dab00a514e3aec69c79ae11",class:"input-wrapper"},a("slot",{key:"74f1b59daecc34daf576297c93fff43071dccabd",name:"end"})))),a("mds-button",{key:"be0b0f4af844d95a82211330de00c3545b136da3",class:"action-open-calendar",variant:"dark",tone:"quiet",icon:i,id:"calendar-dropdown",onClick:()=>{this.calendarKey+=1}}),a("mds-dropdown",{key:"d7bd7782dbcb0f7647643d6054b5fec2947e81e9",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","auto-placement":!1,placement:"bottom-end"},a("mds-calendar",Object.assign({lang:this.language,key:this.calendarKey,rangePicker:!0,onMdsCalendarChange:t=>{if(this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),t.detail.endDate&&(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)),this.syncFormValue(),this.internalStartDate&&this.internalEndDate){if(this.dateRangeSelected.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}},onMdsCalendarPreselect:()=>{this.checkPreselections()},startDate:this.internalStartDate,endDate:this.internalEndDate},this.min?{min:this.min}:{},this.max?{max:this.max}:{}),a("div",{key:"5f94b5fef9bdca001020776e18c79875015452c7",slot:"preselection",class:n("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},a("slot",{key:"58524f199d07343671ffc752be0ed74d21c3f021",name:"calendar-preselection"})))))}syncFormValue(){var t,e,a,r;const d=null!==(e=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==e?e:"",i=null!==(r=null===(a=this.internalEndDate)||void 0===a?void 0:a.trim())&&void 0!==r?r:"";this.internals.setFormValue(d||i?JSON.stringify({startDate:d,endDate:i}):null)}static get formAssociated(){return!0}get host(){return d(this)}static get watchers(){return{startDate:["handleStartDateChange"],endDate:["handleEndDateChange"]}}};p.style=':host{--mds-input-date-range-background:rgb(var(--tone-neutral));--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 0.5rem;--mds-input-date-range-icon-color:var(--mds-input-date-range-variant-color);--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color) / 0.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color) / 0.06);--mds-input-date-range-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;cursor:text;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.date-preselection{display:grid;gap:0.5rem}.inputs{font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;border-radius:0.5rem;padding-left:1rem;padding-right:3rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-date-range-background);border:0;-webkit-box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);box-shadow:var(--mds-input-date-range-ring), var(--mds-input-date-range-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap);min-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:100%}.input-element{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex}:host(:focus-within) .inputs{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color) / 1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color) / 0.06)}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host() ::slotted(mds-input-date){color:inherit}.date-label{margin-left:0.125rem;margin-right:0.125rem;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-range-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-range-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-range-background:rgb(var(--tone-neutral-09));--mds-input-date-range-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}.inputs{padding-right:1rem;-ms-flex-pack:var(--mds-input-date-range-fields-firefox-justify-content);justify-content:var(--mds-input-date-range-fields-firefox-justify-content)}}:host{--mds-input-date-range-icon-color:var(--variant-primary-03);--mds-input-date-range-variant-color:0 0 0}:host(:focus-within){--mds-input-date-range-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-range-icon-color:var(--status-info-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-range-icon-color:var(--status-info-04);--mds-input-date-range-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-range-icon-color:var(--status-success-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-range-icon-color:var(--status-success-04);--mds-input-date-range-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-range-icon-color:var(--status-warning-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-range-icon-color:var(--status-warning-04);--mds-input-date-range-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-range-icon-color:var(--status-error-05);--mds-input-date-range-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-range-icon-color:var(--status-error-04);--mds-input-date-range-variant-color:var(--status-error-05)}';export{p as mds_input_date_range}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,r,n,a){function t(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a["throw"](e))}catch(e){i(e)}}function c(e){e.done?n(e.value):t(e.value).then(o,l)}c((a=a.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,t,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(r){return c([e,r])}}function c(l){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(n=0)),n)try{if(a=1,t&&(i=l[0]&2?t["return"]:l[0]?t["throw"]||((i=t["return"])&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;if(t=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;t=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=r.call(e,n)}catch(e){l=[6,e];t=0}finally{a=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-2aef517c.system.js","./p-c95d3b63.system.js","./p-0b49b32e.system.js","./p-8982c443.system.js","./p-d68089ba.system.js","./p-21b1acec.system.js"],(function(e){"use strict";var r,n,a,t,i,o,l,c,s;return{setters:[function(e){r=e.r;n=e.c;a=e.h;t=e.H;i=e.g},function(e){o=e.D},function(e){l=e.L},function(e){c=e.s},function(e){s=e.c},function(){}],execute:function(){var d='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>';var u='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>';var h=":host{--mds-calendar-day-number-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-day-number-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-gap:0.125rem;--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:0.5rem;--mds-calendar-background:rgb(var(--tone-neutral));--mds-calendar-padding:1rem;background-color:rgb(var(--tone-neutral-09));border-radius:var(--mds-calendar-border-radius);cursor:auto;display:-ms-inline-flexbox;display:inline-flex;max-width:380px;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background);border-radius:inherit;display:grid;padding:var(--mds-calendar-padding)}.calendar-preselection{display:none;gap:0.125rem;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content;padding:var(--mds-calendar-padding)}.calendar-preselection--has-preselection{display:grid}nav{display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-pack:justify;justify-content:space-between}.action{padding-left:0.5rem;padding-right:0.5rem;-ms-flex-pack:left;justify-content:left;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content}.action-back,.action-forward{-ms-flex-negative:0;flex-shrink:0}.select-month-or-year{background-color:rgb(var(--tone-neutral-09));border-radius:0.5rem;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:space-evenly;justify-content:space-evenly}.action-month,.action-year{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1}.week-day-name{-ms-flex-align:center;align-items:center;aspect-ratio:1;min-height:auto;padding:0}.month-view{display:grid}.month-view__days-names,.month-view__cells{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7, minmax(1px, 100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3, minmax(1px, 100%));min-width:0}";var m=h;var v=e("mds_calendar",function(){function e(e){r(this,e);this.datesEmitter=n(this,"mdsCalendarChange",7);this.checkPreselectionsEmitter=n(this,"mdsCalendarPreselect",7);this.hasPreselection=false;this.currentDate=o.now();this.weekDaysinMonth=[];this.weekdays=[];this.startDateIdentifier=null;this.endDateIdentifier=null;this.isFirstClick=true;this.currentView="calendar";this.selectedYear=this.currentDate.year;this.t=new l({it:{},en:{},es:{},el:{}});this.rangePicker=true;this.startDate=null;this.endDate=null;this.min=null;this.max=null;this.internalStartDate=this.startDate;this.internalEndDate=this.endDate;this.currentMonth="";this.currentYear=""}e.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=this.t.lang(this.host);return[2]}))}))};e.prototype.handleStartDate=function(e){if(e!==null&&e!==""){this.internalStartDate=c(e===null||e===void 0?void 0:e.toString());if(this.internalEndDate){var r=o.fromISO(this.internalStartDate);var n=o.fromISO(this.internalEndDate);if(r>n){console.warn("startDate is after endDate, swapping values");return}}this.updateDates()}};e.prototype.handleEndDate=function(e){if(!this.rangePicker){console.warn("rangePicker is disabled, endDate cannot be set");this.internalEndDate=null}else if(e!==null&&e!==""){this.internalEndDate=c(e===null||e===void 0?void 0:e.toString());if(this.internalStartDate){var r=o.fromISO(this.internalStartDate);var n=o.fromISO(this.internalEndDate);if(r>n){console.warn("startDate is after endDate, swapping values");return}}this.updateDates()}};e.prototype.componentWillLoad=function(){var e,r;this.language=this.t.lang(this.host);if(this.internalStartDate){this.internalStartDate=c((e=this.internalStartDate)===null||e===void 0?void 0:e.toString());this.startDateTime=o.fromISO(this.internalStartDate);if(this.startDateTime.isValid){this.currentDate=this.startDateTime}}if(this.internalEndDate){this.internalEndDate=c((r=this.internalEndDate)===null||r===void 0?void 0:r.toString());this.endDateTime=o.fromISO(this.internalEndDate)}this.updateCalendar()};e.prototype.componentDidLoad=function(){var e=this;var r,n,a;this.hasPreselection=((r=this.host)===null||r===void 0?void 0:r.querySelector(".date-preselection--has-preselection"))!==null;(a=(n=this.host)===null||n===void 0?void 0:n.shadowRoot)===null||a===void 0?void 0:a.addEventListener("mouseover",(function(r){var n=r.target;if(n.matches("mds-calendar-cell")&&e.startDateIdentifier&&e.rangePicker){e.handleHover(n)}}));this.setDates()};e.prototype.disconnectedCallback=function(){var e=this;var r,n;(n=(r=this.host)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.removeEventListener("mouseover",(function(r){var n=r.target;if(n.matches("mds-calendar-cell")&&e.startDateIdentifier&&e.rangePicker){e.handleHover(n)}}))};e.prototype.updateCurrentDate=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.currentDate=o.fromISO(e);return[2,Promise.resolve()]}))}))};e.prototype.updateDates=function(){var e=this;if(this.internalStartDate&&this.internalEndDate&&this.rangePicker){this.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}else if(this.internalStartDate&&!this.rangePicker){this.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}};e.prototype.updateCalendar=function(){return __awaiter(this,void 0,void 0,(function(){var e;var r=this;return __generator(this,(function(n){try{e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map((function(n,a){return e.setLocale(r.language).plus({days:a}).toFormat("ccc")}));this.calculateWeekDaysInMonth();this.currentMonth=this.currentDate.setLocale(this.language).toFormat("MMMM");this.currentMonthNumber=this.currentDate.month;this.currentYear=this.currentDate.toFormat("yyyy")}catch(e){console.error("Error while updating the calendar:",e)}return[2]}))}))};e.prototype.setDates=function(){var e=this.host;if(!e)return;var r=e.shadowRoot;if(!r)return;var n=r.querySelectorAll("mds-calendar-cell[selection]");if(this.isFirstClick){if(this.rangePicker){this.setRangeSelection(n,r)}else{this.setSingleSelection(n,r)}}};e.prototype.setRangeSelection=function(e,r){e.forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}));if(!this.internalStartDate||!this.internalEndDate)return;this.startDateTime=o.fromISO(this.internalStartDate.toString());this.endDateTime=o.fromISO(this.internalEndDate.toString());var n=r.querySelectorAll("mds-calendar-cell");if(n){var a=void 0;for(var t=0;t<n.length;t++){var i=n[t].getAttribute("date");if(i){var l=o.fromISO(i);if(l.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){n[t].setAttribute("selection","start")}if(l.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")){if(this.startDateTime.equals(this.endDateTime)){n[t].setAttribute("selection","single")}else{n[t].setAttribute("selection","end")}}a=l>this.startDateTime&&l<this.endDateTime;if(a){n[t].setAttribute("selection","middle")}}}}};e.prototype.setSingleSelection=function(e,r){e.forEach((function(e){e.removeAttribute("selection")}));if(!this.internalStartDate)return;this.startDateTime=o.fromISO(this.internalStartDate.toString());var n=r.querySelectorAll("mds-calendar-cell");if(n){for(var a=0;a<n.length;a++){var t=n[a].getAttribute("date");if(t){var i=o.fromISO(t);if(i.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){n[a].setAttribute("selection","single")}}}}};e.prototype.changeMonth=function(e){var r=this;this.currentDate=this.currentDate.plus({months:e});this.updateCalendar().then((function(){requestAnimationFrame((function(){return r.setDates()}))}))};e.prototype.calculateWeekDaysInMonth=function(){var e=this.currentDate.startOf("month");var r=this.currentDate.endOf("month");var n=[];var a=e.weekday;var t=a-1;var i=e.minus({days:t});for(var o=i;o<e;o=o.plus({days:1})){n.push({date:o,isCurrentMonth:false})}for(var o=e;o<=r;o=o.plus({days:1})){n.push({date:o,isCurrentMonth:true})}var l=r.weekday;var c=7-l;var s=r.plus({days:1});for(var o=s;o<s.plus({days:c});o=o.plus({days:1})){n.push({date:o,isCurrentMonth:false})}this.weekDaysinMonth=n};e.prototype.handleRange=function(e,r){var n=this;var a,t;var i=function(){n.internalStartDate=null;n.internalEndDate=null;n.startDateIdentifier=null;n.startDateTime=null;n.endDateIdentifier=null;n.endDateTime=null;n.isFirstClick=true;var e=n.host;requestAnimationFrame((function(){var r;(r=e===null||e===void 0?void 0:e.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}))}))};if(this.startDateIdentifier&&this.endDateIdentifier){i()}if(this.isFirstClick){this.startDateIdentifier=r.toISODate();this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;var l=this.host;requestAnimationFrame((function(){var e;(e=l===null||l===void 0?void 0:l.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}))}));requestAnimationFrame((function(){e.setAttribute("selection","single");e.setAttribute("preview","true")}));return}var c=this.host;var s=(a=c===null||c===void 0?void 0:c.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar-cell");var d=Array.from(s!==null&&s!==void 0?s:[]).findIndex((function(e){return e.getAttribute("date")===n.startDateIdentifier}));var u=Array.from(s!==null&&s!==void 0?s:[]).indexOf(e);if(this.startDateIdentifier&&o.fromISO(this.startDateIdentifier)<o.fromISO(e.getAttribute("date"))){this.endDateIdentifier=e.getAttribute("date");this.endDateTime=r;this.internalEndDate=this.endDateTime.toISO().split("T")[0]}else{this.endDateIdentifier=this.startDateIdentifier;this.endDateTime=this.startDateTime;this.internalEndDate=this.internalStartDate;this.startDateIdentifier=e.getAttribute("date");this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0]}(t=c===null||c===void 0?void 0:c.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar-cell[preview]").forEach((function(e){e.removeAttribute("preview")}));if(s&&d!==-1){for(var h=d+1;h<u;h++){s[h].setAttribute("selection","middle")}}if(this.internalStartDate&&this.internalEndDate){this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate});this.checkPreselectionsEmitter.emit()}};e.prototype.handleHover=function(e){var r=this;var n,a;var t=e;var i=o.fromISO(this.internalStartDate);if(!i.isValid||this.endDateIdentifier!==null)return;var l=this.host;var c=Array.from((a=(n=l===null||l===void 0?void 0:l.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll("mds-calendar-cell"))!==null&&a!==void 0?a:[]);var s=t.getAttribute("date");if(!s)return;var d=o.fromISO(s);if(!d.isValid)return;var u=c.find((function(e){return e.getAttribute("date")===r.internalStartDate}));c.forEach((function(e){e.removeAttribute("preview");e.removeAttribute("selection")}));t.setAttribute("preview","true");var h=t.getAttribute("date");if(h){var m=o.fromISO(h);if(m.isValid&&u){if(i<m){u.setAttribute("selection","start")}else if(i>m){u.setAttribute("selection","end");t.setAttribute("selection","start")}else{t.setAttribute("selection","single")}}}if(i.equals(d)){t.setAttribute("selection","single")}else{var v=i<d?[i,d]:[d,i],b=v[0],f=v[1];c.forEach((function(e){var r=e.getAttribute("date");if(!r)return;var n=o.fromISO(r);if(!n.isValid)return;if(n>=b&&n<=f){e.setAttribute("preview","true");var a="middle";if(n.equals(b))a="start";if(n.equals(f))a="end";e.setAttribute("selection",a)}}))}};e.prototype.handleSingleSelection=function(e,r){var n;var a=this.host;(n=a===null||a===void 0?void 0:a.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}));this.startDateIdentifier=e.getAttribute("date");this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;e.setAttribute("selection","single");if(this.internalStartDate){this.datesEmitter.emit({startDate:this.internalStartDate})}};e.prototype.render=function(){var e=this;return a(t,{key:"f8c99b009fa780f683430e40a3f9e5a0b46b30d7"},a("div",{key:"ef190bc2d84e08c6214cf8ed3143e93fb39dd8e8",class:s("calendar-preselection",this.hasPreselection&&"calendar-preselection--has-preselection")},a("slot",{key:"80bc77b47e0aee093314222aa3c147ac57e0f494",name:"preselection"})),a("div",{key:"0f9a115dc3cbd9632a9b87e94ffdab78a61e9ef8",class:"calendar-view"},a("nav",{key:"cdec70c0d9263e0a7404976b1b9c9b1460f4760a"},a("mds-button",{key:"19cb046b6c4a3b0935b9dc50e38a99fd98c2fe56",class:"action-back",icon:u,variant:"dark",tone:"quiet",onClick:function(r){if(e.currentView==="calendar"){r.stopPropagation();e.changeMonth(-1)}else if(e.currentView==="years"){r.stopPropagation();e.selectedYear-=10}else{r.stopPropagation()}}}),a("div",{key:"04e4e1ca98ea00d4513f88131cae65f8f3d368ae",class:"select-month-or-year"},(this.currentView==="calendar"||this.currentView==="months")&&a("mds-button",{key:"d6995e7c68177356e60a1c77aff3649848f91275",class:"action-month",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentView=e.currentView==="months"?"calendar":"months";requestAnimationFrame((function(){e.updateCalendar().then((function(){return e.setDates()}))}))}},this.currentMonth),(this.currentView==="calendar"||this.currentView==="years")&&a("mds-button",{key:"d79d4de0219d05724b173290fa39a034324d950b",class:"action-year",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentView=e.currentView==="years"?"calendar":"years";requestAnimationFrame((function(){e.updateCalendar().then((function(){return e.setDates()}))}))}},this.currentYear)),a("mds-button",{key:"596683e3960b61627fbe8d774db076e2297cd99a",class:"action-forward",icon:d,variant:"dark",tone:"quiet",onClick:function(r){if(e.currentView==="calendar"){r.stopPropagation();e.changeMonth(1)}else if(e.currentView==="years"){r.stopPropagation();e.selectedYear+=10}else{r.stopPropagation()}}})),this.currentView==="calendar"&&a("section",{key:"2bac904c98af5bd276fbc3f1587655bea71dd138",class:"month-view"},a("header",{key:"eaf5ace7f5a3f822bf860f3ec3cceb01582fbe93",class:"month-view__days-names"},this.weekdays.map((function(e){return a("mds-button",{class:"week-day-name",variant:"dark",tone:"quiet"},e)}))),a("div",{key:"ae14ce81225094dea1b082398901496ed77868eb",class:"month-view__cells"},this.weekDaysinMonth.map((function(r,n){return a("mds-calendar-cell",{key:n,today:o.now().toFormat("yyyy-MM-dd")===r.date.toFormat("yyyy-MM-dd"),date:r.date.toFormat("yyyy-MM-dd"),month:r.isCurrentMonth?"current":"other",disabled:function(){if(e.min&&e.min!==""&&r.date<o.fromISO(e.min)){return true}if(e.max&&e.max!==""&&r.date>o.fromISO(e.max)){return true}return undefined}(),onClick:function(n){n.stopPropagation();var a=n.currentTarget;if(e.rangePicker)e.handleRange(a,r.date);else e.handleSingleSelection(a,r.date)}},r.date.toFormat("dd"))})))),this.currentView==="months"&&a("section",{key:"d85ff88559bac8c6999e939cfd317e78e67bdcdb",class:"month-selection"},a("header",{key:"ed18653752d8d403c86dd8e78ff4cd182d8ec435",class:"month-view__month-names"},Array.from({length:12}).map((function(r,n){var t=o.local().set({month:n+1}).setLocale(e.language).toFormat("MMMM");return a("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentDate=e.currentDate.set({month:n+1});e.currentMonth=e.currentDate.toFormat("MMMM");e.currentView="calendar";e.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}},t)})))),this.currentView==="years"&&a("section",{key:"a9473ac1c4027e4e25635217a665aadd924d055a",class:"year-selection"},a("header",{key:"adc5de34d23fbb299aa8ab5debb1b210c7cb4bb0",class:"month-view__years"},Array.from({length:12}).map((function(r,n){var t=e.selectedYear+n;return a("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentDate=e.currentDate.set({year:t});e.currentYear=t.toString();e.currentView="calendar";e.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}},t)}))))))};Object.defineProperty(e.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{startDate:["handleStartDate"],endDate:["handleEndDate"]}},enumerable:false,configurable:true});return e}());v.style=m;var b=':host{--mds-calendar-cell-background:transparent;--mds-calendar-cell-boundaries-background:transparent;--mds-calendar-cell-boundaries-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-boundaries-padding:0.25rem;--mds-calendar-cell-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-other-month-background:transparent;--mds-calendar-cell-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-disabled-background:transparent;--mds-calendar-cell-disabled-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-weekend-background:transparent;--mds-calendar-cell-weekend-color:rgb(var(--tone-neutral-06));--mds-calendar-cell-size:3rem;--mds-calendar-cell-selection-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-selection-week-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-preselection-today-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-today-color:rgb(var(--variant-primary-03));--mds-calendar-cell-preselection-current-month-background:rgb(var(--variant-primary-08));--mds-calendar-cell-preselection-current-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-preselection-other-month-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-other-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-background:rgb(var(--variant-primary-04));--mds-calendar-cell-selection-current-month-color:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-current-month-weekend-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-color:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-current-month-weekend-boundaries-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-other-month-background:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-other-month-color:rgb(var(--tone-neutral-04));--mds-calendar-cell-selection-other-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-selection-other-month-boundaries-color:rgb(var(--tone-neutral-05));aspect-ratio:1 / 1;display:-ms-flexbox;display:flex;padding:var(--mds-calendar-cell-boundaries-padding);position:relative}:host([month="other"]){visibility:var(--mds-calendar-cell-other-month-visibility, hidden)}.inner-dot{aspect-ratio:1 / 1;background-color:var(--mds-calendar-cell-inner-background);border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);display:-ms-flexbox;display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--mds-calendar-cell-background);color:var(--mds-calendar-cell-color);inset:0;position:absolute;z-index:0}.action{-ms-flex-align:center;align-items:center;aspect-ratio:1 / 1;background-color:transparent;border-radius:0;color:var(--mds-calendar-cell-color);display:-ms-flexbox;display:flex;inset:calc(var(--mds-calendar-cell-gap) * -1);-ms-flex-pack:center;justify-content:center;min-height:0;min-width:0;padding:0;position:absolute;width:auto;z-index:2}:host([selection][orientation="horizontal"]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap) * -1);margin-right:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="horizontal"]) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection="end"][orientation="horizontal"]) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection][orientation="vertical"]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap) * -1);margin-top:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="vertical"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection="end"][orientation="vertical"]) .area-background{border-radius:0 0 var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius);margin-bottom:0}:host([orientation="vertical"]:not([selection="start"],[selection="end"])) .area-background{border-radius:0}:host(:nth-child(7n - 6)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n - 6)) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius)}:host([selection][orientation="horizontal"]:nth-child(7n - 6)) .area-background{margin-left:0}:host([selection][orientation="horizontal"]:nth-child(7n)) .area-background{margin-right:0}:host([selection="single"][orientation="horizontal"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n - 1)),:host(:nth-child(7n)){--mds-calendar-cell-color:var(--mds-calendar-cell-weekend-color);--mds-calendar-cell-background:var(--mds-calendar-cell-weekend-background)}:host([month="other"]:not([selection])){--mds-calendar-cell-color:var(--mds-calendar-cell-other-month-color);--mds-calendar-cell-background:var(--mds-calendar-cell-other-month-background)}:host([disabled]){--mds-calendar-cell-color:var(--mds-calendar-cell-disabled-color);--mds-calendar-cell-background:var(--mds-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection])[today]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-today-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-today-color)}:host([selection][month="current"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-color)}:host([selection][month="current"]:nth-child(7n - 1)),:host([selection][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-color)}:host([selection="start"][month="current"]:nth-child(7n - 1)),:host([selection="end"][month="current"]:nth-child(7n - 1)),:host([selection="start"][month="current"]:nth-child(7n)),:host([selection="end"][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection][month="other"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-color)}:host([selection="start"][month="current"]),:host([selection="end"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-boundaries-color)}:host([selection="start"][month="other"]),:host([selection="end"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-boundaries-color)}:host([selection][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-color)}:host([selection][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-color)}:host([selection="start"][month="current"][preview]:not([preview="false"])),:host([selection="end"][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="start"][month="other"][preview]:not([preview="false"])),:host([selection="end"][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}:host([selection="single"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="single"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}';var f=b;var g=e("mds_calendar_cell",function(){function e(e){r(this,e);this.month="current";this.orientation="horizontal";this.preview=false;this.disabled=undefined;this.today=undefined}e.prototype.render=function(){return a(t,{key:"f7e1c5be903ff151cbad616718740fb2eb8f27f0"},a("div",{key:"3e4b838f78c0ce8df5813b468a6a1a00ae2730b0",class:"inner-dot"}),a("div",{key:"873c7e63491cf3a3c630632509410227ada07694",class:"area-background"}),a("mds-button",{key:"623915907fcb6d6c4aadba14c5db3f0e9b5d1aae",class:"action",variant:"dark",tone:"quiet",disabled:this.disabled},a("slot",{key:"8d78ee0a9b723f68bbf1a521106f77fe03f3a606"})))};return e}());g.style=f}}}));
@@ -1 +0,0 @@
1
- import{r as t,h as e,H as a,g as o}from"./p-3a6b32e7.js";const i={action:{tag:"span",selector:{default:"text-title-action",title:"text-title-action"}},caption:{tag:"span",selector:{default:"text-info-caption",info:"text-info-caption",read:"text-read-caption"}},detail:{tag:"p",selector:{default:"text-info-detail",info:"text-info-detail",read:"text-read-detail"}},h1:{tag:"h1",selector:{default:"text-title-h1",title:"text-title-h1"}},h2:{tag:"h2",selector:{default:"text-title-h2",title:"text-title-h2"}},h3:{tag:"h3",selector:{default:"text-title-h3",title:"text-title-h3"}},h4:{tag:"h4",selector:{default:"text-title-h4",title:"text-title-h4"}},h5:{tag:"h5",selector:{default:"text-title-h5",title:"text-title-h5"}},h6:{tag:"h6",selector:{default:"text-title-h6",title:"text-title-h6"}},hack:{tag:"code",selector:{default:"text-code-hack",mono:"text-code-hack"}},label:{tag:"label",selector:{default:"text-info-label",info:"text-info-label"}},option:{tag:"label",selector:{default:"text-info-option",info:"text-info-option"}},paragraph:{tag:"p",selector:{default:"text-info-paragraph",secondary:"text-secondary-paragraph",info:"text-info-paragraph",read:"text-read-paragraph"}},snippet:{tag:"code",selector:{default:"text-code-snippet",mono:"text-code-snippet"}},tip:{tag:"div",selector:{default:"text-info-tip",info:"text-info-tip"}}},s=2147483647,r=t=>16807*t%s,d=t=>r(t)/s,n=((t=1)=>{let e=t<1?1:t;const a=()=>(e=r(e),e);return{random:()=>a(),randomFloat:()=>d(a()),range:(t,e)=>{const o=t-.4999;return Math.round(o+(e+.4999-o)*d(a()))},rangeFloat:(t,e)=>t+(e-t)*d(a())}})(),h=()=>{};class m{constructor(t){this.start=()=>{const{frameOffset:t,charOffset:e,str:a,speed:o}=this,i=(s=t,r=e,t=>(t=>t.split("").map((t=>t.charCodeAt(0))))(t).map(((t,e)=>()=>(t+n.range(0,e))*(2*(Math.round(Math.random())-.5)))(s,r)))(a);var s,r;this.stop(),this.rafId=requestAnimationFrame((()=>{this.step(i,o,o)}))},Object.assign(this,Object.assign(Object.assign({},m.defaults),t))}stop(){cancelAnimationFrame(this.rafId)}step(t,e,a){const{str:o,charStep:i,minCharCode:s,maxCharCode:r,placeholderChar:d,onProgress:n,onComplete:h}=this,m=t.slice(0,e).map((t=>t>0?t-1:t<0?t+1:0)),l=(({str:t,minCharCode:e,maxCharCode:a,placeholderChar:o,charStep:i})=>s=>s.reduce(((s,r,d)=>{return 0!==r?Math.abs(r)>i?s+o:s+String.fromCharCode((n=e,h=a,t=>t>h?n+(t-h):t<n?h+(t-n):t)(t.charCodeAt(d)+r)):s+t.charAt(d);var n,h}),""))({str:o,minCharCode:s,maxCharCode:r,placeholderChar:d,charStep:i})(m),y=[...m,...t.slice(e)];n(l),l!==o?this.rafId=requestAnimationFrame((()=>{this.step(y,e+a,a)})):h(l)}}m.defaults={str:"",speed:2,placeholderChar:"_",frameOffset:30,charOffset:20,charStep:10,minCharCode:32,maxCharCode:122,onProgress:h,onComplete:h};const l=class{constructor(e){t(this,e),this.cssTextAnimationSpeed=2,this.cssTextAnimationPlaceholderChar=" ",this.randomTextOptions={speed:this.cssTextAnimationSpeed,placeholderChar:this.cssTextAnimationPlaceholderChar,frameOffset:10,charOffset:20,charStep:15},this.animation="none",this.typography="detail",this.animateText=t=>{var e;const a=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".text");this.randomTextOptions.speed=this.cssTextAnimationSpeed,this.randomTextOptions.placeholderChar=this.cssTextAnimationPlaceholderChar,this.randomText=new m(Object.assign({str:t,onProgress:t=>{a.innerHTML=t}},this.randomTextOptions)),this.randomText.start()},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const t=window.getComputedStyle(this.host);this.cssTextAnimationSpeed=Number(t.getPropertyValue("--mds-text-animation-speed"));const e=t.getPropertyValue("--mds-text-animation-placeholder-char");this.cssTextAnimationPlaceholderChar='" "'!==e&&"' '"!==e?e:" "}}componentWillRender(){var t;const{tag:e}=i[this.typography];this.tag=null!==(t=this.tag)&&void 0!==t?t:e}componentDidLoad(){"yugop"===this.animation&&this.updateCSSCustomProps()}textHandler(t){"none"!==this.animation&&(this.randomText&&this.randomText.stop(),t&&this.animateText(t))}render(){return e(a,{key:"c2b975a38997a1ed8f5a6d49817398356a94cfc7"},e(this.tag,{key:"830f1caa4906a64330278da005b0cd10b014d21f",class:"text"},this.text?this.text:e("slot",null)))}get host(){return o(this)}static get watchers(){return{text:["textHandler"]}}};l.style=':host{--mds-text-selection-background:rgb(var(--label-sky-09));--mds-text-selection-color:rgb(var(--label-sky-01));--mds-text-line-clamp:3;--mds-text-animation-speed:0.5;--mds-text-animation-placeholder-char:" ";display:-ms-flexbox;display:flex;min-width:0}.text::-moz-selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text::selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text{cursor:inherit;display:inherit}:host([typography="snippet"]){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="hack"]){min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]){min-height:3rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:3rem;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h2"]){min-height:2.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:2.25rem;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h3"]){min-height:2.25rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.875rem;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h4"]){min-height:2rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.5rem;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h5"]){min-height:1.75rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h6"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]),:host([typography="h2"]),:host([typography="h3"]),:host([typography="h4"]),:host([typography="h5"]),:host([typography="h6"]){text-wrap:balance}:host([typography="action"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]){min-height:2rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"]){min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"]){min-height:1.25rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]),:host([typography="detail"]),:host([typography="caption"]){text-wrap:pretty}:host([typography="label"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="tip"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="option"]){min-height:0.625rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.625rem;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"][variant="read"]){min-height:2rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1.25rem;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"][variant="read"]){min-height:1.5rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1rem;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"][variant="read"]){min-height:1.25rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([tag="article"]),:host([tag="blockquote"]),:host([tag="dd"]),:host([tag="details"]),:host([tag="div"]),:host([tag="dl"]),:host([tag="dt"]),:host([tag="figcaption"]),:host([tag="h1"]),:host([tag="h2"]),:host([tag="h3"]),:host([tag="h4"]),:host([tag="h5"]),:host([tag="h6"]),:host([tag="label"]),:host([tag="legend"]),:host([tag="li"]),:host([tag="ol"]),:host([tag="p"]),:host([tag="pre"]),:host([tag="summary"]),:host([tag="ul"]){display:block}:host([tag="abbr"]),:host([tag="address"]),:host([tag="b"]),:host([tag="bdo"]),:host([tag="cite"]),:host([tag="code"]),:host([tag="del"]),:host([tag="dfn"]),:host([tag="em"]),:host([tag="i"]),:host([tag="ins"]),:host([tag="kbd"]),:host([tag="mark"]),:host([tag="q"]),:host([tag="rb"]),:host([tag="rt"]),:host([tag="ruby"]),:host([tag="s"]),:host([tag="samp"]),:host([tag="small"]),:host([tag="span"]),:host([tag="strong"]),:host([tag="sub"]),:host([tag="sup"]),:host([tag="time"]),:host([tag="u"]),:host([tag="var"]){display:inline}:host([tag="code"]){border-radius:0.25rem;padding-left:0.25rem;padding-right:0.25rem;padding-top:0.0625rem;padding-bottom:0.0625rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:rgb(var(--tone-neutral-09));-webkit-box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;color:rgb(var(--tone-neutral-03));-webkit-transition-property:color, background-color;transition-property:color, background-color}:host([truncate]) .text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}:host([truncate="word"]) .text{white-space:nowrap}@supports (line-clamp: 1){:host([truncate="all"]) .text{line-clamp:var(--mds-text-line-clamp, 1)}}@supports (display: -webkit-box){:host([truncate="all"]) .text{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:var(--mds-text-line-clamp, 1)}}abbr,address,article,b,bdo,blockquote,cite,code,dd,del,details,dfn,div,dl,dt,em,figcaption,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,legend,li,mark,ol,p,pre,q,rb,rt,ruby,s,samp,small,span,strong,sub,summary,sup,time,u,ul,var,wbr{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;overflow:inherit;text-overflow:inherit}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{l as mds_text}