@ebrains/components 0.3.0-alpha.0 → 0.5.0-alpha.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 (550) hide show
  1. package/dist/cjs/analytics-223ea8e5.js +51 -0
  2. package/dist/cjs/color-c00146a8.js +134 -0
  3. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  4. package/dist/cjs/components.cjs.js +1 -1
  5. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  6. package/dist/cjs/eds-accordion.cjs.entry.js +11 -20
  7. package/dist/cjs/{eds-avatar_17.cjs.entry.js → eds-alert_17.cjs.entry.js} +310 -372
  8. package/dist/cjs/{eds-card-desc_3.cjs.entry.js → eds-avatar_4.cjs.entry.js} +73 -3
  9. package/dist/cjs/eds-card-generic.cjs.entry.js +4 -5
  10. package/dist/cjs/eds-card-project.cjs.entry.js +4 -3
  11. package/dist/cjs/eds-card-section.cjs.entry.js +3 -3
  12. package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-card-tool.cjs.entry.js +3 -4
  14. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-code-block.cjs.entry.js +49 -2
  16. package/dist/cjs/eds-components-section.cjs.entry.js +7 -3
  17. package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
  18. package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-dropdown_2.cjs.entry.js +158 -0
  20. package/dist/cjs/eds-form.cjs.entry.js +62 -23
  21. package/dist/cjs/eds-frame.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
  24. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
  28. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
  30. package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
  31. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  32. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  33. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  34. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  35. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  36. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  37. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  40. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  42. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  43. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-input_7.cjs.entry.js +18 -10
  45. package/dist/cjs/eds-login.cjs.entry.js +60 -41
  46. package/dist/cjs/eds-logo-variations.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-matomo-notice.cjs.entry.js +2 -3
  48. package/dist/cjs/eds-modal.cjs.entry.js +49 -38
  49. package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
  50. package/dist/cjs/eds-pagination_2.cjs.entry.js +34 -17
  51. package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
  52. package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
  53. package/dist/cjs/eds-svg-repository.cjs.entry.js +1 -1
  54. package/dist/cjs/eds-tab.cjs.entry.js +1 -1
  55. package/dist/cjs/eds-tabs-content.cjs.entry.js +4 -4
  56. package/dist/cjs/eds-tabs.cjs.entry.js +3 -3
  57. package/dist/cjs/eds-timeline.cjs.entry.js +3 -2
  58. package/dist/cjs/eds-tooltip.cjs.entry.js +10 -1
  59. package/dist/cjs/eds-trl.cjs.entry.js +7 -8
  60. package/dist/cjs/eds-user.cjs.entry.js +99 -0
  61. package/dist/cjs/eds-vertical-stepper.cjs.entry.js +45 -0
  62. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  63. package/dist/cjs/index-f08e4f5c.js +16 -12
  64. package/dist/cjs/{keycloak-5aaa21af.js → keycloak-93fc0315.js} +225 -170
  65. package/dist/cjs/loader.cjs.js +1 -1
  66. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  67. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
  68. package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
  69. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  70. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  71. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  72. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  73. package/dist/collection/collection-manifest.json +5 -2
  74. package/dist/collection/components/eds-accordion/eds-accordion.js +11 -20
  75. package/dist/collection/components/eds-alert/eds-alert.js +9 -8
  76. package/dist/collection/components/eds-alert/eds-alert.stories.js +4 -4
  77. package/dist/collection/components/eds-avatar/eds-avatar.js +8 -6
  78. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +24 -22
  79. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  80. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +23 -28
  81. package/dist/collection/components/eds-button/eds-button.js +20 -25
  82. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +9 -1
  83. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  84. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  85. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
  86. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +15 -9
  87. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +1 -1
  88. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +3 -2
  89. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +2 -2
  90. package/dist/collection/components/eds-code-block/eds-code-block.js +58 -3
  91. package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
  92. package/dist/collection/components/eds-dropdown/eds-dropdown.js +11 -21
  93. package/dist/collection/components/eds-form/eds-form.js +71 -45
  94. package/dist/collection/components/eds-form/eds-form.stories.js +0 -3
  95. package/dist/collection/components/eds-frame/eds-frame.js +1 -1
  96. package/dist/collection/components/eds-frame/eds-frame.stories.js +19 -18
  97. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
  98. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
  99. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
  100. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
  101. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
  102. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
  103. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  104. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  105. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  106. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  107. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  108. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  109. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  110. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  111. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  112. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  113. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  114. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  115. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  116. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  117. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  118. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  119. package/dist/collection/components/eds-img/eds-img.js +13 -7
  120. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  121. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  122. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  123. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +2 -2
  124. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  125. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +14 -2
  126. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  127. package/dist/collection/components/eds-link/eds-link.js +8 -6
  128. package/dist/collection/components/eds-logo/eds-logo.js +21 -2
  129. package/dist/collection/components/eds-modal/eds-modal.css +16 -0
  130. package/dist/collection/components/eds-modal/eds-modal.js +75 -38
  131. package/dist/collection/components/eds-modal/eds-modal.stories.js +34 -18
  132. package/dist/collection/components/eds-navigator/eds-navigator.js +1 -1
  133. package/dist/collection/components/eds-pagination/eds-pagination.js +13 -9
  134. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  135. package/dist/collection/components/eds-rating/eds-rating.css +48 -0
  136. package/dist/collection/components/eds-rating/eds-rating.js +14 -14
  137. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  138. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +12 -11
  139. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  140. package/dist/collection/components/eds-steps/eds-steps.css +71 -0
  141. package/dist/collection/components/eds-steps/eds-steps.js +132 -0
  142. package/dist/collection/components/eds-steps/eds-steps.stories.js +35 -0
  143. package/dist/collection/components/eds-steps/eds-vertical-stepper.css +78 -0
  144. package/dist/collection/components/eds-steps/eds-vertical-stepper.js +72 -0
  145. package/dist/collection/components/eds-switch/eds-switch.css +59 -0
  146. package/dist/collection/components/eds-switch/eds-switch.js +131 -0
  147. package/dist/collection/components/eds-switch/eds-switch.stories.js +38 -0
  148. package/dist/collection/components/eds-tab/eds-tab.js +1 -1
  149. package/dist/collection/components/eds-table/eds-table.js +21 -8
  150. package/dist/collection/components/eds-tag/eds-tag.js +22 -1
  151. package/dist/collection/components/eds-timeline/eds-timeline.js +3 -2
  152. package/dist/collection/components/eds-toast/eds-toast.js +22 -1
  153. package/dist/collection/components/eds-tooltip/eds-tooltip.js +10 -1
  154. package/dist/collection/components/eds-trl/eds-trl.js +7 -8
  155. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  156. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  157. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  158. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  159. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  160. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  161. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  162. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  163. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  164. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  165. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  166. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  167. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  168. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  169. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +1 -1
  170. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  171. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  172. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +1 -1
  173. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +1 -1
  174. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  175. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  176. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  177. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  178. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  179. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  180. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +14 -7
  181. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +8 -39
  182. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  183. package/dist/collection/shared-ui/eds-header/eds-header.js +2 -75
  184. package/dist/collection/shared-ui/eds-login/eds-login.js +66 -58
  185. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +1 -1
  186. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  187. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
  188. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +3 -3
  189. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  190. package/dist/collection/shared-ui/eds-user/eds-user.js +27 -24
  191. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
  192. package/dist/collection/utils/analytics.js +85 -0
  193. package/dist/collection/utils/color.js +129 -0
  194. package/dist/collection/utils/global.js +8 -0
  195. package/dist/collection/utils/keycloak.js +11 -5
  196. package/dist/components/analytics.js +6 -1
  197. package/dist/components/color.js +0 -164
  198. package/dist/components/components.css +63 -0
  199. package/dist/components/components.esm.js +1 -1
  200. package/dist/components/correct-use-of-colors.js +1 -1
  201. package/dist/components/eds-accordion2.js +11 -20
  202. package/dist/components/eds-alert2.js +9 -8
  203. package/dist/components/eds-avatar2.js +3 -3
  204. package/dist/components/eds-block-break2.js +1 -1
  205. package/dist/components/eds-breadcrumb.js +23 -28
  206. package/dist/components/eds-button2.js +16 -14
  207. package/dist/components/eds-card-desc2.js +1 -1
  208. package/dist/components/eds-card-generic2.js +3 -4
  209. package/dist/components/eds-card-project.js +2 -2
  210. package/dist/components/eds-card-section.js +3 -3
  211. package/dist/components/eds-card-tags.js +1 -1
  212. package/dist/components/eds-card-title2.js +1 -1
  213. package/dist/components/eds-card-tool.js +1 -2
  214. package/dist/components/eds-card-wrapper.js +1 -1
  215. package/dist/components/eds-code-block2.js +49 -2
  216. package/dist/components/eds-components-section.js +7 -3
  217. package/dist/components/eds-docs-palettes.js +1 -1
  218. package/dist/components/eds-docs-tokens.js +1 -1
  219. package/dist/components/eds-dropdown2.js +11 -21
  220. package/dist/components/eds-footer2.js +1 -1
  221. package/dist/components/eds-form.js +67 -26
  222. package/dist/components/eds-frame.js +1 -1
  223. package/dist/components/eds-header.js +10 -48
  224. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  225. package/dist/components/eds-icon-arrow-right.js +1 -1
  226. package/dist/components/eds-icon-bluesky.js +1 -1
  227. package/dist/components/eds-icon-chevron-down.js +1 -1
  228. package/dist/components/eds-icon-chevron-left.js +1 -1
  229. package/dist/components/eds-icon-chevron-right.js +1 -1
  230. package/dist/components/eds-icon-chevron-up.js +1 -1
  231. package/dist/components/eds-icon-close.js +1 -1
  232. package/dist/components/eds-icon-copy.js +1 -1
  233. package/dist/components/eds-icon-eu.js +1 -1
  234. package/dist/components/eds-icon-facebook.js +1 -1
  235. package/dist/components/eds-icon-gitlab.js +1 -1
  236. package/dist/components/eds-icon-linkedin.js +1 -1
  237. package/dist/components/eds-icon-loader.js +1 -1
  238. package/dist/components/eds-icon-mastodon.js +1 -1
  239. package/dist/components/eds-icon-menu.js +1 -1
  240. package/dist/components/eds-icon-more.js +1 -1
  241. package/dist/components/eds-icon-search.js +1 -1
  242. package/dist/components/eds-icon-success.js +1 -1
  243. package/dist/components/eds-icon-twitter.js +1 -1
  244. package/dist/components/eds-icon-user.js +1 -1
  245. package/dist/components/eds-icon-youtube.js +1 -1
  246. package/dist/components/eds-img2.js +9 -4
  247. package/dist/components/eds-input-field2.js +2 -2
  248. package/dist/components/eds-input-footer2.js +1 -1
  249. package/dist/components/eds-input-label2.js +1 -1
  250. package/dist/components/eds-input-range2.js +2 -2
  251. package/dist/components/eds-input-search2.js +1 -1
  252. package/dist/components/eds-input-select2.js +11 -2
  253. package/dist/components/eds-input2.js +2 -2
  254. package/dist/components/eds-link2.js +7 -6
  255. package/dist/components/eds-login.js +60 -41
  256. package/dist/components/eds-logo-variations.js +1 -1
  257. package/dist/components/eds-logo2.js +4 -3
  258. package/dist/components/eds-matomo-notice.js +0 -1
  259. package/dist/components/eds-modal.js +51 -39
  260. package/dist/components/eds-navigator.js +1 -1
  261. package/dist/components/eds-pagination2.js +13 -9
  262. package/dist/components/eds-progress-bar2.js +1 -1
  263. package/dist/components/eds-rating.js +25 -13
  264. package/dist/components/eds-section-core2.js +1 -1
  265. package/dist/components/eds-section-heading2.js +2 -2
  266. package/dist/components/eds-social-networks2.js +1 -1
  267. package/dist/components/eds-steps.d.ts +11 -0
  268. package/dist/components/eds-steps.js +106 -0
  269. package/dist/components/eds-svg-repository.js +1 -1
  270. package/dist/components/eds-switch.d.ts +11 -0
  271. package/dist/components/eds-switch.js +57 -0
  272. package/dist/components/eds-tab2.js +1 -1
  273. package/dist/components/eds-table2.js +21 -8
  274. package/dist/components/eds-tabs-content.js +2 -3
  275. package/dist/components/eds-tabs.js +1 -2
  276. package/dist/components/eds-tag2.js +5 -1
  277. package/dist/components/eds-timeline.js +3 -2
  278. package/dist/components/eds-toast-manager.js +1 -1
  279. package/dist/components/eds-toast2.js +22 -1
  280. package/dist/components/eds-tooltip.js +10 -1
  281. package/dist/components/eds-trl.js +7 -8
  282. package/dist/components/eds-user-modal2.js +1 -1
  283. package/dist/components/eds-user.js +157 -1
  284. package/dist/components/eds-vertical-stepper.d.ts +11 -0
  285. package/dist/components/eds-vertical-stepper.js +86 -0
  286. package/dist/components/incorrect-use-of-colors.js +1 -1
  287. package/dist/components/keycloak.js +225 -170
  288. package/dist/components/logo-space.js +1 -1
  289. package/dist/components/logo-variations-horizontal2.js +1 -1
  290. package/dist/components/logo-variations-vertical2.js +1 -1
  291. package/dist/components/logo-wrong-usage.js +1 -1
  292. package/dist/components/p-030f67c1.entry.js +1 -0
  293. package/dist/components/{p-32f282a9.entry.js → p-06299762.entry.js} +1 -1
  294. package/dist/components/p-0ab85eee.entry.js +1 -0
  295. package/dist/components/p-0bafc5ae.entry.js +1 -0
  296. package/dist/components/p-0e0e1815.entry.js +1 -0
  297. package/dist/components/p-0e7bdd2c.entry.js +1 -0
  298. package/dist/components/p-1ed3fdb7.entry.js +1 -0
  299. package/dist/components/p-209fa119.entry.js +1 -0
  300. package/dist/components/p-2831a9d5.entry.js +1 -0
  301. package/dist/components/p-2c00bd76.entry.js +1 -0
  302. package/dist/components/p-38d70586.entry.js +1 -0
  303. package/dist/components/p-3babd772.entry.js +1 -0
  304. package/dist/components/p-4a12a131.entry.js +1 -0
  305. package/dist/components/p-505ddcda.entry.js +1 -0
  306. package/dist/components/{p-52ac3456.entry.js → p-59405ecf.entry.js} +1 -1
  307. package/dist/components/p-5980a142.entry.js +1 -0
  308. package/dist/components/p-599c7b97.entry.js +1 -0
  309. package/dist/components/{p-22762818.entry.js → p-65703520.entry.js} +1 -1
  310. package/dist/components/p-6af40c33.entry.js +1 -0
  311. package/dist/components/p-6df9db15.entry.js +1 -0
  312. package/dist/components/p-72b42d77.entry.js +1 -0
  313. package/dist/components/p-75795b05.entry.js +1 -0
  314. package/dist/components/{p-435a14c1.entry.js → p-759b2640.entry.js} +1 -1
  315. package/dist/components/p-80a185ba.entry.js +1 -0
  316. package/dist/components/p-81942665.entry.js +1 -0
  317. package/dist/components/p-86fbc239.entry.js +1 -0
  318. package/dist/components/p-89227919.js +1 -0
  319. package/dist/components/{p-6fc62452.entry.js → p-89f600a3.entry.js} +1 -1
  320. package/dist/components/{p-2e8459ef.entry.js → p-8b583210.entry.js} +1 -1
  321. package/dist/components/p-8c4a0fc9.entry.js +1 -0
  322. package/dist/components/p-8d19a05b.entry.js +1 -0
  323. package/dist/components/p-8eab748d.js +1 -0
  324. package/dist/components/p-911d9b37.entry.js +1 -0
  325. package/dist/components/p-92e16cc9.entry.js +1 -0
  326. package/dist/components/p-96fe2267.entry.js +1 -0
  327. package/dist/components/p-9739def5.entry.js +1 -0
  328. package/dist/components/p-9826acae.entry.js +1 -0
  329. package/dist/components/{p-87830085.entry.js → p-9b441a1f.entry.js} +1 -1
  330. package/dist/components/p-a2621d66.entry.js +1 -0
  331. package/dist/components/p-a535838c.entry.js +1 -0
  332. package/dist/components/p-a5b7d72d.entry.js +1 -0
  333. package/dist/components/p-a5d00633.entry.js +1 -0
  334. package/dist/components/p-a63bd0c9.entry.js +1 -0
  335. package/dist/components/{p-762c8c83.entry.js → p-a846dbca.entry.js} +1 -1
  336. package/dist/components/p-a927a455.entry.js +1 -0
  337. package/dist/components/p-aec9b8e1.entry.js +1 -0
  338. package/dist/components/{p-e6bfbf51.entry.js → p-b1af5000.entry.js} +2 -2
  339. package/dist/components/{p-d571d530.entry.js → p-b1de9a6c.entry.js} +1 -1
  340. package/dist/components/{p-0910d733.entry.js → p-b3c1aef5.entry.js} +1 -1
  341. package/dist/components/p-b60ed774.entry.js +1 -0
  342. package/dist/components/p-b67aafe7.entry.js +1 -0
  343. package/dist/components/p-b79999d5.entry.js +1 -0
  344. package/dist/components/{p-02e2a62f.entry.js → p-b80457ed.entry.js} +1 -1
  345. package/dist/components/p-b860b4aa.entry.js +1 -0
  346. package/dist/components/p-c034c395.entry.js +1 -0
  347. package/dist/components/p-c5fa170d.entry.js +1 -0
  348. package/dist/components/p-d69ef196.entry.js +1 -0
  349. package/dist/components/p-de12396f.entry.js +1 -0
  350. package/dist/components/p-de2fbcfc.entry.js +1 -0
  351. package/dist/components/p-def72462.entry.js +1 -0
  352. package/dist/components/p-e2c250c5.entry.js +1 -0
  353. package/dist/components/p-eb0b93d5.js +1 -0
  354. package/dist/components/p-eeeb0d83.entry.js +1 -0
  355. package/dist/components/p-f08eac56.entry.js +1 -0
  356. package/dist/components/p-f1cd83da.entry.js +1 -0
  357. package/dist/components/{p-22e6d7d5.entry.js → p-f36f2aeb.entry.js} +1 -1
  358. package/dist/components/p-f5dafbc8.entry.js +1 -0
  359. package/dist/components/p-f7493f41.entry.js +1 -0
  360. package/dist/components/p-fce25541.entry.js +1 -0
  361. package/dist/components/primary.js +1 -1
  362. package/dist/components/primary2.js +1 -1
  363. package/dist/components/secondary.js +1 -1
  364. package/dist/components/secondary2.js +7 -7
  365. package/dist/components/support.js +1 -1
  366. package/dist/components/support2.js +3 -3
  367. package/dist/components/token-list2.js +1 -1
  368. package/dist/components/token-radii2.js +1 -1
  369. package/dist/components/token-ratios.js +1 -1
  370. package/dist/components/token-shadows2.js +1 -1
  371. package/dist/components/token-spacing.js +1 -1
  372. package/dist/components/token-typography.js +1 -1
  373. package/dist/esm/analytics-1cde8e4a.js +48 -0
  374. package/dist/esm/color-2554aad6.js +132 -0
  375. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  376. package/dist/esm/components.js +1 -1
  377. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  378. package/dist/esm/eds-accordion.entry.js +11 -20
  379. package/dist/esm/{eds-avatar_17.entry.js → eds-alert_17.entry.js} +304 -366
  380. package/dist/esm/{eds-card-desc_3.entry.js → eds-avatar_4.entry.js} +73 -4
  381. package/dist/esm/eds-card-generic.entry.js +3 -4
  382. package/dist/esm/eds-card-project.entry.js +3 -2
  383. package/dist/esm/eds-card-section.entry.js +3 -3
  384. package/dist/esm/eds-card-tags.entry.js +1 -1
  385. package/dist/esm/eds-card-tool.entry.js +2 -3
  386. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  387. package/dist/esm/eds-code-block.entry.js +50 -3
  388. package/dist/esm/eds-components-section.entry.js +7 -3
  389. package/dist/esm/eds-docs-palettes.entry.js +1 -1
  390. package/dist/esm/eds-docs-tokens.entry.js +1 -1
  391. package/dist/esm/eds-dropdown_2.entry.js +153 -0
  392. package/dist/esm/eds-form.entry.js +62 -23
  393. package/dist/esm/eds-frame.entry.js +1 -1
  394. package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
  395. package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
  396. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  397. package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
  398. package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
  399. package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
  400. package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
  401. package/dist/esm/eds-icon-close.entry.js +1 -1
  402. package/dist/esm/eds-icon-copy.entry.js +1 -1
  403. package/dist/esm/eds-icon-eu.entry.js +1 -1
  404. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  405. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  406. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  407. package/dist/esm/eds-icon-loader.entry.js +1 -1
  408. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  409. package/dist/esm/eds-icon-menu.entry.js +1 -1
  410. package/dist/esm/eds-icon-more.entry.js +1 -1
  411. package/dist/esm/eds-icon-search.entry.js +1 -1
  412. package/dist/esm/eds-icon-success.entry.js +1 -1
  413. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  414. package/dist/esm/eds-icon-user.entry.js +1 -1
  415. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  416. package/dist/esm/eds-input_7.entry.js +18 -10
  417. package/dist/esm/eds-login.entry.js +60 -41
  418. package/dist/esm/eds-logo-variations.entry.js +1 -1
  419. package/dist/esm/eds-matomo-notice.entry.js +1 -2
  420. package/dist/esm/eds-modal.entry.js +49 -38
  421. package/dist/esm/eds-navigator.entry.js +1 -1
  422. package/dist/esm/eds-pagination_2.entry.js +34 -17
  423. package/dist/esm/eds-progress-bar.entry.js +1 -1
  424. package/dist/esm/eds-section-core_2.entry.js +3 -3
  425. package/dist/esm/eds-svg-repository.entry.js +1 -1
  426. package/dist/esm/eds-tab.entry.js +1 -1
  427. package/dist/esm/eds-tabs-content.entry.js +3 -3
  428. package/dist/esm/eds-tabs.entry.js +2 -2
  429. package/dist/esm/eds-timeline.entry.js +3 -2
  430. package/dist/esm/eds-tooltip.entry.js +10 -1
  431. package/dist/esm/eds-trl.entry.js +7 -8
  432. package/dist/esm/eds-user.entry.js +95 -0
  433. package/dist/esm/eds-vertical-stepper.entry.js +41 -0
  434. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  435. package/dist/esm/index-e96badea.js +16 -12
  436. package/dist/esm/{keycloak-13893af6.js → keycloak-d502ec16.js} +225 -170
  437. package/dist/esm/loader.js +1 -1
  438. package/dist/esm/logo-space.entry.js +1 -1
  439. package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
  440. package/dist/esm/logo-wrong-usage.entry.js +1 -1
  441. package/dist/esm/token-list_3.entry.js +3 -3
  442. package/dist/esm/token-ratios.entry.js +1 -1
  443. package/dist/esm/token-spacing.entry.js +1 -1
  444. package/dist/esm/token-typography.entry.js +1 -1
  445. package/dist/hydrate/index.js +992 -763
  446. package/dist/hydrate/index.mjs +992 -763
  447. package/dist/types/components/eds-accordion/eds-accordion.d.ts +5 -12
  448. package/dist/types/components/eds-alert/eds-alert.d.ts +1 -1
  449. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +0 -18
  450. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +9 -8
  451. package/dist/types/components/eds-button/eds-button.d.ts +2 -3
  452. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +8 -0
  453. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +6 -2
  454. package/dist/types/components/eds-code-block/eds-code-block.d.ts +43 -3
  455. package/dist/types/components/eds-code-block/eds-code-block.stories.d.ts +54 -0
  456. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +0 -7
  457. package/dist/types/components/eds-form/eds-form.d.ts +3 -7
  458. package/dist/types/components/eds-form/eds-form.stories.d.ts +0 -5
  459. package/dist/types/components/eds-frame/eds-frame.stories.d.ts +0 -2
  460. package/dist/types/components/eds-img/eds-img.d.ts +3 -1
  461. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +9 -0
  462. package/dist/types/components/eds-link/eds-link.d.ts +1 -1
  463. package/dist/types/components/eds-logo/eds-logo.d.ts +1 -0
  464. package/dist/types/components/eds-modal/eds-modal.d.ts +20 -10
  465. package/dist/types/components/eds-modal/eds-modal.stories.d.ts +9 -0
  466. package/dist/types/components/eds-rating/eds-rating.d.ts +4 -7
  467. package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +0 -1
  468. package/dist/types/components/eds-steps/eds-steps.d.ts +39 -0
  469. package/dist/types/components/eds-steps/eds-steps.stories.d.ts +34 -0
  470. package/dist/types/components/eds-steps/eds-vertical-stepper.d.ts +22 -0
  471. package/dist/types/components/eds-switch/eds-switch.d.ts +25 -0
  472. package/dist/types/components/eds-switch/eds-switch.stories.d.ts +32 -0
  473. package/dist/types/components/eds-table/eds-table.d.ts +5 -5
  474. package/dist/types/components/eds-tag/eds-tag.d.ts +5 -0
  475. package/dist/types/components/eds-toast/eds-toast.d.ts +9 -0
  476. package/dist/types/components.d.ts +227 -164
  477. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +28 -6
  478. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +42 -21
  479. package/dist/types/shared-ui/eds-header/eds-header.d.ts +0 -20
  480. package/dist/types/shared-ui/eds-login/eds-login.d.ts +21 -18
  481. package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -5
  482. package/dist/types/utils/global.d.ts +1 -0
  483. package/dist/types/utils/keycloak.d.ts +2 -2
  484. package/package.json +1 -1
  485. package/dist/cjs/color-3ffe3072.js +0 -342
  486. package/dist/cjs/eds-alert.cjs.entry.js +0 -96
  487. package/dist/cjs/eds-rating.cjs.entry.js +0 -58
  488. package/dist/components/eds-user2.js +0 -156
  489. package/dist/components/p-005de86f.entry.js +0 -1
  490. package/dist/components/p-0c2e844e.entry.js +0 -1
  491. package/dist/components/p-145f13ad.entry.js +0 -1
  492. package/dist/components/p-16458a81.entry.js +0 -1
  493. package/dist/components/p-2851ff44.entry.js +0 -1
  494. package/dist/components/p-29648b47.entry.js +0 -1
  495. package/dist/components/p-297b2bc3.entry.js +0 -1
  496. package/dist/components/p-32cddd94.entry.js +0 -1
  497. package/dist/components/p-3617841d.entry.js +0 -1
  498. package/dist/components/p-373673ca.js +0 -1
  499. package/dist/components/p-388b4966.entry.js +0 -1
  500. package/dist/components/p-3ff76976.entry.js +0 -1
  501. package/dist/components/p-4037ad48.entry.js +0 -1
  502. package/dist/components/p-42b4ecff.entry.js +0 -1
  503. package/dist/components/p-490ba155.entry.js +0 -1
  504. package/dist/components/p-4932aab2.entry.js +0 -1
  505. package/dist/components/p-4a24c2ce.entry.js +0 -1
  506. package/dist/components/p-54c75346.entry.js +0 -1
  507. package/dist/components/p-57c964c5.entry.js +0 -1
  508. package/dist/components/p-5a43503a.entry.js +0 -1
  509. package/dist/components/p-5aad9d3f.entry.js +0 -1
  510. package/dist/components/p-5afb626c.entry.js +0 -1
  511. package/dist/components/p-5d7af761.entry.js +0 -1
  512. package/dist/components/p-5fc68438.entry.js +0 -1
  513. package/dist/components/p-6378fb3e.entry.js +0 -1
  514. package/dist/components/p-673dce11.entry.js +0 -1
  515. package/dist/components/p-7215789a.entry.js +0 -1
  516. package/dist/components/p-73bd0c97.entry.js +0 -1
  517. package/dist/components/p-7802e966.entry.js +0 -1
  518. package/dist/components/p-79887c2c.entry.js +0 -1
  519. package/dist/components/p-846fc91c.entry.js +0 -1
  520. package/dist/components/p-84957b6d.entry.js +0 -1
  521. package/dist/components/p-8c56e39a.entry.js +0 -1
  522. package/dist/components/p-96c4deda.entry.js +0 -1
  523. package/dist/components/p-a44a1abe.entry.js +0 -1
  524. package/dist/components/p-a4e9b68b.entry.js +0 -1
  525. package/dist/components/p-ac0112d5.entry.js +0 -1
  526. package/dist/components/p-acb16e1c.entry.js +0 -1
  527. package/dist/components/p-ae5dbd41.entry.js +0 -1
  528. package/dist/components/p-bdd86a3c.entry.js +0 -1
  529. package/dist/components/p-be6c80da.entry.js +0 -1
  530. package/dist/components/p-bf0f851d.entry.js +0 -1
  531. package/dist/components/p-c2d369bc.entry.js +0 -1
  532. package/dist/components/p-c9c417de.js +0 -1
  533. package/dist/components/p-d1670eec.entry.js +0 -1
  534. package/dist/components/p-d1f6a722.entry.js +0 -1
  535. package/dist/components/p-d53b7a75.entry.js +0 -1
  536. package/dist/components/p-d6d86366.entry.js +0 -1
  537. package/dist/components/p-d7a92efb.entry.js +0 -1
  538. package/dist/components/p-d9788b54.entry.js +0 -1
  539. package/dist/components/p-e20ed2c7.entry.js +0 -1
  540. package/dist/components/p-e74834bc.entry.js +0 -1
  541. package/dist/components/p-f7a6ce69.entry.js +0 -1
  542. package/dist/components/p-fd27e56c.entry.js +0 -1
  543. package/dist/esm/color-0ba8ed56.js +0 -338
  544. package/dist/esm/eds-alert.entry.js +0 -92
  545. package/dist/esm/eds-rating.entry.js +0 -54
  546. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/index.d.ts +0 -3
  547. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/keycloak.d.ts +0 -30
  548. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/render.d.ts +0 -8
  549. /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/analytics.d.ts +0 -0
  550. /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/color.d.ts +0 -0
@@ -2305,7 +2305,7 @@ class ColorPrimaryPalette {
2305
2305
  ];
2306
2306
  }
