@maggioli-design-system/magma 2.7.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +45 -0
  3. package/agents/lint.md +20 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/magma-components.cjs.js +1 -1
  6. package/dist/cjs/mds-banner_3.cjs.entry.js +7 -6
  7. package/dist/cjs/mds-book.cjs.entry.js +53 -5
  8. package/dist/cjs/mds-calendar_2.cjs.entry.js +1 -1
  9. package/dist/cjs/mds-emoji.cjs.entry.js +39 -9
  10. package/dist/cjs/mds-filter.cjs.entry.js +1 -1
  11. package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
  12. package/dist/cjs/mds-modal.cjs.entry.js +1 -1
  13. package/dist/cjs/mds-push-notification-item.cjs.entry.js +17 -4
  14. package/dist/cjs/mds-toast.cjs.entry.js +2 -2
  15. package/dist/collection/components/mds-accordion/AGENTS.md +2 -1
  16. package/dist/collection/components/mds-accordion/documentation.json +4 -2
  17. package/dist/collection/components/mds-accordion-item/AGENTS.md +2 -1
  18. package/dist/collection/components/mds-accordion-item/documentation.json +4 -2
  19. package/dist/collection/components/mds-accordion-timer/AGENTS.md +2 -1
  20. package/dist/collection/components/mds-accordion-timer/documentation.json +4 -2
  21. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +2 -1
  22. package/dist/collection/components/mds-accordion-timer-item/documentation.json +4 -2
  23. package/dist/collection/components/mds-author/AGENTS.md +2 -1
  24. package/dist/collection/components/mds-author/documentation.json +4 -2
  25. package/dist/collection/components/mds-avatar/AGENTS.md +2 -1
  26. package/dist/collection/components/mds-avatar/documentation.json +4 -2
  27. package/dist/collection/components/mds-avatar-stack/AGENTS.md +2 -1
  28. package/dist/collection/components/mds-avatar-stack/documentation.json +4 -2
  29. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +2 -1
  30. package/dist/collection/components/mds-avatar-stack-item/documentation.json +4 -2
  31. package/dist/collection/components/mds-badge/AGENTS.md +2 -1
  32. package/dist/collection/components/mds-badge/documentation.json +4 -2
  33. package/dist/collection/components/mds-banner/AGENTS.md +7 -4
  34. package/dist/collection/components/mds-banner/antipattern.md +5 -5
  35. package/dist/collection/components/mds-banner/documentation.json +40 -6
  36. package/dist/collection/components/mds-banner/mds-banner.css +7 -10
  37. package/dist/collection/components/mds-banner/mds-banner.js +30 -7
  38. package/dist/collection/components/mds-banner/pattern.md +4 -4
  39. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +2 -1
  40. package/dist/collection/components/mds-benchmark-bar/documentation.json +4 -2
  41. package/dist/collection/components/mds-bibliography/AGENTS.md +2 -1
  42. package/dist/collection/components/mds-bibliography/documentation.json +4 -2
  43. package/dist/collection/components/mds-book/AGENTS.md +9 -4
  44. package/dist/collection/components/mds-book/documentation.json +46 -6
  45. package/dist/collection/components/mds-book/mds-book.css +91 -7
  46. package/dist/collection/components/mds-book/mds-book.js +79 -7
  47. package/dist/collection/components/mds-book/pattern.md +14 -0
  48. package/dist/collection/components/mds-breadcrumb/AGENTS.md +2 -1
  49. package/dist/collection/components/mds-breadcrumb/documentation.json +4 -2
  50. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +2 -1
  51. package/dist/collection/components/mds-breadcrumb-item/documentation.json +4 -2
  52. package/dist/collection/components/mds-button/AGENTS.md +2 -1
  53. package/dist/collection/components/mds-button/documentation.json +4 -2
  54. package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -1
  55. package/dist/collection/components/mds-button-dropdown/documentation.json +4 -2
  56. package/dist/collection/components/mds-button-group/AGENTS.md +2 -1
  57. package/dist/collection/components/mds-button-group/documentation.json +4 -2
  58. package/dist/collection/components/mds-calendar/AGENTS.md +2 -1
  59. package/dist/collection/components/mds-calendar/documentation.json +4 -2
  60. package/dist/collection/components/mds-calendar-cell/AGENTS.md +2 -1
  61. package/dist/collection/components/mds-calendar-cell/documentation.json +4 -2
  62. package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +4 -1
  63. package/dist/collection/components/mds-card/AGENTS.md +2 -1
  64. package/dist/collection/components/mds-card/documentation.json +4 -2
  65. package/dist/collection/components/mds-card-content/AGENTS.md +2 -1
  66. package/dist/collection/components/mds-card-content/documentation.json +4 -2
  67. package/dist/collection/components/mds-card-footer/AGENTS.md +2 -1
  68. package/dist/collection/components/mds-card-footer/documentation.json +4 -2
  69. package/dist/collection/components/mds-card-header/AGENTS.md +2 -1
  70. package/dist/collection/components/mds-card-header/documentation.json +4 -2
  71. package/dist/collection/components/mds-card-media/AGENTS.md +2 -1
  72. package/dist/collection/components/mds-card-media/documentation.json +4 -2
  73. package/dist/collection/components/mds-chip/AGENTS.md +2 -1
  74. package/dist/collection/components/mds-chip/documentation.json +4 -2
  75. package/dist/collection/components/mds-details/AGENTS.md +2 -1
  76. package/dist/collection/components/mds-details/documentation.json +4 -2
  77. package/dist/collection/components/mds-dropdown/AGENTS.md +2 -1
  78. package/dist/collection/components/mds-dropdown/documentation.json +4 -2
  79. package/dist/collection/components/mds-emoji/AGENTS.md +2 -1
  80. package/dist/collection/components/mds-emoji/asset/simi.svg +1 -1
  81. package/dist/collection/components/mds-emoji/documentation.json +4 -2
  82. package/dist/collection/components/mds-emoji/mds-emoji.js +38 -8
  83. package/dist/collection/components/mds-entity/AGENTS.md +2 -1
  84. package/dist/collection/components/mds-entity/documentation.json +4 -2
  85. package/dist/collection/components/mds-file/AGENTS.md +2 -1
  86. package/dist/collection/components/mds-file/documentation.json +4 -2
  87. package/dist/collection/components/mds-file-preview/AGENTS.md +2 -1
  88. package/dist/collection/components/mds-file-preview/documentation.json +4 -2
  89. package/dist/collection/components/mds-filter/AGENTS.md +3 -2
  90. package/dist/collection/components/mds-filter/documentation.json +10 -2
  91. package/dist/collection/components/mds-filter/mds-filter.css +5 -1
  92. package/dist/collection/components/mds-filter-item/AGENTS.md +2 -1
  93. package/dist/collection/components/mds-filter-item/documentation.json +4 -2
  94. package/dist/collection/components/mds-header/AGENTS.md +2 -1
  95. package/dist/collection/components/mds-header/documentation.json +5 -3
  96. package/dist/collection/components/mds-header/pattern.md +3 -3
  97. package/dist/collection/components/mds-header-bar/AGENTS.md +2 -1
  98. package/dist/collection/components/mds-header-bar/documentation.json +4 -2
  99. package/dist/collection/components/mds-help/AGENTS.md +2 -1
  100. package/dist/collection/components/mds-help/documentation.json +4 -2
  101. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -1
  102. package/dist/collection/components/mds-horizontal-scroll/documentation.json +4 -2
  103. package/dist/collection/components/mds-hr/AGENTS.md +2 -1
  104. package/dist/collection/components/mds-hr/documentation.json +4 -2
  105. package/dist/collection/components/mds-icon/AGENTS.md +2 -1
  106. package/dist/collection/components/mds-icon/documentation.json +4 -2
  107. package/dist/collection/components/mds-img/AGENTS.md +2 -1
  108. package/dist/collection/components/mds-img/documentation.json +4 -2
  109. package/dist/collection/components/mds-input/AGENTS.md +2 -1
  110. package/dist/collection/components/mds-input/documentation.json +4 -2
  111. package/dist/collection/components/mds-input-date/AGENTS.md +2 -1
  112. package/dist/collection/components/mds-input-date/documentation.json +4 -2
  113. package/dist/collection/components/mds-input-date-range/AGENTS.md +2 -1
  114. package/dist/collection/components/mds-input-date-range/documentation.json +4 -2
  115. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +2 -1
  116. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +4 -2
  117. package/dist/collection/components/mds-input-field/AGENTS.md +2 -1
  118. package/dist/collection/components/mds-input-field/documentation.json +4 -2
  119. package/dist/collection/components/mds-input-otp/AGENTS.md +2 -1
  120. package/dist/collection/components/mds-input-otp/documentation.json +5 -3
  121. package/dist/collection/components/mds-input-otp/pattern.md +1 -1
  122. package/dist/collection/components/mds-input-range/AGENTS.md +2 -1
  123. package/dist/collection/components/mds-input-range/documentation.json +4 -2
  124. package/dist/collection/components/mds-input-range/mds-input-range.css +7 -5
  125. package/dist/collection/components/mds-input-select/AGENTS.md +2 -1
  126. package/dist/collection/components/mds-input-select/documentation.json +4 -2
  127. package/dist/collection/components/mds-input-switch/AGENTS.md +2 -1
  128. package/dist/collection/components/mds-input-switch/documentation.json +4 -2
  129. package/dist/collection/components/mds-input-tip/AGENTS.md +2 -1
  130. package/dist/collection/components/mds-input-tip/documentation.json +4 -2
  131. package/dist/collection/components/mds-input-tip-item/AGENTS.md +2 -1
  132. package/dist/collection/components/mds-input-tip-item/documentation.json +4 -2
  133. package/dist/collection/components/mds-input-upload/AGENTS.md +2 -1
  134. package/dist/collection/components/mds-input-upload/documentation.json +4 -2
  135. package/dist/collection/components/mds-keyboard/AGENTS.md +2 -1
  136. package/dist/collection/components/mds-keyboard/documentation.json +4 -2
  137. package/dist/collection/components/mds-keyboard-key/AGENTS.md +2 -1
  138. package/dist/collection/components/mds-keyboard-key/documentation.json +4 -2
  139. package/dist/collection/components/mds-kpi/AGENTS.md +2 -1
  140. package/dist/collection/components/mds-kpi/documentation.json +4 -2
  141. package/dist/collection/components/mds-kpi-item/AGENTS.md +2 -1
  142. package/dist/collection/components/mds-kpi-item/documentation.json +4 -2
  143. package/dist/collection/components/mds-label/AGENTS.md +2 -1
  144. package/dist/collection/components/mds-label/documentation.json +4 -2
  145. package/dist/collection/components/mds-link/AGENTS.md +2 -1
  146. package/dist/collection/components/mds-link/documentation.json +4 -2
  147. package/dist/collection/components/mds-list/AGENTS.md +2 -1
  148. package/dist/collection/components/mds-list/documentation.json +4 -2
  149. package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
  150. package/dist/collection/components/mds-list-item/documentation.json +4 -2
  151. package/dist/collection/components/mds-mention/AGENTS.md +2 -1
  152. package/dist/collection/components/mds-mention/documentation.json +4 -2
  153. package/dist/collection/components/mds-modal/AGENTS.md +5 -1
  154. package/dist/collection/components/mds-modal/documentation.json +5 -3
  155. package/dist/collection/components/mds-modal/mds-modal.css +136 -3
  156. package/dist/collection/components/mds-note/AGENTS.md +2 -1
  157. package/dist/collection/components/mds-note/documentation.json +4 -2
  158. package/dist/collection/components/mds-notification/AGENTS.md +2 -1
  159. package/dist/collection/components/mds-notification/documentation.json +4 -2
  160. package/dist/collection/components/mds-paginator/AGENTS.md +2 -1
  161. package/dist/collection/components/mds-paginator/documentation.json +4 -2
  162. package/dist/collection/components/mds-paginator-item/AGENTS.md +2 -1
  163. package/dist/collection/components/mds-paginator-item/documentation.json +4 -2
  164. package/dist/collection/components/mds-policy-ai/AGENTS.md +2 -1
  165. package/dist/collection/components/mds-policy-ai/documentation.json +4 -2
  166. package/dist/collection/components/mds-pref/AGENTS.md +2 -1
  167. package/dist/collection/components/mds-pref/documentation.json +4 -2
  168. package/dist/collection/components/mds-pref-animation/AGENTS.md +2 -1
  169. package/dist/collection/components/mds-pref-animation/documentation.json +4 -2
  170. package/dist/collection/components/mds-pref-consumption/AGENTS.md +2 -1
  171. package/dist/collection/components/mds-pref-consumption/documentation.json +4 -2
  172. package/dist/collection/components/mds-pref-contrast/AGENTS.md +2 -1
  173. package/dist/collection/components/mds-pref-contrast/documentation.json +4 -2
  174. package/dist/collection/components/mds-pref-language/AGENTS.md +2 -1
  175. package/dist/collection/components/mds-pref-language/documentation.json +4 -2
  176. package/dist/collection/components/mds-pref-language-item/AGENTS.md +2 -1
  177. package/dist/collection/components/mds-pref-language-item/documentation.json +4 -2
  178. package/dist/collection/components/mds-pref-mode/AGENTS.md +2 -1
  179. package/dist/collection/components/mds-pref-mode/documentation.json +4 -2
  180. package/dist/collection/components/mds-pref-theme/AGENTS.md +2 -1
  181. package/dist/collection/components/mds-pref-theme/documentation.json +4 -2
  182. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -1
  183. package/dist/collection/components/mds-pref-theme-item/documentation.json +4 -2
  184. package/dist/collection/components/mds-price-table/AGENTS.md +2 -1
  185. package/dist/collection/components/mds-price-table/documentation.json +4 -2
  186. package/dist/collection/components/mds-price-table-features/AGENTS.md +2 -1
  187. package/dist/collection/components/mds-price-table-features/documentation.json +4 -2
  188. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +2 -1
  189. package/dist/collection/components/mds-price-table-features-cell/documentation.json +4 -2
  190. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +2 -1
  191. package/dist/collection/components/mds-price-table-features-row/documentation.json +4 -2
  192. package/dist/collection/components/mds-price-table-header/AGENTS.md +2 -1
  193. package/dist/collection/components/mds-price-table-header/documentation.json +4 -2
  194. package/dist/collection/components/mds-price-table-list/AGENTS.md +2 -1
  195. package/dist/collection/components/mds-price-table-list/documentation.json +4 -2
  196. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +2 -1
  197. package/dist/collection/components/mds-price-table-list-item/documentation.json +4 -2
  198. package/dist/collection/components/mds-progress/AGENTS.md +2 -1
  199. package/dist/collection/components/mds-progress/documentation.json +4 -2
  200. package/dist/collection/components/mds-push-notification/AGENTS.md +3 -2
  201. package/dist/collection/components/mds-push-notification/documentation.json +6 -4
  202. package/dist/collection/components/mds-push-notification/pattern.md +2 -2
  203. package/dist/collection/components/mds-push-notification-item/AGENTS.md +6 -3
  204. package/dist/collection/components/mds-push-notification-item/documentation.json +38 -5
  205. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +1 -0
  206. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +40 -5
  207. package/dist/collection/components/mds-push-notification-item/pattern.md +3 -3
  208. package/dist/collection/components/mds-quote/AGENTS.md +2 -1
  209. package/dist/collection/components/mds-quote/documentation.json +4 -2
  210. package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -1
  211. package/dist/collection/components/mds-radial-menu/documentation.json +4 -2
  212. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +2 -1
  213. package/dist/collection/components/mds-radial-menu-item/documentation.json +4 -2
  214. package/dist/collection/components/mds-radial-progress/AGENTS.md +2 -1
  215. package/dist/collection/components/mds-radial-progress/documentation.json +4 -2
  216. package/dist/collection/components/mds-separator/AGENTS.md +2 -1
  217. package/dist/collection/components/mds-separator/documentation.json +4 -2
  218. package/dist/collection/components/mds-spinner/AGENTS.md +2 -1
  219. package/dist/collection/components/mds-spinner/documentation.json +5 -3
  220. package/dist/collection/components/mds-spinner/pattern.md +9 -6
  221. package/dist/collection/components/mds-status-bar/AGENTS.md +2 -1
  222. package/dist/collection/components/mds-status-bar/documentation.json +4 -2
  223. package/dist/collection/components/mds-stepper-bar/AGENTS.md +2 -1
  224. package/dist/collection/components/mds-stepper-bar/documentation.json +4 -2
  225. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +2 -1
  226. package/dist/collection/components/mds-stepper-bar-item/documentation.json +4 -2
  227. package/dist/collection/components/mds-tab/AGENTS.md +2 -1
  228. package/dist/collection/components/mds-tab/documentation.json +4 -2
  229. package/dist/collection/components/mds-tab-bar/AGENTS.md +2 -1
  230. package/dist/collection/components/mds-tab-bar/documentation.json +4 -2
  231. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +2 -1
  232. package/dist/collection/components/mds-tab-bar-item/documentation.json +4 -2
  233. package/dist/collection/components/mds-tab-item/AGENTS.md +2 -1
  234. package/dist/collection/components/mds-tab-item/documentation.json +4 -2
  235. package/dist/collection/components/mds-table/AGENTS.md +2 -1
  236. package/dist/collection/components/mds-table/documentation.json +4 -2
  237. package/dist/collection/components/mds-table-body/AGENTS.md +2 -1
  238. package/dist/collection/components/mds-table-body/documentation.json +4 -2
  239. package/dist/collection/components/mds-table-cell/AGENTS.md +2 -1
  240. package/dist/collection/components/mds-table-cell/documentation.json +4 -2
  241. package/dist/collection/components/mds-table-footer/AGENTS.md +2 -1
  242. package/dist/collection/components/mds-table-footer/documentation.json +4 -2
  243. package/dist/collection/components/mds-table-header/AGENTS.md +2 -1
  244. package/dist/collection/components/mds-table-header/documentation.json +4 -2
  245. package/dist/collection/components/mds-table-header-cell/AGENTS.md +2 -1
  246. package/dist/collection/components/mds-table-header-cell/documentation.json +4 -2
  247. package/dist/collection/components/mds-table-row/AGENTS.md +7 -2
  248. package/dist/collection/components/mds-table-row/documentation.json +11 -3
  249. package/dist/collection/components/mds-table-row/mds-table-row.css +1 -0
  250. package/dist/collection/components/mds-table-row/pattern.md +14 -1
  251. package/dist/collection/components/mds-text/AGENTS.md +2 -1
  252. package/dist/collection/components/mds-text/documentation.json +4 -2
  253. package/dist/collection/components/mds-toast/AGENTS.md +8 -5
  254. package/dist/collection/components/mds-toast/antipattern.md +2 -2
  255. package/dist/collection/components/mds-toast/documentation.json +40 -6
  256. package/dist/collection/components/mds-toast/mds-toast.js +26 -4
  257. package/dist/collection/components/mds-toast/pattern.md +2 -2
  258. package/dist/collection/components/mds-toast-region/AGENTS.md +2 -1
  259. package/dist/collection/components/mds-toast-region/documentation.json +5 -3
  260. package/dist/collection/components/mds-toast-region/pattern.md +10 -2
  261. package/dist/collection/components/mds-tooltip/AGENTS.md +2 -1
  262. package/dist/collection/components/mds-tooltip/documentation.json +4 -2
  263. package/dist/collection/components/mds-tree/AGENTS.md +3 -2
  264. package/dist/collection/components/mds-tree/documentation.json +5 -3
  265. package/dist/collection/components/mds-tree/pattern.md +13 -13
  266. package/dist/collection/components/mds-tree-item/AGENTS.md +2 -1
  267. package/dist/collection/components/mds-tree-item/documentation.json +4 -2
  268. package/dist/collection/components/mds-url-view/AGENTS.md +2 -1
  269. package/dist/collection/components/mds-url-view/documentation.json +4 -2
  270. package/dist/collection/components/mds-usage/AGENTS.md +2 -1
  271. package/dist/collection/components/mds-usage/documentation.json +4 -2
  272. package/dist/collection/components/mds-video-wall/AGENTS.md +2 -1
  273. package/dist/collection/components/mds-video-wall/documentation.json +4 -2
  274. package/dist/collection/components/mds-zero/AGENTS.md +2 -1
  275. package/dist/collection/components/mds-zero/documentation.json +4 -2
  276. package/dist/components/mds-banner.js +1 -1
  277. package/dist/components/mds-book.js +1 -1
  278. package/dist/components/mds-calendar-cell.js +1 -1
  279. package/dist/components/mds-calendar.js +1 -1
  280. package/dist/components/mds-emoji.js +1 -1
  281. package/dist/components/mds-filter.js +1 -1
  282. package/dist/components/mds-header.js +1 -1
  283. package/dist/components/mds-input-date-range.js +1 -1
  284. package/dist/components/mds-input-date.js +1 -1
  285. package/dist/components/mds-input-range.js +1 -1
  286. package/dist/components/mds-modal.js +1 -1
  287. package/dist/components/mds-policy-ai.js +1 -1
  288. package/dist/components/mds-push-notification-item.js +1 -1
  289. package/dist/components/mds-status-bar.js +1 -1
  290. package/dist/components/mds-toast.js +1 -1
  291. package/dist/components/p-BeZGLnJJ.js +1 -0
  292. package/dist/components/p-Chk4rI7N.js +1 -0
  293. package/dist/components/{p-CNpL55c-.js → p-Cwg4vtOr.js} +1 -1
  294. package/dist/components/p-Dzkiu-es.js +1 -0
  295. package/dist/documentation.json +406 -143
  296. package/dist/esm/loader.js +1 -1
  297. package/dist/esm/magma-components.js +1 -1
  298. package/dist/esm/mds-banner_3.entry.js +7 -6
  299. package/dist/esm/mds-book.entry.js +53 -5
  300. package/dist/esm/mds-calendar_2.entry.js +1 -1
  301. package/dist/esm/mds-emoji.entry.js +39 -9
  302. package/dist/esm/mds-filter.entry.js +1 -1
  303. package/dist/esm/mds-input-range.entry.js +1 -1
  304. package/dist/esm/mds-modal.entry.js +1 -1
  305. package/dist/esm/mds-push-notification-item.entry.js +17 -4
  306. package/dist/esm/mds-toast.entry.js +2 -2
  307. package/dist/esm-es5/loader.js +1 -1
  308. package/dist/esm-es5/magma-components.js +1 -1
  309. package/dist/esm-es5/mds-banner_3.entry.js +2 -2
  310. package/dist/esm-es5/mds-book.entry.js +33 -26
  311. package/dist/esm-es5/mds-calendar_2.entry.js +8 -8
  312. package/dist/esm-es5/mds-emoji.entry.js +40 -31
  313. package/dist/esm-es5/mds-filter.entry.js +1 -1
  314. package/dist/esm-es5/mds-input-range.entry.js +7 -7
  315. package/dist/esm-es5/mds-modal.entry.js +15 -15
  316. package/dist/esm-es5/mds-push-notification-item.entry.js +7 -3
  317. package/dist/esm-es5/mds-toast.entry.js +2 -2
  318. package/dist/hydrate/index.js +130 -32
  319. package/dist/hydrate/index.mjs +130 -32
  320. package/dist/lint/core/checks.d.ts +5 -0
  321. package/dist/lint/core/checks.js +17 -0
  322. package/dist/lint/core/data.d.ts +4 -1
  323. package/dist/lint/core/data.js +3 -1
  324. package/dist/lint/eslint/index.js +6 -4
  325. package/dist/magma-components/magma-components.esm.js +1 -1
  326. package/dist/magma-components/{p-354a5b47.entry.js → p-02b106c2.entry.js} +1 -1
  327. package/dist/magma-components/{p-17ccfc01.system.entry.js → p-3bc65166.system.entry.js} +55 -48
  328. package/dist/magma-components/p-425ca155.entry.js +1 -0
  329. package/dist/magma-components/p-523f0c30.system.entry.js +80 -0
  330. package/dist/magma-components/{p-07d35da6.entry.js → p-5306606b.entry.js} +1 -1
  331. package/dist/magma-components/{p-1b67b149.system.entry.js → p-798f460b.system.entry.js} +1 -1
  332. package/dist/magma-components/{p-e5f893f9.system.entry.js → p-7db14777.system.entry.js} +1 -1
  333. package/dist/magma-components/{p-e8452cce.entry.js → p-8641b7b2.entry.js} +1 -1
  334. package/dist/magma-components/{p-3a7c4314.system.entry.js → p-95ccf46d.system.entry.js} +4 -4
  335. package/dist/magma-components/p-968a2237.entry.js +1 -0
  336. package/dist/magma-components/p-9dd9eadd.entry.js +1 -0
  337. package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
  338. package/dist/magma-components/{p-160cd923.entry.js → p-a25327a1.entry.js} +1 -1
  339. package/dist/magma-components/p-a67381bf.entry.js +1 -0
  340. package/dist/magma-components/{p-c2c693ed.system.entry.js → p-b27cb1ac.system.entry.js} +14 -5
  341. package/dist/magma-components/{p-6df26141.system.entry.js → p-c0286dc3.system.entry.js} +1 -1
  342. package/dist/magma-components/p-c89060ec.system.entry.js +41 -0
  343. package/dist/magma-components/p-eb12be86.system.entry.js +24 -0
  344. package/dist/magma-components/p-ebeb3fff.entry.js +1 -0
  345. package/dist/stats.json +383 -139
  346. package/dist/types/components/mds-banner/mds-banner.d.ts +9 -2
  347. package/dist/types/components/mds-book/mds-book.d.ts +19 -2
  348. package/dist/types/components/mds-emoji/mds-emoji.d.ts +1 -0
  349. package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +10 -1
  350. package/dist/types/components/mds-toast/mds-toast.d.ts +7 -1
  351. package/dist/types/components.d.ts +56 -12
  352. package/package.json +8 -8
  353. package/dist/components/p-B8hgyXdE.js +0 -1
  354. package/dist/components/p-CYK2Xr_v.js +0 -1
  355. package/dist/components/p-DbVGGhs_.js +0 -1
  356. package/dist/magma-components/p-14b13850.entry.js +0 -1
  357. package/dist/magma-components/p-386bb24e.system.entry.js +0 -41
  358. package/dist/magma-components/p-6d96d223.entry.js +0 -1
  359. package/dist/magma-components/p-79fd07e7.system.entry.js +0 -80
  360. package/dist/magma-components/p-7e7391fd.entry.js +0 -1
  361. package/dist/magma-components/p-df387755.entry.js +0 -1
  362. package/dist/magma-components/p-ee780f82.system.entry.js +0 -20
  363. package/dist/magma-components/p-f2211b1f.entry.js +0 -1
