@maggioli-design-system/magma 2.4.1 → 2.5.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 (1186) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +23 -0
  3. package/agents/assets.md +10 -0
  4. package/agents/components.md +2 -1
  5. package/agents/conventions.md +5 -0
  6. package/dist/cjs/{floating-controller-BiwDIKXd.js → floating-controller-DaFymQCT.js} +1 -1
  7. package/dist/cjs/{index-B_qgSpWL.js → index-BQNHYWJg.js} +5 -1
  8. package/dist/cjs/{index-B5DKRaVO.js → index-CWTZb9W2.js} +1 -1
  9. package/dist/cjs/index.cjs.js +3 -63
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/{locale-D9XY8LN9.js → locale-Os4wg65H.js} +1 -1
  12. package/dist/cjs/magma-components.cjs.js +2 -2
  13. package/dist/cjs/mds-accordion-item.cjs.entry.js +3 -3
  14. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +3 -3
  15. package/dist/cjs/mds-accordion-timer.cjs.entry.js +2 -2
  16. package/dist/cjs/mds-accordion.cjs.entry.js +3 -3
  17. package/dist/cjs/mds-author.cjs.entry.js +1 -1
  18. package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
  19. package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
  20. package/dist/cjs/mds-avatar.cjs.entry.js +2 -2
  21. package/dist/cjs/mds-badge.cjs.entry.js +2 -2
  22. package/dist/cjs/mds-banner_3.cjs.entry.js +6 -6
  23. package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
  24. package/dist/cjs/mds-bibliography.cjs.entry.js +1 -1
  25. package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +2 -2
  26. package/dist/cjs/mds-breadcrumb.cjs.entry.js +3 -3
  27. package/dist/cjs/mds-button-dropdown.cjs.entry.js +3 -3
  28. package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
  29. package/dist/cjs/mds-button_3.cjs.entry.js +8 -7
  30. package/dist/cjs/mds-calendar_2.cjs.entry.js +4 -4
  31. package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
  32. package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
  33. package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
  34. package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
  35. package/dist/cjs/mds-card.cjs.entry.js +3 -3
  36. package/dist/cjs/mds-details.cjs.entry.js +3 -3
  37. package/dist/cjs/mds-dropdown.cjs.entry.js +4 -4
  38. package/dist/cjs/mds-emoji.cjs.entry.js +3 -3
  39. package/dist/cjs/mds-entity.cjs.entry.js +4 -4
  40. package/dist/cjs/mds-file-preview.cjs.entry.js +4 -4
  41. package/dist/cjs/mds-file.cjs.entry.js +3 -3
  42. package/dist/cjs/mds-filter-item.cjs.entry.js +3 -3
  43. package/dist/cjs/mds-filter.cjs.entry.js +4 -4
  44. package/dist/cjs/mds-header-bar.cjs.entry.js +4 -4
  45. package/dist/cjs/mds-header.cjs.entry.js +3 -3
  46. package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +4 -4
  47. package/dist/cjs/mds-hr.cjs.entry.js +2 -2
  48. package/dist/cjs/mds-img.cjs.entry.js +3 -3
  49. package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
  50. package/dist/cjs/mds-input-date-range.cjs.entry.js +4 -4
  51. package/dist/cjs/mds-input-date.cjs.entry.js +5 -5
  52. package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
  53. package/dist/cjs/mds-input-otp.cjs.entry.js +3 -3
  54. package/dist/cjs/mds-input-range.cjs.entry.js +2 -2
  55. package/dist/cjs/mds-input-select.cjs.entry.js +5 -5
  56. package/dist/cjs/mds-input-switch_2.cjs.entry.js +7 -7
  57. package/dist/cjs/mds-input-tip_2.cjs.entry.js +3 -3
  58. package/dist/cjs/mds-input-upload.cjs.entry.js +4 -4
  59. package/dist/cjs/mds-input.cjs.entry.js +5 -5
  60. package/dist/cjs/mds-keyboard-key.cjs.entry.js +4 -4
  61. package/dist/cjs/mds-keyboard.cjs.entry.js +4 -4
  62. package/dist/cjs/mds-kpi-item.cjs.entry.js +2 -2
  63. package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
  64. package/dist/cjs/mds-label.cjs.entry.js +3 -3
  65. package/dist/cjs/mds-link.cjs.entry.js +147 -0
  66. package/dist/cjs/mds-list-item.cjs.entry.js +3 -3
  67. package/dist/cjs/mds-list.cjs.entry.js +2 -2
  68. package/dist/cjs/mds-mention.cjs.entry.js +4 -4
  69. package/dist/cjs/mds-modal.cjs.entry.js +7 -7
  70. package/dist/cjs/mds-note.cjs.entry.js +5 -5
  71. package/dist/cjs/mds-notification.cjs.entry.js +4 -4
  72. package/dist/cjs/mds-paginator-item.cjs.entry.js +3 -3
  73. package/dist/cjs/mds-paginator.cjs.entry.js +5 -5
  74. package/dist/cjs/mds-policy-ai.cjs.entry.js +4 -4
  75. package/dist/cjs/mds-pref-animation.cjs.entry.js +4 -4
  76. package/dist/cjs/mds-pref-consumption.cjs.entry.js +4 -4
  77. package/dist/cjs/mds-pref-contrast.cjs.entry.js +4 -4
  78. package/dist/cjs/mds-pref-language-item.cjs.entry.js +4 -4
  79. package/dist/cjs/mds-pref-language.cjs.entry.js +4 -4
  80. package/dist/cjs/mds-pref-mode.cjs.entry.js +5 -5
  81. package/dist/cjs/mds-pref-theme-item.cjs.entry.js +2 -2
  82. package/dist/cjs/mds-pref-theme.cjs.entry.js +4 -4
  83. package/dist/cjs/mds-pref.cjs.entry.js +4 -4
  84. package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +3 -3
  85. package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
  86. package/dist/cjs/mds-price-table-features.cjs.entry.js +3 -3
  87. package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
  88. package/dist/cjs/mds-price-table-list-item.cjs.entry.js +2 -2
  89. package/dist/cjs/mds-price-table-list.cjs.entry.js +3 -3
  90. package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
  91. package/dist/cjs/mds-progress_2.cjs.entry.js +5 -5
  92. package/dist/cjs/mds-push-notification-item.cjs.entry.js +6 -6
  93. package/dist/cjs/mds-push-notification.cjs.entry.js +5 -5
  94. package/dist/cjs/mds-quote.cjs.entry.js +3 -3
  95. package/dist/cjs/mds-radial-menu-item.cjs.entry.js +3 -3
  96. package/dist/cjs/mds-radial-menu.cjs.entry.js +6 -6
  97. package/dist/cjs/mds-separator.cjs.entry.js +3 -3
  98. package/dist/cjs/mds-status-bar.cjs.entry.js +4 -4
  99. package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +5 -5
  100. package/dist/cjs/mds-stepper-bar.cjs.entry.js +2 -2
  101. package/dist/cjs/mds-tab-bar-item.cjs.entry.js +4 -4
  102. package/dist/cjs/mds-tab-bar.cjs.entry.js +3 -3
  103. package/dist/cjs/mds-tab_2.cjs.entry.js +6 -6
  104. package/dist/cjs/mds-table-body.cjs.entry.js +3 -3
  105. package/dist/cjs/mds-table-footer.cjs.entry.js +3 -3
  106. package/dist/cjs/mds-table-header-cell.cjs.entry.js +3 -3
  107. package/dist/cjs/mds-table-header.cjs.entry.js +4 -4
  108. package/dist/cjs/mds-table-row.cjs.entry.js +6 -6
  109. package/dist/cjs/mds-table.cjs.entry.js +5 -5
  110. package/dist/cjs/mds-text.cjs.entry.js +3 -3
  111. package/dist/cjs/mds-toast-region.cjs.entry.js +2 -2
  112. package/dist/cjs/mds-toast.cjs.entry.js +5 -5
  113. package/dist/cjs/mds-tooltip.cjs.entry.js +5 -5
  114. package/dist/cjs/mds-tree-item.cjs.entry.js +5 -5
  115. package/dist/cjs/mds-tree.cjs.entry.js +3 -3
  116. package/dist/cjs/mds-url-view.cjs.entry.js +4 -4
  117. package/dist/cjs/mds-usage.cjs.entry.js +4 -4
  118. package/dist/cjs/mds-video-wall.cjs.entry.js +3 -3
  119. package/dist/cjs/mds-zero.cjs.entry.js +4 -4
  120. package/dist/cjs/navigation-5yeOyO6F.js +64 -0
  121. package/dist/cjs/{preference-C8BcoA3M.js → preference-CQQ3eb9W.js} +1 -1
  122. package/dist/collection/collection-manifest.json +1 -0
  123. package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
  124. package/dist/collection/components/mds-accordion/documentation.json +1 -1
  125. package/dist/collection/components/mds-accordion/mds-accordion.css +2 -2
  126. package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
  127. package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
  128. package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +9 -9
  129. package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
  130. package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
  131. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +1 -1
  132. package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
  133. package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
  134. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +2 -2
  135. package/dist/collection/components/mds-author/AGENTS.md +1 -1
  136. package/dist/collection/components/mds-author/documentation.json +1 -1
  137. package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
  138. package/dist/collection/components/mds-avatar/documentation.json +1 -1
  139. package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
  140. package/dist/collection/components/mds-avatar-stack/documentation.json +1 -1
  141. package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
  142. package/dist/collection/components/mds-avatar-stack-item/documentation.json +1 -1
  143. package/dist/collection/components/mds-badge/AGENTS.md +1 -1
  144. package/dist/collection/components/mds-badge/documentation.json +1 -1
  145. package/dist/collection/components/mds-banner/AGENTS.md +1 -1
  146. package/dist/collection/components/mds-banner/documentation.json +1 -1
  147. package/dist/collection/components/mds-banner/mds-banner.css +3 -3
  148. package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
  149. package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
  150. package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
  151. package/dist/collection/components/mds-bibliography/documentation.json +1 -1
  152. package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
  153. package/dist/collection/components/mds-breadcrumb/documentation.json +1 -1
  154. package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
  155. package/dist/collection/components/mds-breadcrumb-item/documentation.json +1 -1
  156. package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +1 -1
  157. package/dist/collection/components/mds-button/AGENTS.md +1 -1
  158. package/dist/collection/components/mds-button/antipattern.md +16 -0
  159. package/dist/collection/components/mds-button/documentation.json +2 -2
  160. package/dist/collection/components/mds-button/mds-button.css +4 -2
  161. package/dist/collection/components/mds-button-dropdown/AGENTS.md +1 -1
  162. package/dist/collection/components/mds-button-dropdown/documentation.json +1 -1
  163. package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
  164. package/dist/collection/components/mds-button-group/documentation.json +1 -1
  165. package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
  166. package/dist/collection/components/mds-calendar/documentation.json +1 -1
  167. package/dist/collection/components/mds-calendar/mds-calendar.css +8 -8
  168. package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
  169. package/dist/collection/components/mds-calendar-cell/documentation.json +1 -1
  170. package/dist/collection/components/mds-card/AGENTS.md +2 -1
  171. package/dist/collection/components/mds-card/documentation.json +2 -2
  172. package/dist/collection/components/mds-card/mds-card.css +9 -5
  173. package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
  174. package/dist/collection/components/mds-card-content/documentation.json +1 -1
  175. package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
  176. package/dist/collection/components/mds-card-footer/documentation.json +1 -1
  177. package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
  178. package/dist/collection/components/mds-card-header/documentation.json +1 -1
  179. package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
  180. package/dist/collection/components/mds-card-media/documentation.json +1 -1
  181. package/dist/collection/components/mds-chip/AGENTS.md +1 -1
  182. package/dist/collection/components/mds-chip/documentation.json +1 -1
  183. package/dist/collection/components/mds-chip/mds-chip.css +1 -1
  184. package/dist/collection/components/mds-details/AGENTS.md +1 -1
  185. package/dist/collection/components/mds-details/documentation.json +1 -1
  186. package/dist/collection/components/mds-details/mds-details.css +2 -2
  187. package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
  188. package/dist/collection/components/mds-dropdown/documentation.json +1 -1
  189. package/dist/collection/components/mds-dropdown/mds-dropdown.css +23 -23
  190. package/dist/collection/components/mds-emoji/AGENTS.md +1 -1
  191. package/dist/collection/components/mds-emoji/documentation.json +1 -1
  192. package/dist/collection/components/mds-emoji/mds-emoji.css +11 -5
  193. package/dist/collection/components/mds-entity/AGENTS.md +3 -2
  194. package/dist/collection/components/mds-entity/documentation.json +11 -3
  195. package/dist/collection/components/mds-entity/mds-entity.css +1 -1
  196. package/dist/collection/components/mds-entity/mds-entity.js +2 -1
  197. package/dist/collection/components/mds-entity/pattern.md +10 -0
  198. package/dist/collection/components/mds-file/AGENTS.md +1 -1
  199. package/dist/collection/components/mds-file/documentation.json +1 -1
  200. package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
  201. package/dist/collection/components/mds-file-preview/documentation.json +1 -1
  202. package/dist/collection/components/mds-file-preview/mds-file-preview.css +2 -2
  203. package/dist/collection/components/mds-filter/AGENTS.md +1 -1
  204. package/dist/collection/components/mds-filter/documentation.json +1 -1
  205. package/dist/collection/components/mds-filter/mds-filter.css +1 -1
  206. package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
  207. package/dist/collection/components/mds-filter-item/documentation.json +1 -1
  208. package/dist/collection/components/mds-header/AGENTS.md +1 -1
  209. package/dist/collection/components/mds-header/documentation.json +1 -1
  210. package/dist/collection/components/mds-header/mds-header.css +4 -4
  211. package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
  212. package/dist/collection/components/mds-header-bar/documentation.json +1 -1
  213. package/dist/collection/components/mds-header-bar/mds-header-bar.css +1 -1
  214. package/dist/collection/components/mds-help/AGENTS.md +1 -1
  215. package/dist/collection/components/mds-help/documentation.json +1 -1
  216. package/dist/collection/components/mds-help/mds-help.css +7 -5
  217. package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
  218. package/dist/collection/components/mds-horizontal-scroll/documentation.json +1 -1
  219. package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +2 -2
  220. package/dist/collection/components/mds-hr/AGENTS.md +1 -1
  221. package/dist/collection/components/mds-hr/documentation.json +1 -1
  222. package/dist/collection/components/mds-icon/AGENTS.md +2 -2
  223. package/dist/collection/components/mds-icon/documentation.json +5 -1
  224. package/dist/collection/components/mds-img/AGENTS.md +1 -1
  225. package/dist/collection/components/mds-img/documentation.json +1 -1
  226. package/dist/collection/components/mds-input/AGENTS.md +1 -1
  227. package/dist/collection/components/mds-input/documentation.json +1 -1
  228. package/dist/collection/components/mds-input/mds-input.css +8 -8
  229. package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
  230. package/dist/collection/components/mds-input-date/documentation.json +1 -1
  231. package/dist/collection/components/mds-input-date/mds-input-date.css +6 -6
  232. package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
  233. package/dist/collection/components/mds-input-date-range/documentation.json +1 -1
  234. package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +11 -11
  235. package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
  236. package/dist/collection/components/mds-input-date-range-preselection/documentation.json +1 -1
  237. package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
  238. package/dist/collection/components/mds-input-field/documentation.json +1 -1
  239. package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
  240. package/dist/collection/components/mds-input-otp/documentation.json +1 -1
  241. package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
  242. package/dist/collection/components/mds-input-range/documentation.json +1 -1
  243. package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
  244. package/dist/collection/components/mds-input-select/documentation.json +1 -1
  245. package/dist/collection/components/mds-input-select/mds-input-select.css +5 -5
  246. package/dist/collection/components/mds-input-switch/AGENTS.md +3 -3
  247. package/dist/collection/components/mds-input-switch/documentation.json +3 -3
  248. package/dist/collection/components/mds-input-switch/mds-input-switch.css +7 -7
  249. package/dist/collection/components/mds-input-switch/mds-input-switch.js +4 -4
  250. package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
  251. package/dist/collection/components/mds-input-tip/documentation.json +1 -1
  252. package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
  253. package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
  254. package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
  255. package/dist/collection/components/mds-input-upload/documentation.json +1 -1
  256. package/dist/collection/components/mds-input-upload/mds-input-upload.css +2 -2
  257. package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
  258. package/dist/collection/components/mds-keyboard/documentation.json +1 -1
  259. package/dist/collection/components/mds-keyboard/mds-keyboard.css +5 -5
  260. package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
  261. package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
  262. package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +2 -2
  263. package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
  264. package/dist/collection/components/mds-kpi/documentation.json +1 -1
  265. package/dist/collection/components/mds-kpi/mds-kpi.css +1 -1
  266. package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
  267. package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
  268. package/dist/collection/components/mds-label/AGENTS.md +1 -1
  269. package/dist/collection/components/mds-label/documentation.json +1 -1
  270. package/dist/collection/components/mds-link/AGENTS.md +81 -0
  271. package/dist/collection/components/mds-link/antipattern.md +96 -0
  272. package/dist/collection/components/mds-link/documentation.json +407 -0
  273. package/dist/collection/components/mds-link/mds-link.css +301 -0
  274. package/dist/collection/components/mds-link/mds-link.js +335 -0
  275. package/dist/collection/components/mds-link/meta/dictionary.js +3 -0
  276. package/dist/collection/components/mds-link/meta/types.js +1 -0
  277. package/dist/collection/components/mds-link/pattern.md +100 -0
  278. package/dist/collection/components/mds-list/AGENTS.md +1 -1
  279. package/dist/collection/components/mds-list/documentation.json +1 -1
  280. package/dist/collection/components/mds-list/mds-list.js +1 -1
  281. package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
  282. package/dist/collection/components/mds-list-item/documentation.json +1 -1
  283. package/dist/collection/components/mds-list-item/mds-list-item.css +4 -4
  284. package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
  285. package/dist/collection/components/mds-mention/AGENTS.md +1 -1
  286. package/dist/collection/components/mds-mention/documentation.json +1 -1
  287. package/dist/collection/components/mds-mention/mds-mention.js +1 -1
  288. package/dist/collection/components/mds-modal/AGENTS.md +1 -1
  289. package/dist/collection/components/mds-modal/documentation.json +1 -1
  290. package/dist/collection/components/mds-modal/mds-modal.css +5 -5
  291. package/dist/collection/components/mds-modal/mds-modal.js +3 -3
  292. package/dist/collection/components/mds-note/AGENTS.md +1 -1
  293. package/dist/collection/components/mds-note/documentation.json +1 -1
  294. package/dist/collection/components/mds-note/mds-note.css +3 -3
  295. package/dist/collection/components/mds-note/mds-note.js +1 -1
  296. package/dist/collection/components/mds-notification/AGENTS.md +1 -1
  297. package/dist/collection/components/mds-notification/documentation.json +1 -1
  298. package/dist/collection/components/mds-notification/mds-notification.css +22 -22
  299. package/dist/collection/components/mds-notification/mds-notification.js +1 -1
  300. package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
  301. package/dist/collection/components/mds-paginator/documentation.json +1 -1
  302. package/dist/collection/components/mds-paginator/mds-paginator.css +1 -1
  303. package/dist/collection/components/mds-paginator/mds-paginator.js +1 -1
  304. package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
  305. package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
  306. package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +1 -1
  307. package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
  308. package/dist/collection/components/mds-policy-ai/documentation.json +1 -1
  309. package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
  310. package/dist/collection/components/mds-pref/AGENTS.md +1 -1
  311. package/dist/collection/components/mds-pref/documentation.json +1 -1
  312. package/dist/collection/components/mds-pref/mds-pref.js +1 -1
  313. package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
  314. package/dist/collection/components/mds-pref-animation/documentation.json +1 -1
  315. package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +1 -1
  316. package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
  317. package/dist/collection/components/mds-pref-consumption/documentation.json +1 -1
  318. package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +1 -1
  319. package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
  320. package/dist/collection/components/mds-pref-contrast/documentation.json +1 -1
  321. package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +1 -1
  322. package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
  323. package/dist/collection/components/mds-pref-language/documentation.json +1 -1
  324. package/dist/collection/components/mds-pref-language/mds-pref-language.js +1 -1
  325. package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
  326. package/dist/collection/components/mds-pref-language-item/documentation.json +1 -1
  327. package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +1 -1
  328. package/dist/collection/components/mds-pref-mode/AGENTS.md +1 -1
  329. package/dist/collection/components/mds-pref-mode/documentation.json +1 -1
  330. package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +2 -2
  331. package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +1 -1
  332. package/dist/collection/components/mds-pref-theme/AGENTS.md +1 -1
  333. package/dist/collection/components/mds-pref-theme/documentation.json +1 -1
  334. package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +1 -1
  335. package/dist/collection/components/mds-pref-theme-item/AGENTS.md +1 -1
  336. package/dist/collection/components/mds-pref-theme-item/documentation.json +1 -1
  337. package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +1 -1
  338. package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
  339. package/dist/collection/components/mds-price-table/documentation.json +1 -1
  340. package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
  341. package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
  342. package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
  343. package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
  344. package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
  345. package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
  346. package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
  347. package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
  348. package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
  349. package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
  350. package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
  351. package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
  352. package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
  353. package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
  354. package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
  355. package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
  356. package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
  357. package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
  358. package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
  359. package/dist/collection/components/mds-progress/AGENTS.md +1 -1
  360. package/dist/collection/components/mds-progress/documentation.json +1 -1
  361. package/dist/collection/components/mds-progress/mds-progress.css +2 -0
  362. package/dist/collection/components/mds-progress/mds-progress.js +1 -1
  363. package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
  364. package/dist/collection/components/mds-push-notification/documentation.json +1 -1
  365. package/dist/collection/components/mds-push-notification/mds-push-notification.css +4 -4
  366. package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
  367. package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
  368. package/dist/collection/components/mds-push-notification-item/documentation.json +1 -1
  369. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +2 -2
  370. package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
  371. package/dist/collection/components/mds-quote/AGENTS.md +1 -1
  372. package/dist/collection/components/mds-quote/documentation.json +1 -1
  373. package/dist/collection/components/mds-quote/mds-quote.js +1 -1
  374. package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
  375. package/dist/collection/components/mds-radial-menu/documentation.json +1 -1
  376. package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +8 -6
  377. package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +1 -1
  378. package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
  379. package/dist/collection/components/mds-radial-menu-item/documentation.json +1 -1
  380. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.css +2 -2
  381. package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
  382. package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
  383. package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
  384. package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +1 -1
  385. package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
  386. package/dist/collection/components/mds-separator/AGENTS.md +1 -1
  387. package/dist/collection/components/mds-separator/documentation.json +1 -1
  388. package/dist/collection/components/mds-separator/mds-separator.js +1 -1
  389. package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
  390. package/dist/collection/components/mds-spinner/documentation.json +1 -1
  391. package/dist/collection/components/mds-spinner/mds-spinner.css +6 -0
  392. package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
  393. package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
  394. package/dist/collection/components/mds-status-bar/documentation.json +1 -1
  395. package/dist/collection/components/mds-status-bar/mds-status-bar.css +3 -3
  396. package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
  397. package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
  398. package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
  399. package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
  400. package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
  401. package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
  402. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +4 -2
  403. package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
  404. package/dist/collection/components/mds-tab/AGENTS.md +1 -1
  405. package/dist/collection/components/mds-tab/documentation.json +1 -1
  406. package/dist/collection/components/mds-tab/mds-tab.css +9 -7
  407. package/dist/collection/components/mds-tab/mds-tab.js +2 -2
  408. package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
  409. package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
  410. package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
  411. package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
  412. package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
  413. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +2 -2
  414. package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
  415. package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
  416. package/dist/collection/components/mds-tab-item/documentation.json +1 -1
  417. package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
  418. package/dist/collection/components/mds-table/AGENTS.md +1 -1
  419. package/dist/collection/components/mds-table/documentation.json +1 -1
  420. package/dist/collection/components/mds-table/mds-table.css +1 -1
  421. package/dist/collection/components/mds-table/mds-table.js +1 -1
  422. package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
  423. package/dist/collection/components/mds-table-body/documentation.json +1 -1
  424. package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
  425. package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
  426. package/dist/collection/components/mds-table-cell/documentation.json +1 -1
  427. package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
  428. package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
  429. package/dist/collection/components/mds-table-footer/documentation.json +1 -1
  430. package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
  431. package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
  432. package/dist/collection/components/mds-table-header/documentation.json +1 -1
  433. package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
  434. package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
  435. package/dist/collection/components/mds-table-header-cell/documentation.json +1 -1
  436. package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +1 -1
  437. package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
  438. package/dist/collection/components/mds-table-row/documentation.json +1 -1
  439. package/dist/collection/components/mds-table-row/mds-table-row.css +1 -1
  440. package/dist/collection/components/mds-table-row/mds-table-row.js +2 -2
  441. package/dist/collection/components/mds-text/AGENTS.md +2 -2
  442. package/dist/collection/components/mds-text/antipattern.md +1 -1
  443. package/dist/collection/components/mds-text/documentation.json +4 -4
  444. package/dist/collection/components/mds-text/mds-text.js +1 -1
  445. package/dist/collection/components/mds-text/pattern.md +10 -0
  446. package/dist/collection/components/mds-toast/AGENTS.md +1 -1
  447. package/dist/collection/components/mds-toast/documentation.json +1 -1
  448. package/dist/collection/components/mds-toast/mds-toast.css +2 -2
  449. package/dist/collection/components/mds-toast/mds-toast.js +1 -1
  450. package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
  451. package/dist/collection/components/mds-toast-region/documentation.json +1 -1
  452. package/dist/collection/components/mds-toast-region/mds-toast-region.js +1 -1
  453. package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
  454. package/dist/collection/components/mds-tooltip/documentation.json +1 -1
  455. package/dist/collection/components/mds-tooltip/mds-tooltip.css +25 -25
  456. package/dist/collection/components/mds-tooltip/mds-tooltip.js +1 -1
  457. package/dist/collection/components/mds-tree/AGENTS.md +1 -1
  458. package/dist/collection/components/mds-tree/documentation.json +1 -1
  459. package/dist/collection/components/mds-tree/mds-tree.css +1 -1
  460. package/dist/collection/components/mds-tree/mds-tree.js +1 -1
  461. package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
  462. package/dist/collection/components/mds-tree-item/documentation.json +1 -1
  463. package/dist/collection/components/mds-tree-item/mds-tree-item.css +0 -1
  464. package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
  465. package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
  466. package/dist/collection/components/mds-url-view/documentation.json +1 -1
  467. package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
  468. package/dist/collection/components/mds-usage/AGENTS.md +1 -1
  469. package/dist/collection/components/mds-usage/documentation.json +1 -1
  470. package/dist/collection/components/mds-usage/mds-usage.js +1 -1
  471. package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
  472. package/dist/collection/components/mds-video-wall/documentation.json +1 -1
  473. package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
  474. package/dist/collection/components/mds-zero/AGENTS.md +1 -1
  475. package/dist/collection/components/mds-zero/documentation.json +1 -1
  476. package/dist/collection/components/mds-zero/mds-zero.css +2 -2
  477. package/dist/collection/components/mds-zero/mds-zero.js +1 -1
  478. package/dist/components/index.d.ts +2 -0
  479. package/dist/components/index.js +1 -1
  480. package/dist/components/mds-accordion-item.js +1 -1
  481. package/dist/components/mds-accordion-timer-item.js +1 -1
  482. package/dist/components/mds-accordion-timer.js +1 -1
  483. package/dist/components/mds-accordion.js +1 -1
  484. package/dist/components/mds-author.js +1 -1
  485. package/dist/components/mds-avatar-stack-item.js +1 -1
  486. package/dist/components/mds-avatar-stack.js +1 -1
  487. package/dist/components/mds-avatar.js +1 -1
  488. package/dist/components/mds-badge.js +1 -1
  489. package/dist/components/mds-banner.js +1 -1
  490. package/dist/components/mds-benchmark-bar.js +1 -1
  491. package/dist/components/mds-bibliography.js +1 -1
  492. package/dist/components/mds-breadcrumb-item.js +1 -1
  493. package/dist/components/mds-breadcrumb.js +1 -1
  494. package/dist/components/mds-button-dropdown.js +1 -1
  495. package/dist/components/mds-button-group.js +1 -1
  496. package/dist/components/mds-button.js +1 -1
  497. package/dist/components/mds-calendar-cell.js +1 -1
  498. package/dist/components/mds-calendar.js +1 -1
  499. package/dist/components/mds-card-content.js +1 -1
  500. package/dist/components/mds-card-footer.js +1 -1
  501. package/dist/components/mds-card-header.js +1 -1
  502. package/dist/components/mds-card-media.js +1 -1
  503. package/dist/components/mds-card.js +1 -1
  504. package/dist/components/mds-chip.js +1 -1
  505. package/dist/components/mds-details.js +1 -1
  506. package/dist/components/mds-dropdown.js +1 -1
  507. package/dist/components/mds-emoji.js +3 -3
  508. package/dist/components/mds-entity.js +1 -1
  509. package/dist/components/mds-file-preview.js +1 -1
  510. package/dist/components/mds-file.js +1 -1
  511. package/dist/components/mds-filter-item.js +1 -1
  512. package/dist/components/mds-filter.js +1 -1
  513. package/dist/components/mds-header-bar.js +1 -1
  514. package/dist/components/mds-header.js +1 -1
  515. package/dist/components/mds-help.js +1 -1
  516. package/dist/components/mds-horizontal-scroll.js +1 -1
  517. package/dist/components/mds-hr.js +1 -1
  518. package/dist/components/mds-icon.js +1 -1
  519. package/dist/components/mds-img.js +1 -1
  520. package/dist/components/mds-input-date-range-preselection.js +1 -1
  521. package/dist/components/mds-input-date-range.js +1 -1
  522. package/dist/components/mds-input-date.js +1 -1
  523. package/dist/components/mds-input-field.js +1 -1
  524. package/dist/components/mds-input-otp.js +1 -1
  525. package/dist/components/mds-input-range.js +1 -1
  526. package/dist/components/mds-input-select.js +1 -1
  527. package/dist/components/mds-input-switch.js +1 -1
  528. package/dist/components/mds-input-tip-item.js +1 -1
  529. package/dist/components/mds-input-tip.js +1 -1
  530. package/dist/components/mds-input-upload.js +1 -1
  531. package/dist/components/mds-input.js +1 -1
  532. package/dist/components/mds-keyboard-key.js +1 -1
  533. package/dist/components/mds-keyboard.js +1 -1
  534. package/dist/components/mds-kpi-item.js +1 -1
  535. package/dist/components/mds-kpi.js +1 -1
  536. package/dist/components/mds-label.js +1 -1
  537. package/dist/components/mds-link.d.ts +11 -0
  538. package/dist/components/mds-link.js +1 -0
  539. package/dist/components/mds-list-item.js +1 -1
  540. package/dist/components/mds-list.js +1 -1
  541. package/dist/components/mds-mention.js +1 -1
  542. package/dist/components/mds-modal.js +1 -1
  543. package/dist/components/mds-note.js +1 -1
  544. package/dist/components/mds-notification.js +1 -1
  545. package/dist/components/mds-paginator-item.js +1 -1
  546. package/dist/components/mds-paginator.js +1 -1
  547. package/dist/components/mds-policy-ai.js +1 -1
  548. package/dist/components/mds-pref-animation.js +1 -1
  549. package/dist/components/mds-pref-consumption.js +1 -1
  550. package/dist/components/mds-pref-contrast.js +1 -1
  551. package/dist/components/mds-pref-language-item.js +1 -1
  552. package/dist/components/mds-pref-language.js +1 -1
  553. package/dist/components/mds-pref-mode.js +1 -1
  554. package/dist/components/mds-pref-theme-item.js +1 -1
  555. package/dist/components/mds-pref-theme.js +1 -1
  556. package/dist/components/mds-pref.js +1 -1
  557. package/dist/components/mds-price-table-features-cell.js +1 -1
  558. package/dist/components/mds-price-table-features-row.js +1 -1
  559. package/dist/components/mds-price-table-features.js +1 -1
  560. package/dist/components/mds-price-table-header.js +1 -1
  561. package/dist/components/mds-price-table-list-item.js +1 -1
  562. package/dist/components/mds-price-table-list.js +1 -1
  563. package/dist/components/mds-price-table.js +1 -1
  564. package/dist/components/mds-progress.js +1 -1
  565. package/dist/components/mds-push-notification-item.js +1 -1
  566. package/dist/components/mds-push-notification.js +1 -1
  567. package/dist/components/mds-quote.js +1 -1
  568. package/dist/components/mds-radial-menu-item.js +1 -1
  569. package/dist/components/mds-radial-menu.js +1 -1
  570. package/dist/components/mds-radial-progress.js +1 -1
  571. package/dist/components/mds-separator.js +1 -1
  572. package/dist/components/mds-spinner.js +1 -1
  573. package/dist/components/mds-status-bar.js +1 -1
  574. package/dist/components/mds-stepper-bar-item.js +1 -1
  575. package/dist/components/mds-stepper-bar.js +1 -1
  576. package/dist/components/mds-tab-bar-item.js +1 -1
  577. package/dist/components/mds-tab-bar.js +1 -1
  578. package/dist/components/mds-tab-item.js +1 -1
  579. package/dist/components/mds-tab.js +1 -1
  580. package/dist/components/mds-table-body.js +1 -1
  581. package/dist/components/mds-table-cell.js +1 -1
  582. package/dist/components/mds-table-footer.js +1 -1
  583. package/dist/components/mds-table-header-cell.js +1 -1
  584. package/dist/components/mds-table-header.js +1 -1
  585. package/dist/components/mds-table-row.js +1 -1
  586. package/dist/components/mds-table.js +1 -1
  587. package/dist/components/mds-text.js +1 -1
  588. package/dist/components/mds-toast-region.js +1 -1
  589. package/dist/components/mds-toast.js +1 -1
  590. package/dist/components/mds-tooltip.js +1 -1
  591. package/dist/components/mds-tree-item.js +1 -1
  592. package/dist/components/mds-tree.js +1 -1
  593. package/dist/components/mds-url-view.js +1 -1
  594. package/dist/components/mds-usage.js +1 -1
  595. package/dist/components/mds-video-wall.js +1 -1
  596. package/dist/components/mds-zero.js +1 -1
  597. package/dist/components/p-B0AnE3sA.js +1 -0
  598. package/dist/{magma-components/p-BmT_DEV2.js → components/p-B8x-d2fx.js} +2 -2
  599. package/dist/components/{p-Didp833Z.js → p-BU3bsIX2.js} +1 -1
  600. package/dist/components/{p-NlPseOAv.js → p-BbK4qeM7.js} +1 -1
  601. package/dist/components/p-BbTcXgbr.js +1 -0
  602. package/dist/components/p-BwJQB6rG.js +1 -0
  603. package/dist/components/p-Bz1eiKqd.js +1 -0
  604. package/dist/components/p-C1CTahjH.js +1 -0
  605. package/dist/components/{p-BLiWCyrD.js → p-C4XdTZQ-.js} +1 -1
  606. package/dist/components/p-C99SMdU_.js +1 -0
  607. package/dist/components/{p-BFisF7aN.js → p-CHHEp_7y.js} +1 -1
  608. package/dist/components/{p-DSxDXNWp.js → p-CLe_N2_H.js} +1 -1
  609. package/dist/components/{p-DezdwzYQ.js → p-CNF3u0Li.js} +1 -1
  610. package/dist/components/p-CNZ8_QvE.js +8 -0
  611. package/dist/components/{p-DaptTdaU.js → p-CSxW5f2f.js} +1 -1
  612. package/dist/components/{p-BlnEiKN4.js → p-CVRN4LDc.js} +1 -1
  613. package/dist/components/{p-sM-eFjwq.js → p-Cd8id3Br.js} +1 -1
  614. package/dist/components/p-CfQETwAK.js +1 -0
  615. package/dist/components/p-ClPv-Ljc.js +1 -0
  616. package/dist/components/{p-cIZniMh0.js → p-Cmn1DJAB.js} +1 -1
  617. package/dist/components/{p-fhAmrBfl.js → p-D-DdDIb9.js} +1 -1
  618. package/dist/components/{p-D4JiVIoh.js → p-D2d9eOLi.js} +1 -1
  619. package/dist/components/p-D8wd-EZX.js +1 -0
  620. package/dist/components/{p-B1bYa-o0.js → p-DCrdKrky.js} +1 -1
  621. package/dist/components/{p-D_0rjNZp.js → p-DF3PrYBI.js} +1 -1
  622. package/dist/components/p-DNeEn8Rr.js +1 -0
  623. package/dist/components/{p-Bg5E4Wnq.js → p-DiUUZ7ZA.js} +1 -1
  624. package/dist/components/{p-DACnmwad.js → p-DkUdrGHq.js} +1 -1
  625. package/dist/components/{p-BL220gRU.js → p-Dm-OUwDe.js} +1 -1
  626. package/dist/components/p-DnySYX0L.js +1 -0
  627. package/dist/components/{p-B2p5a1Y8.js → p-TZJN-ygm.js} +1 -1
  628. package/dist/components/{p-B6B6q5kP.js → p-ZuubAcA3.js} +1 -1
  629. package/dist/{magma-components/p-DmFo8_MF.js → components/p-jasGzfhE.js} +1 -1
  630. package/dist/components/p-nsbhb0lz.js +1 -0
  631. package/dist/components/{p-JPhOaOXe.js → p-s1CktmPS.js} +1 -1
  632. package/dist/components/{p-NOw8-OrM.js → p-uqwixjju.js} +1 -1
  633. package/dist/documentation.json +430 -10
  634. package/dist/esm/{floating-controller-CVVcyKew.js → floating-controller-BVlbYYkf.js} +1 -1
  635. package/dist/esm/{index-CPRkNQdE.js → index-CvLLN-QH.js} +5 -1
  636. package/dist/esm/{index-DI_6NAg0.js → index-D2_gI0qp.js} +1 -1
  637. package/dist/esm/index.js +3 -63
  638. package/dist/esm/loader.js +3 -3
  639. package/dist/esm/{locale-DfpXg7qZ.js → locale-BQmO6K_S.js} +1 -1
  640. package/dist/esm/magma-components.js +3 -3
  641. package/dist/esm/mds-accordion-item.entry.js +3 -3
  642. package/dist/esm/mds-accordion-timer-item.entry.js +3 -3
  643. package/dist/esm/mds-accordion-timer.entry.js +2 -2
  644. package/dist/esm/mds-accordion.entry.js +3 -3
  645. package/dist/esm/mds-author.entry.js +1 -1
  646. package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
  647. package/dist/esm/mds-avatar-stack.entry.js +1 -1
  648. package/dist/esm/mds-avatar.entry.js +2 -2
  649. package/dist/esm/mds-badge.entry.js +2 -2
  650. package/dist/esm/mds-banner_3.entry.js +6 -6
  651. package/dist/esm/mds-benchmark-bar.entry.js +1 -1
  652. package/dist/esm/mds-bibliography.entry.js +1 -1
  653. package/dist/esm/mds-breadcrumb-item.entry.js +2 -2
  654. package/dist/esm/mds-breadcrumb.entry.js +3 -3
  655. package/dist/esm/mds-button-dropdown.entry.js +3 -3
  656. package/dist/esm/mds-button-group.entry.js +1 -1
  657. package/dist/esm/mds-button_3.entry.js +6 -5
  658. package/dist/esm/mds-calendar_2.entry.js +4 -4
  659. package/dist/esm/mds-card-content.entry.js +1 -1
  660. package/dist/esm/mds-card-footer.entry.js +1 -1
  661. package/dist/esm/mds-card-header.entry.js +1 -1
  662. package/dist/esm/mds-card-media.entry.js +1 -1
  663. package/dist/esm/mds-card.entry.js +3 -3
  664. package/dist/esm/mds-details.entry.js +3 -3
  665. package/dist/esm/mds-dropdown.entry.js +4 -4
  666. package/dist/esm/mds-emoji.entry.js +3 -3
  667. package/dist/esm/mds-entity.entry.js +4 -4
  668. package/dist/esm/mds-file-preview.entry.js +4 -4
  669. package/dist/esm/mds-file.entry.js +3 -3
  670. package/dist/esm/mds-filter-item.entry.js +3 -3
  671. package/dist/esm/mds-filter.entry.js +4 -4
  672. package/dist/esm/mds-header-bar.entry.js +4 -4
  673. package/dist/esm/mds-header.entry.js +3 -3
  674. package/dist/esm/mds-horizontal-scroll.entry.js +4 -4
  675. package/dist/esm/mds-hr.entry.js +2 -2
  676. package/dist/esm/mds-img.entry.js +3 -3
  677. package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
  678. package/dist/esm/mds-input-date-range.entry.js +4 -4
  679. package/dist/esm/mds-input-date.entry.js +5 -5
  680. package/dist/esm/mds-input-field.entry.js +1 -1
  681. package/dist/esm/mds-input-otp.entry.js +3 -3
  682. package/dist/esm/mds-input-range.entry.js +2 -2
  683. package/dist/esm/mds-input-select.entry.js +5 -5
  684. package/dist/esm/mds-input-switch_2.entry.js +7 -7
  685. package/dist/esm/mds-input-tip_2.entry.js +3 -3
  686. package/dist/esm/mds-input-upload.entry.js +4 -4
  687. package/dist/esm/mds-input.entry.js +5 -5
  688. package/dist/esm/mds-keyboard-key.entry.js +4 -4
  689. package/dist/esm/mds-keyboard.entry.js +4 -4
  690. package/dist/esm/mds-kpi-item.entry.js +2 -2
  691. package/dist/esm/mds-kpi.entry.js +2 -2
  692. package/dist/esm/mds-label.entry.js +3 -3
  693. package/dist/esm/mds-link.entry.js +145 -0
  694. package/dist/esm/mds-list-item.entry.js +3 -3
  695. package/dist/esm/mds-list.entry.js +2 -2
  696. package/dist/esm/mds-mention.entry.js +4 -4
  697. package/dist/esm/mds-modal.entry.js +7 -7
  698. package/dist/esm/mds-note.entry.js +5 -5
  699. package/dist/esm/mds-notification.entry.js +4 -4
  700. package/dist/esm/mds-paginator-item.entry.js +3 -3
  701. package/dist/esm/mds-paginator.entry.js +5 -5
  702. package/dist/esm/mds-policy-ai.entry.js +4 -4
  703. package/dist/esm/mds-pref-animation.entry.js +4 -4
  704. package/dist/esm/mds-pref-consumption.entry.js +4 -4
  705. package/dist/esm/mds-pref-contrast.entry.js +4 -4
  706. package/dist/esm/mds-pref-language-item.entry.js +4 -4
  707. package/dist/esm/mds-pref-language.entry.js +4 -4
  708. package/dist/esm/mds-pref-mode.entry.js +5 -5
  709. package/dist/esm/mds-pref-theme-item.entry.js +2 -2
  710. package/dist/esm/mds-pref-theme.entry.js +4 -4
  711. package/dist/esm/mds-pref.entry.js +4 -4
  712. package/dist/esm/mds-price-table-features-cell.entry.js +3 -3
  713. package/dist/esm/mds-price-table-features-row.entry.js +3 -3
  714. package/dist/esm/mds-price-table-features.entry.js +3 -3
  715. package/dist/esm/mds-price-table-header.entry.js +2 -2
  716. package/dist/esm/mds-price-table-list-item.entry.js +2 -2
  717. package/dist/esm/mds-price-table-list.entry.js +3 -3
  718. package/dist/esm/mds-price-table.entry.js +2 -2
  719. package/dist/esm/mds-progress_2.entry.js +5 -5
  720. package/dist/esm/mds-push-notification-item.entry.js +6 -6
  721. package/dist/esm/mds-push-notification.entry.js +5 -5
  722. package/dist/esm/mds-quote.entry.js +3 -3
  723. package/dist/esm/mds-radial-menu-item.entry.js +3 -3
  724. package/dist/esm/mds-radial-menu.entry.js +6 -6
  725. package/dist/esm/mds-separator.entry.js +3 -3
  726. package/dist/esm/mds-status-bar.entry.js +4 -4
  727. package/dist/esm/mds-stepper-bar-item.entry.js +5 -5
  728. package/dist/esm/mds-stepper-bar.entry.js +2 -2
  729. package/dist/esm/mds-tab-bar-item.entry.js +4 -4
  730. package/dist/esm/mds-tab-bar.entry.js +3 -3
  731. package/dist/esm/mds-tab_2.entry.js +6 -6
  732. package/dist/esm/mds-table-body.entry.js +3 -3
  733. package/dist/esm/mds-table-footer.entry.js +3 -3
  734. package/dist/esm/mds-table-header-cell.entry.js +3 -3
  735. package/dist/esm/mds-table-header.entry.js +4 -4
  736. package/dist/esm/mds-table-row.entry.js +6 -6
  737. package/dist/esm/mds-table.entry.js +5 -5
  738. package/dist/esm/mds-text.entry.js +3 -3
  739. package/dist/esm/mds-toast-region.entry.js +2 -2
  740. package/dist/esm/mds-toast.entry.js +5 -5
  741. package/dist/esm/mds-tooltip.entry.js +5 -5
  742. package/dist/esm/mds-tree-item.entry.js +5 -5
  743. package/dist/esm/mds-tree.entry.js +3 -3
  744. package/dist/esm/mds-url-view.entry.js +4 -4
  745. package/dist/esm/mds-usage.entry.js +4 -4
  746. package/dist/esm/mds-video-wall.entry.js +3 -3
  747. package/dist/esm/mds-zero.entry.js +4 -4
  748. package/dist/esm/navigation-Bz1eiKqd.js +62 -0
  749. package/dist/esm/{preference-Ch1zJnqq.js → preference-C5XjgGCb.js} +1 -1
  750. package/dist/esm-es5/{floating-controller-CVVcyKew.js → floating-controller-BVlbYYkf.js} +1 -1
  751. package/dist/esm-es5/{index-CPRkNQdE.js → index-CvLLN-QH.js} +4 -2
  752. package/dist/esm-es5/{index-DI_6NAg0.js → index-D2_gI0qp.js} +1 -1
  753. package/dist/esm-es5/index.js +20 -37
  754. package/dist/esm-es5/loader.js +1 -1
  755. package/dist/esm-es5/{locale-DfpXg7qZ.js → locale-BQmO6K_S.js} +1 -1
  756. package/dist/esm-es5/magma-components.js +2 -2
  757. package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
  758. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  759. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  760. package/dist/esm-es5/mds-accordion.entry.js +2 -2
  761. package/dist/esm-es5/mds-author.entry.js +1 -1
  762. package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
  763. package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
  764. package/dist/esm-es5/mds-avatar.entry.js +2 -2
  765. package/dist/esm-es5/mds-badge.entry.js +1 -1
  766. package/dist/esm-es5/mds-banner_3.entry.js +3 -3
  767. package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
  768. package/dist/esm-es5/mds-bibliography.entry.js +1 -1
  769. package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
  770. package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
  771. package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
  772. package/dist/esm-es5/mds-button-group.entry.js +1 -1
  773. package/dist/esm-es5/mds-button_3.entry.js +2 -2
  774. package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
  775. package/dist/esm-es5/mds-card-content.entry.js +1 -1
  776. package/dist/esm-es5/mds-card-footer.entry.js +1 -1
  777. package/dist/esm-es5/mds-card-header.entry.js +1 -1
  778. package/dist/esm-es5/mds-card-media.entry.js +1 -1
  779. package/dist/esm-es5/mds-card.entry.js +1 -1
  780. package/dist/esm-es5/mds-details.entry.js +1 -1
  781. package/dist/esm-es5/mds-dropdown.entry.js +15 -15
  782. package/dist/esm-es5/mds-emoji.entry.js +2 -2
  783. package/dist/esm-es5/mds-entity.entry.js +1 -1
  784. package/dist/esm-es5/mds-file-preview.entry.js +10 -10
  785. package/dist/esm-es5/mds-file.entry.js +1 -1
  786. package/dist/esm-es5/mds-filter-item.entry.js +1 -1
  787. package/dist/esm-es5/mds-filter.entry.js +1 -1
  788. package/dist/esm-es5/mds-header-bar.entry.js +1 -1
  789. package/dist/esm-es5/mds-header.entry.js +1 -1
  790. package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
  791. package/dist/esm-es5/mds-hr.entry.js +1 -1
  792. package/dist/esm-es5/mds-img.entry.js +1 -1
  793. package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
  794. package/dist/esm-es5/mds-input-date-range.entry.js +15 -15
  795. package/dist/esm-es5/mds-input-date.entry.js +1 -1
  796. package/dist/esm-es5/mds-input-field.entry.js +1 -1
  797. package/dist/esm-es5/mds-input-otp.entry.js +1 -1
  798. package/dist/esm-es5/mds-input-range.entry.js +1 -1
  799. package/dist/esm-es5/mds-input-select.entry.js +1 -1
  800. package/dist/esm-es5/mds-input-switch_2.entry.js +3 -3
  801. package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
  802. package/dist/esm-es5/mds-input-upload.entry.js +1 -1
  803. package/dist/esm-es5/mds-input.entry.js +2 -2
  804. package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
  805. package/dist/esm-es5/mds-keyboard.entry.js +1 -1
  806. package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
  807. package/dist/esm-es5/mds-kpi.entry.js +1 -1
  808. package/dist/esm-es5/mds-label.entry.js +1 -1
  809. package/dist/esm-es5/mds-link.entry.js +39 -0
  810. package/dist/esm-es5/mds-list-item.entry.js +2 -2
  811. package/dist/esm-es5/mds-list.entry.js +1 -1
  812. package/dist/esm-es5/mds-mention.entry.js +2 -2
  813. package/dist/esm-es5/mds-modal.entry.js +3 -3
  814. package/dist/esm-es5/mds-note.entry.js +2 -2
  815. package/dist/esm-es5/mds-notification.entry.js +8 -8
  816. package/dist/esm-es5/mds-paginator-item.entry.js +2 -2
  817. package/dist/esm-es5/mds-paginator.entry.js +2 -2
  818. package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
  819. package/dist/esm-es5/mds-pref-animation.entry.js +2 -2
  820. package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
  821. package/dist/esm-es5/mds-pref-contrast.entry.js +2 -2
  822. package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
  823. package/dist/esm-es5/mds-pref-language.entry.js +2 -2
  824. package/dist/esm-es5/mds-pref-mode.entry.js +2 -2
  825. package/dist/esm-es5/mds-pref-theme-item.entry.js +3 -3
  826. package/dist/esm-es5/mds-pref-theme.entry.js +2 -2
  827. package/dist/esm-es5/mds-pref.entry.js +2 -2
  828. package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
  829. package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
  830. package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
  831. package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
  832. package/dist/esm-es5/mds-price-table-list-item.entry.js +2 -2
  833. package/dist/esm-es5/mds-price-table-list.entry.js +2 -2
  834. package/dist/esm-es5/mds-price-table.entry.js +1 -1
  835. package/dist/esm-es5/mds-progress_2.entry.js +3 -3
  836. package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
  837. package/dist/esm-es5/mds-push-notification.entry.js +2 -2
  838. package/dist/esm-es5/mds-quote.entry.js +2 -2
  839. package/dist/esm-es5/mds-radial-menu-item.entry.js +2 -2
  840. package/dist/esm-es5/mds-radial-menu.entry.js +4 -4
  841. package/dist/esm-es5/mds-separator.entry.js +1 -1
  842. package/dist/esm-es5/mds-status-bar.entry.js +2 -2
  843. package/dist/esm-es5/mds-stepper-bar-item.entry.js +2 -2
  844. package/dist/esm-es5/mds-stepper-bar.entry.js +2 -2
  845. package/dist/esm-es5/mds-tab-bar-item.entry.js +2 -2
  846. package/dist/esm-es5/mds-tab-bar.entry.js +2 -2
  847. package/dist/esm-es5/mds-tab_2.entry.js +3 -3
  848. package/dist/esm-es5/mds-table-body.entry.js +1 -1
  849. package/dist/esm-es5/mds-table-footer.entry.js +2 -2
  850. package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
  851. package/dist/esm-es5/mds-table-header.entry.js +2 -2
  852. package/dist/esm-es5/mds-table-row.entry.js +2 -2
  853. package/dist/esm-es5/mds-table.entry.js +2 -2
  854. package/dist/esm-es5/mds-text.entry.js +2 -2
  855. package/dist/esm-es5/mds-toast-region.entry.js +3 -3
  856. package/dist/esm-es5/mds-toast.entry.js +2 -2
  857. package/dist/esm-es5/mds-tooltip.entry.js +3 -3
  858. package/dist/esm-es5/mds-tree-item.entry.js +2 -2
  859. package/dist/esm-es5/mds-tree.entry.js +2 -2
  860. package/dist/esm-es5/mds-url-view.entry.js +2 -2
  861. package/dist/esm-es5/mds-usage.entry.js +2 -2
  862. package/dist/esm-es5/mds-video-wall.entry.js +2 -2
  863. package/dist/esm-es5/mds-zero.entry.js +1 -1
  864. package/dist/esm-es5/navigation-Bz1eiKqd.js +17 -0
  865. package/dist/esm-es5/{preference-Ch1zJnqq.js → preference-C5XjgGCb.js} +4 -4
  866. package/dist/hydrate/index.js +461 -299
  867. package/dist/hydrate/index.mjs +461 -299
  868. package/dist/magma-components/index.esm.js +1 -1
  869. package/dist/magma-components/magma-components.esm.js +1 -1
  870. package/dist/magma-components/magma-components.js +1 -1
  871. package/dist/magma-components/{p-028f3717.entry.js → p-000c315c.entry.js} +1 -1
  872. package/dist/magma-components/{p-4fdda209.system.entry.js → p-0033cb92.system.entry.js} +2 -2
  873. package/dist/magma-components/{p-c72651b2.entry.js → p-0148cf0a.entry.js} +1 -1
  874. package/dist/magma-components/{p-6c91b00d.system.entry.js → p-02298ed0.system.entry.js} +2 -2
  875. package/dist/magma-components/p-02fe26b4.system.entry.js +35 -0
  876. package/dist/magma-components/p-05ed801b.system.entry.js +14 -0
  877. package/dist/magma-components/{p-a1ca2441.system.entry.js → p-0679c988.system.entry.js} +1 -1
  878. package/dist/magma-components/{p-3bb26611.entry.js → p-068e30a5.entry.js} +1 -1
  879. package/dist/magma-components/{p-1f9ebc0d.entry.js → p-06ccc40d.entry.js} +1 -1
  880. package/dist/magma-components/{p-926ef760.entry.js → p-06fde29d.entry.js} +1 -1
  881. package/dist/magma-components/{p-176e6d9d.system.entry.js → p-08370fc2.system.entry.js} +1 -1
  882. package/dist/magma-components/{p-e032e77f.system.entry.js → p-083dceb8.system.entry.js} +1 -1
  883. package/dist/magma-components/{p-a136e6fe.system.entry.js → p-09a7b578.system.entry.js} +1 -1
  884. package/dist/magma-components/{p-e6ed6e12.entry.js → p-09f621ea.entry.js} +1 -1
  885. package/dist/magma-components/p-0a8e8525.entry.js +1 -0
  886. package/dist/magma-components/p-0b3e4a97.system.entry.js +39 -0
  887. package/dist/magma-components/p-0d32e196.system.entry.js +81 -0
  888. package/dist/magma-components/{p-0f47fd37.system.entry.js → p-0e887379.system.entry.js} +2 -2
  889. package/dist/magma-components/p-0eb3558a.entry.js +1 -0
  890. package/dist/magma-components/p-104ba54e.system.entry.js +13 -0
  891. package/dist/magma-components/{p-8d8c9c90.entry.js → p-15ffdcf6.entry.js} +1 -1
  892. package/dist/magma-components/{p-3ac09ace.entry.js → p-1908f808.entry.js} +1 -1
  893. package/dist/magma-components/{p-c4286fb7.system.entry.js → p-1d2220f0.system.entry.js} +1 -1
  894. package/dist/magma-components/{p-eebf450c.system.entry.js → p-1e18fcc5.system.entry.js} +2 -2
  895. package/dist/magma-components/{p-36ad5759.system.entry.js → p-1eee93c8.system.entry.js} +1 -1
  896. package/dist/magma-components/p-1f623b75.entry.js +1 -0
  897. package/dist/magma-components/{p-a1443292.entry.js → p-1faa4f71.entry.js} +1 -1
  898. package/dist/magma-components/{p-af704402.system.entry.js → p-21547758.system.entry.js} +1 -1
  899. package/dist/magma-components/{p-0dd4b006.entry.js → p-221c2f0d.entry.js} +1 -1
  900. package/dist/magma-components/{p-0727d8f9.entry.js → p-23722401.entry.js} +1 -1
  901. package/dist/magma-components/p-23c057a9.entry.js +1 -0
  902. package/dist/magma-components/p-23fabd66.system.entry.js +1 -0
  903. package/dist/magma-components/{p-a40443ca.system.entry.js → p-2431fbfa.system.entry.js} +1 -1
  904. package/dist/magma-components/{p-3fb98529.system.entry.js → p-244676d3.system.entry.js} +1 -1
  905. package/dist/magma-components/{p-cc0cb701.entry.js → p-254ee71d.entry.js} +1 -1
  906. package/dist/magma-components/{p-a2ec6eac.entry.js → p-25a6e977.entry.js} +1 -1
  907. package/dist/magma-components/p-26451eb6.entry.js +1 -0
  908. package/dist/magma-components/p-26b9f2b7.system.entry.js +80 -0
  909. package/dist/magma-components/{p-2362b91a.entry.js → p-278c362d.entry.js} +1 -1
  910. package/dist/magma-components/{p-4800a310.entry.js → p-287601bb.entry.js} +1 -1
  911. package/dist/magma-components/{p-b62bbd07.entry.js → p-29162c98.entry.js} +1 -1
  912. package/dist/magma-components/{p-166c0190.entry.js → p-29450db3.entry.js} +1 -1
  913. package/dist/magma-components/{p-916a26e4.entry.js → p-295d8fab.entry.js} +1 -1
  914. package/dist/magma-components/p-29ab84bf.system.entry.js +41 -0
  915. package/dist/magma-components/p-2a964578.entry.js +1 -0
  916. package/dist/magma-components/{p-a7bad4e8.entry.js → p-2aac4003.entry.js} +1 -1
  917. package/dist/magma-components/p-2c845743.system.entry.js +1 -0
  918. package/dist/magma-components/{p-be32b7a9.system.entry.js → p-2cbd532a.system.entry.js} +1 -1
  919. package/dist/magma-components/{p-e471decd.system.entry.js → p-2cdf450c.system.entry.js} +1 -1
  920. package/dist/magma-components/{p-3ba5ddae.entry.js → p-2d3b5eb5.entry.js} +1 -1
  921. package/dist/magma-components/{p-5219eba6.system.entry.js → p-2e48f88d.system.entry.js} +2 -2
  922. package/dist/magma-components/{p-815801dd.system.entry.js → p-2eb4efcd.system.entry.js} +2 -2
  923. package/dist/magma-components/{p-c89c2e30.entry.js → p-30be5c39.entry.js} +1 -1
  924. package/dist/magma-components/{p-62e65f3b.entry.js → p-335244bb.entry.js} +1 -1
  925. package/dist/magma-components/{p-e49818c4.entry.js → p-336f56a4.entry.js} +1 -1
  926. package/dist/magma-components/p-34c2daa9.system.entry.js +25 -0
  927. package/dist/magma-components/p-357724ab.entry.js +1 -0
  928. package/dist/magma-components/{p-911dc847.entry.js → p-358aa5e7.entry.js} +1 -1
  929. package/dist/magma-components/p-377d0661.entry.js +1 -0
  930. package/dist/magma-components/{p-23bf1afa.system.entry.js → p-396d95a1.system.entry.js} +2 -2
  931. package/dist/magma-components/{p-e5ab1f4f.entry.js → p-3abaa053.entry.js} +1 -1
  932. package/dist/magma-components/{p-0c9bdfff.system.entry.js → p-3beea731.system.entry.js} +1 -1
  933. package/dist/magma-components/{p-e1ce306a.system.entry.js → p-3d162e99.system.entry.js} +2 -2
  934. package/dist/magma-components/p-3d95e688.system.entry.js +111 -0
  935. package/dist/magma-components/{p-721b625a.system.entry.js → p-3dc81ab9.system.entry.js} +9 -9
  936. package/dist/magma-components/{p-6bc4114c.system.entry.js → p-3df07021.system.entry.js} +1 -1
  937. package/dist/magma-components/p-3fb46ab9.system.entry.js +1 -0
  938. package/dist/magma-components/{p-4a051ef5.system.entry.js → p-3fd8ff0e.system.entry.js} +2 -2
  939. package/dist/magma-components/{p-f43379ef.entry.js → p-41a0f896.entry.js} +1 -1
  940. package/dist/magma-components/{p-4d079b1a.system.entry.js → p-41a28f2a.system.entry.js} +3 -3
  941. package/dist/magma-components/p-42e50f25.system.entry.js +55 -0
  942. package/dist/magma-components/{p-95328cc7.system.entry.js → p-458eb34c.system.entry.js} +2 -2
  943. package/dist/magma-components/p-464e6431.entry.js +1 -0
  944. package/dist/magma-components/p-471227f2.system.entry.js +27 -0
  945. package/dist/magma-components/{p-8e08ae08.system.entry.js → p-47717251.system.entry.js} +3 -3
  946. package/dist/magma-components/p-4776ac1f.entry.js +1 -0
  947. package/dist/magma-components/{p-b919ce62.entry.js → p-4792ff7f.entry.js} +1 -1
  948. package/dist/magma-components/p-481897a7.entry.js +1 -0
  949. package/dist/magma-components/{p-72cc4977.system.entry.js → p-4bc3335f.system.entry.js} +1 -1
  950. package/dist/magma-components/{p-b58363e2.system.entry.js → p-4bc47ff0.system.entry.js} +2 -2
  951. package/dist/magma-components/{p-648ec03b.system.entry.js → p-4c6da1db.system.entry.js} +5 -5
  952. package/dist/magma-components/{p-5b21eb78.entry.js → p-4cabfdbc.entry.js} +1 -1
  953. package/dist/magma-components/{p-f30cdd34.system.entry.js → p-4d485e1f.system.entry.js} +1 -1
  954. package/dist/magma-components/{p-da532544.system.entry.js → p-52d905fe.system.entry.js} +1 -1
  955. package/dist/magma-components/{p-23ce0824.entry.js → p-5435f2a9.entry.js} +1 -1
  956. package/dist/magma-components/{p-29d4605e.system.entry.js → p-5533b60d.system.entry.js} +4 -4
  957. package/dist/magma-components/p-55746791.entry.js +1 -0
  958. package/dist/magma-components/{p-37b801d0.system.entry.js → p-577ae081.system.entry.js} +2 -2
  959. package/dist/magma-components/{p-52d5d104.system.entry.js → p-57839384.system.entry.js} +2 -2
  960. package/dist/magma-components/p-5c4e41d3.system.entry.js +54 -0
  961. package/dist/magma-components/p-5cfa0dce.entry.js +1 -0
  962. package/dist/magma-components/{p-9bdca8b4.entry.js → p-5da14e81.entry.js} +1 -1
  963. package/dist/magma-components/{p-f7af41fb.system.entry.js → p-5ef0fb69.system.entry.js} +2 -2
  964. package/dist/magma-components/{p-a4f46de1.system.entry.js → p-5f8db04c.system.entry.js} +2 -2
  965. package/dist/magma-components/p-617370e7.system.entry.js +98 -0
  966. package/dist/magma-components/{p-0bcf3bb6.entry.js → p-62fc9695.entry.js} +1 -1
  967. package/dist/magma-components/{p-d9551916.system.entry.js → p-632ad925.system.entry.js} +22 -22
  968. package/dist/magma-components/{p-4ea00c22.entry.js → p-63b10a6e.entry.js} +1 -1
  969. package/dist/magma-components/{p-b40ef7ab.system.entry.js → p-642925b7.system.entry.js} +2 -2
  970. package/dist/magma-components/{p-32bfb09c.entry.js → p-6436178a.entry.js} +1 -1
  971. package/dist/magma-components/p-644e64a0.entry.js +1 -0
  972. package/dist/magma-components/p-6560b426.system.entry.js +4 -0
  973. package/dist/magma-components/p-656b00df.system.entry.js +34 -0
  974. package/dist/magma-components/{p-f88c202e.entry.js → p-67eb3881.entry.js} +1 -1
  975. package/dist/magma-components/p-69abd1d1.entry.js +1 -0
  976. package/dist/magma-components/{p-5ea3be82.system.entry.js → p-6a2d67d1.system.entry.js} +2 -2
  977. package/dist/magma-components/p-6e32bf99.entry.js +1 -0
  978. package/dist/magma-components/{p-7497b39d.system.entry.js → p-6f81c9ef.system.entry.js} +2 -2
  979. package/dist/magma-components/p-70d38284.entry.js +1 -0
  980. package/dist/magma-components/{p-1f5cd2b5.entry.js → p-71cbc840.entry.js} +1 -1
  981. package/dist/magma-components/{p-4582aa3e.system.entry.js → p-729c89f9.system.entry.js} +1 -1
  982. package/dist/magma-components/p-72ad419d.system.entry.js +10 -0
  983. package/dist/magma-components/{p-e73cc6fc.entry.js → p-73833405.entry.js} +3 -3
  984. package/dist/magma-components/{p-aa8653b1.system.entry.js → p-74f515c3.system.entry.js} +2 -2
  985. package/dist/magma-components/{p-f3763382.entry.js → p-762a6b7b.entry.js} +1 -1
  986. package/dist/magma-components/p-772c18f4.entry.js +1 -0
  987. package/dist/magma-components/p-77939a25.system.entry.js +20 -0
  988. package/dist/magma-components/{p-88ac5d50.entry.js → p-791a6a6f.entry.js} +1 -1
  989. package/dist/magma-components/{p-11feeebf.system.entry.js → p-7961c335.system.entry.js} +1 -1
  990. package/dist/magma-components/{p-3871807a.entry.js → p-7bf46d43.entry.js} +1 -1
  991. package/dist/magma-components/p-7c217aa5.entry.js +1 -0
  992. package/dist/magma-components/{p-2abfc393.entry.js → p-7ec1ea2e.entry.js} +1 -1
  993. package/dist/magma-components/{p-c6b16493.system.entry.js → p-7fde3025.system.entry.js} +3 -3
  994. package/dist/magma-components/{p-38a9e862.entry.js → p-808b9277.entry.js} +1 -1
  995. package/dist/magma-components/{p-11e50140.system.entry.js → p-80eea067.system.entry.js} +2 -2
  996. package/dist/magma-components/p-8173ed07.entry.js +8 -0
  997. package/dist/magma-components/{p-8059aa67.system.entry.js → p-81e02997.system.entry.js} +3 -3
  998. package/dist/magma-components/{p-47f7366c.entry.js → p-8258733b.entry.js} +1 -1
  999. package/dist/magma-components/{p-f5a08dca.system.entry.js → p-8279056b.system.entry.js} +2 -2
  1000. package/dist/magma-components/{p-d8d87750.system.entry.js → p-835d79e5.system.entry.js} +1 -1
  1001. package/dist/magma-components/{p-288f3cfe.entry.js → p-837d31b8.entry.js} +1 -1
  1002. package/dist/magma-components/{p-342770d2.system.entry.js → p-84777b38.system.entry.js} +2 -2
  1003. package/dist/magma-components/{p-88be542e.system.entry.js → p-84ed22ea.system.entry.js} +2 -2
  1004. package/dist/magma-components/{p-dfbecf72.system.entry.js → p-860bce85.system.entry.js} +3 -3
  1005. package/dist/magma-components/p-8645533a.entry.js +1 -0
  1006. package/dist/magma-components/{p-7d548a19.entry.js → p-8680f63e.entry.js} +1 -1
  1007. package/dist/magma-components/{p-f9b5a5ec.entry.js → p-86cf87fb.entry.js} +1 -1
  1008. package/dist/magma-components/{p-007968a8.system.entry.js → p-8740403e.system.entry.js} +3 -3
  1009. package/dist/magma-components/p-87ce9d6c.entry.js +1 -0
  1010. package/dist/magma-components/{p-20469b7a.system.entry.js → p-880f3eac.system.entry.js} +1 -1
  1011. package/dist/magma-components/{p-fcaa81b3.entry.js → p-89d4b6e9.entry.js} +1 -1
  1012. package/dist/magma-components/{p-5d9b1fe5.entry.js → p-8a76097f.entry.js} +1 -1
  1013. package/dist/magma-components/{p-e8b9d639.entry.js → p-8a9544aa.entry.js} +1 -1
  1014. package/dist/magma-components/{p-1fe66383.system.entry.js → p-8ab9ff37.system.entry.js} +1 -1
  1015. package/dist/magma-components/p-8d6470fb.system.entry.js +13 -0
  1016. package/dist/magma-components/p-8f63f1a1.system.entry.js +35 -0
  1017. package/dist/magma-components/{p-3093af30.system.entry.js → p-8f7daab1.system.entry.js} +1 -1
  1018. package/dist/magma-components/{p-cc109576.entry.js → p-919f9dce.entry.js} +1 -1
  1019. package/dist/magma-components/p-9250ec26.system.entry.js +7 -0
  1020. package/dist/magma-components/{p-547f657e.system.entry.js → p-94289f3d.system.entry.js} +5 -5
  1021. package/dist/magma-components/{p-b514bd3a.system.entry.js → p-95478664.system.entry.js} +1 -1
  1022. package/dist/magma-components/p-96bb36b9.entry.js +1 -0
  1023. package/dist/magma-components/{p-ecb87d38.entry.js → p-9745dc51.entry.js} +1 -1
  1024. package/dist/magma-components/p-984dd850.entry.js +1 -0
  1025. package/dist/magma-components/{p-8b081ba9.entry.js → p-9855b517.entry.js} +1 -1
  1026. package/dist/magma-components/{p-b169ee9b.entry.js → p-9a3ddc91.entry.js} +1 -1
  1027. package/dist/magma-components/{p-9e7d02e5.entry.js → p-9f8ce68f.entry.js} +1 -1
  1028. package/dist/magma-components/p-9fc385aa.entry.js +1 -0
  1029. package/dist/magma-components/p-B8zYiZQY.system.js +5 -0
  1030. package/dist/magma-components/{p-CmzGV0XD.system.js → p-BZP13mns.system.js} +1 -1
  1031. package/dist/magma-components/p-BoDvZoCN.system.js +18 -0
  1032. package/dist/magma-components/p-Bz1eiKqd.js +1 -0
  1033. package/dist/{components/p-Ebefwvkw.js → magma-components/p-CLhuNxYQ.js} +1 -1
  1034. package/dist/magma-components/{p-DVjUXVFl.system.js → p-CZuIEo2v.system.js} +1 -1
  1035. package/dist/magma-components/{p-CPRkNQdE.js → p-CvLLN-QH.js} +1 -1
  1036. package/dist/magma-components/{p-LUd56iG_.system.js → p-DXAjcaHM.system.js} +1 -1
  1037. package/dist/magma-components/{p-C1ailvfu.system.js → p-OOCOFWC0.system.js} +18 -18
  1038. package/dist/{components/p-B9dgiq4u.js → magma-components/p-Raj-urIN.js} +1 -1
  1039. package/dist/magma-components/{p-zQY2FlcD.js → p-U5iXN1wy.js} +1 -1
  1040. package/dist/magma-components/p-VOjLCGlK.system.js +90 -0
  1041. package/dist/magma-components/p-a70fb4fb.system.entry.js +105 -0
  1042. package/dist/magma-components/{p-287d1253.system.entry.js → p-a76a9f92.system.entry.js} +125 -125
  1043. package/dist/magma-components/p-a7c01334.entry.js +1 -0
  1044. package/dist/magma-components/p-a8e1ce2f.entry.js +1 -0
  1045. package/dist/magma-components/{p-d0c0c195.entry.js → p-a9ba496d.entry.js} +1 -1
  1046. package/dist/magma-components/{p-ef4d07ba.entry.js → p-ab00b7b9.entry.js} +1 -1
  1047. package/dist/magma-components/p-ab4b617d.entry.js +1 -0
  1048. package/dist/magma-components/p-ae3bf24c.system.entry.js +12 -0
  1049. package/dist/magma-components/{p-495a70e2.entry.js → p-b23bee0c.entry.js} +1 -1
  1050. package/dist/magma-components/p-b476435f.entry.js +1 -0
  1051. package/dist/magma-components/p-b5789a7c.entry.js +1 -0
  1052. package/dist/magma-components/{p-bc30508b.entry.js → p-b738d3c1.entry.js} +1 -1
  1053. package/dist/magma-components/{p-ff4276d3.system.entry.js → p-bd97e368.system.entry.js} +1 -1
  1054. package/dist/magma-components/p-bf0cb77d.system.entry.js +29 -0
  1055. package/dist/magma-components/{p-6b2fff4b.system.entry.js → p-c3a3caae.system.entry.js} +1 -1
  1056. package/dist/magma-components/{p-890bae38.system.entry.js → p-c3c487aa.system.entry.js} +1 -1
  1057. package/dist/magma-components/{p-a47a9f11.system.entry.js → p-c50e20cf.system.entry.js} +1 -1
  1058. package/dist/magma-components/p-c6819aad.entry.js +1 -0
  1059. package/dist/magma-components/p-ca1969c5.entry.js +1 -0
  1060. package/dist/magma-components/p-cbb80188.entry.js +1 -0
  1061. package/dist/magma-components/{p-cc88c963.system.entry.js → p-cc9659e1.system.entry.js} +1 -1
  1062. package/dist/magma-components/{p-da6cf595.system.entry.js → p-ccc40c6a.system.entry.js} +2 -2
  1063. package/dist/magma-components/p-cf6f54e5.system.entry.js +9 -0
  1064. package/dist/magma-components/p-d0a93a14.system.entry.js +22 -0
  1065. package/dist/magma-components/{p-dbf69d54.system.entry.js → p-d0bfdb44.system.entry.js} +2 -2
  1066. package/dist/magma-components/p-d37fe692.system.entry.js +10 -0
  1067. package/dist/magma-components/{p-c1d8a25e.entry.js → p-d3d74616.entry.js} +1 -1
  1068. package/dist/magma-components/{p-da9afc4b.system.entry.js → p-d48c40ab.system.entry.js} +2 -2
  1069. package/dist/magma-components/{p-7448435b.system.entry.js → p-d561062f.system.entry.js} +4 -4
  1070. package/dist/magma-components/p-d6b38d8a.entry.js +1 -0
  1071. package/dist/magma-components/p-d8ae0f02.system.entry.js +15 -0
  1072. package/dist/magma-components/{p-25576b51.system.entry.js → p-d92ccce5.system.entry.js} +2 -2
  1073. package/dist/magma-components/{p-a2d10402.system.entry.js → p-d980c3d2.system.entry.js} +1 -1
  1074. package/dist/magma-components/p-da24a265.entry.js +1 -0
  1075. package/dist/magma-components/p-dbd34e3b.entry.js +1 -0
  1076. package/dist/magma-components/{p-21fe0fef.system.entry.js → p-dc1a5826.system.entry.js} +1 -1
  1077. package/dist/magma-components/p-e1383302.entry.js +1 -0
  1078. package/dist/magma-components/{p-95486c6a.system.entry.js → p-e39518b4.system.entry.js} +2 -2
  1079. package/dist/magma-components/{p-b509fb36.entry.js → p-e3a65644.entry.js} +1 -1
  1080. package/dist/magma-components/{p-1a5411a8.entry.js → p-e5950aee.entry.js} +1 -1
  1081. package/dist/magma-components/{p-3a88fc9b.system.entry.js → p-e5d41024.system.entry.js} +1 -1
  1082. package/dist/magma-components/{p-14b40c21.entry.js → p-e5eb2390.entry.js} +1 -1
  1083. package/dist/magma-components/{p-8ba250d6.system.entry.js → p-edf003f1.system.entry.js} +1 -1
  1084. package/dist/magma-components/p-f1aafe07.entry.js +1 -0
  1085. package/dist/magma-components/{p-69b37755.system.entry.js → p-f2f992c2.system.entry.js} +2 -2
  1086. package/dist/magma-components/{p-1287fb51.entry.js → p-f35608b2.entry.js} +1 -1
  1087. package/dist/magma-components/{p-b940888d.entry.js → p-f4d80d9a.entry.js} +1 -1
  1088. package/dist/magma-components/{p-fd53a51c.entry.js → p-f588cf9e.entry.js} +1 -1
  1089. package/dist/magma-components/{p-a53f6a94.system.entry.js → p-f66675f5.system.entry.js} +2 -2
  1090. package/dist/magma-components/{p-4225484c.entry.js → p-f670ed20.entry.js} +1 -1
  1091. package/dist/magma-components/{p-96f973e3.entry.js → p-f7147d05.entry.js} +1 -1
  1092. package/dist/magma-components/{p-4f24ccf3.entry.js → p-f78c1699.entry.js} +1 -1
  1093. package/dist/magma-components/{p-f48843b7.system.entry.js → p-f82c2b7e.system.entry.js} +1 -1
  1094. package/dist/magma-components/{p-c6b9a14e.system.entry.js → p-f889d413.system.entry.js} +7 -7
  1095. package/dist/magma-components/{p-70a911e8.entry.js → p-fac6f123.entry.js} +1 -1
  1096. package/dist/magma-components/{p-90fe332f.entry.js → p-fc2d1134.entry.js} +1 -1
  1097. package/dist/magma-components/{p-C25F_FlB.js → p-iX3kcwYg.js} +1 -1
  1098. package/dist/magma-components/{p-D8596ytD.system.js → p-mGgjNqBm.system.js} +6 -6
  1099. package/dist/stats.json +3484 -2638
  1100. package/dist/types/components/mds-entity/mds-entity.d.ts +1 -0
  1101. package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +3 -3
  1102. package/dist/types/components/mds-link/mds-link.d.ts +71 -0
  1103. package/dist/types/components/mds-link/meta/dictionary.d.ts +3 -0
  1104. package/dist/types/components/mds-link/meta/types.d.ts +3 -0
  1105. package/dist/types/components.d.ts +103 -4
  1106. package/package.json +4 -3
  1107. package/dist/components/p-BHy4k3pJ.js +0 -1
  1108. package/dist/components/p-BLXRGNya.js +0 -1
  1109. package/dist/components/p-BN5kmfLJ.js +0 -8
  1110. package/dist/components/p-BUr3NqxM.js +0 -1
  1111. package/dist/components/p-C2fyy4Mv.js +0 -1
  1112. package/dist/components/p-CIWWmisz.js +0 -1
  1113. package/dist/components/p-CJyTL7Mj.js +0 -1
  1114. package/dist/components/p-CWwWCzma.js +0 -1
  1115. package/dist/components/p-ChrRK8N9.js +0 -1
  1116. package/dist/components/p-D3_jgpKd.js +0 -1
  1117. package/dist/components/p-DYpfVn7a.js +0 -1
  1118. package/dist/components/p-Ea5ilDf6.js +0 -1
  1119. package/dist/magma-components/p-0b5fe949.entry.js +0 -1
  1120. package/dist/magma-components/p-0b7a884e.system.entry.js +0 -29
  1121. package/dist/magma-components/p-12a2f8e2.system.entry.js +0 -13
  1122. package/dist/magma-components/p-14ef1aec.entry.js +0 -1
  1123. package/dist/magma-components/p-1989c0b4.entry.js +0 -8
  1124. package/dist/magma-components/p-1d68fc4a.system.entry.js +0 -80
  1125. package/dist/magma-components/p-20608f69.system.entry.js +0 -35
  1126. package/dist/magma-components/p-2061e567.entry.js +0 -1
  1127. package/dist/magma-components/p-21c2d7bd.entry.js +0 -1
  1128. package/dist/magma-components/p-2294945a.system.entry.js +0 -34
  1129. package/dist/magma-components/p-2c4d2717.entry.js +0 -1
  1130. package/dist/magma-components/p-2d7d9e4f.entry.js +0 -1
  1131. package/dist/magma-components/p-2e8f703e.entry.js +0 -1
  1132. package/dist/magma-components/p-357ec8c0.entry.js +0 -1
  1133. package/dist/magma-components/p-3b36319a.entry.js +0 -1
  1134. package/dist/magma-components/p-3e1b21bd.entry.js +0 -1
  1135. package/dist/magma-components/p-4116e328.system.entry.js +0 -1
  1136. package/dist/magma-components/p-4191bf22.entry.js +0 -1
  1137. package/dist/magma-components/p-4260da67.system.entry.js +0 -12
  1138. package/dist/magma-components/p-43338a07.entry.js +0 -1
  1139. package/dist/magma-components/p-4c2dad1e.system.entry.js +0 -81
  1140. package/dist/magma-components/p-51a869ee.entry.js +0 -1
  1141. package/dist/magma-components/p-52a85b97.system.entry.js +0 -9
  1142. package/dist/magma-components/p-5439125d.system.entry.js +0 -10
  1143. package/dist/magma-components/p-5a2deba5.entry.js +0 -1
  1144. package/dist/magma-components/p-5cef4711.entry.js +0 -1
  1145. package/dist/magma-components/p-61f0ebf3.entry.js +0 -1
  1146. package/dist/magma-components/p-677ef2a3.system.entry.js +0 -55
  1147. package/dist/magma-components/p-6da68fd5.entry.js +0 -1
  1148. package/dist/magma-components/p-6ebbcd7b.system.entry.js +0 -14
  1149. package/dist/magma-components/p-70f5536c.system.entry.js +0 -15
  1150. package/dist/magma-components/p-7502528c.entry.js +0 -1
  1151. package/dist/magma-components/p-765ff9a3.system.entry.js +0 -98
  1152. package/dist/magma-components/p-7a568cbf.entry.js +0 -1
  1153. package/dist/magma-components/p-7f776dff.entry.js +0 -1
  1154. package/dist/magma-components/p-811272a9.entry.js +0 -1
  1155. package/dist/magma-components/p-87b15008.entry.js +0 -1
  1156. package/dist/magma-components/p-8a4a2b5a.entry.js +0 -1
  1157. package/dist/magma-components/p-8c66c761.entry.js +0 -1
  1158. package/dist/magma-components/p-914d1b2a.system.entry.js +0 -111
  1159. package/dist/magma-components/p-91ed604f.entry.js +0 -1
  1160. package/dist/magma-components/p-938dbe67.system.entry.js +0 -27
  1161. package/dist/magma-components/p-93d8b236.system.entry.js +0 -10
  1162. package/dist/magma-components/p-9a28bd8d.system.entry.js +0 -20
  1163. package/dist/magma-components/p-9caf411a.system.entry.js +0 -13
  1164. package/dist/magma-components/p-BHS0WXNt.system.js +0 -107
  1165. package/dist/magma-components/p-QYez4sql.system.js +0 -5
  1166. package/dist/magma-components/p-a08d20c2.system.entry.js +0 -1
  1167. package/dist/magma-components/p-a51f849a.entry.js +0 -1
  1168. package/dist/magma-components/p-a6fe6b4c.system.entry.js +0 -1
  1169. package/dist/magma-components/p-a8593847.entry.js +0 -1
  1170. package/dist/magma-components/p-ac4109e3.entry.js +0 -1
  1171. package/dist/magma-components/p-b36d54e1.system.entry.js +0 -41
  1172. package/dist/magma-components/p-b48fc62e.entry.js +0 -1
  1173. package/dist/magma-components/p-bba4c7eb.entry.js +0 -1
  1174. package/dist/magma-components/p-bdd18c90.system.entry.js +0 -25
  1175. package/dist/magma-components/p-c3622315.entry.js +0 -1
  1176. package/dist/magma-components/p-c6db7a0f.system.entry.js +0 -22
  1177. package/dist/magma-components/p-ca8e0927.system.entry.js +0 -7
  1178. package/dist/magma-components/p-cfe080ab.system.entry.js +0 -54
  1179. package/dist/magma-components/p-d3678561.system.entry.js +0 -35
  1180. package/dist/magma-components/p-daf9c8ca.system.entry.js +0 -4
  1181. package/dist/magma-components/p-dd8fb2f8.system.entry.js +0 -105
  1182. package/dist/magma-components/p-e15a874b.entry.js +0 -1
  1183. package/dist/magma-components/p-e954b5c5.entry.js +0 -1
  1184. package/dist/magma-components/p-eba7cfb3.entry.js +0 -1
  1185. package/dist/magma-components/p-f454c06b.entry.js +0 -1
  1186. package/dist/magma-components/p-f7f6881a.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,H as a,h as t,c as r,t as s}from"./p-B2p5a1Y8.js";import{h as i}from"./p-DWIIDHSa.js";import{c as n}from"./p-ChV9xqsO.js";import{p as o}from"./p-BlnEiKN4.js";import{d}from"./p-DSxDXNWp.js";import{d as c}from"./p-BUr3NqxM.js";import{d as l}from"./p-cIZniMh0.js";import{d as m}from"./p-sM-eFjwq.js";import{d as p}from"./p-B6B6q5kP.js";import{d as u}from"./p-DezdwzYQ.js";const b=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.onSlotChange=()=>{this.hasDetails=i(this.hostElement,"detail"),this.hasActions=i(this.hostElement,"action")}}checkAvatar(){let e=!1;return void 0!==this.src&&(e=!0),void 0!==this.icon&&(e=!0),void 0!==this.initials&&(e=!0),!this.await&&e}componentWillLoad(){this.onSlotChange()}render(){return t(r,{key:"cb3c2be3e506034cbf78fc582883ec70fe4ce52c","pref-contrast":o.state.contrast,"pref-mode":o.state.mode,"pref-theme-scheme":o.state["theme-scheme"]},t("div",{key:"c210813741661e3effca7d633acadd8ee7ba0c68",class:"spinner",part:"spinner"},t("mds-spinner",{key:"0f9d434d5ae11f3c21d80652d5cc8658e2b79598",running:!0})),this.checkAvatar()&&t("mds-avatar",{key:"51856b623d394a415440040d70e5c70f0361f042",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant,part:"avatar"}),t("div",{key:"2dc821793ac9eb240396d9473ec1273f575163bd",class:"infos"},t("slot",{key:"7c5966d531f51e026ca026ce2a8ffe10ad05b1fe"}),t("div",{key:"deb20b1879f70df94a6021017f5a44a293e2f77c",class:n("details",!this.hasDetails&&"details--hidden")},t("slot",{key:"6f5a7db95c7d9d5c53c6685e27379fa44022e58b",name:"detail",onSlotchange:this.onSlotChange}))),t("div",{key:"3eedebf789952f6e1ebae3b138e676b1b0a715cc",class:n("actions",!this.hasActions&&"actions--hidden")},t("slot",{key:"412bb98abc59738d75516e805bbc082ffcb00797",name:"action",onSlotchange:this.onSlotChange})))}get hostElement(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):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-entity-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-entity-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-entity-icon-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));--mds-entity-icon-color:rgb(var(--label-blue-04,63 94 248));background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));corner-shape:var(--magma-corner-shape,squircle);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--magma-radius-md,var(--radius-squircle-md,20px)))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,216 222 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:0;justify-content:center;min-width:0;white-space:nowrap}.details{align-items:baseline;color:var(--mds-entity-detail-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:flex;gap:calc(var(--spacing,.0025rem)*100)}.details--hidden{display:none}.actions{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=action]){aspect-ratio:var(--aspect-square,1/1);height:auto;width:calc(var(--spacing,.0025rem)*1100)}::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([pref-contrast=more]){--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}}"}},[257,"mds-entity",{await:[516],icon:[513],src:[513],initials:[513],tone:[513],variant:[513],hasDetails:[32],hasActions:[32]}]),v=b,f=function(){"undefined"!=typeof customElements&&["mds-entity","mds-avatar","mds-button","mds-icon","mds-img","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-entity":customElements.get(s(e))||customElements.define(s(e),b);break;case"mds-avatar":customElements.get(s(e))||d();break;case"mds-button":customElements.get(s(e))||c();break;case"mds-icon":customElements.get(s(e))||l();break;case"mds-img":customElements.get(s(e))||m();break;case"mds-spinner":customElements.get(s(e))||p();break;case"mds-text":customElements.get(s(e))||u()}}))};export{v as MdsEntity,f as defineCustomElement}