2307
2307
  render() {
2308
- return (hAsync("ul", { key: '581f0978ebeda33a156d2baf3cc41a10897da1cf', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
2308
+ return (hAsync("ul", { key: 'b9b1f4d9c692d3b6f80dd5e50f7c840ed2dd6139', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
2309
2309
  }
2310
2310
  static get cmpMeta() { return {
2311
2311
  "$flags$": 0,
@@ -2377,7 +2377,7 @@ class ColorSecondaryPalette {
2377
2377
  this.show = undefined;
2378
2378
  }
2379
2379
  render() {
2380
- return (hAsync("ul", { key: '7f2e8e7efa207bedaa1e19c0f7d87459a5c22693', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
2380
+ return (hAsync("ul", { key: 'f3b7eccec4f67008e8ed73c1a0ff23a542e3c516', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
2381
2381
  }
2382
2382
  static get cmpMeta() { return {
2383
2383
  "$flags$": 0,
@@ -2442,7 +2442,7 @@ class ColorSupportPalette {
2442
2442
  ];
2443
2443
  }
2444
2444
  render() {
2445
- return (hAsync("ul", { key: '6cd3d5f3128a49e9ac77abc11f46ca880bc6c195', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), hAsync("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
2445
+ return (hAsync("ul", { key: 'bef8701ffa7aec7ea1f0f21a2dfbe1157647bb0a', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), hAsync("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
2446
2446
  }
2447
2447
  static get cmpMeta() { return {
2448
2448
  "$flags$": 0,
@@ -2518,7 +2518,7 @@ class CorrectUseOfColors {
2518
2518
  registerInstance(this, hostRef);
2519
2519
  }
2520
2520
  render() {
2521
- return (hAsync("div", { key: '33f38f14e5b6e7271ae26608fb1a1ed0c7930c7c', class: "container" }, hAsync("p", { key: '4857375e983add7d8e5e0a0d9896641774be018e', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '1c6bd69472074babf8f830fdba9be31e73afcd88', label: "primary", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'ae3429fadbea001f01731d3c15f28865d668a50a', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: 'd8c6b9ab88abbf6194a4fb26120244982b59c2c4', class: "flex" }, hAsync("div", { key: 'fc7f854940caabb9e032999f51732b64555e96e7', class: "w-full" }, hAsync("ul", { key: '99c6a2e47c683ac38f2a14feec80177c0cf1c174', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '91048e89cff083356c589c0f1bfecdd482e0c797', class: "w-full" }, hAsync("ul", { key: '6ee69388227089a5224a6d249c8e1eea4efde128', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'c0a8e42942f2655648aa2ec3ce74bbf8d043ba63', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '3f272298bcd7d0e6ad791edc408ef636349fbf7d', label: "purple", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '9a0b28f388483944aa4b053b9f8e807c1383431e', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '27ab1cdb936918fafe122c5a569c83322043bb79', class: "flex" }, hAsync("div", { key: '037b9916ff3a3e8c2e9db64b650d44a57aedbcf9', class: "w-full" }, hAsync("ul", { key: '60f4f6290b31a29852fb934c678edcaa61c8e930', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '36397292a31417703736b3be5b77e17241675dd9', class: "w-full" }, hAsync("ul", { key: '20a9e6bb396c184c2718a18554eb1b4828817379', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '0b89819b9fce1dff39b06b70873d651b7a1c84ac', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '9b3e7d46ac8116ff5f47f895bb06e89cd49c4e03', label: "blue", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '94c3384e546bcae55d5634064a37436b4cdaab0f', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '7e3fe503559fa6865b824fd7f93dfdf8ed368f34', class: "flex" }, hAsync("div", { key: '4ed98a3b92ba8b73e3cd67dec625b4b8dfb34ee1', class: "w-full" }, hAsync("ul", { key: '0ccfd018568eb834ae05771976122736f5944205', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'd2cef9f5bd8ce7fb103e22a8964cee88853c1162', class: "w-full" }, hAsync("ul", { key: '24301ce590bd1530316f351202bd76fafaa7dda5', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '748852527301ab6465b593f5f271dc6dcef9d198', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'f035467c04170412a1b06f05b8675b6be57e8aa2', label: "redish", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '6e4eb577c6582a160b8282b54a6edfc58f20926b', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '9209fd1ab3092cd21dd81a3328171c8de4fb8bca', class: "flex" }, hAsync("div", { key: 'dc71b931a70fbd31a4f72814b23a1d97933bc721', class: "w-full" }, hAsync("ul", { key: 'd3f6f25439b6fbc8e8c08b39bf46de9ce52482fa', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, red$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '78d64d48a72836043c53e485269402bf566a5d98', class: "w-full" }, hAsync("ul", { key: '6eb824d03f4d0e2d3966963c899473e242b31dc6', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
2521
+ return (hAsync("div", { key: '58274bc750821893f1ff6db6af0c92557e2037dc', class: "container" }, hAsync("p", { key: 'f16ae70777dc595edb9f8ef20df33721816a472a', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'c98c49daddf43987002dd69ab1c00dffbae5e69a', label: "primary", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'e466f6f7e05f68896114551f59673c707d5fd30f', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '32dfc27beebbbab3949c7695293800a2ff552ceb', class: "flex" }, hAsync("div", { key: 'e01d74cf63c84f66d868e180589b45cbc59ebff7', class: "w-full" }, hAsync("ul", { key: '162e9c5ed57689a94c5c59e2664bba2adfcd60fc', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'bb71abb645789030487eccdd0abaf9b223c12ec8', class: "w-full" }, hAsync("ul", { key: 'f85702460f89881d6b8642decad848affdc7002f', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '7b5b8b9c0013a91c97f24c239bde32a727695707', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '81dc2c31eb283a2f64a1fd32329b35b1d04afc12', label: "purple", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'd90877918d973595a7b8bdacd6bb80f1f04cab5b', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '81cf06bb6932b2120b210e7d1ee9d556cedc949b', class: "flex" }, hAsync("div", { key: '2cc1571fe83620fcfa8f961af93b7b0e8e970eb2', class: "w-full" }, hAsync("ul", { key: 'b6b1f7f874dbd8784a0253187438c2eb6282a815', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '49a874de125699d800aee6256bb5b3bf9a0bf907', class: "w-full" }, hAsync("ul", { key: '10d41b5ab948c87c8db43fbddefbe3453c5384a9', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'bc7c40435b87cd31b5bbb2315b3f50fa88b5bafb', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'd5a9f4c30d9108bd8c8207ee0130a15b9c7ff53f', label: "blue", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '35c2440f2c606cd4e8e69b33850ca908f6f36a4a', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: 'cf9dde65d107b20c67e0036e891ad37c1d685477', class: "flex" }, hAsync("div", { key: '807350f20ee902df273ce35c217bcaa134502d13', class: "w-full" }, hAsync("ul", { key: '8198d1e59cb9477978a0b78714e7884a75ce52c0', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'ed4f89cd3d5544a199d0a516e23ee877c16dad6a', class: "w-full" }, hAsync("ul", { key: '47f8617629f34252b2d533f5932dd14b9117f601', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '7b99385726cda59f07b66ff99e050588d5778421', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'f3719f08484d40ceb9ece89474f473cf9e44ee53', label: "redish", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'f1ee0fbf78a5da5f6a7a0836f63cc3312f68a547', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '833dcd6ad96a0c36a127c5384d0858b879bf0b05', class: "flex" }, hAsync("div", { key: 'cf1297f1dfed3e70c184cdb3f4e116292ce1e57f', class: "w-full" }, hAsync("ul", { key: '9d8d9e0f78348cee56f6c91b3289a90f25c088e4', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, red$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '836dfd427a087ee512970bf52ee0612a24cfaa72', class: "w-full" }, hAsync("ul", { key: '08e2b7603c2c093b2bd8931d1993aca89801ad1d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
2522
2522
  }
2523
2523
  static get cmpMeta() { return {
2524
2524
  "$flags$": 0,
@@ -2530,6 +2530,53 @@ class CorrectUseOfColors {
2530
2530
  }; }
2531
2531
  }
2532
2532
 
2533
+ // Helper function to check if Matomo is initialized
2534
+ function isMatomoAvailable() {
2535
+ return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
2536
+ }
2537
+ // General function to push data to Matomo
2538
+ function pushToMatomo(action, ...args) {
2539
+ //console.log('Pushing Matomo')
2540
+ if (isMatomoAvailable()) {
2541
+ window._paq.push([action, ...args]);
2542
+ }
2543
+ else {
2544
+ // eslint-disable-next-line
2545
+ console.warn('Matomo is not available or not initialized.');
2546
+ }
2547
+ }
2548
+ // Function to send analytics data
2549
+ function sendAnalytics(eventData) {
2550
+ var _a;
2551
+ if (!isMatomoAvailable()) {
2552
+ // eslint-disable-next-line
2553
+ console.warn('Matomo is not available or not initialized.');
2554
+ // eslint-disable-next-line
2555
+ console.log(Object.assign({}, eventData));
2556
+ return;
2557
+ }
2558
+ // Conditionally build the name field
2559
+ const nameParts = [];
2560
+ if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
2561
+ nameParts.push(eventData.parentContext.componentName);
2562
+ }
2563
+ nameParts.push(eventData.tag || 'unknown-tag');
2564
+ nameParts.push(eventData.name || 'unknown-name');
2565
+ const name = nameParts.join('/');
2566
+ //console.log('trackEvent', eventData.category, eventData.action, name)
2567
+ pushToMatomo('trackEvent', eventData.category, eventData.action, name);
2568
+ // eslint-disable-next-line
2569
+ console.log(Object.assign({}, eventData));
2570
+ }
2571
+ // Function to opt-in the user
2572
+ function matomoOptIn() {
2573
+ if (isMatomoAvailable()) {
2574
+ window._paq.push(['rememberConsentGiven']);
2575
+ // eslint-disable-next-line
2576
+ console.log('User has opted in to tracking');
2577
+ }
2578
+ }
2579
+
2533
2580
  const edsAccordionCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";
2534
2581
  var EdsAccordionStyle0 = edsAccordionCss;
2535
2582
 
@@ -2561,9 +2608,17 @@ class EdsAccordion {
2561
2608
  * Toggles the `isExpanded` state and emits the `accordionChange` event.
2562
2609
  */
2563
2610
  this.handleClick = () => {
2611
+ var _a;
2564
2612
  this.isExpanded = !this.isExpanded;
2565
2613
  this.accordionChange.emit(this.isExpanded);
2566
2614
  this.setPanelHeight();
2615
+ sendAnalytics({
2616
+ category: 'ui-component',
2617
+ parentContext: null,
2618
+ tag: this.el.tagName.toLowerCase(),
2619
+ name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
2620
+ action: this.isExpanded ? 'expanded' : 'collapsed'
2621
+ });
2567
2622
  };
2568
2623
  /**
2569
2624
  * Calculates and sets the panel height based on the content height
@@ -2594,26 +2649,8 @@ class EdsAccordion {
2594
2649
  */
2595
2650
  componentDidLoad() {
2596
2651
  this.setPanelHeight();
2597
- // Emit context for each eds-link element after the component is fully loaded
2598
- const btn = this.el.shadowRoot.querySelector('eds-button');
2599
- this.emitContext(btn);
2600
2652
  window.addEventListener('resize', this.setPanelHeight);
2601
2653
  }
2602
- /**
2603
- * Emits a custom event called `parentContext` for a given link element.
2604
- * This event provides context information about the breadcrumb component.
2605
- *
2606
- * @param linkElement - The link element to which the event will be dispatched.
2607
- */
2608
- emitContext(linkElement) {
2609
- const event = new CustomEvent('parentContext', {
2610
- detail: {
2611
- componentName: this.el.tagName.toLowerCase(),
2612
- identifier: null
2613
- }
2614
- });
2615
- linkElement.dispatchEvent(event);
2616
- }
2617
2654
  /**
2618
2655
  * Lifecycle method that cleans up the resize event listener when the component is removed.
2619
2656
  */
@@ -2626,10 +2663,10 @@ class EdsAccordion {
2626
2663
  */
2627
2664
  render() {
2628
2665
  const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
2629
- return (hAsync("div", { key: '1f8ea188c4b39f6d1a8d10cdbf43d3df88d1281f', ref: (el) => (this.wrapperRef = el), class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
2666
+ return (hAsync("div", { key: '00bd9a34ceb469bef74c827bd1f48bf3d4b545b6', ref: (el) => (this.wrapperRef = el), class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
2630
2667
  ${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
2631
2668
  ${this.switchBg ? 'hover:bg-inverse' : ''}
2632
- ${minHeightContentClass}` }, hAsync("h3", { key: '4490bdc1a18b99850e8db8ae1c38fcb37912ec0d', class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), hAsync("div", { key: '82df433a9cc6805a735300fd1bb52f41c639c992', class: "ml-auto" }, hAsync("eds-button", { key: '9965d5eecfa02fbea08c23c44d325417767f6495', id: "accordionId", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-controls": "accordionId", class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '7ab8d2d07d55fa05c5e5647d1d00d1165f0d40ce', class: `w-full` }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: 'cb122dd5433d7012cba6f3769f79e92a155c45d7', id: "sectionId", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '0c2e1d9b38f21f0cb7f50aa3923edcc448418e3f', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-20`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: 'd119c88d54e8d5e83d4cc3d4d16d1cd53d689bc7', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: 'b2a6917ec65bc808389a2d1c77cd1183f00cbaa1' })))))));
2669
+ ${minHeightContentClass}` }, hAsync("h3", { key: 'ab6a953797e0a8379a01a9a2f00a4988d4fc8357', class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), hAsync("div", { key: 'cfd6f4ad2ec5e412cdf2348d188dfcf90770012d', class: "ml-auto" }, hAsync("eds-button", { key: 'beaee69d610727b397645fc0a507b234003fde5e', id: "toggleAccordion", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '795f14c0930a0b0862a86451cc7b7e807cb79c37', class: `w-full` }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: '28f6cba233cdee58743faaacc992bf7497c2ff2e', id: "accordionSection", role: "region", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '939e442c55babfd3f1750d20d9b95f664c3a67c8', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-20`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '648d16ed84cb3da227a10e6370004c6479789aed', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: '90ca94f15e408b4b05c0eac4bd20fa21766cbb19' })))))));
2633
2670
  }
2634
2671
  get el() { return getElement(this); }
2635
2672
  static get style() { return EdsAccordionStyle0; }
@@ -2771,11 +2808,12 @@ class EdsAlert {
2771
2808
  this.withBtn = Boolean(this.pressableLabel);
2772
2809
  }
2773
2810
  componentDidLoad() {
2774
- // Query all 'eds-link' elements, including those inside shadow DOM
2775
- const links = this.el.shadowRoot.querySelectorAll('eds-link');
2776
- links.forEach((link) => {
2777
- this.emitContext(link);
2778
- });
2811
+ var _a;
2812
+ // Query for the 'eds-link' element inside the shadow root.
2813
+ const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
2814
+ if (lnk) {
2815
+ this.emitContext(lnk);
2816
+ }
2779
2817
  }
2780
2818
  emitContext(linkElement) {
2781
2819
  const event = new CustomEvent('parentContext', {
@@ -2787,12 +2825,12 @@ class EdsAlert {
2787
2825
  linkElement.dispatchEvent(event);
2788
2826
  }
2789
2827
  render() {
2790
- return (hAsync("div", { key: '99518cd34cbfc04691f2f827b53105ef88c03af8', class: alertStyles({
2828
+ return (hAsync("div", { key: '519742081f681d6d67bc1b42c89fe1b6d005fe0f', class: alertStyles({
2791
2829
  intent: this.intent,
2792
2830
  direction: this.direction,
2793
2831
  withBtn: this.withBtn
2794
- }), role: "alert" }, hAsync("p", { key: '7eca97c849473bb4c8472d11243dc5eb9dded61f', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
2795
- (this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary" })) : null)));
2832
+ }), role: "alert" }, hAsync("p", { key: '6a5d11fdc2a975512b12c307286b0a8b06998bec', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
2833
+ (this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
2796
2834
  }
2797
2835
  get el() { return getElement(this); }
2798
2836
  static get style() { return EdsAlertStyle0; }
@@ -2813,212 +2851,6 @@ class EdsAlert {
2813
2851
  }; }
2814
2852
  }
2815
2853
 
2816
- [
2817
- ['eds-header', {
2818
- 'home-url': '/',
2819
- 'user-feature': 'false',
2820
- 'keycloak-url': 'http://localhost:8080',
2821
- 'keycloak-realm': 'nigeor-realm',
2822
- 'keycloak-client-id': 'stencil-app',
2823
- links: JSON.stringify([
2824
- { label: 'About', url: '/about' },
2825
- { label: 'Focus Areas', url: '/focus-areas' },
2826
- { label: 'News & Events', url: '/news-and-events' },
2827
- { label: 'Contact', url: '/contact' },
2828
- ]),
2829
- }],
2830
- ['eds-block-break', {}],
2831
- ['eds-footer', {}],
2832
- ['eds-block-break', {}],
2833
- ['eds-tabs', {
2834
- tabs: JSON.stringify([
2835
- { label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
2836
- { label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
2837
- { label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
2838
- ]),
2839
- }],
2840
- ['eds-block-break', {}],
2841
- ['eds-card-section', {
2842
- cards: JSON.stringify([
2843
- { title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
2844
- { title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
2845
- ]),
2846
- cols: '4',
2847
- }],
2848
- ['eds-block-break', {}],
2849
- ['eds-link', {
2850
- label: 'Main Link Click Me',
2851
- url: 'https://example.com',
2852
- intent: 'primary'
2853
- }],
2854
- ['eds-block-break', {}],
2855
- ['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
2856
- ['eds-block-break', {}],
2857
- ['eds-breadcrumb', {
2858
- items: JSON.stringify([
2859
- { label: 'Home', url: '/' },
2860
- { label: 'Products', url: '/products' },
2861
- { label: 'Electronics', url: '/products/electronics' },
2862
- { label: 'Laptops', url: '/products/electronics/laptops' },
2863
- ]),
2864
- intent: 'primary',
2865
- }],
2866
- ['eds-block-break', {}],
2867
- ['eds-card-generic', {
2868
- 'card-title': 'The Future of AI in Healthcare',
2869
- url: 'https://example.com/ai-healthcare',
2870
- description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
2871
- avatar: 'https://files.ebrains.eu/img/686e0edc-f3be-4d79-aa02-373c32c08d65/ebrains-logo-high-resolution.png?fit=max&q=80&fm=webp&crop=879%2C879%2C597%2C0&w=200',
2872
- 'short-abbreviation': 'AI',
2873
- 'heading-level': 'h2',
2874
- tags: 'Technology,AI,Healthcare',
2875
- tiny: 'false',
2876
- bg: 'true',
2877
- 'with-hover': 'true',
2878
- }],
2879
- ['eds-block-break', {}],
2880
- ['eds-code-block', {
2881
- code: 'Hello',
2882
- language: 'javascript',
2883
- }],
2884
- ['eds-block-break', {}],
2885
- ['eds-dropdown', {
2886
- 'aria-label': 'More options',
2887
- 'rounded-btn': 'true',
2888
- 'dropdown-pos': 'right',
2889
- 'dropdown-offset': 'true',
2890
- }],
2891
- ['eds-block-break', {}],
2892
- ['eds-form', {
2893
- name: 'extended-form',
2894
- endpoint: 'http://127.0.0.1:5000/api/data',
2895
- fields: JSON.stringify([
2896
- { name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
2897
- { name: 'email', label: 'Email', type: 'email', required: true },
2898
- { name: 'number', label: 'Number', type: 'number', required: true },
2899
- { name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
2900
- { name: 'date', label: 'Date', type: 'date', required: true },
2901
- { name: 'file', label: 'File', type: 'file', required: false },
2902
- { name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
2903
- { name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
2904
- { name: 'role', label: 'Role', type: 'select', required: true, options: [
2905
- { label: 'Admin', value: 'admin' },
2906
- { label: 'Editor', value: 'editor' },
2907
- { label: 'Viewer', value: 'viewer' },
2908
- ] },
2909
- { name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
2910
- { value: 'option1', label: 'Option 1' },
2911
- { value: 'option2', label: 'Option 2' },
2912
- { value: 'option3', label: 'Option 3' },
2913
- ], required: true },
2914
- { name: 'gender', type: 'radio', label: 'Select your gender', options: [
2915
- { value: 'female', label: 'Female' },
2916
- { value: 'male', label: 'Male' },
2917
- ], required: true },
2918
- { name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
2919
- { name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
2920
- ]),
2921
- 'success-message': 'Form submitted successfully!',
2922
- 'error-message': 'Please fix the errors in the form.',
2923
- 'submit-btn': 'true',
2924
- 'small-alert': 'false',
2925
- 'set-form-url': 'true',
2926
- }],
2927
- ['eds-block-break', {}],
2928
- ['eds-img', {
2929
- src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
2930
- alt: 'EBRAINS Bernstein Conference',
2931
- width: '400',
2932
- height: '225',
2933
- srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1440w',
2934
- sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
2935
- formats: JSON.stringify([
2936
- { type: 'image/webp', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 1080w' },
2937
- { type: 'image/jpeg', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w' },
2938
- ]),
2939
- lazyload: 'true',
2940
- 'with-bg': 'true',
2941
- }],
2942
- ['eds-block-break', {}],
2943
- ['eds-input-field', {
2944
- name: 'username',
2945
- 'input-id': 'username',
2946
- label: 'Username',
2947
- placeholder: 'Enter your username',
2948
- required: 'true',
2949
- hint: 'Your unique username',
2950
- message: 'This field is required',
2951
- 'error-message': 'Invalid username',
2952
- type: 'text',
2953
- }],
2954
- ['eds-block-break', {}],
2955
- ['eds-pagination', {
2956
- 'current-page': '1',
2957
- 'last-page': '10',
2958
- 'per-page': '5',
2959
- total: '50',
2960
- mode: 'default',
2961
- }],
2962
- ['eds-block-break', {}],
2963
- ['eds-progress-bar', { value: '75' }],
2964
- ['eds-table', {
2965
- data: JSON.stringify([
2966
- { Property: 'username', Type: 'string', Required: 'Yes' },
2967
- { Property: 'password', Type: 'string', Required: 'Yes' },
2968
- { Property: 'email', Type: 'string', Required: 'No' },
2969
- ]),
2970
- config: JSON.stringify({
2971
- Type: { format: 'uppercase' },
2972
- Property: { format: 'code' },
2973
- Required: { hidden: true },
2974
- }),
2975
- }],
2976
- ['eds-block-break', {}],
2977
- ['eds-tag', { label: 'Default Tag', intent: 'default' }],
2978
- ];
2979
-
2980
- // Helper function to check if Matomo is initialized
2981
- function isMatomoAvailable() {
2982
- return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
2983
- }
2984
- // General function to push data to Matomo
2985
- function pushToMatomo(action, ...args) {
2986
- console.log('Pushing Matomo');
2987
- if (isMatomoAvailable()) {
2988
- window._paq.push([action, ...args]);
2989
- }
2990
- else {
2991
- console.warn('Matomo is not available or not initialized.');
2992
- }
2993
- }
2994
- // Function to send analytics data
2995
- function sendAnalytics(eventData) {
2996
- var _a;
2997
- if (!isMatomoAvailable()) {
2998
- console.warn('Matomo is not available or not initialized.');
2999
- console.log(Object.assign({}, eventData));
3000
- return;
3001
- }
3002
- // Conditionally build the name field
3003
- const nameParts = [];
3004
- if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
3005
- nameParts.push(eventData.parentContext.componentName);
3006
- }
3007
- nameParts.push(eventData.tag || 'unknown-tag');
3008
- nameParts.push(eventData.name || 'unknown-name');
3009
- const name = nameParts.join('/');
3010
- //console.log('trackEvent', eventData.category, eventData.action, name)
3011
- pushToMatomo('trackEvent', eventData.category, eventData.action, name);
3012
- console.log(Object.assign({}, eventData));
3013
- }
3014
- // Function to opt-in the user
3015
- function matomoOptIn() {
3016
- if (isMatomoAvailable()) {
3017
- window._paq.push(['rememberConsentGiven']);
3018
- console.log('User has opted in to tracking');
3019
- }
3020
- }
3021
-
3022
2854
  const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
3023
2855
  const gradientBGColorVariants = cva([], {
3024
2856
  variants: {
@@ -3166,8 +2998,8 @@ var EdsAvatarStyle0 = edsAvatarCss;
3166
2998
  class EdsAvatar {
3167
2999
  constructor(hostRef) {
3168
3000
  registerInstance(this, hostRef);
3169
- this.firstName = undefined;
3170
- this.lastName = undefined;
3001
+ this.firstName = 'User';
3002
+ this.lastName = 'Avatar';
3171
3003
  this.picture = undefined;
3172
3004
  this.initials = undefined;
3173
3005
  this.color = undefined;
@@ -3220,7 +3052,7 @@ class EdsAvatar {
3220
3052
  * @returns {JSX.Element} The rendered avatar component.
3221
3053
  */
3222
3054
  render() {
3223
- return (hAsync("div", { key: '716279a35cc9235da991563d5f84d2dedbdae001', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
3055
+ return (hAsync("div", { key: '47ee5ffd12c0f90c536dea77b3ffa9120d67f37f', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
3224
3056
  }
3225
3057
  static get style() { return EdsAvatarStyle0; }
3226
3058
  static get cmpMeta() { return {
@@ -3258,7 +3090,7 @@ class EdsBlockBreak {
3258
3090
  this.extraClass = '';
3259
3091
  }
3260
3092
  render() {
3261
- return hAsync("hr", { key: '85b5253d4abb77072424452d2ff6a0d631e67652', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
3093
+ return hAsync("hr", { key: '8cb39dda5d7f909b459390fe7e3f86dfd147ba98', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
3262
3094
  }
3263
3095
  static get style() { return EdsBlockBreakStyle0; }
3264
3096
  static get cmpMeta() { return {
@@ -3325,7 +3157,7 @@ class EdsBreadcrumb {
3325
3157
  this.parsedItems = Array.isArray(parsed) ? parsed : [];
3326
3158
  }
3327
3159
  catch (e) {
3328
- console.error('Error parsing breadcrumb items:', e);
3160
+ //console.error('Error parsing breadcrumb items:', e);
3329
3161
  this.parsedItems = [];
3330
3162
  }
3331
3163
  }
@@ -3353,9 +3185,9 @@ class EdsBreadcrumb {
3353
3185
  * It emits a custom event for each `eds-link` element contained within the breadcrumb.
3354
3186
  */
3355
3187
  componentDidLoad() {
3356
- // Emit context for each eds-link element after the component is fully loaded
3357
- const links = this.el.shadowRoot.querySelectorAll('eds-link');
3358
- links.forEach((link) => {
3188
+ var _a;
3189
+ const links = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-link');
3190
+ links === null || links === void 0 ? void 0 : links.forEach((link) => {
3359
3191
  this.emitContext(link);
3360
3192
  });
3361
3193
  }
@@ -3375,54 +3207,49 @@ class EdsBreadcrumb {
3375
3207
  linkElement.dispatchEvent(event);
3376
3208
  }
3377
3209
  /**
3378
- * Truncates breadcrumb items based on the maxVisibleItems value.
3379
- * Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
3210
+ * Returns breadcrumb items with potential truncation if there are too many.
3211
+ * It inserts an ellipsis item where necessary.
3380
3212
  */
3381
3213
  getTruncatedItems() {
3382
3214
  const totalItems = this.parsedItems.length;
3215
+ const ellipsis = { label: '...', url: '', isHidden: true };
3383
3216
  if (totalItems > this.maxVisibleItems) {
3384
3217
  const firstItem = this.parsedItems[0];
3385
3218
  const lastItems = this.parsedItems.slice(-2);
3386
- const ellipsis = { label: '...', url: '', isHidden: true };
3387
3219
  if (this.maxVisibleItems === 3) {
3388
- return [
3389
- this.truncateLabel(firstItem),
3390
- ellipsis,
3391
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
3392
- ];
3220
+ return [firstItem, ellipsis, ...lastItems];
3393
3221
  }
3394
3222
  else if (this.maxVisibleItems === 4) {
3395
3223
  const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
3396
- return [
3397
- this.truncateLabel(firstItem),
3398
- this.truncateLabel(middleItem),
3399
- ellipsis,
3400
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
3401
- ];
3224
+ return [firstItem, middleItem, ellipsis, ...lastItems];
3402
3225
  }
3403
3226
  }
3404
- return this.parsedItems.map((item, index) => index === this.parsedItems.length - 1 ? item : this.truncateLabel(item));
3227
+ return this.parsedItems;
3405
3228
  }
3406
3229
  /**
3407
- * Truncates the label of a breadcrumb item to a maximum of 10 characters
3408
- * if the screen is small.
3230
+ * Helper to determine the display label and full label.
3231
+ * If the label is longer than 15 characters and the item is not the current (last) item,
3232
+ * we display a truncated version but use the full label for aria attributes.
3409
3233
  */
3410
- truncateLabel(item) {
3411
- if (item.label.length > 15) {
3412
- return Object.assign(Object.assign({}, item), { label: `${item.label.slice(0, 15)}...` });
3234
+ getLabels(item, isCurrent) {
3235
+ if (!isCurrent && item.label.length > 15) {
3236
+ return { displayLabel: `${item.label.slice(0, 15)}...`, fullLabel: item.label };
3413
3237
  }
3414
- return item;
3238
+ return { displayLabel: item.label, fullLabel: item.label };
3415
3239
  }
3416
3240
  /**
3417
3241
  * Render method for the breadcrumb component.
3418
3242
  * It creates a navigation element with an ordered list of breadcrumb links.
3419
- * The last link is disabled and marked as the current page.
3243
+ * The last link is marked as the current page.
3420
3244
  */
3421
3245
  render() {
3422
3246
  const itemsToRender = this.getTruncatedItems();
3423
- return (hAsync("nav", { key: '1491f7e548ba859e0661129de2ec320552a2bb42', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '93525aad588295e9f2a3f02d143824c7c58ea512', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
3247
+ return (hAsync("nav", { key: 'd177957e1b3218c21991bbdc9636a8e32befe990', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd10336ddee99b9fb84d17e53093c57c6a025982f', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
3424
3248
  const isLast = index === itemsToRender.length - 1;
3425
- return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? (hAsync("eds-link", { label: item.label, url: item.url, intent: this.intent, current: isLast, "aria-label": item.label, size: "small", "icon-small": "false" })) : (hAsync("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (hAsync("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
3249
+ return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
3250
+ const { displayLabel, fullLabel } = this.getLabels(item, isLast);
3251
+ return (hAsync("eds-link", Object.assign({ label: displayLabel, url: item.url, intent: this.intent, current: isLast, "aria-label": fullLabel, size: "small", "icon-small": "false" }, (isLast ? { 'aria-current': 'page' } : {}))));
3252
+ })()) : (hAsync("span", { class: "truncate px-2", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (hAsync("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
3426
3253
  }))));
3427
3254
  }
3428
3255
  get el() { return getElement(this); }
@@ -3615,9 +3442,8 @@ class EdsButton {
3615
3442
  iconOnly: false
3616
3443
  }
3617
3444
  });
3618
- this.parentContext = null; // Accepts the entire event detail or null
3619
3445
  this.label = undefined;
3620
- this.ariaLabel = undefined;
3446
+ this.ariaLabel = 'Button';
3621
3447
  this.elementType = 'button';
3622
3448
  this.intent = 'secondary';
3623
3449
  this.loading = false;
@@ -3630,15 +3456,19 @@ class EdsButton {
3630
3456
  this.extraClass = undefined;
3631
3457
  this.triggerClick = undefined;
3632
3458
  }
3633
- handleParentContext(event) {
3634
- if (event.target !== this.el) {
3635
- // Ignore the event if it's not targeted at this specific instance
3636
- return;
3637
- }
3638
- //console.log(event.detail);
3639
- this.parentContext = event.detail;
3640
- event.stopPropagation();
3459
+ /*private parentContext: ParentContextDetail | null = null; // Accepts the entire event detail or null
3460
+
3461
+ @Listen('parentContext')
3462
+ handleParentContext(event: CustomEvent) {
3463
+ if (event.target !== this.el) {
3464
+ // Ignore the event if it's not targeted at this specific instance
3465
+ return;
3466
+ }
3467
+ //console.log(event.detail);
3468
+ this.parentContext = event.detail;
3469
+ event.stopPropagation();
3641
3470
  }
3471
+ */
3642
3472
  handleClick(event) {
3643
3473
  var _a, _b;
3644
3474
  if (this.disabled) {
@@ -3648,7 +3478,7 @@ class EdsButton {
3648
3478
  }
3649
3479
  sendAnalytics({
3650
3480
  category: 'ui-component',
3651
- parentContext: this.parentContext,
3481
+ parentContext: null,
3652
3482
  tag: this.el.tagName.toLowerCase(),
3653
3483
  name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ((_b = this.ariaLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '',
3654
3484
  action: 'click'
@@ -3675,7 +3505,7 @@ class EdsButton {
3675
3505
  show: !this.loading
3676
3506
  });
3677
3507
  const ElementType = this.elementType;
3678
- return (hAsync(ElementType, { key: '1053db0332f574db35e58453d789567eaf235d30', "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.elementType === 'button' ? this.disabled : undefined, disabled: this.elementType === 'button' ? this.disabled : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event) }, this.label && hAsync("span", { key: 'ff95b889b008075d46b89a1d23e51ad8afa20918', class: this.loading ? 'opacity-0' : '' }, this.label), this.loading && (hAsync("span", { key: '942f3fffcaef08defd3d0ef0dbb275b9d189c907', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: '91e53dcee9d4f2a842ea922498c9da7f15ffe109', class: "loader", style: {
3508
+ return (hAsync(ElementType, { key: '52cda715164eeca59e35b45f617a2d6d1b05a94c', "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.elementType === 'button' ? this.disabled : undefined, disabled: this.elementType === 'button' ? this.disabled : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event) }, this.label && hAsync("span", { key: '866cd0272d9f381b3ecb892e588c860ca8b41051', class: this.loading ? 'opacity-0' : '' }, this.label), this.loading && (hAsync("span", { key: 'fcba01e3404724869c59f4e21bd5db459643d840', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: 'e44955e5641e757e66eb4961097fb4d60e4def7c', class: "loader", style: {
3679
3509
  border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
3680
3510
  borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
3681
3511
  } }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
@@ -3700,7 +3530,7 @@ class EdsButton {
3700
3530
  "extraClass": [1, "extra-class"],
3701
3531
  "triggerClick": [16]
3702
3532
  },
3703
- "$listeners$": [[0, "parentContext", "handleParentContext"]],
3533
+ "$listeners$": undefined,
3704
3534
  "$lazyBundleId$": "-",
3705
3535
  "$attrsToReflect$": []
3706
3536
  }; }
@@ -3709,6 +3539,14 @@ class EdsButton {
3709
3539
  const edsCardDescCss = ".f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
3710
3540
  var EdsCardDescStyle0 = edsCardDescCss;
3711
3541
 
3542
+ /**
3543
+ * `eds-card-desc` is a simple component that renders a card description.
3544
+ *
3545
+ * It displays a block of text with optional truncation applied using a CSS line clamp.
3546
+ * You can customize the description styling via the `descClass` property and control
3547
+ * whether or not the text is truncated and to how many lines.
3548
+ *
3549
+ */
3712
3550
  class EdsCardDesc {
3713
3551
  constructor(hostRef) {
3714
3552
  registerInstance(this, hostRef);
@@ -3721,7 +3559,7 @@ class EdsCardDesc {
3721
3559
  return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
3722
3560
  }
3723
3561
  render() {
3724
- return (hAsync("p", { key: '017c115ebff999c74cff1eaeb5c63f97e0f6554d', class: `text-light ${this.descClass}` }, hAsync("span", { key: 'f87b9b3d593e417ef351882f426d24c0b206ccab', class: this.getTruncateClass() }, this.description)));
3562
+ return (hAsync("p", { key: '71495cbd6ef4e7d66c4c22a37f8120624ecf57fb', class: `text-light ${this.descClass}` }, hAsync("span", { key: '8708178f7b48cc1f31aac749f50fe92b72c39ab8', class: this.getTruncateClass() }, this.description)));
3725
3563
  }
3726
3564
  static get style() { return EdsCardDescStyle0; }
3727
3565
  static get cmpMeta() { return {
@@ -3765,7 +3603,7 @@ class EdsCardGeneric {
3765
3603
  this.avatar = undefined;
3766
3604
  this.shortAbbreviation = undefined;
3767
3605
  this.headingLevel = 'h3';
3768
- this.tags = '';
3606
+ this.tags = [];
3769
3607
  this.tiny = false;
3770
3608
  this.bg = true;
3771
3609
  this.withHover = true;
@@ -3841,7 +3679,7 @@ class EdsCardGeneric {
3841
3679
  });
3842
3680
  }
3843
3681
  render() {
3844
- return (hAsync("article", { key: '17d1f00f232a4436756fa3846684bbae8c716036', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'd99ee1716c4e308a3ea446f0f7cedfaeac30f2ed', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: 'c5bdc76e68a8d660609630aa8184ec3a9508ab61', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (hAsync("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: 'fa993e3c60d357eb0d9a63e612bdd2bf026e7a85', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label })))), ' '));
3682
+ return (hAsync("article", { key: 'dcb7cea87bfb52f8886f7ee3dbc3484d615bc00c', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '94dd6ff2679ce9ac4d25ec921cd1162b1584e4fd', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '433c4fe3a518153d89d48af54455286fa415a688', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (hAsync("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '97b75afb4b8de1183d4b212054ff556ba3db8fcb', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label })))), ' '));
3845
3683
  }
3846
3684
  get el() { return getElement(this); }
3847
3685
  static get style() { return EdsCardGenericStyle0; }
@@ -3856,7 +3694,7 @@ class EdsCardGeneric {
3856
3694
  "avatar": [1],
3857
3695
  "shortAbbreviation": [1, "short-abbreviation"],
3858
3696
  "headingLevel": [1, "heading-level"],
3859
- "tags": [8],
3697
+ "tags": [1],
3860
3698
  "tiny": [4],
3861
3699
  "bg": [4],
3862
3700
  "withHover": [4, "with-hover"],
@@ -3925,7 +3763,7 @@ class EdsCardProject {
3925
3763
  this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
3926
3764
  ].join(' ');
3927
3765
  const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
3928
- return (hAsync("article", { key: '6af49754300ded8748ac3f40175e262480054969', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: '91e8501312957c44d9dc075f2ec3a9e5a5d425cb', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '44e3cf2d67255bb5669b6c721741ed060ba599e7', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: '0cf1d124b975e4d7223bab58db0d5861d348ceb2', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: '85e1158691ae876bc0f3c6d0c5557f394ae935cb', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: '9ffdc9f14709600b623c3a5f878b2700864ced79', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && hAsync("eds-tag", { key: 'ecc5e55430df355c13420add9969855d1d54c27f', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: '97de7a06a13d9843cb18fe4eb19303f436e2ce16', class: imageClasses }, hAsync("div", { key: '532d3c8252316a68976b4587c3d5b63167c0c598', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: '37ee3dbbc99ec8c9139b0a89f9c725768eac5f6d', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
3766
+ return (hAsync("article", { key: '98c5dbd033ec05d08965559e00f32d9fe18698ef', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: 'e083c43e38c3c24fcd996a90267f7cd92d3651b3', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '37de1e46023b533fd8595a3077c4e68c11fb01af', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: 'ee31ae2804d2c17c82e8f4c0c3269ac8254331df', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: 'c6f74ba9b5b522f713e25d3339f541efa68cdddd', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: 'ab18e55046777cf4a4f58ebd057641db9b9e0328', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && hAsync("eds-tag", { key: '3714ee86a74dce7f33a8f953fd726db349ba9271', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: '2818d15f7ab671b7b2dfb34ec3085b390150f38d', class: imageClasses }, hAsync("div", { key: '5166feef3674631298f699449b956655f38f0db9', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: '86555a43491da5b2aa3b287e539e603a2c2adaf3', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
3929
3767
  }
3930
3768
  get el() { return getElement(this); }
3931
3769
  static get cmpMeta() { return {
@@ -3965,7 +3803,7 @@ var EdsCardSectionStyle0 = edsCardSectionCss;
3965
3803
  class EdsCardSection {
3966
3804
  constructor(hostRef) {
3967
3805
  registerInstance(this, hostRef);
3968
- this.cards = undefined;
3806
+ this.cards = [];
3969
3807
  this.cols = 4;
3970
3808
  }
3971
3809
  /**
@@ -3988,7 +3826,7 @@ class EdsCardSection {
3988
3826
  }
3989
3827
  catch (e) {
3990
3828
  // eslint-disable-next-line
3991
- console.error('Error parsing links prop:', e);
3829
+ console.error('Error parsing cards prop:', e);
3992
3830
  return [];
3993
3831
  }
3994
3832
  }
@@ -4002,7 +3840,7 @@ class EdsCardSection {
4002
3840
  * @returns {JSX.Element} The rendered section containing a list of cards.
4003
3841
  */
4004
3842
  render() {
4005
- return (hAsync("section", { key: 'c02b0e71ae4658e2f568e9428a9c61455aeb8ccd', class: "w-full" }, hAsync("ul", { key: '7f5d952d5cc5044c2ec23ca6b6b627901c40ab81', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (hAsync("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, hAsync("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
3843
+ return (hAsync("section", { key: '1f221e1ec7c3cdd0e3aed18f6f930c2c5456c64b', class: "w-full" }, hAsync("ul", { key: '36f984994bb2dc247475c20422f7e6e7da7d058d', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (hAsync("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, hAsync("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
4006
3844
  }
4007
3845
  static get style() { return EdsCardSectionStyle0; }
4008
3846
  static get cmpMeta() { return {
@@ -4031,7 +3869,7 @@ class EdsCardTags {
4031
3869
  this.tags = [];
4032
3870
  }
4033
3871
  render() {
4034
- return (hAsync("div", { key: 'b201dc6df5e809d828a055fb5f01fe798e228361', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
3872
+ return (hAsync("div", { key: '272d53abb9be9086881cb2f8e99f7fb7aae1bb59', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
4035
3873
  }
4036
3874
  static get style() { return EdsCardTagsStyle0; }
4037
3875
  static get cmpMeta() { return {
@@ -4095,7 +3933,7 @@ class EdsCardTitle {
4095
3933
  render() {
4096
3934
  //const Tag = this.getTag();
4097
3935
  const Heading = this.headingLevel;
4098
- return (hAsync(Heading, { key: '8aee3bcb0e04508dd21a03ea0f695e040f37c767', class: this.getTitleClass() }, hAsync("a", { key: 'c5fa27fe86037ed6b039c156aecdf1acc9c7c8bc', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
3936
+ return (hAsync(Heading, { key: 'bb97dc6dd53adda14ef251b2ec32952791438986', class: this.getTitleClass() }, hAsync("a", { key: '37b6ac0668257d27fb3f03a6225a2d48e1fd1f79', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
4099
3937
  }
4100
3938
  static get style() { return EdsCardTitleStyle0; }
4101
3939
  static get cmpMeta() { return {
@@ -4183,7 +4021,7 @@ class EdsCardTool {
4183
4021
  });
4184
4022
  }
4185
4023
  render() {
4186
- return (hAsync("article", { key: 'b46c0464688e45ab29f5b58b6cd2e22ed28e1034', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'a4da791280db14754b445b1a52e33cc9a25f765e', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '86f7c6c80b83f244ba7d07d820d5793e1dda2933', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (hAsync("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '46307b57160f908aa7066b2a636c4db38e0e7a8e', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
4024
+ return (hAsync("article", { key: 'da61b384e966b148cd1f77eec59671bc4d92e259', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '00702d032bc25f52b2a2c98255ceb60a1d314f4d', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: 'd2b135ed422fb64f142af71330dc666e2f0c2b1f', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (hAsync("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '54111e90175754cb0c1f2eb339e86926914ca0e7', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
4187
4025
  }
4188
4026
  get el() { return getElement(this); }
4189
4027
  static get style() { return EdsCardToolStyle0; }
@@ -4234,7 +4072,7 @@ class EdsCardWrapper {
4234
4072
  this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
4235
4073
  'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
4236
4074
  ].join(' ');
4237
- return (hAsync("article", { key: 'c52f6ad7873050c052b8c0e68b2c812d74f2ddf1', class: articleClasses }, hAsync("slot", { key: 'dac6f9fe339c8baa191ee2fd622332ddf25ec08d' }), this.hasSlot('footer') && (hAsync("div", { key: '301862515ba88f320d1af722bec6120bc3e7d723', class: "mt-auto" }, hAsync("slot", { key: '85d939150663a4586934413c9965aa92a9babeef', name: "footer" })))));
4075
+ return (hAsync("article", { key: 'f21cc9703011026652765b399e2b87b1ef80d220', class: articleClasses }, hAsync("slot", { key: '9a37adad73d2d49edcc9ca9222d5b188202c5612' }), this.hasSlot('footer') && (hAsync("div", { key: '87addfc052ed4ae33736724fbd8fbc8aca873b4d', class: "mt-auto" }, hAsync("slot", { key: '2e48677f42ac2aa951bc1a82afa9291fea3ddd72', name: "footer" })))));
4238
4076
  }
4239
4077
  get el() { return getElement(this); }
4240
4078
  static get cmpMeta() { return {
@@ -6659,6 +6497,14 @@ Prism.languages.py = Prism.languages.python;
6659
6497
  const edsCodeBlockCss = ":host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*=\"language-\"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
6660
6498
  var EdsCodeBlockStyle0 = edsCodeBlockCss;
6661
6499
 
6500
+ //import { sendAnalytics } from '../../utils/analytics';
6501
+ /**
6502
+ * A component that displays a code block with syntax highlighting.
6503
+ *
6504
+ * Uses Prism.js for syntax highlighting. Supports multiple languages such as JavaScript, HTML, CSS,
6505
+ * Python, Bash/Shell, and YAML.
6506
+ *
6507
+ * */
6662
6508
  class EdsCodeBlock {
6663
6509
  constructor(hostRef) {
6664
6510
  registerInstance(this, hostRef);
@@ -6666,23 +6512,70 @@ class EdsCodeBlock {
6666
6512
  this.language = undefined;
6667
6513
  this.copied = false;
6668
6514
  }
6515
+ /**
6516
+ * Copies the current code content to the clipboard and sets a temporary copied state.
6517
+ *
6518
+ * @private
6519
+ * @returns {void}
6520
+ */
6669
6521
  copyToClipboard() {
6670
6522
  navigator.clipboard.writeText(this.code).then(() => {
6671
6523
  this.copied = true;
6524
+ /*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
6525
+ sendAnalytics({
6526
+ category: 'ui-component',
6527
+ parentContext: null,
6528
+ tag: this.el.tagName.toLowerCase(),
6529
+ name: analyticsName || '',
6530
+ action: 'copy'
6531
+ });*/
6672
6532
  setTimeout(() => (this.copied = false), 2000);
6673
6533
  });
6674
6534
  }
6535
+ /**
6536
+ * Utility function that creates a human-friendly analytics name based on the code and language.
6537
+ * It uses:
6538
+ * - The language (in uppercase)
6539
+ * - The number of non-empty lines in the code
6540
+ * - The first non-empty line of code (truncated to 30 characters, if needed)
6541
+ *
6542
+ * returns A descriptive analytics name.
6543
+ */
6544
+ /*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
6545
+ // Count non-empty lines
6546
+ const lines = code.split('\n').filter(line => line.trim() !== '').length;
6547
+
6548
+ // Find the first non-empty line and trim it
6549
+ let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
6550
+ firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
6551
+
6552
+ // Truncate the snippet if it’s too long
6553
+ if (firstNonEmptyLine.length > 30) {
6554
+ firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
6555
+ }
6556
+
6557
+ return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
6558
+ }*/
6559
+ /**
6560
+ * Returns the syntax-highlighted HTML for the code.
6561
+ * If the provided language is supported by Prism, this method returns the highlighted code.
6562
+ * Otherwise, it logs a warning and returns the raw code.
6563
+ *
6564
+ * @private
6565
+ * @returns {string} The highlighted HTML string for the code block.
6566
+ */
6675
6567
  getHighlightedCode() {
6676
6568
  if (this.language && Prism$1.languages[this.language]) {
6677
6569
  return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
6678
6570
  }
6679
6571
  // eslint-disable-next-line
6680
- console.warn(`Unsupported or missing language: ${this.language}`);
6572
+ //console.warn(`Unsupported or missing language: ${this.language}`);
6681
6573
  return this.code; // Fallback if language is not provided or unsupported
6682
6574
  }
6683
6575
  render() {
6684
- return (hAsync("div", { key: 'a99c0c8b9546b80bb3f9e21cd53c29540e8b6e06', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: '5856f9d30bb52f791e0d8bb03a6438bc01247f66', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: 'dfb0f69dbbd1032ace5afb7fe98d899816f36610', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: 'b399384638265f9fcc9a824c47fe73c75bcade33', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: '47c2d00b2cf86b99522dbc438726e0fc57fb6a44', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: '038321e9d3d2a38963857ab8b719653f3e8385e3', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '72be161dd9781d9bc2f4d9495969175f34c19249', innerHTML: this.getHighlightedCode() })))));
6576
+ return (hAsync("div", { key: 'cb379e82bcf71345945b0b88397650ecd4992770', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: '945046d4fd747cd64a83155b421a897e380cc612', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: '3f6c7e996101f0bb83fb8c9e6991a205a0b268c8', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '8ad9beb61058f29e688f6777233c61f7fb3ccfe8', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: 'a4f9a07906e1c2d9febb7ae789a3eed76dc422e9', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: 'e31339126dd3cc885511aaa2bdf6f06f3a113c74', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '7efacd276f26a00f0f61793f6b8748259e1614b5', innerHTML: this.getHighlightedCode() })))));
6685
6577
  }
6578
+ get el() { return getElement(this); }
6686
6579
  static get style() { return EdsCodeBlockStyle0; }
6687
6580
  static get cmpMeta() { return {
6688
6581
  "$flags$": 9,
@@ -6730,7 +6623,11 @@ const EdsDocsInstallation = () => (hAsync("div", null,
6730
6623
  hAsync("div", { class: "my-8" },
6731
6624
  hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
6732
6625
  hAsync("div", { class: "my-8" },
6733
- hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
6626
+ hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })),
6627
+ hAsync("div", { class: "my-8" },
6628
+ hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })),
6629
+ hAsync("div", { class: "my-8" },
6630
+ hAsync("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" }))));
6734
6631
 
6735
6632
  const EdsDocsReact = () => (hAsync("div", null,
6736
6633
  hAsync("h2", null, "React Wrappers"),
@@ -6738,7 +6635,7 @@ const EdsDocsReact = () => (hAsync("div", null,
6738
6635
  hAsync("div", { class: "my-8" },
6739
6636
  hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
6740
6637
  hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
6741
- hAsync("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n', language: "javascript", "copy-label": "Copy Code" }))));
6638
+ hAsync("eds-code-block", { code: '\nimport {\n EdsHeader,\n EdsFullscreenMenu,\n EdsUser\n} from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n // Add any other properties your user object might have\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n };\n }, []);\n\n return (\n <div>\n <EdsHeader\n homeUrl="/"\n menuEnabled={true}\n inverseHeader={false}\n links={[\n { label: "About", url: "#" },\n { label: "Focus Areas", url: "#" },\n { label: "News & Events", url: "#" },\n { label: "Contact", url: "#" }\n ]}\n >\n <div className="px-16">\n <EdsUser\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n ></EdsUser>\n </div>\n </EdsHeader>\n\n <EdsFullscreenMenu\n home-url="/"\n links={[\n { label: "About", url: "#" },\n { label: "Focus Areas", url: "#" },\n { label: "News & Events", url: "#" },\n { label: "Contact", url: "#" }\n ]}\n ></EdsFullscreenMenu>\n \n <div>\n User is{" "}\n {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n\n <div id="main"></div>\n </div>\n );\n}\n\nexport default App;\n\n', language: "javascript", "copy-label": "Copy Code" }))));
6742
6639
 
6743
6640
  const EdsDocsVue = () => (hAsync("div", null,
6744
6641
  hAsync("h2", null, "Vue Wrappers"),
@@ -6806,7 +6703,7 @@ class EdsComponentsSection {
6806
6703
  }
6807
6704
  }
6808
6705
  render() {
6809
- return hAsync("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
6706
+ return hAsync("div", { key: '7e582a0eeafc2687229454532b5a7f66f91c1856', class: "container" }, this.renderContent());
6810
6707
  }
6811
6708
  static get cmpMeta() { return {
6812
6709
  "$flags$": 0,
@@ -6847,7 +6744,7 @@ class EdsDocsContent {
6847
6744
  }
6848
6745
  }
6849
6746
  render() {
6850
- return hAsync("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
6747
+ return hAsync("div", { key: 'b140f7650e5e01711dc0778b04af83f9d004efc7', class: "container" }, this.renderContent());
6851
6748
  }
6852
6749
  static get cmpMeta() { return {
6853
6750
  "$flags$": 0,
@@ -6880,7 +6777,7 @@ class EdsDocsPalettes {
6880
6777
  }
6881
6778
  }
6882
6779
  render() {
6883
- return hAsync("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
6780
+ return hAsync("div", { key: 'e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a', class: "container" }, this.renderContent());
6884
6781
  }
6885
6782
  static get cmpMeta() { return {
6886
6783
  "$flags$": 0,
@@ -6918,6 +6815,7 @@ class EdsDropdown {
6918
6815
  * Toggles the visibility of the dropdown and manages focus.
6919
6816
  */
6920
6817
  this.handleClick = () => {
6818
+ var _a;
6921
6819
  this.isOpen = !this.isOpen;
6922
6820
  if (this.isOpen) {
6923
6821
  this.focusIndex = 0;
@@ -6926,6 +6824,13 @@ class EdsDropdown {
6926
6824
  else {
6927
6825
  this.closeDropdown();
6928
6826
  }
6827
+ sendAnalytics({
6828
+ category: 'ui-component',
6829
+ parentContext: null,
6830
+ tag: this.host.tagName.toLowerCase(),
6831
+ name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
6832
+ action: this.isOpen ? 'expanded' : 'collapsed'
6833
+ });
6929
6834
  };
6930
6835
  this.icon = 'chevron-down';
6931
6836
  this.label = undefined;
@@ -6992,39 +6897,20 @@ class EdsDropdown {
6992
6897
  componentDidLoad() {
6993
6898
  var _a;
6994
6899
  this.focusableItems = Array.from(((_a = this.dropdownContent) === null || _a === void 0 ? void 0 : _a.querySelectorAll('a, button')) || []);
6995
- const btns = this.host.shadowRoot.querySelectorAll('eds-button');
6996
- btns.forEach((btn) => {
6997
- this.emitContext(btn);
6998
- });
6999
- }
7000
- /**
7001
- * Emits a custom event called `parentContext` for a given button element.
7002
- * Provides context information about the dropdown component.
7003
- *
7004
- * @param linkElement - The button element to which the event will be dispatched.
7005
- */
7006
- emitContext(linkElement) {
7007
- const event = new CustomEvent('parentContext', {
7008
- detail: {
7009
- componentName: this.host.tagName.toLowerCase(),
7010
- identifier: null
7011
- }
7012
- });
7013
- linkElement.dispatchEvent(event);
7014
6900
  }
7015
6901
  /**
7016
6902
  * Renders the dropdown component and displays its content when open.
7017
6903
  * @returns {JSX.Element} The rendered dropdown component.
7018
6904
  */
7019
6905
  render() {
7020
- return (hAsync("div", { key: 'd49e23ee208cfb000baba83795899487e4d94af7', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: '6647007c34b47558873e470890893ae4f8e18b5c', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: '41bbd4e2bf02345393aaa97101b2c3aca2fa4085', class: {
6906
+ return (hAsync("div", { key: '84f4cea78ea1c40c7897a356fe03ac83922fccb8', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: '99dc51632dc82830054502a2d6d77d9fcefe9337', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: 'a63613a7ecf709fd1d22d77da4b2d286905fef3e', role: "menu", class: {
7021
6907
  'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
7022
6908
  'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
7023
6909
  'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
7024
6910
  'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
7025
6911
  'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
7026
6912
  'rounded-lg': this.rounded
7027
- }, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '714bad9f5a8ddf6d5ea246044a83b0a5102494c4' }))));
6913
+ }, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'dda70b865ed03dc7ad36a32934587bbcb0a16c1b' }))));
7028
6914
  }
7029
6915
  get host() { return getElement(this); }
7030
6916
  static get style() { return EdsDropdownStyle0; }
@@ -7101,7 +6987,7 @@ class EdsFooter {
7101
6987
  * @returns {JSX.Element} The rendered JSX for the footer component.
7102
6988
  */
7103
6989
  render() {
7104
- return (hAsync("footer", { key: '8d3d1b5d2acd76f56b2bc12539cb7d277b4dcd7f', class: `${this.extraClass} pb-banner` }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, hAsync("div", { class: "container pb-20 xl:pb-40 " }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })), hAsync("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" }))))) : null, hAsync("div", { key: '7d6e3a414ec8e8f8e2b795faf639948f8819f5cb', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, hAsync("div", { key: '9a475fd146ac0e1bc78c43940ee24ec31212fcb9', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '4b465113cdb882f919fba15e944eb56edbe3c570', class: "flex items-center gap-x-12" }, hAsync("a", { key: '1a8ad1ee5f4dfb77da036b03d0770cba8e5d725e', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, hAsync("eds-img", { key: '4714ea1a01b7b7eef8b3af0c04ffe793d51c4d5e', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), hAsync("div", { key: 'c4db6bab70e570e337c82136a0d9d6dad01c1039', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, hAsync("p", { key: '0b030a92c12a3a96fe2baacc13ac21f5bd708a50' }, this.fundedBy), hAsync("div", { key: '4714d0ccf0e3912ae330a6f39ed3607caf2b51a4', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, hAsync("span", { key: 'b4bc2d45871c7d1f9de1d6090959b12fd5246f01', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (hAsync("button", { key: '98b56eee7be6bc1558821933cebf2853b3bb68fc', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), hAsync("div", { key: 'f4bf4a0c99f3be920dd15f68e6f7e390cd85ecce', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
6990
+ return (hAsync("footer", { key: 'ba6500548e8f719b8670063918c61b391ddb8387', class: `${this.extraClass} pb-banner` }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, hAsync("div", { class: "container pb-20 xl:pb-40 " }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })), hAsync("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" }))))) : null, hAsync("div", { key: '1221cca6d40c4de8ed7ceefa84198817bf904630', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, hAsync("div", { key: 'ad55b938fb2961074822d6bf458f0ea7a15baa84', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '91c13fdd98508a812e5dcfa86056b5adc035623d', class: "flex items-center gap-x-12" }, hAsync("a", { key: '4ddd8715a5cabbff2209f8ceb389900c9eddcd74', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, hAsync("eds-img", { key: 'df5f16284084d9171cd3d567dd249a0ef98bde79', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), hAsync("div", { key: '0ff4328cc30f06c1a85ffc726d5b6b0dc53e49b9', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, hAsync("p", { key: '2cb2b4f072a141e58c9a2185c9179d475f9690bd' }, this.fundedBy), hAsync("div", { key: 'b31d1e18933fb1be11d8454f9a5301dedc839015', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, hAsync("span", { key: 'aab95785cfb2bc7d490ac9426ef5e421f9418dc9', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (hAsync("button", { key: 'fbd5bf3560faf0ee34d740bda423595c3cd21ad8', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), hAsync("div", { key: '0427234b6679ae05b673a5c6efb8447306f61876', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
7105
6991
  }
7106
6992
  static get style() { return EdsFooterStyle0; }
7107
6993
  static get cmpMeta() { return {
@@ -7217,13 +7103,20 @@ class EdsForm {
7217
7103
  this.hasError = Object.keys(newErrors).length > 0;
7218
7104
  };
7219
7105
  this.handleSubmit = async (e) => {
7220
- var _a;
7106
+ var _a, _b, _c;
7221
7107
  e.preventDefault();
7222
7108
  if (this.isSubmitting) {
7223
7109
  return;
7224
7110
  }
7225
7111
  this.validateForm();
7226
7112
  if (this.hasError) {
7113
+ sendAnalytics({
7114
+ category: 'ui-component',
7115
+ parentContext: null,
7116
+ tag: this.el.tagName.toLowerCase(),
7117
+ name: `${(_a = this.submitBtnLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()}/error` || '',
7118
+ action: 'click'
7119
+ });
7227
7120
  this.alertMessage = this.errorMessage;
7228
7121
  return;
7229
7122
  }
@@ -7244,7 +7137,7 @@ class EdsForm {
7244
7137
  formData.set('form_url', window.location.href);
7245
7138
  }
7246
7139
  if (this.authUser) {
7247
- formData.set('form_user', (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.email);
7140
+ formData.set('form_user', (_b = this.authUser) === null || _b === void 0 ? void 0 : _b.email);
7248
7141
  }
7249
7142
  /*const formDataObject = Object.fromEntries((formData as any).entries());
7250
7143
  console.log(JSON.stringify(formDataObject));*/
@@ -7270,6 +7163,13 @@ class EdsForm {
7270
7163
  //this.alertMessage = data.message || this.successMessage;
7271
7164
  toast.show(data.message || this.successMessage, 'success');
7272
7165
  this.formEl.reset();
7166
+ sendAnalytics({
7167
+ category: 'ui-component',
7168
+ parentContext: null,
7169
+ tag: this.el.tagName.toLowerCase(),
7170
+ name: `${(_c = this.submitBtnLabel) === null || _c === void 0 ? void 0 : _c.toLowerCase()}/success` || '',
7171
+ action: 'click'
7172
+ });
7273
7173
  }
7274
7174
  catch (err) {
7275
7175
  this.hasError = true;
@@ -7282,7 +7182,6 @@ class EdsForm {
7282
7182
  this.formSubmitting.emit(this.isSubmitting);
7283
7183
  }
7284
7184
  };
7285
- this.smallAlert = false;
7286
7185
  this.setFormUrl = true;
7287
7186
  this.submitBtn = true;
7288
7187
  this.submitBtnLabel = 'Submit';
@@ -7291,7 +7190,7 @@ class EdsForm {
7291
7190
  this.submitBtnHintMessage = 'To participate, please sign in using your EBRAINS account. If you do not have an account yet, you can easily create one on the EBRAINS portal.';
7292
7191
  this.endpoint = undefined;
7293
7192
  this.name = 'form';
7294
- this.fields = undefined;
7193
+ this.fields = [];
7295
7194
  this.values = {};
7296
7195
  this.coupleAuth = false;
7297
7196
  this.formSubmitted = false;
@@ -7301,6 +7200,7 @@ class EdsForm {
7301
7200
  this.alertMessage = null;
7302
7201
  this.isAuthenticated = false;
7303
7202
  this.authUser = undefined;
7203
+ this.parsedFields = [];
7304
7204
  }
7305
7205
  onAuthStatusChanged(event) {
7306
7206
  var _a;
@@ -7308,21 +7208,23 @@ class EdsForm {
7308
7208
  this.authUser = event.detail.user;
7309
7209
  }
7310
7210
  componentDidLoad() {
7211
+ this.parseFields(this.fields);
7311
7212
  // Emit context for each eds-link element after the component is fully loaded
7312
- const links = this.el.querySelectorAll('eds-button');
7213
+ /*const links = this.el.querySelectorAll('eds-button');
7313
7214
  links.forEach((link) => {
7314
- this.emitContext(link);
7315
- });
7316
- }
7317
- emitContext(linkElement) {
7318
- const event = new CustomEvent('parentContext', {
7319
- detail: {
7320
- componentName: this.el.tagName.toLowerCase(),
7321
- identifier: null
7322
- }
7323
- });
7324
- linkElement.dispatchEvent(event);
7215
+ this.emitContext(link);
7216
+ });*/
7325
7217
  }
7218
+ /*emitContext(linkElement: HTMLElement) {
7219
+ const event = new CustomEvent<ParentContextDetail>('parentContext', {
7220
+ detail: {
7221
+ componentName: this.el.tagName.toLowerCase(),
7222
+ identifier: null
7223
+ }
7224
+ });
7225
+
7226
+ linkElement.dispatchEvent(event);
7227
+ }*/
7326
7228
  // Visibility helper
7327
7229
  isFieldVisible(field) {
7328
7230
  if (!field.condition) {
@@ -7380,7 +7282,7 @@ class EdsForm {
7380
7282
  validateForm() {
7381
7283
  this.errors = {};
7382
7284
  this.hasError = false;
7383
- this.parseFields.forEach((field) => {
7285
+ this.parsedFields.forEach((field) => {
7384
7286
  if (field.type !== 'hidden') {
7385
7287
  if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
7386
7288
  // Single checkbox validation
@@ -7462,27 +7364,48 @@ class EdsForm {
7462
7364
  });
7463
7365
  return formData;
7464
7366
  }
7465
- get parseFields() {
7466
- return JSON.parse(this.fields);
7367
+ parseFields(newValue) {
7368
+ try {
7369
+ if (typeof newValue === 'string') {
7370
+ this.parsedFields = JSON.parse(newValue);
7371
+ }
7372
+ else if (Array.isArray(newValue)) {
7373
+ this.parsedFields = newValue;
7374
+ }
7375
+ else if (newValue && typeof newValue === 'object') {
7376
+ // In case a single object is passed, wrap it in an array.
7377
+ this.parsedFields = newValue;
7378
+ }
7379
+ else {
7380
+ this.parsedFields = [];
7381
+ }
7382
+ }
7383
+ catch (error) {
7384
+ // eslint-disable-next-line
7385
+ console.error('Error parsing fields prop:', error);
7386
+ this.parsedFields = [];
7387
+ }
7467
7388
  }
7468
7389
  render() {
7469
- const hiddenFields = this.parseFields.filter((field) => field.type === 'hidden');
7470
- const otherFields = this.parseFields.filter((field) => field.type !== 'hidden');
7471
- return (hAsync("form", { key: 'fdb974998dfd27c0d857d0fbfbbe9e769e55d7bb', ref: (el) => (this.formEl = el), enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, hAsync("div", { key: 'dfbe5adce9e5685736169e88408590088aba5b1e' }, hAsync("slot", { key: 'f5c5356a8b87bf63fdd21901da81291c596f1487' }), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
7390
+ const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
7391
+ const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
7392
+ return (hAsync("form", { key: '3d4ae34d48c0551f9de6dacb50ceee15b487b5de', ref: (el) => (this.formEl = el), enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, hAsync("div", { key: '344c56dcba3de5a1b55255d794a78fb0f19d04b5' }, hAsync("slot", { key: '3ca6d203458d67fa66840fac55f94d71acc2ee4d' }), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
7472
7393
  var _a, _b;
7473
7394
  if (!this.isFieldVisible(field)) {
7474
7395
  return null;
7475
7396
  }
7476
7397
  return (hAsync("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, type: field.type, icon: field.icon || null, required: field.required, maxLength: field.maxlength, hint: field.hint, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
7477
- })), this.submitBtn && (hAsync("div", { key: '2c3165a56d5bec9135a8695cae1b87981167c949', class: "mt-20" }, hAsync("eds-button", { key: 'f311628ff58cd03ebbd0f7ccb0623df817d416da', intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || (this.coupleAuth && !this.isAuthenticated), loading: this.isSubmitting, onClick: (e) => this.handleSubmit(e) }), this.coupleAuth && !this.isAuthenticated ? (hAsync("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage)) : null)), this.alertMessage && (this.formSubmitted || this.hasError) && (hAsync("div", { key: '1c7adc93081294eb86b71e808933215fe04fa033', class: "mt-20" }, hAsync("eds-alert", { key: 'd221dd0674be734a8b7382ea2eeb97509f6bc3a6', message: this.alertMessage, intent: this.hasError ? 'error' : 'success', direction: "horizontal" })))));
7398
+ })), this.submitBtn && (hAsync("div", { key: '22915285f3522f6d260e358eea964c59a9557a55', class: "mt-20" }, hAsync("eds-button", { key: '9e2191ba8cc49d7ac2a6588c0fa468214773c791', intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || (this.coupleAuth && !this.isAuthenticated), loading: this.isSubmitting, onClick: (e) => this.handleSubmit(e) }), this.coupleAuth && !this.isAuthenticated ? (hAsync("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage)) : null)), this.alertMessage && (this.formSubmitted || this.hasError) && (hAsync("div", { key: '8045c3dff26286a6735157b82afd56ec9001ba14', class: "mt-20" }, hAsync("eds-alert", { key: 'dc8c8f74e8aada9023f110bb862afee1fb629601', message: this.alertMessage, intent: this.hasError ? 'error' : 'success', direction: "horizontal" })))));
7478
7399
  }
7479
7400
  get el() { return getElement(this); }
7401
+ static get watchers() { return {
7402
+ "fields": ["parseFields"]
7403
+ }; }
7480
7404
  static get style() { return EdsFormStyle0; }
7481
7405
  static get cmpMeta() { return {
7482
7406
  "$flags$": 4,
7483
7407
  "$tagName$": "eds-form",
7484
7408
  "$members$": {
7485
- "smallAlert": [4, "small-alert"],
7486
7409
  "setFormUrl": [4, "set-form-url"],
7487
7410
  "submitBtn": [4, "submit-btn"],
7488
7411
  "submitBtnLabel": [1, "submit-btn-label"],
@@ -7500,7 +7423,8 @@ class EdsForm {
7500
7423
  "isSubmitting": [32],
7501
7424
  "alertMessage": [32],
7502
7425
  "isAuthenticated": [32],
7503
- "authUser": [32]
7426
+ "authUser": [32],
7427
+ "parsedFields": [32]
7504
7428
  },
7505
7429
  "$listeners$": [[16, "authStatusChanged", "onAuthStatusChanged"]],
7506
7430
  "$lazyBundleId$": "-",
@@ -7601,7 +7525,7 @@ class EdsFrame {
7601
7525
  return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
7602
7526
  }
7603
7527
  render() {
7604
- return (hAsync("div", { key: '0c3a43efc1a125af5999af88c4eb071b5c3bc6c5', class: this.articleClasses() }, hAsync("div", { key: '32303d5e2c2f3b01efe1ceaf828346f873bea6b6', class: "effect-height flex items-center justify-between py-8 px-12" }, hAsync("span", { key: '75f7f6750413dad4af2ea62c12ffb994491d5d01', class: "f-ui-02" }, this.frameLabel), !this.iframeError ? (hAsync("eds-link", { label: this.urlLabel, url: this.storyLink, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), hAsync("div", { key: '1fd99f6eda026814910b0cd93635616b7d3ffe09', class: "border-softer border-t-2" }, this.iframeError ? (hAsync("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (hAsync("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
7528
+ return (hAsync("div", { key: '20786dd40414d29f98d496e29720bd78b9d7cf8e', class: this.articleClasses() }, hAsync("div", { key: '208612330c9d2872c68aeb310e164c8a915a51ef', class: "effect-height flex items-center justify-between py-8 px-12" }, hAsync("span", { key: 'ada2a40384ffaffadc8887580aa6184422008a68', class: "f-ui-02" }, this.frameLabel), !this.iframeError ? (hAsync("eds-link", { label: this.urlLabel, url: this.storyLink, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), hAsync("div", { key: '26a5ae1c81b60b05b6f4859ffa4dbd13bb2557f3', class: "border-softer border-t-2" }, this.iframeError ? (hAsync("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (hAsync("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
7605
7529
  }
7606
7530
  get el() { return getElement(this); }
7607
7531
  static get cmpMeta() { return {
@@ -7767,11 +7691,7 @@ class EdsHeader {
7767
7691
  this.homeUrl = '/';
7768
7692
  this.links = undefined;
7769
7693
  this.inverseHeader = false;
7770
- this.userFeature = false;
7771
7694
  this.menuEnabled = false;
7772
- this.keycloakUrl = undefined;
7773
- this.keycloakRealm = undefined;
7774
- this.keycloakClientId = undefined;
7775
7695
  this.isMenuOpen = false;
7776
7696
  this.isUserMenuOpen = false;
7777
7697
  this.isAuthenticated = false;
@@ -7844,8 +7764,8 @@ class EdsHeader {
7844
7764
  return [];
7845
7765
  }
7846
7766
  render() {
7847
- return (hAsync("header", { key: 'b16e5e84ba7565ebf4ea5892a9a1af84fc94769d', class: `flex items-center justify-between relative z-10
7848
- ${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '00206a2714dedfe205151002cc10c430e75814fb', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: '25fc6207d61bb4cc06877dd0b15bf56392b50255', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: '8d1ee2947db26e5acb556da845fe1b811a8d18b2', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: '5c70e48f3a617a6abe402659b37741e657440cbc', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: '773b60e90ecfe336fede86ea6e3b0ec2fd10bd72' }), this.userFeature ? (hAsync("div", { class: "px-16" }, hAsync("eds-user", { "keycloak-url": this.keycloakUrl, "keycloak-realm": this.keycloakRealm, "keycloak-client-id": this.keycloakClientId }))) : null, this.menuEnabled ? (hAsync("div", { class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
7767
+ return (hAsync("header", { key: 'ce002da29cee5446f64694ba93ec67f89c180ac4', class: `flex items-center justify-between relative z-10
7768
+ ${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '579593f3180b27d129fd9ca380d6b74d0efcbd1e', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: 'c72d87a2ff7cd1ea2b0390cd364e376d1f52c67f', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: '6755e304c48624049af8426d4d9b19d0cb156dda', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: '390f9b6c6c950719598eec88b4befb4224cb0c03', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: 'bc7b093739cc3058e4eb3d4eddbb0b49856b5710' }), this.menuEnabled ? (hAsync("div", { class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
7849
7769
  }
7850
7770
  get hostEl() { return getElement(this); }
7851
7771
  static get style() { return EdsHeaderStyle0; }
@@ -7856,11 +7776,7 @@ class EdsHeader {
7856
7776
  "homeUrl": [513, "home-url"],
7857
7777
  "links": [1],
7858
7778
  "inverseHeader": [4, "inverse-header"],
7859
- "userFeature": [4, "user-feature"],
7860
7779
  "menuEnabled": [4, "menu-enabled"],
7861
- "keycloakUrl": [1, "keycloak-url"],
7862
- "keycloakRealm": [1, "keycloak-realm"],
7863
- "keycloakClientId": [1, "keycloak-client-id"],
7864
7780
  "isMenuOpen": [32],
7865
7781
  "isUserMenuOpen": [32],
7866
7782
  "isAuthenticated": [32]
@@ -9678,7 +9594,7 @@ class EdsIconArrowDiagonal {
9678
9594
  this.addClass = '';
9679
9595
  }
9680
9596
  render() {
9681
- return hAsync("span", { key: '08ebdce5cfbe75bf4bfab8f72493e2178be55c3c', class: this.addClass, innerHTML: arrowDiagonal });
9597
+ return hAsync("span", { key: 'd85a4d425e0c255efe4763d4a13f13b6ff727c2c', class: this.addClass, innerHTML: arrowDiagonal });
9682
9598
  }
9683
9599
  static get cmpMeta() { return {
9684
9600
  "$flags$": 0,
@@ -9701,7 +9617,7 @@ class EdsIconArrowRight {
9701
9617
  this.class = '';
9702
9618
  }
9703
9619
  render() {
9704
- return hAsync("span", { key: '6d704324784e6c3d9c221dcaf83bd86a8a6a94ab', class: this.class, innerHTML: arrowRight });
9620
+ return hAsync("span", { key: '4a2b33b86753acab8270a45c7b250603b128bc88', class: this.class, innerHTML: arrowRight });
9705
9621
  }
9706
9622
  static get cmpMeta() { return {
9707
9623
  "$flags$": 0,
@@ -9724,7 +9640,7 @@ class EdsIconBluesky {
9724
9640
  this.class = '';
9725
9641
  }
9726
9642
  render() {
9727
- return hAsync("span", { key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d', class: this.class, innerHTML: bluesky });
9643
+ return hAsync("span", { key: '845a157678b9d059b2c9bd8a6265d3a62f33c31a', class: this.class, innerHTML: bluesky });
9728
9644
  }
9729
9645
  static get cmpMeta() { return {
9730
9646
  "$flags$": 0,
@@ -9747,7 +9663,7 @@ class EdsIconChevronDown {
9747
9663
  this.class = '';
9748
9664
  }
9749
9665
  render() {
9750
- return hAsync("span", { key: 'bc01e9e10033245e02403b6b919911018eef9919', class: this.class, innerHTML: chevronDown });
9666
+ return hAsync("span", { key: 'fa8022d27b91e909d4cd5522c6d0406be698a412', class: this.class, innerHTML: chevronDown });
9751
9667
  }
9752
9668
  static get cmpMeta() { return {
9753
9669
  "$flags$": 0,
@@ -9770,7 +9686,7 @@ class EdsIconChevronLeft {
9770
9686
  this.class = '';
9771
9687
  }
9772
9688
  render() {
9773
- return hAsync("span", { key: 'd74bd0b2ddfd5bd61c97309aebb71d7c29f0cf43', class: this.class, innerHTML: chevronLeft });
9689
+ return hAsync("span", { key: 'c723d7f1bbd596063ae7e66123b8038af5320a54', class: this.class, innerHTML: chevronLeft });
9774
9690
  }
9775
9691
  static get cmpMeta() { return {
9776
9692
  "$flags$": 0,
@@ -9793,7 +9709,7 @@ class EdsIconChevronRight {
9793
9709
  this.class = '';
9794
9710
  }
9795
9711
  render() {
9796
- return hAsync("span", { key: '998491aed74bd3edd1fb8545f85ab52cf2703b3f', class: this.class, innerHTML: chevronRight });
9712
+ return hAsync("span", { key: 'f770cd9151077e8708c76d2082613c65a20c420f', class: this.class, innerHTML: chevronRight });
9797
9713
  }
9798
9714
  static get cmpMeta() { return {
9799
9715
  "$flags$": 0,
@@ -9816,7 +9732,7 @@ class EdsIconChevronUp {
9816
9732
  this.class = '';
9817
9733
  }
9818
9734
  render() {
9819
- return hAsync("span", { key: 'd0723afa766fc6dac454ec84602bd50ba4e49950', class: this.class, innerHTML: chevronUp });
9735
+ return hAsync("span", { key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6', class: this.class, innerHTML: chevronUp });
9820
9736
  }
9821
9737
  static get cmpMeta() { return {
9822
9738
  "$flags$": 0,
@@ -9839,7 +9755,7 @@ class EdsIconClose {
9839
9755
  this.class = '';
9840
9756
  }
9841
9757
  render() {
9842
- return hAsync("span", { key: '365ad476b1be9c708e73598cad1dd42a908fa1cd', class: this.class, innerHTML: close });
9758
+ return hAsync("span", { key: '947f6615e8ee155be98b379a9c771cc0d453becd', class: this.class, innerHTML: close });
9843
9759
  }
9844
9760
  static get cmpMeta() { return {
9845
9761
  "$flags$": 0,
@@ -9862,7 +9778,7 @@ class EdsIconCopy {
9862
9778
  this.class = '';
9863
9779
  }
9864
9780
  render() {
9865
- return hAsync("span", { key: '770c34b98ec0e0a7e16de4d7b5b41b4afec9911e', class: this.class, innerHTML: copy });
9781
+ return hAsync("span", { key: '1e23d4493d5a1d07bc794da20cc4e445a87d56b0', class: this.class, innerHTML: copy });
9866
9782
  }
9867
9783
  static get cmpMeta() { return {
9868
9784
  "$flags$": 0,
@@ -9885,7 +9801,7 @@ class EdsIconEu {
9885
9801
  this.class = '';
9886
9802
  }
9887
9803
  render() {
9888
- return hAsync("span", { key: 'cc6e5f7d7333ff7ed4a6f716e0ee90806fa782f9', class: this.class, innerHTML: euSvg });
9804
+ return hAsync("span", { key: '14254e1b9d43562e6f3f943de22aa8dd4d89a044', class: this.class, innerHTML: euSvg });
9889
9805
  }
9890
9806
  static get cmpMeta() { return {
9891
9807
  "$flags$": 0,
@@ -9908,7 +9824,7 @@ class EdsIconFacebook {
9908
9824
  this.class = '';
9909
9825
  }
9910
9826
  render() {
9911
- return hAsync("span", { key: 'f859db4f8b6679e138e6d72d1d0f5e5bd1bcf997', class: this.class, innerHTML: facebook });
9827
+ return hAsync("span", { key: '902598891dfe926f92ce5d30dc135896c6eccd43', class: this.class, innerHTML: facebook });
9912
9828
  }
9913
9829
  static get cmpMeta() { return {
9914
9830
  "$flags$": 0,
@@ -9931,7 +9847,7 @@ class EdsIconGitlab {
9931
9847
  this.class = '';
9932
9848
  }
9933
9849
  render() {
9934
- return hAsync("span", { key: '5a91cfc15c4dec2b50ce57fb0f1d6cc8f57b03e8', class: this.class, innerHTML: gitlabBlack });
9850
+ return hAsync("span", { key: '128f9265dfc1aee95586ba0a3fd20dd131678893', class: this.class, innerHTML: gitlabBlack });
9935
9851
  }
9936
9852
  static get cmpMeta() { return {
9937
9853
  "$flags$": 0,
@@ -9954,7 +9870,7 @@ class EdsIconLinkedin {
9954
9870
  this.class = '';
9955
9871
  }
9956
9872
  render() {
9957
- return hAsync("span", { key: 'b8e0661a74a92c72b6db109cb48db12da48dcf92', class: this.class, innerHTML: linkedin });
9873
+ return hAsync("span", { key: '0f9675a371ca7bb460882c04bf2bb0c103273a0d', class: this.class, innerHTML: linkedin });
9958
9874
  }
9959
9875
  static get cmpMeta() { return {
9960
9876
  "$flags$": 0,
@@ -9977,7 +9893,7 @@ class EdsIconLoader {
9977
9893
  this.class = '';
9978
9894
  }
9979
9895
  render() {
9980
- return hAsync("span", { key: '260c4eeb69ff79d943571c1461346b9019ea513a', class: this.class, innerHTML: loader });
9896
+ return hAsync("span", { key: 'f11c60068baa2d2398056b3d7f04129d9deb4517', class: this.class, innerHTML: loader });
9981
9897
  }
9982
9898
  static get cmpMeta() { return {
9983
9899
  "$flags$": 0,
@@ -10000,7 +9916,7 @@ class EdsIconMastodon {
10000
9916
  this.class = '';
10001
9917
  }
10002
9918
  render() {
10003
- return hAsync("span", { key: '902598891dfe926f92ce5d30dc135896c6eccd43', class: this.class, innerHTML: mastodon });
9919
+ return hAsync("span", { key: '1f68e5d0b6f8455f40bf94f6095eceff00b7887e', class: this.class, innerHTML: mastodon });
10004
9920
  }
10005
9921
  static get cmpMeta() { return {
10006
9922
  "$flags$": 0,
@@ -10023,7 +9939,7 @@ class EdsIconMenu {
10023
9939
  this.class = '';
10024
9940
  }
10025
9941
  render() {
10026
- return hAsync("span", { key: '9d15be28017eb074a69846a2a639861de997130b', class: this.class, innerHTML: menu });
9942
+ return hAsync("span", { key: '0084602c8e870b70caa66479f71bed3bd0cce94e', class: this.class, innerHTML: menu });
10027
9943
  }
10028
9944
  static get cmpMeta() { return {
10029
9945
  "$flags$": 0,
@@ -10046,7 +9962,7 @@ class EdsIconMore {
10046
9962
  this.class = '';
10047
9963
  }
10048
9964
  render() {
10049
- return hAsync("span", { key: '0f7d61104f8f2b0a83c5b60a6ce81c6ab91ecb9c', class: this.class, innerHTML: more });
9965
+ return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: more });
10050
9966
  }
10051
9967
  static get cmpMeta() { return {
10052
9968
  "$flags$": 0,
@@ -10069,7 +9985,7 @@ class EdsIconSearch {
10069
9985
  this.class = '';
10070
9986
  }
10071
9987
  render() {
10072
- return hAsync("span", { key: '6795d973d3a1fff27c2fd6181235d0284abaf3b7', class: this.class, innerHTML: search });
9988
+ return hAsync("span", { key: '42acc730afd956c2884b0789b3ea37ccf323630b', class: this.class, innerHTML: search });
10073
9989
  }
10074
9990
  static get cmpMeta() { return {
10075
9991
  "$flags$": 0,
@@ -10092,7 +10008,7 @@ class EdsIconSuccess {
10092
10008
  this.class = '';
10093
10009
  }
10094
10010
  render() {
10095
- return hAsync("span", { key: '15e428fd72496249adfe372847d5c683cd3412b1', class: this.class, innerHTML: success });
10011
+ return hAsync("span", { key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d', class: this.class, innerHTML: success });
10096
10012
  }
10097
10013
  static get cmpMeta() { return {
10098
10014
  "$flags$": 0,
@@ -10115,7 +10031,7 @@ class EdsIconTwitter {
10115
10031
  this.class = '';
10116
10032
  }
10117
10033
  render() {
10118
- return hAsync("span", { key: 'cfa2d903e79d5a17fb7511e078c0d26bd6d3abd6', class: this.class, innerHTML: twitter });
10034
+ return hAsync("span", { key: 'a06ab2e79a1ec7603244ec09649ccc2c9ea1950c', class: this.class, innerHTML: twitter });
10119
10035
  }
10120
10036
  static get cmpMeta() { return {
10121
10037
  "$flags$": 0,
@@ -10138,7 +10054,7 @@ class EdsIconUser {
10138
10054
  this.class = '';
10139
10055
  }
10140
10056
  render() {
10141
- return hAsync("span", { key: 'dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0', class: this.class, innerHTML: user });
10057
+ return hAsync("span", { key: 'cb31d12146ff577195650b502f51005092404a30', class: this.class, innerHTML: user });
10142
10058
  }
10143
10059
  static get cmpMeta() { return {
10144
10060
  "$flags$": 0,
@@ -10217,7 +10133,7 @@ class EdsIconYoutube {
10217
10133
  this.class = '';
10218
10134
  }
10219
10135
  render() {
10220
- return hAsync("span", { key: 'ecd12a21c5797f93f7d8abe67803b27862967b2f', class: this.class, innerHTML: youtube });
10136
+ return hAsync("span", { key: '4eba69bfec926b7a3490feee15b5947a8ab8a7b9', class: this.class, innerHTML: youtube });
10221
10137
  }
10222
10138
  static get cmpMeta() { return {
10223
10139
  "$flags$": 0,
@@ -10261,11 +10177,16 @@ class EdsImg {
10261
10177
  this.loaded = true;
10262
10178
  this.showBg = false;
10263
10179
  };
10180
+ // On error, remove the background effect so users know the image failed to load.
10181
+ this.handleError = () => {
10182
+ this.loaded = true;
10183
+ this.showBg = false;
10184
+ };
10264
10185
  this.handleTransitionEnd = () => {
10265
10186
  this.showBg = false;
10266
10187
  };
10267
10188
  this.src = undefined;
10268
- this.alt = undefined;
10189
+ this.alt = '';
10269
10190
  this.width = undefined;
10270
10191
  this.height = undefined;
10271
10192
  this.srcset = undefined;
@@ -10288,14 +10209,14 @@ class EdsImg {
10288
10209
  imgOpts['loading'] = 'lazy';
10289
10210
  imgOpts['decoding'] = 'async';
10290
10211
  }
10291
- return (hAsync("div", { key: 'fde8a77bb251e3be2ec3a42b8d83f585eae65b2c', class: {
10212
+ return (hAsync("div", { key: '733be8df2b9e3db1b5b13aaa47c16a9c26f345d7', class: {
10292
10213
  'items-center justify-center': true,
10293
10214
  'effect-bg-pattern': this.lazyload && this.showBg
10294
- } }, hAsync("picture", { key: 'e512cbd9134f14f5418856cf451cddfb93ca1760' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: '98339035b8d055d8bb8de654ce1f4ba410ef3865', ref: (el) => (this.img = el), class: {
10215
+ } }, hAsync("picture", { key: '3a6a0289bcf8a2851278eb6c6fbe64bfe7004014' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: 'b5d92e20a28f67a13d926f081b5f85dbd981ff78', ref: (el) => (this.img = el), class: {
10295
10216
  'effect-opacity object-cover object-center': true,
10296
10217
  'opacity-100': this.loaded,
10297
10218
  'opacity-0': !this.loaded
10298
- }, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, imgOpts, { onLoad: this.handleLoad, onTransitionEnd: this.handleTransitionEnd })))));
10219
+ }, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, imgOpts, { onLoad: this.handleLoad, onError: this.handleError, onTransitionEnd: this.handleTransitionEnd })))));
10299
10220
  }
10300
10221
  get imgElement() { return getElement(this); }
10301
10222
  static get style() { return EdsImgStyle0; }
@@ -10372,12 +10293,12 @@ class EdsInput {
10372
10293
  render() {
10373
10294
  const withIcon = !!this.icon;
10374
10295
  const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
10375
- return (hAsync("div", { key: 'aed6c5b0bc70ed712c74041b1bafce771c0da2d3', class: "relative flex items-center" }, this.type === 'textarea' ? (hAsync("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (hAsync("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (hAsync("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (hAsync("input", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined, class: `
10296
+ return (hAsync("div", { key: 'e67c7566fe5a1574d6ff0fff61178b163c5881f9', class: "relative flex items-center" }, this.type === 'textarea' ? (hAsync("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (hAsync("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (hAsync("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (hAsync("input", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined, class: `
10376
10297
  ${this.extraClass || ''}
10377
10298
  input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
10378
10299
  ${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
10379
10300
  ${this.error ? 'input-error' : ''}
10380
- `, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '2a95bcd05820c60e428c9e5de3cc2c3fc6ceb3db', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (hAsync("eds-icon-wrapper", { key: 'd20b1b17f45c77e1e7ad63ca5cb12db777074601', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
10301
+ `, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '35bc563715e65073898259d12b4ef2c467b14439', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (hAsync("eds-icon-wrapper", { key: '54cab667a1b8b1bb906c2359cdbd2fb23171ba8b', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
10381
10302
  }
10382
10303
  get el() { return getElement(this); }
10383
10304
  static get watchers() { return {
@@ -10478,11 +10399,11 @@ class EdsInputField {
10478
10399
  icon: this.icon,
10479
10400
  checked: this.checked
10480
10401
  };
10481
- return (hAsync("div", { key: 'e1e4c68a8ca48b9526217b1c1eeaecbf3c73a652', class: "space-y-8" }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4 mt-8" }, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && hAsync("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((option) => (hAsync("div", { class: "flex items-center gap-x-2", key: option.value }, hAsync("eds-input", Object.assign({}, inputOpts, { value: option.value })), hAsync("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (hAsync("div", { class: "flex items-center gap-x-8" }, hAsync("eds-input", Object.assign({}, inputOpts)), this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (hAsync("div", null, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && hAsync("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === 'select' ? (hAsync("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (hAsync("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (hAsync("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
10402
+ return (hAsync("div", { key: '6c2e228bc3940212ad4df6ed99bdd69b99342afb', class: "space-y-8" }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4 mt-8" }, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (hAsync("div", { class: "flex items-center gap-x-2", key: option.value }, hAsync("eds-input", Object.assign({}, inputOpts, { value: option.value })), hAsync("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (hAsync("div", { class: "flex items-center gap-x-8" }, hAsync("eds-input", Object.assign({}, inputOpts)), this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (hAsync("div", null, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (hAsync("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (hAsync("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (hAsync("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
10482
10403
  var _a, _b, _c;
10483
10404
  const opt = this.parsedOptions;
10484
10405
  return (hAsync("eds-input-range", { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, name: "range-slider" }));
10485
- })()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: '7c283d5b193f179cdefbb011862358e3c92685c5', name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
10406
+ })()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: '16f2dd9061fc779b081c973e25d1bf9fb26fcf8b', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
10486
10407
  }
10487
10408
  static get style() { return EdsInputFieldStyle0; }
10488
10409
  static get cmpMeta() { return {
@@ -10528,7 +10449,7 @@ class EdsInputFooter {
10528
10449
  this.link = undefined;
10529
10450
  }
10530
10451
  render() {
10531
- return (hAsync("div", { key: '9ce8da179446c0302754f1285b3733d928da042f', class: "space-y-4" }, this.error && this.errorMessage && (hAsync("div", { key: 'aab7e8ded78e48864b2245603c3987a6ec3f3959', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: '152a06328c6cbb40f0d52310ac3ce761de21a26c', icon: "warning" }), hAsync("p", { key: '658825aa4649ad83a150a0dc92d37f1b078de4c3', class: "f-ui-04 ml-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: '378ae9ef876e087f66302547958af4543262a441', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("a", { key: 'cd396f03bdbd12a47544a44de17cfce35b8d206a', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
10452
+ return (hAsync("div", { key: 'c088f6c9bf4c3ca1efce1a1ff41ece8d4f8a6756', class: "space-y-4" }, this.error && this.errorMessage && (hAsync("div", { key: '7404a329f2b5da7f9444f986178c5e4dbbe838ad', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: '8f9d83b1d8dda824cac17d9c2ce3cb6cc5a58945', icon: "warning" }), hAsync("p", { key: 'f223076bc18088e264b4888d18bb9673f803d875', class: "f-ui-04 ml-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: '40bdbc35ba4985802177d7f9b2c44f893e4cb40c', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("a", { key: 'e6297a49f63ce2ab14bac8df0186fb42fab4416d', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
10532
10453
  }
10533
10454
  static get cmpMeta() { return {
10534
10455
  "$flags$": 0,
@@ -10558,7 +10479,7 @@ class EdsInputLabel {
10558
10479
  this.disabled = false;
10559
10480
  }
10560
10481
  render() {
10561
- return (hAsync("label", { key: 'd83f8267317c2d5ef500460e938b166c0e6517b1', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: '85ad9e44af342c191d8aa7aeb7e4c6288c544d6d' }, hAsync("span", { key: 'b350ee023f80bc9d5f24ef2fac9f74b2461d27b9', "aria-hidden": "true" }, "*"), hAsync("span", { key: 'af55a83d8998ac70817cb2f7cebfb74f276a6387', class: "sr-only" }, "required")))));
10482
+ return (hAsync("label", { key: '38be7206acfad300657a99218c3138e91069d710', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: '1e80610f66d51a1c46918086bb5b5153c0e35a3c' }, hAsync("span", { key: '83d15d62c0539f1847746b4a2b9c9971b4852da8', "aria-hidden": "true" }, "*"), hAsync("span", { key: '3f45f5a436c41cf7e55570a2abe8844c8daa7525', class: "sr-only" }, "required")))));
10562
10483
  }
10563
10484
  static get cmpMeta() { return {
10564
10485
  "$flags$": 0,
@@ -10606,9 +10527,9 @@ class EdsInputRange {
10606
10527
  return this.inputElement;
10607
10528
  }
10608
10529
  render() {
10609
- return (hAsync("div", { key: '8927f714cae6dd2237202190eade7b31cc7adc03', class: "relative flex flex-col items-start space-y-2" }, hAsync("input", { key: '1b3ba13453992c84e00d3b3261a9d2008f45634f', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input",
10530
+ return (hAsync("div", { key: '6a70b857cfbeb152e6f099b6dfc91cc9fec5bf11', class: "relative flex flex-col items-start space-y-2" }, hAsync("input", { key: 'da4c0158b1d33804404f4373b3c55c53b5b2f53b', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input",
10610
10531
  //aria-describedby={describedBy}
10611
- onInput: this.onInput }), hAsync("p", { key: 'e04c275e51710ae09eec1603911446e1e65bf648', id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal)));
10532
+ onInput: this.onInput }), hAsync("p", { key: '66bc2e755e4eb38015e32441599a9f9bade7c679', id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal)));
10612
10533
  }
10613
10534
  get el() { return getElement(this); }
10614
10535
  static get cmpMeta() { return {
@@ -10665,7 +10586,7 @@ class EdsInputSearch {
10665
10586
  return this.inputElement;
10666
10587
  }
10667
10588
  render() {
10668
- return (hAsync("div", { key: '4a6a629fcaefa3ec3bbfb577e1a1f85e8d4f0ee0', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: '7cb203fabdf6f1160d95d7ca125f0ca33affd1c6', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest" }), hAsync("input", { key: 'fe32c40b6e438526b8ef6a74783a6455fb91a467', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", class: "search-input w-full py-6 input input-icon pl-36",
10589
+ return (hAsync("div", { key: 'df7ee546beed6eedfba5a19e0fdf349d9aaece90', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: '4663fdd0a9ba4eace47dc90f9c7f50fc2e6f7925', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest" }), hAsync("input", { key: 'e3e72f3dea068cbab3d398de36dd09e4a7f1ce93', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", class: "search-input w-full py-6 input input-icon pl-36",
10669
10590
  //aria-describedby={describedBy}
10670
10591
  onInput: this.onInput, onChange: this.onChange })));
10671
10592
  }
@@ -10706,6 +10627,9 @@ class EdsInputSearch {
10706
10627
  *
10707
10628
  * The component will automatically fetch data if a dynamic configuration is provided.
10708
10629
  */
10630
+ /**
10631
+ * @internal
10632
+ */
10709
10633
  class EdsInputSelect {
10710
10634
  constructor(hostRef) {
10711
10635
  registerInstance(this, hostRef);
@@ -10735,6 +10659,7 @@ class EdsInputSelect {
10735
10659
  this.loading = false;
10736
10660
  this.dynamicValueKey = 'value';
10737
10661
  this.dynamicLabelKey = 'label';
10662
+ this.hasFetched = false;
10738
10663
  }
10739
10664
  componentWillLoad() {
10740
10665
  this.loadOptions();
@@ -10751,6 +10676,9 @@ class EdsInputSelect {
10751
10676
  async loadOptions() {
10752
10677
  // If the first option contains an "endpoint" key, assume dynamic fetch mode.
10753
10678
  if (this.options && this.options.length > 0 && this.options[0].endpoint) {
10679
+ if (this.hasFetched) {
10680
+ return;
10681
+ }
10754
10682
  const config = this.options[0];
10755
10683
  const endpoint = config.endpoint;
10756
10684
  this.dynamicValueKey = config.value || 'value';
@@ -10764,6 +10692,7 @@ class EdsInputSelect {
10764
10692
  const data = await response.json();
10765
10693
  // Assume the API returns an array of objects.
10766
10694
  this.dynamicOptions = data;
10695
+ this.hasFetched = true;
10767
10696
  }
10768
10697
  catch (error) {
10769
10698
  //console.error('Error fetching dynamic options:', error);
@@ -10780,8 +10709,11 @@ class EdsInputSelect {
10780
10709
  this.dynamicLabelKey = this.labelKey;
10781
10710
  }
10782
10711
  }
10712
+ getValueByPath(obj, path) {
10713
+ return path.split('.').reduce((acc, part) => acc && acc[part], obj);
10714
+ }
10783
10715
  render() {
10784
- return (hAsync("div", { key: '0b45eaae992171cd9795f7bf01883b0f3efbcc13', class: "relative" }, hAsync("select", { key: '0ee8bccb24f7bd65e9347c0b79905154db39dca7', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, hAsync("option", { key: 'b1b53dcf8dd3155e8dba28327f05b4725a013435', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => (hAsync("option", { key: index, value: option[this.dynamicValueKey] }, option[this.dynamicLabelKey])))), hAsync("span", { key: '3f652e7ed7570b602565af3f0e3c5c91506e4089', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, hAsync("eds-icon-wrapper", { key: '2237727060af6286c346f749d2e8e3f7f86c7c70', class: "w-20 h-20", icon: "chevron-right" }))));
10716
+ return (hAsync("div", { key: 'c1469a270fa5e775ac4d17f1c7e259d02477d7a2', class: "relative" }, hAsync("select", { key: '3aab6ec60d386e51ce27c1cfc26059132d96957f', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, hAsync("option", { key: 'ee3aa20ed1b99bddd7bafa3aac43f3c06db07b8f', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => (hAsync("option", { key: index, value: this.getValueByPath(option, this.dynamicValueKey) }, this.getValueByPath(option, this.dynamicLabelKey))))), hAsync("span", { key: '7e70051ac49efd053f00521b51ad19e88cf5cdb7', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, hAsync("eds-icon-wrapper", { key: '2ef2d0d744216a1f931ac0bfe1058f54c9af4402', class: "w-20 h-20", icon: "chevron-right" }))));
10785
10717
  }
10786
10718
  static get watchers() { return {
10787
10719
  "options": ["loadOptions"]
@@ -10804,7 +10736,8 @@ class EdsInputSelect {
10804
10736
  "dynamicOptions": [32],
10805
10737
  "loading": [32],
10806
10738
  "dynamicValueKey": [32],
10807
- "dynamicLabelKey": [32]
10739
+ "dynamicLabelKey": [32],
10740
+ "hasFetched": [32]
10808
10741
  },
10809
10742
  "$listeners$": undefined,
10810
10743
  "$lazyBundleId$": "-",
@@ -10964,12 +10897,11 @@ class EdsLink {
10964
10897
  this.hideLabelOnSmallScreen = false;
10965
10898
  this.extraClass = undefined;
10966
10899
  }
10967
- handleBreadcrumbContext(event) {
10900
+ handleParentContext(event) {
10968
10901
  if (event.target !== this.el) {
10969
10902
  // Ignore the event if it's not targeted at this specific instance
10970
10903
  return;
10971
10904
  }
10972
- //console.log(event.detail);
10973
10905
  this.parentContext = event.detail;
10974
10906
  event.stopPropagation();
10975
10907
  }
@@ -11002,7 +10934,7 @@ class EdsLink {
11002
10934
  }
11003
10935
  renderRightIcon() {
11004
10936
  if (this.icon && this.iconPos === 'right') {
11005
- return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex' }, hAsync("eds-icon-wrapper", { class: `
10937
+ return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex ml-4' }, hAsync("eds-icon-wrapper", { class: `
11006
10938
  flex inline-flex items-center justify-center
11007
10939
  ${this.size === 'large' ? 'h-32 w-32' : 'h-20 w-20'}
11008
10940
  `, icon: this.icon })));
@@ -11010,6 +10942,7 @@ class EdsLink {
11010
10942
  return null;
11011
10943
  }
11012
10944
  render() {
10945
+ // If the link is disabled, use a <span>; otherwise, use an <a> element.
11013
10946
  const ComponentType = this.disabled ? 'span' : 'a';
11014
10947
  const classes = linkStyles({
11015
10948
  intent: this.intent,
@@ -11017,10 +10950,12 @@ class EdsLink {
11017
10950
  iconSmall: this.iconSmall,
11018
10951
  isActive: this.current
11019
10952
  });
10953
+ // If no visible label is provided, ensure ariaLabel is set.
10954
+ const computedAriaLabel = this.ariaLabel || this.label || 'link';
11020
10955
  const labelClasses = this.hideLabelOnSmallScreen
11021
10956
  ? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
11022
10957
  : '';
11023
- return (hAsync(ComponentType, { key: '287497bf5ba99fe467ba08d59f65d24204fbecbc', class: `${classes || ''} ${this.extraClass || ''}`, href: !this.disabled ? this.url : undefined, target: this.external && !this.disabled ? '_blank' : undefined, rel: this.external && !this.disabled ? 'noopener noreferrer' : undefined, "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.disabled ? 'true' : null, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event) }, hAsync("span", { key: 'a244b21dffaad38cb149a925df1feb3d78beed03', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), hAsync("span", { key: '2ef69a91351ea622d6425699b90b45a0bd5989b1', class: labelClasses }, this.label), this.renderRightIcon())));
10958
+ return (hAsync(ComponentType, { key: '965b2bf54c59752e7ed3cafbc167a8f2d1a2a9b1', class: `${classes || ''} ${this.extraClass || ''}`, href: !this.disabled ? this.url : undefined, target: this.external && !this.disabled ? '_blank' : undefined, rel: this.external && !this.disabled ? 'noopener noreferrer' : undefined, "aria-label": computedAriaLabel, "aria-disabled": this.disabled ? 'true' : null, "aria-current": this.current ? 'page' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event) }, hAsync("span", { key: '7df72410c98bab3c0ef204e5cd33f1e069976d24', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), hAsync("span", { key: '208b4fa88695bd8e8ed961d4c7639b117341110c', class: labelClasses }, this.label), this.renderRightIcon())));
11024
10959
  }
11025
10960
  get el() { return getElement(this); }
11026
10961
  static get style() { return EdsLinkStyle0; }
@@ -11043,7 +10978,7 @@ class EdsLink {
11043
10978
  "hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"],
11044
10979
  "extraClass": [1, "extra-class"]
11045
10980
  },
11046
- "$listeners$": [[0, "parentContext", "handleBreadcrumbContext"]],
10981
+ "$listeners$": [[0, "parentContext", "handleParentContext"]],
11047
10982
  "$lazyBundleId$": "-",
11048
10983
  "$attrsToReflect$": []
11049
10984
  }; }
@@ -11111,7 +11046,7 @@ function Keycloak (config) {
11111
11046
  );
11112
11047
  }
11113
11048
 
11114
- kc.init = function (initOptions) {
11049
+ kc.init = function (initOptions = {}) {
11115
11050
  if (kc.didInitialize) {
11116
11051
  throw new Error("A 'Keycloak' instance can only be initialized once.");
11117
11052
  }
@@ -11123,9 +11058,9 @@ function Keycloak (config) {
11123
11058
  callbackStorage = createCallbackStorage();
11124
11059
  var adapters = ['default', 'cordova', 'cordova-native'];
11125
11060
 
11126
- if (initOptions && adapters.indexOf(initOptions.adapter) > -1) {
11061
+ if (adapters.indexOf(initOptions.adapter) > -1) {
11127
11062
  adapter = loadAdapter(initOptions.adapter);
11128
- } else if (initOptions && typeof initOptions.adapter === "object") {
11063
+ } else if (typeof initOptions.adapter === "object") {
11129
11064
  adapter = initOptions.adapter;
11130
11065
  } else {
11131
11066
  if (window.Cordova || window.cordova) {
@@ -11135,101 +11070,99 @@ function Keycloak (config) {
11135
11070
  }
11136
11071
  }
11137
11072
 
11138
- if (initOptions) {
11139
- if (typeof initOptions.useNonce !== 'undefined') {
11140
- useNonce = initOptions.useNonce;
11141
- }
11073
+ if (typeof initOptions.useNonce !== 'undefined') {
11074
+ useNonce = initOptions.useNonce;
11075
+ }
11142
11076
 
11143
- if (typeof initOptions.checkLoginIframe !== 'undefined') {
11144
- loginIframe.enable = initOptions.checkLoginIframe;
11145
- }
11077
+ if (typeof initOptions.checkLoginIframe !== 'undefined') {
11078
+ loginIframe.enable = initOptions.checkLoginIframe;
11079
+ }
11146
11080
 
11147
- if (initOptions.checkLoginIframeInterval) {
11148
- loginIframe.interval = initOptions.checkLoginIframeInterval;
11149
- }
11081
+ if (initOptions.checkLoginIframeInterval) {
11082
+ loginIframe.interval = initOptions.checkLoginIframeInterval;
11083
+ }
11150
11084
 
11151
- if (initOptions.onLoad === 'login-required') {
11152
- kc.loginRequired = true;
11153
- }
11085
+ if (initOptions.onLoad === 'login-required') {
11086
+ kc.loginRequired = true;
11087
+ }
11154
11088
 
11155
- if (initOptions.responseMode) {
11156
- if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
11157
- kc.responseMode = initOptions.responseMode;
11158
- } else {
11159
- throw 'Invalid value for responseMode';
11160
- }
11089
+ if (initOptions.responseMode) {
11090
+ if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
11091
+ kc.responseMode = initOptions.responseMode;
11092
+ } else {
11093
+ throw 'Invalid value for responseMode';
11161
11094
  }
11095
+ }
11162
11096
 
11163
- if (initOptions.flow) {
11164
- switch (initOptions.flow) {
11165
- case 'standard':
11166
- kc.responseType = 'code';
11167
- break;
11168
- case 'implicit':
11169
- kc.responseType = 'id_token token';
11170
- break;
11171
- case 'hybrid':
11172
- kc.responseType = 'code id_token token';
11173
- break;
11174
- default:
11175
- throw 'Invalid value for flow';
11176
- }
11177
- kc.flow = initOptions.flow;
11097
+ if (initOptions.flow) {
11098
+ switch (initOptions.flow) {
11099
+ case 'standard':
11100
+ kc.responseType = 'code';
11101
+ break;
11102
+ case 'implicit':
11103
+ kc.responseType = 'id_token token';
11104
+ break;
11105
+ case 'hybrid':
11106
+ kc.responseType = 'code id_token token';
11107
+ break;
11108
+ default:
11109
+ throw 'Invalid value for flow';
11178
11110
  }
11111
+ kc.flow = initOptions.flow;
11112
+ }
11179
11113
 
11180
- if (initOptions.timeSkew != null) {
11181
- kc.timeSkew = initOptions.timeSkew;
11182
- }
11114
+ if (initOptions.timeSkew != null) {
11115
+ kc.timeSkew = initOptions.timeSkew;
11116
+ }
11183
11117
 
11184
- if(initOptions.redirectUri) {
11185
- kc.redirectUri = initOptions.redirectUri;
11186
- }
11118
+ if(initOptions.redirectUri) {
11119
+ kc.redirectUri = initOptions.redirectUri;
11120
+ }
11187
11121
 
11188
- if (initOptions.silentCheckSsoRedirectUri) {
11189
- kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
11190
- }
11122
+ if (initOptions.silentCheckSsoRedirectUri) {
11123
+ kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
11124
+ }
11191
11125
 
11192
- if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
11193
- kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
11194
- } else {
11195
- kc.silentCheckSsoFallback = true;
11126
+ if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
11127
+ kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
11128
+ } else {
11129
+ kc.silentCheckSsoFallback = true;
11130
+ }
11131
+
11132
+ if (typeof initOptions.pkceMethod !== "undefined") {
11133
+ if (initOptions.pkceMethod !== "S256" && initOptions.pkceMethod !== false) {
11134
+ throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${initOptions.pkceMethod}.`);
11196
11135
  }
11197
11136
 
11198
- if (typeof initOptions.pkceMethod !== "undefined") {
11199
- if (initOptions.pkceMethod !== "S256" && initOptions.pkceMethod !== false) {
11200
- throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${initOptions.pkceMethod}.`);
11201
- }
11202
-
11203
- kc.pkceMethod = initOptions.pkceMethod;
11204
- } else {
11205
- kc.pkceMethod = "S256";
11206
- }
11137
+ kc.pkceMethod = initOptions.pkceMethod;
11138
+ } else {
11139
+ kc.pkceMethod = "S256";
11140
+ }
11207
11141
 
11208
- if (typeof initOptions.enableLogging === 'boolean') {
11209
- kc.enableLogging = initOptions.enableLogging;
11210
- } else {
11211
- kc.enableLogging = false;
11212
- }
11142
+ if (typeof initOptions.enableLogging === 'boolean') {
11143
+ kc.enableLogging = initOptions.enableLogging;
11144
+ } else {
11145
+ kc.enableLogging = false;
11146
+ }
11213
11147
 
11214
- if (initOptions.logoutMethod === 'POST') {
11215
- kc.logoutMethod = 'POST';
11216
- } else {
11217
- kc.logoutMethod = 'GET';
11218
- }
11148
+ if (initOptions.logoutMethod === 'POST') {
11149
+ kc.logoutMethod = 'POST';
11150
+ } else {
11151
+ kc.logoutMethod = 'GET';
11152
+ }
11219
11153
 
11220
- if (typeof initOptions.scope === 'string') {
11221
- kc.scope = initOptions.scope;
11222
- }
11154
+ if (typeof initOptions.scope === 'string') {
11155
+ kc.scope = initOptions.scope;
11156
+ }
11223
11157
 
11224
- if (typeof initOptions.acrValues === 'string') {
11225
- kc.acrValues = initOptions.acrValues;
11226
- }
11158
+ if (typeof initOptions.acrValues === 'string') {
11159
+ kc.acrValues = initOptions.acrValues;
11160
+ }
11227
11161
 
11228
- if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
11229
- kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
11230
- } else {
11231
- kc.messageReceiveTimeout = 10000;
11232
- }
11162
+ if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
11163
+ kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
11164
+ } else {
11165
+ kc.messageReceiveTimeout = 10000;
11233
11166
  }
11234
11167
 
11235
11168
  if (!kc.responseMode) {
@@ -11258,7 +11191,7 @@ function Keycloak (config) {
11258
11191
  options.prompt = 'none';
11259
11192
  }
11260
11193
 
11261
- if (initOptions && initOptions.locale) {
11194
+ if (initOptions.locale) {
11262
11195
  options.locale = initOptions.locale;
11263
11196
  }
11264
11197
  kc.login(options).then(function () {
@@ -11332,42 +11265,40 @@ function Keycloak (config) {
11332
11265
  }).catch(function (error) {
11333
11266
  initPromise.setError(error);
11334
11267
  });
11335
- } else if (initOptions) {
11336
- if (initOptions.token && initOptions.refreshToken) {
11337
- setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
11268
+ }
11338
11269
 
11339
- if (loginIframe.enable) {
11340
- setupCheckLoginIframe().then(function() {
11341
- checkLoginIframe().then(function (unchanged) {
11342
- if (unchanged) {
11343
- kc.onAuthSuccess && kc.onAuthSuccess();
11344
- initPromise.setSuccess();
11345
- scheduleCheckIframe();
11346
- } else {
11347
- initPromise.setSuccess();
11348
- }
11349
- }).catch(function (error) {
11350
- initPromise.setError(error);
11351
- });
11352
- });
11353
- } else {
11354
- kc.updateToken(-1).then(function() {
11355
- kc.onAuthSuccess && kc.onAuthSuccess();
11356
- initPromise.setSuccess();
11357
- }).catch(function(error) {
11358
- kc.onAuthError && kc.onAuthError();
11359
- if (initOptions.onLoad) {
11360
- onLoad();
11270
+ if (initOptions.token && initOptions.refreshToken) {
11271
+ setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
11272
+
11273
+ if (loginIframe.enable) {
11274
+ setupCheckLoginIframe().then(function() {
11275
+ checkLoginIframe().then(function (unchanged) {
11276
+ if (unchanged) {
11277
+ kc.onAuthSuccess && kc.onAuthSuccess();
11278
+ initPromise.setSuccess();
11279
+ scheduleCheckIframe();
11361
11280
  } else {
11362
- initPromise.setError(error);
11281
+ initPromise.setSuccess();
11363
11282
  }
11283
+ }).catch(function (error) {
11284
+ initPromise.setError(error);
11364
11285
  });
11365
- }
11366
- } else if (initOptions.onLoad) {
11367
- onLoad();
11286
+ });
11368
11287
  } else {
11369
- initPromise.setSuccess();
11288
+ kc.updateToken(-1).then(function() {
11289
+ kc.onAuthSuccess && kc.onAuthSuccess();
11290
+ initPromise.setSuccess();
11291
+ }).catch(function(error) {
11292
+ kc.onAuthError && kc.onAuthError();
11293
+ if (initOptions.onLoad) {
11294
+ onLoad();
11295
+ } else {
11296
+ initPromise.setError(error);
11297
+ }
11298
+ });
11370
11299
  }
11300
+ } else if (initOptions.onLoad) {
11301
+ onLoad();
11371
11302
  } else {
11372
11303
  initPromise.setSuccess();
11373
11304
  }
@@ -11728,7 +11659,7 @@ function Keycloak (config) {
11728
11659
 
11729
11660
  kc.onAuthRefreshError && kc.onAuthRefreshError();
11730
11661
  for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
11731
- p.setError(true);
11662
+ p.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.");
11732
11663
  }
11733
11664
  }
11734
11665
  }
@@ -12296,7 +12227,7 @@ function Keycloak (config) {
12296
12227
  function check3pCookiesSupported() {
12297
12228
  var promise = createPromise();
12298
12229
 
12299
- if (loginIframe.enable || kc.silentCheckSsoRedirectUri) {
12230
+ if ((loginIframe.enable || kc.silentCheckSsoRedirectUri) && typeof kc.endpoints.thirdPartyCookiesIframe === 'function') {
12300
12231
  var iframe = document.createElement('iframe');
12301
12232
  iframe.setAttribute('src', kc.endpoints.thirdPartyCookiesIframe());
12302
12233
  iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
@@ -12316,7 +12247,7 @@ function Keycloak (config) {
12316
12247
  "[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n" +
12317
12248
  " - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n" +
12318
12249
  " - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\n" +
12319
- "For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"
12250
+ "For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"
12320
12251
  );
12321
12252
 
12322
12253
  loginIframe.enable = false;
@@ -12354,34 +12285,37 @@ function Keycloak (config) {
12354
12285
  return;
12355
12286
  }
12356
12287
 
12357
- const logoutUrl = kc.createLogoutUrl(options);
12358
- const response = await fetch(logoutUrl, {
12359
- method: "POST",
12360
- headers: {
12361
- "Content-Type": "application/x-www-form-urlencoded"
12362
- },
12363
- body: new URLSearchParams({
12364
- id_token_hint: kc.idToken,
12365
- client_id: kc.clientId,
12366
- post_logout_redirect_uri: adapter.redirectUri(options, false)
12367
- })
12368
- });
12288
+ // Create form to send POST request.
12289
+ const form = document.createElement("form");
12369
12290
 
12370
- if (response.redirected) {
12371
- window.location.href = response.url;
12372
- return;
12373
- }
12291
+ form.setAttribute("method", "POST");
12292
+ form.setAttribute("action", kc.createLogoutUrl(options));
12293
+ form.style.display = "none";
12374
12294
 
12375
- if (response.ok) {
12376
- window.location.reload();
12377
- return;
12295
+ // Add data to form as hidden input fields.
12296
+ const data = {
12297
+ id_token_hint: kc.idToken,
12298
+ client_id: kc.clientId,
12299
+ post_logout_redirect_uri: adapter.redirectUri(options, false)
12300
+ };
12301
+
12302
+ for (const [name, value] of Object.entries(data)) {
12303
+ const input = document.createElement("input");
12304
+
12305
+ input.setAttribute("type", "hidden");
12306
+ input.setAttribute("name", name);
12307
+ input.setAttribute("value", value);
12308
+
12309
+ form.appendChild(input);
12378
12310
  }
12379
12311
 
12380
- throw new Error("Logout failed, request returned an error code.");
12312
+ // Append form to page and submit it to perform logout and redirect.
12313
+ document.body.appendChild(form);
12314
+ form.submit();
12381
12315
  },
12382
12316
 
12383
- register: function(options) {
12384
- window.location.assign(kc.createRegisterUrl(options));
12317
+ register: async function(options) {
12318
+ window.location.assign(await kc.createRegisterUrl(options));
12385
12319
  return createPromise().promise;
12386
12320
  },
12387
12321
 
@@ -12534,9 +12468,9 @@ function Keycloak (config) {
12534
12468
  return promise.promise;
12535
12469
  },
12536
12470
 
12537
- register : function(options) {
12471
+ register : async function(options) {
12538
12472
  var promise = createPromise();
12539
- var registerUrl = kc.createRegisterUrl();
12473
+ var registerUrl = await kc.createRegisterUrl();
12540
12474
  var cordovaOptions = createCordovaOptions(options);
12541
12475
  var ref = cordovaOpenWindowWrapper(registerUrl, '_blank', cordovaOptions);
12542
12476
  ref.addEventListener('loadstart', function(event) {
@@ -12603,9 +12537,9 @@ function Keycloak (config) {
12603
12537
  return promise.promise;
12604
12538
  },
12605
12539
 
12606
- register : function(options) {
12540
+ register : async function(options) {
12607
12541
  var promise = createPromise();
12608
- var registerUrl = kc.createRegisterUrl(options);
12542
+ var registerUrl = await kc.createRegisterUrl(options);
12609
12543
  universalLinks.subscribe('keycloak' , function(event) {
12610
12544
  universalLinks.unsubscribe('keycloak');
12611
12545
  window.cordova.plugins.browsertab.close();
@@ -12641,6 +12575,8 @@ function Keycloak (config) {
12641
12575
  throw 'invalid adapter type: ' + type;
12642
12576
  }
12643
12577
 
12578
+ const STORAGE_KEY_PREFIX = 'kc-callback-';
12579
+
12644
12580
  var LocalStorage = function() {
12645
12581
  if (!(this instanceof LocalStorage)) {
12646
12582
  return new LocalStorage();
@@ -12651,48 +12587,96 @@ function Keycloak (config) {
12651
12587
 
12652
12588
  var cs = this;
12653
12589
 
12654
- function clearExpired() {
12655
- var time = new Date().getTime();
12656
- for (var i = 0; i < localStorage.length; i++) {
12657
- var key = localStorage.key(i);
12658
- if (key && key.indexOf('kc-callback-') == 0) {
12659
- var value = localStorage.getItem(key);
12660
- if (value) {
12661
- try {
12662
- var expires = JSON.parse(value).expires;
12663
- if (!expires || expires < time) {
12664
- localStorage.removeItem(key);
12665
- }
12666
- } catch (err) {
12667
- localStorage.removeItem(key);
12668
- }
12669
- }
12590
+ /**
12591
+ * Clears all values from local storage that are no longer valid.
12592
+ */
12593
+ function clearInvalidValues() {
12594
+ const currentTime = Date.now();
12595
+
12596
+ for (const [key, value] of getStoredEntries()) {
12597
+ // Attempt to parse the expiry time from the value.
12598
+ const expiry = parseExpiry(value);
12599
+
12600
+ // Discard the value if it is malformed or expired.
12601
+ if (expiry === null || expiry < currentTime) {
12602
+ localStorage.removeItem(key);
12670
12603
  }
12671
12604
  }
12672
12605
  }
12673
12606
 
12607
+ /**
12608
+ * Clears all known values from local storage.
12609
+ */
12610
+ function clearAllValues() {
12611
+ for (const [key] of getStoredEntries()) {
12612
+ localStorage.removeItem(key);
12613
+ }
12614
+ }
12615
+
12616
+ /**
12617
+ * Gets all entries stored in local storage that are known to be managed by this class.
12618
+ * @returns {Array<[string, unknown]>} An array of key-value pairs.
12619
+ */
12620
+ function getStoredEntries() {
12621
+ return Object.entries(localStorage).filter(([key]) => key.startsWith(STORAGE_KEY_PREFIX));
12622
+ }
12623
+
12624
+ /**
12625
+ * Parses the expiry time from a value stored in local storage.
12626
+ * @param {unknown} value
12627
+ * @returns {number | null} The expiry time in milliseconds, or `null` if the value is malformed.
12628
+ */
12629
+ function parseExpiry(value) {
12630
+ let parsedValue;
12631
+
12632
+ // Attempt to parse the value as JSON.
12633
+ try {
12634
+ parsedValue = JSON.parse(value);
12635
+ } catch (error) {
12636
+ return null;
12637
+ }
12638
+
12639
+ // Attempt to extract the 'expires' property.
12640
+ if (isObject(parsedValue) && 'expires' in parsedValue && typeof parsedValue.expires === 'number') {
12641
+ return parsedValue.expires;
12642
+ }
12643
+
12644
+ return null;
12645
+ }
12646
+
12674
12647
  cs.get = function(state) {
12675
12648
  if (!state) {
12676
12649
  return;
12677
12650
  }
12678
12651
 
12679
- var key = 'kc-callback-' + state;
12652
+ var key = STORAGE_KEY_PREFIX + state;
12680
12653
  var value = localStorage.getItem(key);
12681
12654
  if (value) {
12682
12655
  localStorage.removeItem(key);
12683
12656
  value = JSON.parse(value);
12684
12657
  }
12685
12658
 
12686
- clearExpired();
12659
+ clearInvalidValues();
12687
12660
  return value;
12688
12661
  };
12689
12662
 
12690
12663
  cs.add = function(state) {
12691
- clearExpired();
12664
+ clearInvalidValues();
12665
+
12666
+ const key = STORAGE_KEY_PREFIX + state.state;
12667
+ const value = JSON.stringify({
12668
+ ...state,
12669
+ // Set the expiry time to 1 hour from now.
12670
+ expires: Date.now() + (60 * 60 * 1000)
12671
+ });
12692
12672
 
12693
- var key = 'kc-callback-' + state.state;
12694
- state.expires = new Date().getTime() + (60 * 60 * 1000);
12695
- localStorage.setItem(key, JSON.stringify(state));
12673
+ try {
12674
+ localStorage.setItem(key, value);
12675
+ } catch (error) {
12676
+ // If the storage is full, clear all known values and try again.
12677
+ clearAllValues();
12678
+ localStorage.setItem(key, value);
12679
+ }
12696
12680
  };
12697
12681
  };
12698
12682
 
@@ -12708,15 +12692,15 @@ function Keycloak (config) {
12708
12692
  return;
12709
12693
  }
12710
12694
 
12711
- var value = getCookie('kc-callback-' + state);
12712
- setCookie('kc-callback-' + state, '', cookieExpiration(-100));
12695
+ var value = getCookie(STORAGE_KEY_PREFIX + state);
12696
+ setCookie(STORAGE_KEY_PREFIX + state, '', cookieExpiration(-100));
12713
12697
  if (value) {
12714
12698
  return JSON.parse(value);
12715
12699
  }
12716
12700
  };
12717
12701
 
12718
12702
  cs.add = function(state) {
12719
- setCookie('kc-callback-' + state.state, JSON.stringify(state), cookieExpiration(60));
12703
+ setCookie(STORAGE_KEY_PREFIX + state.state, JSON.stringify(state), cookieExpiration(60));
12720
12704
  };
12721
12705
 
12722
12706
  cs.removeItem = function(key) {
@@ -12870,8 +12854,15 @@ function isObject(input) {
12870
12854
  }
12871
12855
 
12872
12856
  let keycloak = null;
12857
+ let keycloakInitPromise = null;
12873
12858
  // Initialize Keycloak with an optional silent check
12874
12859
  function initKeycloak(config, silentCheck = true) {
12860
+ // If already initializing or initialized, return the cached promise
12861
+ if (keycloakInitPromise) {
12862
+ // eslint-disable-next-line
12863
+ console.log('Keycloak already initialized, returning from cache');
12864
+ return keycloakInitPromise;
12865
+ }
12875
12866
  if (!keycloak) {
12876
12867
  keycloak = new Keycloak({
12877
12868
  url: config.url,
@@ -12879,7 +12870,7 @@ function initKeycloak(config, silentCheck = true) {
12879
12870
  clientId: config.clientId
12880
12871
  });
12881
12872
  }
12882
- return keycloak
12873
+ keycloakInitPromise = keycloak
12883
12874
  .init({
12884
12875
  onLoad: silentCheck ? 'check-sso' : 'login-required',
12885
12876
  checkLoginIframe: false
@@ -12891,6 +12882,7 @@ function initKeycloak(config, silentCheck = true) {
12891
12882
  console.error('Failed to initialize Keycloak:', error);
12892
12883
  return false;
12893
12884
  });
12885
+ return keycloakInitPromise;
12894
12886
  }
12895
12887
  function getUser() {
12896
12888
  if ((keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated) && (keycloak === null || keycloak === void 0 ? void 0 : keycloak.idTokenParsed)) {
@@ -12913,8 +12905,7 @@ function login() {
12913
12905
  keycloak.login();
12914
12906
  }
12915
12907
  else {
12916
- // eslint-disable-next-line
12917
- console.error('Keycloak is not initialized.');
12908
+ throw new Error('Keycloak is not initialized.');
12918
12909
  }
12919
12910
  }
12920
12911
  // Log out the user
@@ -12923,8 +12914,7 @@ function logout() {
12923
12914
  keycloak.logout();
12924
12915
  }
12925
12916
  else {
12926
- // eslint-disable-next-line
12927
- console.error('Keycloak is not initialized.');
12917
+ throw new Error('Keycloak is not initialized.');
12928
12918
  }
12929
12919
  }
12930
12920
  // Check if the user is authenticated
@@ -12941,75 +12931,85 @@ async function checkServerAvailability(url) {
12941
12931
  }
12942
12932
  }
12943
12933
 
12944
- /**
12945
- * `EdsLogin` is a login component that integrates Keycloak authentication,
12946
- * allowing users to log in and out and manage authentication states.
12947
- * This component is used to handle user login, logout, and authentication status display.
12948
- *
12949
- * This component is ideal for applications that require Keycloak-based authentication,
12950
- * providing a simple login/logout interface and managing user session states.
12951
- */
12952
12934
  class EdsLogin {
12953
12935
  constructor(hostRef) {
12954
12936
  registerInstance(this, hostRef);
12955
12937
  this.authStatusChanged = createEvent(this, "authStatusChanged", 7);
12956
- // Method to handle user logout
12957
- this.handleLogout = () => {
12958
- logout();
12959
- this.authenticated = false; // Reset authentication state after logout
12938
+ /**
12939
+ * Handles user login by invoking the Keycloak `login` function.
12940
+ * Only triggers login if the user is not already authenticated.
12941
+ */
12942
+ this.handleLogin = async () => {
12943
+ if (!this.authenticated) {
12944
+ try {
12945
+ await login();
12946
+ toast.show('You are authenticated', 'success');
12947
+ }
12948
+ catch (error) {
12949
+ toast.show(error.message, 'error');
12950
+ }
12951
+ }
12960
12952
  };
12961
- this.keycloakUrl = '';
12962
- this.keycloakRealm = '';
12963
- this.keycloakClientId = '';
12953
+ /**
12954
+ * Handles user logout by invoking the Keycloak `logout` function.
12955
+ * Resets the `authenticated` state to `false` after logout.
12956
+ */
12957
+ this.handleLogout = async () => {
12958
+ try {
12959
+ await logout();
12960
+ }
12961
+ catch (error) {
12962
+ toast.show(error.message, 'error');
12963
+ }
12964
+ this.authenticated = false;
12965
+ this.user = null;
12966
+ };
12967
+ this.keycloakUrl = undefined;
12968
+ this.keycloakRealm = undefined;
12969
+ this.keycloakClientId = undefined;
12964
12970
  this.authenticated = false;
12965
12971
  this.user = null;
12966
12972
  }
12967
- // Lifecycle method to check authentication status before the component loads
12973
+ /**
12974
+ * Lifecycle method that runs when the component is about to load.
12975
+ * It initializes authentication by calling the `initAuth` method.
12976
+ */
12968
12977
  async componentWillLoad() {
12969
- await this.checkAuthentication();
12978
+ // Check if required props are provided (optional check)
12979
+ if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
12980
+ // eslint-disable-next-line
12981
+ console.error('Keycloak configuration props are missing.');
12982
+ return;
12983
+ }
12984
+ await this.initAuth();
12970
12985
  }
12971
- // Method to initialize Keycloak and check if the user is authenticated
12972
- async checkAuthentication() {
12986
+ /**
12987
+ * Initializes the Keycloak authentication by configuring Keycloak with the provided props.
12988
+ * Sets the `authenticated` state and `user` data if the user is authenticated.
12989
+ * Emits `authStatusChanged` event with the authentication status.
12990
+ */
12991
+ async initAuth() {
12973
12992
  try {
12974
- const keycloakConfig = {
12993
+ await initKeycloak({
12975
12994
  url: this.keycloakUrl,
12976
12995
  realm: this.keycloakRealm,
12977
12996
  clientId: this.keycloakClientId
12978
- };
12979
- await initKeycloak(keycloakConfig);
12980
- // eslint-disable-next-line
12981
- // Set authentication state and fetch user data if authenticated
12982
- this.authenticated = isAuthenticated();
12983
- if (this.authenticated) {
12997
+ }, true);
12998
+ if (isAuthenticated()) {
12984
12999
  this.user = getUser();
13000
+ this.authenticated = true;
13001
+ this.authStatusChanged.emit({
13002
+ authenticated: this.authenticated,
13003
+ user: this.user
13004
+ }); // Emit auth status change
12985
13005
  }
12986
- this.authStatusChanged.emit({
12987
- authenticated: this.authenticated,
12988
- user: this.user
12989
- }); // Emit auth status change
12990
13006
  }
12991
13007
  catch (error) {
12992
- // eslint-disable-next-line
12993
- console.error('Keycloak initialization or login check failed:', error);
13008
+ toast.show(error.message, 'error');
12994
13009
  }
12995
13010
  }
12996
- // Method to handle user login
12997
- async handleLogin() {
12998
- try {
12999
- if (!this.authenticated) {
13000
- login(); // Start the Keycloak login process
13001
- }
13002
- }
13003
- catch (error) {
13004
- // eslint-disable-next-line
13005
- console.error('Login failed:', error);
13006
- }
13007
- }
13008
- getBtnLabel() {
13009
- return this.authenticated ? 'Logout' : 'Login';
13010
- }
13011
13011
  render() {
13012
- return (hAsync("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
13012
+ return (hAsync("div", { key: 'cd30a135920ae77959330a43a8544bb9c231986e', class: "block" }, !this.authenticated && (hAsync("eds-button", { key: '98fa63c46b063a67c215ff9160c6dfbfee2265f7', label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }))));
13013
13013
  }
13014
13014
  static get cmpMeta() { return {
13015
13015
  "$flags$": 9,
@@ -13053,6 +13053,7 @@ class EdsLogo {
13053
13053
  this.href = '/';
13054
13054
  this.orientation = 'horizontal';
13055
13055
  this.type = undefined;
13056
+ this.label = 'Home';
13056
13057
  }
13057
13058
  /**
13058
13059
  * Handles the click event on the logo link.
@@ -13105,7 +13106,7 @@ class EdsLogo {
13105
13106
  }
13106
13107
  render() {
13107
13108
  const logoContent = this.getLogo();
13108
- return (hAsync("a", { key: '3d9435fbc45427865bfa7bacb36bea4c34f08c4e', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper" }, hAsync("div", { key: '662122c4b687a082c930c034b033e9732ef611be', innerHTML: logoContent })));
13109
+ return (hAsync("a", { key: 'ee8de4071b0137020341982b4c5cb2c938f1c4df', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, hAsync("div", { key: '1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c', innerHTML: logoContent })));
13109
13110
  }
13110
13111
  get el() { return getElement(this); }
13111
13112
  static get style() { return EdsLogoStyle0; }
@@ -13115,7 +13116,8 @@ class EdsLogo {
13115
13116
  "$members$": {
13116
13117
  "href": [1],
13117
13118
  "orientation": [1],
13118
- "type": [1]
13119
+ "type": [1],
13120
+ "label": [1]
13119
13121
  },
13120
13122
  "$listeners$": undefined,
13121
13123
  "$lazyBundleId$": "-",
@@ -13142,7 +13144,7 @@ class EdsLogoVariations {
13142
13144
  }
13143
13145
  }
13144
13146
  render() {
13145
- return hAsync("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
13147
+ return hAsync("div", { key: '0494cbb3e7b4902e91a0c78c691bc3405b9f11cc', class: "container" }, this.renderContent());
13146
13148
  }
13147
13149
  static get cmpMeta() { return {
13148
13150
  "$flags$": 0,
@@ -13272,10 +13274,9 @@ class EdsMatomoNotice {
13272
13274
  }; }
13273
13275
  }
13274
13276
 
13275
- const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
13277
+ const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
13276
13278
  var EdsModalStyle0 = edsModalCss;
13277
13279
 
13278
- //import { sendAnalytics } from '@ebrains/utils';
13279
13280
  /**
13280
13281
  * `EdsModal` is a modal dialog component that can be toggled open or closed.
13281
13282
  *
@@ -13293,33 +13294,59 @@ class EdsModal {
13293
13294
  this.title = '';
13294
13295
  this.truncate = true;
13295
13296
  this.truncateLines = '1';
13297
+ this.position = 'middle';
13296
13298
  }
13297
13299
  getTruncateClass() {
13298
13300
  return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
13299
13301
  }
13302
+ /**
13303
+ * Returns the Tailwind CSS classes to position the modal based on the `position` prop.
13304
+ *
13305
+ * @private
13306
+ * @returns {string} The concatenated CSS classes for modal positioning.
13307
+ */
13308
+ getModalPositionClasses() {
13309
+ switch (this.position) {
13310
+ case 'top':
13311
+ return 'left-1/2 top-20 -translate-x-1/2';
13312
+ case 'bottom':
13313
+ return 'left-1/2 bottom-20 -translate-x-1/2';
13314
+ case 'left':
13315
+ return 'left-20 top-1/2 -translate-y-1/2';
13316
+ case 'right':
13317
+ return 'right-20 top-1/2 -translate-y-1/2';
13318
+ case 'middle':
13319
+ default:
13320
+ return 'left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2';
13321
+ }
13322
+ }
13300
13323
  /**
13301
13324
  * Opens the modal.
13302
13325
  */
13303
13326
  async open() {
13327
+ var _a;
13304
13328
  this.isOpen = true;
13305
- /*sendAnalytics({
13306
- category: 'ui-component',
13307
- tag: this.el.tagName.toLowerCase(),
13308
- name: this.title,
13309
- action: 'show'
13310
- });*/
13329
+ sendAnalytics({
13330
+ category: 'ui-component',
13331
+ parentContext: null,
13332
+ tag: this.el.tagName.toLowerCase(),
13333
+ name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
13334
+ action: 'opened'
13335
+ });
13311
13336
  }
13312
13337
  /**
13313
13338
  * Closes the modal.
13314
13339
  */
13315
13340
  async close() {
13341
+ var _a;
13316
13342
  this.isOpen = false;
13317
- /*sendAnalytics({
13318
- category: 'ui-component',
13319
- tag: this.el.tagName.toLowerCase(),
13320
- name: this.title,
13321
- action: 'hide'
13322
- });*/
13343
+ sendAnalytics({
13344
+ category: 'ui-component',
13345
+ parentContext: null,
13346
+ tag: this.el.tagName.toLowerCase(),
13347
+ name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
13348
+ action: 'closed'
13349
+ });
13323
13350
  }
13324
13351
  /**
13325
13352
  * Toggles the modal open or closed.
@@ -13328,35 +13355,19 @@ class EdsModal {
13328
13355
  this.isOpen = !this.isOpen;
13329
13356
  }
13330
13357
  /**
13331
- * Lifecycle method that runs when the component has fully loaded.
13332
- * It emits a custom event for each `eds-button` element contained within the breadcrumb.
13358
+ * Closes the modal when the Escape key is pressed.
13333
13359
  */
13334
- componentDidLoad() {
13335
- // Emit context for each eds-link element after the component is fully loaded
13336
- const btns = this.el.shadowRoot.querySelectorAll('eds-button');
13337
- btns.forEach((btn) => {
13338
- this.emitContext(btn);
13339
- });
13340
- }
13341
- /**
13342
- * Emits a custom event called `parentContext` for a given button element.
13343
- * This event provides context information about the eds-modal component.
13344
- *
13345
- * @param btnElement - The link element to which the event will be dispatched.
13346
- */
13347
- emitContext(btnElement) {
13348
- const event = new CustomEvent('parentContext', {
13349
- detail: {
13350
- componentName: this.el.tagName.toLowerCase(),
13351
- identifier: null
13352
- }
13353
- });
13354
- btnElement.dispatchEvent(event);
13360
+ handleKeyDown(event) {
13361
+ if (this.isOpen && event.key === 'Escape') {
13362
+ this.close();
13363
+ }
13355
13364
  }
13356
13365
  render() {
13357
- return (hAsync("div", { key: '00816ecb900bd9b68b31fdf6e48bef0223f9e10a', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex` }, this.isOpen && (hAsync("div", { key: '570fa8625f9ad4b1ea82633f11e2b289ab01b853', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
13366
+ // Generate a unique id for the title so we can reference it for aria-labelledby.
13367
+ const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
13368
+ return (hAsync("div", { key: 'cd976fb0cd0c0663279dcd4dbd5823e26b6c32f7', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (hAsync("div", { key: '40a2febed5d0ec15d5370183c97cfd05abd72007', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
13358
13369
  ,
13359
- onClick: () => this.close() })), hAsync("div", { key: 'ff658c763e3fbc98123f13483076399966b10515', class: "max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center " }, hAsync("div", { key: 'd8b72acd90cc59ab1f82384aee4e311319f75aa9', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, hAsync("span", { key: 'ee61fc505c5a3eb93541d3762d37f28a5a788bae', class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), hAsync("eds-button", { key: '3832772417d05a162eb5f2c4d0733f0ee845ed1c', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), hAsync("div", { key: 'f71b38be8284a37d0d198df0a9858c64202b3d91', class: "pt-8" }, hAsync("slot", { key: '1f80948334e5b4e9fc00a3bf01c6fc402d8220c3' })))));
13370
+ onClick: () => this.close() })), hAsync("div", { key: '50f2c23d80a2007aca4d0a8911816141e43b71ee', class: `max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: 'e1cba5879bc488a99b896c48c8a780336b2195e7', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, hAsync("span", { key: '8f018e3d2890346d23e7dcb115676051048bcacb', id: titleId, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), hAsync("eds-button", { key: '4ae4013dd45573648817ac95ee4370ed615aa6a0', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), hAsync("div", { key: 'ac4e3d8f273d04ad02e0123c23b36b89bfc89db2', class: "pt-8" }, hAsync("slot", { key: '60917e9f750bfd7948e580acc817cffe6424608a' })))));
13360
13371
  }
13361
13372
  get el() { return getElement(this); }
13362
13373
  static get style() { return EdsModalStyle0; }
@@ -13367,12 +13378,13 @@ class EdsModal {
13367
13378
  "title": [1],
13368
13379
  "truncate": [4],
13369
13380
  "truncateLines": [1, "truncate-lines"],
13381
+ "position": [1],
13370
13382
  "isOpen": [32],
13371
13383
  "open": [64],
13372
13384
  "close": [64],
13373
13385
  "toggle": [64]
13374
13386
  },
13375
- "$listeners$": undefined,
13387
+ "$listeners$": [[8, "keydown", "handleKeyDown"]],
13376
13388
  "$lazyBundleId$": "-",
13377
13389
  "$attrsToReflect$": []
13378
13390
  }; }
@@ -13412,7 +13424,7 @@ class EdsNavigator {
13412
13424
  linkElement.dispatchEvent(event);
13413
13425
  }
13414
13426
  render() {
13415
- return (hAsync("ul", { key: '1ab60197bbc9ee86d77134138744dce39df2aaa7', class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && (hAsync("eds-link", { key: 'b29fd121d33c1e919d24a5d460d8d6864f1ff9db', label: this.prevLabel, url: this.prevUrl || undefined, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, hAsync("eds-icon-wrapper", { key: '64620ccfaf2e006a6414bcd7e874a352b9d2d56b', icon: "chevron-left" }), this.prevLabel)), this.nextLabel && (hAsync("eds-link", { key: 'ae6425f0f01c8f5bcbdae27d9bea9dc3a5b09d3b', label: this.nextLabel, url: this.nextUrl || undefined, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, hAsync("eds-icon-wrapper", { key: 'd286fc26f17ee6cf6828990e98df7865fbbfd352', icon: "chevron-right", class: "w-20 h-20" })))));
13427
+ return (hAsync("ul", { key: '712287e683436cc98c2d6ef195501add1929522e', class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && (hAsync("eds-link", { key: '4fda36ce37897284d7062f88133f147831d96a6f', label: this.prevLabel, url: this.prevUrl || undefined, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, hAsync("eds-icon-wrapper", { key: '9bfa6bbbdc68641f65bec49f207d96f075b9a5b0', icon: "chevron-left" }), this.prevLabel)), this.nextLabel && (hAsync("eds-link", { key: '6ee8ebee011a2c30a74645b072c7c37929d0a55f', label: this.nextLabel, url: this.nextUrl || undefined, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, hAsync("eds-icon-wrapper", { key: '44ebd4dcce0e367df7d9035bb445e49fde35e913', icon: "chevron-right", class: "w-20 h-20" })))));
13416
13428
  }
13417
13429
  get el() { return getElement(this); }
13418
13430
  static get cmpMeta() { return {
@@ -13469,14 +13481,18 @@ class EdsPagination {
13469
13481
  componentDidLoad() {
13470
13482
  // Emit context for each eds-link element after the component is fully loaded
13471
13483
  const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
13472
- if (links.length > 0) {
13473
- // Emit context for the first link
13474
- this.emitContext(links[0]);
13475
- // Emit context for the last link, if it's different from the first
13476
- if (links.length > 1) {
13477
- this.emitContext(links[links.length - 1]);
13478
- }
13479
- }
13484
+ links.forEach((lnk) => {
13485
+ this.emitContext(lnk);
13486
+ });
13487
+ /*if (links.length > 0) {
13488
+ // Emit context for the first link
13489
+ this.emitContext(links[0]);
13490
+
13491
+ // Emit context for the last link, if it's different from the first
13492
+ if (links.length > 1) {
13493
+ this.emitContext(links[links.length - 1]);
13494
+ }
13495
+ }*/
13480
13496
  }
13481
13497
  /**
13482
13498
  * Emits a custom event called `parentContext` for a given link element.
@@ -13606,7 +13622,7 @@ class EdsPagination {
13606
13622
  }
13607
13623
  }
13608
13624
  render() {
13609
- return (hAsync("div", { key: '2385b59b0a8b2bbdc40bfc5032b846c0ec20065e' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: '6aea281a4df247874f354469bbabae039424ad9e', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, hAsync("span", { key: 'eeb5f0ea902505c3853a30d51026cef9d9785e48', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (hAsync("nav", { "aria-label": "Pagination" }, hAsync("ul", { class: "flex items-center justify-center gap-x-8" }, hAsync("li", { class: "mr-auto" }, hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
13625
+ return (hAsync("div", { key: '8c8418eec263acc153a928b752775458f897504f' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: '02a5a69772a4812f10b29e8df117b72df210614d', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, hAsync("span", { key: 'ef9804843100c722643c24e31a05f86f2d55efa0', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (hAsync("nav", { "aria-label": "Pagination" }, hAsync("ul", { class: "flex items-center justify-center gap-x-8" }, hAsync("li", { class: "mr-auto" }, hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
13610
13626
  ? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
13611
13627
  : this.isFirstPage()
13612
13628
  ? '#'
@@ -13684,7 +13700,7 @@ class EdsProgressBar {
13684
13700
  }
13685
13701
  render() {
13686
13702
  const progressValue = this.value;
13687
- return (hAsync("div", { key: '3131f56034a9fd72ca51e448bc2bcc6281669b25', class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, hAsync("div", { key: 'f1665a254f8dbe1ccb9e512e5f2e7c1e5ab88c07', class: `inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02`, style: { width: `${progressValue}%` } }, progressValue, "%")));
13703
+ return (hAsync("div", { key: '0f47fedbf9d44887f65b399e184215f0937b1df1', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, hAsync("div", { key: 'a2d095d778842c969832ea6b1ba7f7ef917d1390', class: `inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02`, style: { width: `${progressValue}%` } }, progressValue, "%")));
13688
13704
  }
13689
13705
  static get style() { return EdsProgressBarStyle0; }
13690
13706
  static get cmpMeta() { return {
@@ -13700,7 +13716,7 @@ class EdsProgressBar {
13700
13716
  }; }
13701
13717
  }
13702
13718
 
13703
- const edsRatingCss = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}";
13719
+ const edsRatingCss = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}";
13704
13720
  var EdsRatingStyle0 = edsRatingCss;
13705
13721
 
13706
13722
  class EdsRating {
@@ -13713,10 +13729,7 @@ class EdsRating {
13713
13729
  this.selectedRating = 0;
13714
13730
  }
13715
13731
  /**
13716
- * Parses the `links` prop into an array of link objects.
13717
- * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
13718
- *
13719
- * @returns {any[]} Array of parsed link objects
13732
+ * Parses the `textMapping` prop into an array of strings.
13720
13733
  */
13721
13734
  get parsedMappings() {
13722
13735
  if (typeof this.textMapping === 'object') {
@@ -13727,8 +13740,7 @@ class EdsRating {
13727
13740
  return JSON.parse(this.textMapping);
13728
13741
  }
13729
13742
  catch (e) {
13730
- // eslint-disable-next-line
13731
- console.error('Error parsing links prop:', e);
13743
+ //console.error('Error parsing textMapping prop:', e);
13732
13744
  return [];
13733
13745
  }
13734
13746
  }
@@ -13743,10 +13755,14 @@ class EdsRating {
13743
13755
  this.ratingChange.emit(rating);
13744
13756
  }
13745
13757
  render() {
13746
- return (hAsync("div", { key: '4ca6d5e0fb35d8ebce1acd5c1a7c6c857ba4f463', class: "relative w-full flex flex-col" }, hAsync("span", { key: '784b77f84098b8d88cd3872004b0208a4437c51b', class: "f-body-01" }, this.label), hAsync("div", { key: '6780db58d3c96046a99d383518cfe1db1e3f1c68', class: "stars" }, Array.from({ length: this.stars }, (_, index) => (hAsync("span", { class: {
13747
- star: true,
13748
- filled: index < this.selectedRating
13749
- }, onClick: () => this.handleClick(index + 1) }, "\u2605")))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: 'ce0eec3c29cf27bff86e3307a29a2c39c2167087', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
13758
+ return (hAsync("div", { key: 'b613863ad54ae9b381a5741bce4b188eff806ef0', class: "relative w-full flex flex-col" }, hAsync("span", { key: 'f35cef9c3691aab73995e2ca6e2554cc19bae837', class: "f-heading-05" }, this.label), hAsync("div", { key: '37082eb4bbadf5c211c197f3f81501d0b0e61404', role: "radiogroup", "aria-label": this.label, class: "stars flex space-x-2" }, Array.from({ length: this.stars }, (_, index) => {
13759
+ const starRating = index + 1;
13760
+ const isSelected = starRating <= this.selectedRating;
13761
+ // Use the mapping text if available; otherwise, fall back to a generic label.
13762
+ const mappingText = this.parsedMappings[starRating - 1] || `Rating ${starRating}`;
13763
+ return (hAsync("eds-button", { label: "\u2605", role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": mappingText, onClick: () => this.handleClick(starRating), tabIndex: this.selectedRating === 0 && index === 0 ? 0 : isSelected ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "small", "extra-class": "p-2" // Optional padding or styling for the star button
13764
+ }));
13765
+ })), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '61b4b92e476cfa0dd9bf405cb080dedd995ff9c6', class: "f-ui-04 text-lighter mt-4" }, this.parsedMappings[this.selectedRating - 1]))));
13750
13766
  }
13751
13767
  static get style() { return EdsRatingStyle0; }
13752
13768
  static get cmpMeta() { return {
@@ -13755,7 +13771,7 @@ class EdsRating {
13755
13771
  "$members$": {
13756
13772
  "stars": [2],
13757
13773
  "label": [1],
13758
- "textMapping": [8, "text-mapping"],
13774
+ "textMapping": [1, "text-mapping"],
13759
13775
  "selectedRating": [32]
13760
13776
  },
13761
13777
  "$listeners$": undefined,
@@ -13786,7 +13802,7 @@ class EdsSectionCore {
13786
13802
  }
13787
13803
  render() {
13788
13804
  const TagType = this.tag; // Set dynamic tag type (div or section)
13789
- return (hAsync(TagType, { key: '849c35d9cd587cf14b0d6bc6efd1310a85d447f2' }, hAsync("eds-section-heading", { key: '7ed4486fcf6e7c653026869c9468be9471db1775', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5d95ea6516ecaaab4e07a40b84cd20deb3d8d3b2' })));
13805
+ return (hAsync(TagType, { key: 'e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac' }, hAsync("eds-section-heading", { key: '379c6bc644612d3e0865ce2acd8eacb4d67c7769', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5828a28c2c8ac65fbc56652f733f148a0d0198b7' })));
13790
13806
  }
13791
13807
  static get style() { return EdsSectionCoreStyle0; }
13792
13808
  static get cmpMeta() { return {
@@ -13838,12 +13854,12 @@ class EdsSectionHeading {
13838
13854
  render() {
13839
13855
  const TagType = this.tag; // Dynamically set tag type for the container
13840
13856
  const HeadingTag = this.headingLevel; // Dynamically set heading level
13841
- return (hAsync(TagType, { key: '2c6466c0a02bf8598153c18eafb37affc3dac395', class: {
13857
+ return (hAsync(TagType, { key: 'c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb', class: {
13842
13858
  'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20': true,
13843
13859
  container: this.withContainer,
13844
13860
  'pt-48': this.spacingLarge,
13845
13861
  'pt-28': !this.spacingLarge
13846
- } }, hAsync(HeadingTag, { key: 'fc7f0f09e02e8c63697e46811c465792497126e0', class: this.getHeadingClass() }, this.sectionTitle)));
13862
+ } }, hAsync(HeadingTag, { key: 'e65e13820553eefa5aec8bc9740e5e9da828ac92', class: this.getHeadingClass() }, this.sectionTitle)));
13847
13863
  }
13848
13864
  static get cmpMeta() { return {
13849
13865
  "$flags$": 0,
@@ -13919,7 +13935,7 @@ class EdsSocialNetworks {
13919
13935
  * @returns {JSX.Element} The rendered JSX for the component.
13920
13936
  */
13921
13937
  render() {
13922
- return (hAsync("div", { key: 'a6a3e2084eb01def71f6fee67ebe8c5f4f613c89' }, hAsync("p", { key: '43b92e9c33f8abef6070a6a3cd77f7573e2ab454', class: "f-ui-02" }, this.title), hAsync("ul", { key: 'c0e0dfdeff373885f62250c8bf4385268410406c', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (hAsync("li", { key: index }, hAsync("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
13938
+ return (hAsync("div", { key: '615a7cb2c26060d2d4cde875291a081b7de12e19' }, hAsync("p", { key: '9e19ad59fcc94508cb60cd4aafa87c3878fb2ebc', class: "f-ui-02" }, this.title), hAsync("ul", { key: 'a4811d16447ab148a7c129f188405f3f7050df70', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (hAsync("li", { key: index }, hAsync("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
13923
13939
  }
13924
13940
  static get style() { return EdsSocialNetworksStyle0; }
13925
13941
  static get cmpMeta() { return {
@@ -13934,6 +13950,76 @@ class EdsSocialNetworks {
13934
13950
  }; }
13935
13951
  }
13936
13952
 
13953
+ const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:24px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:1.125rem;font-weight:500;position:relative;margin-top:1em;margin-bottom:1em}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}";
13954
+ var EdsStepsStyle0 = edsStepsCss;
13955
+
13956
+ class EdsSteps {
13957
+ constructor(hostRef) {
13958
+ registerInstance(this, hostRef);
13959
+ this.stepClick = createEvent(this, "stepClick", 7);
13960
+ this.handleNext = () => {
13961
+ if (this.activeStep < this.parsedSteps.length) {
13962
+ this.activeStep = this.activeStep + 1;
13963
+ }
13964
+ };
13965
+ this.handleBack = () => {
13966
+ if (this.activeStep > 0) {
13967
+ this.activeStep = this.activeStep - 1;
13968
+ }
13969
+ };
13970
+ this.handleReset = () => {
13971
+ this.activeStep = 0;
13972
+ };
13973
+ this.steps = [];
13974
+ this.type = 'static';
13975
+ this.activeStep = 0;
13976
+ }
13977
+ handleStepClick(index) {
13978
+ this.stepClick.emit(index);
13979
+ // In linear mode, update the active step on header click.
13980
+ if (this.type === 'linear') {
13981
+ this.activeStep = index;
13982
+ }
13983
+ }
13984
+ /**
13985
+ * Parse the JSON string into an array of steps.
13986
+ */
13987
+ get parsedSteps() {
13988
+ if (typeof this.steps === 'string') {
13989
+ try {
13990
+ const stepsStr = this.steps;
13991
+ return JSON.parse(stepsStr);
13992
+ }
13993
+ catch (error) {
13994
+ //console.error('Invalid steps JSON', error);
13995
+ return [];
13996
+ }
13997
+ }
13998
+ return this.steps;
13999
+ }
14000
+ render() {
14001
+ const steps = this.parsedSteps;
14002
+ if (this.type === 'linear') {
14003
+ return (hAsync("div", null, hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", { onClick: () => this.handleStepClick(index) }, step.title), this.activeStep === index && (hAsync("div", { class: "content" }, hAsync("div", { class: "f-body-02 text-lighter my-16" }, step.content), hAsync("eds-button", { label: index === steps.length - 1 ? 'Finish' : 'Continue', class: "next-btn", onClick: this.handleNext }), hAsync("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index === 0, "extra-class": index === 0 ? 'hidden' : 'ml-8 block' }))))))), this.activeStep === steps.length && (hAsync("div", { class: "completed" }, hAsync("eds-alert", { intent: "success", message: "All steps completed - you're finished!" }), hAsync("eds-button", { label: "Start again", onClick: this.handleReset, "extra-class": "mt-4" })))));
14004
+ }
14005
+ // Static mode: show all steps with their content, no navigation buttons.
14006
+ return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", null, step.title), hAsync("div", { class: "content" }, hAsync("div", { class: "f-body-02 text-lighter my-16" }, step.content)))))));
14007
+ }
14008
+ static get style() { return EdsStepsStyle0; }
14009
+ static get cmpMeta() { return {
14010
+ "$flags$": 0,
14011
+ "$tagName$": "eds-steps",
14012
+ "$members$": {
14013
+ "steps": [1],
14014
+ "type": [1],
14015
+ "activeStep": [32]
14016
+ },
14017
+ "$listeners$": undefined,
14018
+ "$lazyBundleId$": "-",
14019
+ "$attrsToReflect$": []
14020
+ }; }
14021
+ }
14022
+
13937
14023
  /**
13938
14024
  * @internal
13939
14025
  */
@@ -13962,7 +14048,7 @@ class EdsSvgRepository {
13962
14048
  icon: { format: 'svg' },
13963
14049
  name: { format: 'bold' }
13964
14050
  };
13965
- return (hAsync("eds-table", { key: 'a1d4a1db6f0886a43513fc34707cdd6140ab685d', data: JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true, "host-width": this.hostWidth }));
14051
+ return (hAsync("eds-table", { key: 'a7d7fa426da72e174880a300202390c1016b74df', data: JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true, "host-width": this.hostWidth }));
13966
14052
  }
13967
14053
  get hostEl() { return getElement(this); }
13968
14054
  static get cmpMeta() { return {
@@ -13975,6 +14061,50 @@ class EdsSvgRepository {
13975
14061
  }; }
13976
14062
  }
13977
14063
 
14064
+ const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}";
14065
+ var EdsSwitchStyle0 = edsSwitchCss;
14066
+
14067
+ class EdsSwitch {
14068
+ constructor(hostRef) {
14069
+ registerInstance(this, hostRef);
14070
+ this.change = createEvent(this, "change", 7);
14071
+ this.toggleSwitch = () => {
14072
+ if (this.disabled) {
14073
+ return;
14074
+ }
14075
+ this.checked = !this.checked;
14076
+ this.change.emit(this.checked);
14077
+ };
14078
+ this.checked = false;
14079
+ this.disabled = false;
14080
+ this.labelOn = '';
14081
+ this.labelOff = '';
14082
+ }
14083
+ render() {
14084
+ // Compute an accessible name based on state.
14085
+ const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
14086
+ return (hAsync("div", { key: 'd4c727cbb562921b2bcba269e84f25c359c7061b', class: "switch-container" }, this.labelOff && hAsync("span", { key: '90b18fff27bd21501466deb5879e5fe6ff607043', class: "switch-label switch-label--off" }, this.labelOff), hAsync("button", { key: '8675f5d9f972d3932710fa7f9b28f74f95a83003', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
14087
+ switch: true,
14088
+ 'switch--checked': this.checked,
14089
+ 'switch--disabled': this.disabled
14090
+ }, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '26aa30a01b10419c1665b1fd58b5696a02d1504a', class: "switch-handle" })), this.labelOn && hAsync("span", { key: '3680d67555e9193a97e129c0639b411263e070a8', class: "switch-label switch-label--on" }, this.labelOn)));
14091
+ }
14092
+ static get style() { return EdsSwitchStyle0; }
14093
+ static get cmpMeta() { return {
14094
+ "$flags$": 9,
14095
+ "$tagName$": "eds-switch",
14096
+ "$members$": {
14097
+ "checked": [1540],
14098
+ "disabled": [4],
14099
+ "labelOn": [1, "label-on"],
14100
+ "labelOff": [1, "label-off"]
14101
+ },
14102
+ "$listeners$": undefined,
14103
+ "$lazyBundleId$": "-",
14104
+ "$attrsToReflect$": [["checked", "checked"]]
14105
+ }; }
14106
+ }
14107
+
13978
14108
  /**
13979
14109
  * @internal
13980
14110
  */
@@ -14006,7 +14136,7 @@ class EdsTab {
14006
14136
  this.ariaLabel = undefined;
14007
14137
  }
14008
14138
  render() {
14009
- return (hAsync("a", { key: 'ba4c995637d8d305249f018a0451775f45907716', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
14139
+ return (hAsync("a", { key: 'a55be2a07e554ab13a0d7e913710382d6126da57', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
14010
14140
  }
14011
14141
  static get cmpMeta() { return {
14012
14142
  "$flags$": 0,
@@ -14126,10 +14256,24 @@ class EdsTable {
14126
14256
  }
14127
14257
  handlePageChange(newPage) {
14128
14258
  this.currentPage = newPage;
14259
+ sendAnalytics({
14260
+ category: 'ui-component',
14261
+ parentContext: null,
14262
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
14263
+ name: `${newPage}` || '',
14264
+ action: 'page'
14265
+ });
14129
14266
  }
14130
14267
  handleSearch(event) {
14131
14268
  this.searchQuery = event.target.value;
14132
14269
  this.currentPage = 1;
14270
+ /*sendAnalytics({
14271
+ category: 'ui-component',
14272
+ parentContext: null,
14273
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
14274
+ name: `${this.searchQuery}` || '',
14275
+ action: 'page'
14276
+ });*/
14133
14277
  }
14134
14278
  renderCell(value, column) {
14135
14279
  var _a;
@@ -14169,18 +14313,16 @@ class EdsTable {
14169
14313
  : this.hostEl.getRootNode().host instanceof HTMLElement
14170
14314
  ? this.hostEl.getRootNode().host.getBoundingClientRect().width
14171
14315
  : 400;
14172
- //console.log('containerWidth:', containerWidth);
14173
14316
  const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
14174
- console.log('columnWidth:', columnWidth);
14175
- return (hAsync("div", { key: '178a33c07e6eae9d5edc170f842b6ef29ae21d9c' }, this.searchEnabled && (hAsync("div", { key: 'f1212a4e515a1db218df28b71367c6ffa42e3063' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
14317
+ return (hAsync("div", { key: '66ca59804bc8054655ed0d942104516fe4cd259b' }, this.searchEnabled && (hAsync("div", { key: 'df7267fc443da042e4b6ff81ded5800a2213bd73' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
14176
14318
  // @ts-ignore
14177
- onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: 'da6ac91e4b4d56780b044a3d35088e7722efe143', class: "mt-20" }, hAsync("table", { key: '3c5734d2370b31d2445ed4f043a80bf87c6d4bde', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '3803a39b4c987ff39bf22e2567bd1bc3d513e1f4' }, hAsync("tr", { key: 'a67fa7bdd48549c69cfa9721083a908ab036a559', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
14319
+ onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '80ac1fcb3802f9f5d5eabe016fb7345b88908b36', class: "mt-20" }, hAsync("table", { key: '09acf39378b1a4c8bfe40b496ec6bf71a2d761ca', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '8b844806cfef10d1a59da54a385ee8ed6c167050' }, hAsync("tr", { key: '1b3cff91bdaf225e9f3b337e245cd80ad4772b6a', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
14178
14320
  var _a;
14179
- return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
14180
- }))), hAsync("tbody", { key: '8e3f21bf2ee5b1bd84cfa93411ca2671f43ced45' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
14321
+ return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 5}px` } }, column));
14322
+ }))), hAsync("tbody", { key: '93dfd3abd196779c288f85bb6a357ad3e9c01418' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
14181
14323
  var _a;
14182
- return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
14183
- }))))))), this.shouldEnablePagination() && (hAsync("div", { key: '24931f257ef9ced394c1b5b1e589cacedd8035e6', class: "mt-20" }, hAsync("eds-pagination", { key: '996b26ae090ee4fe08cc821fb11362d94879ff72', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
14324
+ return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 5}px` } }, this.renderCell(row[column], column)));
14325
+ }))))))), this.shouldEnablePagination() && (hAsync("div", { key: '516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58', class: "mt-20" }, hAsync("eds-pagination", { key: 'abe3a593827d99437a06e204ea9d8ef92f80aba7', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
14184
14326
  }
14185
14327
  get hostEl() { return getElement(this); }
14186
14328
  static get watchers() { return {
@@ -14344,7 +14486,7 @@ class EdsTabs {
14344
14486
  });
14345
14487
  }
14346
14488
  render() {
14347
- return (hAsync("div", { key: '540bb667084b36ae2151ec39ef6b54a9ac6a4c4a', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: 'f0266d39c943b82725ded757cce0b35fb85fa874', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: 'fcedf94e6f6c14635291d9c8e6d672efc8055433', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
14489
+ return (hAsync("div", { key: 'f5c9e076fc1fb95b57e0148d85865ce62c14fbe7', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: '7d382167fb62999e39b784ce8bfba24267c87a64', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: '99bbfabd817bada1984ddf87a274bf9304a1e6a0', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
14348
14490
  //const TabComponent = tab.active ? 'span' : 'a';
14349
14491
  const tabProps = this.getTabOptions(tab.active, index);
14350
14492
  return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
@@ -14486,11 +14628,11 @@ class EdsTabsContent {
14486
14628
  });
14487
14629
  }
14488
14630
  render() {
14489
- return (hAsync("div", { key: '7bc954d9251bd15b5e3a49d5c74b83805f802b07', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: '1bfda380604f1eae1cc5be147a5e3e6b537e0396', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: 'b2ed26b52fd629ec99b01c7dc8e612eae4f3886d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
14631
+ return (hAsync("div", { key: 'aa94a55d3ae658797df6ae75724238a17a80a169', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: '0e38c695467c272198a605efdb2705b14239756e', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: '525f56d02b41e236d3b713fb972b6803e3f908d5', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
14490
14632
  //const TabComponent = tab.active ? 'span' : 'a';
14491
14633
  const tabProps = this.getTabOptions(tab.active, index);
14492
14634
  return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
14493
- })), hAsync("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
14635
+ })), hAsync("slot", { key: 'e5da088cec99dd0e40560b70fbd9940ac5a7f56f' }))));
14494
14636
  }
14495
14637
  get el() { return getElement(this); }
14496
14638
  static get watchers() { return {
@@ -14545,6 +14687,7 @@ class EdsTag {
14545
14687
  constructor(hostRef) {
14546
14688
  registerInstance(this, hostRef);
14547
14689
  this.label = undefined;
14690
+ this.ariaLabel = '';
14548
14691
  this.intent = 'default';
14549
14692
  }
14550
14693
  /**
@@ -14552,8 +14695,10 @@ class EdsTag {
14552
14695
  * @returns The rendered HTML for the tag component with the applied styles and label.
14553
14696
  */
14554
14697
  render() {
14698
+ var _a;
14555
14699
  const classes = tagStyles({ intent: this.intent });
14556
- return hAsync("span", { key: '546bd7eb2c78760edc12cd7bb3ede5f6ab9099f3', class: classes }, this.label);
14700
+ const accessibleLabel = ((_a = this.ariaLabel) === null || _a === void 0 ? void 0 : _a.length) ? this.ariaLabel : this.label;
14701
+ return (hAsync("span", { key: '6a517f42aeb641c95d96ecd6c3090a317a3195c6', class: classes, "aria-label": accessibleLabel }, this.label));
14557
14702
  }
14558
14703
  static get style() { return EdsTagStyle0; }
14559
14704
  static get cmpMeta() { return {
@@ -14561,6 +14706,7 @@ class EdsTag {
14561
14706
  "$tagName$": "eds-tag",
14562
14707
  "$members$": {
14563
14708
  "label": [1],
14709
+ "ariaLabel": [1, "aria-label"],
14564
14710
  "intent": [1]
14565
14711
  },
14566
14712
  "$listeners$": undefined,
@@ -14584,7 +14730,8 @@ class EdsTimeline {
14584
14730
  parsed = JSON.parse(newValue);
14585
14731
  }
14586
14732
  catch (e) {
14587
- console.error('Error parsing events JSON', e);
14733
+ // eslint-disable-next-line
14734
+ console.error('Error parsing timeline events JSON', e);
14588
14735
  parsed = [];
14589
14736
  }
14590
14737
  }
@@ -14626,7 +14773,7 @@ class EdsTimeline {
14626
14773
  }
14627
14774
  }
14628
14775
  render() {
14629
- return (hAsync("div", { key: '29e360adb412c67e7516f04671c276a12197d830', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: 'c556578a505bfb2da435616cb1f39cb91859ec7e', class: "relative" }, hAsync("div", { key: '8e1d307b2b3b470c643ba992d8307457581e9d4f', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '7b40b6a8944aad01d01524e13056fbafeaa8a8a8', class: "space-y-16" }, this.parsedEvents.map((event, index) => (hAsync("div", { class: "relative flex" }, hAsync("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
14776
+ return (hAsync("div", { key: '1ba4a93ce518b52f5821af75ae0587c44db92c6d', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: '3e019420ddd4bfab7800567c7130299ea47205c6', class: "relative" }, hAsync("div", { key: 'df99ce8fb08232c46449d7485dd7cffcd04b64d6', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '1b52694d2e8c3656910c02680aa8ce2e78b02997', class: "space-y-16" }, this.parsedEvents.map((event, index) => (hAsync("div", { class: "relative flex" }, hAsync("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
14630
14777
  ? [{ label: 'completed', style: 'accent' }]
14631
14778
  : [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
14632
14779
  ? [{ label: 'completed', style: 'accent' }]
@@ -14677,6 +14824,27 @@ class EdsToast {
14677
14824
  this.duration = 5000;
14678
14825
  this.visible = true;
14679
14826
  }
14827
+ /**
14828
+ * Lifecycle method that sets up the initial panel height and adds a resize event listener
14829
+ * to recalculate height on window resize.
14830
+ */
14831
+ componentDidLoad() {
14832
+ // Emit context for each eds-button element after the component is fully loaded
14833
+ const btn = this.el.querySelector('eds-button');
14834
+ this.emitContext(btn);
14835
+ }
14836
+ /**
14837
+ * Emits a custom event called `parentContext` for a given button element.
14838
+ */
14839
+ emitContext(linkElement) {
14840
+ const event = new CustomEvent('parentContext', {
14841
+ detail: {
14842
+ componentName: this.el.tagName.toLowerCase(),
14843
+ identifier: null
14844
+ }
14845
+ });
14846
+ linkElement.dispatchEvent(event);
14847
+ }
14680
14848
  connectedCallback() {
14681
14849
  // Auto-dismiss the toast after the specified duration
14682
14850
  this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
@@ -14690,7 +14858,7 @@ class EdsToast {
14690
14858
  return null;
14691
14859
  }
14692
14860
  const classes = toastStyles({ intent: this.intent });
14693
- return (hAsync("div", { class: classes }, hAsync("div", { class: "flex items-center justify-between gap-4" }, hAsync("p", { class: "f-ui-01" }, this.message), hAsync("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" }))));
14861
+ return (hAsync("div", { class: classes, role: "alert", "aria-live": "assertive" }, hAsync("div", { class: "flex items-center justify-between gap-4" }, hAsync("p", { class: "f-ui-01" }, this.message), hAsync("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" }))));
14694
14862
  }
14695
14863
  get el() { return getElement(this); }
14696
14864
  static get cmpMeta() { return {
@@ -14740,7 +14908,7 @@ class EdsToastManager {
14740
14908
  this.toasts = this.toasts.filter((t) => t.id !== id);
14741
14909
  }
14742
14910
  render() {
14743
- return (hAsync("div", { key: '459148404380e386117387f42183e24a069b2de6', class: "toast-container" }, this.toasts.map((t) => (hAsync("div", { key: t.id }, hAsync("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
14911
+ return (hAsync("div", { key: '22cb79fd617ca1701fba63d3d4bf04f73ce1ac77', class: "toast-container" }, this.toasts.map((t) => (hAsync("div", { key: t.id }, hAsync("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
14744
14912
  }
14745
14913
  get hostElement() { return getElement(this); }
14746
14914
  static get style() { return EdsToastManagerStyle0; }
@@ -14775,9 +14943,17 @@ class EdsTooltip {
14775
14943
  * Show the tooltip and update its position.
14776
14944
  */
14777
14945
  async showTooltip() {
14946
+ var _a;
14778
14947
  await this.updateTooltipPosition();
14779
14948
  this.isPositioned = true;
14780
14949
  this.isVisible = true;
14950
+ sendAnalytics({
14951
+ category: 'ui-component',
14952
+ parentContext: null,
14953
+ tag: this.el.tagName.toLowerCase(),
14954
+ name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
14955
+ action: 'hover'
14956
+ });
14781
14957
  }
14782
14958
  /**
14783
14959
  * Hide the tooltip.
@@ -14842,7 +15018,7 @@ class EdsTooltip {
14842
15018
  }
14843
15019
  }
14844
15020
  render() {
14845
- return (hAsync("div", { key: '5edce5e2ca66ef992ad22604a5017e5ab02f846b', class: "relative" }, hAsync("slot", { key: '74c9ef5978e023a45eb9c25c18f95f1875c19b13' }), this.isVisible && this.isPositioned && this.content && (hAsync("div", { key: '4cc3ea40bd81308eb7685b5c1065e8bd30f99191', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
15021
+ return (hAsync("div", { key: '1635b034319df4827a62ed58267d81db277ad19d', class: "relative" }, hAsync("slot", { key: '6cdfd0f6d456b984464c5091a2829cdba69ba895' }), this.isVisible && this.isPositioned && this.content && (hAsync("div", { key: '7e736731dc700e0273fdfe15202426d2db086aef', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
14846
15022
  top: this.tooltipStyle.top,
14847
15023
  left: this.tooltipStyle.left,
14848
15024
  transform: this.tooltipStyle.transform
@@ -14882,8 +15058,8 @@ class EdsTrl {
14882
15058
  apps = JSON.parse(this.applications || '[]');
14883
15059
  }
14884
15060
  catch (error) {
14885
- // Uncomment the next line for debugging
14886
- // console.error('Invalid applications JSON', error);
15061
+ // eslint-disable-next-line
15062
+ console.error('Invalid applications trl JSON', error);
14887
15063
  apps = [];
14888
15064
  }
14889
15065
  }
@@ -14899,18 +15075,17 @@ class EdsTrl {
14899
15075
  }
14900
15076
  render() {
14901
15077
  const apps = this.getParsedApplications();
14902
- console.log('apps:', apps);
14903
15078
  // Map applications into table-friendly data.
14904
- const tableData = apps.map(app => ({
15079
+ const tableData = apps.map((app) => ({
14905
15080
  Application: app.name,
14906
- "Current TRL Stage": `TRL ${app.currentTrl}`,
15081
+ 'Current TRL Stage': `TRL ${app.currentTrl}`,
14907
15082
  Progress: (hAsync("div", { class: "w-[200px]" }, hAsync("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
14908
15083
  }));
14909
15084
  const tableConfig = {
14910
- "Application": { "format": "code" },
14911
- "Current TRL Stage": { "format": "text" }
15085
+ Application: { format: 'code' },
15086
+ 'Current TRL Stage': { format: 'text' }
14912
15087
  };
14913
- return (hAsync("div", { key: '71e903734b5cd1ef74bf93e8fcdc57afacb51f07', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: 'cb8e4324c9c8481dcc2daf74f06c6928257e6f8b', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
15088
+ return (hAsync("div", { key: 'a329a001d6275fcfe7df9bddf83bd289effe4151', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: '93aebfd840b16416789b15eec0daa16d9126aa9f', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
14914
15089
  }
14915
15090
  static get cmpMeta() { return {
14916
15091
  "$flags$": 0,
@@ -14942,15 +15117,25 @@ class EdsUser {
14942
15117
  */
14943
15118
  this.handleLogin = () => {
14944
15119
  if (!this.authenticated) {
14945
- login();
15120
+ try {
15121
+ login();
15122
+ }
15123
+ catch (error) {
15124
+ toast.show(error.message, 'error');
15125
+ }
14946
15126
  }
14947
15127
  };
14948
15128
  /**
14949
15129
  * Handles user logout by invoking the Keycloak `logout` function.
14950
15130
  * Resets the `authenticated` state to `false` after logout.
14951
15131
  */
14952
- this.handleLogout = () => {
14953
- logout();
15132
+ this.handleLogout = async () => {
15133
+ try {
15134
+ await logout();
15135
+ }
15136
+ catch (error) {
15137
+ toast.show(error.message, 'error');
15138
+ }
14954
15139
  this.authenticated = false;
14955
15140
  this.user = null;
14956
15141
  };
@@ -14959,8 +15144,8 @@ class EdsUser {
14959
15144
  this.keycloakClientId = undefined;
14960
15145
  this.user = null;
14961
15146
  this.authenticated = false;
14962
- this.serverAvailable = false;
14963
15147
  this.username = '';
15148
+ this.serverAvailable = false;
14964
15149
  }
14965
15150
  /**
14966
15151
  * Lifecycle method that runs when the component is about to load.
@@ -14975,7 +15160,7 @@ class EdsUser {
14975
15160
  }
14976
15161
  this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
14977
15162
  if (!this.serverAvailable) {
14978
- //toast.show('Keycloak server is unavailable.', 'error');
15163
+ toast.show('Keycloak server is unavailable.', 'error');
14979
15164
  return; // Do not proceed further
14980
15165
  }
14981
15166
  await this.initAuth();
@@ -14987,35 +15172,27 @@ class EdsUser {
14987
15172
  */
14988
15173
  async initAuth() {
14989
15174
  try {
14990
- const keycloakConfig = {
15175
+ await initKeycloak({
14991
15176
  url: this.keycloakUrl,
14992
15177
  realm: this.keycloakRealm,
14993
15178
  clientId: this.keycloakClientId
14994
- };
14995
- await initKeycloak(keycloakConfig, true);
14996
- // Set authentication state and fetch user data if authenticated
14997
- //this.authenticated = isAuthenticated();
15179
+ }, true);
14998
15180
  if (isAuthenticated()) {
14999
15181
  this.user = getUser();
15000
15182
  this.authenticated = true;
15183
+ this.authStatusChanged.emit({
15184
+ authenticated: this.authenticated,
15185
+ user: this.user
15186
+ }); // Emit auth status change
15001
15187
  }
15002
- this.authStatusChanged.emit({
15003
- authenticated: this.authenticated,
15004
- user: this.user
15005
- }); // Emit auth status change
15006
15188
  }
15007
15189
  catch (error) {
15008
- // eslint-disable-next-line
15009
- console.error('Keycloak initialization failed:', error);
15190
+ toast.show(error.message, 'error');
15010
15191
  }
15011
15192
  }
15012
15193
  render() {
15013
15194
  var _a;
15014
- // If the server is unavailable, render null
15015
- if (!this.serverAvailable) {
15016
- return null;
15017
- }
15018
- return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (hAsync("div", { class: "flex items-center" }, hAsync("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
15195
+ return (hAsync("div", { key: '22ee744979511dd2f8a1e1a15bb99215eadd535b', class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (hAsync("div", { class: "flex items-center" }, hAsync("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
15019
15196
  }
15020
15197
  get hostEl() { return getElement(this); }
15021
15198
  static get cmpMeta() { return {
@@ -15027,8 +15204,8 @@ class EdsUser {
15027
15204
  "keycloakClientId": [1, "keycloak-client-id"],
15028
15205
  "user": [32],
15029
15206
  "authenticated": [32],
15030
- "serverAvailable": [32],
15031
- "username": [32]
15207
+ "username": [32],
15208
+ "serverAvailable": [32]
15032
15209
  },
15033
15210
  "$listeners$": undefined,
15034
15211
  "$lazyBundleId$": "-",
@@ -15068,7 +15245,7 @@ class EdsUserModal {
15068
15245
  }
15069
15246
  render() {
15070
15247
  var _a, _b, _c, _d, _e;
15071
- return (hAsync("div", { key: 'ad99ddd7c2710ef90840a5571ab6a161178cacc0', class: "min-w-[280px] p-8" }, hAsync("div", { key: 'd1da12f3a965fa7503fb3e00566db0796b803352', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, hAsync("eds-avatar", { key: 'c3d3ca80a9d23cc88f8ee6801b29995138c9b7c6', "first-name": (_a = this.parsedUser) === null || _a === void 0 ? void 0 : _a.firstname, "last-name": (_b = this.parsedUser) === null || _b === void 0 ? void 0 : _b.lastname, initials: this.initials, color: "grey", rounded: true, "initials-strong": true }), hAsync("div", { key: '4efe378b3a9ce76d35e642db150be13d0434db72', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (hAsync("p", { key: '1068082a2894e3c3e3f77d1eea923f9c39d8766c', class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname)), ((_d = this.parsedUser) === null || _d === void 0 ? void 0 : _d.username) && hAsync("p", { key: 'b86e08b806a37c9957bca7f9ee268303e7ace134', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((_e = this.parsedUser) === null || _e === void 0 ? void 0 : _e.email) && hAsync("p", { key: 'b3514920e1eb4906cb7f7705bfbc986166e84946', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), hAsync("div", { key: '61941fa0a19a19087da886a73d85d7e438d2c0b0', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, hAsync("div", { key: '5ad2be1763726c9d794b78a2593106fd8ba1dc7b', class: "border-softer mb-10 border-b-2 pb-16" }, hAsync("eds-link", { key: 'dbe3a9de56bf5ccc26426ddb831f2d1a27a0e6ff', label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: true })), hAsync("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: true, "extra-class": "w-full" }), this.hasLogout && (hAsync("eds-link", { key: '642890827e2fa6735bc616e680dbda481c2c0053', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
15248
+ return (hAsync("div", { key: '4a80335b6a59b9653130ca75a6e42c04fce68f4f', class: "min-w-[280px] p-8" }, hAsync("div", { key: '9c97f6be46216587692d4852174cecfaacb70593', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, hAsync("eds-avatar", { key: 'c778f6bdfb21068ca7c2deff6e298f61af6dbc67', "first-name": (_a = this.parsedUser) === null || _a === void 0 ? void 0 : _a.firstname, "last-name": (_b = this.parsedUser) === null || _b === void 0 ? void 0 : _b.lastname, initials: this.initials, color: "grey", rounded: true, "initials-strong": true }), hAsync("div", { key: '7f453546c9cc54597069abb3e4b50312fe7bf364', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (hAsync("p", { key: '34e080ef159535820c09378701de0e6f4fd96009', class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname)), ((_d = this.parsedUser) === null || _d === void 0 ? void 0 : _d.username) && hAsync("p", { key: '2f85764e7d015dc3f3b22ca8a07126f8f57216ef', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((_e = this.parsedUser) === null || _e === void 0 ? void 0 : _e.email) && hAsync("p", { key: '002dec51e979c29f2343f55e004449e4cee4075c', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), hAsync("div", { key: '740b78c504257fb755ba7ba04dd25f023d37ed33', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, hAsync("div", { key: 'ac307937bdd3fc86cce502e5eeb3e922d931f418', class: "border-softer mb-10 border-b-2 pb-16" }, hAsync("eds-link", { key: 'bdd0f1ef62ac78ffb1b40ed6873475df360cec66', label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: true })), hAsync("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: true, "extra-class": "w-full" }), this.hasLogout && (hAsync("eds-link", { key: 'd73016ad71f3b356b7fb7d0a2a84124eabb05da5', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
15072
15249
  }
15073
15250
  static get watchers() { return {
15074
15251
  "user": ["parseUserProp"],
@@ -15090,6 +15267,55 @@ class EdsUserModal {
15090
15267
  }; }
15091
15268
  }
15092
15269
 
15270
+ const edsVerticalStepperCss = ":host{display:block}.stepper-container{margin:0 auto}.stepper{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:24px;counter-reset:step}.step{margin-bottom:24px}.step-label{counter-increment:step;font-size:1.25rem;font-weight:600;position:relative;margin-top:1em;margin-bottom:1em}.step-label::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.optional{font-size:0.8rem;color:#888;margin-left:8px}.step-content{margin-top:8px}.step-buttons{margin-top:12px}.step-buttons button{margin-right:8px;padding:6px 12px;font-size:0.875rem}.completed{padding:16px;border:1px solid #ddd;margin-top:16px;text-align:center}";
15271
+ var EdsVerticalStepperStyle0 = edsVerticalStepperCss;
15272
+
15273
+ class EdsVerticalStepper {
15274
+ constructor(hostRef) {
15275
+ registerInstance(this, hostRef);
15276
+ this.handleNext = () => {
15277
+ if (this.activeStep < this.parsedSteps.length) {
15278
+ this.activeStep = this.activeStep + 1;
15279
+ }
15280
+ };
15281
+ this.handleBack = () => {
15282
+ if (this.activeStep > 0) {
15283
+ this.activeStep = this.activeStep - 1;
15284
+ }
15285
+ };
15286
+ this.handleReset = () => {
15287
+ this.activeStep = 0;
15288
+ };
15289
+ this.steps = '[]';
15290
+ this.activeStep = 0;
15291
+ }
15292
+ get parsedSteps() {
15293
+ try {
15294
+ return JSON.parse(this.steps);
15295
+ }
15296
+ catch (error) {
15297
+ //console.error('Invalid steps JSON', error);
15298
+ return [];
15299
+ }
15300
+ }
15301
+ render() {
15302
+ const steps = this.parsedSteps;
15303
+ return (hAsync("div", { key: '08fa2f85c49dbe217b2f9d068bee486e432f5315', class: "stepper-container" }, hAsync("div", { key: '6f7e0a0ccaa2882794a6be0216201d1bf924e2b2', class: "stepper" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, hAsync("div", { class: "step-label" }, hAsync("span", null, step.label), index === steps.length - 1 && hAsync("span", { class: "f-ui-03 text-lightest ml-4" }, "(Last step)")), this.activeStep === index && (hAsync("div", { class: "step-content" }, hAsync("p", null, step.description), hAsync("div", { class: "step-buttons" }, hAsync("eds-button", { label: index === steps.length - 1 ? 'Finish' : 'Continue', class: "next-btn", onClick: this.handleNext }), hAsync("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index === 0, "extra-class": index === 0 ? 'hidden' : 'ml-8 block' })))))))), this.activeStep === steps.length && (hAsync("div", { key: '8a5ebfed582b25d828758e1762a063df6c745093', class: "" }, hAsync("eds-alert", { key: 'a142fb50b8df533dd97f770aeaa453f2379ea7cb', intent: "success", message: "All steps completed - you're finished!" }), hAsync("eds-button", { key: '5cfba059c9a152f179e7c31fa5d7a222c00defe2', label: "Start again", onClick: this.handleReset, "extra-class": "mt-4" })))));
15304
+ }
15305
+ static get style() { return EdsVerticalStepperStyle0; }
15306
+ static get cmpMeta() { return {
15307
+ "$flags$": 9,
15308
+ "$tagName$": "eds-vertical-stepper",
15309
+ "$members$": {
15310
+ "steps": [1],
15311
+ "activeStep": [32]
15312
+ },
15313
+ "$listeners$": undefined,
15314
+ "$lazyBundleId$": "-",
15315
+ "$attrsToReflect$": []
15316
+ }; }
15317
+ }
15318
+
15093
15319
  /**
15094
15320
  * @internal
15095
15321
  */
@@ -15125,7 +15351,7 @@ class GradientPrimaryPalette {
15125
15351
  ];
15126
15352
  }
15127
15353
  render() {
15128
- return (hAsync("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
15354
+ return (hAsync("ul", { key: '783eb92c379de99659e65e7cb02a1f0ca9df8758', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
15129
15355
  background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
15130
15356
  } }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
15131
15357
  }
@@ -15198,19 +15424,19 @@ class GradientSecondaryPalette {
15198
15424
  ];
15199
15425
  }
15200
15426
  render() {
15201
- return (hAsync("div", { key: '29353679b15fce11ec2e357704cffd6a2d1389d4' }, hAsync("ul", { key: '7a262e1c8f17226c6639a00e1829d4f0927f988d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'f3dfcbe6da3ee882ae9100f95fe68788cd82195f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '83e3ac5d6f64e18e38e179251d58ff3ed23019a3', class: "effect-height flex items-center justify-between p-16", style: {
15427
+ return (hAsync("div", { key: '4bb98c83660ec855ba6b7faeb83386450c27f5fd' }, hAsync("ul", { key: '55b537cacdc2e3df835615e1658f82810633c485', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'd2f0d5c21e96579ef9a29540df473f821e2b29b6', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'e29f3000a3ee702caba1e1867b5d63be74b0d657', class: "effect-height flex items-center justify-between p-16", style: {
15202
15428
  background: this.colors[0].background
15203
- } }, hAsync("div", { key: 'ebc2424dd2950cc2704351456d4d974051e0dd93', class: "grid" }, hAsync("span", { key: '3fdfb110070a8795a1bb1aea12447bc2556937cc', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '0b929d1ddd40e67bc8cd0248fc7bf0c0f8a11cb7', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '3f4ab8d6b91afeaba20c273b8ede74593d452bf0', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '80b6a23a151e6b71630071f2d51c03e6b8c957ff', class: "grid" }, hAsync("span", { key: 'c86531490e51f5559d4293bc75bb2477d23d1593', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: '5bbc4e02eb2845508c6de7715f5fe202a36249a5', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: '050d2770d4c2e6395dc5350c9f29860ecf3d7e46', class: "effect-height flex items-center justify-between p-16", style: {
15429
+ } }, hAsync("div", { key: 'b1337194dd634b5820cc33707958fd0a2e0e92a6', class: "grid" }, hAsync("span", { key: '0385f9d05575613fcb99e8e01ee04c427ba66a8d', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'bbebf9ca89b0972376225d1708a356777dc6fcca', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'cb70085fe98e4c3e9f535e626b386b1c51b26fc8', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'cfd3721992823321bb75c0e544b28fa13cabd7eb', class: "grid" }, hAsync("span", { key: '00834f078742102f17dfa76a6ab024b0ccbcb7c9', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: '35d7c496211ab03ce17e17e839c27bcc5a9ef56f', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: 'baae2cbc6859b137a8588b0e9dd56d0c9e3c3acd', class: "effect-height flex items-center justify-between p-16", style: {
15204
15430
  background: this.colors[1].background
15205
- } }, hAsync("div", { key: '20a5a6748573d6e059ec81d00a737355cfd7f934', class: "grid" }, hAsync("span", { key: 'a63a0ea4301f11e4984f3749c087041acedb94b4', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'd986ecee52e15de1bbd58c48109f8c89d0cf19a2', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'd35bb3c1cb26aa9a3828cecfde1b32f428e8b1af', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8a616b789a99d3721ccc1f102131c2aba1951106', class: "grid" }, hAsync("span", { key: '03d172bbc56a4535d20051bb2ab1bfb4c0889586', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '66f1656d1d41f1616175285cf8f7e7089c9f2657', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '85a7244a69f0d3af26ea5f148917183e2431140e' }), hAsync("ul", { key: 'eb44b6b21fc75b1fd22e1aee42fac1aa99155b0d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'ecb50392387996034d1f4211d5336d2071927844', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'f45bf292bf11cb440731ff7bc67e5b364cb7b6c1', class: "effect-height flex items-center justify-between p-16", style: {
15431
+ } }, hAsync("div", { key: '55e3d9d0ce260c574da96b4775ce5f3e3e7fbaf0', class: "grid" }, hAsync("span", { key: 'c29acb597734c8422532cb303af1eaf04be73bbb', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'f1d9139118ce788e0c59d0fb7e8304b8d2ad2b6b', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'f8d92e3e205baf3c60a776ef6928da3f45682397', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '09c594d5fe6a642bb0b8dc813911516cb933488e', class: "grid" }, hAsync("span", { key: '62caf5d0012613e3ce291efc0539224e20da2180', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '6a6ced363a3b8a3c05298fd82ab9b7ec81d580f3', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '126929a680751e2028b373be442814d677911978' }), hAsync("ul", { key: '522cc84b4b8e1765a97c08927d640981e0a37328', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '4db01022fbe75477a88e7c8e7474e431c126dd63', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '92c1d309578f357745dcde72aae7c54b48d1a378', class: "effect-height flex items-center justify-between p-16", style: {
15206
15432
  background: this.colors[2].background
15207
- } }, hAsync("div", { key: '981db4da9bdbc0f60ba6e8fd83840101a815550f', class: "grid" }, hAsync("span", { key: 'd6aaf058991f0d7e1c4d5d7bfa17b0342880cb9c', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: 'cd63d8d64b9fa30f7a568125f61d3735c3596f0b', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'aca8d6c9668168c6d4b71cb5039e0af4cd419e30', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'ed16477727fe22372cbcd730c4e9cc67f5b35ed8', class: "grid" }, hAsync("span", { key: '4b6989756eb826d93b5b7d71e874f62914d221df', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'a4e3d7e9f3582a0fc5dfabbfc9feb5bb969c2933', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: 'd23b28073abf3c16b3f8d58744fb5f66877cdd94', class: "effect-height flex items-center justify-between p-16", style: {
15433
+ } }, hAsync("div", { key: 'f789570aa4141bd4dbdbe737fca7a666beb5e635', class: "grid" }, hAsync("span", { key: '2d3840caf5ec39e08271b4400f9ce0e425bc796c', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '41cd0250155a4d8413fb5b35677c6121c3539ab3', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'c36680567bbfd9085b2151748a4dfa7e557925d8', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '14241bc8d0354da8eba7fb06eafc6841b182796a', class: "grid" }, hAsync("span", { key: '97bde70e3d904c55fdf1e7d8b13aff954b905644', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'c5734847ceebbcf235c058c7987415cd47bdba86', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '0c016fdccdbb1c372b28da2c47eacbbfb7af32a8', class: "effect-height flex items-center justify-between p-16", style: {
15208
15434
  background: this.colors[3].background
15209
- } }, hAsync("div", { key: '1c96adb58e67d7cada4b4ba382ca2fcd37f0dfd8', class: "grid" }, hAsync("span", { key: 'beaab441ab5852d1141b509a161123ab0f743e7c', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: 'd2e57f4fd72ff1ef9c84f27e81c8c6b03ec50f66', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '48772cedf0b4ad119e14696e58203efce7bb3559', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '0e233bc33432cdd2149ab20b64464d03de22bcef', class: "grid" }, hAsync("span", { key: 'b0f41ae03bfd3bedf2ebd60b6a4b30c677395da0', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '433f30e367352cbd24668dac2ecf741b9f81febe', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: 'a862789d835c146d140b634782eefa7b48139597' }), hAsync("ul", { key: '9fe132435b11fa93057df3d747dfe36f04bfd997', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'e8438aedc62f4d0195a3c4c1c714ba99c6f7b67f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '9928ba20be7b9100e437345a4c5b03bf6d495707', class: "effect-height flex items-center justify-between p-16", style: {
15435
+ } }, hAsync("div", { key: '0d34612dbff071b4abd0aa2e0b89885ab1088a60', class: "grid" }, hAsync("span", { key: 'ab9628602287dc6543c086cb6b34dd22d40af58c', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '7ca06f7d0801cf664762b274815747e75023b596', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: 'a910ecaee2d78c6be8af632b497a4fe2d9651a9e', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '420889ad4cb54cd70ed3d10053f836e0b226eee6', class: "grid" }, hAsync("span", { key: 'cc92bf72e7dd47a8d492ef263c46d22c7f5b64b2', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: 'd740c9446d7521e4b6f3e049149d687c74615493', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: 'a6c5dea6ed19042213dcb8c0d12cb3120078c284' }), hAsync("ul", { key: '7eede8a017fc381b57f07c1d3c4cf62b4b9a7f63', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '1202837ab3483b3cb9dd71992e71ea59594596e5', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '5280e99341777daa28196e0be215f58b64d5be37', class: "effect-height flex items-center justify-between p-16", style: {
15210
15436
  background: this.colors[4].background
15211
- } }, hAsync("div", { key: '1cd2d6a8ec580b4094335d3c56acfbb398a96c28', class: "grid" }, hAsync("span", { key: 'dbbd548a12bcc861526309132e685a97714de1d5', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '93d38512e45747e4277169ee3221c36f96862f29', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'b04c9679ea48bf89e70cc969ecd42984ce3c7286', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '4a6130bdeb963c9674100528e2ef24a2245acbab', class: "grid" }, hAsync("span", { key: '7f49f52d514e36d7886a1aecb3c92c7148dcf595', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: '0d9a53c5262183a24114f762175f1d9fe5299950', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: '26a6e6ca4a67e5ff01d4fcb75e40fdb1456ca62f', class: "effect-height flex items-center justify-between p-16", style: {
15437
+ } }, hAsync("div", { key: '0a29d5eba0d80789df6e2df892f72a210558bc5f', class: "grid" }, hAsync("span", { key: 'b53837c45946fd2a2e2f44d1ed6ffe86fa15de5d', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '236bb0f5c879da738a5b758982262ef23537e863', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'ae5ed445fb1a5203745d71b9507cc1247c244d95', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'b1ee585cd3ae08d506b42e435e00f885b49f8994', class: "grid" }, hAsync("span", { key: '35c51bc7d60ba9fde2b6eac0ce035e0aceaad92c', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: 'c8796f41fe7ef23bafa9139c19b0807f712a8382', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: 'e849871809560f669619b23a695f20103d5872e8', class: "effect-height flex items-center justify-between p-16", style: {
15212
15438
  background: this.colors[5].background
15213
- } }, hAsync("div", { key: 'ff5052b9aa74a3edb7d3ba6d1c75b9073b969b31', class: "grid" }, hAsync("span", { key: 'b69e9f4646835b689fd46c6f84b8b35dba1500a1', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: 'a459cc1600cb4072e6d1cfbcae75d17cf14fbbfe', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '55f9185213f01a7891a4e8ff54f4f26759370ef8', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '2f3bbbcdf402f0da4bade772b3cadb1b8cb3370c', class: "grid" }, hAsync("span", { key: '818372e4673ef5c8e35085702a559b744a5cbe8c', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: '2bc994826618735b82fd93fe039328a2ff4f6f95', class: "f-body-02" }, this.colors[5].pantoneU)))))));
15439
+ } }, hAsync("div", { key: 'ef1de66807f52f07f65dcdcebb82db99e4488e96', class: "grid" }, hAsync("span", { key: '60e08fa96458ca4e403ac7f44d57fa68c5bdcab8', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: '8c0ca774be1ff12054bfb29ea2b56c12b776f84c', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '2ad43b9dc6d62df3ed3e057262aca05558781f50', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '6f9ca87ef408575620079ca088ae00252cccd0fc', class: "grid" }, hAsync("span", { key: 'ccd038680073b25d8584f06fd1baab655cf6125c', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: '8705f39198fa91da2b26d334dc1c89cd9f511492', class: "f-body-02" }, this.colors[5].pantoneU)))))));
15214
15440
  }
15215
15441
  static get cmpMeta() { return {
15216
15442
  "$flags$": 0,
@@ -15273,11 +15499,11 @@ class GradientSupportPalette {
15273
15499
  ];
15274
15500
  }
15275
15501
  render() {
15276
- return (hAsync("ul", { key: 'e5444717497402cac34586943ffd10abd2e77148', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '84f6b65181b6f2237b7ef261445a2e58935975ab', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'b9eb17a05b1a479e46adf3908ede6d2a74e47e91', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: '74cb2cf74997cf993557cbf06158578a45439965', class: "grid" }, hAsync("span", { key: '29c00a82880aff024927e29c95fde61016553d5d', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'db89f95d9c30eb90ba6d7f9cd12c793f8a500b00', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'd050e9d7910ed8ac88f4f791a2c8a1edaadcb0ac', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd2b688154a3d1f61df4dcc1f735eae9747011d01', class: "grid" }, hAsync("span", { key: '2a204759a52f881b2d6b0d40116bf00bbda3aed2', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: '9023f33ba5182558f12dfb119ed4338649638bd7', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: '55a4cf54a4dbc1b5c7f9962c571cbb971cba0d93', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'b4190fda8834ddfe5e53e90d357cc1835e7d16ce', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: 'cf5415f31d46d7a966fa3da040aec720c0241673', class: "grid" }, hAsync("span", { key: '4fb475890391784e8be7c40d0c74c02a492739f7', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '02f5bd1fcb7be45141963bb1d723646195978d49', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '781791e59a86c8687d9afe6d729161acf05fc9dd', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'dd84d9b36892ff47481babfb2fbb8a9082f43219', class: "grid" }, hAsync("span", { key: 'df5ef60b6866f46bafcd93d8f82498090102a520', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: 'a8cf80fcb9f7fef12daf32055c61fdb33ee38d67', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: '2ed0376ad5484fadac08c530450e993fa6145328', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '30ba72591ea4537407b2220a85a961fce0fc54e5', class: "effect-height flex items-center justify-between p-16", style: {
15502
+ return (hAsync("ul", { key: 'e1b86872cead72320e3e4cf6cd22e672500cfcab', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '6a39321c305bb9c0f4c79932252faf0c08fd11e6', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '255fb9153e49030054666f086b2e0ac4d6d3dc0e', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: 'fb08851f97cefa4b06a00f7063b558607f5df19e', class: "grid" }, hAsync("span", { key: '4a8a0dc633cca7c36e6ca981e6b85775005ce80f', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '0bebfc5eb567e030e993037f527df3af46615ff2', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'aa06e607647a762ed7150a5aceaeda8c7854a050', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '5c143dd4c8afff2365aad02f68d444fd2234d90f', class: "grid" }, hAsync("span", { key: '47c9334efb42ee8259033bf1a323519d0a048bc7', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: 'bca6d9635f5bcb16ef54154b2d3a2b6734cef7e7', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: 'e78077ac00556ec5faa7d0ec7e3dc2b9ae7643f2', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '10f182a6515a0006f3903dfcf783349870c2e6c2', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: '4ef41025e6e2bb0ebe05933f7fad707c4136c852', class: "grid" }, hAsync("span", { key: 'c2b3c48904efe628b148e080e1487dc8fba70b63', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'ae12e16d9a070b29492a385ff21b6371b9826f85', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'a6e980da23e2c5d0312a9d1a12432388fbba1d56', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a38408a780756f4e81c8d791e52eb87056755eaf', class: "grid" }, hAsync("span", { key: '0180f83000b733914c33696ef4b6d7257efba396', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: 'fdaab526fcb07f4a58e4daae616da144c2f46666', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: 'c771a8d62610c7255835896fe678136838c05235', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'debe404f676d76d4ee6e0bf70fc1fb596b768a72', class: "effect-height flex items-center justify-between p-16", style: {
15277
15503
  background: this.colors[2].background
15278
- } }, hAsync("div", { key: '641ea920703268846558c852fe087fa9546e14b7', class: "grid" }, hAsync("span", { key: 'f672422e13deb40e9dfaddd6f9855b2de28eab5b', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '008794c76fb2713438c198c914e718efbbfc7b5e', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'ee1cfa3a78f670c74e00e96b6415f85715334526', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '295c044bb9cc9ed3a85bb488225db4401f0ea542', class: "grid" }, hAsync("span", { key: '9d7dbf15fd44ce3d3e45a39324ad3a60d7ae30f0', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'd639d12c3215caf3f4f1e8a4ae062b540b6af50d', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '04e95d8b1a6f7dcdbc465263382e36d05f79d602', class: "effect-height flex items-center justify-between p-16", style: {
15504
+ } }, hAsync("div", { key: 'db1beec1c3ad71ef5fcacaa0d14618acc01666f4', class: "grid" }, hAsync("span", { key: 'cc6e9c599d26813756dc0eb0c240169ea5b2856a', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '9f45b4ec7cd579040a135f63aa3b7aadb8f10ada', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '2ce58a56fcfd1a3b8f7855296c929c37b634bfca', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd494a074655c8bcf35d4021b700eafcd9acdfb54', class: "grid" }, hAsync("span", { key: '626ae49228b52ff921b5ce2bc15b12a540618691', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'db8c4d3f246851fd18794e317d20f1a1f9be59b9', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: 'f27de0de4bfff2bc26ef573a11b770f55f461425', class: "effect-height flex items-center justify-between p-16", style: {
15279
15505
  background: this.colors[3].background
15280
- } }, hAsync("div", { key: 'e67079bbbdfa1853a2f069f08c52a8388cce688a', class: "grid" }, hAsync("span", { key: '43be6b7785066c0d51aa87e987fb672a758de8bb', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '791e968b11a9dafefac8fe0eda01b04ab4911802', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '5831fd1e75f8ed0d2edc29fbc439389275adf59e', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '09329acac8fbc33edada7a7c10c675631a240ea2', class: "grid" }, hAsync("span", { key: '42f70fa2578b40e189b95cd1d4c56ccd84cdce69', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '2b8dfefd1e2dff08aa17b234a04cff60e3eb9d7a', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: 'e3a39fb7ad23526623bfea88cdab8d320847365d', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'cfde16c94675c5c9b510e3752f875655c9d098e2', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: '1f8a8bd2e746c187323841ced84eec52d2c2f2f1', class: "grid" }, hAsync("span", { key: '920fc68ae73790a37c927dabf687ccaf5e248841', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '40205cf5666e6ba44ca07a09dc08e54f2f9cad56', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: '8a855110b362569cc9926a09772d12f133aa20b6', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a69c90cfac79b0a7ba5fbd921117a12ce997c228', class: "grid" }, hAsync("span", { key: 'bc06aaaaececad3b81e4884380e17fe773f97570', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: '15baae3dafc6b53322e1a67956af1f533ea402f7', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
15506
+ } }, hAsync("div", { key: '386d0e341c37f0baef2c62a13fcba88640b5ec3a', class: "grid" }, hAsync("span", { key: '5b5f541490612b70841e2ea62bad3b8f86587301', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '88b7fd61a6fe4f15bb37d067e8b9f28fe329de0d', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '7d96a904aa3703ffba953ede2e68aae605aa5921', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8a20e30b1c43b8f50eb8cbde0e735a54d4129e26', class: "grid" }, hAsync("span", { key: 'd843ddf7b0328f99400c106e7705aed0626d2f32', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '57ce96cc38ae1f0b91f512841e0738384e543cb1', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: '5d96a25dcd51b35b01952ebc94c75cfa1045b8da', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '713e347acd6ee623562db92a24b87a2f36086875', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: 'a62ed8e1fda6deb45b131c4d7cefe355862b33ba', class: "grid" }, hAsync("span", { key: 'bb419133f1bfcd07f05d551a4dafa54331ee1c09', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '774de6f18b6ab9d5539cc6889949b7ef9a0511db', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: '87d83ce275bfbba7a8930e1e0fcecf14dee2af59', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '4e4acde29f939b2e7b2d4925490da515b8bcabf1', class: "grid" }, hAsync("span", { key: 'c2276899357a54e0be5d35fcb9cbc01257882a12', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: 'c78d9648c05583b858d75ff0f6aff57a62ff1628', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
15281
15507
  }
15282
15508
  static get cmpMeta() { return {
15283
15509
  "$flags$": 0,
@@ -15331,7 +15557,7 @@ class IncorrectUseOfColors {
15331
15557
  registerInstance(this, hostRef);
15332
15558
  }
15333
15559
  render() {
15334
- return (hAsync("div", { key: '2e660e9a788e46e68d6695ae8aa475bbb1ca395e', class: "container" }, hAsync("eds-alert", { key: '1dc4552a33d88055a3a0c33eeb18c53a8379039a', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), hAsync("div", { key: 'fd6bf7f0205422b1bd3ceb3f8374d5a9a73aaca0', class: "flex" }, hAsync("div", { key: 'dae745447f5e9792136f059b1dcfc868e473dfd5', class: "w-full" }, hAsync("ul", { key: 'daeec7514f4027ec3f688f05fb4f1e027b846a81', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '1ca202afa9384e78e3ed9c0674e06c51184d3a5a', class: "w-full" }, hAsync("ul", { key: '7bdef2e7d64f3c5553193d127bac69ee89a93686', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
15560
+ return (hAsync("div", { key: 'cb22d37293f3b3b5fe3772cfe83234a5d81e1094', class: "container" }, hAsync("eds-alert", { key: '9aa7a510440c32f92242b3e09f9e818cd2509b06', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), hAsync("div", { key: '4d22cba75b7dd45a5a9a7d2b2eba5404875f1403', class: "flex" }, hAsync("div", { key: 'c7f08b3e4ef2692c545edd4185a005ddd6526a23', class: "w-full" }, hAsync("ul", { key: '28561abcdc93a4899a5d7481fdd47c439f734ff6', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'f8836d4805fdd416ee75712f749d5cee3f612559', class: "w-full" }, hAsync("ul", { key: '5842acd55d3a827355f2814c709d057676fb5d0f', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
15335
15561
  }
15336
15562
  static get cmpMeta() { return {
15337
15563
  "$flags$": 0,
@@ -15354,7 +15580,7 @@ class LogoSpace {
15354
15580
  registerInstance(this, hostRef);
15355
15581
  }
15356
15582
  render() {
15357
- return (hAsync("div", { key: '004134f2770f755a3ae0d158b9ec6987a64dcc8b', class: "container my-20" }, hAsync("div", { key: '49b57e44a4a68b5d6393ee3284af58d56aa5c014', class: "w-[300px]" }, hAsync("div", { key: '4812ffe1b1df94ece0e2d391648aea812c7c9028', class: "bg-dark" }, hAsync("div", { key: 'ce3bbecdba5bbabb14d1b0e197318cf4180f8699', class: "logo-container", innerHTML: vLogoMargins })))));
15583
+ return (hAsync("div", { key: 'fc5040b294d45ecbf8e3ee0ab26875c63efa3625', class: "container my-20" }, hAsync("div", { key: 'acad9c182cb46fd58f37d9195c9e20658df81767', class: "w-[300px]" }, hAsync("div", { key: '4caac9e94b715c967958fe6bd9e5d988622c8729', class: "bg-dark" }, hAsync("div", { key: 'd82b6156de96fd91e996c0ab775b9503395ba04f', class: "logo-container", innerHTML: vLogoMargins })))));
15358
15584
  }
15359
15585
  static get style() { return LogoSpaceStyle0; }
15360
15586
  static get cmpMeta() { return {
@@ -15378,7 +15604,7 @@ class LogoVariationsHorizontal {
15378
15604
  registerInstance(this, hostRef);
15379
15605
  }
15380
15606
  render() {
15381
- return (hAsync("div", { key: '577cade970766dbbbd654258efe78920d8c0dbaf' }, hAsync("div", { key: '1c577dafe342384bffce716b4bcb9494685f2283', class: "container my-16" }, hAsync("h3", { key: 'b9f78264dbbe144cc9c7823c48874b3618af3919', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'c07b24eb1a3338d33a3b95c0228a1a7f297a0976', class: "coloured lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'ed173d7c59ae22ad55814cf64222a5ce52d108d4', type: "no-bg", href: "#" }))), hAsync("div", { key: '7d939b469a8ce14f609e529121a830d9a47af857', class: "container my-16" }, hAsync("h3", { key: 'f110490f66e3d27f204e289a5eb85461c13594fa', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'd05bd8166d2a60aac723436b96e2451ae4459c04', class: "bg-default lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'ce24bb6db3038d781a4d1917012c0d4ed7f23b1a', type: "black", href: "#" }))), hAsync("div", { key: '32fbbb1568604bdfd04c6ca6c14a558a3c490ed8', class: "container my-16" }, hAsync("h3", { key: 'ef03e68319669f548c7826d6387072af8d3f5a66', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: 'a6b082f14400be771f43074c1f7f0bc348e77673', class: "lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: '569f77f1b43b4a65a39720017b34273d6f3d7baa', type: "color-white", href: "#" })))));
15607
+ return (hAsync("div", { key: '17506a830e62dd31e1415d2be8b4553c3068bfd0' }, hAsync("div", { key: '4ae7fe3624155cf1b2a749bed360d8b55cd2bede', class: "container my-16" }, hAsync("h3", { key: 'e6daae3d262a53fb374162b5e3313fa98e11bf6b', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'ab405030d5cac7ec5fe95f638dfeaa0e48f70af7', class: "coloured lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: '05441cfb40658a2bd01f7f9a8c28e28d340b6dc1', type: "no-bg", href: "#" }))), hAsync("div", { key: '82731279160c6c666889d32f329cf8469f853783', class: "container my-16" }, hAsync("h3", { key: '73269548408d466223d44f9293f589e7e4b99bae', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: '1d3e89b35eca34712e184ce42ba2f7632439ce4f', class: "bg-default lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'fc59306d8098f4764ab0f72fdbb5009bea5f3c44', type: "black", href: "#" }))), hAsync("div", { key: '355ce3ef5cbd6872ce86ec847c3394deb29f2846', class: "container my-16" }, hAsync("h3", { key: '57adbc464a1e2f2d5818112f00149840c2c0758a', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: '84e43ad22d556672c1b0e82a9ed3e2c988649598', class: "lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: '0d0d38e691d763189c88ae803f9b02523b362ff8', type: "color-white", href: "#" })))));
15382
15608
  }
15383
15609
  static get style() { return LogoVariationsHorizontalStyle0; }
15384
15610
  static get cmpMeta() { return {
@@ -15404,7 +15630,7 @@ class LogoVariationsVertical {
15404
15630
  this.type = undefined;
15405
15631
  }
15406
15632
  render() {
15407
- return (hAsync("div", { key: '70bc4a46031bb4456ba28bef27efbbfe5e7cf6f2' }, hAsync("div", { key: '84ab774067350c75982d41b6d97500e19d3fe5e5', class: "container my-16" }, hAsync("h3", { key: 'c080f9b4cfa18a3a48fb703f749c62531a322267', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'a9a871769d76e97c879f49437187ca553a633dd2', class: "coloured w-[200px]" }, hAsync("eds-logo", { key: '668f2607e0394ab1b25ddfbef4cd3e3880e1b4f9', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("div", { key: 'd1674061f47b242930599337d605b51831214d7a', class: "container my-16" }, hAsync("h3", { key: '8b1470587ad99fdf379c0c4b4646098d14f087e8', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'bbb9997369a93ce84450a7d289948049fcfa5bf6', class: "bg-default w-[200px]" }, hAsync("eds-logo", { key: '4f3dc6ad9f9db6f605d54df3c8adecea051cf34e', orientation: "vertical", type: "black", href: "#" }))), hAsync("div", { key: '0f54fde04fbef65477809b45371ac15914b1433b', class: "container my-16" }, hAsync("h3", { key: '5c46f1d7b09bf3e113e2733531611943ad21be4e', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: '88609875109aae85cb5333426a3bc270314d9fb5', class: "w-[200px]" }, hAsync("eds-logo", { key: '0eeeba0006e25a8a4f0c4fb5c0d38b089e0a22f4', orientation: "vertical", type: "color-white", href: "#" })))));
15633
+ return (hAsync("div", { key: 'fee70336cee863d905a6537392f1ddf6bda1d449' }, hAsync("div", { key: 'f04e0928bbd1875982190f5fe685c43a0e712704', class: "container my-16" }, hAsync("h3", { key: 'd10318ccf82f90743af6279afea3afa36ec411dc', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: '06cca782bfc5564172c1a745652c66d5304ad9c8', class: "coloured w-[200px]" }, hAsync("eds-logo", { key: '175bbd4acc1b184e8d372b78246524b2d4ae6758', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("div", { key: 'a7eb431d1ee679bc8c28aed0932325c99d4e0798', class: "container my-16" }, hAsync("h3", { key: '0a5d4e193f9b8e36c81beb5fcc81eccaa2433ee9', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'c2d6c02f46629f32155bfb0ef1eee7522cd4b6c1', class: "bg-default w-[200px]" }, hAsync("eds-logo", { key: 'a97c323c7af4c98fab5da6721450b80e2c8d85cb', orientation: "vertical", type: "black", href: "#" }))), hAsync("div", { key: 'ac99317a56b7ce01f324efc3423593a20164f932', class: "container my-16" }, hAsync("h3", { key: '908f915f49802906b1d0d5cb008ed4cdb3b5a68a', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: '94e25cd1734ec0ef18d3742f908a08ceec50aa6f', class: "w-[200px]" }, hAsync("eds-logo", { key: '7f74de4532f6696e7168f0fc9c5dc28afed91f98', orientation: "vertical", type: "color-white", href: "#" })))));
15408
15634
  }
15409
15635
  static get style() { return LogoVariationsVerticalStyle0; }
15410
15636
  static get cmpMeta() { return {
@@ -15431,7 +15657,7 @@ class LogoWrongUsage {
15431
15657
  registerInstance(this, hostRef);
15432
15658
  }
15433
15659
  render() {
15434
- return (hAsync("ul", { key: 'e2fbd7802c153f970a457011a5dcaf3163d6290f', class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("span", { key: '07d6a5b930dd8ae652e63310c4232e8c3e6858b2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '5d3dd01a67f41f839e79aa3d449ba319dcc0209c', class: "example" }, hAsync("div", { key: '6b51ea71b6b4072ec6c66223a4f92c1232e8691a', class: "bg-dark " }, hAsync("div", { key: '03a476635bc1112f1ea2d4ed10df0415ead7f0f8', class: "no-other-bg-color logo", innerHTML: hLogoColor })), hAsync("p", { key: '084116335e9f8ed4c9d2a04a9551097dc2a53c4a', class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), hAsync("span", { key: 'e67f1bdeee28928f4f6f8fb5d1e0b59160edd949', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'b0e909eb57a6771b32a93dd0932ef5b848a19ff2', class: "example" }, hAsync("div", { key: '19bc9f29ddbffd1c308cb429100f0af3d58237a1', class: "no-other-color p-16" }, hAsync("div", { key: '301c5cb926b9ad167f1ba096f99a874577617fb1', class: "logo non-brand-color", innerHTML: hLogoColor })), hAsync("p", { key: 'b41ab53c2af9efeafb46d41a515eba2f801d49e4', class: "f-ui-02" }, "Do not apply other colors"))), hAsync("span", { key: '826ae54f62c5a3880adf1833dbc19bbb9e1ec6f2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '092d5fc3176845532ecf577c66d6e3a349ebfe45', class: "example" }, hAsync("div", { key: '1d1d3cc86e728fc21f898c59ff1511c5fa728f9f', class: "bg-light p-16" }, hAsync("div", { key: 'df05102398d3de9916a23d0998529d8ca8a66257', class: "logo distorted", innerHTML: hLogoColor })), hAsync("p", { key: '377e38a762855d563d087eb275481de6a17ddbbb', class: "f-ui-02" }, "Do not deform the logo"))), hAsync("span", { key: '766c4ea568c8bf2fa1efa207ff5f602e5128aef3', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'cf4e883370c0ee284167bea7f2c0c603932d1682', class: "example" }, hAsync("div", { key: 'de160646456f91316bf966db6568c20ff382dd3b', class: "bg-white p-16" }, hAsync("div", { key: '5aa03093e5e483547919eaeca58643e54a286405', class: "logo effects", innerHTML: hLogoColor })), hAsync("p", { key: 'aa65e295008001d6fe2b2168d8f7f43a770ec8e3', class: "f-ui-02" }, "Do not apply effects"))), hAsync("span", { key: 'd0eb2536e430b6e9fdb9a37d638d5c31ee81e205', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '43ec87b4632c2709404aff9d3e7bbcb2910426ca', class: "example" }, hAsync("div", { key: '36cd6dc2b23070e5c7fdfc09444d3ccbb8681216', class: "bg-white p-16" }, hAsync("div", { key: 'a1077b322d113220e05ee3edce627c60547cb49a', class: "logo rotated", innerHTML: hLogoColor })), hAsync("p", { key: '86c384f5cf362d16bd6ac5ac8448e3e0d591fa18', class: "f-ui-02" }, "Do not rotate the logo"))), hAsync("span", { key: 'b267f6024a4e7bad6348d323606922888db5264b', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '0bd0c5d62e454ce133a187e7d3917afc0c26c551', class: "example" }, hAsync("div", { key: '71e4c1681cfbb64970237b410e0925a0f22e1141', class: "bg-light p-16" }, hAsync("div", { key: '01ab5d75102b9f476fecebcc31c975f6d4720c12', class: "logo outlined", innerHTML: hLogoColor })), hAsync("p", { key: '0734a049d710d1f6406989668f60da1249e29c7b', class: "f-ui-02" }, "Do not apply outlines"))), hAsync("span", { key: '830b7b2a8cdf6dfc7f395dc92db42fbe626a7ae4', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }), hAsync("span", { key: 'ca40bb4ea839eacf62e93f7fbec41f076f7b12a6', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '641a963ba81294eefe8fc00dd0a3bdca91af94a2', class: "example" }, hAsync("div", { key: '70691be08e9081899fb2928d5d287aaebef3b399', class: "bg-accent p-16" }, hAsync("div", { key: '556135fd6596b530bf959bb9984641f185cd9f96', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: '7eaded302e41fc1d04f2033add829dfaba6e8012', class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
15660
+ return (hAsync("ul", { key: '3b7b6626be122a983b8e75560519c5cf7e31140a', class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("span", { key: 'ec2af2fbd7ca5fe85b15be216bec42a9289b40f1', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'cef460808c414cc1a14e380d7862523e9d53b214', class: "example" }, hAsync("div", { key: '759ea5b73ced15cf2caef3566f2f1fdeb2122612', class: "bg-dark " }, hAsync("div", { key: '9d0b7aef45f578f1c6e0d84f80583f8116688cf7', class: "no-other-bg-color logo", innerHTML: hLogoColor })), hAsync("p", { key: '223611a3bedea685dd1904922f472fee474ddf11', class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), hAsync("span", { key: '49e6907610dfaede93ddf179dafbc93f340832ec', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'f11f675e9b002bc5d571907faeabfa7c8a2ea4f4', class: "example" }, hAsync("div", { key: 'b63ab2771e06f9d56c1ae995be5b23612b670e6e', class: "no-other-color p-16" }, hAsync("div", { key: '91d331a3fd50976496cd9eff08e5150d5fb8c368', class: "logo non-brand-color", innerHTML: hLogoColor })), hAsync("p", { key: 'b34ec2c20218499972367287e730e3ea75d94bb2', class: "f-ui-02" }, "Do not apply other colors"))), hAsync("span", { key: '20d1babcf42bd66e56633f78e5e7a38689b1c831', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '057c8a11c93076e2b9663baa49f101f90c3007be', class: "example" }, hAsync("div", { key: '767471f768d48de8a230dac229f86a751590bfb6', class: "bg-light p-16" }, hAsync("div", { key: 'd5e807d0cdea5958b0c2d93c3207924616fece63', class: "logo distorted", innerHTML: hLogoColor })), hAsync("p", { key: 'c357e9516bb82a3f431270c56a23fd614684d126', class: "f-ui-02" }, "Do not deform the logo"))), hAsync("span", { key: '789d0af543f4ccc9a270c3a332f1dcb2dc79b77f', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'a5e0d0a85a4e1656a0e7d01dc41f59711971b403', class: "example" }, hAsync("div", { key: 'a7eb16e39e2f954e42f5f8c0c2ed152fb53f7c2a', class: "bg-white p-16" }, hAsync("div", { key: '46ec9c3b424cf4661cda4adc31989a8c355376d4', class: "logo effects", innerHTML: hLogoColor })), hAsync("p", { key: '2c7e8e98a0306d08f30e857e5476703993ffda2c', class: "f-ui-02" }, "Do not apply effects"))), hAsync("span", { key: '846791ec992abd3f0632070cb09d9ef3dcfa67b7', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '82fb8f93a6cb8789bf4a56e589975ad353bc88c2', class: "example" }, hAsync("div", { key: '8c7e30c775364fa1d79b118e5aff5cd1e883101f', class: "bg-white p-16" }, hAsync("div", { key: 'a18af5ffaba038fff7a442ab626f783a8a1f08ba', class: "logo rotated", innerHTML: hLogoColor })), hAsync("p", { key: '8ad738506d45e065ad5c96df9f5bf569a632e446', class: "f-ui-02" }, "Do not rotate the logo"))), hAsync("span", { key: 'f556f0d638d48bcd95d0cc198e0408bb109cd92f', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '153d0704622a633e8937bb0a481941cca7446a8f', class: "example" }, hAsync("div", { key: 'e4d9e874f931413d924635432df55de18d329f2f', class: "bg-light p-16" }, hAsync("div", { key: '2435bddf3af2928878338793e895cc080b7e1f7a', class: "logo outlined", innerHTML: hLogoColor })), hAsync("p", { key: '64c46cd279b062ab87ce34187bd979c58f1c9312', class: "f-ui-02" }, "Do not apply outlines"))), hAsync("span", { key: 'd28391400911e4b8481a707a197915d2f9fffbf2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }), hAsync("span", { key: '4aa8af822ff81bb7313145ccc24dbb79a7041f26', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '63fc69af51c57497cde82c7377dc5cc56bcd264e', class: "example" }, hAsync("div", { key: '54029b8e273baddb810ea869b341a66f0b9a9e9a', class: "bg-accent p-16" }, hAsync("div", { key: 'd82bbfa6ea877ec8af75230093548fffd086b1b4', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: 'f12f0cd6baedc08020ebd206c1c5c2fd8a6c7eda', class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
15435
15661
  }
15436
15662
  static get style() { return LogoWrongUsageStyle0; }
15437
15663
  static get cmpMeta() { return {
@@ -15687,7 +15913,7 @@ class TokenList {
15687
15913
  render() {
15688
15914
  // Check if `show` prop is provided; if not, display all sections
15689
15915
  const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
15690
- return (hAsync("section", { key: 'ac8573b341ad313eba0f9f082dcc72cfc81208b3', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
15916
+ return (hAsync("section", { key: '43d7e8b3192d4a2d596ca99a4dce072ea7387924', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
15691
15917
  // Only render sections that exist in `colors`
15692
15918
  sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
15693
15919
  }
@@ -15720,7 +15946,7 @@ class TokenRadii {
15720
15946
  registerInstance(this, hostRef);
15721
15947
  }
15722
15948
  render() {
15723
- return (hAsync("section", { key: '84dabcd5a39d49e116f8fc9e9b26e00455c7fbb3', class: "w-full mt-28" }, hAsync("ul", { key: 'a821c747c45b8898ab2e7626d2ead91814549335', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, hAsync("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), hAsync("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
15949
+ return (hAsync("section", { key: '0b0ccb9adcfa77ea898828ddbb244e959f93e2e4', class: "w-full mt-28" }, hAsync("ul", { key: '7c81d0a9725565c4e2587369528568d640e7b1a3', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, hAsync("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), hAsync("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
15724
15950
  }
15725
15951
  static get cmpMeta() { return {
15726
15952
  "$flags$": 0,
@@ -15749,7 +15975,7 @@ class TokenRatios {
15749
15975
  registerInstance(this, hostRef);
15750
15976
  }
15751
15977
  render() {
15752
- return (hAsync("section", { key: '9c4dc70bd40a40fbeedc88280ea3fdd4b2597e40', class: "w-full" }, hAsync("eds-section-core", { key: '039b72b762e48f62a4fa58d5af7803d0ed73bf6a', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: 'be3e37d842a24536488b7bc03f24399faa1304ff', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
15978
+ return (hAsync("section", { key: '0fb029d34cba573e04e15030b3fdd1497ac9974e', class: "w-full" }, hAsync("eds-section-core", { key: 'd6914b95ef74d590d58b0c90600fc44f5d9d6678', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: 'f08511f07380707795b810fd0f34c1acdc47d37d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
15753
15979
  aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
15754
15980
  width: '100%', // Full width to show the aspect ratio correctly
15755
15981
  maxWidth: '300px'
@@ -15791,7 +16017,7 @@ class TokenShadows {
15791
16017
  registerInstance(this, hostRef);
15792
16018
  }
15793
16019
  render() {
15794
- return (hAsync("section", { key: '4575feac8b5bff23aed39733e638fbb62916988f', class: "w-full mt-28" }, hAsync("ul", { key: 'c9833aa0d698a7ec33911011ccb9227d43c8261a', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, hAsync("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), hAsync("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
16020
+ return (hAsync("section", { key: '18d2b4cdcc3b6d6ce8864a9c36e869be9b9e5cb4', class: "w-full mt-28" }, hAsync("ul", { key: 'b258c50ab37a0445d523187c773e92f6569dd6ad', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, hAsync("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), hAsync("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
15795
16021
  }
15796
16022
  static get cmpMeta() { return {
15797
16023
  "$flags$": 0,
@@ -15811,7 +16037,7 @@ class TokenSpacing {
15811
16037
  registerInstance(this, hostRef);
15812
16038
  }
15813
16039
  render() {
15814
- return (hAsync("div", { key: '5f72b8386e92973faca8b22ebadcffa5b8ca8744', class: "w-full" }, hAsync("ul", { key: '619cc2546059aaac566dc89f56b098f72f7c2bde', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'b90587543210e02a577854ce061472ef8f3bdc7a', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'd98ea95c641209ba592aae8c695e278549840420', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '6dd84540a213d98fa09480eac823fe030dfb2404', class: "spacing-sample m-32 bg-darker" }, hAsync("span", { key: 'ad0493ba8d97cdcc15535505db4d726d6f69bd38', class: "text-white" }, "Margin: 2rem / m-32")))), hAsync("li", { key: 'a0914d288cdb4b9caef6956af0069cd0937ee019', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '95adc2b10d3962378de300e00b749b691fda88af', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '8bad94397c9fe8112b49933a508958000f9cd99d', class: "spacing-sample ml-64 bg-darker" }, hAsync("span", { key: '04229385104243a5ce9a194c4f8056f7341a6736', class: "text-white" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: 'f34e1fd5ccafc528ed9359766deaa5c615a2e14b', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '38e12800b2c8502ea2f9e912af929f71d3ec9699', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'f4e93d89576ab3de7f44ce3a85d9838f21bfa7f6', class: "spacing-sample mt-32 bg-darker" }, hAsync("span", { key: 'e85e2e1c7c4c7e765dfafd25dc9f2c33b6bd5069', class: "text-white" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'b42299c17c024a5906bd09c80a2f309b461b6fde', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'f54a9e32893ac6f1b0384e79e2959d1e65a251e2', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '4209fa0c979a1d55d42d7b892bc94cc0f3788e88', class: "spacing-sample p-32 bg-darker" }, hAsync("span", { key: '1d9249c56d3a42500dfb8cc1d3eae1f89e79cdcd', class: "text-white" }, "Padding: 2rem / p-32")))), hAsync("li", { key: 'ad6f2e33e15c4c21bdfed8478b3d2faa905490fa', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '9950970e66b8a382e7b0158b54e980a5e5f45774', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '40e96cd046eaddf3a23387995affbfc399d171ae', class: "spacing-sample pt-32 bg-darker" }, hAsync("span", { key: '2d120273f7a6d4429061d0ade2164ada9a14b506', class: "text-white" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: '8c3327edc63f8959c0cb01cce0a8407bf3a605af', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'c0be38039770c54577f073e1a707110cd0807ab5', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'd8085da375e734ed11fe580f1a9004f6fddef679', class: "spacing-sample pl-32 bg-darker" }, hAsync("span", { key: '029857c00659221390438d8477734d0f130d1b97', class: "text-white" }, "Padding Left: 2rem / pl-32")))))));
16040
+ return (hAsync("div", { key: '144e643ff3f26d09b932b3bfa2086164134728c0', class: "w-full" }, hAsync("ul", { key: '901ef03cdff10b00eb4c8bdbda083760fcde7f24', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '330a1a3bae65fde46111f2213d25e436fd2a91cf', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '1d2a762f9cf33ea03af1d63892f9ab53293ee1e7', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'adb666cc7517d3bf05d3599c75adb94833522848', class: "spacing-sample m-32 bg-darker" }, hAsync("span", { key: 'b7b11b55a5ccc619c2aa9890d1051995ba9a22f7', class: "text-white" }, "Margin: 2rem / m-32")))), hAsync("li", { key: '0cf9be1778f86479eca5db5d38964cdffeb4d336', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '5327b962b290dcaf1479cee8a0ae4c85d195be6f', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '7ada04bb258adad1d06562a6f35d44fcfe21ab5a', class: "spacing-sample ml-64 bg-darker" }, hAsync("span", { key: '5b50ff36cd166f19704cc431ea607fa95fdfe2aa', class: "text-white" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: '93c162e7bd651e4e7876e9098327b5d0d6a14001', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'baad427ed16e9f64f268cf4b5172426dee3fbf81', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '4e9cf544dd6ef7bace03d025a887e0c21b7fe3b4', class: "spacing-sample mt-32 bg-darker" }, hAsync("span", { key: '64858f80ac6535ad5d1f5e0dda7ed0b4ea61c9ba', class: "text-white" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'a5f0b462645727b11bdd874b7883cde9e3208e04', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '90fd6d72e160d5e16088c715153370b53ba07e36', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'c46fbff19edc9b0389b3a3347e96846e8e01d0ea', class: "spacing-sample p-32 bg-darker" }, hAsync("span", { key: '0acbde0ab78642e37e25103260804a096cb9e996', class: "text-white" }, "Padding: 2rem / p-32")))), hAsync("li", { key: 'cdb0d711cad94887bd001defe30f0334dd948d16', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '6874126bd20267fdd9d0031002e24a71e0a39693', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '8ab168cab95089dffdc8bff3b9bb2f9cb1fc3832', class: "spacing-sample pt-32 bg-darker" }, hAsync("span", { key: '4366fbd79ce583f9399bc739da790b01759eb5ea', class: "text-white" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: 'affbabf8b1d8c4abdd61f51ac12cac4c5e3460a7', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '6e9eae3de01dd4ff99b19fdfc62eb4a301d5071d', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '5e6788281bc9f57aab48cd768fa81fb98e1e31c3', class: "spacing-sample pl-32 bg-darker" }, hAsync("span", { key: '8fe02840d35475a60536f13abf97bd98cb53b07e', class: "text-white" }, "Padding Left: 2rem / pl-32")))))));
15815
16041
  }
15816
16042
  static get cmpMeta() { return {
15817
16043
  "$flags$": 0,
@@ -16029,7 +16255,7 @@ class TokenTypography {
16029
16255
  registerInstance(this, hostRef);
16030
16256
  }
16031
16257
  render() {
16032
- return (hAsync("section", { key: '23815518d694435812ed3d7b9aab850043941b96', class: "w-full" }, hAsync("ul", { key: '366ed5bc5933c5b8a563d33b70471f507a21386c', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
16258
+ return (hAsync("section", { key: 'b831c9707b00d17768f585e2015de8a7289b11d2', class: "w-full" }, hAsync("ul", { key: '472e46f2c903597d24e8f24cf28b6f475c7d7a82', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
16033
16259
  .filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
16034
16260
  .flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
16035
16261
  fontFamily: typography.families.sans,
@@ -16130,7 +16356,9 @@ registerComponents([
16130
16356
  EdsSectionCore,
16131
16357
  EdsSectionHeading,
16132
16358
  EdsSocialNetworks,
16359
+ EdsSteps,
16133
16360
  EdsSvgRepository,
16361
+ EdsSwitch,
16134
16362
  EdsTab,
16135
16363
  EdsTable,
16136
16364
  EdsTabs,
@@ -16143,6 +16371,7 @@ registerComponents([
16143
16371
  EdsTrl,
16144
16372
  EdsUser,
16145
16373
  EdsUserModal,
16374
+ EdsVerticalStepper,
16146
16375
  GradientPrimaryPalette,
16147
16376
  GradientSecondaryPalette,
16148
16377
  GradientSupportPalette,