@@ -4,6 +4,11 @@ import { type Finding, type LintCustomProperty, type LintElement } from './eleme
4
4
  export declare const validAttributeValues: (element: LintElement, component: ComponentInfo) => Finding[];
5
5
  /** `disabled="false"`: the attribute is there, so the boolean is not reliably off. */
6
6
  export declare const noFalseBoolean: (element: LintElement, component: ComponentInfo) => Finding[];
7
+ /**
8
+ * `<mds-toast deletable>`: a deprecated prop, which goes in the next major. The message is the
9
+ * `@deprecated` text of the prop, which says what to use instead.
10
+ */
11
+ export declare const noDeprecated: (element: LintElement, component: ComponentInfo) => Finding[];
7
12
  /**
8
13
  * An icon-only control without a name, and an image without alt. A component that takes an
9
14
  * icon next to a label or a default slot is icon-only when it shows the icon alone; without
@@ -32,6 +32,23 @@ export const noFalseBoolean = (element, component) => element.attributes
32
32
  node: attribute.node,
33
33
  message: `${attribute.name}="false" on <${element.tag}>: remove the attribute to turn ${attribute.name} off. A form-associated component reads any value as on, "false" included, as a native control does; from a framework, bind a real boolean to the property.`,
34
34
  }));
35
+ /**
36
+ * `<mds-toast deletable>`: a deprecated prop, which goes in the next major. The message is the
37
+ * `@deprecated` text of the prop, which says what to use instead.
38
+ */
39
+ export const noDeprecated = (element, component) => {
40
+ const found = [];
41
+ for (const attribute of element.attributes) {
42
+ const deprecation = component.props.get(attribute.name)?.deprecation;
43
+ if (deprecation == null)
44
+ continue;
45
+ found.push({
46
+ node: attribute.node,
47
+ message: `${attribute.name} on <${element.tag}> is deprecated: ${deprecation}`,
48
+ });
49
+ }
50
+ return found;
51
+ };
35
52
  /** The props, attributes and properties that give an element its accessible name. */
36
53
  const NAME = ['aria-label', 'aria-labelledby', 'ariaLabel', 'ariaLabelledby', 'title'];
37
54
  /**
@@ -19,6 +19,8 @@ export interface PropInfo {
19
19
  boolean: boolean;
20
20
  /** Every value it takes, when the type is a closed union of literals; undefined when open. */
21
21
  values?: string[];
22
+ /** What to use instead, when the prop is deprecated (its `@deprecated` text). */
23
+ deprecation?: string;
22
24
  }