1
+ import{p as a,H as e,h as t,c as r,t as s}from"./p-TZJN-ygm.js";import{h as i}from"./p-DWIIDHSa.js";import{c as n}from"./p-ChV9xqsO.js";import{p as d}from"./p-CVRN4LDc.js";import{d as o}from"./p-CLe_N2_H.js";import{d as c}from"./p-ClPv-Ljc.js";import{d as l}from"./p-Cmn1DJAB.js";import{d as m}from"./p-Cd8id3Br.js";import{d as p}from"./p-ZuubAcA3.js";import{d as u}from"./p-CNF3u0Li.js";const f=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.onSlotChange=()=>{this.hasDetails=i(this.hostElement,"detail"),this.hasActions=i(this.hostElement,"action")}}checkAvatar(){let a=!1;return void 0!==this.src&&(a=!0),void 0!==this.icon&&(a=!0),void 0!==this.initials&&(a=!0),!this.await&&a}componentWillLoad(){this.onSlotChange()}render(){return t(r,{key:"d54946dea6ac4a5b5a6559efc14faf5a27ca7328","pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},t("div",{key:"7be73903fcb31933a9e461c9f34e737f17b23d95",class:"spinner",part:"spinner"},t("mds-spinner",{key:"39b3af311f2ec9f55166e3afafe78b251e219ccc",running:!0})),this.checkAvatar()&&t("mds-avatar",{key:"296e0b1372cdf4bdd104595de6982116f84a0bb8",class:"preview",icon:this.icon,initials:this.initials,src:this.src,tone:this.tone,variant:this.variant,part:"avatar"}),t("div",{key:"f8511118c5f1215fff4c5b905992621868539c8f",class:"infos",part:"infos"},t("slot",{key:"1e3b509ca828b1d03da286233c75fb39947602c7"}),t("div",{key:"b1f6ebff7af3cd07da5a321cea9033662d66d542",class:n("details",!this.hasDetails&&"details--hidden")},t("slot",{key:"fa7d7cad8910e4f659567dd15522de730e9e30ae",name:"detail",onSlotchange:this.onSlotChange}))),t("div",{key:"823ef0dd15d2a6fb77c3fba81fbd60c491c993d2",class:n("actions",!this.hasActions&&"actions--hidden")},t("slot",{key:"b4b3db7d00ff44e2117ae5173f4b7002db92f05d",name:"action",onSlotchange:this.onSlotChange})))}get hostElement(){return this}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-avatar,mds-spinner):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-entity-background:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-detail-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-entity-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-entity-icon-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));--mds-entity-icon-color:rgb(var(--label-blue-04,63 94 248));background-color:var(--mds-entity-background,rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248))));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:var(--mds-entity-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;display:flex;gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*200)}.delete,.preview,.spinner{border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));corner-shape:var(--magma-corner-shape,squircle);flex-shrink:0;width:calc(var(--spacing,.0025rem)*1100)}.preview{--mds-avatar-radius:var(--mds-entity-icon-radius,var(--magma-radius-md,var(--radius-squircle-md,20px)))}.preview:not([variant]){--mds-avatar-color:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)));--mds-avatar-background-color:var(--mds-entity-icon-background,rgb(var(--label-blue-09,216 222 254)))}.preview,.spinner{align-items:center;aspect-ratio:var(--aspect-square,1/1);display:inline-flex;justify-content:center}.spinner{background-color:#0000;display:none;fill:var(--mds-entity-icon-color,rgb(var(--label-blue-04,63 94 248)))}:host([await]:not([await=false])) .spinner{display:inline-flex}mds-spinner{height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}.infos{display:flex;flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*50);justify-content:center;min-width:0;white-space:nowrap}.details{align-items:baseline;color:var(--mds-entity-detail-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:flex;gap:calc(var(--spacing,.0025rem)*100)}.details--hidden{display:none}.actions{align-items:center;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}::slotted([slot=action]){aspect-ratio:var(--aspect-square,1/1);height:auto;width:calc(var(--spacing,.0025rem)*1100)}::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{display:flex;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([pref-contrast=more]){--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-entity-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-entity-icon-background:rgb(var(--label-blue-08,200 210 253));--mds-entity-icon-color:rgb(var(--label-blue-03,11 51 246))}}"}},[257,"mds-entity",{await:[516],icon:[513],src:[513],initials:[513],tone:[513],variant:[513],hasDetails:[32],hasActions:[32]}]),b=f,v=function(){"undefined"!=typeof customElements&&["mds-entity","mds-avatar","mds-button","mds-icon","mds-img","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-entity":customElements.get(s(a))||customElements.define(s(a),f);break;case"mds-avatar":customElements.get(s(a))||o();break;case"mds-button":customElements.get(s(a))||c();break;case"mds-icon":customElements.get(s(a))||l();break;case"mds-img":customElements.get(s(a))||m();break;case"mds-spinner":customElements.get(s(a))||p();break;case"mds-text":customElements.get(s(a))||u()}}))};export{b as MdsEntity,v as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-BN5kmfLJ.js";const m=o,p=s;export{m as MdsFilePreview,p as defineCustomElement}
1
+ import{M as o,d as s}from"./p-CNZ8_QvE.js";const p=o,r=s;export{p as MdsFilePreview,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as a,d as t,h as o,c as i,t as r,B as s}from"./p-B2p5a1Y8.js";import{f as n,a as l,b as d,c,g as m,d as h,h as f,e as p}from"./p-DhIGZbIo.js";import{s as v}from"./p-Cvhn9asj.js";import{K as b}from"./p-CGrPq3C4.js";import{L as u}from"./p-B9dgiq4u.js";import{p as g}from"./p-BlnEiKN4.js";import{d as w}from"./p-JPhOaOXe.js";import{d as x}from"./p-cIZniMh0.js";import{d as y}from"./p-DezdwzYQ.js";var k={alreadyDownloaded:"Έχετε ήδη κατεβάσει αυτό το αρχείο"},j={alreadyDownloaded:"You have already downloaded this file"},D={alreadyDownloaded:"Ya has descargado este archivo"},z={alreadyDownloaded:"Hai già scaricato questo file"};const O=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.downloadedEvent=t(this,"mdsFileDownload",7),this.t=new u({el:Object.assign(Object.assign({},k),c),en:Object.assign(Object.assign({},j),d),es:Object.assign(Object.assign({},D),l),it:Object.assign(Object.assign({},z),n)}),this.wasDownloaded=!1,this.km=new b,this.hideDownloadedIcon=!1,this.handleOnClick=()=>{var e;const{format:a,description:t}=m(this.filename,this.suffix);this.downloadedEvent.emit({description:null!==(e=this.description)&&void 0!==e?e:this.t.get(t),extension:h(this.filename,this.suffix),filename:this.filename,target:this.host,type:a}),localStorage.setItem(this.downloadedStorageKey(),"downloaded"),this.checkWasDownloaded()},this.downloadedStorageKey=()=>"mdsFile/"+(e=>{let a=2166136261;for(let t=0;t<e.length;t+=1)a^=e.charCodeAt(t),a=Math.imul(a,16777619);return(a>>>0).toString(16).padStart(8,"0")})(this.filename),this.checkWasDownloaded=()=>{s.isBrowser&&(this.wasDownloaded="downloaded"===localStorage.getItem(this.downloadedStorageKey()))},this.getDefaultDescription=()=>m(this.filename,this.suffix).description}componentWillLoad(){this.format=m(this.filename,this.suffix).format,this.checkWasDownloaded()}componentDidLoad(){v(this.host,"role","button"),this.km.addElement(this.host),this.km.attachClickBehavior("element",{space:!0})}connectedCallback(){this.km.attachClickBehavior("element",{space:!0})}disconnectedCallback(){this.km.detachClickBehavior()}handleFilename(e){this.format=m(e,this.suffix).format,this.checkWasDownloaded()}render(){var e,a;return o(i,{key:"53746fbb1145f4bb2bd39e725f60d2be675d5a3f",tabindex:"0",onClick:this.handleOnClick,"pref-animation":g.state.animation,"pref-contrast":g.state.contrast,"pref-mode":g.state.mode,"pref-theme-scheme":g.state["theme-scheme"]},o("div",{key:"8d301692ca81109f7df9262880f37040b657332e",class:"preview"},void 0!==this.preview?o("div",{class:"image-preview",style:{backgroundImage:`url(${this.preview})`}}):o("mds-icon",{class:"icon-preview",name:p(this.filename,this.suffix).icon}),o("div",{key:"a77c320d48feec69eea904a146c207cdb578efcf",class:"download-icon"},o("mds-icon",{key:"65a27a8bcd2d7c0b9ec187fbd5ce7975e6c2b49c",name:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>'}))),o("div",{key:"42e8ea27fa5db7cac80714016579b094dab27897",class:"info"},o("div",{key:"c9354c9d8f86f6ec1ca044fc28a053d21f777763",class:"filename",title:this.filename},o("mds-text",{key:"a8751ac4a3d9d18c00716bd8770ded50a7a1748d",truncate:"word",typography:"h6",class:"name"},f(this.filename)),void 0===this.suffix&&h(this.filename,this.suffix)&&o("mds-text",{key:"37b83ff4c57be14c855603bace0cdd1e8e618f3d",typography:"h6",class:"extension"},".",h(this.filename,this.suffix))),o("div",{key:"847cc026b8b0ef4a6aced6bb6399cf9a7b7c394d",class:"detail"},h(this.filename,this.suffix)&&o("mds-badge",{key:"1dd3c5344f923c41cc540a678c7951599442fbe3",variant:p(this.filename,this.suffix).variant,tone:"weak",class:"suffix"},h(this.filename,this.suffix)),o("mds-text",{key:"c52e5078a14e7a184813bcb6aa5453a628b58165",truncate:"word",typography:"caption",class:"description",title:null!==(e=this.description)&&void 0!==e?e:this.t.get(this.getDefaultDescription())},null!==(a=this.description)&&void 0!==a?a:this.t.get(this.getDefaultDescription())))),this.wasDownloaded&&!this.hideDownloadedIcon&&o("div",{key:"8d87096b1ce9e8af365a8397ebfe0e820f783f56",class:"indicator"},o("i",{key:"c78d658d0a4b36e96d3a2db2bd13f19d984e08f5",class:"downloaded",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>',title:this.t.get("alreadyDownloaded")})))}get host(){return this}static get watchers(){return{filename:[{handleFilename:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):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-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;transform:translateY(calc(var(--private-icon-download-offset)*-1));transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-background);color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));flex-shrink:0;position:relative;transition-duration:inherit;transition-property:color,background-color,fill;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"}},[1,"mds-file",{suffix:[513],description:[1],filename:[1],preview:[1],hideDownloadedIcon:[4,"hide-downloaded-icon"],format:[1537],wasDownloaded:[32]},void 0,{filename:[{handleFilename:0}]}]),q=O,L=function(){"undefined"!=typeof customElements&&["mds-file","mds-badge","mds-icon","mds-text"].forEach((e=>{switch(e){case"mds-file":customElements.get(r(e))||customElements.define(r(e),O);break;case"mds-badge":customElements.get(r(e))||w();break;case"mds-icon":customElements.get(r(e))||x();break;case"mds-text":customElements.get(r(e))||y()}}))};export{q as MdsFile,L as defineCustomElement}
1
+ import{p as e,H as a,d as t,h as o,c as i,t as r,B as s}from"./p-TZJN-ygm.js";import{f as n,a as l,b as d,c,g as m,d as h,h as f,e as p}from"./p-DhIGZbIo.js";import{s as v}from"./p-Cvhn9asj.js";import{K as b}from"./p-CGrPq3C4.js";import{L as u}from"./p-B8x-d2fx.js";import{p as g}from"./p-CVRN4LDc.js";import{d as w}from"./p-s1CktmPS.js";import{d as x}from"./p-Cmn1DJAB.js";import{d as y}from"./p-CNF3u0Li.js";var k={alreadyDownloaded:"Έχετε ήδη κατεβάσει αυτό το αρχείο"},j={alreadyDownloaded:"You have already downloaded this file"},D={alreadyDownloaded:"Ya has descargado este archivo"},L={alreadyDownloaded:"Hai già scaricato questo file"};const C=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.downloadedEvent=t(this,"mdsFileDownload",7),this.t=new u({el:Object.assign(Object.assign({},k),c),en:Object.assign(Object.assign({},j),d),es:Object.assign(Object.assign({},D),l),it:Object.assign(Object.assign({},L),n)}),this.wasDownloaded=!1,this.km=new b,this.hideDownloadedIcon=!1,this.handleOnClick=()=>{var e;const{format:a,description:t}=m(this.filename,this.suffix);this.downloadedEvent.emit({description:null!==(e=this.description)&&void 0!==e?e:this.t.get(t),extension:h(this.filename,this.suffix),filename:this.filename,target:this.host,type:a}),localStorage.setItem(this.downloadedStorageKey(),"downloaded"),this.checkWasDownloaded()},this.downloadedStorageKey=()=>"mdsFile/"+(e=>{let a=2166136261;for(let t=0;t<e.length;t+=1)a^=e.charCodeAt(t),a=Math.imul(a,16777619);return(a>>>0).toString(16).padStart(8,"0")})(this.filename),this.checkWasDownloaded=()=>{s.isBrowser&&(this.wasDownloaded="downloaded"===localStorage.getItem(this.downloadedStorageKey()))},this.getDefaultDescription=()=>m(this.filename,this.suffix).description}componentWillLoad(){this.format=m(this.filename,this.suffix).format,this.checkWasDownloaded()}componentDidLoad(){v(this.host,"role","button"),this.km.addElement(this.host),this.km.attachClickBehavior("element",{space:!0})}connectedCallback(){this.km.attachClickBehavior("element",{space:!0})}disconnectedCallback(){this.km.detachClickBehavior()}handleFilename(e){this.format=m(e,this.suffix).format,this.checkWasDownloaded()}render(){var e,a;return o(i,{key:"53746fbb1145f4bb2bd39e725f60d2be675d5a3f",tabindex:"0",onClick:this.handleOnClick,"pref-animation":g.state.animation,"pref-contrast":g.state.contrast,"pref-mode":g.state.mode,"pref-theme-scheme":g.state["theme-scheme"]},o("div",{key:"8d301692ca81109f7df9262880f37040b657332e",class:"preview"},void 0!==this.preview?o("div",{class:"image-preview",style:{backgroundImage:`url(${this.preview})`}}):o("mds-icon",{class:"icon-preview",name:p(this.filename,this.suffix).icon}),o("div",{key:"a77c320d48feec69eea904a146c207cdb578efcf",class:"download-icon"},o("mds-icon",{key:"65a27a8bcd2d7c0b9ec187fbd5ce7975e6c2b49c",name:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>'}))),o("div",{key:"42e8ea27fa5db7cac80714016579b094dab27897",class:"info"},o("div",{key:"c9354c9d8f86f6ec1ca044fc28a053d21f777763",class:"filename",title:this.filename},o("mds-text",{key:"a8751ac4a3d9d18c00716bd8770ded50a7a1748d",truncate:"word",typography:"h6",class:"name"},f(this.filename)),void 0===this.suffix&&h(this.filename,this.suffix)&&o("mds-text",{key:"37b83ff4c57be14c855603bace0cdd1e8e618f3d",typography:"h6",class:"extension"},".",h(this.filename,this.suffix))),o("div",{key:"847cc026b8b0ef4a6aced6bb6399cf9a7b7c394d",class:"detail"},h(this.filename,this.suffix)&&o("mds-badge",{key:"1dd3c5344f923c41cc540a678c7951599442fbe3",variant:p(this.filename,this.suffix).variant,tone:"weak",class:"suffix"},h(this.filename,this.suffix)),o("mds-text",{key:"c52e5078a14e7a184813bcb6aa5453a628b58165",truncate:"word",typography:"caption",class:"description",title:null!==(e=this.description)&&void 0!==e?e:this.t.get(this.getDefaultDescription())},null!==(a=this.description)&&void 0!==a?a:this.t.get(this.getDefaultDescription())))),this.wasDownloaded&&!this.hideDownloadedIcon&&o("div",{key:"8d87096b1ce9e8af365a8397ebfe0e820f783f56",class:"indicator"},o("i",{key:"c78d658d0a4b36e96d3a2db2bd13f19d984e08f5",class:"downloaded",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>',title:this.t.get("alreadyDownloaded")})))}get host(){return this}static get watchers(){return{filename:[{handleFilename:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):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-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;transition-timing-function:var(--ease-out-cubic,cubic-bezier(.215,.61,.355,1));width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;transform:translateY(calc(var(--private-icon-download-offset)*-1));transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-background);color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));flex-shrink:0;position:relative;transition-duration:inherit;transition-property:color,background-color,fill;transition-timing-function:var(--ease-out-sine,cubic-bezier(.39,.575,.565,1));width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{transition-duration:inherit;transition-property:opacity,transform;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-contrast=more]):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host(:hover){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"}},[1,"mds-file",{suffix:[513],description:[1],filename:[1],preview:[1],hideDownloadedIcon:[4,"hide-downloaded-icon"],format:[1537],wasDownloaded:[32]},void 0,{filename:[{handleFilename:0}]}]),q=C,z=function(){"undefined"!=typeof customElements&&["mds-file","mds-badge","mds-icon","mds-text"].forEach((e=>{switch(e){case"mds-file":customElements.get(r(e))||customElements.define(r(e),C);break;case"mds-badge":customElements.get(r(e))||w();break;case"mds-icon":customElements.get(r(e))||x();break;case"mds-text":customElements.get(r(e))||y()}}))};export{q as MdsFile,z as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-B1bYa-o0.js";const a=o,p=s;export{a as MdsFilterItem,p as defineCustomElement}
1
+ import{M as r,d as o}from"./p-DCrdKrky.js";const s=r,p=o;export{s as MdsFilterItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,d as r,h as a,c as s,t as i,B as o}from"./p-B2p5a1Y8.js";import{c as n}from"./p-ChV9xqsO.js";import{p as d}from"./p-BlnEiKN4.js";import{m}from"./p-J-ikDhyq.js";import{L as l}from"./p-B9dgiq4u.js";import{d as c}from"./p-B1bYa-o0.js";import{d as h}from"./p-cIZniMh0.js";import{d as f}from"./p-DezdwzYQ.js";var p={clearFilters:"Εκκαθάριση φίλτρων"},u={clearFilters:"Clear filters"},v={clearFilters:"Borrar filtros"},b={clearFilters:"Rimuovi i filtri"};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.changedEvent=r(this,"mdsFilterChange",7),this.t=new l({el:p,en:u,es:v,it:b}),this.itemsSelected=0,this.queryItems=()=>this.element.querySelectorAll("mds-filter-item"),this.scrollTabs=()=>{var t;const e=this.queryItems()[this.lastSelectedItem],r=null===(t=this.element.shadowRoot)||void 0===t?void 0:t.querySelector(".items");if(r&&e){const t=r.getBoundingClientRect(),a=e.getBoundingClientRect();r.scrollLeft+=a.left-t.left-(t.width-a.width)/2}},this.checkSelectedItem=()=>{const t=this.queryItems();let e=!1;t.forEach((t=>{t.selected&&(e=!0)})),this.active=e},this.markSiblings=t=>{this.multiple&&t.forEach(((e,r)=>{e.classList.toggle("sibling",r>0&&!0===t[r-1].selected)}))},this.syncSelection=t=>{const e=Array.from(this.queryItems());let r;t.forEach((t=>{("childList"===t.type?Array.from(t.addedNodes):[t.target]).forEach((t=>{const a=t;e.includes(a)&&!0===a.selected&&(r=a)}))})),this.multiple||this.keepOneSelected(e,r),r&&(this.lastSelectedItem=e.indexOf(r),this.scrollTabs()),this.markSiblings(e),this.checkSelectedItem()},this.keepOneSelected=(t,e=t.filter((t=>!0===t.selected)).pop())=>{t.forEach((t=>{!0===t.selected&&t!==e&&(t.selected=!1)}))},this.checkAutoReset=()=>{this.autoReset&&this.resetItems()},this.resetItems=()=>{this.queryItems().forEach((t=>{t.selected=!1,t.classList.remove("sibling")})),this.active=!1},this.handleResetClick=()=>{this.active&&(this.resetItems(),this.changedEvent.emit({children:this.queryItems(),value:this.itemsValues()}))},this.itemsValues=()=>{const t=this.queryItems(),e=[];return t.forEach((t=>{t.selected&&e.push(t.value)})),""+e}}connectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),o.isBrowser&&(this.selectionObserver=new MutationObserver(this.syncSelection),this.selectionObserver.observe(this.element,{attributeFilter:["selected"],childList:!0,subtree:!0}))}disconnectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),this.selectionObserver=void 0}componentWillLoad(){const t=this.queryItems();t.forEach(((t,e)=>{""===t.id&&(t.id="item-"+e)})),this.multiple||this.keepOneSelected(Array.from(t)),this.checkSelectedItem()}activeEventHandler(t){const e=this.queryItems(),r=t.target;if(this.lastSelectedItem=Array.from(e).indexOf(r),this.scrollTabs(),this.multiple)return this.markSiblings(Array.from(e)),this.itemsSelected=Array.from(e).filter((t=>!0===t.selected)).length,this.checkSelectedItem(),this.itemsSelected===e.length&&this.checkAutoReset(),void this.changedEvent.emit({children:e,value:this.itemsValues()});e.forEach((e=>{e.selected=e===r&&t.detail.selected})),this.checkSelectedItem(),this.changedEvent.emit({children:e,value:this.itemsValues()})}render(){return a(s,{key:"059a62e1aec46863515f85da01511b0b3581bcfb","aria-label":this.label,role:"group","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},this.label&&a("mds-text",{key:"6aa9c673c9b968550881af4178fa24b70eb179d5","aria-hidden":"true",class:"label",typography:"label"},this.label),a("div",{key:"b8db527e7f123bc54cc52843b0f04e0f7a52e552",class:"items-wrapper"},a("div",{key:"b4f9a7f85686ff767ed19e74a793a651fece5138",class:n("items",this.active&&"active")},a("slot",{key:"ac06e06830424769902f63268d350939f7af60f7"}),this.reset&&a("div",{key:"0a3e30f4f8a81f72ca13ad2d13eed2587ad47707",class:n("reset",this.active&&"reset--opened")},a("mds-filter-item",{key:"7e4abca6c494d59594c7e28bf45d9c5bd2d18070","aria-hidden":this.active?void 0:"true","aria-label":this.t.get("clearFilters"),selected:this.active,disabled:!this.active,class:n("reset-button",this.active&&"reset-button-opened"),icon:m,onClick:this.handleResetClick})))))}get element(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-filter-item,mds-text):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-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-gap:calc(var(--spacing,.0025rem)*200);--mds-filter-items-padding:calc(var(--spacing,.0025rem)*200);--mds-filter-items-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-filter-items-scroll-behavior:smooth;--mds-filter-items-transition-duration:var(--duration-300,.3s);--private-filter-items-transition-duration:var(--mds-filter-items-transition-duration);--mds-filter-label-padding:0 calc(var(--spacing,.0025rem)*600);--mds-filter-wrapper-shadow-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-filter-wrapper-shadow:0 0 0 2px var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset;--mds-filter-wrapper-shadow-opacity:.1;display:grid;gap:calc(var(--spacing,.0025rem)*100);grid-auto-rows:min-content}.items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;background-color:var(--mds-filter-items-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));display:flex;gap:var(--mds-filter-items-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-filter-items-padding,calc(var(--spacing,.0025rem)*200));position:relative;scroll-behavior:var(--mds-filter-items-scroll-behavior,smooth);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-filter-items-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.items-wrapper{display:grid;overflow:hidden;position:relative}.items-wrapper:after{border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));box-shadow:var(--mds-filter-wrapper-shadow);content:"";inset:0;opacity:var(--mds-filter-wrapper-shadow-opacity,.1);pointer-events:none;position:absolute}.items::-webkit-scrollbar{display:none}.label{padding:var(--mds-filter-label-padding,0 calc(var(--spacing,.0025rem)*600))}.active{background-color:var(--mds-filter-items-background-active,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))))}.reset{display:flex;flex-grow:1;justify-content:flex-end;transform-origin:50%}.reset,.reset-button{transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.reset-button-opened,:host([reset]:not([reset=false])) .reset{transform:scale(1)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-filter-items-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}@media (prefers-reduced-motion:reduce){:host{--mds-filter-items-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-filter-items-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}}'}},[257,"mds-filter",{autoReset:[516,"auto-reset"],label:[1],multiple:[516],reset:[516],active:[32],itemsSelected:[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]),w=g,y=function(){"undefined"!=typeof customElements&&["mds-filter","mds-filter-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-filter":customElements.get(i(t))||customElements.define(i(t),g);break;case"mds-filter-item":customElements.get(i(t))||c();break;case"mds-icon":customElements.get(i(t))||h();break;case"mds-text":customElements.get(i(t))||f()}}))};export{w as MdsFilter,y as defineCustomElement}
1
+ import{p as t,H as e,d as r,h as a,c as s,t as i,B as o}from"./p-TZJN-ygm.js";import{c as n}from"./p-ChV9xqsO.js";import{p as m}from"./p-CVRN4LDc.js";import{m as d}from"./p-J-ikDhyq.js";import{L as l}from"./p-B8x-d2fx.js";import{d as c}from"./p-DCrdKrky.js";import{d as h}from"./p-Cmn1DJAB.js";import{d as f}from"./p-CNF3u0Li.js";var p={clearFilters:"Εκκαθάριση φίλτρων"},u={clearFilters:"Clear filters"},v={clearFilters:"Borrar filtros"},b={clearFilters:"Rimuovi i filtri"};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.changedEvent=r(this,"mdsFilterChange",7),this.t=new l({el:p,en:u,es:v,it:b}),this.itemsSelected=0,this.queryItems=()=>this.element.querySelectorAll("mds-filter-item"),this.scrollTabs=()=>{var t;const e=this.queryItems()[this.lastSelectedItem],r=null===(t=this.element.shadowRoot)||void 0===t?void 0:t.querySelector(".items");if(r&&e){const t=r.getBoundingClientRect(),a=e.getBoundingClientRect();r.scrollLeft+=a.left-t.left-(t.width-a.width)/2}},this.checkSelectedItem=()=>{const t=this.queryItems();let e=!1;t.forEach((t=>{t.selected&&(e=!0)})),this.active=e},this.markSiblings=t=>{this.multiple&&t.forEach(((e,r)=>{e.classList.toggle("sibling",r>0&&!0===t[r-1].selected)}))},this.syncSelection=t=>{const e=Array.from(this.queryItems());let r;t.forEach((t=>{("childList"===t.type?Array.from(t.addedNodes):[t.target]).forEach((t=>{const a=t;e.includes(a)&&!0===a.selected&&(r=a)}))})),this.multiple||this.keepOneSelected(e,r),r&&(this.lastSelectedItem=e.indexOf(r),this.scrollTabs()),this.markSiblings(e),this.checkSelectedItem()},this.keepOneSelected=(t,e=t.filter((t=>!0===t.selected)).pop())=>{t.forEach((t=>{!0===t.selected&&t!==e&&(t.selected=!1)}))},this.checkAutoReset=()=>{this.autoReset&&this.resetItems()},this.resetItems=()=>{this.queryItems().forEach((t=>{t.selected=!1,t.classList.remove("sibling")})),this.active=!1},this.handleResetClick=()=>{this.active&&(this.resetItems(),this.changedEvent.emit({children:this.queryItems(),value:this.itemsValues()}))},this.itemsValues=()=>{const t=this.queryItems(),e=[];return t.forEach((t=>{t.selected&&e.push(t.value)})),""+e}}connectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),o.isBrowser&&(this.selectionObserver=new MutationObserver(this.syncSelection),this.selectionObserver.observe(this.element,{attributeFilter:["selected"],childList:!0,subtree:!0}))}disconnectedCallback(){var t;null===(t=this.selectionObserver)||void 0===t||t.disconnect(),this.selectionObserver=void 0}componentWillLoad(){const t=this.queryItems();t.forEach(((t,e)=>{""===t.id&&(t.id="item-"+e)})),this.multiple||this.keepOneSelected(Array.from(t)),this.checkSelectedItem()}activeEventHandler(t){const e=this.queryItems(),r=t.target;if(this.lastSelectedItem=Array.from(e).indexOf(r),this.scrollTabs(),this.multiple)return this.markSiblings(Array.from(e)),this.itemsSelected=Array.from(e).filter((t=>!0===t.selected)).length,this.checkSelectedItem(),this.itemsSelected===e.length&&this.checkAutoReset(),void this.changedEvent.emit({children:e,value:this.itemsValues()});e.forEach((e=>{e.selected=e===r&&t.detail.selected})),this.checkSelectedItem(),this.changedEvent.emit({children:e,value:this.itemsValues()})}render(){return a(s,{key:"059a62e1aec46863515f85da01511b0b3581bcfb","aria-label":this.label,role:"group","pref-animation":m.state.animation,"pref-contrast":m.state.contrast,"pref-mode":m.state.mode,"pref-theme-scheme":m.state["theme-scheme"]},this.label&&a("mds-text",{key:"6aa9c673c9b968550881af4178fa24b70eb179d5","aria-hidden":"true",class:"label",typography:"label"},this.label),a("div",{key:"b8db527e7f123bc54cc52843b0f04e0f7a52e552",class:"items-wrapper"},a("div",{key:"b4f9a7f85686ff767ed19e74a793a651fece5138",class:n("items",this.active&&"active")},a("slot",{key:"ac06e06830424769902f63268d350939f7af60f7"}),this.reset&&a("div",{key:"0a3e30f4f8a81f72ca13ad2d13eed2587ad47707",class:n("reset",this.active&&"reset--opened")},a("mds-filter-item",{key:"7e4abca6c494d59594c7e28bf45d9c5bd2d18070","aria-hidden":this.active?void 0:"true","aria-label":this.t.get("clearFilters"),selected:this.active,disabled:!this.active,class:n("reset-button",this.active&&"reset-button-opened"),icon:d,onClick:this.handleResetClick})))))}get element(){return this}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-filter-item,mds-text):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-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-gap:calc(var(--spacing,.0025rem)*200);--mds-filter-items-padding:calc(var(--spacing,.0025rem)*200);--mds-filter-items-radius:var(--magma-radius-full,var(--radius-full,1000px));--mds-filter-items-scroll-behavior:smooth;--mds-filter-items-transition-duration:var(--duration-300,.3s);--private-filter-items-transition-duration:var(--mds-filter-items-transition-duration);--mds-filter-label-padding:0 calc(var(--spacing,.0025rem)*600);--mds-filter-wrapper-shadow-color:rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset;--mds-filter-wrapper-shadow-opacity:.1;display:grid;gap:calc(var(--spacing,.0025rem)*100);grid-auto-rows:min-content}.items{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;background-color:var(--mds-filter-items-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));display:flex;gap:var(--mds-filter-items-gap,calc(var(--spacing,.0025rem)*200));overflow:auto;padding:var(--mds-filter-items-padding,calc(var(--spacing,.0025rem)*200));position:relative;scroll-behavior:var(--mds-filter-items-scroll-behavior,smooth);scroll-snap-type:x mandatory;scrollbar-width:none;transition-duration:var(--private-filter-items-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.items-wrapper{display:grid;overflow:hidden;position:relative}.items-wrapper:after{border-radius:var(--mds-filter-items-radius,var(--magma-radius-full,var(--radius-full,1000px)));box-shadow:var(--mds-filter-wrapper-shadow);content:"";inset:0;opacity:var(--mds-filter-wrapper-shadow-opacity,.1);pointer-events:none;position:absolute}.items::-webkit-scrollbar{display:none}.label{padding:var(--mds-filter-label-padding,0 calc(var(--spacing,.0025rem)*600))}.active{background-color:var(--mds-filter-items-background-active,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))))}.reset{display:flex;flex-grow:1;justify-content:flex-end;transform-origin:50%}.reset,.reset-button{transform:scale(0);transition-duration:var(--duration-300,.3s);transition-property:transform;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.reset-button-opened,:host([reset]:not([reset=false])) .reset{transform:scale(1)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-filter-items-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}@media (prefers-reduced-motion:reduce){:host{--mds-filter-items-scroll-behavior:auto}:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-filter-items-transition-duration:0s}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .items{--mds-filter-items-background-active:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-items-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-filter-items-background-active:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-filter-items-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-filter-wrapper-shadow-opacity:.3;--mds-filter-wrapper-shadow:0 0 0 calc(var(--spacing,.0025rem)*50) var(--mds-filter-wrapper-shadow-color,rgb(var(--magma-border-default,var(--border-neutral-default,196 196 196)))) inset}}'}},[257,"mds-filter",{autoReset:[516,"auto-reset"],label:[1],multiple:[516],reset:[516],active:[32],itemsSelected:[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]),w=g,y=function(){"undefined"!=typeof customElements&&["mds-filter","mds-filter-item","mds-icon","mds-text"].forEach((t=>{switch(t){case"mds-filter":customElements.get(i(t))||customElements.define(i(t),g);break;case"mds-filter-item":customElements.get(i(t))||c();break;case"mds-icon":customElements.get(i(t))||h();break;case"mds-text":customElements.get(i(t))||f()}}))};export{w as MdsFilter,y as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as e,d as t,h as r,c as n,t as s}from"./p-B2p5a1Y8.js";import{h as o}from"./p-DWIIDHSa.js";import{c as i}from"./p-ChV9xqsO.js";import{p as d}from"./p-BlnEiKN4.js";import{L as m}from"./p-B9dgiq4u.js";import{d as p}from"./p-BUr3NqxM.js";import{d as c}from"./p-cIZniMh0.js";import{d as h}from"./p-B6B6q5kP.js";import{d as l}from"./p-DezdwzYQ.js";var u={openMenu:"Άνοιγμα μενού"},f={openMenu:"Open menu"},b={openMenu:"Abrir el menú"},v={openMenu:"Apri il menu"};const x=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.openedEvent=t(this,"mdsHeaderBarOpen",7),this.t=new m({el:u,en:f,es:b,it:v}),this.menu="mobile",this.nav="desktop",this.onNavSlotChange=()=>{this.hasNav=o(this.host,"nav")},this.open=()=>{this.openedEvent.emit(),this.setOpened(!0)}}componentWillLoad(){this.hasNav=o(this.host,"nav")}async setOpened(a=!0){var e;this.isOpened=a,await(null===(e=this.host.closest("mds-header"))||void 0===e?void 0:e.setOpened(a))}render(){return r(n,{key:"20860f96f7ad35b9576b6a84d80971193221bcb3","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},r("div",{key:"b6af6825f19ab91761acc62452d0328377a4fadd",class:"content",part:"content"},r("div",{key:"315510f979a955439b786ad99351cfdc13de7708",class:"logo"},r("slot",{key:"e3906a1b881db494da3b4e009defd2ac6982e160"})),r("div",{key:"94cc9b1fdded69b41c97e59014a4b20a77684597",class:"actions",part:"actions"},r("nav",{key:"17f5d20e874621efafc6f851882096413647bbaa",class:i("nav",!this.hasNav&&"nav--hidden"),part:"nav"},r("slot",{key:"6a4f608071c49556268bfb5262673049f3a2e195",name:"nav",onSlotchange:this.onNavSlotChange})),"none"!==this.menu&&r("mds-button",{key:"d2e9100c2ea7afcc970bbb1895e0a23afd5cf011","aria-label":this.t.get("openMenu"),class:"menu",variant:"dark",tone:"text",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z"/></svg>',onClick:this.open,part:"hamburger"}))))}get host(){return this}static get style(){return"@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{--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))));--mds-header-bar-transition-duration:.5s;--private-header-bar-transition-duration:var(--mds-header-bar-transition-duration);background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));box-shadow:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);interpolate-size:allow-keywords;display:flex;inset:0 0 auto;justify-content:center;margin-left:auto;margin-right:auto;max-width:100%;padding:calc(var(--spacing,.0025rem)*400) calc(var(--spacing,.0025rem)*600);position:fixed;transition-duration:var(--private-header-bar-transition-duration);transition-property:background-color,border-radius,margin,max-width,transform,width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:auto;z-index:var(--mds-header-z-index,1000)}.logo{color:inherit;display:flex}.content{align-items:center;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between;max-width:var(--breakpoint-wide,1280px)}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*600)}.nav{display:inline-flex;flex-shrink:0;gap:calc(var(--spacing,.0025rem)*400)}.nav--hidden{display:none}.menu{--mds-button-border-opacity:0;fill:var(--mds-header-bar-hamburger-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));padding:0}.menu::part(icon){width:calc(var(--spacing,.0025rem)*800)}:host([menu=none]) .menu,:host([nav=none]) .nav{display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-header-bar-transition-duration:0s}:host([pref-contrast=more]){--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}@media not all and (min-width:768px){:host([menu=desktop]) .menu,:host([nav=desktop]) .nav{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu,:host([nav=mobile]) .nav{display:none}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-header-bar-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}"}},[257,"mds-header-bar",{menu:[513],nav:[513],hasNav:[32],isOpened:[32],setOpened:[64]}]),g=x,y=function(){"undefined"!=typeof customElements&&["mds-header-bar","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-header-bar":customElements.get(s(a))||customElements.define(s(a),x);break;case"mds-button":customElements.get(s(a))||p();break;case"mds-icon":customElements.get(s(a))||c();break;case"mds-spinner":customElements.get(s(a))||h();break;case"mds-text":customElements.get(s(a))||l()}}))};export{g as MdsHeaderBar,y as defineCustomElement}
1
+ import{p as a,H as e,d as t,h as r,c as n,t as s}from"./p-TZJN-ygm.js";import{h as o}from"./p-DWIIDHSa.js";import{c as i}from"./p-ChV9xqsO.js";import{p as d}from"./p-CVRN4LDc.js";import{L as m}from"./p-B8x-d2fx.js";import{d as c}from"./p-ClPv-Ljc.js";import{d as p}from"./p-Cmn1DJAB.js";import{d as h}from"./p-ZuubAcA3.js";import{d as l}from"./p-CNF3u0Li.js";var u={openMenu:"Άνοιγμα μενού"},f={openMenu:"Open menu"},b={openMenu:"Abrir el menú"},v={openMenu:"Apri il menu"};const x=a(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.openedEvent=t(this,"mdsHeaderBarOpen",7),this.t=new m({el:u,en:f,es:b,it:v}),this.menu="mobile",this.nav="desktop",this.onNavSlotChange=()=>{this.hasNav=o(this.host,"nav")},this.open=()=>{this.openedEvent.emit(),this.setOpened(!0)}}componentWillLoad(){this.hasNav=o(this.host,"nav")}async setOpened(a=!0){var e;this.isOpened=a,await(null===(e=this.host.closest("mds-header"))||void 0===e?void 0:e.setOpened(a))}render(){return r(n,{key:"20860f96f7ad35b9576b6a84d80971193221bcb3","pref-animation":d.state.animation,"pref-contrast":d.state.contrast,"pref-mode":d.state.mode,"pref-theme-scheme":d.state["theme-scheme"]},r("div",{key:"b6af6825f19ab91761acc62452d0328377a4fadd",class:"content",part:"content"},r("div",{key:"315510f979a955439b786ad99351cfdc13de7708",class:"logo"},r("slot",{key:"e3906a1b881db494da3b4e009defd2ac6982e160"})),r("div",{key:"94cc9b1fdded69b41c97e59014a4b20a77684597",class:"actions",part:"actions"},r("nav",{key:"17f5d20e874621efafc6f851882096413647bbaa",class:i("nav",!this.hasNav&&"nav--hidden"),part:"nav"},r("slot",{key:"6a4f608071c49556268bfb5262673049f3a2e195",name:"nav",onSlotchange:this.onNavSlotChange})),"none"!==this.menu&&r("mds-button",{key:"d2e9100c2ea7afcc970bbb1895e0a23afd5cf011","aria-label":this.t.get("openMenu"),class:"menu",variant:"dark",tone:"text",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z"/></svg>',onClick:this.open,part:"hamburger"}))))}get host(){return this}static get style(){return"@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{--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))));--mds-header-bar-transition-duration:var(--duration-500,.5s);--private-header-bar-transition-duration:var(--mds-header-bar-transition-duration);background-color:rgb(var(--magma-surface-raised,var(--surface-neutral-raised,248 248 248)));box-shadow:var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f);interpolate-size:allow-keywords;display:flex;inset:0 0 auto;justify-content:center;margin-left:auto;margin-right:auto;max-width:100%;padding:calc(var(--spacing,.0025rem)*400) calc(var(--spacing,.0025rem)*600);position:fixed;transition-duration:var(--private-header-bar-transition-duration);transition-property:background-color,border-radius,margin,max-width,transform,width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:auto;z-index:var(--mds-header-z-index,1000)}.logo{color:inherit;display:flex}.content{align-items:center;display:flex;flex-grow:1;gap:calc(var(--spacing,.0025rem)*400);justify-content:space-between;max-width:var(--breakpoint-wide,1280px)}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*600)}.nav{display:inline-flex;flex-shrink:0;gap:calc(var(--spacing,.0025rem)*400)}.nav--hidden{display:none}.menu{--mds-button-border-opacity:0;fill:var(--mds-header-bar-hamburger-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));padding:0}.menu::part(icon){width:calc(var(--spacing,.0025rem)*800)}:host([menu=none]) .menu,:host([nav=none]) .nav{display:none}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-header-bar-transition-duration:0s}:host([pref-contrast=more]){--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}@media not all and (min-width:768px){:host([menu=desktop]) .menu,:host([nav=desktop]) .nav{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu,:host([nav=mobile]) .nav{display:none}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-header-bar-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-header-bar-hamburger-color:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}"}},[257,"mds-header-bar",{menu:[513],nav:[513],hasNav:[32],isOpened:[32],setOpened:[64]}]),g=x,y=function(){"undefined"!=typeof customElements&&["mds-header-bar","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-header-bar":customElements.get(s(a))||customElements.define(s(a),x);break;case"mds-button":customElements.get(s(a))||c();break;case"mds-icon":customElements.get(s(a))||p();break;case"mds-spinner":customElements.get(s(a))||h();break;case"mds-text":customElements.get(s(a))||l()}}))};export{g as MdsHeaderBar,y as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as a,d as i,h as t,c as r,t as d}from"./p-B2p5a1Y8.js";import{b as s}from"./p-DWIIDHSa.js";import{p as n}from"./p-BlnEiKN4.js";import{d as o}from"./p-BUr3NqxM.js";import{d as h}from"./p-cIZniMh0.js";import{d as l}from"./p-BHy4k3pJ.js";import{d as m}from"./p-B6B6q5kP.js";import{d as c}from"./p-DezdwzYQ.js";const p=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closedEvent=i(this,"mdsHeaderClose",7),this.visibleEvent=i(this,"mdsHeaderVisibilityChange",7),this.relativeTresholdDown=0,this.relativePosition=0,this.relativeThresholdUp=0,this.sanitizedAppearance=["stripe"],this.appearanceThreshold=300,this.appearance="stripe",this.hideBackdrop=!1,this.menu="mobile",this.nav="desktop",this.threshold=1,this.visibility="visible",this.mobileMenu=()=>s(this.host,"menu"),this.close=()=>{this.isOpened=!1,this.closedEvent.emit({bar:this.headerBar}),this.headerBar.setOpened(!1)},this.getAutoHide=()=>{var e;const a=null!==(e=this.autoHide)&&void 0!==e?e:0;return Number.isNaN(a)?0:a},this.handleVisibility=()=>{const e=this.getAutoHide();if(0!==e){if(window.scrollY<e)return this.visibility="visible",this.relativeThresholdUp=0,this.relativeTresholdDown=0,void(this.relativePosition=0);this.relativeTresholdDown-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.relativeTresholdDown),this.relativeThresholdUp-window.scrollY>=this.threshold&&(this.visibility="visible",this.relativeThresholdUp=window.scrollY,this.relativePosition=this.relativeThresholdUp),this.relativePosition<e&&e-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=e),window.scrollY>this.relativeThresholdUp?this.relativeThresholdUp=window.scrollY:this.relativeTresholdDown=window.scrollY+this.threshold}},this.sanitizeAppearance=()=>{var e;const a=null!==(e=this.appearanceSet)&&void 0!==e?e:"";if(""===a)return[this.appearance];return a.match(/\b(\w+)\b/g)||[this.appearance]},this.handleAppearance=()=>{var e,a;this.appearance=window.scrollY>=this.appearanceThreshold?null!==(e=this.sanitizedAppearance[1])&&void 0!==e?e:this.appearance:null!==(a=this.sanitizedAppearance[0])&&void 0!==a?a:this.appearance},this.handleScroll=()=>{"undefined"!=typeof window&&(0!==this.getAutoHide()&&this.handleVisibility(),this.sanitizedAppearance.length>1&&this.handleAppearance())},this.setAppearanceSetData=()=>{this.sanitizedAppearance=this.sanitizeAppearance(),void 0===this.sanitizedAppearance[2]||0===this.sanitizedAppearance[2]||Number.isNaN(this.sanitizedAppearance[2])||(this.appearanceThreshold=this.sanitizedAppearance[2]),this.relativeTresholdDown=this.threshold},this.initScrollListener=()=>{"undefined"!=typeof window&&(this.setAppearanceSetData(),window.addEventListener("scroll",this.handleScroll))},this.barMenu=e=>this.hasMenu?e:"none",this.defineHeaderBar=()=>{this.headerBar=this.host.querySelector("mds-header-bar")}}async setOpened(e=!0){this.isOpened=e}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.handleScroll)}componentWillLoad(){this.hasMenu=null!==this.mobileMenu()}componentDidLoad(){this.defineHeaderBar(),this.onMenuChangedHandler(this.menu),this.onNavChangedHandler(this.nav),this.initScrollListener()}onMenuChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.menu=this.barMenu(e))}onNavChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.nav=e)}onAppearanceSetChangedHandler(){this.setAppearanceSetData()}handleVisibilityChange(e,a){e!==a&&this.visibleEvent.emit({visibility:e})}render(){return t(r,{key:"d9c3c8cd8ebb8198547655eedbc8c61143e83850","pref-consumption":n.state.consumption,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},!this.hideBackdrop&&t("div",{key:"24cca6bc8c7493322c5f6d6137660010b71bb677",class:"backdrop"},t("div",{key:"6a643264c2f34483fb8178b7a1713d3292f2d3cc",class:"backdrop-blur-item"}),t("div",{key:"f7cc0497fd70e4a5d39a50aeeff87403a10c99fc",class:"backdrop-blur-item"}),t("div",{key:"38c7b69a1e18dda24b4e88e24913e07f92c01512",class:"backdrop-blur-item"}),t("div",{key:"bf4987ee611aa1a441029924cd1bbdabb9b70bdd",class:"backdrop-blur-item"}),t("div",{key:"76e73a4769f90d52a08dbe0ca8ea897468476050",class:"backdrop-blur-item"}),t("div",{key:"a0fb991f35fdf20d52544dbfade07e4d68e1b492",class:"backdrop-blur-item"}),t("div",{key:"59d29f1272c27ba0a676879ee992d56d78178e5b",class:"backdrop-blur-item"}),t("div",{key:"423afdb6db01e12e1da32e9eb42971109aad5d98",class:"backdrop-blur-item"}),t("div",{key:"ba0f56fb3263b29cbf289d248d1fae25561121cc",class:"backdrop-blur-item"}),t("div",{key:"55eb042d2b8b6e0e4382bb0e688b927e982afa93",class:"backdrop-blur-item"})),t("slot",{key:"30b93f5ae7ec9b05bb4c1bdde3e55d0f08efb1b1"}),this.hasMenu&&t("div",{key:"04d4912ad8b93977f3c9e4fbea7a5b620c78ee41",class:"menu",part:"menu"},t("mds-modal",{key:"898a5376b0a0db8dd5a485681e4fa574be38d586",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},t("slot",{key:"5cc7cddb68b1ab247f6bf78463321fd45e7d5e5e",name:"menu"}))))}get host(){return this}static get watchers(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-modal: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-header-hidden-bar-translate-inline:translateY(-150%);--mds-header-hidden-bar-translate-stripe:translateY(-110%);--mds-header-modal-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-header-backdrop-blur-strength:2px;--mds-header-backdrop-height:calc(var(--spacing,.0025rem)*1600);--mds-header-backdrop-show:true;--mds-header-z-index:var(--magma-header-z-index,1000);--mds-header-inline-margin-mobile:calc(var(--spacing,.0025rem)*400);--mds-header-inline-margin:calc(var(--spacing,.0025rem)*600);--mds-header-backdrop-background-image:linear-gradient(0deg,#0000,#00000026);--private-mask-opacity:1;color:var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));display:block;fill:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));position:relative;z-index:var(--mds-header-z-index)}.modal{--mds-modal-close-icon-color:var(--mds-header-modal-icon-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));z-index:var(--mds-header-z-index)}:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin,calc(var(--spacing,.0025rem)*600));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));corner-shape:var(--magma-corner-shape,squircle);margin-bottom:var(--mds-header-inline-margin-current);margin-top:var(--mds-header-inline-margin-current);max-width:var(--breakpoint-wide,1280px);width:calc(100% - var(--mds-header-inline-margin-current)*2)}:host([menu=none]) .menu{display:none}:host([visibility=hidden][appearance=stripe]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-stripe)}:host([visibility=hidden][appearance=inline]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-inline)}.backdrop{align-items:center;-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,10px));background-image:var(--mds-header-backdrop-background-image);content:"";display:flex;height:var(--mds-header-backdrop-height,calc(var(--spacing,.0025rem)*1600));inset:0;opacity:1;position:fixed;transform:translate(0);transition-duration:.2s;transition-property:opacity,transform;width:100%}.backdrop-blur-item{--private-gradient-position:calc(100% - (sibling-count() - sibling-index())*5%);display:none}.backdrop-blur-item:first-child{--private-gradient-position:100%}.backdrop-blur-item:nth-child(2){--private-gradient-position:95%}.backdrop-blur-item:nth-child(3){--private-gradient-position:90%}.backdrop-blur-item:nth-child(4){--private-gradient-position:85%}.backdrop-blur-item:nth-child(5){--private-gradient-position:80%}.backdrop-blur-item:nth-child(6){--private-gradient-position:75%}.backdrop-blur-item:nth-child(7){--private-gradient-position:70%}.backdrop-blur-item:nth-child(8){--private-gradient-position:65%}.backdrop-blur-item:nth-child(9){--private-gradient-position:60%}.backdrop-blur-item:nth-child(10){--private-gradient-position:55%}.backdrop-blur-item:nth-child(11){--private-gradient-position:50%}@supports ((-webkit-mask-image:linear-gradient(rgb(0 0 0/1),transparent)) or (mask-image:linear-gradient(rgb(0 0 0/1),transparent))){.backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-image:none}.backdrop-blur-item{-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));display:flex;inset:0;-webkit-mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));pointer-events:none;position:absolute}}:host([appearance=inline]) .backdrop{transform:translate(0)}:host([appearance=stripe]) .backdrop,:host([visibility=hidden]) .backdrop{--mds-header-backdrop-blur-strength:0px;transform:translateY(-100%)}@container style(--mds-header-backdrop-show:false){.backdrop{display:none}}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-consumption=high]) .backdrop{--mds-header-backdrop-background-image:none}:host([pref-consumption=medium]) .backdrop{--mds-header-backdrop-blur-strength:1px}:host([pref-consumption=low]) .backdrop{--mds-header-backdrop-blur-strength:0px;display:none}@media (max-width:767px){:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin-mobile,calc(var(--spacing,.0025rem)*400))}}@media not all and (min-width:768px){:host([menu=desktop]) .menu{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu{display:none}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'}},[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]},void 0,{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}]),b=p,u=function(){"undefined"!=typeof customElements&&["mds-header","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-header":customElements.get(d(e))||customElements.define(d(e),p);break;case"mds-button":customElements.get(d(e))||o();break;case"mds-icon":customElements.get(d(e))||h();break;case"mds-modal":customElements.get(d(e))||l();break;case"mds-spinner":customElements.get(d(e))||m();break;case"mds-text":customElements.get(d(e))||c()}}))};export{b as MdsHeader,u as defineCustomElement}
1
+ import{p as e,H as a,d as i,h as t,c as r,t as d}from"./p-TZJN-ygm.js";import{b as s}from"./p-DWIIDHSa.js";import{p as n}from"./p-CVRN4LDc.js";import{d as o}from"./p-ClPv-Ljc.js";import{d as h}from"./p-Cmn1DJAB.js";import{d as l}from"./p-CfQETwAK.js";import{d as c}from"./p-ZuubAcA3.js";import{d as m}from"./p-CNF3u0Li.js";const p=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.closedEvent=i(this,"mdsHeaderClose",7),this.visibleEvent=i(this,"mdsHeaderVisibilityChange",7),this.relativeTresholdDown=0,this.relativePosition=0,this.relativeThresholdUp=0,this.sanitizedAppearance=["stripe"],this.appearanceThreshold=300,this.appearance="stripe",this.hideBackdrop=!1,this.menu="mobile",this.nav="desktop",this.threshold=1,this.visibility="visible",this.mobileMenu=()=>s(this.host,"menu"),this.close=()=>{this.isOpened=!1,this.closedEvent.emit({bar:this.headerBar}),this.headerBar.setOpened(!1)},this.getAutoHide=()=>{var e;const a=null!==(e=this.autoHide)&&void 0!==e?e:0;return Number.isNaN(a)?0:a},this.handleVisibility=()=>{const e=this.getAutoHide();if(0!==e){if(window.scrollY<e)return this.visibility="visible",this.relativeThresholdUp=0,this.relativeTresholdDown=0,void(this.relativePosition=0);this.relativeTresholdDown-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=this.relativeTresholdDown),this.relativeThresholdUp-window.scrollY>=this.threshold&&(this.visibility="visible",this.relativeThresholdUp=window.scrollY,this.relativePosition=this.relativeThresholdUp),this.relativePosition<e&&e-window.scrollY<=0&&(this.visibility="hidden",this.relativePosition=e),window.scrollY>this.relativeThresholdUp?this.relativeThresholdUp=window.scrollY:this.relativeTresholdDown=window.scrollY+this.threshold}},this.sanitizeAppearance=()=>{var e;const a=null!==(e=this.appearanceSet)&&void 0!==e?e:"";if(""===a)return[this.appearance];return a.match(/\b(\w+)\b/g)||[this.appearance]},this.handleAppearance=()=>{var e,a;this.appearance=window.scrollY>=this.appearanceThreshold?null!==(e=this.sanitizedAppearance[1])&&void 0!==e?e:this.appearance:null!==(a=this.sanitizedAppearance[0])&&void 0!==a?a:this.appearance},this.handleScroll=()=>{"undefined"!=typeof window&&(0!==this.getAutoHide()&&this.handleVisibility(),this.sanitizedAppearance.length>1&&this.handleAppearance())},this.setAppearanceSetData=()=>{this.sanitizedAppearance=this.sanitizeAppearance(),void 0===this.sanitizedAppearance[2]||0===this.sanitizedAppearance[2]||Number.isNaN(this.sanitizedAppearance[2])||(this.appearanceThreshold=this.sanitizedAppearance[2]),this.relativeTresholdDown=this.threshold},this.initScrollListener=()=>{"undefined"!=typeof window&&(this.setAppearanceSetData(),window.addEventListener("scroll",this.handleScroll))},this.barMenu=e=>this.hasMenu?e:"none",this.defineHeaderBar=()=>{this.headerBar=this.host.querySelector("mds-header-bar")}}async setOpened(e=!0){this.isOpened=e}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("scroll",this.handleScroll)}componentWillLoad(){this.hasMenu=null!==this.mobileMenu()}componentDidLoad(){this.defineHeaderBar(),this.onMenuChangedHandler(this.menu),this.onNavChangedHandler(this.nav),this.initScrollListener()}onMenuChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.menu=this.barMenu(e))}onNavChangedHandler(e,a){e!==a&&null!=this.headerBar&&(this.headerBar.nav=e)}onAppearanceSetChangedHandler(){this.setAppearanceSetData()}handleVisibilityChange(e,a){e!==a&&this.visibleEvent.emit({visibility:e})}render(){return t(r,{key:"d9c3c8cd8ebb8198547655eedbc8c61143e83850","pref-consumption":n.state.consumption,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},!this.hideBackdrop&&t("div",{key:"24cca6bc8c7493322c5f6d6137660010b71bb677",class:"backdrop"},t("div",{key:"6a643264c2f34483fb8178b7a1713d3292f2d3cc",class:"backdrop-blur-item"}),t("div",{key:"f7cc0497fd70e4a5d39a50aeeff87403a10c99fc",class:"backdrop-blur-item"}),t("div",{key:"38c7b69a1e18dda24b4e88e24913e07f92c01512",class:"backdrop-blur-item"}),t("div",{key:"bf4987ee611aa1a441029924cd1bbdabb9b70bdd",class:"backdrop-blur-item"}),t("div",{key:"76e73a4769f90d52a08dbe0ca8ea897468476050",class:"backdrop-blur-item"}),t("div",{key:"a0fb991f35fdf20d52544dbfade07e4d68e1b492",class:"backdrop-blur-item"}),t("div",{key:"59d29f1272c27ba0a676879ee992d56d78178e5b",class:"backdrop-blur-item"}),t("div",{key:"423afdb6db01e12e1da32e9eb42971109aad5d98",class:"backdrop-blur-item"}),t("div",{key:"ba0f56fb3263b29cbf289d248d1fae25561121cc",class:"backdrop-blur-item"}),t("div",{key:"55eb042d2b8b6e0e4382bb0e688b927e982afa93",class:"backdrop-blur-item"})),t("slot",{key:"30b93f5ae7ec9b05bb4c1bdde3e55d0f08efb1b1"}),this.hasMenu&&t("div",{key:"04d4912ad8b93977f3c9e4fbea7a5b620c78ee41",class:"menu",part:"menu"},t("mds-modal",{key:"898a5376b0a0db8dd5a485681e4fa574be38d586",class:"modal",opened:this.isOpened,onMdsModalClose:this.close,position:"right"},t("slot",{key:"5cc7cddb68b1ab247f6bf78463321fd45e7d5e5e",name:"menu"}))))}get host(){return this}static get watchers(){return{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-modal: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-header-hidden-bar-translate-inline:translateY(-150%);--mds-header-hidden-bar-translate-stripe:translateY(-110%);--mds-header-modal-icon-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-header-backdrop-blur-strength:calc(var(--spacing,.0025rem)*50);--mds-header-backdrop-height:calc(var(--spacing,.0025rem)*1600);--mds-header-backdrop-show:true;--mds-header-z-index:var(--magma-header-z-index,1000);--mds-header-inline-margin-mobile:calc(var(--spacing,.0025rem)*400);--mds-header-inline-margin:calc(var(--spacing,.0025rem)*600);--mds-header-backdrop-background-image:linear-gradient(0deg,#0000,#00000026);--private-mask-opacity:1;color:var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));display:block;fill:var(--mds-header-icon-color,var(--mds-header-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));position:relative;z-index:var(--mds-header-z-index)}.modal{--mds-modal-close-icon-color:var(--mds-header-modal-icon-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));z-index:var(--mds-header-z-index)}:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin,calc(var(--spacing,.0025rem)*600));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));corner-shape:var(--magma-corner-shape,squircle);margin-bottom:var(--mds-header-inline-margin-current);margin-top:var(--mds-header-inline-margin-current);max-width:var(--breakpoint-wide,1280px);width:calc(100% - var(--mds-header-inline-margin-current)*2)}:host([menu=none]) .menu{display:none}:host([visibility=hidden][appearance=stripe]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-stripe)}:host([visibility=hidden][appearance=inline]) ::slotted(mds-header-bar){transform:var(--mds-header-hidden-bar-translate-inline)}.backdrop{align-items:center;-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,calc(var(--spacing,.0025rem)*250)));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,calc(var(--spacing,.0025rem)*250)));background-image:var(--mds-header-backdrop-background-image);content:"";display:flex;height:var(--mds-header-backdrop-height,calc(var(--spacing,.0025rem)*1600));inset:0;opacity:1;position:fixed;transform:translate(0);transition-duration:var(--duration-200,.2s);transition-property:opacity,transform;width:100%}.backdrop-blur-item{--private-gradient-position:calc(100% - (sibling-count() - sibling-index())*5%);display:none}.backdrop-blur-item:first-child{--private-gradient-position:100%}.backdrop-blur-item:nth-child(2){--private-gradient-position:95%}.backdrop-blur-item:nth-child(3){--private-gradient-position:90%}.backdrop-blur-item:nth-child(4){--private-gradient-position:85%}.backdrop-blur-item:nth-child(5){--private-gradient-position:80%}.backdrop-blur-item:nth-child(6){--private-gradient-position:75%}.backdrop-blur-item:nth-child(7){--private-gradient-position:70%}.backdrop-blur-item:nth-child(8){--private-gradient-position:65%}.backdrop-blur-item:nth-child(9){--private-gradient-position:60%}.backdrop-blur-item:nth-child(10){--private-gradient-position:55%}.backdrop-blur-item:nth-child(11){--private-gradient-position:50%}@supports ((-webkit-mask-image:linear-gradient(rgb(0 0 0/1),transparent)) or (mask-image:linear-gradient(rgb(0 0 0/1),transparent))){.backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background-image:none}.backdrop-blur-item{-webkit-backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));backdrop-filter:blur(var(--mds-header-backdrop-blur-strength,1px));display:flex;inset:0;-webkit-mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));mask-image:linear-gradient(to bottom,rgb(0 0 0/var(--private-mask-opacity,1)) 40%,#0000 var(--private-gradient-position,100%));pointer-events:none;position:absolute}}:host([appearance=inline]) .backdrop{transform:translate(0)}:host([appearance=stripe]) .backdrop,:host([visibility=hidden]) .backdrop{--mds-header-backdrop-blur-strength:0px;transform:translateY(-100%)}@container style(--mds-header-backdrop-show:false){.backdrop{display:none}}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:host([pref-consumption=high]) .backdrop{--mds-header-backdrop-background-image:none}:host([pref-consumption=medium]) .backdrop{--mds-header-backdrop-blur-strength:1px}:host([pref-consumption=low]) .backdrop{--mds-header-backdrop-blur-strength:0px;display:none}@media (max-width:767px){:host([appearance=inline]) ::slotted(mds-header-bar){--mds-header-inline-margin-current:var(--mds-header-inline-margin-mobile,calc(var(--spacing,.0025rem)*400))}}@media not all and (min-width:768px){:host([menu=desktop]) .menu{display:none}}@media (min-width:1024px){:host([menu=mobile]) .menu{display:none}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-header-modal-icon-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'}},[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]},void 0,{menu:[{onMenuChangedHandler:0}],nav:[{onNavChangedHandler:0}],appearanceSet:[{onAppearanceSetChangedHandler:0}],visibility:[{handleVisibilityChange:0}]}]),b=p,u=function(){"undefined"!=typeof customElements&&["mds-header","mds-button","mds-icon","mds-modal","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-header":customElements.get(d(e))||customElements.define(d(e),p);break;case"mds-button":customElements.get(d(e))||o();break;case"mds-icon":customElements.get(d(e))||h();break;case"mds-modal":customElements.get(d(e))||l();break;case"mds-spinner":customElements.get(d(e))||c();break;case"mds-text":customElements.get(d(e))||m()}}))};export{b as MdsHeader,u as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-CWwWCzma.js";const a=o,m=s;export{a as MdsHelp,m as defineCustomElement}
1
+ import{M as o,d as r}from"./p-DNeEn8Rr.js";const s=o,p=r;export{s as MdsHelp,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as o,h as s,c as r,t}from"./p-B2p5a1Y8.js";import{m as i}from"./p-DnEUG7st.js";import{m as l}from"./p-Bd0uuNDE.js";import{c as n}from"./p-ChV9xqsO.js";import{a as c}from"./p-CWk1SCJg.js";import{L as e}from"./p-B9dgiq4u.js";import{d}from"./p-BUr3NqxM.js";import{d as h}from"./p-cIZniMh0.js";import{d as m}from"./p-B6B6q5kP.js";import{d as v}from"./p-DezdwzYQ.js";var g={scrollBack:"Κύλιση προς τα πίσω",scrollForward:"Κύλιση προς τα εμπρός"},p={scrollBack:"Scroll back",scrollForward:"Scroll forward"},b={scrollBack:"Desplazar hacia atrás",scrollForward:"Desplazar hacia adelante"},u={scrollBack:"Scorri indietro",scrollForward:"Scorri avanti"};const f=a(class extends o{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.t=new e({el:g,en:p,es:b,it:u}),this.elements=[],this.hasCompatibility=!0,this.showForward=!0,this.showBack=!1,this.controls="desktop",this.navigation="position",this.snap="start",this.updateElements=()=>{var a,o;const s=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot");this.elements=null!==(o=null==s?void 0:s.assignedElements())&&void 0!==o?o:[]},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.scrollGap=c(a.getPropertyValue("--mds-horizontal-scroll-gap"))},this.isInViewport=a=>{if(null==this.contents)return!1;const o=this.spacer.offsetWidth+this.scrollGap,s=a.getBoundingClientRect(),r=this.contents.getBoundingClientRect();return s.top>=0&&s.left>=o&&s.bottom<=r.height&&s.right<=r.width-2*o},this.checkNavigationButtons=()=>{this.showBack=!0,this.showForward=!0,this.elements.forEach(((a,o)=>{0===o&&this.isInViewport(a)&&(this.showBack=!1),this.elements.length-1===o&&this.isInViewport(a)&&(this.showForward=!1)}))},this.moveBack=()=>{let a,o,s=0;this.elements.forEach(((r,t)=>{this.isInViewport(r)&&(a||(s=t,a=r),o=r)})),this.elements.forEach(((r,t)=>{this.isInViewport(r)||t!==s-1||void 0===a||void 0===o||(this.contents.scrollLeft=this.contents.scrollLeft+r.offsetLeft-o.offsetLeft-a.offsetWidth-this.scrollGap)}))},this.moveForward=()=>{let a=!0;this.elements.forEach((o=>{this.isInViewport(o)||o.offsetLeft>this.contents.scrollLeft&&a&&(a=!1,this.lastElementOffsetLeft=o.offsetLeft,this.contents.scrollLeft=this.lastElementOffsetLeft)}))},this.translateNavigationDot=()=>{if(null==this.elements||null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.translateNavigationDot: One of the shadowRoot elements is missing.");const{scrollLeft:a,scrollWidth:o,offsetWidth:s}=this.contents,r=window.getComputedStyle(this.navigationDots);0!==s&&0!==o?this.navigationDot.style.transform=`translateX(${a/(o-s)*(this.navigationDots.offsetWidth-(parseFloat(r.paddingLeft)||0)-(parseFloat(r.paddingRight)||0)-this.navigationDot.offsetWidth)}px)`:console.error("mds-horizontal-scroll.translateNavigationDot: offsetWidth or scrollWidth is 0, impossible to calculate position")},this.updateNavigationDotSize=()=>{if(null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.updateNavigationDotSize: One of the shadowRoot elements is missing.");const{scrollWidth:a,offsetWidth:o}=this.contents,s=this.navigationDots.offsetWidth;this.navigationDot.style.width=a<=o?s+"px":o/a*s+"px"},this.addNavigationDots=()=>{var a,o;this.contents.removeEventListener("scroll",this.translateNavigationDot),this.navigationDot=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".dot"),this.navigationDots=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".dot-navigation"),this.updateNavigationDotSize(),null!=this.navigationDot&&this.contents.addEventListener("scroll",this.translateNavigationDot)}}watchNavigation(a){"position"===a&&this.addNavigationDots()}componentWillLoad(){this.updateCSSCustomProps()}componentDidLoad(){var a,o;this.contents=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".contents"),this.spacer=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".spacer"),"position"===this.navigation&&this.addNavigationDots(),window&&void 0!==window.onscrollend?this.contents.addEventListener("scrollend",this.checkNavigationButtons):void 0!==this.controls&&(this.controls=void 0)}disconnectedCallback(){this.contents.removeEventListener("scrollend",this.checkNavigationButtons),this.contents.removeEventListener("scroll",this.translateNavigationDot)}render(){return s(r,{key:"bb197703381bbaecb64eab3f29593f9381bd1385"},s("div",{key:"22e98fe39199fd5deaa4bdcd8824e623a887ba3d",class:"contents",part:"content"},s("div",{key:"cf59c7a2cc662169210b4a8a194d44cc7dfdcfbf",class:"spacer"}),s("slot",{key:"8266dfb68782c91333e363466a510f490008c95c",onSlotchange:this.updateElements}),s("div",{key:"afc6023087ab16e70809a8620c18ce1973cac4da",class:"spacer"})),s("div",{key:"0a0eefae9e8687fe0d6dff4211e8080a17e34a22",class:"dot-navigation"},s("div",{key:"f8a3de1f76682463f5e2866bb1d33a4f71c2fbba",class:"dot"})),this.controls&&"none"!==this.controls&&s("mds-button",{key:"523bccf4a013e00913bc53fe5cd2bb79740aafd9","aria-label":this.t.get("scrollBack"),onClick:this.moveBack,size:"lg",class:n("navigation navigation--back",!this.showBack&&"navigation--disabled"),icon:i}),this.controls&&"none"!==this.controls&&s("mds-button",{key:"08ec20003cfaf33bcb3aebdd8b34577fa9956de0","aria-label":this.t.get("scrollForward"),onClick:this.moveForward,size:"lg",class:n("navigation navigation--forward",!this.showForward&&"navigation--disabled"),icon:l}))}get host(){return this}static get watchers(){return{navigation:[{watchNavigation:0}]}}static get style(){return'@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{--mds-horizontal-scroll-behavior:smooth;--mds-horizontal-scroll-dots-gap:calc(var(--spacing,.0025rem)*100);--mds-horizontal-scroll-dot-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-dot-max-width:auto;--mds-horizontal-scroll-dot-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-horizontal-scroll-dot-area-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-horizontal-scroll-contents-padding:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-contents-scroll-padding:0 calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-controls-margin:calc(var(--spacing,.0025rem)*1200);--mds-horizontal-scroll-gap:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-max-width:var(--breakpoint-wide,1280px);--mds-horizontal-scroll-scrollbar-margin:0;--mds-horizontal-scroll-scrollbar-radius:0;--mds-horizontal-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-horizontal-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--max-width:var(--mds-horizontal-scroll-max-width,var(--breakpoint-wide,1280px));--scroll-margin:calc(((100svw - var(--max-width)) / 2) + (var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)) * 2));align-items:center;container:mds-horizontal-scroll/inline-size;display:flex;flex-direction:column;justify-content:center;position:relative;width:100%}.navigation{border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition-duration:.2s;transition-property:opacity,scale,transform}.contents{box-sizing:border-box;display:flex;gap:var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem)*600));overflow:auto;padding-bottom:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));padding-top:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));position:relative;scroll-behavior:var(--mds-horizontal-scroll-behavior,smooth);scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600));scroll-snap-type:x mandatory;width:100%}.contents>::slotted(*){flex:0 0 0;scroll-margin:0 var(--scroll-margin)}.spacer{--width:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)));content:"";display:block;flex:0 0 0;min-width:clamp(1px,var(--width),var(--width));scroll-margin:0 var(--scroll-margin)}@container (max-width:1024px){:host{--scroll-margin:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents{scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents>::slotted(*){scroll-margin:0 var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}}.navigation--back{left:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--back,.navigation--forward{--position:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) - var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)))}.navigation--forward{right:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--disabled{opacity:0;pointer-events:none;transform:translateY(-50%)scale(.5)}:host([controls=all]) .navigation{display:flex}.dot-navigation{align-self:center;background-color:var(--mds-horizontal-scroll-dot-area-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;gap:var(--mds-horizontal-scroll-dots-gap,calc(var(--spacing,.0025rem)*100));justify-content:start;margin:0 auto var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600)) auto;max-width:calc(var(--spacing,.0025rem)*4000);padding:calc(var(--spacing,.0025rem)*50);width:100%}:host([navigation=position]) .dot-navigation{display:inline-flex}.dot{background-color:var(--mds-horizontal-scroll-dot-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));height:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));max-width:var(--mds-horizontal-scroll-dot-max-width);min-width:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));transition-duration:.3s;transition-property:width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:calc(var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem) * 200)) * 2)}:host(:not([navigation=scrollbar])) .contents{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .contents::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .contents::-webkit-scrollbar{height:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-track{background-color:var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0);margin-block:var(--mds-horizontal-scroll-scrollbar-margin,0);margin-inline:var(--mds-horizontal-scroll-scrollbar-margin,0)}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-thumb{background-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.contents{scrollbar-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}:host([snap=start]) .contents>::slotted(*){scroll-snap-align:start}:host([snap=center]) .contents>::slotted(*){scroll-snap-align:center}:host([snap=end]) .contents>::slotted(*){scroll-snap-align:end}@media (prefers-reduced-motion:reduce){:host{--mds-horizontal-scroll-behavior:auto}}@media (min-width:1920px){:host([controls=tv]) .navigation{display:flex}}@media (min-width:1600px){:host([controls=xlarge]) .navigation{display:flex}}@media (min-width:1440px){:host([controls=large]) .navigation{display:flex}}@media (min-width:1280px){:host([controls=wide]) .navigation{display:flex}}@media (min-width:1024px){:host([controls=desktop]) .navigation{display:flex}}@media (min-width:768px){:host([controls=tablet]) .navigation{display:flex}}'}},[257,"mds-horizontal-scroll",{controls:[1537],navigation:[513],snap:[513],hasCompatibility:[32],showForward:[32],showBack:[32]},void 0,{navigation:[{watchNavigation:0}]}]),w=f,z=function(){"undefined"!=typeof customElements&&["mds-horizontal-scroll","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-horizontal-scroll":customElements.get(t(a))||customElements.define(t(a),f);break;case"mds-button":customElements.get(t(a))||d();break;case"mds-icon":customElements.get(t(a))||h();break;case"mds-spinner":customElements.get(t(a))||m();break;case"mds-text":customElements.get(t(a))||v()}}))};export{w as MdsHorizontalScroll,z as defineCustomElement}
1
+ import{p as a,H as o,h as r,c as s,t}from"./p-TZJN-ygm.js";import{m as i}from"./p-DnEUG7st.js";import{m as l}from"./p-Bd0uuNDE.js";import{c as n}from"./p-ChV9xqsO.js";import{a as c}from"./p-CWk1SCJg.js";import{L as e}from"./p-B8x-d2fx.js";import{d}from"./p-ClPv-Ljc.js";import{d as h}from"./p-Cmn1DJAB.js";import{d as m}from"./p-ZuubAcA3.js";import{d as v}from"./p-CNF3u0Li.js";var g={scrollBack:"Κύλιση προς τα πίσω",scrollForward:"Κύλιση προς τα εμπρός"},p={scrollBack:"Scroll back",scrollForward:"Scroll forward"},b={scrollBack:"Desplazar hacia atrás",scrollForward:"Desplazar hacia adelante"},u={scrollBack:"Scorri indietro",scrollForward:"Scorri avanti"};const f=a(class extends o{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.t=new e({el:g,en:p,es:b,it:u}),this.elements=[],this.hasCompatibility=!0,this.showForward=!0,this.showBack=!1,this.controls="desktop",this.navigation="position",this.snap="start",this.updateElements=()=>{var a,o;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot");this.elements=null!==(o=null==r?void 0:r.assignedElements())&&void 0!==o?o:[]},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.scrollGap=c(a.getPropertyValue("--mds-horizontal-scroll-gap"))},this.isInViewport=a=>{if(null==this.contents)return!1;const o=this.spacer.offsetWidth+this.scrollGap,r=a.getBoundingClientRect(),s=this.contents.getBoundingClientRect();return r.top>=0&&r.left>=o&&r.bottom<=s.height&&r.right<=s.width-2*o},this.checkNavigationButtons=()=>{this.showBack=!0,this.showForward=!0,this.elements.forEach(((a,o)=>{0===o&&this.isInViewport(a)&&(this.showBack=!1),this.elements.length-1===o&&this.isInViewport(a)&&(this.showForward=!1)}))},this.moveBack=()=>{let a,o,r=0;this.elements.forEach(((s,t)=>{this.isInViewport(s)&&(a||(r=t,a=s),o=s)})),this.elements.forEach(((s,t)=>{this.isInViewport(s)||t!==r-1||void 0===a||void 0===o||(this.contents.scrollLeft=this.contents.scrollLeft+s.offsetLeft-o.offsetLeft-a.offsetWidth-this.scrollGap)}))},this.moveForward=()=>{let a=!0;this.elements.forEach((o=>{this.isInViewport(o)||o.offsetLeft>this.contents.scrollLeft&&a&&(a=!1,this.lastElementOffsetLeft=o.offsetLeft,this.contents.scrollLeft=this.lastElementOffsetLeft)}))},this.translateNavigationDot=()=>{if(null==this.elements||null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.translateNavigationDot: One of the shadowRoot elements is missing.");const{scrollLeft:a,scrollWidth:o,offsetWidth:r}=this.contents,s=window.getComputedStyle(this.navigationDots);0!==r&&0!==o?this.navigationDot.style.transform=`translateX(${a/(o-r)*(this.navigationDots.offsetWidth-(parseFloat(s.paddingLeft)||0)-(parseFloat(s.paddingRight)||0)-this.navigationDot.offsetWidth)}px)`:console.error("mds-horizontal-scroll.translateNavigationDot: offsetWidth or scrollWidth is 0, impossible to calculate position")},this.updateNavigationDotSize=()=>{if(null==this.contents||null==this.navigationDot||null==this.navigationDots)return void console.error("mds-horizontal-scroll.updateNavigationDotSize: One of the shadowRoot elements is missing.");const{scrollWidth:a,offsetWidth:o}=this.contents,r=this.navigationDots.offsetWidth;this.navigationDot.style.width=a<=o?r+"px":o/a*r+"px"},this.addNavigationDots=()=>{var a,o;this.contents.removeEventListener("scroll",this.translateNavigationDot),this.navigationDot=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".dot"),this.navigationDots=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".dot-navigation"),this.updateNavigationDotSize(),null!=this.navigationDot&&this.contents.addEventListener("scroll",this.translateNavigationDot)}}watchNavigation(a){"position"===a&&this.addNavigationDots()}componentWillLoad(){this.updateCSSCustomProps()}componentDidLoad(){var a,o;this.contents=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".contents"),this.spacer=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".spacer"),"position"===this.navigation&&this.addNavigationDots(),window&&void 0!==window.onscrollend?this.contents.addEventListener("scrollend",this.checkNavigationButtons):void 0!==this.controls&&(this.controls=void 0)}disconnectedCallback(){this.contents.removeEventListener("scrollend",this.checkNavigationButtons),this.contents.removeEventListener("scroll",this.translateNavigationDot)}render(){return r(s,{key:"bb197703381bbaecb64eab3f29593f9381bd1385"},r("div",{key:"22e98fe39199fd5deaa4bdcd8824e623a887ba3d",class:"contents",part:"content"},r("div",{key:"cf59c7a2cc662169210b4a8a194d44cc7dfdcfbf",class:"spacer"}),r("slot",{key:"8266dfb68782c91333e363466a510f490008c95c",onSlotchange:this.updateElements}),r("div",{key:"afc6023087ab16e70809a8620c18ce1973cac4da",class:"spacer"})),r("div",{key:"0a0eefae9e8687fe0d6dff4211e8080a17e34a22",class:"dot-navigation"},r("div",{key:"f8a3de1f76682463f5e2866bb1d33a4f71c2fbba",class:"dot"})),this.controls&&"none"!==this.controls&&r("mds-button",{key:"523bccf4a013e00913bc53fe5cd2bb79740aafd9","aria-label":this.t.get("scrollBack"),onClick:this.moveBack,size:"lg",class:n("navigation navigation--back",!this.showBack&&"navigation--disabled"),icon:i}),this.controls&&"none"!==this.controls&&r("mds-button",{key:"08ec20003cfaf33bcb3aebdd8b34577fa9956de0","aria-label":this.t.get("scrollForward"),onClick:this.moveForward,size:"lg",class:n("navigation navigation--forward",!this.showForward&&"navigation--disabled"),icon:l}))}get host(){return this}static get watchers(){return{navigation:[{watchNavigation:0}]}}static get style(){return'@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{--mds-horizontal-scroll-behavior:smooth;--mds-horizontal-scroll-dots-gap:calc(var(--spacing,.0025rem)*100);--mds-horizontal-scroll-dot-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-dot-max-width:auto;--mds-horizontal-scroll-dot-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-horizontal-scroll-dot-area-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));--mds-horizontal-scroll-contents-padding:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-contents-scroll-padding:0 calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-controls-margin:calc(var(--spacing,.0025rem)*1200);--mds-horizontal-scroll-gap:calc(var(--spacing,.0025rem)*600);--mds-horizontal-scroll-max-width:var(--breakpoint-wide,1280px);--mds-horizontal-scroll-scrollbar-margin:0;--mds-horizontal-scroll-scrollbar-radius:0;--mds-horizontal-scroll-scrollbar-size:calc(var(--spacing,.0025rem)*200);--mds-horizontal-scroll-scrollbar-thumb-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3);--mds-horizontal-scroll-scrollbar-track-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--max-width:var(--mds-horizontal-scroll-max-width,var(--breakpoint-wide,1280px));--scroll-margin:calc(((100svw - var(--max-width)) / 2) + (var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)) * 2));align-items:center;container:mds-horizontal-scroll/inline-size;display:flex;flex-direction:column;justify-content:center;position:relative;width:100%}.navigation{border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition-duration:var(--duration-200,.2s);transition-property:opacity,scale,transform}.contents{box-sizing:border-box;display:flex;gap:var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem)*600));overflow:auto;padding-bottom:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));padding-top:var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600));position:relative;scroll-behavior:var(--mds-horizontal-scroll-behavior,smooth);scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600));scroll-snap-type:x mandatory;width:100%}.contents>::slotted(*){flex:0 0 0;scroll-margin:0 var(--scroll-margin)}.spacer{--width:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)));content:"";display:block;flex:0 0 0;min-width:clamp(1px,var(--width),var(--width));scroll-margin:0 var(--scroll-margin)}@container (max-width:1024px){:host{--scroll-margin:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents{scroll-padding:var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}.contents>::slotted(*){scroll-margin:0 var(--mds-horizontal-scroll-contents-scroll-padding,0 calc(var(--spacing,.0025rem)*600))}}.navigation--back{left:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--back,.navigation--forward{--position:calc(var(--scroll-margin) - var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) - var(--mds-horizontal-scroll-controls-margin,calc(var(--spacing,.0025rem) * 1200)))}.navigation--forward{right:clamp(calc(var(--mds-horizontal-scroll-gap,calc(var(--spacing,.0025rem) * 600)) / 2),var(--position),var(--position))}.navigation--disabled{opacity:0;pointer-events:none;transform:translateY(-50%)scale(.5)}:host([controls=all]) .navigation{display:flex}.dot-navigation{align-self:center;background-color:var(--mds-horizontal-scroll-dot-area-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:none;gap:var(--mds-horizontal-scroll-dots-gap,calc(var(--spacing,.0025rem)*100));justify-content:start;margin:0 auto var(--mds-horizontal-scroll-contents-padding,calc(var(--spacing,.0025rem)*600)) auto;max-width:calc(var(--spacing,.0025rem)*4000);padding:calc(var(--spacing,.0025rem)*50);width:100%}:host([navigation=position]) .dot-navigation{display:inline-flex}.dot{background-color:var(--mds-horizontal-scroll-dot-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-full,var(--radius-full,1000px));height:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));max-width:var(--mds-horizontal-scroll-dot-max-width);min-width:var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem)*200));transition-duration:var(--duration-300,.3s);transition-property:width;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:calc(var(--mds-horizontal-scroll-dot-size,calc(var(--spacing,.0025rem) * 200)) * 2)}:host(:not([navigation=scrollbar])) .contents{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host(:not([navigation=scrollbar])) .contents::-webkit-scrollbar{display:none}:host([navigation=scrollbar]) .contents::-webkit-scrollbar{height:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200));width:var(--mds-horizontal-scroll-scrollbar-size,calc(var(--spacing,.0025rem)*200))}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-track{background-color:var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0);margin-block:var(--mds-horizontal-scroll-scrollbar-margin,0);margin-inline:var(--mds-horizontal-scroll-scrollbar-margin,0)}:host([navigation=scrollbar]) .contents::-webkit-scrollbar-thumb{background-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3));border-radius:var(--mds-horizontal-scroll-scrollbar-radius,0)}@supports (scrollbar-color:transparent transparent){.contents{scrollbar-color:var(--mds-horizontal-scroll-scrollbar-thumb-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))/.3)) var(--mds-horizontal-scroll-scrollbar-track-background,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));scrollbar-width:thin}}:host([snap=start]) .contents>::slotted(*){scroll-snap-align:start}:host([snap=center]) .contents>::slotted(*){scroll-snap-align:center}:host([snap=end]) .contents>::slotted(*){scroll-snap-align:end}@media (prefers-reduced-motion:reduce){:host{--mds-horizontal-scroll-behavior:auto}}@media (min-width:1920px){:host([controls=tv]) .navigation{display:flex}}@media (min-width:1600px){:host([controls=xlarge]) .navigation{display:flex}}@media (min-width:1440px){:host([controls=large]) .navigation{display:flex}}@media (min-width:1280px){:host([controls=wide]) .navigation{display:flex}}@media (min-width:1024px){:host([controls=desktop]) .navigation{display:flex}}@media (min-width:768px){:host([controls=tablet]) .navigation{display:flex}}'}},[257,"mds-horizontal-scroll",{controls:[1537],navigation:[513],snap:[513],hasCompatibility:[32],showForward:[32],showBack:[32]},void 0,{navigation:[{watchNavigation:0}]}]),w=f,z=function(){"undefined"!=typeof customElements&&["mds-horizontal-scroll","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-horizontal-scroll":customElements.get(t(a))||customElements.define(t(a),f);break;case"mds-button":customElements.get(t(a))||d();break;case"mds-icon":customElements.get(t(a))||h();break;case"mds-spinner":customElements.get(t(a))||m();break;case"mds-text":customElements.get(t(a))||v()}}))};export{w as MdsHorizontalScroll,z as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as r,t as s,c as o}from"./p-B2p5a1Y8.js";import{p as a}from"./p-BlnEiKN4.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"24837c75a65334f2219553e2f170001469da4e5a","pref-mode":a.state.mode,"pref-theme-scheme":a.state["theme-scheme"]})}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(: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{background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));border:0;border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;height:1px;width:100%}"}},[1,"mds-hr"]),n=i,d=function(){"undefined"!=typeof customElements&&["mds-hr"].forEach((e=>{"mds-hr"===e&&(customElements.get(s(e))||customElements.define(s(e),i))}))};export{n as MdsHr,d as defineCustomElement}
1
+ import{p as e,H as t,h as r,t as s,c as o}from"./p-TZJN-ygm.js";import{p as a}from"./p-CVRN4LDc.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return r(o,{key:"24837c75a65334f2219553e2f170001469da4e5a","pref-mode":a.state.mode,"pref-theme-scheme":a.state["theme-scheme"]})}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(: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{background-color:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)));border:0;border-radius:var(--magma-radius-full,var(--radius-full,1000px));display:flex;height:1px;width:100%}"}},[1,"mds-hr"]),n=i,d=function(){"undefined"!=typeof customElements&&["mds-hr"].forEach((e=>{"mds-hr"===e&&(customElements.get(s(e))||customElements.define(s(e),i))}))};export{n as MdsHr,d as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-cIZniMh0.js";const p=o,r=s;export{p as MdsIcon,r as defineCustomElement}
1
+ import{M as o,d as s}from"./p-Cmn1DJAB.js";const m=o,p=s;export{m as MdsIcon,p as defineCustomElement}
@@ -1 +1 @@
1
- import{M as s,d as o}from"./p-sM-eFjwq.js";const p=s,r=o;export{p as MdsImg,r as defineCustomElement}
1
+ import{M as o,d as r}from"./p-Cd8id3Br.js";const s=o,d=r;export{s as MdsImg,d as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as r,h as a,c as t,t as s}from"./p-B2p5a1Y8.js";import{d as o}from"./p-BUr3NqxM.js";import{d as n}from"./p-cIZniMh0.js";import{d}from"./p-B6B6q5kP.js";import{d as m}from"./p-DezdwzYQ.js";const c=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.onClick=e=>{var r;const a=null===(r=this.host)||void 0===r?void 0:r.closest("mds-input-date-range");a&&(e.stopPropagation(),a.preselect({caller:this.host,start:this.start,end:this.end}),this.selected=!0)}}componentWillLoad(){this.host.hasAttribute("slot")||this.host.setAttribute("slot","calendar-preselection")}render(){return a(t,{key:"a607253e6243cbb4274d86fe0684e47b0c62648e"},a("mds-button",{key:"fe5dd43aaf6f608b6ecb19e457260d803b3226bd",onClick:this.onClick,class:"action",variant:"primary",tone:"strong"},a("slot",{key:"1befcdbdc4d6922cd0eb1d59b6f9cead4c7f2e0d"})))}get host(){return this}static get style(){return"@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{--mds-date-range-preselection-default-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))/0);--mds-date-range-preselection-default-border:var(--magma-border-default,var(--border-neutral-default,196 196 196));--mds-date-range-preselection-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-date-range-preselection-selected-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-date-range-preselection-selected-border:var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204));--mds-date-range-preselection-selected-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-date-range-preselection-hover-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-hover-border:var(--magma-wash-soft,var(--tone-neutral-10,237 237 237));--mds-date-range-preselection-hover-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-date-range-preselection-background:var(--mds-date-range-preselection-default-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))/0));--mds-date-range-preselection-border:var(--mds-date-range-preselection-default-border,var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-default-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:inline-flex;justify-self:start}:host .action{--mds-button-background:var(--mds-date-range-preselection-background);--mds-button-border-color-rgb:var(--mds-date-range-preselection-border);--mds-button-color:var(--mds-date-range-preselection-color)}:host .action:hover{--mds-date-range-preselection-background:var(--mds-date-range-preselection-hover-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-hover-border,var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-hover-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))))}:host([selected]) .action{--mds-date-range-preselection-background:var(--mds-date-range-preselection-selected-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-selected-border,var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-selected-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));pointer-events:none}"}},[257,"mds-input-date-range-preselection",{selected:[1540],start:[513],end:[513]}]),i=c,l=function(){"undefined"!=typeof customElements&&["mds-input-date-range-preselection","mds-button","mds-icon","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-input-date-range-preselection":customElements.get(s(e))||customElements.define(s(e),c);break;case"mds-button":customElements.get(s(e))||o();break;case"mds-icon":customElements.get(s(e))||n();break;case"mds-spinner":customElements.get(s(e))||d();break;case"mds-text":customElements.get(s(e))||m()}}))};export{i as MdsInputDateRangePreselection,l as defineCustomElement}
1
+ import{p as e,H as r,h as a,c as t,t as s}from"./p-TZJN-ygm.js";import{d as o}from"./p-ClPv-Ljc.js";import{d as n}from"./p-Cmn1DJAB.js";import{d}from"./p-ZuubAcA3.js";import{d as m}from"./p-CNF3u0Li.js";const c=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.onClick=e=>{var r;const a=null===(r=this.host)||void 0===r?void 0:r.closest("mds-input-date-range");a&&(e.stopPropagation(),a.preselect({caller:this.host,start:this.start,end:this.end}),this.selected=!0)}}componentWillLoad(){this.host.hasAttribute("slot")||this.host.setAttribute("slot","calendar-preselection")}render(){return a(t,{key:"a607253e6243cbb4274d86fe0684e47b0c62648e"},a("mds-button",{key:"fe5dd43aaf6f608b6ecb19e457260d803b3226bd",onClick:this.onClick,class:"action",variant:"primary",tone:"strong"},a("slot",{key:"1befcdbdc4d6922cd0eb1d59b6f9cead4c7f2e0d"})))}get host(){return this}static get style(){return"@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{--mds-date-range-preselection-default-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))/0);--mds-date-range-preselection-default-border:var(--magma-border-default,var(--border-neutral-default,196 196 196));--mds-date-range-preselection-default-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-date-range-preselection-selected-background:rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-date-range-preselection-selected-border:var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204));--mds-date-range-preselection-selected-color:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));--mds-date-range-preselection-hover-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-hover-border:var(--magma-wash-soft,var(--tone-neutral-10,237 237 237));--mds-date-range-preselection-hover-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)));--mds-date-range-preselection-background:var(--mds-date-range-preselection-default-background,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))/0));--mds-date-range-preselection-border:var(--mds-date-range-preselection-default-border,var(--magma-border-default,var(--border-neutral-default,196 196 196)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-default-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))));display:inline-flex;justify-self:start}:host .action{--mds-button-background:var(--mds-date-range-preselection-background);--mds-button-border-color-rgb:var(--mds-date-range-preselection-border);--mds-button-color:var(--mds-date-range-preselection-color)}:host .action:hover{--mds-date-range-preselection-background:var(--mds-date-range-preselection-hover-background,rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-hover-border,var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-hover-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))))}:host([selected]) .action{--mds-date-range-preselection-background:var(--mds-date-range-preselection-selected-background,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--mds-date-range-preselection-border:var(--mds-date-range-preselection-selected-border,var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204)));--mds-date-range-preselection-color:var(--mds-date-range-preselection-selected-color,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));pointer-events:none}"}},[257,"mds-input-date-range-preselection",{selected:[1540],start:[513],end:[513]}]),i=c,l=function(){"undefined"!=typeof customElements&&["mds-input-date-range-preselection","mds-button","mds-icon","mds-spinner","mds-text"].forEach((e=>{switch(e){case"mds-input-date-range-preselection":customElements.get(s(e))||customElements.define(s(e),c);break;case"mds-button":customElements.get(s(e))||o();break;case"mds-icon":customElements.get(s(e))||n();break;case"mds-spinner":customElements.get(s(e))||d();break;case"mds-text":customElements.get(s(e))||m()}}))};export{i as MdsInputDateRangePreselection,l as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as a,d as e,h as i,c as s,t as n}from"./p-B2p5a1Y8.js";import{s as r}from"./p-Cvhn9asj.js";import{s as o}from"./p-wI0alRSO.js";import{m as d}from"./p-BVQMG7KJ.js";import{D as h,d as l}from"./p-NOw8-OrM.js";import{c}from"./p-ChV9xqsO.js";import{L as m}from"./p-B9dgiq4u.js";import{p}from"./p-BlnEiKN4.js";import{d as u}from"./p-BUr3NqxM.js";import{d as g}from"./p-BFisF7aN.js";import{d as v}from"./p-ChrRK8N9.js";import{d as f}from"./p-cIZniMh0.js";import{d as b}from"./p-B6B6q5kP.js";import{d as w}from"./p-DezdwzYQ.js";var x={endDate:"Ημερομηνία λήξης",from:"Από",openCalendar:"Άνοιγμα ημερολογίου",startDate:"Ημερομηνία έναρξης",to:"έως"},y={endDate:"End date",from:"From",openCalendar:"Open calendar",startDate:"Start date",to:"to"},D={endDate:"Fecha de fin",from:"De",openCalendar:"Abrir el calendario",startDate:"Fecha de inicio",to:"a"},k={endDate:"Data di fine",from:"Dal",openCalendar:"Apri il calendario",startDate:"Data di inizio",to:"al"};const C=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),this.internals=this.attachInternals(),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.formDisabled=!1,this.t=new m({el:x,en:y,es:D,it:k}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.size="lg",this.hideToday=!1,this.dualCalendar=!1,this.disabled=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=h.fromISO(this.internalStartDate).isValid,a=h.fromISO(this.internalEndDate).isValid;t&&a&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.focusInput=t=>{t.focusInput()},this.focusDateInput=t=>{t.target===this.host&&this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.nameSlottedFields=()=>{[["start",this.t.get("startDate")],["end",this.t.get("endDate")]].forEach((([t,a])=>{var e;const i=this.host.querySelector(`[slot="${t}"]`);null!==i&&r(i,"aria-label",""!==(null!==(e=this.accessibleName)&&void 0!==e?e:"")?`${this.accessibleName}, ${a}`:a)}))},this.isDisabled=()=>!!this.disabled||this.formDisabled,this.handleCalendarHover=t=>{if(""===this.internalStartDate||""!==this.internalEndDate)return void this.clearHoverPreview();const a=t.detail.hoverDate;this.hoveredCalendarDate!==a&&(this.hoveredCalendarDate=a,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),void 0!==t.detail.endDate&&""!==t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.syncFormValue(),this.syncCalendarsSelectionAttributes(),""!==this.internalStartDate&&""!==this.internalEndDate&&(this.emitValueChanged(),this.closeDropdownAfterSelection())},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const a=this.getCalendars().indexOf(t.target),e=h.fromISO(t.detail.currentDate);e.isValid&&(this.visibleCalendarDate=e.minus({months:1===a?1:0}).startOf("month").toISODate())},this.handleCalendarPreselect=()=>{this.checkPreselections()},this.handleOpenCalendarClick=()=>{this.calendarKey+=1}}getCalendars(){var t,a;return Array.from(null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==a?a:[])}resolveVisibleCalendarDate(t,a){var e;return(null!==(e=[t,a].map((t=>h.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==e?e:h.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const a=h.fromISO(this.visibleCalendarDate),e=h.fromISO(this.internalStartDate);let i=h.now();return a.isValid?i=a:e.isValid&&(i=e),i.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const a=h.fromISO(t);a.isValid&&(this.visibleCalendarDate=a.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}syncCalendarsSelectionAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{""!==this.internalStartDate?t.setAttribute("start-date",this.internalStartDate):t.removeAttribute("start-date"),""!==this.internalEndDate?t.setAttribute("end-date",this.internalEndDate):t.removeAttribute("end-date")})),this.syncCalendarsHoverAttributes()}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{null!==this.hoveredCalendarDate&&""!==this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}isWithinRange(t){var a,e;const i=h.fromISO(null!==(a=this.min)&&void 0!==a?a:""),s=h.fromISO(null!==(e=this.max)&&void 0!==e?e:"");return!(i.isValid&&t<i||s.isValid&&t>s)}getEmittableDateRangeDetail(){const t=h.fromISO(this.internalStartDate),a=h.fromISO(this.internalEndDate);return t.isValid&&a.isValid&&this.isWithinRange(t)&&this.isWithinRange(a)?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}handleRangeChange(){this.forwardRange(!0)}handleDisabledChange(){this.forwardDisabled(!0)}forwardRange(t){["start","end"].forEach((a=>{var e,i;const s=this.slottedField(a);null!=s&&((t||""!==(null!==(e=this.min)&&void 0!==e?e:""))&&(s.min=this.min),(t||""!==(null!==(i=this.max)&&void 0!==i?i:""))&&(s.max=this.max))}))}forwardDisabled(t){["start","end"].forEach((a=>{const e=this.slottedField(a);null!=e&&(t||this.disabled)&&(e.disabled=!!this.disabled)}))}slottedField(t){var a;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`);return null==e?void 0:e.assignedElements()[0]}componentWillLoad(){var t,a;if(this.internalStartDate=null!==(t=this.startDate)&&void 0!==t?t:"",this.internalEndDate=null!==(a=this.endDate)&&void 0!==a?a:"",this.initialStartDate=this.internalStartDate,this.initialEndDate=this.internalEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=h.fromISO(this.min);h.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){null==this.togglePreselection&&(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),h.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?h.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.validateDateRange(),this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const a=this.getCalendars();return 0!==a.length&&(await Promise.all(a.map(((t,a)=>t.updateCurrentDate(this.getCalendarViewDate(a))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}componentDidLoad(){var t;this.nameSlottedFields(),this.forwardRange(!1),this.forwardDisabled(!1),this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue(),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formDisabledCallback(t){this.formDisabled=t,t&&this.dropdownRef&&(this.dropdownRef.visible=!1)}formResetCallback(){this.clearHoverPreview(),this.internalStartDate=this.initialStartDate,this.internalEndDate=this.initialEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}syncExternalDate(t,a){const e=null!=a?a:"";if(this.clearHoverPreview(),"start"===t){if(e===this.internalStartDate)return;this.internalStartDate=e,this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}updateInputValue(t,a){const e=this.slottedField(t);null!=e&&(this.syncingInputSlots.add(t),e.setValue(a).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,a;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection");const s=null==e?void 0:e.assignedElements()[0];null!=s&&s.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"));const n=null==i?void 0:i.assignedElements()[0];null!=n&&n.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return a=>{if(this.syncingInputSlots.has(t))return;const e=a;this.clearHoverPreview(),"start"===t?(this.internalStartDate=e.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=e.detail,this.syncFormValue()}}validateDateRange(){if(""!==this.internalStartDate&&""!==this.internalEndDate){const t=h.fromISO(this.internalStartDate);h.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));null!=t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}renderCalendarPreselectionPanel(){return this.hasPreselection?i("div",{class:"calendar-preselection-panel"},i("div",{class:c("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},i("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return i("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}renderDualCalendars(){return i("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey+"-start",hideToday:this.hideToday,hideNextButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})),i("mds-calendar",Object.assign({key:this.calendarKey+"-end",hideToday:this.hideToday,hidePreviousButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}render(){return i(s,{key:"4c5f596b9c3840f8fbb067e8c088369a96729531",onClick:this.focusDateInput,"pref-animation":p.state.animation,"pref-contrast":p.state.contrast,"pref-mode":p.state.mode,"pref-theme-scheme":p.state["theme-scheme"]},i("div",{key:"de5fb8704a474b5de3d1f3b2656fef78020a2ed5",class:"inputs"},i("div",{key:"fb583f70c11e77c51bad506283be0127d032a8b3",class:"input-element"},i("mds-text",{key:"9304321d3a994341bb534131d98cc32993885f1c",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),i("div",{key:"c43e98d87c7631118a941ab25f5c55b23ac1bc70",class:"input-wrapper"},i("slot",{key:"8228f7a7d2aa4d4ec4faa26b6d2fa373694b2d3e",name:"start"}))),i("div",{key:"38025eb3627219359b71dbf91c8f98c183847038",class:"input-element"},i("mds-text",{key:"aa00ebdb393566ef568c683a9be392d6ddb087d2",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),i("div",{key:"126dff1a593896634758affe8ea1508e17c36854",class:"input-wrapper"},i("slot",{key:"b07f781b0180ba09922729120edfb122462b11be",name:"end"})))),i("div",{key:"2e8a5daad85c6bab78a58ad31ef38209716ae197",class:"action-open-calendar-wrapper"},i("mds-button",{key:"2ec7aece92e3891fa102ddf44d503c48334e6cc4","aria-label":this.t.get("openCalendar"),class:"action-open-calendar",size:"sm"===this.size?"sm":void 0,disabled:this.isDisabled(),variant:"dark",tone:"text",icon:d,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),i("mds-dropdown",{key:"4916bf259a32301e65c7001f2b2031eee3434fc4",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","disable-auto-placement":!0,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))}syncFormValue(){var t,a,e,i;const s=null!==(a=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==a?a:"",n=null!==(i=null===(e=this.internalEndDate)||void 0===e?void 0:e.trim())&&void 0!==i?i:"";o(this.internals,""!==s||""!==n?JSON.stringify({startDate:s,endDate:n}):null)}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-text):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-input-date-range-height:3rem;--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1200);--mds-input-date-range-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-date-range-calendar-width:22rem;--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px 3px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px 2px 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-input-date-range-height));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-date-range-variant-color-rgb:0 0 0}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:inherit;box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:var(--private-input-date-range-height);overflow:hidden;padding-left:var(--private-input-date-range-padding-inline);padding-right:var(--private-input-date-range-calendar-area);text-overflow:ellipsis;transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,rotate,scale,transform,translate,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 4px 6px 3px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 2px 4px -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);transition-duration:var(--duration-300,.3s);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{flex:0 0 var(--mds-input-date-range-calendar-width,22rem);inline-size:var(--mds-input-date-range-calendar-width,22rem);max-inline-size:var(--mds-input-date-range-calendar-width,22rem);min-inline-size:var(--mds-input-date-range-calendar-width,22rem)}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));align-self:center}mds-dropdown{padding:0}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));cursor:default}:host(:disabled:not([disabled=false])) .inputs,:host([disabled]:not([disabled=false])) .inputs{background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([size=md]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*900);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*700);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*800)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}.inputs{justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start);padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}}'}},[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]},void 0,{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}]),z=C,j=function(){"undefined"!=typeof customElements&&["mds-input-date-range","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-date-range":customElements.get(n(t))||customElements.define(n(t),C);break;case"mds-button":customElements.get(n(t))||u();break;case"mds-calendar":customElements.get(n(t))||l();break;case"mds-calendar-cell":customElements.get(n(t))||g();break;case"mds-dropdown":customElements.get(n(t))||v();break;case"mds-icon":customElements.get(n(t))||f();break;case"mds-spinner":customElements.get(n(t))||b();break;case"mds-text":customElements.get(n(t))||w()}}))};export{z as MdsInputDateRange,j as defineCustomElement}
1
+ import{p as t,H as a,d as e,h as i,c as s,t as r}from"./p-TZJN-ygm.js";import{s as n}from"./p-Cvhn9asj.js";import{s as o}from"./p-wI0alRSO.js";import{m as d}from"./p-BVQMG7KJ.js";import{D as l,d as h}from"./p-uqwixjju.js";import{c}from"./p-ChV9xqsO.js";import{L as m}from"./p-B8x-d2fx.js";import{p}from"./p-CVRN4LDc.js";import{d as g}from"./p-ClPv-Ljc.js";import{d as u}from"./p-CHHEp_7y.js";import{d as v}from"./p-BwJQB6rG.js";import{d as f}from"./p-Cmn1DJAB.js";import{d as b}from"./p-ZuubAcA3.js";import{d as w}from"./p-CNF3u0Li.js";var y={endDate:"Ημερομηνία λήξης",from:"Από",openCalendar:"Άνοιγμα ημερολογίου",startDate:"Ημερομηνία έναρξης",to:"έως"},x={endDate:"End date",from:"From",openCalendar:"Open calendar",startDate:"Start date",to:"to"},D={endDate:"Fecha de fin",from:"De",openCalendar:"Abrir el calendario",startDate:"Fecha de inicio",to:"a"},C={endDate:"Data di fine",from:"Dal",openCalendar:"Apri il calendario",startDate:"Data di inizio",to:"al"};const k=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChanged=e(this,"mdsInputDateRangeValueChange",7),this.internals=this.attachInternals(),this.calendarKey=0,this.internalStartDate="",this.internalEndDate="",this.visibleCalendarDate="",this.hasPreselection=!1,this.formDisabled=!1,this.t=new m({el:y,en:x,es:D,it:C}),this.startDate="",this.endDate="",this.min=null,this.max=null,this.delay=500,this.size="lg",this.hideToday=!1,this.dualCalendar=!1,this.disabled=!1,this.lastEmittedStartDate=null,this.lastEmittedEndDate=null,this.initialStartDate="",this.initialEndDate="",this.hoveredCalendarDate=null,this.syncingInputSlots=new Set,this.handleFocusOut=t=>{if(!this.host.contains(t.relatedTarget)){const t=l.fromISO(this.internalStartDate).isValid,a=l.fromISO(this.internalEndDate).isValid;t&&a&&(this.validateDateRange(),this.syncFormValue(),this.checkPreselections(),this.emitValueChanged())}},this.focusInput=t=>{t.focusInput()},this.focusDateInput=t=>{t.target===this.host&&this.focusStartDateInput(t)},this.focusStartDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="start"]'))},this.focusEndDateInput=t=>{t.preventDefault(),t.stopPropagation(),this.focusInput(this.host.querySelector('mds-input-date[slot="end"]'))},this.nameSlottedFields=()=>{[["start",this.t.get("startDate")],["end",this.t.get("endDate")]].forEach((([t,a])=>{var e;const i=this.host.querySelector(`[slot="${t}"]`);null!==i&&n(i,"aria-label",""!==(null!==(e=this.accessibleName)&&void 0!==e?e:"")?`${this.accessibleName}, ${a}`:a)}))},this.isDisabled=()=>!!this.disabled||this.formDisabled,this.handleCalendarHover=t=>{if(""===this.internalStartDate||""!==this.internalEndDate)return void this.clearHoverPreview();const a=t.detail.hoverDate;this.hoveredCalendarDate!==a&&(this.hoveredCalendarDate=a,this.syncCalendarsHoverAttributes())},this.handleCalendarChange=t=>{this.clearHoverPreview(),this.internalStartDate=t.detail.startDate,this.updateInputValue("start",this.internalStartDate),void 0!==t.detail.endDate&&""!==t.detail.endDate?(this.internalEndDate=t.detail.endDate,this.updateInputValue("end",this.internalEndDate)):(this.internalEndDate="",this.updateInputValue("end",this.internalEndDate)),this.syncFormValue(),this.syncCalendarsSelectionAttributes(),""!==this.internalStartDate&&""!==this.internalEndDate&&(this.emitValueChanged(),this.closeDropdownAfterSelection())},this.handleCalendarNavigate=t=>{if(!this.dualCalendar)return;const a=this.getCalendars().indexOf(t.target),e=l.fromISO(t.detail.currentDate);e.isValid&&(this.visibleCalendarDate=e.minus({months:1===a?1:0}).startOf("month").toISODate())},this.handleCalendarPreselect=()=>{this.checkPreselections()},this.handleOpenCalendarClick=()=>{this.calendarKey+=1}}getCalendars(){var t,a;return Array.from(null!==(a=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelectorAll("mds-calendar"))&&void 0!==a?a:[])}resolveVisibleCalendarDate(t,a){var e;return(null!==(e=[t,a].map((t=>l.fromISO(null!=t?t:""))).filter((t=>t.isValid))[0])&&void 0!==e?e:l.now()).startOf("month").toISODate()}getCalendarViewDate(t=0){const a=l.fromISO(this.visibleCalendarDate),e=l.fromISO(this.internalStartDate);let i=l.now();return a.isValid?i=a:e.isValid&&(i=e),i.startOf("month").plus({months:t}).toISODate()}setVisibleCalendarDate(t){const a=l.fromISO(t);a.isValid&&(this.visibleCalendarDate=a.startOf("month").toISODate())}closeDropdownAfterSelection(){if(0===this.delay)return;const{dropdownRef:t}=this;t&&setTimeout((()=>{t.visible=!1}),this.delay)}syncCalendarsSelectionAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{""!==this.internalStartDate?t.setAttribute("start-date",this.internalStartDate):t.removeAttribute("start-date"),""!==this.internalEndDate?t.setAttribute("end-date",this.internalEndDate):t.removeAttribute("end-date")})),this.syncCalendarsHoverAttributes()}syncCalendarsHoverAttributes(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.querySelectorAll("mds-calendar").forEach((t=>{null!==this.hoveredCalendarDate&&""!==this.hoveredCalendarDate?t.setAttribute("hover-date",this.hoveredCalendarDate):t.removeAttribute("hover-date")}))}clearHoverPreview(){null!==this.hoveredCalendarDate&&(this.hoveredCalendarDate=null,this.syncCalendarsHoverAttributes())}isWithinRange(t){var a,e;const i=l.fromISO(null!==(a=this.min)&&void 0!==a?a:""),s=l.fromISO(null!==(e=this.max)&&void 0!==e?e:"");return!(i.isValid&&t<i||s.isValid&&t>s)}getEmittableDateRangeDetail(){const t=l.fromISO(this.internalStartDate),a=l.fromISO(this.internalEndDate);return t.isValid&&a.isValid&&this.isWithinRange(t)&&this.isWithinRange(a)?{startDate:this.internalStartDate,endDate:this.internalEndDate}:null}emitValueChanged(){const t=this.getEmittableDateRangeDetail();return!(!t||t.startDate===this.lastEmittedStartDate&&t.endDate===this.lastEmittedEndDate||(this.valueChanged.emit(t),this.lastEmittedStartDate=t.startDate,this.lastEmittedEndDate=t.endDate,0))}handleStartDateChange(t){this.syncExternalDate("start",t)}handleEndDateChange(t){this.syncExternalDate("end",t)}handleRangeChange(){this.forwardRange(!0)}handleDisabledChange(){this.forwardDisabled(!0)}forwardRange(t){["start","end"].forEach((a=>{var e,i;const s=this.slottedField(a);null!=s&&((t||""!==(null!==(e=this.min)&&void 0!==e?e:""))&&(s.min=this.min),(t||""!==(null!==(i=this.max)&&void 0!==i?i:""))&&(s.max=this.max))}))}forwardDisabled(t){["start","end"].forEach((a=>{const e=this.slottedField(a);null!=e&&(t||this.disabled)&&(e.disabled=!!this.disabled)}))}slottedField(t){var a;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${t}"]`);return null==e?void 0:e.assignedElements()[0]}componentWillLoad(){var t,a;if(this.internalStartDate=null!==(t=this.startDate)&&void 0!==t?t:"",this.internalEndDate=null!==(a=this.endDate)&&void 0!==a?a:"",this.initialStartDate=this.internalStartDate,this.initialEndDate=this.internalEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.internalStartDate,this.internalEndDate),null!==this.min&&""!==this.min&&null!==this.max&&""!==this.max){const t=l.fromISO(this.min);l.fromISO(this.max)<t&&(this.max=this.min)}this.syncFormValue()}disconnectedCallback(){var t;this.host.removeEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("mdsCalendarHover",this.handleCalendarHover)}async preselect(t){null==this.togglePreselection&&(this.togglePreselection=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"))),this.togglePreselection.forEach((t=>{t.selected=!1})),t.caller.selected=!0,this.clearHoverPreview(),l.fromISO(t.start).isValid&&(this.internalStartDate=t.start,this.setVisibleCalendarDate(this.internalStartDate),this.updateInputValue("start",this.internalStartDate)),void 0!==t.end?l.fromISO(t.end).isValid&&(this.internalEndDate=t.end):this.internalEndDate=t.start,this.validateDateRange(),this.updateInputValue("end",this.internalEndDate),this.syncFormValue();const a=this.getCalendars();return 0!==a.length&&(await Promise.all(a.map(((t,a)=>t.updateCurrentDate(this.getCalendarViewDate(a))))),this.closeDropdownAfterSelection()),this.emitValueChanged(),Promise.resolve()}componentDidLoad(){var t;this.nameSlottedFields(),this.forwardRange(!1),this.forwardDisabled(!1),this.updateInputListeners(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue(),this.host.addEventListener("focusout",this.handleFocusOut),null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("mdsCalendarHover",this.handleCalendarHover)}formDisabledCallback(t){this.formDisabled=t,t&&this.dropdownRef&&(this.dropdownRef.visible=!1)}formResetCallback(){this.clearHoverPreview(),this.internalStartDate=this.initialStartDate,this.internalEndDate=this.initialEndDate,this.visibleCalendarDate=this.resolveVisibleCalendarDate(this.initialStartDate,this.initialEndDate),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}syncExternalDate(t,a){const e=null!=a?a:"";if(this.clearHoverPreview(),"start"===t){if(e===this.internalStartDate)return;this.internalStartDate=e,this.setVisibleCalendarDate(this.internalStartDate)}else{if(e===this.internalEndDate)return;this.internalEndDate=e}this.validateDateRange(),this.updateInputValue("start",this.internalStartDate),this.updateInputValue("end",this.internalEndDate),this.checkPreselections(),this.syncFormValue()}updateInputValue(t,a){const e=this.slottedField(t);null!=e&&(this.syncingInputSlots.add(t),e.setValue(a).finally((()=>{requestAnimationFrame((()=>{this.syncingInputSlots.delete(t)}))})))}updateInputListeners(){var t,a;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="start"]'),i=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector('slot[name="end"]');this.hasPreselection=null!==this.host.querySelector("mds-input-date-range-preselection");const s=null==e?void 0:e.assignedElements()[0];null!=s&&s.addEventListener("mdsInputDateSelect",this.createFocusoutListener("start"));const r=null==i?void 0:i.assignedElements()[0];null!=r&&r.addEventListener("mdsInputDateSelect",this.createFocusoutListener("end"))}createFocusoutListener(t){return a=>{if(this.syncingInputSlots.has(t))return;const e=a;this.clearHoverPreview(),"start"===t?(this.internalStartDate=e.detail,this.setVisibleCalendarDate(this.internalStartDate)):this.internalEndDate=e.detail,this.syncFormValue()}}validateDateRange(){if(""!==this.internalStartDate&&""!==this.internalEndDate){const t=l.fromISO(this.internalStartDate);l.fromISO(this.internalEndDate)<t&&(this.internalEndDate=this.internalStartDate,this.updateInputValue("end",this.internalEndDate))}}checkPreselections(){const t=Array.from(this.host.querySelectorAll("mds-input-date-range-preselection"));null!=t&&t.forEach((t=>{t.selected=!!(t.start===this.internalStartDate&&t.end===this.internalEndDate||t.start===this.internalStartDate&&this.internalStartDate===this.internalEndDate&&void 0===t.end)}))}renderCalendarPreselectionPanel(){return this.hasPreselection?i("div",{class:"calendar-preselection-panel"},i("div",{class:c("date-preselection",this.hasPreselection&&"date-preselection--has-preselection")},i("slot",{name:"calendar-preselection"}))):null}renderSingleCalendar(){return i("div",{class:"calendar-single"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey,hideToday:this.hideToday,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}renderDualCalendars(){return i("div",{class:"calendars"},this.renderCalendarPreselectionPanel(),i("mds-calendar",Object.assign({key:this.calendarKey+"-start",hideToday:this.hideToday,hideNextButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})),i("mds-calendar",Object.assign({key:this.calendarKey+"-end",hideToday:this.hideToday,hidePreviousButton:!0,disableMonthYearSelection:!0,viewDate:this.getCalendarViewDate(1),onMdsCalendarNavigate:this.handleCalendarNavigate,onMdsCalendarChange:this.handleCalendarChange,onMdsCalendarPreselect:this.handleCalendarPreselect,startDate:this.internalStartDate,endDate:this.internalEndDate},null!==this.min&&""!==this.min?{min:this.min}:{},null!==this.max&&""!==this.max?{max:this.max}:{})))}render(){return i(s,{key:"4c5f596b9c3840f8fbb067e8c088369a96729531",onClick:this.focusDateInput,"pref-animation":p.state.animation,"pref-contrast":p.state.contrast,"pref-mode":p.state.mode,"pref-theme-scheme":p.state["theme-scheme"]},i("div",{key:"de5fb8704a474b5de3d1f3b2656fef78020a2ed5",class:"inputs"},i("div",{key:"fb583f70c11e77c51bad506283be0127d032a8b3",class:"input-element"},i("mds-text",{key:"9304321d3a994341bb534131d98cc32993885f1c",class:"date-label",typography:"detail",onClick:this.focusStartDateInput},this.t.get("from")),i("div",{key:"c43e98d87c7631118a941ab25f5c55b23ac1bc70",class:"input-wrapper"},i("slot",{key:"8228f7a7d2aa4d4ec4faa26b6d2fa373694b2d3e",name:"start"}))),i("div",{key:"38025eb3627219359b71dbf91c8f98c183847038",class:"input-element"},i("mds-text",{key:"aa00ebdb393566ef568c683a9be392d6ddb087d2",class:"date-label",typography:"detail",onClick:this.focusEndDateInput},this.t.get("to")),i("div",{key:"126dff1a593896634758affe8ea1508e17c36854",class:"input-wrapper"},i("slot",{key:"b07f781b0180ba09922729120edfb122462b11be",name:"end"})))),i("div",{key:"2e8a5daad85c6bab78a58ad31ef38209716ae197",class:"action-open-calendar-wrapper"},i("mds-button",{key:"2ec7aece92e3891fa102ddf44d503c48334e6cc4","aria-label":this.t.get("openCalendar"),class:"action-open-calendar",size:"sm"===this.size?"sm":void 0,disabled:this.isDisabled(),variant:"dark",tone:"text",icon:d,id:"calendar-dropdown",onClick:this.handleOpenCalendarClick})),i("mds-dropdown",{key:"4916bf259a32301e65c7001f2b2031eee3434fc4",ref:t=>this.dropdownRef=t,target:"#calendar-dropdown","disable-auto-placement":!0,placement:"bottom-end",role:"group"},this.dualCalendar?this.renderDualCalendars():this.renderSingleCalendar()))}syncFormValue(){var t,a,e,i;const s=null!==(a=null===(t=this.internalStartDate)||void 0===t?void 0:t.trim())&&void 0!==a?a:"",r=null!==(i=null===(e=this.internalEndDate)||void 0===e?void 0:e.trim())&&void 0!==i?i:"";o(this.internals,""!==s||""!==r?JSON.stringify({startDate:s,endDate:r}):null)}static get formAssociated(){return!0}get host(){return this}static get watchers(){return{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-calendar,mds-dropdown,mds-text):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-input-date-range-height:calc(var(--spacing,.0025rem)*1200);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*400);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1200);--mds-input-date-range-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-input-date-range-calendar-width:calc(var(--spacing,.0025rem)*8800);--mds-input-date-range-fields-firefox-justify-content:start;--mds-input-date-range-fields-gap:0 calc(var(--spacing,.0025rem)*200);--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-ring:0 0 0 1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1);--mds-input-date-range-shadow:0 1px calc(var(--spacing,.0025rem)*75) 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 1px calc(var(--spacing,.0025rem)*50) 0 rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);--mds-input-date-range-transition-duration:var(--duration-300,.3s);--private-input-date-range-transition-duration:var(--mds-input-date-range-transition-duration);font-family:var(--font-info,Karla,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);font-size:var(--text-size-info-detail,1rem);font-weight:var(--tw-font-weight,var(--text-size-info-detail--font-weight,400));line-height:var(--tw-leading,var(--text-size-info-detail--line-height,1.5rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:min(var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)),var(--magma-corner-cap,.5) * var(--private-input-date-range-height));color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));corner-shape:var(--magma-corner-shape,squircle);container-type:inline-size;cursor:text;display:flex;gap:calc(var(--spacing,.0025rem)*200);overflow:visible;position:relative;--mds-input-date-range-icon-color:rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231)));--mds-input-date-range-variant-color-rgb:0 0 0}.date-preselection{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.inputs{font-family:var(--font-code,"Roboto Mono","Courier New",monospace);font-size:var(--text-size-code-hack,.875rem);font-weight:var(--tw-font-weight,var(--text-size-code-hack--font-weight,400));line-height:var(--tw-leading,var(--text-size-code-hack--line-height,1.25rem));min-height:auto;text-box:trim-both text;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--mds-input-date-range-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:inherit;box-shadow:var(--mds-input-date-range-ring),var(--mds-input-date-range-shadow);box-sizing:border-box;color:inherit;corner-shape:inherit;align-items:center;border:0;display:inline-flex;flex-wrap:wrap;gap:var(--mds-input-date-range-fields-gap,0 calc(var(--spacing,.0025rem)*200));margin:0;min-height:var(--private-input-date-range-height);overflow:hidden;padding-left:var(--private-input-date-range-padding-inline);padding-right:var(--private-input-date-range-calendar-area);text-overflow:ellipsis;transition-duration:var(--private-input-date-range-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,margin,opacity,padding,transform;transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));width:100%}.input-element{align-items:baseline;display:inline-flex}:host(:focus-within) .inputs{--tw-outline-style:none;outline-style:none;transition-duration:var(--default-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,rotate,scale,transform,translate,width;transition-timing-function:var(--default-transition-timing-function);--mds-input-date-range-ring:0 0 0 calc(var(--spacing,.0025rem)*75) rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/1);--mds-input-date-range-shadow:0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*150) calc(var(--spacing,.0025rem)*75) rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.1),0 calc(var(--spacing,.0025rem)*50) calc(var(--spacing,.0025rem)*100) -1px rgb(var(--mds-input-date-range-variant-color-rgb,0 0 0)/.06);transition-duration:var(--duration-300,.3s);transition-timing-function:var(--ease-out-expo,cubic-bezier(.19,1,.22,1))}.input-wrapper{display:flex;flex-shrink:0}:host ::slotted(mds-input-date){color:inherit}.date-label{margin-left:calc(var(--spacing,.0025rem)*50);margin-right:calc(var(--spacing,.0025rem)*50);min-width:min-content;white-space:nowrap}.date-label:first-child{margin-left:0}.calendars{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}.calendar-preselection-panel{align-content:start;background-color:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));border-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));box-sizing:border-box;display:grid;min-inline-size:max-content;padding:calc(var(--spacing,.0025rem)*400)}.calendar-single{display:flex;flex-wrap:nowrap;gap:calc(var(--spacing,.0025rem)*200);min-width:max-content}:is(.calendar-single,.calendars) mds-calendar{flex:0 0 var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));max-inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800));min-inline-size:var(--mds-input-date-range-calendar-width,calc(var(--spacing,.0025rem)*8800))}.action-open-calendar-wrapper{align-items:center;aspect-ratio:1;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0}.action-open-calendar{--mds-button-color:var(--mds-input-date-range-icon-color,rgb(var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))));align-self:center}mds-dropdown{padding:0}:host(:disabled:not([disabled=false])),:host([disabled]:not([disabled=false])){color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));cursor:default}:host(:disabled:not([disabled=false])) .inputs,:host([disabled]:not([disabled=false])) .inputs{background-color:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([size=md]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*900);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*300);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*1000)}:host([size=sm]){--private-input-date-range-height:calc(var(--spacing,.0025rem)*700);--private-input-date-range-padding-inline:calc(var(--spacing,.0025rem)*200);--private-input-date-range-calendar-area:calc(var(--spacing,.0025rem)*800)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-input-date-range-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}:host([pref-contrast=more]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([pref-contrast=more]) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}@supports ((-moz-appearance:none)){.action-open-calendar{display:none}.inputs{justify-content:var(--mds-input-date-range-fields-firefox-justify-content,start);padding-right:calc(var(--spacing,.0025rem)*400)}}:host(:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-emphasis,var(--variant-primary-04,36 103 231))}:host([variant=ai]){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245)));--mds-input-tip-background:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=ai]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-input-date-range-variant-color-rgb:var(--magma-accent-ai-emphasis,var(--variant-ai-04,126 73 245))}:host([variant=info]){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-tip-background:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=info]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-input-date-range-variant-color-rgb:var(--magma-info-emphasis,var(--status-info-04,0 119 164))}:host([variant=success]){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-tip-background:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=success]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-input-date-range-variant-color-rgb:var(--magma-success-emphasis,var(--status-success-04,0 128 57))}:host([variant=warning]){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-tip-background:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=warning]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-input-date-range-variant-color-rgb:var(--magma-warning-emphasis,var(--status-warning-04,142 106 0))}:host([variant=error]){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-tip-background:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:0 0 0}:host([variant=error]:focus-within){--mds-input-date-range-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-input-date-range-variant-color-rgb:var(--magma-danger-emphasis,var(--status-error-04,196 64 65))}@media (forced-colors:active){:host(:focus-within) .inputs{outline:2px solid #0000;outline-offset:2px}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-input-date-range-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-input-date-range-ring:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .counter-button:hover{--mds-button-background:rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208)))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-input-date-range-ring:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6));--mds-input-date-range-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .input::placeholder{color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}}'}},[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]},void 0,{startDate:[{handleStartDateChange:0}],endDate:[{handleEndDateChange:0}],min:[{handleRangeChange:0}],max:[{handleRangeChange:0}],disabled:[{handleDisabledChange:0}]}]),j=k,z=function(){"undefined"!=typeof customElements&&["mds-input-date-range","mds-button","mds-calendar","mds-calendar-cell","mds-dropdown","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-input-date-range":customElements.get(r(t))||customElements.define(r(t),k);break;case"mds-button":customElements.get(r(t))||g();break;case"mds-calendar":customElements.get(r(t))||h();break;case"mds-calendar-cell":customElements.get(r(t))||u();break;case"mds-dropdown":customElements.get(r(t))||v();break;case"mds-icon":customElements.get(r(t))||f();break;case"mds-spinner":customElements.get(r(t))||b();break;case"mds-text":customElements.get(r(t))||w()}}))};export{j as MdsInputDateRange,z as defineCustomElement}