23
25
  export interface ComponentInfo {
24
26
  tag: string;
@@ -74,8 +76,9 @@ interface DocsProp {
74
76
  name: string;
75
77
  attr?: string;
76
78
  values?: DocsValue[];
79
+ deprecation?: string;
77
80
  }
78
- export declare const propInfo: ({ name, attr, values }: DocsProp) => PropInfo;
81
+ export declare const propInfo: ({ name, attr, values, deprecation }: DocsProp) => PropInfo;
79
82
  /** The components of the installed version, by tag. */
80
83
  export declare const loadComponents: (settings?: MagmaSettings) => Map<string, ComponentInfo>;
81
84
  /**
@@ -84,7 +84,7 @@ export const readData = (kind, settings) => readJson(locate(kind, settings), (js
84
84
  export const magmaRoot = (settings) => path.dirname(path.dirname(locate('documentation', settings)));
85
85
  /** The types a union may hold next to its literals and still be closed. */
86
86
  const EMPTY = new Set(['undefined', 'null']);
87
- export const propInfo = ({ name, attr, values = [] }) => {
87
+ export const propInfo = ({ name, attr, values = [], deprecation }) => {
88
88
  const literals = values.filter((value) => value.value !== undefined);
89
89
  const closed = literals.length > 0 &&
90
90
  values.every((value) => value.value !== undefined || EMPTY.has(value.type));
@@ -93,6 +93,8 @@ export const propInfo = ({ name, attr, values = [] }) => {
93
93
  ...(attr ? { attr } : {}),
94
94
  boolean: values.some((value) => value.type === 'boolean'),
95
95
  ...(closed ? { values: literals.map((value) => String(value.value)) } : {}),
96
+ // the JSDoc wraps it over several lines
97
+ ...(deprecation != null ? { deprecation: deprecation.replace(/\s+/g, ' ').trim() } : {}),
96
98
  };
97
99
  };
98
100
  /** The components of the installed version, by tag. */
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import path from 'node:path';
13
13
  import { lintGuideUrl, loadComponents, loadPalette, loadStyles, } from '../core/data.js';
14
- import { accessibleName, noFalseBoolean, noInternalTokens, noRawPaletteClasses, validAttributeValues, } from '../core/checks.js';
14
+ import { accessibleName, noDeprecated, noFalseBoolean, noInternalTokens, noRawPaletteClasses, validAttributeValues, } from '../core/checks.js';
15
15
  import { fromAngular, fromHtml, fromJsx } from './adapters.js';
16
16
  /** A check that applies to the Magma components only. */
17
17
  const onComponents = (check) => (element, data) => {
@@ -52,6 +52,7 @@ const rules = {
52
52
  'valid-attribute-values': createRule('valid-attribute-values', 'A Magma prop takes one of the values of its union.', onComponents(validAttributeValues)),
53
53
  'no-false-boolean': createRule('no-false-boolean', 'A boolean prop is turned off by removing its attribute, never with "false".', onComponents(noFalseBoolean)),
54
54
  'accessible-name': createRule('accessible-name', 'An icon-only Magma control has a label or an aria-label, a Magma image an alt.', onComponents(accessibleName)),
55
+ 'no-deprecated': createRule('no-deprecated', 'A deprecated Magma prop is replaced before the next major removes it.', onComponents(noDeprecated)),
55
56
  'no-raw-palette-classes': createRule('no-raw-palette-classes', "Colour classes name a role, not Tailwind's palette or a raw Magma step.", (element, data) => (element.classes.length ? noRawPaletteClasses(element, data.palette()) : [])),
56
57
  'no-internal-tokens': createRule('no-internal-tokens', 'An inline style or a Tailwind class sets or reads only the custom properties a Magma component promises.', (element, data) => element.customProperties.length || element.classes.some(({ name }) => name.includes('--mds-'))
57
58
  ? noInternalTokens(element, data.styles())
@@ -63,9 +64,9 @@ const plugin = {
63
64
  configs: {},
64
65
  };
65
66
  /**
66
- * `recommended`: what is broken or not accessible is an error, the palette and an internal
67
- * custom property a warning, for a product that already exists; `strict`: everything an
68
- * error, for a new one.
67
+ * `recommended`: what is broken or not accessible is an error, the palette, an internal
68
+ * custom property and a deprecated prop a warning, for a product that already exists;
69
+ * `strict`: everything an error, for a new one.
69
70
  */
70
71
  plugin.configs.recommended = {
71
72
  name: '@maggioli-design-system/magma/eslint/recommended',
@@ -74,6 +75,7 @@ plugin.configs.recommended = {
74
75
  'magma/valid-attribute-values': 'error',
75
76
  'magma/no-false-boolean': 'error',
76
77
  'magma/accessible-name': 'error',
78
+ 'magma/no-deprecated': 'warn',
77
79
  'magma/no-raw-palette-classes': 'warn',
78
80
  'magma/no-internal-tokens': 'warn',
79
81
  },
@@ -1 +1 @@
1
- import{p as e,a,c as n,w as t,N as i,H as d,b as l}from"./p-CvLLN-QH.js";export{s as setNonce}from"./p-CvLLN-QH.js";import{g as o}from"./p-DQuL1Twl.js";var r=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const n=a.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&n.appendChild(t[e].cloneNode(!0));return n}};(()=>{a.isDev&&!a.isTesting&&n("Running in development mode."),a.cloneNodeFix&&r(d.prototype);const l=a.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null,s=import.meta.url,o=a.scriptDataOpts&&(l||{})["data-opts"]||{};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((async e=>(await o(),l(JSON.parse('[["p-3b691cc3",[[257,"mds-text",{"animation":[513],"tag":[1537],"text":[513],"truncate":[513],"typography":[513],"variant":[513]},null,{"text":[{"textHandler":0}]}]]],["p-785fa112",[[321,"mds-button",{"autoFocus":[4,"auto-focus"],"label":[1537],"animation":[513],"icon":[1537],"iconPosition":[513,"icon-position"],"type":[513],"name":[513],"value":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513]},null,{"disabled":[{"disabledChanged":0}],"label":[{"labelChanged":0}],"await":[{"awaitChanged":0}],"type":[{"handleTypeChange":0}],"href":[{"handleHrefChange":0}],"variant":[{"handleVariantChange":0}],"aria-labelledby":[{"handleAriaLabelledbyChange":0}]}],[1,"mds-spinner",{"running":[1540]},null,{"running":[{"handleRunning":0}]}],[1,"mds-icon",{"name":[513],"svgHTML":[32],"_iconHref":[32],"setSvgPath":[64]},null,{"name":[{"updateIcon":0}]}]]],["p-7f74ec99",[[65,"mds-input-upload",{"accept":[513],"disabled":[516],"name":[513],"maxFileSize":[514,"max-file-size"],"maxFiles":[514,"max-files"],"sort":[513],"initialValue":[16],"dragging":[32],"files":[32],"progress":[32],"animateText":[32],"activeSort":[32],"formDisabled":[32],"getFiles":[64],"getFilesError":[64],"reset":[64]},null,{"initialValue":[{"updateInitialValue":0}],"name":[{"handleNameChange":0}],"sort":[{"handleSortChange":0}],"maxFiles":[{"handleMaxFilesChange":0}]}]]],["p-bf35627d",[[65,"mds-input-otp",{"accessibleName":[1,"aria-label"],"length":[2],"autosubmit":[516],"disabled":[516],"value":[1537],"digits":[32],"formDisabled":[32]},null,{"value":[{"valueChanged":0}]}]]],["p-dfab370b",[[257,"mds-breadcrumb",{"hideBack":[4,"hide-back"]},[[0,"mdsBreadcrumbItemSelect","activedEventHandler"]]]]],["p-4ab2eb7e",[[1,"mds-pref-language-item",{"code":[513],"selected":[516]},null,{"code":[{"handleCodeChange":0}]}]]],["p-59f06b9c",[[257,"mds-dropdown",{"hideArrow":[516,"hide-arrow"],"arrowPadding":[2,"arrow-padding"],"disableAutoPlacement":[4,"disable-auto-placement"],"backdrop":[516],"flip":[4],"interaction":[513],"target":[1],"offset":[2],"placement":[1],"disableShift":[4,"disable-shift"],"shiftPadding":[2,"shift-padding"],"disableSmooth":[4,"disable-smooth"],"strategy":[1],"visible":[1540],"zIndex":[2,"z-index"]},null,{"hideArrow":[{"hideArrowChanged":0}],"arrowPadding":[{"arrowPaddingChanged":0}],"disableAutoPlacement":[{"disableAutoPlacementChanged":0}],"backdrop":[{"backdropChanged":0}],"flip":[{"flipChanged":0}],"offset":[{"offsetChanged":0}],"placement":[{"placementChanged":0}],"disableShift":[{"disableShiftChanged":0}],"shiftPadding":[{"shiftPaddingChanged":0}],"strategy":[{"strategyChanged":0}],"target":[{"targetChanged":0}],"visible":[{"visibleChanged":0}]}]]],["p-732d09b6",[[65,"mds-input-date",{"accessibleName":[1,"aria-label"],"value":[513],"name":[513],"variant":[1537],"min":[1537],"max":[1537],"delay":[514],"size":[513],"hideToday":[516,"hide-today"],"disabled":[516],"readonly":[516],"required":[516],"formDisabled":[32],"empty":[32],"isValid":[32],"touched":[32],"calendarKey":[32],"dropdownRef":[32],"hasFocus":[32],"focusInput":[64],"setValue":[64],"getErrors":[64]},[[0,"invalid","invalidHandler"]],{"value":[{"handleValue":0}],"max":[{"validationRulesChanged":0}],"min":[{"validationRulesChanged":0}],"required":[{"validationRulesChanged":0}]}]]],["p-cb88fa71",[[1,"mds-policy-ai",{"headline":[513],"description":[513],"variant":[513],"href":[513]}]]],["p-52211fa3",[[257,"mds-avatar-stack",{"size":[513],"total":[514],"itemsCount":[32]}]]],["p-4aa94380",[[321,"mds-input-date-range",{"accessibleName":[1,"aria-label"],"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"delay":[514],"size":[513],"hideToday":[516,"hide-today"],"dualCalendar":[516,"dual-calendar"],"name":[513],"disabled":[516],"calendarKey":[32],"internalStartDate":[32],"internalEndDate":[32],"visibleCalendarDate":[32],"dropdownRef":[32],"hasPreselection":[32],"formDisabled":[32],"preselect":[64]},null,{"startDate":[{"handleStartDateChange":0}],"endDate":[{"handleEndDateChange":0}],"min":[{"handleRangeChange":0}],"max":[{"handleRangeChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["p-10983da0",[[257,"mds-pref-language",{"size":[513],"set":[1537],"showDropdown":[32]},[[0,"mdsPrefLanguageItemSelect","handleItemSelect"]],{"set":[{"handleSetChange":0}]}]]],["p-62d9eaca",[[257,"mds-pref-theme",{"size":[513],"name":[1537],"scheme":[1537],"cornerShape":[1537,"corner-shape"],"showDropdown":[32]},[[0,"mdsPrefThemeItemSelect","handleItemSelect"]],{"name":[{"handleNameChange":0}],"scheme":[{"handleSchemeChange":0}],"cornerShape":[{"handleCornerShapeChange":0}]}]]],["p-d94281cb",[[257,"mds-table-header",{"selectable":[4],"selectAll":[32],"hasActions":[32],"indeterminate":[32],"hasSelection":[32],"setSelection":[64],"setActions":[64]}]]],["p-b3332c5f",[[257,"mds-entity",{"await":[516],"icon":[513],"src":[513],"initials":[513],"tone":[513],"variant":[513],"hasDetails":[32],"hasActions":[32]}]]],["p-8f1c529f",[[1,"mds-pref-animation",{"size":[513],"mode":[1537]},null,{"mode":[{"modeChanged":0}]}]]],["p-bcca26d9",[[1,"mds-pref-consumption",{"size":[513],"mode":[1537]},null,{"mode":[{"modeChanged":0}]}]]],["p-f2ef884c",[[1,"mds-pref-contrast",{"size":[513],"mode":[1537]},null,{"mode":[{"modeChanged":0}]}]]],["p-dc618cae",[[1,"mds-pref-mode",{"size":[513],"mode":[1537],"transition":[1537],"lockedScheme":[513,"locked-scheme"]},null,{"mode":[{"modeChanged":0}]}]]],["p-14b13850",[[257,"mds-push-notification-item",{"datetime":[1537],"dateFormat":[513,"date-format"],"deletable":[1540],"icon":[513],"initials":[1537],"message":[513],"preview":[513],"src":[513],"subject":[513],"tone":[513],"variant":[513],"hasActions":[32],"hasBadge":[32]},null,{"deletable":[{"handleDeletableChange":0}]}]]],["p-f045b018",[[321,"mds-button-dropdown",{"label":[1],"autoFocus":[4,"auto-focus"],"icon":[1537],"type":[513],"name":[513],"value":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513],"formDisabled":[32]}]]],["p-d638bbb0",[[257,"mds-header",{"appearance":[1537],"appearanceSet":[513,"appearance-set"],"autoHide":[514,"auto-hide"],"hideBackdrop":[516,"hide-backdrop"],"menu":[513],"nav":[513],"threshold":[514],"visibility":[1537],"hasMenu":[32],"isOpened":[32],"setOpened":[64]},null,{"menu":[{"onMenuChangedHandler":0}],"nav":[{"onNavChangedHandler":0}],"appearanceSet":[{"onAppearanceSetChangedHandler":0}],"visibility":[{"handleVisibilityChange":0}]}]]],["p-1c00d0f7",[[257,"mds-keyboard",{"test":[1537],"try":[516],"testPassed":[32]},null,{"try":[{"handleTryProperty":0}]}]]],["p-f9b601de",[[1,"mds-radial-menu-item",{"tooltip":[513],"icon":[1537],"tone":[513],"variant":[513],"size":[513]}]]],["p-ad383f92",[[257,"mds-status-bar",{"description":[513],"overflow":[513],"position":[513],"visible":[1540],"hide":[64]},null,{"visible":[{"handleVisbilityProp":0}]}]]],["p-32418266",[[1,"mds-stepper-bar-item",{"label":[1],"step":[4],"badge":[1540],"icon":[1],"iconChecked":[1,"icon-checked"],"done":[516],"current":[1540],"value":[513],"typography":[1],"isDone":[32],"isCurrent":[32],"index":[32]},null,{"done":[{"selectedHandler":0}],"current":[{"currentHandler":0}]}]]],["p-381f49ea",[[257,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]},null,{"selected":[{"handleSelected":0}]}]]],["p-bfd95736",[[257,"mds-benchmark-bar",{"label":[1537],"alias":[1],"typography":[1],"value":[2],"variant":[513],"size":[513]},null,{"label":[{"labelChanged":0}]}]]],["p-c2758b81",[[1,"mds-breadcrumb-item",{"selected":[1540],"label":[513]}]]],["p-42ab27de",[[257,"mds-header-bar",{"menu":[513],"nav":[513],"hasNav":[32],"isOpened":[32],"setOpened":[64]}]]],["p-4de89d1b",[[257,"mds-horizontal-scroll",{"controls":[1537],"navigation":[513],"snap":[513],"hasCompatibility":[32],"showForward":[32],"showBack":[32]},null,{"navigation":[{"watchNavigation":0}]}]]],["p-73f4f67e",[[257,"mds-input-date-range-preselection",{"selected":[1540],"start":[513],"end":[513]}]]],["p-ac9feb04",[[321,"mds-input-select",{"accessibleName":[1,"aria-label"],"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"rows":[514],"size":[520],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"formDisabled":[32],"setValue":[64]},null,{"value":[{"valueChanged":0}],"required":[{"requiredChanged":0}],"name":[{"nameChanged":0}],"disabled":[{"disabledChanged":0}],"placeholder":[{"placeholderChanged":0}],"size":[{"sizeChanged":0}]}]]],["p-3a9a75e5",[[1,"mds-label",{"label":[513],"variant":[513],"tone":[513],"truncate":[513],"typography":[1],"deletable":[4]}]]],["p-f267ff68",[[1,"mds-mention",{"deletable":[516],"icon":[513],"label":[513],"size":[513]}]]],["p-ed133270",[[257,"mds-note",{"deletable":[4],"variant":[513]}]]],["p-f4351160",[[1,"mds-pref-theme-item",{"label":[1537],"name":[513],"scheme":[513],"selected":[516]}]]],["p-53acdc6b",[[257,"mds-push-notification",{"visible":[1540],"behavior":[1],"show":[64],"hide":[64],"removeNotification":[64]},null,{"visible":[{"visibleChanged":0}]}]]],["p-2006cfeb",[[257,"mds-radial-menu",{"angleStart":[514,"angle-start"],"angleEnd":[514,"angle-end"],"radius":[514],"direction":[513],"opened":[1540],"disc":[1540],"backdrop":[516],"interaction":[513],"icon":[1537],"variant":[513],"tone":[513],"size":[513]},null,{"disc":[{"onDiscChanged":0}],"backdrop":[{"backdropChanged":0}],"interaction":[{"onInteractionChange":0}],"angleStart":[{"onAngleStartChange":0}],"angleEnd":[{"onAngleEndChange":0}],"radius":[{"onRadiusChange":0}],"size":[{"onSizeChange":0}],"opened":[{"onOpenedChange":0}]}]]],["p-5e8df58d",[[257,"mds-table-row",{"interactive":[516],"overlayActions":[516,"overlay-actions"],"selectable":[516],"selected":[1540],"selection":[516],"value":[520],"hasActions":[32],"sizerWidth":[32]},null,{"selected":[{"selectedChanged":0}]}]]],["p-df387755",[[257,"mds-toast",{"duration":[1538],"visible":[1540],"variant":[513],"tone":[513],"position":[1537],"deletable":[4],"hasActions":[32],"stacked":[32]},null,{"visible":[{"visibleChanged":0}],"duration":[{"durationChanged":0}]}]]],["p-379f51a6",[[257,"mds-tree-item",{"actions":[513],"async":[516],"depth":[514],"label":[1],"toggle":[513],"togglePosition":[513,"toggle-position"],"appearance":[513],"expanded":[1540],"truncate":[513],"icon":[1],"hasActions":[32],"hasChildren":[32],"currentToggleIcon":[32],"await":[32],"resolvedActions":[32],"expand":[64],"refreshActions":[64]},null,{"toggle":[{"handleIconChange":0}],"expanded":[{"handleExpandedChange":0}],"actions":[{"handleActionsChange":0}]}]]],["p-3dccd446",[[1,"mds-url-view",{"icon":[513],"label":[513],"src":[513],"loading":[513]}]]],["p-9332358d",[[1,"mds-file",{"suffix":[513],"description":[1],"filename":[1],"preview":[1],"hideDownloadedIcon":[4,"hide-downloaded-icon"],"format":[1537],"wasDownloaded":[32]},null,{"filename":[{"handleFilename":0}]}]]],["p-07d35da6",[[257,"mds-filter",{"autoReset":[516,"auto-reset"],"label":[1],"multiple":[516],"reset":[516],"active":[32],"itemsSelected":[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]]],["p-3ca004c3",[[1,"mds-paginator",{"pages":[2],"currentPage":[1538,"current-page"]}]]],["p-0d90c991",[[1,"mds-keyboard-key",{"name":[513],"pressed":[516]}]]],["p-6093aa8e",[[1,"mds-kpi-item",{"label":[1],"description":[1],"threshold":[2],"icon":[1],"isIntersecting":[32]}]]],["p-ce42e251",[[257,"mds-list-item",{"typography":[513],"variant":[1],"icon":[1]}]]],["p-2f39f4e4",[[257,"mds-tab-bar-item",{"icon":[1],"label":[1537],"selected":[1540],"typography":[1]},null,{"label":[{"labelChanged":0}]}]]],["p-d218ae47",[[257,"mds-table",{"interactive":[4],"selectable":[4],"selection":[1540],"sorting":[513],"hasBatchActions":[32],"selectedRows":[32],"updateSelection":[64],"updateActions":[64],"selectAll":[64]},null,{"interactive":[{"onTableInteractive":0}],"selectable":[{"onTableSelectable":0}]}]]],["p-d9f92ff8",[[257,"mds-usage",{"variant":[513],"alias":[1],"icon":[1]}]]],["p-0b0ca53c",[[257,"mds-accordion-item",{"typography":[1],"selected":[1540],"label":[1]}]]],["p-59aa4994",[[1,"mds-bibliography",{"format":[1],"author":[1],"name":[1],"publisher":[1],"date":[1],"location":[1],"rel":[1],"typography":[1],"variant":[1],"url":[1]}]]],["p-da9bc02a",[[321,"mds-input-field",{"label":[1025],"message":[1025],"variant":[1537]},null,{"label":[{"labelChanged":0}]}]]],["p-e8452cce",[[321,"mds-input-range",{"formatValue":[16],"name":[513],"max":[2],"min":[2],"step":[2],"disabled":[1540],"value":[1538],"progress":[32],"formDisabled":[32]},null,{"disabled":[{"disabledChanged":0}],"value":[{"valueChanged":0}],"min":[{"minChanged":0}],"max":[{"maxChanged":0}],"step":[{"stepChanged":0}]}]]],["p-00aa9a51",[[273,"mds-link",{"label":[513],"href":[513],"target":[1],"icon":[513],"iconPosition":[513,"icon-position"],"variant":[513],"tone":[513],"underline":[513]}]]],["p-05ef91a5",[[1,"mds-notification",{"target":[1],"value":[1538],"dismissed":[1540],"strategy":[1537],"max":[514],"describing":[32]},null,{"strategy":[{"strategyHandler":0}]}]]],["p-d87ecd68",[[257,"mds-pref",{"size":[513],"controller":[1540],"showReload":[32]},[[0,"mdsPrefChange","handlePrefChange"],[0,"mdsPrefThemeChange","handleThemeChange"]],{"controller":[{"handleControllerChange":0}],"size":[{"handleSizeChange":0}]}]]],["p-d3ac9a1a",[[257,"mds-price-table-features",{"label":[1]}]]],["p-c27206ca",[[257,"mds-price-table-features-cell",{"type":[513]}]]],["p-c58157cf",[[257,"mds-price-table-list",{"hasItems":[32]}]]],["p-2c5e5cd1",[[257,"mds-price-table-list-item",{"supported":[516],"typography":[513]}]]],["p-a26c05b6",[[257,"mds-quote",{"typography":[1],"tag":[1]}]]],["p-47db3155",[[257,"mds-table-footer",{"selectable":[4],"hasActions":[32]}]]],["p-fba648e0",[[257,"mds-accordion",{"multiple":[4],"disableClose":[4,"disable-close"]},[[0,"mdsAccordionItemSelect","selectedEventHandler"],[0,"mdsAccordionItemUnselect","unselectedEventHandler"]]]]],["p-0417391b",[[257,"mds-accordion-timer",{"duration":[514],"paused":[516],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{"paused":[{"handlePaused":0}]}]]],["p-8b8a6662",[[257,"mds-author",{"hasAvatar":[32]}]]],["p-6d96d223",[[1,"mds-book",{"alt":[1],"author":[1],"binding":[513],"format":[513],"loading":[1],"name":[1],"pages":[2],"pose":[513],"publisher":[1],"src":[1],"coverUrl":[32],"imageError":[32],"imageRatio":[32]},[[1,"pointerenter","pointerEnterHandler"],[1,"pointermove","pointerMoveHandler"],[1,"pointerdown","pointerDownHandler"],[1,"pointerup","pointerUpHandler"],[1,"pointercancel","pointerLostHandler"],[0,"lostpointercapture","pointerLostHandler"],[1,"pointerleave","pointerLeaveHandler"],[2,"click","clickHandler"]],{"format":[{"formatHandler":0}],"pages":[{"pagesHandler":0}],"pose":[{"poseHandler":0}],"src":[{"srcHandler":0}]}]]],["p-4cd21f19",[[257,"mds-button-group"]]],["p-904c1222",[[257,"mds-card",{"disableAutoGrid":[516,"disable-auto-grid"],"layout":[32]}]]],["p-384ab014",[[257,"mds-card-content"]]],["p-2a26b614",[[257,"mds-card-footer"]]],["p-de38f745",[[257,"mds-card-header",{"hasActions":[32]}]]],["p-cf4f4561",[[257,"mds-card-media"]]],["p-f4181b35",[[257,"mds-details",{"opened":[1540],"isOpened":[32],"hasIcon":[32]},null,{"opened":[{"validateOpened":0}]}]]],["p-160cd923",[[1,"mds-emoji",{"name":[513],"agree":[64],"smile":[64],"disagree":[64],"startThinking":[64],"stopThinking":[64],"startBlinking":[64],"stopBlinking":[64],"stopFollowMouse":[64],"startFollowMouse":[64]},null,{"name":[{"checkNameChanged":0}]}]]],["p-ca1143bc",[[1,"mds-hr"]]],["p-103465cf",[[257,"mds-kpi"]]],["p-f3f88f32",[[257,"mds-list"]]],["p-c597ad47",[[257,"mds-price-table"]]],["p-b86144d4",[[257,"mds-price-table-features-row",{"cellPercWidth":[32]}]]],["p-09c80fdb",[[257,"mds-price-table-header"]]],["p-3caf6a26",[[257,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"navigation":[513],"currentItem":[32]},null,{"itemsDone":[{"itemDone":0}]}]]],["p-84bf333b",[[257,"mds-tab-bar",null,[[0,"mdsTabBarItemSelect","changeEventHandler"]]]]],["p-c7b2ebb5",[[257,"mds-table-body",{"interactive":[516],"selection":[516]}]]],["p-2c28056d",[[257,"mds-toast-region",{"position":[513],"max":[514]},null,{"position":[{"positionChanged":0}],"max":[{"maxChanged":0}]}]]],["p-9fdd477a",[[257,"mds-tree",{"appearance":[513],"async":[516],"label":[1],"toggle":[513],"togglePosition":[513,"toggle-position"],"expanded":[1540],"truncate":[513],"actions":[513]},null,{"expanded":[{"handleExpandedChange":0}],"toggle":[{"handleToggleChange":0}],"togglePosition":[{"handleTogglePositionChange":0}],"appearance":[{"handleAppearanceChange":0}],"actions":[{"handleActionsChange":0}],"truncate":[{"handleTruncateChange":0}]}]]],["p-29fbb7cf",[[257,"mds-video-wall",{"autoplay":[4],"loop":[4],"muted":[4],"noise":[1],"poster":[1],"preload":[1],"src":[1],"hasContent":[32]}]]],["p-56c5ca6f",[[257,"mds-zero"]]],["p-5cf87a7f",[[65,"mds-input",{"accessibleName":[1,"aria-label"],"autocomplete":[513],"autofocus":[516],"await":[516],"controlsLayout":[513,"controls-layout"],"controlsIcon":[513,"controls-icon"],"datalist":[16],"disabled":[516],"icon":[1537],"max":[520],"maxlength":[1538],"mic":[516],"min":[520],"minlength":[514],"name":[513],"pattern":[513],"placeholder":[513],"readonly":[516],"required":[516],"variant":[1537],"tip":[513],"size":[513],"step":[513],"type":[513],"typography":[513],"value":[1537],"hasFocus":[32],"isRecording":[32],"currentLengthLabel":[32],"countVariant":[32],"isPasswordVisible":[32],"formDisabled":[32],"addValidator":[64],"removeValidator":[64],"hasValidator":[64],"getErrors":[64],"setFocus":[64],"getInputElement":[64]},[[0,"invalid","invalidHandler"]],{"max":[{"validationRulesChanged":0}],"maxlength":[{"validationRulesChanged":0},{"maxLengthChanged":0}],"min":[{"validationRulesChanged":0}],"minlength":[{"validationRulesChanged":0}],"pattern":[{"validationRulesChanged":0}],"required":[{"validationRulesChanged":0}],"type":[{"validationRulesChanged":0}],"value":[{"valueChanged":0}],"variant":[{"variantChanged":0}],"disabled":[{"disabledChanged":0}]}]]],["p-d331ff5c",[[1,"mds-filter-item",{"selected":[1540],"label":[513],"icon":[513],"value":[513],"count":[513],"disabled":[516]}]]],["p-7e7391fd",[[257,"mds-modal",{"accessibleName":[1,"aria-label"],"opened":[1540],"hideBackdrop":[1540,"hide-backdrop"],"position":[1537],"animation":[513],"overflow":[513],"interaction":[513],"hasBottom":[32],"hasTop":[32],"hasWindow":[32],"windowHeaderHeight":[32],"windowFooterHeight":[32],"close":[64]},null,{"opened":[{"handleOpenProp":0}],"hideBackdrop":[{"handleHideBackdropProp":0}]}]]],["p-198ea5d8",[[1,"mds-img",{"alt":[1537],"crossorigin":[1],"height":[1],"loading":[1],"referrerpolicy":[1],"sizes":[1],"src":[1],"srcset":[1],"srcsetConsumption":[1,"srcset-consumption"],"width":[1],"imageConsumptionLoaded":[32],"imageError":[32]},null,{"srcsetConsumption":[{"srcsetConsumptionHandler":0}],"src":[{"srcHandler":0}]}]]],["p-84d0d701",[[1,"mds-avatar-stack-item",{"count":[514],"initials":[1537],"src":[513],"tone":[513],"variant":[513]}]]],["p-60727165",[[1,"mds-file-preview",{"deletable":[516],"downloadable":[516],"description":[513],"filename":[513],"filesize":[513],"message":[513],"truncate":[513],"src":[513],"suffix":[513],"icon":[513],"variant":[513],"format":[1537]},null,{"filename":[{"handleFilename":0}]}]]],["p-2c997b47",[[1,"mds-table-header-cell",{"sortable":[516],"label":[513],"sortKey":[513,"sort-key"],"direction":[1537]},null,{"direction":[{"directionHandler":0}]}]]],["p-ea503851",[[257,"mds-paginator-item",{"icon":[513],"selected":[516],"disabled":[516]}]]],["p-8d7093af",[[1,"mds-separator"]]],["p-f2211b1f",[[257,"mds-banner",{"variant":[513],"tone":[513],"hideCockade":[516,"hide-cockade"],"deletable":[4],"headline":[1],"icon":[1],"closeButtonVariant":[32],"hasActions":[32]},null,{"variant":[{"variantHandler":0}]}],[1,"mds-chip",{"clickable":[1540],"deletable":[4],"disabled":[516],"icon":[1],"label":[513],"selected":[1540],"selectable":[516],"variant":[513],"tone":[513]},null,{"selectable":[{"handleSelectableProp":0}],"selected":[{"handleSelectedProp":0}]}],[257,"mds-help",{"icon":[1],"disableAutoPlacement":[516,"disable-auto-placement"],"placement":[513]}]]],["p-7dd0364b",[[1,"mds-avatar",{"icon":[513],"initials":[1537],"count":[1538],"src":[513],"tone":[513],"variant":[1537],"imageFailed":[32],"loaded":[32]},null,{"initials":[{"initialsHandler":0}],"count":[{"countHandler":0}],"src":[{"srcHandler":0}]}]]],["p-ef4ee9ca",[[257,"mds-tooltip",{"hideArrow":[4,"hide-arrow"],"arrowPadding":[2,"arrow-padding"],"disableAutoPlacement":[516,"disable-auto-placement"],"flip":[4],"target":[513],"offset":[2],"placement":[513],"relation":[513],"typography":[1],"disableShift":[4,"disable-shift"],"shiftPadding":[2,"shift-padding"],"strategy":[513],"visible":[1540]},null,{"hideArrow":[{"hideArrowChanged":0}],"disableAutoPlacement":[{"disableAutoPlacementChanged":0}],"flip":[{"flipChanged":0}],"offset":[{"offsetChanged":0}],"placement":[{"placementChanged":0}],"disableShift":[{"disableShiftChanged":0}],"shiftPadding":[{"shiftPaddingChanged":0}],"strategy":[{"strategyChanged":0}],"relation":[{"relationChanged":0}],"visible":[{"visibleChanged":0}],"target":[{"targetChanged":0}]}]]],["p-354a5b47",[[257,"mds-calendar",{"singlePicker":[4,"single-picker"],"hidePreviousButton":[4,"hide-previous-button"],"hideNextButton":[4,"hide-next-button"],"disableMonthYearSelection":[4,"disable-month-year-selection"],"hidePreselection":[4,"hide-preselection"],"hideToday":[4,"hide-today"],"viewDate":[513,"view-date"],"hoverDate":[513,"hover-date"],"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"hasPreselection":[32],"currentDate":[32],"weekDaysinMonth":[32],"weekdays":[32],"startDateIdentifier":[32],"endDateIdentifier":[32],"isFirstClick":[32],"currentView":[32],"selectedYear":[32],"internalStartDate":[32],"internalEndDate":[32],"currentMonth":[32],"currentYear":[32],"updateCurrentDate":[64]},null,{"startDate":[{"handleStartDate":0}],"endDate":[{"handleEndDate":0}],"viewDate":[{"handleViewDate":0}],"hoverDate":[{"handleHoverDate":0}]}],[1,"mds-calendar-cell",{"month":[513],"label":[513],"date":[513],"orientation":[513],"preview":[516],"selection":[513],"disabled":[516],"today":[516]}]]],["p-fa44d0d2",[[321,"mds-input-switch",{"autofocus":[516],"checked":[1540],"disabled":[1540],"explicit":[516],"icon":[513],"indeterminate":[1540],"name":[513],"size":[513],"type":[513],"typography":[513],"variant":[513],"value":[1537],"formDisabled":[32],"knobSliding":[32],"hasText":[32]},null,{"disabled":[{"disabledChanged":0}],"checked":[{"checkedChanged":0}],"value":[{"valueChanged":0}],"explicit":[{"explicitChanged":0}]}],[257,"mds-table-cell",{"value":[520]}]]],["p-81212e34",[[257,"mds-badge",{"label":[1537],"variant":[513],"tone":[513],"typography":[513]},null,{"label":[{"labelChanged":0}]}]]],["p-bc19b136",[[257,"mds-input-tip-item",{"variant":[513],"expanded":[1540]},null,{"expanded":[{"handleEcpandedChanged":0}]}],[257,"mds-input-tip",{"active":[516],"position":[513]}]]],["p-857ae762",[[1,"mds-progress",{"progress":[2],"direction":[513],"variant":[513],"typography":[1],"size":[513],"steps":[1],"leftOut":[32]},null,{"steps":[{"stepsChanged":0}],"aria-hidden":[{"ariaHiddenChanged":0}]}],[1,"mds-radial-progress",{"progress":[2],"icon":[513],"typography":[513],"variant":[513],"animatedProgress":[32]},null,{"progress":[{"onProgressChange":0}]}]]],["p-2a6c2a41",[[1,"mds-tab-item",{"await":[516],"selected":[1540],"disabled":[1540],"icon":[1],"label":[513],"iconPosition":[1,"icon-position"],"type":[1],"size":[513],"direction":[513],"animation":[513],"value":[513],"href":[513],"expanded":[4],"isSelected":[32],"hasText":[32]},null,{"selected":[{"validateActive":0}]}],[257,"mds-tab",{"direction":[1537],"scrollbar":[1540],"animation":[513],"fill":[1540],"overflow":[1540],"size":[1537],"sliderWidth":[32],"sliderHeight":[32],"sliderOffsetX":[32],"sliderOffsetY":[32],"sliderSlides":[32],"overflowLeft":[32],"overflowRight":[32],"navigation":[32],"hasContent":[32]},[[0,"mdsTabItemSelect","changeEventHandler"],[0,"mdsTabItemFocus","focusEventHandler"]],{"animation":[{"handleAnimationChange":0}],"direction":[{"handleDirectionChange":0}],"scrollbar":[{"handleScrollbarChange":0}],"fill":[{"handleFillChange":0}],"overflow":[{"handleOverflowChange":0}],"size":[{"handleSizeChange":0}]}]]]]'),e))));
1
+ import{p as e,a,c as n,w as t,N as i,H as d,b as l}from"./p-CvLLN-QH.js";export{s as setNonce}from"./p-CvLLN-QH.js";import{g as o}from"./p-DQuL1Twl.js";var r=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const n=a.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&n.appendChild(t[e].cloneNode(!0));return n}};(()=>{a.isDev&&!a.isTesting&&n("Running in development mode."),a.cloneNodeFix&&r(d.prototype);const l=a.scriptDataOpts?t.document&&Array.from(t.document.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null,s=import.meta.url,o=a.scriptDataOpts&&(l||{})["data-opts"]||{};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((async e=>(await o(),l(JSON.parse('[["p-3b691cc3",[[257,"mds-text",{"animation":[513],"tag":[1537],"text":[513],"truncate":[513],"typography":[513],"variant":[513]},null,{"text":[{"textHandler":0}]}]]],["p-785fa112",[[321,"mds-button",{"autoFocus":[4,"auto-focus"],"label":[1537],"animation":[513],"icon":[1537],"iconPosition":[513,"icon-position"],"type":[513],"name":[513],"value":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513]},null,{"disabled":[{"disabledChanged":0}],"label":[{"labelChanged":0}],"await":[{"awaitChanged":0}],"type":[{"handleTypeChange":0}],"href":[{"handleHrefChange":0}],"variant":[{"handleVariantChange":0}],"aria-labelledby":[{"handleAriaLabelledbyChange":0}]}],[1,"mds-spinner",{"running":[1540]},null,{"running":[{"handleRunning":0}]}],[1,"mds-icon",{"name":[513],"svgHTML":[32],"_iconHref":[32],"setSvgPath":[64]},null,{"name":[{"updateIcon":0}]}]]],["p-7f74ec99",[[65,"mds-input-upload",{"accept":[513],"disabled":[516],"name":[513],"maxFileSize":[514,"max-file-size"],"maxFiles":[514,"max-files"],"sort":[513],"initialValue":[16],"dragging":[32],"files":[32],"progress":[32],"animateText":[32],"activeSort":[32],"formDisabled":[32],"getFiles":[64],"getFilesError":[64],"reset":[64]},null,{"initialValue":[{"updateInitialValue":0}],"name":[{"handleNameChange":0}],"sort":[{"handleSortChange":0}],"maxFiles":[{"handleMaxFilesChange":0}]}]]],["p-bf35627d",[[65,"mds-input-otp",{"accessibleName":[1,"aria-label"],"length":[2],"autosubmit":[516],"disabled":[516],"value":[1537],"digits":[32],"formDisabled":[32]},null,{"value":[{"valueChanged":0}]}]]],["p-dfab370b",[[257,"mds-breadcrumb",{"hideBack":[4,"hide-back"]},[[0,"mdsBreadcrumbItemSelect","activedEventHandler"]]]]],["p-4ab2eb7e",[[1,"mds-pref-language-item",{"code":[513],"selected":[516]},null,{"code":[{"handleCodeChange":0}]}]]],["p-59f06b9c",[[257,"mds-dropdown",{"hideArrow":[516,"hide-arrow"],"arrowPadding":[2,"arrow-padding"],"disableAutoPlacement":[4,"disable-auto-placement"],"backdrop":[516],"flip":[4],"interaction":[513],"target":[1],"offset":[2],"placement":[1],"disableShift":[4,"disable-shift"],"shiftPadding":[2,"shift-padding"],"disableSmooth":[4,"disable-smooth"],"strategy":[1],"visible":[1540],"zIndex":[2,"z-index"]},null,{"hideArrow":[{"hideArrowChanged":0}],"arrowPadding":[{"arrowPaddingChanged":0}],"disableAutoPlacement":[{"disableAutoPlacementChanged":0}],"backdrop":[{"backdropChanged":0}],"flip":[{"flipChanged":0}],"offset":[{"offsetChanged":0}],"placement":[{"placementChanged":0}],"disableShift":[{"disableShiftChanged":0}],"shiftPadding":[{"shiftPaddingChanged":0}],"strategy":[{"strategyChanged":0}],"target":[{"targetChanged":0}],"visible":[{"visibleChanged":0}]}]]],["p-732d09b6",[[65,"mds-input-date",{"accessibleName":[1,"aria-label"],"value":[513],"name":[513],"variant":[1537],"min":[1537],"max":[1537],"delay":[514],"size":[513],"hideToday":[516,"hide-today"],"disabled":[516],"readonly":[516],"required":[516],"formDisabled":[32],"empty":[32],"isValid":[32],"touched":[32],"calendarKey":[32],"dropdownRef":[32],"hasFocus":[32],"focusInput":[64],"setValue":[64],"getErrors":[64]},[[0,"invalid","invalidHandler"]],{"value":[{"handleValue":0}],"max":[{"validationRulesChanged":0}],"min":[{"validationRulesChanged":0}],"required":[{"validationRulesChanged":0}]}]]],["p-cb88fa71",[[1,"mds-policy-ai",{"headline":[513],"description":[513],"variant":[513],"href":[513]}]]],["p-52211fa3",[[257,"mds-avatar-stack",{"size":[513],"total":[514],"itemsCount":[32]}]]],["p-4aa94380",[[321,"mds-input-date-range",{"accessibleName":[1,"aria-label"],"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"delay":[514],"size":[513],"hideToday":[516,"hide-today"],"dualCalendar":[516,"dual-calendar"],"name":[513],"disabled":[516],"calendarKey":[32],"internalStartDate":[32],"internalEndDate":[32],"visibleCalendarDate":[32],"dropdownRef":[32],"hasPreselection":[32],"formDisabled":[32],"preselect":[64]},null,{"startDate":[{"handleStartDateChange":0}],"endDate":[{"handleEndDateChange":0}],"min":[{"handleRangeChange":0}],"max":[{"handleRangeChange":0}],"disabled":[{"handleDisabledChange":0}]}]]],["p-10983da0",[[257,"mds-pref-language",{"size":[513],"set":[1537],"showDropdown":[32]},[[0,"mdsPrefLanguageItemSelect","handleItemSelect"]],{"set":[{"handleSetChange":0}]}]]],["p-62d9eaca",[[257,"mds-pref-theme",{"size":[513],"name":[1537],"scheme":[1537],"cornerShape":[1537,"corner-shape"],"showDropdown":[32]},[[0,"mdsPrefThemeItemSelect","handleItemSelect"]],{"name":[{"handleNameChange":0}],"scheme":[{"handleSchemeChange":0}],"cornerShape":[{"handleCornerShapeChange":0}]}]]],["p-d94281cb",[[257,"mds-table-header",{"selectable":[4],"selectAll":[32],"hasActions":[32],"indeterminate":[32],"hasSelection":[32],"setSelection":[64],"setActions":[64]}]]],["p-b3332c5f",[[257,"mds-entity",{"await":[516],"icon":[513],"src":[513],"initials":[513],"tone":[513],"variant":[513],"hasDetails":[32],"hasActions":[32]}]]],["p-8f1c529f",[[1,"mds-pref-animation",{"size":[513],"mode":[1537]},null,{"mode":[{"modeChanged":0}]}]]],["p-bcca26d9",[[1,"mds-pref-consumption",{"size":[513],"mode":[1537]},null,{"mode":[{"modeChanged":0}]}]]],["p-f2ef884c",[[1,"mds-pref-contrast",{"size":[513],"mode":[1537]},null,{"mode":[{"modeChanged":0}]}]]],["p-dc618cae",[[1,"mds-pref-mode",{"size":[513],"mode":[1537],"transition":[1537],"lockedScheme":[513,"locked-scheme"]},null,{"mode":[{"modeChanged":0}]}]]],["p-425ca155",[[257,"mds-push-notification-item",{"datetime":[1537],"dateFormat":[513,"date-format"],"dismissible":[1540],"deletable":[1540],"icon":[513],"initials":[1537],"message":[513],"preview":[513],"src":[513],"subject":[513],"tone":[513],"variant":[513],"hasActions":[32],"hasBadge":[32]},null,{"dismissible":[{"handleDismissibleChange":0}],"deletable":[{"handleDeletableChange":0}]}]]],["p-f045b018",[[321,"mds-button-dropdown",{"label":[1],"autoFocus":[4,"auto-focus"],"icon":[1537],"type":[513],"name":[513],"value":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513],"formDisabled":[32]}]]],["p-d638bbb0",[[257,"mds-header",{"appearance":[1537],"appearanceSet":[513,"appearance-set"],"autoHide":[514,"auto-hide"],"hideBackdrop":[516,"hide-backdrop"],"menu":[513],"nav":[513],"threshold":[514],"visibility":[1537],"hasMenu":[32],"isOpened":[32],"setOpened":[64]},null,{"menu":[{"onMenuChangedHandler":0}],"nav":[{"onNavChangedHandler":0}],"appearanceSet":[{"onAppearanceSetChangedHandler":0}],"visibility":[{"handleVisibilityChange":0}]}]]],["p-1c00d0f7",[[257,"mds-keyboard",{"test":[1537],"try":[516],"testPassed":[32]},null,{"try":[{"handleTryProperty":0}]}]]],["p-f9b601de",[[1,"mds-radial-menu-item",{"tooltip":[513],"icon":[1537],"tone":[513],"variant":[513],"size":[513]}]]],["p-ad383f92",[[257,"mds-status-bar",{"description":[513],"overflow":[513],"position":[513],"visible":[1540],"hide":[64]},null,{"visible":[{"handleVisbilityProp":0}]}]]],["p-32418266",[[1,"mds-stepper-bar-item",{"label":[1],"step":[4],"badge":[1540],"icon":[1],"iconChecked":[1,"icon-checked"],"done":[516],"current":[1540],"value":[513],"typography":[1],"isDone":[32],"isCurrent":[32],"index":[32]},null,{"done":[{"selectedHandler":0}],"current":[{"currentHandler":0}]}]]],["p-381f49ea",[[257,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]},null,{"selected":[{"handleSelected":0}]}]]],["p-bfd95736",[[257,"mds-benchmark-bar",{"label":[1537],"alias":[1],"typography":[1],"value":[2],"variant":[513],"size":[513]},null,{"label":[{"labelChanged":0}]}]]],["p-c2758b81",[[1,"mds-breadcrumb-item",{"selected":[1540],"label":[513]}]]],["p-42ab27de",[[257,"mds-header-bar",{"menu":[513],"nav":[513],"hasNav":[32],"isOpened":[32],"setOpened":[64]}]]],["p-4de89d1b",[[257,"mds-horizontal-scroll",{"controls":[1537],"navigation":[513],"snap":[513],"hasCompatibility":[32],"showForward":[32],"showBack":[32]},null,{"navigation":[{"watchNavigation":0}]}]]],["p-73f4f67e",[[257,"mds-input-date-range-preselection",{"selected":[1540],"start":[513],"end":[513]}]]],["p-ac9feb04",[[321,"mds-input-select",{"accessibleName":[1,"aria-label"],"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"rows":[514],"size":[520],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"formDisabled":[32],"setValue":[64]},null,{"value":[{"valueChanged":0}],"required":[{"requiredChanged":0}],"name":[{"nameChanged":0}],"disabled":[{"disabledChanged":0}],"placeholder":[{"placeholderChanged":0}],"size":[{"sizeChanged":0}]}]]],["p-3a9a75e5",[[1,"mds-label",{"label":[513],"variant":[513],"tone":[513],"truncate":[513],"typography":[1],"deletable":[4]}]]],["p-f267ff68",[[1,"mds-mention",{"deletable":[516],"icon":[513],"label":[513],"size":[513]}]]],["p-ed133270",[[257,"mds-note",{"deletable":[4],"variant":[513]}]]],["p-f4351160",[[1,"mds-pref-theme-item",{"label":[1537],"name":[513],"scheme":[513],"selected":[516]}]]],["p-53acdc6b",[[257,"mds-push-notification",{"visible":[1540],"behavior":[1],"show":[64],"hide":[64],"removeNotification":[64]},null,{"visible":[{"visibleChanged":0}]}]]],["p-2006cfeb",[[257,"mds-radial-menu",{"angleStart":[514,"angle-start"],"angleEnd":[514,"angle-end"],"radius":[514],"direction":[513],"opened":[1540],"disc":[1540],"backdrop":[516],"interaction":[513],"icon":[1537],"variant":[513],"tone":[513],"size":[513]},null,{"disc":[{"onDiscChanged":0}],"backdrop":[{"backdropChanged":0}],"interaction":[{"onInteractionChange":0}],"angleStart":[{"onAngleStartChange":0}],"angleEnd":[{"onAngleEndChange":0}],"radius":[{"onRadiusChange":0}],"size":[{"onSizeChange":0}],"opened":[{"onOpenedChange":0}]}]]],["p-5e8df58d",[[257,"mds-table-row",{"interactive":[516],"overlayActions":[516,"overlay-actions"],"selectable":[516],"selected":[1540],"selection":[516],"value":[520],"hasActions":[32],"sizerWidth":[32]},null,{"selected":[{"selectedChanged":0}]}]]],["p-a67381bf",[[257,"mds-toast",{"duration":[1538],"visible":[1540],"variant":[513],"tone":[513],"position":[1537],"dismissible":[4],"deletable":[4],"hasActions":[32],"stacked":[32]},null,{"visible":[{"visibleChanged":0}],"duration":[{"durationChanged":0}]}]]],["p-379f51a6",[[257,"mds-tree-item",{"actions":[513],"async":[516],"depth":[514],"label":[1],"toggle":[513],"togglePosition":[513,"toggle-position"],"appearance":[513],"expanded":[1540],"truncate":[513],"icon":[1],"hasActions":[32],"hasChildren":[32],"currentToggleIcon":[32],"await":[32],"resolvedActions":[32],"expand":[64],"refreshActions":[64]},null,{"toggle":[{"handleIconChange":0}],"expanded":[{"handleExpandedChange":0}],"actions":[{"handleActionsChange":0}]}]]],["p-3dccd446",[[1,"mds-url-view",{"icon":[513],"label":[513],"src":[513],"loading":[513]}]]],["p-9332358d",[[1,"mds-file",{"suffix":[513],"description":[1],"filename":[1],"preview":[1],"hideDownloadedIcon":[4,"hide-downloaded-icon"],"format":[1537],"wasDownloaded":[32]},null,{"filename":[{"handleFilename":0}]}]]],["p-5306606b",[[257,"mds-filter",{"autoReset":[516,"auto-reset"],"label":[1],"multiple":[516],"reset":[516],"active":[32],"itemsSelected":[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]]],["p-3ca004c3",[[1,"mds-paginator",{"pages":[2],"currentPage":[1538,"current-page"]}]]],["p-0d90c991",[[1,"mds-keyboard-key",{"name":[513],"pressed":[516]}]]],["p-6093aa8e",[[1,"mds-kpi-item",{"label":[1],"description":[1],"threshold":[2],"icon":[1],"isIntersecting":[32]}]]],["p-ce42e251",[[257,"mds-list-item",{"typography":[513],"variant":[1],"icon":[1]}]]],["p-2f39f4e4",[[257,"mds-tab-bar-item",{"icon":[1],"label":[1537],"selected":[1540],"typography":[1]},null,{"label":[{"labelChanged":0}]}]]],["p-d218ae47",[[257,"mds-table",{"interactive":[4],"selectable":[4],"selection":[1540],"sorting":[513],"hasBatchActions":[32],"selectedRows":[32],"updateSelection":[64],"updateActions":[64],"selectAll":[64]},null,{"interactive":[{"onTableInteractive":0}],"selectable":[{"onTableSelectable":0}]}]]],["p-d9f92ff8",[[257,"mds-usage",{"variant":[513],"alias":[1],"icon":[1]}]]],["p-0b0ca53c",[[257,"mds-accordion-item",{"typography":[1],"selected":[1540],"label":[1]}]]],["p-59aa4994",[[1,"mds-bibliography",{"format":[1],"author":[1],"name":[1],"publisher":[1],"date":[1],"location":[1],"rel":[1],"typography":[1],"variant":[1],"url":[1]}]]],["p-da9bc02a",[[321,"mds-input-field",{"label":[1025],"message":[1025],"variant":[1537]},null,{"label":[{"labelChanged":0}]}]]],["p-8641b7b2",[[321,"mds-input-range",{"formatValue":[16],"name":[513],"max":[2],"min":[2],"step":[2],"disabled":[1540],"value":[1538],"progress":[32],"formDisabled":[32]},null,{"disabled":[{"disabledChanged":0}],"value":[{"valueChanged":0}],"min":[{"minChanged":0}],"max":[{"maxChanged":0}],"step":[{"stepChanged":0}]}]]],["p-00aa9a51",[[273,"mds-link",{"label":[513],"href":[513],"target":[1],"icon":[513],"iconPosition":[513,"icon-position"],"variant":[513],"tone":[513],"underline":[513]}]]],["p-05ef91a5",[[1,"mds-notification",{"target":[1],"value":[1538],"dismissed":[1540],"strategy":[1537],"max":[514],"describing":[32]},null,{"strategy":[{"strategyHandler":0}]}]]],["p-d87ecd68",[[257,"mds-pref",{"size":[513],"controller":[1540],"showReload":[32]},[[0,"mdsPrefChange","handlePrefChange"],[0,"mdsPrefThemeChange","handleThemeChange"]],{"controller":[{"handleControllerChange":0}],"size":[{"handleSizeChange":0}]}]]],["p-d3ac9a1a",[[257,"mds-price-table-features",{"label":[1]}]]],["p-c27206ca",[[257,"mds-price-table-features-cell",{"type":[513]}]]],["p-c58157cf",[[257,"mds-price-table-list",{"hasItems":[32]}]]],["p-2c5e5cd1",[[257,"mds-price-table-list-item",{"supported":[516],"typography":[513]}]]],["p-a26c05b6",[[257,"mds-quote",{"typography":[1],"tag":[1]}]]],["p-47db3155",[[257,"mds-table-footer",{"selectable":[4],"hasActions":[32]}]]],["p-fba648e0",[[257,"mds-accordion",{"multiple":[4],"disableClose":[4,"disable-close"]},[[0,"mdsAccordionItemSelect","selectedEventHandler"],[0,"mdsAccordionItemUnselect","unselectedEventHandler"]]]]],["p-0417391b",[[257,"mds-accordion-timer",{"duration":[514],"paused":[516],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{"paused":[{"handlePaused":0}]}]]],["p-8b8a6662",[[257,"mds-author",{"hasAvatar":[32]}]]],["p-968a2237",[[1,"mds-book",{"alt":[1],"author":[1],"binding":[513],"format":[513],"loading":[1],"name":[1],"pages":[2],"pose":[513],"publisher":[1],"publisherLogo":[1,"publisher-logo"],"src":[1],"coverUrl":[32],"imageError":[32],"imageRatio":[32],"logoError":[32],"logoUrl":[32]},[[1,"pointerenter","pointerEnterHandler"],[1,"pointermove","pointerMoveHandler"],[1,"pointerdown","pointerDownHandler"],[1,"pointerup","pointerUpHandler"],[1,"pointercancel","pointerLostHandler"],[0,"lostpointercapture","pointerLostHandler"],[1,"pointerleave","pointerLeaveHandler"],[2,"click","clickHandler"]],{"format":[{"formatHandler":0}],"pages":[{"pagesHandler":0}],"pose":[{"poseHandler":0}],"publisherLogo":[{"publisherLogoHandler":0}],"src":[{"srcHandler":0}]}]]],["p-4cd21f19",[[257,"mds-button-group"]]],["p-904c1222",[[257,"mds-card",{"disableAutoGrid":[516,"disable-auto-grid"],"layout":[32]}]]],["p-384ab014",[[257,"mds-card-content"]]],["p-2a26b614",[[257,"mds-card-footer"]]],["p-de38f745",[[257,"mds-card-header",{"hasActions":[32]}]]],["p-cf4f4561",[[257,"mds-card-media"]]],["p-f4181b35",[[257,"mds-details",{"opened":[1540],"isOpened":[32],"hasIcon":[32]},null,{"opened":[{"validateOpened":0}]}]]],["p-a25327a1",[[1,"mds-emoji",{"name":[513],"agree":[64],"smile":[64],"disagree":[64],"startThinking":[64],"stopThinking":[64],"startBlinking":[64],"stopBlinking":[64],"stopFollowMouse":[64],"startFollowMouse":[64]},null,{"name":[{"checkNameChanged":0}]}]]],["p-ca1143bc",[[1,"mds-hr"]]],["p-103465cf",[[257,"mds-kpi"]]],["p-f3f88f32",[[257,"mds-list"]]],["p-c597ad47",[[257,"mds-price-table"]]],["p-b86144d4",[[257,"mds-price-table-features-row",{"cellPercWidth":[32]}]]],["p-09c80fdb",[[257,"mds-price-table-header"]]],["p-3caf6a26",[[257,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"navigation":[513],"currentItem":[32]},null,{"itemsDone":[{"itemDone":0}]}]]],["p-84bf333b",[[257,"mds-tab-bar",null,[[0,"mdsTabBarItemSelect","changeEventHandler"]]]]],["p-c7b2ebb5",[[257,"mds-table-body",{"interactive":[516],"selection":[516]}]]],["p-2c28056d",[[257,"mds-toast-region",{"position":[513],"max":[514]},null,{"position":[{"positionChanged":0}],"max":[{"maxChanged":0}]}]]],["p-9fdd477a",[[257,"mds-tree",{"appearance":[513],"async":[516],"label":[1],"toggle":[513],"togglePosition":[513,"toggle-position"],"expanded":[1540],"truncate":[513],"actions":[513]},null,{"expanded":[{"handleExpandedChange":0}],"toggle":[{"handleToggleChange":0}],"togglePosition":[{"handleTogglePositionChange":0}],"appearance":[{"handleAppearanceChange":0}],"actions":[{"handleActionsChange":0}],"truncate":[{"handleTruncateChange":0}]}]]],["p-29fbb7cf",[[257,"mds-video-wall",{"autoplay":[4],"loop":[4],"muted":[4],"noise":[1],"poster":[1],"preload":[1],"src":[1],"hasContent":[32]}]]],["p-56c5ca6f",[[257,"mds-zero"]]],["p-5cf87a7f",[[65,"mds-input",{"accessibleName":[1,"aria-label"],"autocomplete":[513],"autofocus":[516],"await":[516],"controlsLayout":[513,"controls-layout"],"controlsIcon":[513,"controls-icon"],"datalist":[16],"disabled":[516],"icon":[1537],"max":[520],"maxlength":[1538],"mic":[516],"min":[520],"minlength":[514],"name":[513],"pattern":[513],"placeholder":[513],"readonly":[516],"required":[516],"variant":[1537],"tip":[513],"size":[513],"step":[513],"type":[513],"typography":[513],"value":[1537],"hasFocus":[32],"isRecording":[32],"currentLengthLabel":[32],"countVariant":[32],"isPasswordVisible":[32],"formDisabled":[32],"addValidator":[64],"removeValidator":[64],"hasValidator":[64],"getErrors":[64],"setFocus":[64],"getInputElement":[64]},[[0,"invalid","invalidHandler"]],{"max":[{"validationRulesChanged":0}],"maxlength":[{"validationRulesChanged":0},{"maxLengthChanged":0}],"min":[{"validationRulesChanged":0}],"minlength":[{"validationRulesChanged":0}],"pattern":[{"validationRulesChanged":0}],"required":[{"validationRulesChanged":0}],"type":[{"validationRulesChanged":0}],"value":[{"valueChanged":0}],"variant":[{"variantChanged":0}],"disabled":[{"disabledChanged":0}]}]]],["p-d331ff5c",[[1,"mds-filter-item",{"selected":[1540],"label":[513],"icon":[513],"value":[513],"count":[513],"disabled":[516]}]]],["p-ebeb3fff",[[257,"mds-modal",{"accessibleName":[1,"aria-label"],"opened":[1540],"hideBackdrop":[1540,"hide-backdrop"],"position":[1537],"animation":[513],"overflow":[513],"interaction":[513],"hasBottom":[32],"hasTop":[32],"hasWindow":[32],"windowHeaderHeight":[32],"windowFooterHeight":[32],"close":[64]},null,{"opened":[{"handleOpenProp":0}],"hideBackdrop":[{"handleHideBackdropProp":0}]}]]],["p-198ea5d8",[[1,"mds-img",{"alt":[1537],"crossorigin":[1],"height":[1],"loading":[1],"referrerpolicy":[1],"sizes":[1],"src":[1],"srcset":[1],"srcsetConsumption":[1,"srcset-consumption"],"width":[1],"imageConsumptionLoaded":[32],"imageError":[32]},null,{"srcsetConsumption":[{"srcsetConsumptionHandler":0}],"src":[{"srcHandler":0}]}]]],["p-84d0d701",[[1,"mds-avatar-stack-item",{"count":[514],"initials":[1537],"src":[513],"tone":[513],"variant":[513]}]]],["p-60727165",[[1,"mds-file-preview",{"deletable":[516],"downloadable":[516],"description":[513],"filename":[513],"filesize":[513],"message":[513],"truncate":[513],"src":[513],"suffix":[513],"icon":[513],"variant":[513],"format":[1537]},null,{"filename":[{"handleFilename":0}]}]]],["p-2c997b47",[[1,"mds-table-header-cell",{"sortable":[516],"label":[513],"sortKey":[513,"sort-key"],"direction":[1537]},null,{"direction":[{"directionHandler":0}]}]]],["p-ea503851",[[257,"mds-paginator-item",{"icon":[513],"selected":[516],"disabled":[516]}]]],["p-8d7093af",[[1,"mds-separator"]]],["p-9dd9eadd",[[257,"mds-banner",{"variant":[513],"tone":[513],"hideCockade":[516,"hide-cockade"],"dismissible":[4],"deletable":[4],"headline":[1],"icon":[1],"closeButtonVariant":[32],"hasActions":[32]},null,{"variant":[{"variantHandler":0}]}],[1,"mds-chip",{"clickable":[1540],"deletable":[4],"disabled":[516],"icon":[1],"label":[513],"selected":[1540],"selectable":[516],"variant":[513],"tone":[513]},null,{"selectable":[{"handleSelectableProp":0}],"selected":[{"handleSelectedProp":0}]}],[257,"mds-help",{"icon":[1],"disableAutoPlacement":[516,"disable-auto-placement"],"placement":[513]}]]],["p-7dd0364b",[[1,"mds-avatar",{"icon":[513],"initials":[1537],"count":[1538],"src":[513],"tone":[513],"variant":[1537],"imageFailed":[32],"loaded":[32]},null,{"initials":[{"initialsHandler":0}],"count":[{"countHandler":0}],"src":[{"srcHandler":0}]}]]],["p-ef4ee9ca",[[257,"mds-tooltip",{"hideArrow":[4,"hide-arrow"],"arrowPadding":[2,"arrow-padding"],"disableAutoPlacement":[516,"disable-auto-placement"],"flip":[4],"target":[513],"offset":[2],"placement":[513],"relation":[513],"typography":[1],"disableShift":[4,"disable-shift"],"shiftPadding":[2,"shift-padding"],"strategy":[513],"visible":[1540]},null,{"hideArrow":[{"hideArrowChanged":0}],"disableAutoPlacement":[{"disableAutoPlacementChanged":0}],"flip":[{"flipChanged":0}],"offset":[{"offsetChanged":0}],"placement":[{"placementChanged":0}],"disableShift":[{"disableShiftChanged":0}],"shiftPadding":[{"shiftPaddingChanged":0}],"strategy":[{"strategyChanged":0}],"relation":[{"relationChanged":0}],"visible":[{"visibleChanged":0}],"target":[{"targetChanged":0}]}]]],["p-02b106c2",[[257,"mds-calendar",{"singlePicker":[4,"single-picker"],"hidePreviousButton":[4,"hide-previous-button"],"hideNextButton":[4,"hide-next-button"],"disableMonthYearSelection":[4,"disable-month-year-selection"],"hidePreselection":[4,"hide-preselection"],"hideToday":[4,"hide-today"],"viewDate":[513,"view-date"],"hoverDate":[513,"hover-date"],"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"hasPreselection":[32],"currentDate":[32],"weekDaysinMonth":[32],"weekdays":[32],"startDateIdentifier":[32],"endDateIdentifier":[32],"isFirstClick":[32],"currentView":[32],"selectedYear":[32],"internalStartDate":[32],"internalEndDate":[32],"currentMonth":[32],"currentYear":[32],"updateCurrentDate":[64]},null,{"startDate":[{"handleStartDate":0}],"endDate":[{"handleEndDate":0}],"viewDate":[{"handleViewDate":0}],"hoverDate":[{"handleHoverDate":0}]}],[1,"mds-calendar-cell",{"month":[513],"label":[513],"date":[513],"orientation":[513],"preview":[516],"selection":[513],"disabled":[516],"today":[516]}]]],["p-fa44d0d2",[[321,"mds-input-switch",{"autofocus":[516],"checked":[1540],"disabled":[1540],"explicit":[516],"icon":[513],"indeterminate":[1540],"name":[513],"size":[513],"type":[513],"typography":[513],"variant":[513],"value":[1537],"formDisabled":[32],"knobSliding":[32],"hasText":[32]},null,{"disabled":[{"disabledChanged":0}],"checked":[{"checkedChanged":0}],"value":[{"valueChanged":0}],"explicit":[{"explicitChanged":0}]}],[257,"mds-table-cell",{"value":[520]}]]],["p-81212e34",[[257,"mds-badge",{"label":[1537],"variant":[513],"tone":[513],"typography":[513]},null,{"label":[{"labelChanged":0}]}]]],["p-bc19b136",[[257,"mds-input-tip-item",{"variant":[513],"expanded":[1540]},null,{"expanded":[{"handleEcpandedChanged":0}]}],[257,"mds-input-tip",{"active":[516],"position":[513]}]]],["p-857ae762",[[1,"mds-progress",{"progress":[2],"direction":[513],"variant":[513],"typography":[1],"size":[513],"steps":[1],"leftOut":[32]},null,{"steps":[{"stepsChanged":0}],"aria-hidden":[{"ariaHiddenChanged":0}]}],[1,"mds-radial-progress",{"progress":[2],"icon":[513],"typography":[513],"variant":[513],"animatedProgress":[32]},null,{"progress":[{"onProgressChange":0}]}]]],["p-2a6c2a41",[[1,"mds-tab-item",{"await":[516],"selected":[1540],"disabled":[1540],"icon":[1],"label":[513],"iconPosition":[1,"icon-position"],"type":[1],"size":[513],"direction":[513],"animation":[513],"value":[513],"href":[513],"expanded":[4],"isSelected":[32],"hasText":[32]},null,{"selected":[{"validateActive":0}]}],[257,"mds-tab",{"direction":[1537],"scrollbar":[1540],"animation":[513],"fill":[1540],"overflow":[1540],"size":[1537],"sliderWidth":[32],"sliderHeight":[32],"sliderOffsetX":[32],"sliderOffsetY":[32],"sliderSlides":[32],"overflowLeft":[32],"overflowRight":[32],"navigation":[32],"hasContent":[32]},[[0,"mdsTabItemSelect","changeEventHandler"],[0,"mdsTabItemFocus","focusEventHandler"]],{"animation":[{"handleAnimationChange":0}],"direction":[{"handleDirectionChange":0}],"scrollbar":[{"handleScrollbarChange":0}],"fill":[{"handleFillChange":0}],"overflow":[{"handleOverflowChange":0}],"size":[{"handleSizeChange":0}]}]]]]'),e))));
@@ -1 +1 @@
1
- import{r as e,d as a,h as r,e as t,g as n}from"./p-CvLLN-QH.js";import{D as i}from"./p-DbyXf6dF.js";import{p as l}from"./p-iX3kcwYg.js";import{s}from"./p-CACEYk42.js";import{h as o}from"./p-AEckDMXh.js";import{c}from"./p-ChV9xqsO.js";import{L as d}from"./p-OafT80hV.js";var h={nextMonth:"Επόμενος μήνας",nextYears:"Επόμενα έτη",previousMonth:"Προηγούμενος μήνας",previousYears:"Προηγούμενα έτη"},u={nextMonth:"Next month",nextYears:"Next years",previousMonth:"Previous month",previousYears:"Previous years"},m={nextMonth:"Mes siguiente",nextYears:"Años siguientes",previousMonth:"Mes anterior",previousYears:"Años anteriores"},v={nextMonth:"Mese successivo",nextYears:"Anni successivi",previousMonth:"Mese precedente",previousYears:"Anni precedenti"};const b=class{constructor(r){e(this,r),this.datesEmitter=a(this,"mdsCalendarChange",7),this.navigationEmitter=a(this,"mdsCalendarNavigate",7),this.hoverEmitter=a(this,"mdsCalendarHover",7),this.checkPreselectionsEmitter=a(this,"mdsCalendarPreselect",7),this.t=new d({el:h,en:u,es:m,it:v}),this.hasPreselection=!1,this.currentDate=i.now(),this.weekDaysinMonth=[],this.weekdays=[],this.startDateIdentifier=null,this.endDateIdentifier=null,this.isFirstClick=!0,this.currentView="calendar",this.selectedYear=this.currentDate.year,this.singlePicker=!1,this.hidePreviousButton=!1,this.hideNextButton=!1,this.disableMonthYearSelection=!1,this.hidePreselection=!1,this.hideToday=!1,this.viewDate=null,this.hoverDate=null,this.startDate=null,this.endDate=null,this.min=null,this.max=null,this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.internalHoverDate=null,this.currentMonth="",this.currentYear="",this.updatePreselection=()=>{this.hasPreselection=o(this.host,"preselection")||null!==this.host.querySelector(".date-preselection--has-preselection")},this.handleMouseOver=e=>{const a=e.target;if(!a.matches("mds-calendar-cell")||this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate)return;const r=a.getAttribute("date");null!==r&&""!==r&&(r!==this.internalHoverDate&&(this.internalHoverDate=r,requestAnimationFrame((()=>this.setDates()))),this.hoverEmitter.emit({hoverDate:r}))},this.handleMouseLeave=()=>{const e=null!==this.internalHoverDate;this.internalHoverDate=null,this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate||(e&&requestAnimationFrame((()=>this.setDates())),null!==this.hoverDate&&""!==this.hoverDate&&this.hoverEmitter.emit({hoverDate:null}))},this.handleMonthActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="months"===this.currentView?"calendar":"months",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handleYearActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="years"===this.currentView?"calendar":"years",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handlePrev=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(-1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear-=10):e.stopPropagation()},this.handleNext=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear+=10):e.stopPropagation()},this.handleCellClick=e=>a=>{a.stopPropagation();const r=a.currentTarget;this.singlePicker?this.handleSingleSelection(r,e):this.handleRange(r,e)},this.handleMonthSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({month:e}),this.currentMonth=this.currentDate.toFormat("MMMM"),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))},this.handleYearSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({year:e}),this.currentYear=e.toString(),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}}handleStartDate(e){const a=this.parseDateProp(e,"start-date");null!==a?(this.internalStartDate=a,this.startDateTime=i.fromISO(a),this.startDateIdentifier=this.startDateTime.toISODate(),null!==this.internalEndDate&&""!==this.internalEndDate?this.orderRange():this.singlePicker||(this.isFirstClick=!1),this.updateDates()):(this.internalStartDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.isFirstClick=!0,this.updateDates())}handleEndDate(e){if(this.singlePicker)return console.warn("singlePicker is enabled, endDate cannot be set"),void(this.internalEndDate=null);const a=this.parseDateProp(e,"end-date");null!==a?(this.internalEndDate=a,this.endDateTime=i.fromISO(a),this.endDateIdentifier=this.endDateTime.toISODate(),null!==this.internalStartDate&&""!==this.internalStartDate&&this.orderRange(),this.updateDates()):(this.internalEndDate=null,this.endDateIdentifier=null,this.endDateTime=null,this.updateDates())}handleViewDate(e){if(null!==e&&""!==e){const a=i.fromISO(e.toString());a.isValid&&(this.currentDate=a,this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})))}}handleHoverDate(){requestAnimationFrame((()=>this.setDates()))}orderRange(){if(null===this.internalStartDate||null===this.internalEndDate)return;const e=i.fromISO(this.internalStartDate),a=i.fromISO(this.internalEndDate);e<=a||(console.warn("mds-calendar: startDate is after endDate, swapping values"),[this.internalStartDate,this.internalEndDate]=[this.internalEndDate,this.internalStartDate],this.startDateTime=a,this.endDateTime=e,this.startDateIdentifier=a.toISODate(),this.endDateIdentifier=e.toISODate())}parseDateProp(e,a){if(null===e||""===e)return null;const r=s(e.toString());return null!==r&&i.fromISO(r).isValid?r:(console.warn(`mds-calendar: ignoring the invalid ${a} "${e}"`),null)}componentWillLoad(){if(this.internalStartDate=this.parseDateProp(this.internalStartDate,"start-date"),this.internalEndDate=this.parseDateProp(this.internalEndDate,"end-date"),this.singlePicker&&null!==this.internalEndDate&&(console.warn("singlePicker is enabled, endDate cannot be set"),this.internalEndDate=null),this.orderRange(),null!==this.viewDate&&""!==this.viewDate){const e=i.fromISO(this.viewDate.toString());e.isValid&&(this.currentDate=e)}else null!==this.internalStartDate&&(this.startDateTime=i.fromISO(this.internalStartDate),this.currentDate=this.startDateTime);null!==this.internalEndDate&&(this.endDateTime=i.fromISO(this.internalEndDate)),this.updateCalendar()}componentDidLoad(){var e,a,r;this.updatePreselection(),null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.addEventListener("mouseover",this.handleMouseOver),null===(r=this.host)||void 0===r||r.addEventListener("mouseleave",this.handleMouseLeave),this.setDates()}disconnectedCallback(){var e,a,r;null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.removeEventListener("mouseover",this.handleMouseOver),null===(r=this.host)||void 0===r||r.removeEventListener("mouseleave",this.handleMouseLeave)}async updateCurrentDate(e){return this.currentDate=i.fromISO(e),await this.updateCalendar(),await new Promise((e=>{requestAnimationFrame((()=>{this.setDates(),e()}))})),Promise.resolve()}resolveHoverDate(){return null!==this.hoverDate&&""!==this.hoverDate?this.hoverDate:this.internalHoverDate}updateDates(){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(l.state.language).plus({days:r}).toFormat("ccc"))),this.calculateWeekDaysInMonth(),this.currentMonth=this.currentDate.setLocale(l.state.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(null==e)return;const{shadowRoot:a}=e;if(!a)return;const r=a.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.singlePicker)this.setSingleSelection(r,a);else{const e=this.resolveHoverDate();null===e||null!==this.internalEndDate&&""!==this.internalEndDate?this.setRangeSelection(r,a):this.setHoverSelection(r,a,e)}}clearSelectionState(e){e.forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")}))}setRangeSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;if(this.startDateTime=i.fromISO(this.internalStartDate.toString()),null===this.internalEndDate||""===this.internalEndDate)return this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1,void a.querySelectorAll("mds-calendar-cell").forEach((e=>{e.getAttribute("date")===this.startDateTime.toFormat("yyyy-MM-dd")&&(e.setAttribute("selection","single"),e.setAttribute("preview","true"))}));this.endDateTime=i.fromISO(this.internalEndDate.toString()),this.startDateIdentifier=this.startDateTime.toISODate(),this.endDateIdentifier=this.endDateTime.toISODate();const r=a.querySelectorAll("mds-calendar-cell");if(null!=r){let e;for(let a=0;a<r.length;a++){const t=r[a].getAttribute("date");if(null!==t&&""!==t){const n=i.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")}}}}setHoverSelection(e,a,r){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return void this.setRangeSelection(e,a);const t=i.fromISO(this.internalStartDate),n=i.fromISO(r);if(!t.isValid||!n.isValid)return void this.setRangeSelection(e,a);const l=t<=n;Array.from(a.querySelectorAll("mds-calendar-cell")).forEach((e=>{const a=e.getAttribute("date");if(null===a||""===a)return;const r=i.fromISO(a);if(!r.isValid)return;if(!(l?r>=t&&r<=n:r>=n&&r<=t))return;e.setAttribute("preview","true");let s="middle";t.equals(n)&&r.equals(t)?s="single":r.equals(t)?s=l?"start":"end":r.equals(n)&&(s=l?"end":"start"),e.setAttribute("selection",s)}))}setSingleSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;this.startDateTime=i.fromISO(this.internalStartDate.toString());const r=a.querySelectorAll("mds-calendar-cell");if(null!=r)for(let e=0;e<r.length;e++){const a=r[e].getAttribute("date");null!==a&&""!==a&&i.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()))})),this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:e})}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){if(!this.singlePicker&&(null===this.endDate||""===this.endDate)&&(null===this.internalEndDate||""===this.internalEndDate)&&this.isFirstClick){const e=this.parseDateProp(this.startDate||this.host.getAttribute("start-date"),"start-date");null!==e&&(this.internalStartDate=e,this.startDateTime=i.fromISO(e),this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1)}if(null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&null!==this.endDateIdentifier&&""!==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")}))})),requestAnimationFrame((()=>{e.setAttribute("selection","single"),e.setAttribute("preview","true")})),void this.datesEmitter.emit({startDate:this.internalStartDate})}null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&i.fromISO(this.startDateIdentifier)<i.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]),requestAnimationFrame((()=>this.setDates())),null!==this.internalStartDate&&""!==this.internalStartDate&&null!==this.internalEndDate&&""!==this.internalEndDate&&(this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselectionsEmitter.emit())}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"),null!==this.internalStartDate&&""!==this.internalStartDate&&this.datesEmitter.emit({startDate:this.internalStartDate})}isDateDisabled(e){return null!==this.min&&""!==this.min&&e<i.fromISO(this.min)||null!==this.max&&""!==this.max&&e>i.fromISO(this.max)||void 0}render(){return r(t,{key:"5ece6c00dd42e09020407a839a354c3076565a2f"},r("div",{key:"49f671efc9d432d9c4eb4d28f0c6b33b9873422d",class:c("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},r("slot",{key:"c2a4f2f42dd5e56a5f8f91666d89cae614f56186",name:"preselection",onSlotchange:this.updatePreselection})),r("div",{key:"b6e9ad5d16530969414894ef8b2725d029bc3dff",class:"calendar-view"},r("nav",{key:"d1fb5573c5b47ce8ed9cb47f4ce728b89f87fd5e"},!this.hidePreviousButton&&r("mds-button",{key:"1e65631d9cb3757ee22a6b333828199bcf356d87","aria-label":this.t.get("years"===this.currentView?"previousYears":"previousMonth"),class:"action-back",disabled:"months"===this.currentView,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:"text",onClick:this.handlePrev}),r("div",{key:"01a1fc7f777d8dfa4ebac2ef9ed4a46bf7eb67b4",class:"select-month-or-year"},("calendar"===this.currentView||"months"===this.currentView)&&r("mds-button",{key:"c6fe68177bf27cb74a29d687df79a83403d48cb0",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),("calendar"===this.currentView||"years"===this.currentView)&&r("mds-button",{key:"4370a3e90fa6ecc64f3e6948690627f4271669b2",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&r("mds-button",{key:"4cea0bf61baf52db367566835856d675a15cbc66","aria-label":this.t.get("years"===this.currentView?"nextYears":"nextMonth"),class:"action-forward",disabled:"months"===this.currentView,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:"text",onClick:this.handleNext})),"calendar"===this.currentView&&r("section",{key:"23bd1514cd3390ea62c773f0d93ef21002163827",class:"month-view"},r("header",{key:"4d87c57be1eb6f653889775a037947b4e54100fb",class:"month-view__days-names"},this.weekdays.map((e=>r("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:e})))),r("div",{key:"dc486f4388d2c4052ee05150e9b5eab4c56d26e9",class:"month-view__cells"},this.weekDaysinMonth.map(((e,a)=>r("mds-calendar-cell",{key:a,today:!this.hideToday&&i.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.isDateDisabled(e.date),onClick:this.handleCellClick(e.date),title:e.date.setLocale(l.state.language).toFormat("cccc d LLLL").replace(/^./,(e=>e.toUpperCase())),label:e.date.toFormat("dd")}))))),"months"===this.currentView&&r("section",{key:"f48bd4d763824ae2becb1f377e51ae9c71454301",class:"month-selection"},r("header",{key:"34cd5dd481b16891bb7987f2b2a5a145636658ea",class:"month-view__month-names"},Array.from({length:12}).map(((e,a)=>{const t=i.local().set({month:a+1}).setLocale(l.state.language).toFormat("MMMM");return r("mds-button",{class:"action",variant:"dark",tone:"text",label:t,onClick:this.handleMonthSelect(a+1)})})))),"years"===this.currentView&&r("section",{key:"f9df821453277ca1e20fe56bb8533768b68e62b0",class:"year-selection"},r("header",{key:"4aa693be77a139bfd8bedf79b0516b17763937ce",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:"text",label:`${t}`,onClick:this.handleYearSelect(t)})}))))))}get host(){return n(this)}static get watchers(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}}};b.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-calendar-day-number-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-calendar-cell-gap:calc(var(--spacing,.0025rem)*50);--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-calendar-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-calendar-padding:calc(var(--spacing,.0025rem)*400);--mds-calendar-select-month-or-year-height:calc(var(--spacing,.0025rem)*900);--mds-calendar-select-month-or-year-width:calc(var(--spacing,.0025rem)*5600);--mds-calendar-max-width:calc(var(--spacing,.0025rem)*12000);background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));corner-shape:var(--magma-corner-shape,squircle);cursor:auto;display:inline-flex;inline-size:100%;max-width:var(--mds-calendar-max-width,calc(var(--spacing,.0025rem)*12000));min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:inherit;box-sizing:border-box;corner-shape:inherit;display:grid;flex:auto;width:100%}.calendar-preselection,.calendar-view{padding:var(--mds-calendar-padding,calc(var(--spacing,.0025rem)*400))}.calendar-preselection{display:none;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content}.calendar-preselection--has-preselection{display:grid}nav{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;min-width:0}.action{justify-content:left;min-width:min-content;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-back,.action-forward{flex-shrink:0}.select-month-or-year{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));border-radius:min(var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))),var(--magma-corner-cap,.5) * var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900)));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;flex:0 0 var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));justify-content:flex-start;max-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));min-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));overflow:hidden}.action-month,.action-year{--mds-button-radius:0;align-self:stretch;block-size:100%;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-month{flex:auto;min-width:0}.action-year{flex:0 0 calc(var(--spacing,.0025rem)*1800)}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{align-items:center;block-size:calc(var(--spacing,.0025rem)*1200);inline-size:100%;min-height:auto;padding:0}.month-view__cells,.month-view__days-names{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 p=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:"a393822aa73f1d6094e8b0faa05ebe863ce20749"},r("div",{key:"c80b08e7bf127713f261c35b0807d21fae450950",class:"inner-dot"}),r("div",{key:"571f5470a1465c2541bb1328ad6a3b1600af64bb",class:"area-background"}),r("mds-button",{key:"d303799a03cd311d4dcb7aaf0141838d7f99cde7",class:"action",variant:"dark",tone:"text",disabled:this.disabled,label:this.label}))}};p.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-calendar-cell-background:var(--mds-calendar-cell-background,#0000);--private-calendar-cell-boundaries-padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));--private-calendar-cell-color:var(--mds-calendar-cell-color,var(--mds-calendar-day-number-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));--private-calendar-cell-other-month-background:var(--mds-calendar-cell-other-month-background,#0000);--private-calendar-cell-other-month-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-disabled-background:var(--mds-calendar-cell-disabled-background,#0000);--private-calendar-cell-disabled-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-weekend-background:var(--mds-calendar-cell-weekend-background,#0000);--private-calendar-cell-weekend-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-boundaries-border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-selection-week-boundaries-border-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-preselection-today-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-today-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--private-calendar-cell-preselection-current-month-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-preselection-current-month-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-preselection-other-month-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-other-month-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--private-calendar-cell-selection-current-month-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-boundaries-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-boundaries-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-current-month-weekend-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-accent-border,var(--variant-primary-06,148 172 218))));--private-calendar-cell-selection-current-month-weekend-boundaries-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-boundaries-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-other-month-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-selection-other-month-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-other-month-boundaries-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-selection-other-month-boundaries-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--private-calendar-cell-boundaries-padding);position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--private-calendar-cell-inner-background);border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--private-calendar-cell-background);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--private-calendar-cell-color)}.action{align-items:center;background-color:#0000;border-radius:0;display:flex;inset:calc(var(--mds-calendar-cell-gap)*-1);justify-content:center;min-height:0;min-width:0;padding:0;place-self:stretch stretch;position:absolute;width:auto;z-index:2}:host([selection]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-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(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--private-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(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius)}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--private-calendar-cell-color:var(--private-calendar-cell-weekend-color);--private-calendar-cell-background:var(--private-calendar-cell-weekend-background)}:host([month=other]:not([selection]:not(:where([selection=none])))){--private-calendar-cell-color:var(--private-calendar-cell-other-month-color);--private-calendar-cell-background:var(--private-calendar-cell-other-month-background)}:host([disabled]){--private-calendar-cell-color:var(--private-calendar-cell-disabled-color);--private-calendar-cell-background:var(--private-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection]:not(:where([selection=none])))[today]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-today-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-today-color)}:host([selection]:not(:where([selection=none]))[month=current]){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n)),:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-color)}:host([selection=end][month=current]:nth-child(7n)),:host([selection=end][month=current]:nth-child(7n-1)),:host([selection=start][month=current]:nth-child(7n)),:host([selection=start][month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=other]){--private-calendar-cell-background:var(--private-calendar-cell-selection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-color)}:host([selection=end][month=current]),:host([selection=start][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-boundaries-color)}:host([selection=end][month=other]),:host([selection=start][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=current][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=other][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-color)}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}:host([selection=single][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=single][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}";export{b as mds_calendar,p as mds_calendar_cell}
1
+ import{r as e,d as a,h as t,e as r,g as n}from"./p-CvLLN-QH.js";import{D as i}from"./p-DbyXf6dF.js";import{p as l}from"./p-iX3kcwYg.js";import{s}from"./p-CACEYk42.js";import{h as o}from"./p-AEckDMXh.js";import{c}from"./p-ChV9xqsO.js";import{L as d}from"./p-OafT80hV.js";var h={nextMonth:"Επόμενος μήνας",nextYears:"Επόμενα έτη",previousMonth:"Προηγούμενος μήνας",previousYears:"Προηγούμενα έτη"},u={nextMonth:"Next month",nextYears:"Next years",previousMonth:"Previous month",previousYears:"Previous years"},m={nextMonth:"Mes siguiente",nextYears:"Años siguientes",previousMonth:"Mes anterior",previousYears:"Años anteriores"},v={nextMonth:"Mese successivo",nextYears:"Anni successivi",previousMonth:"Mese precedente",previousYears:"Anni precedenti"};const b=class{constructor(t){e(this,t),this.datesEmitter=a(this,"mdsCalendarChange",7),this.navigationEmitter=a(this,"mdsCalendarNavigate",7),this.hoverEmitter=a(this,"mdsCalendarHover",7),this.checkPreselectionsEmitter=a(this,"mdsCalendarPreselect",7),this.t=new d({el:h,en:u,es:m,it:v}),this.hasPreselection=!1,this.currentDate=i.now(),this.weekDaysinMonth=[],this.weekdays=[],this.startDateIdentifier=null,this.endDateIdentifier=null,this.isFirstClick=!0,this.currentView="calendar",this.selectedYear=this.currentDate.year,this.singlePicker=!1,this.hidePreviousButton=!1,this.hideNextButton=!1,this.disableMonthYearSelection=!1,this.hidePreselection=!1,this.hideToday=!1,this.viewDate=null,this.hoverDate=null,this.startDate=null,this.endDate=null,this.min=null,this.max=null,this.internalStartDate=this.startDate,this.internalEndDate=this.endDate,this.internalHoverDate=null,this.currentMonth="",this.currentYear="",this.updatePreselection=()=>{this.hasPreselection=o(this.host,"preselection")||null!==this.host.querySelector(".date-preselection--has-preselection")},this.handleMouseOver=e=>{const a=e.target;if(!a.matches("mds-calendar-cell")||this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate)return;const t=a.getAttribute("date");null!==t&&""!==t&&(t!==this.internalHoverDate&&(this.internalHoverDate=t,requestAnimationFrame((()=>this.setDates()))),this.hoverEmitter.emit({hoverDate:t}))},this.handleMouseLeave=()=>{const e=null!==this.internalHoverDate;this.internalHoverDate=null,this.singlePicker||null===this.internalStartDate||""===this.internalStartDate||null!==this.internalEndDate&&""!==this.internalEndDate||(e&&requestAnimationFrame((()=>this.setDates())),null!==this.hoverDate&&""!==this.hoverDate&&this.hoverEmitter.emit({hoverDate:null}))},this.handleMonthActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="months"===this.currentView?"calendar":"months",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handleYearActionClick=e=>{e.stopPropagation(),this.disableMonthYearSelection?e.preventDefault():(this.currentView="years"===this.currentView?"calendar":"years",requestAnimationFrame((()=>{this.updateCalendar().then((()=>this.setDates()))})))},this.handlePrev=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(-1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear-=10):e.stopPropagation()},this.handleNext=e=>{"calendar"===this.currentView?(e.stopPropagation(),this.changeMonth(1)):"years"===this.currentView?(e.stopPropagation(),this.selectedYear+=10):e.stopPropagation()},this.handleCellClick=e=>a=>{a.stopPropagation();const t=a.currentTarget;this.singlePicker?this.handleSingleSelection(t,e):this.handleRange(t,e)},this.handleMonthSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({month:e}),this.currentMonth=this.currentDate.toFormat("MMMM"),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))},this.handleYearSelect=e=>a=>{a.stopPropagation(),this.currentDate=this.currentDate.set({year:e}),this.currentYear=e.toString(),this.currentView="calendar",this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}}handleStartDate(e){const a=this.parseDateProp(e,"start-date");null!==a?(this.internalStartDate=a,this.startDateTime=i.fromISO(a),this.startDateIdentifier=this.startDateTime.toISODate(),null!==this.internalEndDate&&""!==this.internalEndDate?this.orderRange():this.singlePicker||(this.isFirstClick=!1),this.updateDates()):(this.internalStartDate=null,this.startDateIdentifier=null,this.startDateTime=null,this.isFirstClick=!0,this.updateDates())}handleEndDate(e){if(this.singlePicker)return console.warn("singlePicker is enabled, endDate cannot be set"),void(this.internalEndDate=null);const a=this.parseDateProp(e,"end-date");null!==a?(this.internalEndDate=a,this.endDateTime=i.fromISO(a),this.endDateIdentifier=this.endDateTime.toISODate(),null!==this.internalStartDate&&""!==this.internalStartDate&&this.orderRange(),this.updateDates()):(this.internalEndDate=null,this.endDateIdentifier=null,this.endDateTime=null,this.updateDates())}handleViewDate(e){if(null!==e&&""!==e){const a=i.fromISO(e.toString());a.isValid&&(this.currentDate=a,this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})))}}handleHoverDate(){requestAnimationFrame((()=>this.setDates()))}orderRange(){if(null===this.internalStartDate||null===this.internalEndDate)return;const e=i.fromISO(this.internalStartDate),a=i.fromISO(this.internalEndDate);e<=a||(console.warn("mds-calendar: startDate is after endDate, swapping values"),[this.internalStartDate,this.internalEndDate]=[this.internalEndDate,this.internalStartDate],this.startDateTime=a,this.endDateTime=e,this.startDateIdentifier=a.toISODate(),this.endDateIdentifier=e.toISODate())}parseDateProp(e,a){if(null===e||""===e)return null;const t=s(e.toString());return null!==t&&i.fromISO(t).isValid?t:(console.warn(`mds-calendar: ignoring the invalid ${a} "${e}"`),null)}componentWillLoad(){if(this.internalStartDate=this.parseDateProp(this.internalStartDate,"start-date"),this.internalEndDate=this.parseDateProp(this.internalEndDate,"end-date"),this.singlePicker&&null!==this.internalEndDate&&(console.warn("singlePicker is enabled, endDate cannot be set"),this.internalEndDate=null),this.orderRange(),null!==this.viewDate&&""!==this.viewDate){const e=i.fromISO(this.viewDate.toString());e.isValid&&(this.currentDate=e)}else null!==this.internalStartDate&&(this.startDateTime=i.fromISO(this.internalStartDate),this.currentDate=this.startDateTime);null!==this.internalEndDate&&(this.endDateTime=i.fromISO(this.internalEndDate)),this.updateCalendar()}componentDidLoad(){var e,a,t;this.updatePreselection(),null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.addEventListener("mouseover",this.handleMouseOver),null===(t=this.host)||void 0===t||t.addEventListener("mouseleave",this.handleMouseLeave),this.setDates()}disconnectedCallback(){var e,a,t;null===(a=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===a||a.removeEventListener("mouseover",this.handleMouseOver),null===(t=this.host)||void 0===t||t.removeEventListener("mouseleave",this.handleMouseLeave)}async updateCurrentDate(e){return this.currentDate=i.fromISO(e),await this.updateCalendar(),await new Promise((e=>{requestAnimationFrame((()=>{this.setDates(),e()}))})),Promise.resolve()}resolveHoverDate(){return null!==this.hoverDate&&""!==this.hoverDate?this.hoverDate:this.internalHoverDate}updateDates(){this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))}))}async updateCalendar(){try{const e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map(((a,t)=>e.setLocale(l.state.language).plus({days:t}).toFormat("ccc"))),this.calculateWeekDaysInMonth(),this.currentMonth=this.currentDate.setLocale(l.state.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(null==e)return;const{shadowRoot:a}=e;if(!a)return;const t=a.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.singlePicker)this.setSingleSelection(t,a);else{const e=this.resolveHoverDate();null===e||null!==this.internalEndDate&&""!==this.internalEndDate?this.setRangeSelection(t,a):this.setHoverSelection(t,a,e)}}clearSelectionState(e){e.forEach((e=>{e.removeAttribute("selection"),e.removeAttribute("preview")}))}setRangeSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;if(this.startDateTime=i.fromISO(this.internalStartDate.toString()),null===this.internalEndDate||""===this.internalEndDate)return this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1,void a.querySelectorAll("mds-calendar-cell").forEach((e=>{e.getAttribute("date")===this.startDateTime.toFormat("yyyy-MM-dd")&&(e.setAttribute("selection","single"),e.setAttribute("preview","true"))}));this.endDateTime=i.fromISO(this.internalEndDate.toString()),this.startDateIdentifier=this.startDateTime.toISODate(),this.endDateIdentifier=this.endDateTime.toISODate();const t=a.querySelectorAll("mds-calendar-cell");if(null!=t){let e;for(let a=0;a<t.length;a++){const r=t[a].getAttribute("date");if(null!==r&&""!==r){const n=i.fromISO(r);n.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&t[a].setAttribute("selection","start"),n.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")&&(this.startDateTime.equals(this.endDateTime)?t[a].setAttribute("selection","single"):t[a].setAttribute("selection","end")),e=n>this.startDateTime&&n<this.endDateTime,e&&t[a].setAttribute("selection","middle")}}}}setHoverSelection(e,a,t){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return void this.setRangeSelection(e,a);const r=i.fromISO(this.internalStartDate),n=i.fromISO(t);if(!r.isValid||!n.isValid)return void this.setRangeSelection(e,a);const l=r<=n;Array.from(a.querySelectorAll("mds-calendar-cell")).forEach((e=>{const a=e.getAttribute("date");if(null===a||""===a)return;const t=i.fromISO(a);if(!t.isValid)return;if(!(l?t>=r&&t<=n:t>=n&&t<=r))return;e.setAttribute("preview","true");let s="middle";r.equals(n)&&t.equals(r)?s="single":t.equals(r)?s=l?"start":"end":t.equals(n)&&(s=l?"end":"start"),e.setAttribute("selection",s)}))}setSingleSelection(e,a){if(this.clearSelectionState(e),null===this.internalStartDate||""===this.internalStartDate)return;this.startDateTime=i.fromISO(this.internalStartDate.toString());const t=a.querySelectorAll("mds-calendar-cell");if(null!=t)for(let e=0;e<t.length;e++){const a=t[e].getAttribute("date");null!==a&&""!==a&&i.fromISO(a).toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")&&t[e].setAttribute("selection","single")}}changeMonth(e){this.currentDate=this.currentDate.plus({months:e}),this.updateCalendar().then((()=>{requestAnimationFrame((()=>this.setDates()))})),this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:e})}calculateWeekDaysInMonth(){const e=this.currentDate.startOf("month"),a=this.currentDate.endOf("month"),t=[];for(let a=e.minus({days:e.weekday-1});a<e;a=a.plus({days:1}))t.push({date:a,isCurrentMonth:!1});for(let r=e;r<=a;r=r.plus({days:1}))t.push({date:r,isCurrentMonth:!0});const r=7-a.weekday,n=a.plus({days:1});for(let e=n;e<n.plus({days:r});e=e.plus({days:1}))t.push({date:e,isCurrentMonth:!1});this.weekDaysinMonth=t}handleRange(e,a){if(!this.singlePicker&&(null===this.endDate||""===this.endDate)&&(null===this.internalEndDate||""===this.internalEndDate)&&this.isFirstClick){const e=this.parseDateProp(this.startDate||this.host.getAttribute("start-date"),"start-date");null!==e&&(this.internalStartDate=e,this.startDateTime=i.fromISO(e),this.startDateIdentifier=this.startDateTime.toISODate(),this.isFirstClick=!1)}if(null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&null!==this.endDateIdentifier&&""!==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 t=this.host;return requestAnimationFrame((()=>{var e;null===(e=null==t?void 0:t.shadowRoot)||void 0===e||e.querySelectorAll("mds-calendar-cell[selection]").forEach((e=>{e.removeAttribute("selection")}))})),requestAnimationFrame((()=>{e.setAttribute("selection","single"),e.setAttribute("preview","true")})),void this.datesEmitter.emit({startDate:this.internalStartDate})}null!==this.startDateIdentifier&&""!==this.startDateIdentifier&&i.fromISO(this.startDateIdentifier)<i.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]),requestAnimationFrame((()=>this.setDates())),null!==this.internalStartDate&&""!==this.internalStartDate&&null!==this.internalEndDate&&""!==this.internalEndDate&&(this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate}),this.checkPreselectionsEmitter.emit())}handleSingleSelection(e,a){var t;const r=this.host;null===(t=null==r?void 0:r.shadowRoot)||void 0===t||t.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"),null!==this.internalStartDate&&""!==this.internalStartDate&&this.datesEmitter.emit({startDate:this.internalStartDate})}isDateDisabled(e){return null!==this.min&&""!==this.min&&e<i.fromISO(this.min)||null!==this.max&&""!==this.max&&e>i.fromISO(this.max)||void 0}render(){return t(r,{key:"5ece6c00dd42e09020407a839a354c3076565a2f"},t("div",{key:"49f671efc9d432d9c4eb4d28f0c6b33b9873422d",class:c("calendar-preselection",this.hasPreselection&&!this.hidePreselection&&"calendar-preselection--has-preselection")},t("slot",{key:"c2a4f2f42dd5e56a5f8f91666d89cae614f56186",name:"preselection",onSlotchange:this.updatePreselection})),t("div",{key:"b6e9ad5d16530969414894ef8b2725d029bc3dff",class:"calendar-view"},t("nav",{key:"d1fb5573c5b47ce8ed9cb47f4ce728b89f87fd5e"},!this.hidePreviousButton&&t("mds-button",{key:"1e65631d9cb3757ee22a6b333828199bcf356d87","aria-label":this.t.get("years"===this.currentView?"previousYears":"previousMonth"),class:"action-back",disabled:"months"===this.currentView,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:"text",onClick:this.handlePrev}),t("div",{key:"01a1fc7f777d8dfa4ebac2ef9ed4a46bf7eb67b4",class:"select-month-or-year"},("calendar"===this.currentView||"months"===this.currentView)&&t("mds-button",{key:"c6fe68177bf27cb74a29d687df79a83403d48cb0",class:"action-month",truncate:"none",variant:"dark",tone:"text",label:this.currentMonth,onClick:this.handleMonthActionClick}),("calendar"===this.currentView||"years"===this.currentView)&&t("mds-button",{key:"4370a3e90fa6ecc64f3e6948690627f4271669b2",class:"action-year",truncate:"none",variant:"dark",tone:"text",label:this.currentYear,onClick:this.handleYearActionClick})),!this.hideNextButton&&t("mds-button",{key:"4cea0bf61baf52db367566835856d675a15cbc66","aria-label":this.t.get("years"===this.currentView?"nextYears":"nextMonth"),class:"action-forward",disabled:"months"===this.currentView,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:"text",onClick:this.handleNext})),"calendar"===this.currentView&&t("section",{key:"23bd1514cd3390ea62c773f0d93ef21002163827",class:"month-view"},t("header",{key:"4d87c57be1eb6f653889775a037947b4e54100fb",class:"month-view__days-names"},this.weekdays.map((e=>t("mds-button",{class:"week-day-name",variant:"dark",tone:"text",label:e})))),t("div",{key:"dc486f4388d2c4052ee05150e9b5eab4c56d26e9",class:"month-view__cells"},this.weekDaysinMonth.map(((e,a)=>t("mds-calendar-cell",{key:a,today:!this.hideToday&&i.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.isDateDisabled(e.date),onClick:this.handleCellClick(e.date),title:e.date.setLocale(l.state.language).toFormat("cccc d LLLL").replace(/^./,(e=>e.toUpperCase())),label:e.date.toFormat("dd")}))))),"months"===this.currentView&&t("section",{key:"f48bd4d763824ae2becb1f377e51ae9c71454301",class:"month-selection"},t("header",{key:"34cd5dd481b16891bb7987f2b2a5a145636658ea",class:"month-view__month-names"},Array.from({length:12}).map(((e,a)=>{const r=i.local().set({month:a+1}).setLocale(l.state.language).toFormat("MMMM");return t("mds-button",{class:"action",variant:"dark",tone:"text",label:r,onClick:this.handleMonthSelect(a+1)})})))),"years"===this.currentView&&t("section",{key:"f9df821453277ca1e20fe56bb8533768b68e62b0",class:"year-selection"},t("header",{key:"4aa693be77a139bfd8bedf79b0516b17763937ce",class:"month-view__years"},Array.from({length:12}).map(((e,a)=>{const r=this.selectedYear+a;return t("mds-button",{class:"action",variant:"dark",tone:"text",label:`${r}`,onClick:this.handleYearSelect(r)})}))))))}get host(){return n(this)}static get watchers(){return{startDate:[{handleStartDate:0}],endDate:[{handleEndDate:0}],viewDate:[{handleViewDate:0}],hoverDate:[{handleHoverDate:0}]}}};b.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar-cell):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-calendar-day-number-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-calendar-cell-gap:calc(var(--spacing,.0025rem)*50);--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));--mds-calendar-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-calendar-padding:calc(var(--spacing,.0025rem)*400);--mds-calendar-select-month-or-year-height:calc(var(--spacing,.0025rem)*900);--mds-calendar-select-month-or-year-width:calc(var(--spacing,.0025rem)*5600);--mds-calendar-max-width:calc(var(--spacing,.0025rem)*12000);background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px)));corner-shape:var(--magma-corner-shape,squircle);cursor:auto;display:inline-flex;inline-size:100%;max-width:var(--mds-calendar-max-width,calc(var(--spacing,.0025rem)*12000));min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:inherit;box-sizing:border-box;corner-shape:inherit;display:grid;flex:auto;width:100%}.calendar-preselection,.calendar-view{padding:var(--mds-calendar-padding,calc(var(--spacing,.0025rem)*400))}.calendar-preselection{display:none;gap:calc(var(--spacing,.0025rem)*50);grid-auto-rows:min-content}.calendar-preselection--has-preselection{display:grid}nav{display:flex;gap:calc(var(--spacing,.0025rem)*200);justify-content:space-between;min-width:0}.action{justify-content:left;min-width:min-content;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-back,.action-forward{flex-shrink:0}.select-month-or-year{background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));border-radius:min(var(--mds-calendar-border-radius,var(--magma-radius-lg,var(--radius-squircle-lg,28px))),var(--magma-corner-cap,.5) * var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900)));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;flex:0 0 var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));justify-content:flex-start;max-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));max-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));min-block-size:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-height:var(--mds-calendar-select-month-or-year-height,calc(var(--spacing,.0025rem)*900));min-inline-size:var(--mds-calendar-select-month-or-year-width,calc(var(--spacing,.0025rem)*5600));overflow:hidden}.action-month,.action-year{--mds-button-radius:0;align-self:stretch;block-size:100%;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:calc(var(--spacing,.0025rem)*200);padding-right:calc(var(--spacing,.0025rem)*200)}.action-month{flex:auto;min-width:0}.action-year{flex:0 0 calc(var(--spacing,.0025rem)*1800)}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{align-items:center;block-size:calc(var(--spacing,.0025rem)*1200);inline-size:100%;min-height:auto;padding:0}.month-view__cells,.month-view__days-names{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 p=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 t(r,{key:"a393822aa73f1d6094e8b0faa05ebe863ce20749"},t("div",{key:"c80b08e7bf127713f261c35b0807d21fae450950",class:"inner-dot"}),t("div",{key:"571f5470a1465c2541bb1328ad6a3b1600af64bb",class:"area-background"}),t("mds-button",{key:"d303799a03cd311d4dcb7aaf0141838d7f99cde7",class:"action",variant:"dark",tone:"text",disabled:this.disabled,label:this.label}))}};p.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--private-calendar-cell-background:var(--mds-calendar-cell-background,#0000);--private-calendar-cell-boundaries-padding:var(--mds-calendar-cell-boundaries-padding,calc(var(--spacing,.0025rem)*100));--private-calendar-cell-color:var(--mds-calendar-cell-color,var(--mds-calendar-day-number-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));--private-calendar-cell-other-month-background:var(--mds-calendar-cell-other-month-background,#0000);--private-calendar-cell-other-month-color:var(--mds-calendar-cell-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-disabled-background:var(--mds-calendar-cell-disabled-background,#0000);--private-calendar-cell-disabled-color:var(--mds-calendar-cell-disabled-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-weekend-background:var(--mds-calendar-cell-weekend-background,#0000);--private-calendar-cell-weekend-color:var(--mds-calendar-cell-weekend-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-boundaries-border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-selection-week-boundaries-border-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-calendar-cell-preselection-today-background:var(--mds-calendar-cell-preselection-today-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-today-color:var(--mds-calendar-cell-preselection-today-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));--private-calendar-cell-preselection-current-month-background:var(--mds-calendar-cell-preselection-current-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-preselection-current-month-color:var(--mds-calendar-cell-preselection-current-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-current-month-boundaries-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-preselection-other-month-background:var(--mds-calendar-cell-preselection-other-month-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));--private-calendar-cell-preselection-other-month-color:var(--mds-calendar-cell-preselection-other-month-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-calendar-cell-preselection-other-month-boundaries-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-background:var(--mds-calendar-cell-selection-current-month-background,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));--private-calendar-cell-selection-current-month-color:var(--mds-calendar-cell-selection-current-month-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-boundaries-background:var(--mds-calendar-cell-selection-current-month-boundaries-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));--private-calendar-cell-selection-current-month-boundaries-color:var(--mds-calendar-cell-selection-current-month-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-current-month-weekend-background:var(--mds-calendar-cell-selection-current-month-weekend-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-color:var(--mds-calendar-cell-selection-current-month-weekend-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-calendar-cell-selection-current-month-weekend-boundaries-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-calendar-cell-selection-current-month-weekend-boundaries-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));--private-calendar-cell-selection-other-month-background:var(--mds-calendar-cell-selection-other-month-background,rgb(var(--magma-accent-surface-hover,var(--variant-primary-08,204 212 226))));--private-calendar-cell-selection-other-month-color:var(--mds-calendar-cell-selection-other-month-color,rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99))));--private-calendar-cell-selection-other-month-boundaries-background:var(--mds-calendar-cell-selection-other-month-boundaries-background,rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--private-calendar-cell-selection-other-month-boundaries-color:var(--mds-calendar-cell-selection-other-month-boundaries-color,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));align-items:center;aspect-ratio:1;display:flex;justify-content:center;padding:var(--private-calendar-cell-boundaries-padding);position:relative}:host([month=other]){visibility:var(--mds-calendar-cell-other-month-visibility,hidden)}.inner-dot{aspect-ratio:1;background-color:var(--private-calendar-cell-inner-background);border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--private-calendar-cell-background);inset:0;position:absolute;z-index:0}.action,.area-background{color:var(--private-calendar-cell-color)}.action{align-items:center;background-color:#0000;border-radius:0;display:flex;inset:calc(var(--mds-calendar-cell-gap)*-1);justify-content:center;min-height:0;min-width:0;padding:0;place-self:stretch stretch;position:absolute;width:auto;z-index:2}:host([selection]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection=end][orientation=horizontal]) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection]:not(:where([selection=none]))[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(--private-calendar-cell-selection-boundaries-border-radius) var(--private-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection=end][orientation=vertical]) .area-background{border-radius:0 0 var(--private-calendar-cell-selection-boundaries-border-radius) var(--private-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(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--private-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(--private-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-week-boundaries-border-radius)}:host([selection=end][orientation=horizontal]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--private-calendar-cell-selection-boundaries-border-radius)}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n-6)) .area-background{margin-left:0}:host([selection]:not(:where([selection=none]))[orientation=horizontal]:nth-child(7n)) .area-background{margin-right:0}:host([selection=single][orientation=horizontal]) .area-background{border-radius:var(--private-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n)),:host(:nth-child(7n-1)){--private-calendar-cell-color:var(--private-calendar-cell-weekend-color);--private-calendar-cell-background:var(--private-calendar-cell-weekend-background)}:host([month=other]:not([selection]:not(:where([selection=none])))){--private-calendar-cell-color:var(--private-calendar-cell-other-month-color);--private-calendar-cell-background:var(--private-calendar-cell-other-month-background)}:host([disabled]){--private-calendar-cell-color:var(--private-calendar-cell-disabled-color);--private-calendar-cell-background:var(--private-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection]:not(:where([selection=none])))[today]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-today-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-today-color)}:host([selection]:not(:where([selection=none]))[month=current]){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n)),:host([selection]:not(:where([selection=none]))[month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-color)}:host([selection=end][month=current]:nth-child(7n)),:host([selection=end][month=current]:nth-child(7n-1)),:host([selection=start][month=current]:nth-child(7n)),:host([selection=start][month=current]:nth-child(7n-1)){--private-calendar-cell-background:var(--private-calendar-cell-selection-current-month-weekend-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=other]){--private-calendar-cell-background:var(--private-calendar-cell-selection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-color)}:host([selection=end][month=current]),:host([selection=start][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-current-month-boundaries-color)}:host([selection=end][month=other]),:host([selection=start][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-selection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-selection-other-month-boundaries-color)}:host([selection]:not(:where([selection=none]))[month=current][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-current-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-color)}:host([selection]:not(:where([selection=none]))[month=other][preview]:not([preview=false])){--private-calendar-cell-background:var(--private-calendar-cell-preselection-other-month-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-color)}:host([selection=end][month=current][preview]:not([preview=false])),:host([selection=start][month=current][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=end][month=other][preview]:not([preview=false])),:host([selection=start][month=other][preview]:not([preview=false])){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}:host([selection=single][month=current]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-current-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-current-month-boundaries-color)}:host([selection=single][month=other]){--private-calendar-cell-inner-background:var(--private-calendar-cell-preselection-other-month-boundaries-background);--private-calendar-cell-color:var(--private-calendar-cell-preselection-other-month-boundaries-color)}";export{b as mds_calendar,p as mds_calendar_cell}