@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
@@ -2309,7 +2309,7 @@ class ColorPrimaryPalette {
2309
2309
  ];
2310
2310
  }
2311
2311
  render() {
2312
- 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))))))));
2312
+ 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))))))));
2313
2313
  }
2314
2314
  static get cmpMeta() { return {
2315
2315
  "$flags$": 0,
@@ -2381,7 +2381,7 @@ class ColorSecondaryPalette {
2381
2381
  this.show = undefined;
2382
2382
  }
2383
2383
  render() {
2384
- 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))))))));
2384
+ 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))))))));
2385
2385
  }
2386
2386
  static get cmpMeta() { return {
2387
2387
  "$flags$": 0,
@@ -2446,7 +2446,7 @@ class ColorSupportPalette {
2446
2446
  ];
2447
2447
  }
2448
2448
  render() {
2449
- 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'))))))));
2449
+ 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'))))))));
2450
2450
  }
2451
2451
  static get cmpMeta() { return {
2452
2452
  "$flags$": 0,
@@ -2522,7 +2522,7 @@ class CorrectUseOfColors {
2522
2522
  registerInstance(this, hostRef);
2523
2523
  }
2524
2524
  render() {
2525
- 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 } })))))))));
2525
+ 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 } })))))))));
2526
2526
  }
2527
2527
  static get cmpMeta() { return {
2528
2528
  "$flags$": 0,
@@ -2534,6 +2534,53 @@ class CorrectUseOfColors {
2534
2534
  }; }
2535
2535
  }
2536
2536
 
2537
+ // Helper function to check if Matomo is initialized
2538
+ function isMatomoAvailable() {
2539
+ return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
2540
+ }
2541
+ // General function to push data to Matomo
2542
+ function pushToMatomo(action, ...args) {
2543
+ //console.log('Pushing Matomo')
2544
+ if (isMatomoAvailable()) {
2545
+ window._paq.push([action, ...args]);
2546
+ }
2547
+ else {
2548
+ // eslint-disable-next-line
2549
+ console.warn('Matomo is not available or not initialized.');
2550
+ }
2551
+ }
2552
+ // Function to send analytics data
2553
+ function sendAnalytics(eventData) {
2554
+ var _a;
2555
+ if (!isMatomoAvailable()) {
2556
+ // eslint-disable-next-line
2557
+ console.warn('Matomo is not available or not initialized.');
2558
+ // eslint-disable-next-line
2559
+ console.log(Object.assign({}, eventData));
2560
+ return;
2561
+ }
2562
+ // Conditionally build the name field
2563
+ const nameParts = [];
2564
+ if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
2565
+ nameParts.push(eventData.parentContext.componentName);
2566
+ }
2567
+ nameParts.push(eventData.tag || 'unknown-tag');
2568
+ nameParts.push(eventData.name || 'unknown-name');
2569
+ const name = nameParts.join('/');
2570
+ //console.log('trackEvent', eventData.category, eventData.action, name)
2571
+ pushToMatomo('trackEvent', eventData.category, eventData.action, name);
2572
+ // eslint-disable-next-line
2573
+ console.log(Object.assign({}, eventData));
2574
+ }
2575
+ // Function to opt-in the user
2576
+ function matomoOptIn() {
2577
+ if (isMatomoAvailable()) {
2578
+ window._paq.push(['rememberConsentGiven']);
2579
+ // eslint-disable-next-line
2580
+ console.log('User has opted in to tracking');
2581
+ }
2582
+ }
2583
+
2537
2584
  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}";
2538
2585
  var EdsAccordionStyle0 = edsAccordionCss;
2539
2586
 
@@ -2565,9 +2612,17 @@ class EdsAccordion {
2565
2612
  * Toggles the `isExpanded` state and emits the `accordionChange` event.
2566
2613
  */
2567
2614
  this.handleClick = () => {
2615
+ var _a;
2568
2616
  this.isExpanded = !this.isExpanded;
2569
2617
  this.accordionChange.emit(this.isExpanded);
2570
2618
  this.setPanelHeight();
2619
+ sendAnalytics({
2620
+ category: 'ui-component',
2621
+ parentContext: null,
2622
+ tag: this.el.tagName.toLowerCase(),
2623
+ name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
2624
+ action: this.isExpanded ? 'expanded' : 'collapsed'
2625
+ });
2571
2626
  };
2572
2627
  /**
2573
2628
  * Calculates and sets the panel height based on the content height
@@ -2598,26 +2653,8 @@ class EdsAccordion {
2598
2653
  */
2599
2654
  componentDidLoad() {
2600
2655
  this.setPanelHeight();
2601
- // Emit context for each eds-link element after the component is fully loaded
2602
- const btn = this.el.shadowRoot.querySelector('eds-button');
2603
- this.emitContext(btn);
2604
2656
  window.addEventListener('resize', this.setPanelHeight);
2605
2657
  }
2606
- /**
2607
- * Emits a custom event called `parentContext` for a given link element.
2608
- * This event provides context information about the breadcrumb component.
2609
- *
2610
- * @param linkElement - The link element to which the event will be dispatched.
2611
- */
2612
- emitContext(linkElement) {
2613
- const event = new CustomEvent('parentContext', {
2614
- detail: {
2615
- componentName: this.el.tagName.toLowerCase(),
2616
- identifier: null
2617
- }
2618
- });
2619
- linkElement.dispatchEvent(event);
2620
- }
2621
2658
  /**
2622
2659
  * Lifecycle method that cleans up the resize event listener when the component is removed.
2623
2660
  */
@@ -2630,10 +2667,10 @@ class EdsAccordion {
2630
2667
  */
2631
2668
  render() {
2632
2669
  const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
2633
- 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
2670
+ 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
2634
2671
  ${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
2635
2672
  ${this.switchBg ? 'hover:bg-inverse' : ''}
2636
- ${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' })))))));
2673
+ ${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' })))))));
2637
2674
  }
2638
2675
  get el() { return getElement(this); }
2639
2676
  static get style() { return EdsAccordionStyle0; }
@@ -2775,11 +2812,12 @@ class EdsAlert {
2775
2812
  this.withBtn = Boolean(this.pressableLabel);
2776
2813
  }
2777
2814
  componentDidLoad() {
2778
- // Query all 'eds-link' elements, including those inside shadow DOM
2779
- const links = this.el.shadowRoot.querySelectorAll('eds-link');
2780
- links.forEach((link) => {
2781
- this.emitContext(link);
2782
- });
2815
+ var _a;
2816
+ // Query for the 'eds-link' element inside the shadow root.
2817
+ const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
2818
+ if (lnk) {
2819
+ this.emitContext(lnk);
2820
+ }
2783
2821
  }
2784
2822
  emitContext(linkElement) {
2785
2823
  const event = new CustomEvent('parentContext', {
@@ -2791,12 +2829,12 @@ class EdsAlert {
2791
2829
  linkElement.dispatchEvent(event);
2792
2830
  }
2793
2831
  render() {
2794
- return (hAsync("div", { key: '99518cd34cbfc04691f2f827b53105ef88c03af8', class: alertStyles({
2832
+ return (hAsync("div", { key: '519742081f681d6d67bc1b42c89fe1b6d005fe0f', class: alertStyles({
2795
2833
  intent: this.intent,
2796
2834
  direction: this.direction,
2797
2835
  withBtn: this.withBtn
2798
- }), role: "alert" }, hAsync("p", { key: '7eca97c849473bb4c8472d11243dc5eb9dded61f', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
2799
- (this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary" })) : null)));
2836
+ }), role: "alert" }, hAsync("p", { key: '6a5d11fdc2a975512b12c307286b0a8b06998bec', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
2837
+ (this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
2800
2838
  }
2801
2839
  get el() { return getElement(this); }
2802
2840
  static get style() { return EdsAlertStyle0; }
@@ -2817,212 +2855,6 @@ class EdsAlert {
2817
2855
  }; }
2818
2856
  }
2819
2857
 
2820
- [
2821
- ['eds-header', {
2822
- 'home-url': '/',
2823
- 'user-feature': 'false',
2824
- 'keycloak-url': 'http://localhost:8080',
2825
- 'keycloak-realm': 'nigeor-realm',
2826
- 'keycloak-client-id': 'stencil-app',
2827
- links: JSON.stringify([
2828
- { label: 'About', url: '/about' },
2829
- { label: 'Focus Areas', url: '/focus-areas' },
2830
- { label: 'News & Events', url: '/news-and-events' },
2831
- { label: 'Contact', url: '/contact' },
2832
- ]),
2833
- }],
2834
- ['eds-block-break', {}],
2835
- ['eds-footer', {}],
2836
- ['eds-block-break', {}],
2837
- ['eds-tabs', {
2838
- tabs: JSON.stringify([
2839
- { label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
2840
- { label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
2841
- { label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
2842
- ]),
2843
- }],
2844
- ['eds-block-break', {}],
2845
- ['eds-card-section', {
2846
- cards: JSON.stringify([
2847
- { title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
2848
- { title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
2849
- ]),
2850
- cols: '4',
2851
- }],
2852
- ['eds-block-break', {}],
2853
- ['eds-link', {
2854
- label: 'Main Link Click Me',
2855
- url: 'https://example.com',
2856
- intent: 'primary'
2857
- }],
2858
- ['eds-block-break', {}],
2859
- ['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
2860
- ['eds-block-break', {}],
2861
- ['eds-breadcrumb', {
2862
- items: JSON.stringify([
2863
- { label: 'Home', url: '/' },
2864
- { label: 'Products', url: '/products' },
2865
- { label: 'Electronics', url: '/products/electronics' },
2866
- { label: 'Laptops', url: '/products/electronics/laptops' },
2867
- ]),
2868
- intent: 'primary',
2869
- }],
2870
- ['eds-block-break', {}],
2871
- ['eds-card-generic', {
2872
- 'card-title': 'The Future of AI in Healthcare',
2873
- url: 'https://example.com/ai-healthcare',
2874
- description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
2875
- 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',
2876
- 'short-abbreviation': 'AI',
2877
- 'heading-level': 'h2',
2878
- tags: 'Technology,AI,Healthcare',
2879
- tiny: 'false',
2880
- bg: 'true',
2881
- 'with-hover': 'true',
2882
- }],
2883
- ['eds-block-break', {}],
2884
- ['eds-code-block', {
2885
- code: 'Hello',
2886
- language: 'javascript',
2887
- }],
2888
- ['eds-block-break', {}],
2889
- ['eds-dropdown', {
2890
- 'aria-label': 'More options',
2891
- 'rounded-btn': 'true',
2892
- 'dropdown-pos': 'right',
2893
- 'dropdown-offset': 'true',
2894
- }],
2895
- ['eds-block-break', {}],
2896
- ['eds-form', {
2897
- name: 'extended-form',
2898
- endpoint: 'http://127.0.0.1:5000/api/data',
2899
- fields: JSON.stringify([
2900
- { name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
2901
- { name: 'email', label: 'Email', type: 'email', required: true },
2902
- { name: 'number', label: 'Number', type: 'number', required: true },
2903
- { name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
2904
- { name: 'date', label: 'Date', type: 'date', required: true },
2905
- { name: 'file', label: 'File', type: 'file', required: false },
2906
- { name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
2907
- { name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
2908
- { name: 'role', label: 'Role', type: 'select', required: true, options: [
2909
- { label: 'Admin', value: 'admin' },
2910
- { label: 'Editor', value: 'editor' },
2911
- { label: 'Viewer', value: 'viewer' },
2912
- ] },
2913
- { name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
2914
- { value: 'option1', label: 'Option 1' },
2915
- { value: 'option2', label: 'Option 2' },
2916
- { value: 'option3', label: 'Option 3' },
2917
- ], required: true },
2918
- { name: 'gender', type: 'radio', label: 'Select your gender', options: [
2919
- { value: 'female', label: 'Female' },
2920
- { value: 'male', label: 'Male' },
2921
- ], required: true },
2922
- { name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
2923
- { name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
2924
- ]),
2925
- 'success-message': 'Form submitted successfully!',
2926
- 'error-message': 'Please fix the errors in the form.',
2927
- 'submit-btn': 'true',
2928
- 'small-alert': 'false',
2929
- 'set-form-url': 'true',
2930
- }],
2931
- ['eds-block-break', {}],
2932
- ['eds-img', {
2933
- src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
2934
- alt: 'EBRAINS Bernstein Conference',
2935
- width: '400',
2936
- height: '225',
2937
- 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',
2938
- sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
2939
- formats: JSON.stringify([
2940
- { 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' },
2941
- { 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' },
2942
- ]),
2943
- lazyload: 'true',
2944
- 'with-bg': 'true',
2945
- }],
2946
- ['eds-block-break', {}],
2947
- ['eds-input-field', {
2948
- name: 'username',
2949
- 'input-id': 'username',
2950
- label: 'Username',
2951
- placeholder: 'Enter your username',
2952
- required: 'true',
2953
- hint: 'Your unique username',
2954
- message: 'This field is required',
2955
- 'error-message': 'Invalid username',
2956
- type: 'text',
2957
- }],
2958
- ['eds-block-break', {}],
2959
- ['eds-pagination', {
2960
- 'current-page': '1',
2961
- 'last-page': '10',
2962
- 'per-page': '5',
2963
- total: '50',
2964
- mode: 'default',
2965
- }],
2966
- ['eds-block-break', {}],
2967
- ['eds-progress-bar', { value: '75' }],
2968
- ['eds-table', {
2969
- data: JSON.stringify([
2970
- { Property: 'username', Type: 'string', Required: 'Yes' },
2971
- { Property: 'password', Type: 'string', Required: 'Yes' },
2972
- { Property: 'email', Type: 'string', Required: 'No' },
2973
- ]),
2974
- config: JSON.stringify({
2975
- Type: { format: 'uppercase' },
2976
- Property: { format: 'code' },
2977
- Required: { hidden: true },
2978
- }),
2979
- }],
2980
- ['eds-block-break', {}],
2981
- ['eds-tag', { label: 'Default Tag', intent: 'default' }],
2982
- ];
2983
-
2984
- // Helper function to check if Matomo is initialized
2985
- function isMatomoAvailable() {
2986
- return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
2987
- }
2988
- // General function to push data to Matomo
2989
- function pushToMatomo(action, ...args) {
2990
- console.log('Pushing Matomo');
2991
- if (isMatomoAvailable()) {
2992
- window._paq.push([action, ...args]);
2993
- }
2994
- else {
2995
- console.warn('Matomo is not available or not initialized.');
2996
- }
2997
- }
2998
- // Function to send analytics data
2999
- function sendAnalytics(eventData) {
3000
- var _a;
3001
- if (!isMatomoAvailable()) {
3002
- console.warn('Matomo is not available or not initialized.');
3003
- console.log(Object.assign({}, eventData));
3004
- return;
3005
- }
3006
- // Conditionally build the name field
3007
- const nameParts = [];
3008
- if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
3009
- nameParts.push(eventData.parentContext.componentName);
3010
- }
3011
- nameParts.push(eventData.tag || 'unknown-tag');
3012
- nameParts.push(eventData.name || 'unknown-name');
3013
- const name = nameParts.join('/');
3014
- //console.log('trackEvent', eventData.category, eventData.action, name)
3015
- pushToMatomo('trackEvent', eventData.category, eventData.action, name);
3016
- console.log(Object.assign({}, eventData));
3017
- }
3018
- // Function to opt-in the user
3019
- function matomoOptIn() {
3020
- if (isMatomoAvailable()) {
3021
- window._paq.push(['rememberConsentGiven']);
3022
- console.log('User has opted in to tracking');
3023
- }
3024
- }
3025
-
3026
2858
  const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
3027
2859
  const gradientBGColorVariants = cva([], {
3028
2860
  variants: {
@@ -3170,8 +3002,8 @@ var EdsAvatarStyle0 = edsAvatarCss;
3170
3002
  class EdsAvatar {
3171
3003
  constructor(hostRef) {
3172
3004
  registerInstance(this, hostRef);
3173
- this.firstName = undefined;
3174
- this.lastName = undefined;
3005
+ this.firstName = 'User';
3006
+ this.lastName = 'Avatar';
3175
3007
  this.picture = undefined;
3176
3008
  this.initials = undefined;
3177
3009
  this.color = undefined;
@@ -3224,7 +3056,7 @@ class EdsAvatar {
3224
3056
  * @returns {JSX.Element} The rendered avatar component.
3225
3057
  */
3226
3058
  render() {
3227
- 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))));
3059
+ 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))));
3228
3060
  }
3229
3061
  static get style() { return EdsAvatarStyle0; }
3230
3062
  static get cmpMeta() { return {
@@ -3262,7 +3094,7 @@ class EdsBlockBreak {
3262
3094
  this.extraClass = '';
3263
3095
  }
3264
3096
  render() {
3265
- return hAsync("hr", { key: '85b5253d4abb77072424452d2ff6a0d631e67652', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
3097
+ return hAsync("hr", { key: '8cb39dda5d7f909b459390fe7e3f86dfd147ba98', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
3266
3098
  }
3267
3099
  static get style() { return EdsBlockBreakStyle0; }
3268
3100
  static get cmpMeta() { return {
@@ -3329,7 +3161,7 @@ class EdsBreadcrumb {
3329
3161
  this.parsedItems = Array.isArray(parsed) ? parsed : [];
3330
3162
  }
3331
3163
  catch (e) {
3332
- console.error('Error parsing breadcrumb items:', e);
3164
+ //console.error('Error parsing breadcrumb items:', e);
3333
3165
  this.parsedItems = [];
3334
3166
  }
3335
3167
  }
@@ -3357,9 +3189,9 @@ class EdsBreadcrumb {
3357
3189
  * It emits a custom event for each `eds-link` element contained within the breadcrumb.
3358
3190
  */
3359
3191
  componentDidLoad() {
3360
- // Emit context for each eds-link element after the component is fully loaded
3361
- const links = this.el.shadowRoot.querySelectorAll('eds-link');
3362
- links.forEach((link) => {
3192
+ var _a;
3193
+ const links = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-link');
3194
+ links === null || links === void 0 ? void 0 : links.forEach((link) => {
3363
3195
  this.emitContext(link);
3364
3196
  });
3365
3197
  }
@@ -3379,54 +3211,49 @@ class EdsBreadcrumb {
3379
3211
  linkElement.dispatchEvent(event);
3380
3212
  }
3381
3213
  /**
3382
- * Truncates breadcrumb items based on the maxVisibleItems value.
3383
- * Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
3214
+ * Returns breadcrumb items with potential truncation if there are too many.
3215
+ * It inserts an ellipsis item where necessary.
3384
3216
  */
3385
3217
  getTruncatedItems() {
3386
3218
  const totalItems = this.parsedItems.length;
3219
+ const ellipsis = { label: '...', url: '', isHidden: true };
3387
3220
  if (totalItems > this.maxVisibleItems) {
3388
3221
  const firstItem = this.parsedItems[0];
3389
3222
  const lastItems = this.parsedItems.slice(-2);
3390
- const ellipsis = { label: '...', url: '', isHidden: true };
3391
3223
  if (this.maxVisibleItems === 3) {
3392
- return [
3393
- this.truncateLabel(firstItem),
3394
- ellipsis,
3395
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
3396
- ];
3224
+ return [firstItem, ellipsis, ...lastItems];
3397
3225
  }
3398
3226
  else if (this.maxVisibleItems === 4) {
3399
3227
  const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
3400
- return [
3401
- this.truncateLabel(firstItem),
3402
- this.truncateLabel(middleItem),
3403
- ellipsis,
3404
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
3405
- ];
3228
+ return [firstItem, middleItem, ellipsis, ...lastItems];
3406
3229
  }
3407
3230
  }
3408
- return this.parsedItems.map((item, index) => index === this.parsedItems.length - 1 ? item : this.truncateLabel(item));
3231
+ return this.parsedItems;
3409
3232
  }
3410
3233
  /**
3411
- * Truncates the label of a breadcrumb item to a maximum of 10 characters
3412
- * if the screen is small.
3234
+ * Helper to determine the display label and full label.
3235
+ * If the label is longer than 15 characters and the item is not the current (last) item,
3236
+ * we display a truncated version but use the full label for aria attributes.
3413
3237
  */
3414
- truncateLabel(item) {
3415
- if (item.label.length > 15) {
3416
- return Object.assign(Object.assign({}, item), { label: `${item.label.slice(0, 15)}...` });
3238
+ getLabels(item, isCurrent) {
3239
+ if (!isCurrent && item.label.length > 15) {
3240
+ return { displayLabel: `${item.label.slice(0, 15)}...`, fullLabel: item.label };
3417
3241
  }
3418
- return item;
3242
+ return { displayLabel: item.label, fullLabel: item.label };
3419
3243
  }
3420
3244
  /**
3421
3245
  * Render method for the breadcrumb component.
3422
3246
  * It creates a navigation element with an ordered list of breadcrumb links.
3423
- * The last link is disabled and marked as the current page.
3247
+ * The last link is marked as the current page.
3424
3248
  */
3425
3249
  render() {
3426
3250
  const itemsToRender = this.getTruncatedItems();
3427
- return (hAsync("nav", { key: '1491f7e548ba859e0661129de2ec320552a2bb42', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '93525aad588295e9f2a3f02d143824c7c58ea512', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
3251
+ return (hAsync("nav", { key: 'd177957e1b3218c21991bbdc9636a8e32befe990', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd10336ddee99b9fb84d17e53093c57c6a025982f', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
3428
3252
  const isLast = index === itemsToRender.length - 1;
3429
- 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" }))));
3253
+ return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
3254
+ const { displayLabel, fullLabel } = this.getLabels(item, isLast);
3255
+ 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' } : {}))));
3256
+ })()) : (hAsync("span", { class: "truncate px-2", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (hAsync("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
3430
3257
  }))));
3431
3258
  }
3432
3259
  get el() { return getElement(this); }
@@ -3619,9 +3446,8 @@ class EdsButton {
3619
3446
  iconOnly: false
3620
3447
  }
3621
3448
  });
3622
- this.parentContext = null; // Accepts the entire event detail or null
3623
3449
  this.label = undefined;
3624
- this.ariaLabel = undefined;
3450
+ this.ariaLabel = 'Button';
3625
3451
  this.elementType = 'button';
3626
3452
  this.intent = 'secondary';
3627
3453
  this.loading = false;
@@ -3634,15 +3460,19 @@ class EdsButton {
3634
3460
  this.extraClass = undefined;
3635
3461
  this.triggerClick = undefined;
3636
3462
  }
3637
- handleParentContext(event) {
3638
- if (event.target !== this.el) {
3639
- // Ignore the event if it's not targeted at this specific instance
3640
- return;
3641
- }
3642
- //console.log(event.detail);
3643
- this.parentContext = event.detail;
3644
- event.stopPropagation();
3463
+ /*private parentContext: ParentContextDetail | null = null; // Accepts the entire event detail or null
3464
+
3465
+ @Listen('parentContext')
3466
+ handleParentContext(event: CustomEvent) {
3467
+ if (event.target !== this.el) {
3468
+ // Ignore the event if it's not targeted at this specific instance
3469
+ return;
3470
+ }
3471
+ //console.log(event.detail);
3472
+ this.parentContext = event.detail;
3473
+ event.stopPropagation();
3645
3474
  }
3475
+ */
3646
3476
  handleClick(event) {
3647
3477
  var _a, _b;
3648
3478
  if (this.disabled) {
@@ -3652,7 +3482,7 @@ class EdsButton {
3652
3482
  }
3653
3483
  sendAnalytics({
3654
3484
  category: 'ui-component',
3655
- parentContext: this.parentContext,
3485
+ parentContext: null,
3656
3486
  tag: this.el.tagName.toLowerCase(),
3657
3487
  name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ((_b = this.ariaLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '',
3658
3488
  action: 'click'
@@ -3679,7 +3509,7 @@ class EdsButton {
3679
3509
  show: !this.loading
3680
3510
  });
3681
3511
  const ElementType = this.elementType;
3682
- 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: {
3512
+ 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: {
3683
3513
  border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
3684
3514
  borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
3685
3515
  } }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
@@ -3704,7 +3534,7 @@ class EdsButton {
3704
3534
  "extraClass": [1, "extra-class"],
3705
3535
  "triggerClick": [16]
3706
3536
  },
3707
- "$listeners$": [[0, "parentContext", "handleParentContext"]],
3537
+ "$listeners$": undefined,
3708
3538
  "$lazyBundleId$": "-",
3709
3539
  "$attrsToReflect$": []
3710
3540
  }; }
@@ -3713,6 +3543,14 @@ class EdsButton {
3713
3543
  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}";
3714
3544
  var EdsCardDescStyle0 = edsCardDescCss;
3715
3545
 
3546
+ /**
3547
+ * `eds-card-desc` is a simple component that renders a card description.
3548
+ *
3549
+ * It displays a block of text with optional truncation applied using a CSS line clamp.
3550
+ * You can customize the description styling via the `descClass` property and control
3551
+ * whether or not the text is truncated and to how many lines.
3552
+ *
3553
+ */
3716
3554
  class EdsCardDesc {
3717
3555
  constructor(hostRef) {
3718
3556
  registerInstance(this, hostRef);
@@ -3725,7 +3563,7 @@ class EdsCardDesc {
3725
3563
  return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
3726
3564
  }
3727
3565
  render() {
3728
- return (hAsync("p", { key: '017c115ebff999c74cff1eaeb5c63f97e0f6554d', class: `text-light ${this.descClass}` }, hAsync("span", { key: 'f87b9b3d593e417ef351882f426d24c0b206ccab', class: this.getTruncateClass() }, this.description)));
3566
+ return (hAsync("p", { key: '71495cbd6ef4e7d66c4c22a37f8120624ecf57fb', class: `text-light ${this.descClass}` }, hAsync("span", { key: '8708178f7b48cc1f31aac749f50fe92b72c39ab8', class: this.getTruncateClass() }, this.description)));
3729
3567
  }
3730
3568
  static get style() { return EdsCardDescStyle0; }
3731
3569
  static get cmpMeta() { return {
@@ -3769,7 +3607,7 @@ class EdsCardGeneric {
3769
3607
  this.avatar = undefined;
3770
3608
  this.shortAbbreviation = undefined;
3771
3609
  this.headingLevel = 'h3';
3772
- this.tags = '';
3610
+ this.tags = [];
3773
3611
  this.tiny = false;
3774
3612
  this.bg = true;
3775
3613
  this.withHover = true;
@@ -3845,7 +3683,7 @@ class EdsCardGeneric {
3845
3683
  });
3846
3684
  }
3847
3685
  render() {
3848
- 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 })))), ' '));
3686
+ 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 })))), ' '));
3849
3687
  }
3850
3688
  get el() { return getElement(this); }
3851
3689
  static get style() { return EdsCardGenericStyle0; }
@@ -3860,7 +3698,7 @@ class EdsCardGeneric {
3860
3698
  "avatar": [1],
3861
3699
  "shortAbbreviation": [1, "short-abbreviation"],
3862
3700
  "headingLevel": [1, "heading-level"],
3863
- "tags": [8],
3701
+ "tags": [1],
3864
3702
  "tiny": [4],
3865
3703
  "bg": [4],
3866
3704
  "withHover": [4, "with-hover"],
@@ -3929,7 +3767,7 @@ class EdsCardProject {
3929
3767
  this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
3930
3768
  ].join(' ');
3931
3769
  const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
3932
- 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)))))));
3770
+ 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)))))));
3933
3771
  }
3934
3772
  get el() { return getElement(this); }
3935
3773
  static get cmpMeta() { return {
@@ -3969,7 +3807,7 @@ var EdsCardSectionStyle0 = edsCardSectionCss;
3969
3807
  class EdsCardSection {
3970
3808
  constructor(hostRef) {
3971
3809
  registerInstance(this, hostRef);
3972
- this.cards = undefined;
3810
+ this.cards = [];
3973
3811
  this.cols = 4;
3974
3812
  }
3975
3813
  /**
@@ -3992,7 +3830,7 @@ class EdsCardSection {
3992
3830
  }
3993
3831
  catch (e) {
3994
3832
  // eslint-disable-next-line
3995
- console.error('Error parsing links prop:', e);
3833
+ console.error('Error parsing cards prop:', e);
3996
3834
  return [];
3997
3835
  }
3998
3836
  }
@@ -4006,7 +3844,7 @@ class EdsCardSection {
4006
3844
  * @returns {JSX.Element} The rendered section containing a list of cards.
4007
3845
  */
4008
3846
  render() {
4009
- 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 })))))));
3847
+ 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 })))))));
4010
3848
  }
4011
3849
  static get style() { return EdsCardSectionStyle0; }
4012
3850
  static get cmpMeta() { return {
@@ -4035,7 +3873,7 @@ class EdsCardTags {
4035
3873
  this.tags = [];
4036
3874
  }
4037
3875
  render() {
4038
- 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 })))));
3876
+ 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 })))));
4039
3877
  }
4040
3878
  static get style() { return EdsCardTagsStyle0; }
4041
3879
  static get cmpMeta() { return {
@@ -4099,7 +3937,7 @@ class EdsCardTitle {
4099
3937
  render() {
4100
3938
  //const Tag = this.getTag();
4101
3939
  const Heading = this.headingLevel;
4102
- 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)));
3940
+ 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)));
4103
3941
  }
4104
3942
  static get style() { return EdsCardTitleStyle0; }
4105
3943
  static get cmpMeta() { return {
@@ -4187,7 +4025,7 @@ class EdsCardTool {
4187
4025
  });
4188
4026
  }
4189
4027
  render() {
4190
- 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 }))))));
4028
+ 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 }))))));
4191
4029
  }
4192
4030
  get el() { return getElement(this); }
4193
4031
  static get style() { return EdsCardToolStyle0; }
@@ -4238,7 +4076,7 @@ class EdsCardWrapper {
4238
4076
  this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
4239
4077
  'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
4240
4078
  ].join(' ');
4241
- 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" })))));
4079
+ 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" })))));
4242
4080
  }
4243
4081
  get el() { return getElement(this); }
4244
4082
  static get cmpMeta() { return {
@@ -6663,6 +6501,14 @@ Prism.languages.py = Prism.languages.python;
6663
6501
  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}";
6664
6502
  var EdsCodeBlockStyle0 = edsCodeBlockCss;
6665
6503
 
6504
+ //import { sendAnalytics } from '../../utils/analytics';
6505
+ /**
6506
+ * A component that displays a code block with syntax highlighting.
6507
+ *
6508
+ * Uses Prism.js for syntax highlighting. Supports multiple languages such as JavaScript, HTML, CSS,
6509
+ * Python, Bash/Shell, and YAML.
6510
+ *
6511
+ * */
6666
6512
  class EdsCodeBlock {
6667
6513
  constructor(hostRef) {
6668
6514
  registerInstance(this, hostRef);
@@ -6670,23 +6516,70 @@ class EdsCodeBlock {
6670
6516
  this.language = undefined;
6671
6517
  this.copied = false;
6672
6518
  }
6519
+ /**
6520
+ * Copies the current code content to the clipboard and sets a temporary copied state.
6521
+ *
6522
+ * @private
6523
+ * @returns {void}
6524
+ */
6673
6525
  copyToClipboard() {
6674
6526
  navigator.clipboard.writeText(this.code).then(() => {
6675
6527
  this.copied = true;
6528
+ /*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
6529
+ sendAnalytics({
6530
+ category: 'ui-component',
6531
+ parentContext: null,
6532
+ tag: this.el.tagName.toLowerCase(),
6533
+ name: analyticsName || '',
6534
+ action: 'copy'
6535
+ });*/
6676
6536
  setTimeout(() => (this.copied = false), 2000);
6677
6537
  });
6678
6538
  }
6539
+ /**
6540
+ * Utility function that creates a human-friendly analytics name based on the code and language.
6541
+ * It uses:
6542
+ * - The language (in uppercase)
6543
+ * - The number of non-empty lines in the code
6544
+ * - The first non-empty line of code (truncated to 30 characters, if needed)
6545
+ *
6546
+ * returns A descriptive analytics name.
6547
+ */
6548
+ /*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
6549
+ // Count non-empty lines
6550
+ const lines = code.split('\n').filter(line => line.trim() !== '').length;
6551
+
6552
+ // Find the first non-empty line and trim it
6553
+ let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
6554
+ firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
6555
+
6556
+ // Truncate the snippet if it’s too long
6557
+ if (firstNonEmptyLine.length > 30) {
6558
+ firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
6559
+ }
6560
+
6561
+ return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
6562
+ }*/
6563
+ /**
6564
+ * Returns the syntax-highlighted HTML for the code.
6565
+ * If the provided language is supported by Prism, this method returns the highlighted code.
6566
+ * Otherwise, it logs a warning and returns the raw code.
6567
+ *
6568
+ * @private
6569
+ * @returns {string} The highlighted HTML string for the code block.
6570
+ */
6679
6571
  getHighlightedCode() {
6680
6572
  if (this.language && Prism$1.languages[this.language]) {
6681
6573
  return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
6682
6574
  }
6683
6575
  // eslint-disable-next-line
6684
- console.warn(`Unsupported or missing language: ${this.language}`);
6576
+ //console.warn(`Unsupported or missing language: ${this.language}`);
6685
6577
  return this.code; // Fallback if language is not provided or unsupported
6686
6578
  }
6687
6579
  render() {
6688
- 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() })))));
6580
+ 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() })))));
6689
6581
  }
6582
+ get el() { return getElement(this); }
6690
6583
  static get style() { return EdsCodeBlockStyle0; }
6691
6584
  static get cmpMeta() { return {
6692
6585
  "$flags$": 9,
@@ -6734,7 +6627,11 @@ const EdsDocsInstallation = () => (hAsync("div", null,
6734
6627
  hAsync("div", { class: "my-8" },
6735
6628
  hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
6736
6629
  hAsync("div", { class: "my-8" },
6737
- hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
6630
+ hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })),
6631
+ hAsync("div", { class: "my-8" },
6632
+ hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })),
6633
+ hAsync("div", { class: "my-8" },
6634
+ hAsync("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" }))));
6738
6635
 
6739
6636
  const EdsDocsReact = () => (hAsync("div", null,
6740
6637
  hAsync("h2", null, "React Wrappers"),
@@ -6742,7 +6639,7 @@ const EdsDocsReact = () => (hAsync("div", null,
6742
6639
  hAsync("div", { class: "my-8" },
6743
6640
  hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
6744
6641
  hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
6745
- 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" }))));
6642
+ 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" }))));
6746
6643
 
6747
6644
  const EdsDocsVue = () => (hAsync("div", null,
6748
6645
  hAsync("h2", null, "Vue Wrappers"),
@@ -6810,7 +6707,7 @@ class EdsComponentsSection {
6810
6707
  }
6811
6708
  }
6812
6709
  render() {
6813
- return hAsync("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
6710
+ return hAsync("div", { key: '7e582a0eeafc2687229454532b5a7f66f91c1856', class: "container" }, this.renderContent());
6814
6711
  }
6815
6712
  static get cmpMeta() { return {
6816
6713
  "$flags$": 0,
@@ -6851,7 +6748,7 @@ class EdsDocsContent {
6851
6748
  }
6852
6749
  }
6853
6750
  render() {
6854
- return hAsync("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
6751
+ return hAsync("div", { key: 'b140f7650e5e01711dc0778b04af83f9d004efc7', class: "container" }, this.renderContent());
6855
6752
  }
6856
6753
  static get cmpMeta() { return {
6857
6754
  "$flags$": 0,
@@ -6884,7 +6781,7 @@ class EdsDocsPalettes {
6884
6781
  }
6885
6782
  }
6886
6783
  render() {
6887
- return hAsync("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
6784
+ return hAsync("div", { key: 'e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a', class: "container" }, this.renderContent());
6888
6785
  }
6889
6786
  static get cmpMeta() { return {
6890
6787
  "$flags$": 0,
@@ -6922,6 +6819,7 @@ class EdsDropdown {
6922
6819
  * Toggles the visibility of the dropdown and manages focus.
6923
6820
  */
6924
6821
  this.handleClick = () => {
6822
+ var _a;
6925
6823
  this.isOpen = !this.isOpen;
6926
6824
  if (this.isOpen) {
6927
6825
  this.focusIndex = 0;
@@ -6930,6 +6828,13 @@ class EdsDropdown {
6930
6828
  else {
6931
6829
  this.closeDropdown();
6932
6830
  }
6831
+ sendAnalytics({
6832
+ category: 'ui-component',
6833
+ parentContext: null,
6834
+ tag: this.host.tagName.toLowerCase(),
6835
+ name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
6836
+ action: this.isOpen ? 'expanded' : 'collapsed'
6837
+ });
6933
6838
  };
6934
6839
  this.icon = 'chevron-down';
6935
6840
  this.label = undefined;
@@ -6996,39 +6901,20 @@ class EdsDropdown {
6996
6901
  componentDidLoad() {
6997
6902
  var _a;
6998
6903
  this.focusableItems = Array.from(((_a = this.dropdownContent) === null || _a === void 0 ? void 0 : _a.querySelectorAll('a, button')) || []);
6999
- const btns = this.host.shadowRoot.querySelectorAll('eds-button');
7000
- btns.forEach((btn) => {
7001
- this.emitContext(btn);
7002
- });
7003
- }
7004
- /**
7005
- * Emits a custom event called `parentContext` for a given button element.
7006
- * Provides context information about the dropdown component.
7007
- *
7008
- * @param linkElement - The button element to which the event will be dispatched.
7009
- */
7010
- emitContext(linkElement) {
7011
- const event = new CustomEvent('parentContext', {
7012
- detail: {
7013
- componentName: this.host.tagName.toLowerCase(),
7014
- identifier: null
7015
- }
7016
- });
7017
- linkElement.dispatchEvent(event);
7018
6904
  }
7019
6905
  /**
7020
6906
  * Renders the dropdown component and displays its content when open.
7021
6907
  * @returns {JSX.Element} The rendered dropdown component.
7022
6908
  */
7023
6909
  render() {
7024
- 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: {
6910
+ 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: {
7025
6911
  '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,
7026
6912
  'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
7027
6913
  'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
7028
6914
  'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
7029
6915
  'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
7030
6916
  'rounded-lg': this.rounded
7031
- }, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '714bad9f5a8ddf6d5ea246044a83b0a5102494c4' }))));
6917
+ }, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'dda70b865ed03dc7ad36a32934587bbcb0a16c1b' }))));
7032
6918
  }
7033
6919
  get host() { return getElement(this); }
7034
6920
  static get style() { return EdsDropdownStyle0; }
@@ -7105,7 +6991,7 @@ class EdsFooter {
7105
6991
  * @returns {JSX.Element} The rendered JSX for the footer component.
7106
6992
  */
7107
6993
  render() {
7108
- 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)))));
6994
+ 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)))));
7109
6995
  }
7110
6996
  static get style() { return EdsFooterStyle0; }
7111
6997
  static get cmpMeta() { return {
@@ -7221,13 +7107,20 @@ class EdsForm {
7221
7107
  this.hasError = Object.keys(newErrors).length > 0;
7222
7108
  };
7223
7109
  this.handleSubmit = async (e) => {
7224
- var _a;
7110
+ var _a, _b, _c;
7225
7111
  e.preventDefault();
7226
7112
  if (this.isSubmitting) {
7227
7113
  return;
7228
7114
  }
7229
7115
  this.validateForm();
7230
7116
  if (this.hasError) {
7117
+ sendAnalytics({
7118
+ category: 'ui-component',
7119
+ parentContext: null,
7120
+ tag: this.el.tagName.toLowerCase(),
7121
+ name: `${(_a = this.submitBtnLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()}/error` || '',
7122
+ action: 'click'
7123
+ });
7231
7124
  this.alertMessage = this.errorMessage;
7232
7125
  return;
7233
7126
  }
@@ -7248,7 +7141,7 @@ class EdsForm {
7248
7141
  formData.set('form_url', window.location.href);
7249
7142
  }
7250
7143
  if (this.authUser) {
7251
- formData.set('form_user', (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.email);
7144
+ formData.set('form_user', (_b = this.authUser) === null || _b === void 0 ? void 0 : _b.email);
7252
7145
  }
7253
7146
  /*const formDataObject = Object.fromEntries((formData as any).entries());
7254
7147
  console.log(JSON.stringify(formDataObject));*/
@@ -7274,6 +7167,13 @@ class EdsForm {
7274
7167
  //this.alertMessage = data.message || this.successMessage;
7275
7168
  toast.show(data.message || this.successMessage, 'success');
7276
7169
  this.formEl.reset();
7170
+ sendAnalytics({
7171
+ category: 'ui-component',
7172
+ parentContext: null,
7173
+ tag: this.el.tagName.toLowerCase(),
7174
+ name: `${(_c = this.submitBtnLabel) === null || _c === void 0 ? void 0 : _c.toLowerCase()}/success` || '',
7175
+ action: 'click'
7176
+ });
7277
7177
  }
7278
7178
  catch (err) {
7279
7179
  this.hasError = true;
@@ -7286,7 +7186,6 @@ class EdsForm {
7286
7186
  this.formSubmitting.emit(this.isSubmitting);
7287
7187
  }
7288
7188
  };
7289
- this.smallAlert = false;
7290
7189
  this.setFormUrl = true;
7291
7190
  this.submitBtn = true;
7292
7191
  this.submitBtnLabel = 'Submit';
@@ -7295,7 +7194,7 @@ class EdsForm {
7295
7194
  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.';
7296
7195
  this.endpoint = undefined;
7297
7196
  this.name = 'form';
7298
- this.fields = undefined;
7197
+ this.fields = [];
7299
7198
  this.values = {};
7300
7199
  this.coupleAuth = false;
7301
7200
  this.formSubmitted = false;
@@ -7305,6 +7204,7 @@ class EdsForm {
7305
7204
  this.alertMessage = null;
7306
7205
  this.isAuthenticated = false;
7307
7206
  this.authUser = undefined;
7207
+ this.parsedFields = [];
7308
7208
  }
7309
7209
  onAuthStatusChanged(event) {
7310
7210
  var _a;
@@ -7312,21 +7212,23 @@ class EdsForm {
7312
7212
  this.authUser = event.detail.user;
7313
7213
  }
7314
7214
  componentDidLoad() {
7215
+ this.parseFields(this.fields);
7315
7216
  // Emit context for each eds-link element after the component is fully loaded
7316
- const links = this.el.querySelectorAll('eds-button');
7217
+ /*const links = this.el.querySelectorAll('eds-button');
7317
7218
  links.forEach((link) => {
7318
- this.emitContext(link);
7319
- });
7320
- }
7321
- emitContext(linkElement) {
7322
- const event = new CustomEvent('parentContext', {
7323
- detail: {
7324
- componentName: this.el.tagName.toLowerCase(),
7325
- identifier: null
7326
- }
7327
- });
7328
- linkElement.dispatchEvent(event);
7219
+ this.emitContext(link);
7220
+ });*/
7329
7221
  }
7222
+ /*emitContext(linkElement: HTMLElement) {
7223
+ const event = new CustomEvent<ParentContextDetail>('parentContext', {
7224
+ detail: {
7225
+ componentName: this.el.tagName.toLowerCase(),
7226
+ identifier: null
7227
+ }
7228
+ });
7229
+
7230
+ linkElement.dispatchEvent(event);
7231
+ }*/
7330
7232
  // Visibility helper
7331
7233
  isFieldVisible(field) {
7332
7234
  if (!field.condition) {
@@ -7384,7 +7286,7 @@ class EdsForm {
7384
7286
  validateForm() {
7385
7287
  this.errors = {};
7386
7288
  this.hasError = false;
7387
- this.parseFields.forEach((field) => {
7289
+ this.parsedFields.forEach((field) => {
7388
7290
  if (field.type !== 'hidden') {
7389
7291
  if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
7390
7292
  // Single checkbox validation
@@ -7466,27 +7368,48 @@ class EdsForm {
7466
7368
  });
7467
7369
  return formData;
7468
7370
  }
7469
- get parseFields() {
7470
- return JSON.parse(this.fields);
7371
+ parseFields(newValue) {
7372
+ try {
7373
+ if (typeof newValue === 'string') {
7374
+ this.parsedFields = JSON.parse(newValue);
7375
+ }
7376
+ else if (Array.isArray(newValue)) {
7377
+ this.parsedFields = newValue;
7378
+ }
7379
+ else if (newValue && typeof newValue === 'object') {
7380
+ // In case a single object is passed, wrap it in an array.
7381
+ this.parsedFields = newValue;
7382
+ }
7383
+ else {
7384
+ this.parsedFields = [];
7385
+ }
7386
+ }
7387
+ catch (error) {
7388
+ // eslint-disable-next-line
7389
+ console.error('Error parsing fields prop:', error);
7390
+ this.parsedFields = [];
7391
+ }
7471
7392
  }
7472
7393
  render() {
7473
- const hiddenFields = this.parseFields.filter((field) => field.type === 'hidden');
7474
- const otherFields = this.parseFields.filter((field) => field.type !== 'hidden');
7475
- 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) => {
7394
+ const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
7395
+ const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
7396
+ 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) => {
7476
7397
  var _a, _b;
7477
7398
  if (!this.isFieldVisible(field)) {
7478
7399
  return null;
7479
7400
  }
7480
7401
  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 }));
7481
- })), 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" })))));
7402
+ })), 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" })))));
7482
7403
  }
7483
7404
  get el() { return getElement(this); }
7405
+ static get watchers() { return {
7406
+ "fields": ["parseFields"]
7407
+ }; }
7484
7408
  static get style() { return EdsFormStyle0; }
7485
7409
  static get cmpMeta() { return {
7486
7410
  "$flags$": 4,
7487
7411
  "$tagName$": "eds-form",
7488
7412
  "$members$": {
7489
- "smallAlert": [4, "small-alert"],
7490
7413
  "setFormUrl": [4, "set-form-url"],
7491
7414
  "submitBtn": [4, "submit-btn"],
7492
7415
  "submitBtnLabel": [1, "submit-btn-label"],
@@ -7504,7 +7427,8 @@ class EdsForm {
7504
7427
  "isSubmitting": [32],
7505
7428
  "alertMessage": [32],
7506
7429
  "isAuthenticated": [32],
7507
- "authUser": [32]
7430
+ "authUser": [32],
7431
+ "parsedFields": [32]
7508
7432
  },
7509
7433
  "$listeners$": [[16, "authStatusChanged", "onAuthStatusChanged"]],
7510
7434
  "$lazyBundleId$": "-",
@@ -7605,7 +7529,7 @@ class EdsFrame {
7605
7529
  return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
7606
7530
  }
7607
7531
  render() {
7608
- 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 })))));
7532
+ 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 })))));
7609
7533
  }
7610
7534
  get el() { return getElement(this); }
7611
7535
  static get cmpMeta() { return {
@@ -7771,11 +7695,7 @@ class EdsHeader {
7771
7695
  this.homeUrl = '/';
7772
7696
  this.links = undefined;
7773
7697
  this.inverseHeader = false;
7774
- this.userFeature = false;
7775
7698
  this.menuEnabled = false;
7776
- this.keycloakUrl = undefined;
7777
- this.keycloakRealm = undefined;
7778
- this.keycloakClientId = undefined;
7779
7699
  this.isMenuOpen = false;
7780
7700
  this.isUserMenuOpen = false;
7781
7701
  this.isAuthenticated = false;
@@ -7848,8 +7768,8 @@ class EdsHeader {
7848
7768
  return [];
7849
7769
  }
7850
7770
  render() {
7851
- return (hAsync("header", { key: 'b16e5e84ba7565ebf4ea5892a9a1af84fc94769d', class: `flex items-center justify-between relative z-10
7852
- ${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));
7771
+ return (hAsync("header", { key: 'ce002da29cee5446f64694ba93ec67f89c180ac4', class: `flex items-center justify-between relative z-10
7772
+ ${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));
7853
7773
  }
7854
7774
  get hostEl() { return getElement(this); }
7855
7775
  static get style() { return EdsHeaderStyle0; }
@@ -7860,11 +7780,7 @@ class EdsHeader {
7860
7780
  "homeUrl": [513, "home-url"],
7861
7781
  "links": [1],
7862
7782
  "inverseHeader": [4, "inverse-header"],
7863
- "userFeature": [4, "user-feature"],
7864
7783
  "menuEnabled": [4, "menu-enabled"],
7865
- "keycloakUrl": [1, "keycloak-url"],
7866
- "keycloakRealm": [1, "keycloak-realm"],
7867
- "keycloakClientId": [1, "keycloak-client-id"],
7868
7784
  "isMenuOpen": [32],
7869
7785
  "isUserMenuOpen": [32],
7870
7786
  "isAuthenticated": [32]
@@ -9682,7 +9598,7 @@ class EdsIconArrowDiagonal {
9682
9598
  this.addClass = '';
9683
9599
  }
9684
9600
  render() {
9685
- return hAsync("span", { key: '08ebdce5cfbe75bf4bfab8f72493e2178be55c3c', class: this.addClass, innerHTML: arrowDiagonal });
9601
+ return hAsync("span", { key: 'd85a4d425e0c255efe4763d4a13f13b6ff727c2c', class: this.addClass, innerHTML: arrowDiagonal });
9686
9602
  }
9687
9603
  static get cmpMeta() { return {
9688
9604
  "$flags$": 0,
@@ -9705,7 +9621,7 @@ class EdsIconArrowRight {
9705
9621
  this.class = '';
9706
9622
  }
9707
9623
  render() {
9708
- return hAsync("span", { key: '6d704324784e6c3d9c221dcaf83bd86a8a6a94ab', class: this.class, innerHTML: arrowRight });
9624
+ return hAsync("span", { key: '4a2b33b86753acab8270a45c7b250603b128bc88', class: this.class, innerHTML: arrowRight });
9709
9625
  }
9710
9626
  static get cmpMeta() { return {
9711
9627
  "$flags$": 0,
@@ -9728,7 +9644,7 @@ class EdsIconBluesky {
9728
9644
  this.class = '';
9729
9645
  }
9730
9646
  render() {
9731
- return hAsync("span", { key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d', class: this.class, innerHTML: bluesky });
9647
+ return hAsync("span", { key: '845a157678b9d059b2c9bd8a6265d3a62f33c31a', class: this.class, innerHTML: bluesky });
9732
9648
  }
9733
9649
  static get cmpMeta() { return {
9734
9650
  "$flags$": 0,
@@ -9751,7 +9667,7 @@ class EdsIconChevronDown {
9751
9667
  this.class = '';
9752
9668
  }
9753
9669
  render() {
9754
- return hAsync("span", { key: 'bc01e9e10033245e02403b6b919911018eef9919', class: this.class, innerHTML: chevronDown });
9670
+ return hAsync("span", { key: 'fa8022d27b91e909d4cd5522c6d0406be698a412', class: this.class, innerHTML: chevronDown });
9755
9671
  }
9756
9672
  static get cmpMeta() { return {
9757
9673
  "$flags$": 0,
@@ -9774,7 +9690,7 @@ class EdsIconChevronLeft {
9774
9690
  this.class = '';
9775
9691
  }
9776
9692
  render() {
9777
- return hAsync("span", { key: 'd74bd0b2ddfd5bd61c97309aebb71d7c29f0cf43', class: this.class, innerHTML: chevronLeft });
9693
+ return hAsync("span", { key: 'c723d7f1bbd596063ae7e66123b8038af5320a54', class: this.class, innerHTML: chevronLeft });
9778
9694
  }
9779
9695
  static get cmpMeta() { return {
9780
9696
  "$flags$": 0,
@@ -9797,7 +9713,7 @@ class EdsIconChevronRight {
9797
9713
  this.class = '';
9798
9714
  }
9799
9715
  render() {
9800
- return hAsync("span", { key: '998491aed74bd3edd1fb8545f85ab52cf2703b3f', class: this.class, innerHTML: chevronRight });
9716
+ return hAsync("span", { key: 'f770cd9151077e8708c76d2082613c65a20c420f', class: this.class, innerHTML: chevronRight });
9801
9717
  }
9802
9718
  static get cmpMeta() { return {
9803
9719
  "$flags$": 0,
@@ -9820,7 +9736,7 @@ class EdsIconChevronUp {
9820
9736
  this.class = '';
9821
9737
  }
9822
9738
  render() {
9823
- return hAsync("span", { key: 'd0723afa766fc6dac454ec84602bd50ba4e49950', class: this.class, innerHTML: chevronUp });
9739
+ return hAsync("span", { key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6', class: this.class, innerHTML: chevronUp });
9824
9740
  }
9825
9741
  static get cmpMeta() { return {
9826
9742
  "$flags$": 0,
@@ -9843,7 +9759,7 @@ class EdsIconClose {
9843
9759
  this.class = '';
9844
9760
  }
9845
9761
  render() {
9846
- return hAsync("span", { key: '365ad476b1be9c708e73598cad1dd42a908fa1cd', class: this.class, innerHTML: close });
9762
+ return hAsync("span", { key: '947f6615e8ee155be98b379a9c771cc0d453becd', class: this.class, innerHTML: close });
9847
9763
  }
9848
9764
  static get cmpMeta() { return {
9849
9765
  "$flags$": 0,
@@ -9866,7 +9782,7 @@ class EdsIconCopy {
9866
9782
  this.class = '';
9867
9783
  }
9868
9784
  render() {
9869
- return hAsync("span", { key: '770c34b98ec0e0a7e16de4d7b5b41b4afec9911e', class: this.class, innerHTML: copy });
9785
+ return hAsync("span", { key: '1e23d4493d5a1d07bc794da20cc4e445a87d56b0', class: this.class, innerHTML: copy });
9870
9786
  }
9871
9787
  static get cmpMeta() { return {
9872
9788
  "$flags$": 0,
@@ -9889,7 +9805,7 @@ class EdsIconEu {
9889
9805
  this.class = '';
9890
9806
  }
9891
9807
  render() {
9892
- return hAsync("span", { key: 'cc6e5f7d7333ff7ed4a6f716e0ee90806fa782f9', class: this.class, innerHTML: euSvg });
9808
+ return hAsync("span", { key: '14254e1b9d43562e6f3f943de22aa8dd4d89a044', class: this.class, innerHTML: euSvg });
9893
9809
  }
9894
9810
  static get cmpMeta() { return {
9895
9811
  "$flags$": 0,
@@ -9912,7 +9828,7 @@ class EdsIconFacebook {
9912
9828
  this.class = '';
9913
9829
  }
9914
9830
  render() {
9915
- return hAsync("span", { key: 'f859db4f8b6679e138e6d72d1d0f5e5bd1bcf997', class: this.class, innerHTML: facebook });
9831
+ return hAsync("span", { key: '902598891dfe926f92ce5d30dc135896c6eccd43', class: this.class, innerHTML: facebook });
9916
9832
  }
9917
9833
  static get cmpMeta() { return {
9918
9834
  "$flags$": 0,
@@ -9935,7 +9851,7 @@ class EdsIconGitlab {
9935
9851
  this.class = '';
9936
9852
  }
9937
9853
  render() {
9938
- return hAsync("span", { key: '5a91cfc15c4dec2b50ce57fb0f1d6cc8f57b03e8', class: this.class, innerHTML: gitlabBlack });
9854
+ return hAsync("span", { key: '128f9265dfc1aee95586ba0a3fd20dd131678893', class: this.class, innerHTML: gitlabBlack });
9939
9855
  }
9940
9856
  static get cmpMeta() { return {
9941
9857
  "$flags$": 0,
@@ -9958,7 +9874,7 @@ class EdsIconLinkedin {
9958
9874
  this.class = '';
9959
9875
  }
9960
9876
  render() {
9961
- return hAsync("span", { key: 'b8e0661a74a92c72b6db109cb48db12da48dcf92', class: this.class, innerHTML: linkedin });
9877
+ return hAsync("span", { key: '0f9675a371ca7bb460882c04bf2bb0c103273a0d', class: this.class, innerHTML: linkedin });
9962
9878
  }
9963
9879
  static get cmpMeta() { return {
9964
9880
  "$flags$": 0,
@@ -9981,7 +9897,7 @@ class EdsIconLoader {
9981
9897
  this.class = '';
9982
9898
  }
9983
9899
  render() {
9984
- return hAsync("span", { key: '260c4eeb69ff79d943571c1461346b9019ea513a', class: this.class, innerHTML: loader });
9900
+ return hAsync("span", { key: 'f11c60068baa2d2398056b3d7f04129d9deb4517', class: this.class, innerHTML: loader });
9985
9901
  }
9986
9902
  static get cmpMeta() { return {
9987
9903
  "$flags$": 0,
@@ -10004,7 +9920,7 @@ class EdsIconMastodon {
10004
9920
  this.class = '';
10005
9921
  }
10006
9922
  render() {
10007
- return hAsync("span", { key: '902598891dfe926f92ce5d30dc135896c6eccd43', class: this.class, innerHTML: mastodon });
9923
+ return hAsync("span", { key: '1f68e5d0b6f8455f40bf94f6095eceff00b7887e', class: this.class, innerHTML: mastodon });
10008
9924
  }
10009
9925
  static get cmpMeta() { return {
10010
9926
  "$flags$": 0,
@@ -10027,7 +9943,7 @@ class EdsIconMenu {
10027
9943
  this.class = '';
10028
9944
  }
10029
9945
  render() {
10030
- return hAsync("span", { key: '9d15be28017eb074a69846a2a639861de997130b', class: this.class, innerHTML: menu });
9946
+ return hAsync("span", { key: '0084602c8e870b70caa66479f71bed3bd0cce94e', class: this.class, innerHTML: menu });
10031
9947
  }
10032
9948
  static get cmpMeta() { return {
10033
9949
  "$flags$": 0,
@@ -10050,7 +9966,7 @@ class EdsIconMore {
10050
9966
  this.class = '';
10051
9967
  }
10052
9968
  render() {
10053
- return hAsync("span", { key: '0f7d61104f8f2b0a83c5b60a6ce81c6ab91ecb9c', class: this.class, innerHTML: more });
9969
+ return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: more });
10054
9970
  }
10055
9971
  static get cmpMeta() { return {
10056
9972
  "$flags$": 0,
@@ -10073,7 +9989,7 @@ class EdsIconSearch {
10073
9989
  this.class = '';
10074
9990
  }
10075
9991
  render() {
10076
- return hAsync("span", { key: '6795d973d3a1fff27c2fd6181235d0284abaf3b7', class: this.class, innerHTML: search });
9992
+ return hAsync("span", { key: '42acc730afd956c2884b0789b3ea37ccf323630b', class: this.class, innerHTML: search });
10077
9993
  }
10078
9994
  static get cmpMeta() { return {
10079
9995
  "$flags$": 0,
@@ -10096,7 +10012,7 @@ class EdsIconSuccess {
10096
10012
  this.class = '';
10097
10013
  }
10098
10014
  render() {
10099
- return hAsync("span", { key: '15e428fd72496249adfe372847d5c683cd3412b1', class: this.class, innerHTML: success });
10015
+ return hAsync("span", { key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d', class: this.class, innerHTML: success });
10100
10016
  }
10101
10017
  static get cmpMeta() { return {
10102
10018
  "$flags$": 0,
@@ -10119,7 +10035,7 @@ class EdsIconTwitter {
10119
10035
  this.class = '';
10120
10036
  }
10121
10037
  render() {
10122
- return hAsync("span", { key: 'cfa2d903e79d5a17fb7511e078c0d26bd6d3abd6', class: this.class, innerHTML: twitter });
10038
+ return hAsync("span", { key: 'a06ab2e79a1ec7603244ec09649ccc2c9ea1950c', class: this.class, innerHTML: twitter });
10123
10039
  }
10124
10040
  static get cmpMeta() { return {
10125
10041
  "$flags$": 0,
@@ -10142,7 +10058,7 @@ class EdsIconUser {
10142
10058
  this.class = '';
10143
10059
  }
10144
10060
  render() {
10145
- return hAsync("span", { key: 'dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0', class: this.class, innerHTML: user });
10061
+ return hAsync("span", { key: 'cb31d12146ff577195650b502f51005092404a30', class: this.class, innerHTML: user });
10146
10062
  }
10147
10063
  static get cmpMeta() { return {
10148
10064
  "$flags$": 0,
@@ -10221,7 +10137,7 @@ class EdsIconYoutube {
10221
10137
  this.class = '';
10222
10138
  }
10223
10139
  render() {
10224
- return hAsync("span", { key: 'ecd12a21c5797f93f7d8abe67803b27862967b2f', class: this.class, innerHTML: youtube });
10140
+ return hAsync("span", { key: '4eba69bfec926b7a3490feee15b5947a8ab8a7b9', class: this.class, innerHTML: youtube });
10225
10141
  }
10226
10142
  static get cmpMeta() { return {
10227
10143
  "$flags$": 0,
@@ -10265,11 +10181,16 @@ class EdsImg {
10265
10181
  this.loaded = true;
10266
10182
  this.showBg = false;
10267
10183
  };
10184
+ // On error, remove the background effect so users know the image failed to load.
10185
+ this.handleError = () => {
10186
+ this.loaded = true;
10187
+ this.showBg = false;
10188
+ };
10268
10189
  this.handleTransitionEnd = () => {
10269
10190
  this.showBg = false;
10270
10191
  };
10271
10192
  this.src = undefined;
10272
- this.alt = undefined;
10193
+ this.alt = '';
10273
10194
  this.width = undefined;
10274
10195
  this.height = undefined;
10275
10196
  this.srcset = undefined;
@@ -10292,14 +10213,14 @@ class EdsImg {
10292
10213
  imgOpts['loading'] = 'lazy';
10293
10214
  imgOpts['decoding'] = 'async';
10294
10215
  }
10295
- return (hAsync("div", { key: 'fde8a77bb251e3be2ec3a42b8d83f585eae65b2c', class: {
10216
+ return (hAsync("div", { key: '733be8df2b9e3db1b5b13aaa47c16a9c26f345d7', class: {
10296
10217
  'items-center justify-center': true,
10297
10218
  'effect-bg-pattern': this.lazyload && this.showBg
10298
- } }, 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: {
10219
+ } }, 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: {
10299
10220
  'effect-opacity object-cover object-center': true,
10300
10221
  'opacity-100': this.loaded,
10301
10222
  'opacity-0': !this.loaded
10302
- }, 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 })))));
10223
+ }, 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 })))));
10303
10224
  }
10304
10225
  get imgElement() { return getElement(this); }
10305
10226
  static get style() { return EdsImgStyle0; }
@@ -10376,12 +10297,12 @@ class EdsInput {
10376
10297
  render() {
10377
10298
  const withIcon = !!this.icon;
10378
10299
  const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
10379
- 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: `
10300
+ 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: `
10380
10301
  ${this.extraClass || ''}
10381
10302
  input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
10382
10303
  ${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
10383
10304
  ${this.error ? 'input-error' : ''}
10384
- `, "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 }))));
10305
+ `, "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 }))));
10385
10306
  }
10386
10307
  get el() { return getElement(this); }
10387
10308
  static get watchers() { return {
@@ -10482,11 +10403,11 @@ class EdsInputField {
10482
10403
  icon: this.icon,
10483
10404
  checked: this.checked
10484
10405
  };
10485
- 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' ? ((() => {
10406
+ 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' ? ((() => {
10486
10407
  var _a, _b, _c;
10487
10408
  const opt = this.parsedOptions;
10488
10409
  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" }));
10489
- })()) : (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 })));
10410
+ })()) : (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 })));
10490
10411
  }
10491
10412
  static get style() { return EdsInputFieldStyle0; }
10492
10413
  static get cmpMeta() { return {
@@ -10532,7 +10453,7 @@ class EdsInputFooter {
10532
10453
  this.link = undefined;
10533
10454
  }
10534
10455
  render() {
10535
- 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))));
10456
+ 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))));
10536
10457
  }
10537
10458
  static get cmpMeta() { return {
10538
10459
  "$flags$": 0,
@@ -10562,7 +10483,7 @@ class EdsInputLabel {
10562
10483
  this.disabled = false;
10563
10484
  }
10564
10485
  render() {
10565
- 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")))));
10486
+ 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")))));
10566
10487
  }
10567
10488
  static get cmpMeta() { return {
10568
10489
  "$flags$": 0,
@@ -10610,9 +10531,9 @@ class EdsInputRange {
10610
10531
  return this.inputElement;
10611
10532
  }
10612
10533
  render() {
10613
- 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",
10534
+ 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",
10614
10535
  //aria-describedby={describedBy}
10615
- onInput: this.onInput }), hAsync("p", { key: 'e04c275e51710ae09eec1603911446e1e65bf648', id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal)));
10536
+ onInput: this.onInput }), hAsync("p", { key: '66bc2e755e4eb38015e32441599a9f9bade7c679', id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal)));
10616
10537
  }
10617
10538
  get el() { return getElement(this); }
10618
10539
  static get cmpMeta() { return {
@@ -10669,7 +10590,7 @@ class EdsInputSearch {
10669
10590
  return this.inputElement;
10670
10591
  }
10671
10592
  render() {
10672
- 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",
10593
+ 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",
10673
10594
  //aria-describedby={describedBy}
10674
10595
  onInput: this.onInput, onChange: this.onChange })));
10675
10596
  }
@@ -10710,6 +10631,9 @@ class EdsInputSearch {
10710
10631
  *
10711
10632
  * The component will automatically fetch data if a dynamic configuration is provided.
10712
10633
  */
10634
+ /**
10635
+ * @internal
10636
+ */
10713
10637
  class EdsInputSelect {
10714
10638
  constructor(hostRef) {
10715
10639
  registerInstance(this, hostRef);
@@ -10739,6 +10663,7 @@ class EdsInputSelect {
10739
10663
  this.loading = false;
10740
10664
  this.dynamicValueKey = 'value';
10741
10665
  this.dynamicLabelKey = 'label';
10666
+ this.hasFetched = false;
10742
10667
  }
10743
10668
  componentWillLoad() {
10744
10669
  this.loadOptions();
@@ -10755,6 +10680,9 @@ class EdsInputSelect {
10755
10680
  async loadOptions() {
10756
10681
  // If the first option contains an "endpoint" key, assume dynamic fetch mode.
10757
10682
  if (this.options && this.options.length > 0 && this.options[0].endpoint) {
10683
+ if (this.hasFetched) {
10684
+ return;
10685
+ }
10758
10686
  const config = this.options[0];
10759
10687
  const endpoint = config.endpoint;
10760
10688
  this.dynamicValueKey = config.value || 'value';
@@ -10768,6 +10696,7 @@ class EdsInputSelect {
10768
10696
  const data = await response.json();
10769
10697
  // Assume the API returns an array of objects.
10770
10698
  this.dynamicOptions = data;
10699
+ this.hasFetched = true;
10771
10700
  }
10772
10701
  catch (error) {
10773
10702
  //console.error('Error fetching dynamic options:', error);
@@ -10784,8 +10713,11 @@ class EdsInputSelect {
10784
10713
  this.dynamicLabelKey = this.labelKey;
10785
10714
  }
10786
10715
  }
10716
+ getValueByPath(obj, path) {
10717
+ return path.split('.').reduce((acc, part) => acc && acc[part], obj);
10718
+ }
10787
10719
  render() {
10788
- 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" }))));
10720
+ 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" }))));
10789
10721
  }
10790
10722
  static get watchers() { return {
10791
10723
  "options": ["loadOptions"]
@@ -10808,7 +10740,8 @@ class EdsInputSelect {
10808
10740
  "dynamicOptions": [32],
10809
10741
  "loading": [32],
10810
10742
  "dynamicValueKey": [32],
10811
- "dynamicLabelKey": [32]
10743
+ "dynamicLabelKey": [32],
10744
+ "hasFetched": [32]
10812
10745
  },
10813
10746
  "$listeners$": undefined,
10814
10747
  "$lazyBundleId$": "-",
@@ -10968,12 +10901,11 @@ class EdsLink {
10968
10901
  this.hideLabelOnSmallScreen = false;
10969
10902
  this.extraClass = undefined;
10970
10903
  }
10971
- handleBreadcrumbContext(event) {
10904
+ handleParentContext(event) {
10972
10905
  if (event.target !== this.el) {
10973
10906
  // Ignore the event if it's not targeted at this specific instance
10974
10907
  return;
10975
10908
  }
10976
- //console.log(event.detail);
10977
10909
  this.parentContext = event.detail;
10978
10910
  event.stopPropagation();
10979
10911
  }
@@ -11006,7 +10938,7 @@ class EdsLink {
11006
10938
  }
11007
10939
  renderRightIcon() {
11008
10940
  if (this.icon && this.iconPos === 'right') {
11009
- return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex' }, hAsync("eds-icon-wrapper", { class: `
10941
+ return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex ml-4' }, hAsync("eds-icon-wrapper", { class: `
11010
10942
  flex inline-flex items-center justify-center
11011
10943
  ${this.size === 'large' ? 'h-32 w-32' : 'h-20 w-20'}
11012
10944
  `, icon: this.icon })));
@@ -11014,6 +10946,7 @@ class EdsLink {
11014
10946
  return null;
11015
10947
  }
11016
10948
  render() {
10949
+ // If the link is disabled, use a <span>; otherwise, use an <a> element.
11017
10950
  const ComponentType = this.disabled ? 'span' : 'a';
11018
10951
  const classes = linkStyles({
11019
10952
  intent: this.intent,
@@ -11021,10 +10954,12 @@ class EdsLink {
11021
10954
  iconSmall: this.iconSmall,
11022
10955
  isActive: this.current
11023
10956
  });
10957
+ // If no visible label is provided, ensure ariaLabel is set.
10958
+ const computedAriaLabel = this.ariaLabel || this.label || 'link';
11024
10959
  const labelClasses = this.hideLabelOnSmallScreen
11025
10960
  ? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
11026
10961
  : '';
11027
- 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())));
10962
+ 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())));
11028
10963
  }
11029
10964
  get el() { return getElement(this); }
11030
10965
  static get style() { return EdsLinkStyle0; }
@@ -11047,7 +10982,7 @@ class EdsLink {
11047
10982
  "hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"],
11048
10983
  "extraClass": [1, "extra-class"]
11049
10984
  },
11050
- "$listeners$": [[0, "parentContext", "handleBreadcrumbContext"]],
10985
+ "$listeners$": [[0, "parentContext", "handleParentContext"]],
11051
10986
  "$lazyBundleId$": "-",
11052
10987
  "$attrsToReflect$": []
11053
10988
  }; }
@@ -11115,7 +11050,7 @@ function Keycloak (config) {
11115
11050
  );
11116
11051
  }
11117
11052
 
11118
- kc.init = function (initOptions) {
11053
+ kc.init = function (initOptions = {}) {
11119
11054
  if (kc.didInitialize) {
11120
11055
  throw new Error("A 'Keycloak' instance can only be initialized once.");
11121
11056
  }
@@ -11127,9 +11062,9 @@ function Keycloak (config) {
11127
11062
  callbackStorage = createCallbackStorage();
11128
11063
  var adapters = ['default', 'cordova', 'cordova-native'];
11129
11064
 
11130
- if (initOptions && adapters.indexOf(initOptions.adapter) > -1) {
11065
+ if (adapters.indexOf(initOptions.adapter) > -1) {
11131
11066
  adapter = loadAdapter(initOptions.adapter);
11132
- } else if (initOptions && typeof initOptions.adapter === "object") {
11067
+ } else if (typeof initOptions.adapter === "object") {
11133
11068
  adapter = initOptions.adapter;
11134
11069
  } else {
11135
11070
  if (window.Cordova || window.cordova) {
@@ -11139,101 +11074,99 @@ function Keycloak (config) {
11139
11074
  }
11140
11075
  }
11141
11076
 
11142
- if (initOptions) {
11143
- if (typeof initOptions.useNonce !== 'undefined') {
11144
- useNonce = initOptions.useNonce;
11145
- }
11077
+ if (typeof initOptions.useNonce !== 'undefined') {
11078
+ useNonce = initOptions.useNonce;
11079
+ }
11146
11080
 
11147
- if (typeof initOptions.checkLoginIframe !== 'undefined') {
11148
- loginIframe.enable = initOptions.checkLoginIframe;
11149
- }
11081
+ if (typeof initOptions.checkLoginIframe !== 'undefined') {
11082
+ loginIframe.enable = initOptions.checkLoginIframe;
11083
+ }
11150
11084
 
11151
- if (initOptions.checkLoginIframeInterval) {
11152
- loginIframe.interval = initOptions.checkLoginIframeInterval;
11153
- }
11085
+ if (initOptions.checkLoginIframeInterval) {
11086
+ loginIframe.interval = initOptions.checkLoginIframeInterval;
11087
+ }
11154
11088
 
11155
- if (initOptions.onLoad === 'login-required') {
11156
- kc.loginRequired = true;
11157
- }
11089
+ if (initOptions.onLoad === 'login-required') {
11090
+ kc.loginRequired = true;
11091
+ }
11158
11092
 
11159
- if (initOptions.responseMode) {
11160
- if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
11161
- kc.responseMode = initOptions.responseMode;
11162
- } else {
11163
- throw 'Invalid value for responseMode';
11164
- }
11093
+ if (initOptions.responseMode) {
11094
+ if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
11095
+ kc.responseMode = initOptions.responseMode;
11096
+ } else {
11097
+ throw 'Invalid value for responseMode';
11165
11098
  }
11099
+ }
11166
11100
 
11167
- if (initOptions.flow) {
11168
- switch (initOptions.flow) {
11169
- case 'standard':
11170
- kc.responseType = 'code';
11171
- break;
11172
- case 'implicit':
11173
- kc.responseType = 'id_token token';
11174
- break;
11175
- case 'hybrid':
11176
- kc.responseType = 'code id_token token';
11177
- break;
11178
- default:
11179
- throw 'Invalid value for flow';
11180
- }
11181
- kc.flow = initOptions.flow;
11101
+ if (initOptions.flow) {
11102
+ switch (initOptions.flow) {
11103
+ case 'standard':
11104
+ kc.responseType = 'code';
11105
+ break;
11106
+ case 'implicit':
11107
+ kc.responseType = 'id_token token';
11108
+ break;
11109
+ case 'hybrid':
11110
+ kc.responseType = 'code id_token token';
11111
+ break;
11112
+ default:
11113
+ throw 'Invalid value for flow';
11182
11114
  }
11115
+ kc.flow = initOptions.flow;
11116
+ }
11183
11117
 
11184
- if (initOptions.timeSkew != null) {
11185
- kc.timeSkew = initOptions.timeSkew;
11186
- }
11118
+ if (initOptions.timeSkew != null) {
11119
+ kc.timeSkew = initOptions.timeSkew;
11120
+ }
11187
11121
 
11188
- if(initOptions.redirectUri) {
11189
- kc.redirectUri = initOptions.redirectUri;
11190
- }
11122
+ if(initOptions.redirectUri) {
11123
+ kc.redirectUri = initOptions.redirectUri;
11124
+ }
11191
11125
 
11192
- if (initOptions.silentCheckSsoRedirectUri) {
11193
- kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
11194
- }
11126
+ if (initOptions.silentCheckSsoRedirectUri) {
11127
+ kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
11128
+ }
11195
11129
 
11196
- if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
11197
- kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
11198
- } else {
11199
- kc.silentCheckSsoFallback = true;
11130
+ if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
11131
+ kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
11132
+ } else {
11133
+ kc.silentCheckSsoFallback = true;
11134
+ }
11135
+
11136
+ if (typeof initOptions.pkceMethod !== "undefined") {
11137
+ if (initOptions.pkceMethod !== "S256" && initOptions.pkceMethod !== false) {
11138
+ throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${initOptions.pkceMethod}.`);
11200
11139
  }
11201
11140
 
11202
- if (typeof initOptions.pkceMethod !== "undefined") {
11203
- if (initOptions.pkceMethod !== "S256" && initOptions.pkceMethod !== false) {
11204
- throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${initOptions.pkceMethod}.`);
11205
- }
11206
-
11207
- kc.pkceMethod = initOptions.pkceMethod;
11208
- } else {
11209
- kc.pkceMethod = "S256";
11210
- }
11141
+ kc.pkceMethod = initOptions.pkceMethod;
11142
+ } else {
11143
+ kc.pkceMethod = "S256";
11144
+ }
11211
11145
 
11212
- if (typeof initOptions.enableLogging === 'boolean') {
11213
- kc.enableLogging = initOptions.enableLogging;
11214
- } else {
11215
- kc.enableLogging = false;
11216
- }
11146
+ if (typeof initOptions.enableLogging === 'boolean') {
11147
+ kc.enableLogging = initOptions.enableLogging;
11148
+ } else {
11149
+ kc.enableLogging = false;
11150
+ }
11217
11151
 
11218
- if (initOptions.logoutMethod === 'POST') {
11219
- kc.logoutMethod = 'POST';
11220
- } else {
11221
- kc.logoutMethod = 'GET';
11222
- }
11152
+ if (initOptions.logoutMethod === 'POST') {
11153
+ kc.logoutMethod = 'POST';
11154
+ } else {
11155
+ kc.logoutMethod = 'GET';
11156
+ }
11223
11157
 
11224
- if (typeof initOptions.scope === 'string') {
11225
- kc.scope = initOptions.scope;
11226
- }
11158
+ if (typeof initOptions.scope === 'string') {
11159
+ kc.scope = initOptions.scope;
11160
+ }
11227
11161
 
11228
- if (typeof initOptions.acrValues === 'string') {
11229
- kc.acrValues = initOptions.acrValues;
11230
- }
11162
+ if (typeof initOptions.acrValues === 'string') {
11163
+ kc.acrValues = initOptions.acrValues;
11164
+ }
11231
11165
 
11232
- if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
11233
- kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
11234
- } else {
11235
- kc.messageReceiveTimeout = 10000;
11236
- }
11166
+ if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
11167
+ kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
11168
+ } else {
11169
+ kc.messageReceiveTimeout = 10000;
11237
11170
  }
11238
11171
 
11239
11172
  if (!kc.responseMode) {
@@ -11262,7 +11195,7 @@ function Keycloak (config) {
11262
11195
  options.prompt = 'none';
11263
11196
  }
11264
11197
 
11265
- if (initOptions && initOptions.locale) {
11198
+ if (initOptions.locale) {
11266
11199
  options.locale = initOptions.locale;
11267
11200
  }
11268
11201
  kc.login(options).then(function () {
@@ -11336,42 +11269,40 @@ function Keycloak (config) {
11336
11269
  }).catch(function (error) {
11337
11270
  initPromise.setError(error);
11338
11271
  });
11339
- } else if (initOptions) {
11340
- if (initOptions.token && initOptions.refreshToken) {
11341
- setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
11272
+ }
11342
11273
 
11343
- if (loginIframe.enable) {
11344
- setupCheckLoginIframe().then(function() {
11345
- checkLoginIframe().then(function (unchanged) {
11346
- if (unchanged) {
11347
- kc.onAuthSuccess && kc.onAuthSuccess();
11348
- initPromise.setSuccess();
11349
- scheduleCheckIframe();
11350
- } else {
11351
- initPromise.setSuccess();
11352
- }
11353
- }).catch(function (error) {
11354
- initPromise.setError(error);
11355
- });
11356
- });
11357
- } else {
11358
- kc.updateToken(-1).then(function() {
11359
- kc.onAuthSuccess && kc.onAuthSuccess();
11360
- initPromise.setSuccess();
11361
- }).catch(function(error) {
11362
- kc.onAuthError && kc.onAuthError();
11363
- if (initOptions.onLoad) {
11364
- onLoad();
11274
+ if (initOptions.token && initOptions.refreshToken) {
11275
+ setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
11276
+
11277
+ if (loginIframe.enable) {
11278
+ setupCheckLoginIframe().then(function() {
11279
+ checkLoginIframe().then(function (unchanged) {
11280
+ if (unchanged) {
11281
+ kc.onAuthSuccess && kc.onAuthSuccess();
11282
+ initPromise.setSuccess();
11283
+ scheduleCheckIframe();
11365
11284
  } else {
11366
- initPromise.setError(error);
11285
+ initPromise.setSuccess();
11367
11286
  }
11287
+ }).catch(function (error) {
11288
+ initPromise.setError(error);
11368
11289
  });
11369
- }
11370
- } else if (initOptions.onLoad) {
11371
- onLoad();
11290
+ });
11372
11291
  } else {
11373
- initPromise.setSuccess();
11292
+ kc.updateToken(-1).then(function() {
11293
+ kc.onAuthSuccess && kc.onAuthSuccess();
11294
+ initPromise.setSuccess();
11295
+ }).catch(function(error) {
11296
+ kc.onAuthError && kc.onAuthError();
11297
+ if (initOptions.onLoad) {
11298
+ onLoad();
11299
+ } else {
11300
+ initPromise.setError(error);
11301
+ }
11302
+ });
11374
11303
  }
11304
+ } else if (initOptions.onLoad) {
11305
+ onLoad();
11375
11306
  } else {
11376
11307
  initPromise.setSuccess();
11377
11308
  }
@@ -11732,7 +11663,7 @@ function Keycloak (config) {
11732
11663
 
11733
11664
  kc.onAuthRefreshError && kc.onAuthRefreshError();
11734
11665
  for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
11735
- p.setError(true);
11666
+ p.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.");
11736
11667
  }
11737
11668
  }
11738
11669
  }
@@ -12300,7 +12231,7 @@ function Keycloak (config) {
12300
12231
  function check3pCookiesSupported() {
12301
12232
  var promise = createPromise();
12302
12233
 
12303
- if (loginIframe.enable || kc.silentCheckSsoRedirectUri) {
12234
+ if ((loginIframe.enable || kc.silentCheckSsoRedirectUri) && typeof kc.endpoints.thirdPartyCookiesIframe === 'function') {
12304
12235
  var iframe = document.createElement('iframe');
12305
12236
  iframe.setAttribute('src', kc.endpoints.thirdPartyCookiesIframe());
12306
12237
  iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
@@ -12320,7 +12251,7 @@ function Keycloak (config) {
12320
12251
  "[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n" +
12321
12252
  " - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n" +
12322
12253
  " - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\n" +
12323
- "For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"
12254
+ "For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"
12324
12255
  );
12325
12256
 
12326
12257
  loginIframe.enable = false;
@@ -12358,34 +12289,37 @@ function Keycloak (config) {
12358
12289
  return;
12359
12290
  }
12360
12291
 
12361
- const logoutUrl = kc.createLogoutUrl(options);
12362
- const response = await fetch(logoutUrl, {
12363
- method: "POST",
12364
- headers: {
12365
- "Content-Type": "application/x-www-form-urlencoded"
12366
- },
12367
- body: new URLSearchParams({
12368
- id_token_hint: kc.idToken,
12369
- client_id: kc.clientId,
12370
- post_logout_redirect_uri: adapter.redirectUri(options, false)
12371
- })
12372
- });
12292
+ // Create form to send POST request.
12293
+ const form = document.createElement("form");
12373
12294
 
12374
- if (response.redirected) {
12375
- window.location.href = response.url;
12376
- return;
12377
- }
12295
+ form.setAttribute("method", "POST");
12296
+ form.setAttribute("action", kc.createLogoutUrl(options));
12297
+ form.style.display = "none";
12378
12298
 
12379
- if (response.ok) {
12380
- window.location.reload();
12381
- return;
12299
+ // Add data to form as hidden input fields.
12300
+ const data = {
12301
+ id_token_hint: kc.idToken,
12302
+ client_id: kc.clientId,
12303
+ post_logout_redirect_uri: adapter.redirectUri(options, false)
12304
+ };
12305
+
12306
+ for (const [name, value] of Object.entries(data)) {
12307
+ const input = document.createElement("input");
12308
+
12309
+ input.setAttribute("type", "hidden");
12310
+ input.setAttribute("name", name);
12311
+ input.setAttribute("value", value);
12312
+
12313
+ form.appendChild(input);
12382
12314
  }
12383
12315
 
12384
- throw new Error("Logout failed, request returned an error code.");
12316
+ // Append form to page and submit it to perform logout and redirect.
12317
+ document.body.appendChild(form);
12318
+ form.submit();
12385
12319
  },
12386
12320
 
12387
- register: function(options) {
12388
- window.location.assign(kc.createRegisterUrl(options));
12321
+ register: async function(options) {
12322
+ window.location.assign(await kc.createRegisterUrl(options));
12389
12323
  return createPromise().promise;
12390
12324
  },
12391
12325
 
@@ -12538,9 +12472,9 @@ function Keycloak (config) {
12538
12472
  return promise.promise;
12539
12473
  },
12540
12474
 
12541
- register : function(options) {
12475
+ register : async function(options) {
12542
12476
  var promise = createPromise();
12543
- var registerUrl = kc.createRegisterUrl();
12477
+ var registerUrl = await kc.createRegisterUrl();
12544
12478
  var cordovaOptions = createCordovaOptions(options);
12545
12479
  var ref = cordovaOpenWindowWrapper(registerUrl, '_blank', cordovaOptions);
12546
12480
  ref.addEventListener('loadstart', function(event) {
@@ -12607,9 +12541,9 @@ function Keycloak (config) {
12607
12541
  return promise.promise;
12608
12542
  },
12609
12543
 
12610
- register : function(options) {
12544
+ register : async function(options) {
12611
12545
  var promise = createPromise();
12612
- var registerUrl = kc.createRegisterUrl(options);
12546
+ var registerUrl = await kc.createRegisterUrl(options);
12613
12547
  universalLinks.subscribe('keycloak' , function(event) {
12614
12548
  universalLinks.unsubscribe('keycloak');
12615
12549
  window.cordova.plugins.browsertab.close();
@@ -12645,6 +12579,8 @@ function Keycloak (config) {
12645
12579
  throw 'invalid adapter type: ' + type;
12646
12580
  }
12647
12581
 
12582
+ const STORAGE_KEY_PREFIX = 'kc-callback-';
12583
+
12648
12584
  var LocalStorage = function() {
12649
12585
  if (!(this instanceof LocalStorage)) {
12650
12586
  return new LocalStorage();
@@ -12655,48 +12591,96 @@ function Keycloak (config) {
12655
12591
 
12656
12592
  var cs = this;
12657
12593
 
12658
- function clearExpired() {
12659
- var time = new Date().getTime();
12660
- for (var i = 0; i < localStorage.length; i++) {
12661
- var key = localStorage.key(i);
12662
- if (key && key.indexOf('kc-callback-') == 0) {
12663
- var value = localStorage.getItem(key);
12664
- if (value) {
12665
- try {
12666
- var expires = JSON.parse(value).expires;
12667
- if (!expires || expires < time) {
12668
- localStorage.removeItem(key);
12669
- }
12670
- } catch (err) {
12671
- localStorage.removeItem(key);
12672
- }
12673
- }
12594
+ /**
12595
+ * Clears all values from local storage that are no longer valid.
12596
+ */
12597
+ function clearInvalidValues() {
12598
+ const currentTime = Date.now();
12599
+
12600
+ for (const [key, value] of getStoredEntries()) {
12601
+ // Attempt to parse the expiry time from the value.
12602
+ const expiry = parseExpiry(value);
12603
+
12604
+ // Discard the value if it is malformed or expired.
12605
+ if (expiry === null || expiry < currentTime) {
12606
+ localStorage.removeItem(key);
12674
12607
  }
12675
12608
  }
12676
12609
  }
12677
12610
 
12611
+ /**
12612
+ * Clears all known values from local storage.
12613
+ */
12614
+ function clearAllValues() {
12615
+ for (const [key] of getStoredEntries()) {
12616
+ localStorage.removeItem(key);
12617
+ }
12618
+ }
12619
+
12620
+ /**
12621
+ * Gets all entries stored in local storage that are known to be managed by this class.
12622
+ * @returns {Array<[string, unknown]>} An array of key-value pairs.
12623
+ */
12624
+ function getStoredEntries() {
12625
+ return Object.entries(localStorage).filter(([key]) => key.startsWith(STORAGE_KEY_PREFIX));
12626
+ }
12627
+
12628
+ /**
12629
+ * Parses the expiry time from a value stored in local storage.
12630
+ * @param {unknown} value
12631
+ * @returns {number | null} The expiry time in milliseconds, or `null` if the value is malformed.
12632
+ */
12633
+ function parseExpiry(value) {
12634
+ let parsedValue;
12635
+
12636
+ // Attempt to parse the value as JSON.
12637
+ try {
12638
+ parsedValue = JSON.parse(value);
12639
+ } catch (error) {
12640
+ return null;
12641
+ }
12642
+
12643
+ // Attempt to extract the 'expires' property.
12644
+ if (isObject(parsedValue) && 'expires' in parsedValue && typeof parsedValue.expires === 'number') {
12645
+ return parsedValue.expires;
12646
+ }
12647
+
12648
+ return null;
12649
+ }
12650
+
12678
12651
  cs.get = function(state) {
12679
12652
  if (!state) {
12680
12653
  return;
12681
12654
  }
12682
12655
 
12683
- var key = 'kc-callback-' + state;
12656
+ var key = STORAGE_KEY_PREFIX + state;
12684
12657
  var value = localStorage.getItem(key);
12685
12658
  if (value) {
12686
12659
  localStorage.removeItem(key);
12687
12660
  value = JSON.parse(value);
12688
12661
  }
12689
12662
 
12690
- clearExpired();
12663
+ clearInvalidValues();
12691
12664
  return value;
12692
12665
  };
12693
12666
 
12694
12667
  cs.add = function(state) {
12695
- clearExpired();
12668
+ clearInvalidValues();
12669
+
12670
+ const key = STORAGE_KEY_PREFIX + state.state;
12671
+ const value = JSON.stringify({
12672
+ ...state,
12673
+ // Set the expiry time to 1 hour from now.
12674
+ expires: Date.now() + (60 * 60 * 1000)
12675
+ });
12696
12676
 
12697
- var key = 'kc-callback-' + state.state;
12698
- state.expires = new Date().getTime() + (60 * 60 * 1000);
12699
- localStorage.setItem(key, JSON.stringify(state));
12677
+ try {
12678
+ localStorage.setItem(key, value);
12679
+ } catch (error) {
12680
+ // If the storage is full, clear all known values and try again.
12681
+ clearAllValues();
12682
+ localStorage.setItem(key, value);
12683
+ }
12700
12684
  };
12701
12685
  };
12702
12686
 
@@ -12712,15 +12696,15 @@ function Keycloak (config) {
12712
12696
  return;
12713
12697
  }
12714
12698
 
12715
- var value = getCookie('kc-callback-' + state);
12716
- setCookie('kc-callback-' + state, '', cookieExpiration(-100));
12699
+ var value = getCookie(STORAGE_KEY_PREFIX + state);
12700
+ setCookie(STORAGE_KEY_PREFIX + state, '', cookieExpiration(-100));
12717
12701
  if (value) {
12718
12702
  return JSON.parse(value);
12719
12703
  }
12720
12704
  };
12721
12705
 
12722
12706
  cs.add = function(state) {
12723
- setCookie('kc-callback-' + state.state, JSON.stringify(state), cookieExpiration(60));
12707
+ setCookie(STORAGE_KEY_PREFIX + state.state, JSON.stringify(state), cookieExpiration(60));
12724
12708
  };
12725
12709
 
12726
12710
  cs.removeItem = function(key) {
@@ -12874,8 +12858,15 @@ function isObject(input) {
12874
12858
  }
12875
12859
 
12876
12860
  let keycloak = null;
12861
+ let keycloakInitPromise = null;
12877
12862
  // Initialize Keycloak with an optional silent check
12878
12863
  function initKeycloak(config, silentCheck = true) {
12864
+ // If already initializing or initialized, return the cached promise
12865
+ if (keycloakInitPromise) {
12866
+ // eslint-disable-next-line
12867
+ console.log('Keycloak already initialized, returning from cache');
12868
+ return keycloakInitPromise;
12869
+ }
12879
12870
  if (!keycloak) {
12880
12871
  keycloak = new Keycloak({
12881
12872
  url: config.url,
@@ -12883,7 +12874,7 @@ function initKeycloak(config, silentCheck = true) {
12883
12874
  clientId: config.clientId
12884
12875
  });
12885
12876
  }
12886
- return keycloak
12877
+ keycloakInitPromise = keycloak
12887
12878
  .init({
12888
12879
  onLoad: silentCheck ? 'check-sso' : 'login-required',
12889
12880
  checkLoginIframe: false
@@ -12895,6 +12886,7 @@ function initKeycloak(config, silentCheck = true) {
12895
12886
  console.error('Failed to initialize Keycloak:', error);
12896
12887
  return false;
12897
12888
  });
12889
+ return keycloakInitPromise;
12898
12890
  }
12899
12891
  function getUser() {
12900
12892
  if ((keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated) && (keycloak === null || keycloak === void 0 ? void 0 : keycloak.idTokenParsed)) {
@@ -12917,8 +12909,7 @@ function login() {
12917
12909
  keycloak.login();
12918
12910
  }
12919
12911
  else {
12920
- // eslint-disable-next-line
12921
- console.error('Keycloak is not initialized.');
12912
+ throw new Error('Keycloak is not initialized.');
12922
12913
  }
12923
12914
  }
12924
12915
  // Log out the user
@@ -12927,8 +12918,7 @@ function logout() {
12927
12918
  keycloak.logout();
12928
12919
  }
12929
12920
  else {
12930
- // eslint-disable-next-line
12931
- console.error('Keycloak is not initialized.');
12921
+ throw new Error('Keycloak is not initialized.');
12932
12922
  }
12933
12923
  }
12934
12924
  // Check if the user is authenticated
@@ -12945,75 +12935,85 @@ async function checkServerAvailability(url) {
12945
12935
  }
12946
12936
  }
12947
12937
 
12948
- /**
12949
- * `EdsLogin` is a login component that integrates Keycloak authentication,
12950
- * allowing users to log in and out and manage authentication states.
12951
- * This component is used to handle user login, logout, and authentication status display.
12952
- *
12953
- * This component is ideal for applications that require Keycloak-based authentication,
12954
- * providing a simple login/logout interface and managing user session states.
12955
- */
12956
12938
  class EdsLogin {
12957
12939
  constructor(hostRef) {
12958
12940
  registerInstance(this, hostRef);
12959
12941
  this.authStatusChanged = createEvent(this, "authStatusChanged", 7);
12960
- // Method to handle user logout
12961
- this.handleLogout = () => {
12962
- logout();
12963
- this.authenticated = false; // Reset authentication state after logout
12942
+ /**
12943
+ * Handles user login by invoking the Keycloak `login` function.
12944
+ * Only triggers login if the user is not already authenticated.
12945
+ */
12946
+ this.handleLogin = async () => {
12947
+ if (!this.authenticated) {
12948
+ try {
12949
+ await login();
12950
+ toast.show('You are authenticated', 'success');
12951
+ }
12952
+ catch (error) {
12953
+ toast.show(error.message, 'error');
12954
+ }
12955
+ }
12964
12956
  };
12965
- this.keycloakUrl = '';
12966
- this.keycloakRealm = '';
12967
- this.keycloakClientId = '';
12957
+ /**
12958
+ * Handles user logout by invoking the Keycloak `logout` function.
12959
+ * Resets the `authenticated` state to `false` after logout.
12960
+ */
12961
+ this.handleLogout = async () => {
12962
+ try {
12963
+ await logout();
12964
+ }
12965
+ catch (error) {
12966
+ toast.show(error.message, 'error');
12967
+ }
12968
+ this.authenticated = false;
12969
+ this.user = null;
12970
+ };
12971
+ this.keycloakUrl = undefined;
12972
+ this.keycloakRealm = undefined;
12973
+ this.keycloakClientId = undefined;
12968
12974
  this.authenticated = false;
12969
12975
  this.user = null;
12970
12976
  }
12971
- // Lifecycle method to check authentication status before the component loads
12977
+ /**
12978
+ * Lifecycle method that runs when the component is about to load.
12979
+ * It initializes authentication by calling the `initAuth` method.
12980
+ */
12972
12981
  async componentWillLoad() {
12973
- await this.checkAuthentication();
12982
+ // Check if required props are provided (optional check)
12983
+ if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
12984
+ // eslint-disable-next-line
12985
+ console.error('Keycloak configuration props are missing.');
12986
+ return;
12987
+ }
12988
+ await this.initAuth();
12974
12989
  }
12975
- // Method to initialize Keycloak and check if the user is authenticated
12976
- async checkAuthentication() {
12990
+ /**
12991
+ * Initializes the Keycloak authentication by configuring Keycloak with the provided props.
12992
+ * Sets the `authenticated` state and `user` data if the user is authenticated.
12993
+ * Emits `authStatusChanged` event with the authentication status.
12994
+ */
12995
+ async initAuth() {
12977
12996
  try {
12978
- const keycloakConfig = {
12997
+ await initKeycloak({
12979
12998
  url: this.keycloakUrl,
12980
12999
  realm: this.keycloakRealm,
12981
13000
  clientId: this.keycloakClientId
12982
- };
12983
- await initKeycloak(keycloakConfig);
12984
- // eslint-disable-next-line
12985
- // Set authentication state and fetch user data if authenticated
12986
- this.authenticated = isAuthenticated();
12987
- if (this.authenticated) {
13001
+ }, true);
13002
+ if (isAuthenticated()) {
12988
13003
  this.user = getUser();
13004
+ this.authenticated = true;
13005
+ this.authStatusChanged.emit({
13006
+ authenticated: this.authenticated,
13007
+ user: this.user
13008
+ }); // Emit auth status change
12989
13009
  }
12990
- this.authStatusChanged.emit({
12991
- authenticated: this.authenticated,
12992
- user: this.user
12993
- }); // Emit auth status change
12994
13010
  }
12995
13011
  catch (error) {
12996
- // eslint-disable-next-line
12997
- console.error('Keycloak initialization or login check failed:', error);
13012
+ toast.show(error.message, 'error');
12998
13013
  }
12999
13014
  }
13000
- // Method to handle user login
13001
- async handleLogin() {
13002
- try {
13003
- if (!this.authenticated) {
13004
- login(); // Start the Keycloak login process
13005
- }
13006
- }
13007
- catch (error) {
13008
- // eslint-disable-next-line
13009
- console.error('Login failed:', error);
13010
- }
13011
- }
13012
- getBtnLabel() {
13013
- return this.authenticated ? 'Logout' : 'Login';
13014
- }
13015
13015
  render() {
13016
- 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) }));
13016
+ 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) }))));
13017
13017
  }
13018
13018
  static get cmpMeta() { return {
13019
13019
  "$flags$": 9,
@@ -13057,6 +13057,7 @@ class EdsLogo {
13057
13057
  this.href = '/';
13058
13058
  this.orientation = 'horizontal';
13059
13059
  this.type = undefined;
13060
+ this.label = 'Home';
13060
13061
  }
13061
13062
  /**
13062
13063
  * Handles the click event on the logo link.
@@ -13109,7 +13110,7 @@ class EdsLogo {
13109
13110
  }
13110
13111
  render() {
13111
13112
  const logoContent = this.getLogo();
13112
- return (hAsync("a", { key: '3d9435fbc45427865bfa7bacb36bea4c34f08c4e', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper" }, hAsync("div", { key: '662122c4b687a082c930c034b033e9732ef611be', innerHTML: logoContent })));
13113
+ 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 })));
13113
13114
  }
13114
13115
  get el() { return getElement(this); }
13115
13116
  static get style() { return EdsLogoStyle0; }
@@ -13119,7 +13120,8 @@ class EdsLogo {
13119
13120
  "$members$": {
13120
13121
  "href": [1],
13121
13122
  "orientation": [1],
13122
- "type": [1]
13123
+ "type": [1],
13124
+ "label": [1]
13123
13125
  },
13124
13126
  "$listeners$": undefined,
13125
13127
  "$lazyBundleId$": "-",
@@ -13146,7 +13148,7 @@ class EdsLogoVariations {
13146
13148
  }
13147
13149
  }
13148
13150
  render() {
13149
- return hAsync("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
13151
+ return hAsync("div", { key: '0494cbb3e7b4902e91a0c78c691bc3405b9f11cc', class: "container" }, this.renderContent());
13150
13152
  }
13151
13153
  static get cmpMeta() { return {
13152
13154
  "$flags$": 0,
@@ -13276,10 +13278,9 @@ class EdsMatomoNotice {
13276
13278
  }; }
13277
13279
  }
13278
13280
 
13279
- 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}";
13281
+ 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}";
13280
13282
  var EdsModalStyle0 = edsModalCss;
13281
13283
 
13282
- //import { sendAnalytics } from '@ebrains/utils';
13283
13284
  /**
13284
13285
  * `EdsModal` is a modal dialog component that can be toggled open or closed.
13285
13286
  *
@@ -13297,33 +13298,59 @@ class EdsModal {
13297
13298
  this.title = '';
13298
13299
  this.truncate = true;
13299
13300
  this.truncateLines = '1';
13301
+ this.position = 'middle';
13300
13302
  }
13301
13303
  getTruncateClass() {
13302
13304
  return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
13303
13305
  }
13306
+ /**
13307
+ * Returns the Tailwind CSS classes to position the modal based on the `position` prop.
13308
+ *
13309
+ * @private
13310
+ * @returns {string} The concatenated CSS classes for modal positioning.
13311
+ */
13312
+ getModalPositionClasses() {
13313
+ switch (this.position) {
13314
+ case 'top':
13315
+ return 'left-1/2 top-20 -translate-x-1/2';
13316
+ case 'bottom':
13317
+ return 'left-1/2 bottom-20 -translate-x-1/2';
13318
+ case 'left':
13319
+ return 'left-20 top-1/2 -translate-y-1/2';
13320
+ case 'right':
13321
+ return 'right-20 top-1/2 -translate-y-1/2';
13322
+ case 'middle':
13323
+ default:
13324
+ return 'left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2';
13325
+ }
13326
+ }
13304
13327
  /**
13305
13328
  * Opens the modal.
13306
13329
  */
13307
13330
  async open() {
13331
+ var _a;
13308
13332
  this.isOpen = true;
13309
- /*sendAnalytics({
13310
- category: 'ui-component',
13311
- tag: this.el.tagName.toLowerCase(),
13312
- name: this.title,
13313
- action: 'show'
13314
- });*/
13333
+ sendAnalytics({
13334
+ category: 'ui-component',
13335
+ parentContext: null,
13336
+ tag: this.el.tagName.toLowerCase(),
13337
+ name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
13338
+ action: 'opened'
13339
+ });
13315
13340
  }
13316
13341
  /**
13317
13342
  * Closes the modal.
13318
13343
  */
13319
13344
  async close() {
13345
+ var _a;
13320
13346
  this.isOpen = false;
13321
- /*sendAnalytics({
13322
- category: 'ui-component',
13323
- tag: this.el.tagName.toLowerCase(),
13324
- name: this.title,
13325
- action: 'hide'
13326
- });*/
13347
+ sendAnalytics({
13348
+ category: 'ui-component',
13349
+ parentContext: null,
13350
+ tag: this.el.tagName.toLowerCase(),
13351
+ name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
13352
+ action: 'closed'
13353
+ });
13327
13354
  }
13328
13355
  /**
13329
13356
  * Toggles the modal open or closed.
@@ -13332,35 +13359,19 @@ class EdsModal {
13332
13359
  this.isOpen = !this.isOpen;
13333
13360
  }
13334
13361
  /**
13335
- * Lifecycle method that runs when the component has fully loaded.
13336
- * It emits a custom event for each `eds-button` element contained within the breadcrumb.
13362
+ * Closes the modal when the Escape key is pressed.
13337
13363
  */
13338
- componentDidLoad() {
13339
- // Emit context for each eds-link element after the component is fully loaded
13340
- const btns = this.el.shadowRoot.querySelectorAll('eds-button');
13341
- btns.forEach((btn) => {
13342
- this.emitContext(btn);
13343
- });
13344
- }
13345
- /**
13346
- * Emits a custom event called `parentContext` for a given button element.
13347
- * This event provides context information about the eds-modal component.
13348
- *
13349
- * @param btnElement - The link element to which the event will be dispatched.
13350
- */
13351
- emitContext(btnElement) {
13352
- const event = new CustomEvent('parentContext', {
13353
- detail: {
13354
- componentName: this.el.tagName.toLowerCase(),
13355
- identifier: null
13356
- }
13357
- });
13358
- btnElement.dispatchEvent(event);
13364
+ handleKeyDown(event) {
13365
+ if (this.isOpen && event.key === 'Escape') {
13366
+ this.close();
13367
+ }
13359
13368
  }
13360
13369
  render() {
13361
- 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
13370
+ // Generate a unique id for the title so we can reference it for aria-labelledby.
13371
+ const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
13372
+ 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
13362
13373
  ,
13363
- 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' })))));
13374
+ 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' })))));
13364
13375
  }
13365
13376
  get el() { return getElement(this); }
13366
13377
  static get style() { return EdsModalStyle0; }
@@ -13371,12 +13382,13 @@ class EdsModal {
13371
13382
  "title": [1],
13372
13383
  "truncate": [4],
13373
13384
  "truncateLines": [1, "truncate-lines"],
13385
+ "position": [1],
13374
13386
  "isOpen": [32],
13375
13387
  "open": [64],
13376
13388
  "close": [64],
13377
13389
  "toggle": [64]
13378
13390
  },
13379
- "$listeners$": undefined,
13391
+ "$listeners$": [[8, "keydown", "handleKeyDown"]],
13380
13392
  "$lazyBundleId$": "-",
13381
13393
  "$attrsToReflect$": []
13382
13394
  }; }
@@ -13416,7 +13428,7 @@ class EdsNavigator {
13416
13428
  linkElement.dispatchEvent(event);
13417
13429
  }
13418
13430
  render() {
13419
- 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" })))));
13431
+ 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" })))));
13420
13432
  }
13421
13433
  get el() { return getElement(this); }
13422
13434
  static get cmpMeta() { return {
@@ -13473,14 +13485,18 @@ class EdsPagination {
13473
13485
  componentDidLoad() {
13474
13486
  // Emit context for each eds-link element after the component is fully loaded
13475
13487
  const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
13476
- if (links.length > 0) {
13477
- // Emit context for the first link
13478
- this.emitContext(links[0]);
13479
- // Emit context for the last link, if it's different from the first
13480
- if (links.length > 1) {
13481
- this.emitContext(links[links.length - 1]);
13482
- }
13483
- }
13488
+ links.forEach((lnk) => {
13489
+ this.emitContext(lnk);
13490
+ });
13491
+ /*if (links.length > 0) {
13492
+ // Emit context for the first link
13493
+ this.emitContext(links[0]);
13494
+
13495
+ // Emit context for the last link, if it's different from the first
13496
+ if (links.length > 1) {
13497
+ this.emitContext(links[links.length - 1]);
13498
+ }
13499
+ }*/
13484
13500
  }
13485
13501
  /**
13486
13502
  * Emits a custom event called `parentContext` for a given link element.
@@ -13610,7 +13626,7 @@ class EdsPagination {
13610
13626
  }
13611
13627
  }
13612
13628
  render() {
13613
- 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'
13629
+ 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'
13614
13630
  ? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
13615
13631
  : this.isFirstPage()
13616
13632
  ? '#'
@@ -13688,7 +13704,7 @@ class EdsProgressBar {
13688
13704
  }
13689
13705
  render() {
13690
13706
  const progressValue = this.value;
13691
- 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, "%")));
13707
+ 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, "%")));
13692
13708
  }
13693
13709
  static get style() { return EdsProgressBarStyle0; }
13694
13710
  static get cmpMeta() { return {
@@ -13704,7 +13720,7 @@ class EdsProgressBar {
13704
13720
  }; }
13705
13721
  }
13706
13722
 
13707
- 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}";
13723
+ 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}";
13708
13724
  var EdsRatingStyle0 = edsRatingCss;
13709
13725
 
13710
13726
  class EdsRating {
@@ -13717,10 +13733,7 @@ class EdsRating {
13717
13733
  this.selectedRating = 0;
13718
13734
  }
13719
13735
  /**
13720
- * Parses the `links` prop into an array of link objects.
13721
- * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
13722
- *
13723
- * @returns {any[]} Array of parsed link objects
13736
+ * Parses the `textMapping` prop into an array of strings.
13724
13737
  */
13725
13738
  get parsedMappings() {
13726
13739
  if (typeof this.textMapping === 'object') {
@@ -13731,8 +13744,7 @@ class EdsRating {
13731
13744
  return JSON.parse(this.textMapping);
13732
13745
  }
13733
13746
  catch (e) {
13734
- // eslint-disable-next-line
13735
- console.error('Error parsing links prop:', e);
13747
+ //console.error('Error parsing textMapping prop:', e);
13736
13748
  return [];
13737
13749
  }
13738
13750
  }
@@ -13747,10 +13759,14 @@ class EdsRating {
13747
13759
  this.ratingChange.emit(rating);
13748
13760
  }
13749
13761
  render() {
13750
- 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: {
13751
- star: true,
13752
- filled: index < this.selectedRating
13753
- }, 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]))));
13762
+ 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) => {
13763
+ const starRating = index + 1;
13764
+ const isSelected = starRating <= this.selectedRating;
13765
+ // Use the mapping text if available; otherwise, fall back to a generic label.
13766
+ const mappingText = this.parsedMappings[starRating - 1] || `Rating ${starRating}`;
13767
+ 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
13768
+ }));
13769
+ })), 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]))));
13754
13770
  }
13755
13771
  static get style() { return EdsRatingStyle0; }
13756
13772
  static get cmpMeta() { return {
@@ -13759,7 +13775,7 @@ class EdsRating {
13759
13775
  "$members$": {
13760
13776
  "stars": [2],
13761
13777
  "label": [1],
13762
- "textMapping": [8, "text-mapping"],
13778
+ "textMapping": [1, "text-mapping"],
13763
13779
  "selectedRating": [32]
13764
13780
  },
13765
13781
  "$listeners$": undefined,
@@ -13790,7 +13806,7 @@ class EdsSectionCore {
13790
13806
  }
13791
13807
  render() {
13792
13808
  const TagType = this.tag; // Set dynamic tag type (div or section)
13793
- return (hAsync(TagType, { key: '849c35d9cd587cf14b0d6bc6efd1310a85d447f2' }, hAsync("eds-section-heading", { key: '7ed4486fcf6e7c653026869c9468be9471db1775', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5d95ea6516ecaaab4e07a40b84cd20deb3d8d3b2' })));
13809
+ return (hAsync(TagType, { key: 'e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac' }, hAsync("eds-section-heading", { key: '379c6bc644612d3e0865ce2acd8eacb4d67c7769', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5828a28c2c8ac65fbc56652f733f148a0d0198b7' })));
13794
13810
  }
13795
13811
  static get style() { return EdsSectionCoreStyle0; }
13796
13812
  static get cmpMeta() { return {
@@ -13842,12 +13858,12 @@ class EdsSectionHeading {
13842
13858
  render() {
13843
13859
  const TagType = this.tag; // Dynamically set tag type for the container
13844
13860
  const HeadingTag = this.headingLevel; // Dynamically set heading level
13845
- return (hAsync(TagType, { key: '2c6466c0a02bf8598153c18eafb37affc3dac395', class: {
13861
+ return (hAsync(TagType, { key: 'c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb', class: {
13846
13862
  'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20': true,
13847
13863
  container: this.withContainer,
13848
13864
  'pt-48': this.spacingLarge,
13849
13865
  'pt-28': !this.spacingLarge
13850
- } }, hAsync(HeadingTag, { key: 'fc7f0f09e02e8c63697e46811c465792497126e0', class: this.getHeadingClass() }, this.sectionTitle)));
13866
+ } }, hAsync(HeadingTag, { key: 'e65e13820553eefa5aec8bc9740e5e9da828ac92', class: this.getHeadingClass() }, this.sectionTitle)));
13851
13867
  }
13852
13868
  static get cmpMeta() { return {
13853
13869
  "$flags$": 0,
@@ -13923,7 +13939,7 @@ class EdsSocialNetworks {
13923
13939
  * @returns {JSX.Element} The rendered JSX for the component.
13924
13940
  */
13925
13941
  render() {
13926
- 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" })))))));
13942
+ 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" })))))));
13927
13943
  }
13928
13944
  static get style() { return EdsSocialNetworksStyle0; }
13929
13945
  static get cmpMeta() { return {
@@ -13938,6 +13954,76 @@ class EdsSocialNetworks {
13938
13954
  }; }
13939
13955
  }
13940
13956
 
13957
+ 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}";
13958
+ var EdsStepsStyle0 = edsStepsCss;
13959
+
13960
+ class EdsSteps {
13961
+ constructor(hostRef) {
13962
+ registerInstance(this, hostRef);
13963
+ this.stepClick = createEvent(this, "stepClick", 7);
13964
+ this.handleNext = () => {
13965
+ if (this.activeStep < this.parsedSteps.length) {
13966
+ this.activeStep = this.activeStep + 1;
13967
+ }
13968
+ };
13969
+ this.handleBack = () => {
13970
+ if (this.activeStep > 0) {
13971
+ this.activeStep = this.activeStep - 1;
13972
+ }
13973
+ };
13974
+ this.handleReset = () => {
13975
+ this.activeStep = 0;
13976
+ };
13977
+ this.steps = [];
13978
+ this.type = 'static';
13979
+ this.activeStep = 0;
13980
+ }
13981
+ handleStepClick(index) {
13982
+ this.stepClick.emit(index);
13983
+ // In linear mode, update the active step on header click.
13984
+ if (this.type === 'linear') {
13985
+ this.activeStep = index;
13986
+ }
13987
+ }
13988
+ /**
13989
+ * Parse the JSON string into an array of steps.
13990
+ */
13991
+ get parsedSteps() {
13992
+ if (typeof this.steps === 'string') {
13993
+ try {
13994
+ const stepsStr = this.steps;
13995
+ return JSON.parse(stepsStr);
13996
+ }
13997
+ catch (error) {
13998
+ //console.error('Invalid steps JSON', error);
13999
+ return [];
14000
+ }
14001
+ }
14002
+ return this.steps;
14003
+ }
14004
+ render() {
14005
+ const steps = this.parsedSteps;
14006
+ if (this.type === 'linear') {
14007
+ 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" })))));
14008
+ }
14009
+ // Static mode: show all steps with their content, no navigation buttons.
14010
+ 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)))))));
14011
+ }
14012
+ static get style() { return EdsStepsStyle0; }
14013
+ static get cmpMeta() { return {
14014
+ "$flags$": 0,
14015
+ "$tagName$": "eds-steps",
14016
+ "$members$": {
14017
+ "steps": [1],
14018
+ "type": [1],
14019
+ "activeStep": [32]
14020
+ },
14021
+ "$listeners$": undefined,
14022
+ "$lazyBundleId$": "-",
14023
+ "$attrsToReflect$": []
14024
+ }; }
14025
+ }
14026
+
13941
14027
  /**
13942
14028
  * @internal
13943
14029
  */
@@ -13966,7 +14052,7 @@ class EdsSvgRepository {
13966
14052
  icon: { format: 'svg' },
13967
14053
  name: { format: 'bold' }
13968
14054
  };
13969
- 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 }));
14055
+ 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 }));
13970
14056
  }
13971
14057
  get hostEl() { return getElement(this); }
13972
14058
  static get cmpMeta() { return {
@@ -13979,6 +14065,50 @@ class EdsSvgRepository {
13979
14065
  }; }
13980
14066
  }
13981
14067
 
14068
+ 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)}";
14069
+ var EdsSwitchStyle0 = edsSwitchCss;
14070
+
14071
+ class EdsSwitch {
14072
+ constructor(hostRef) {
14073
+ registerInstance(this, hostRef);
14074
+ this.change = createEvent(this, "change", 7);
14075
+ this.toggleSwitch = () => {
14076
+ if (this.disabled) {
14077
+ return;
14078
+ }
14079
+ this.checked = !this.checked;
14080
+ this.change.emit(this.checked);
14081
+ };
14082
+ this.checked = false;
14083
+ this.disabled = false;
14084
+ this.labelOn = '';
14085
+ this.labelOff = '';
14086
+ }
14087
+ render() {
14088
+ // Compute an accessible name based on state.
14089
+ const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
14090
+ 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: {
14091
+ switch: true,
14092
+ 'switch--checked': this.checked,
14093
+ 'switch--disabled': this.disabled
14094
+ }, 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)));
14095
+ }
14096
+ static get style() { return EdsSwitchStyle0; }
14097
+ static get cmpMeta() { return {
14098
+ "$flags$": 9,
14099
+ "$tagName$": "eds-switch",
14100
+ "$members$": {
14101
+ "checked": [1540],
14102
+ "disabled": [4],
14103
+ "labelOn": [1, "label-on"],
14104
+ "labelOff": [1, "label-off"]
14105
+ },
14106
+ "$listeners$": undefined,
14107
+ "$lazyBundleId$": "-",
14108
+ "$attrsToReflect$": [["checked", "checked"]]
14109
+ }; }
14110
+ }
14111
+
13982
14112
  /**
13983
14113
  * @internal
13984
14114
  */
@@ -14010,7 +14140,7 @@ class EdsTab {
14010
14140
  this.ariaLabel = undefined;
14011
14141
  }
14012
14142
  render() {
14013
- return (hAsync("a", { key: 'ba4c995637d8d305249f018a0451775f45907716', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
14143
+ return (hAsync("a", { key: 'a55be2a07e554ab13a0d7e913710382d6126da57', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
14014
14144
  }
14015
14145
  static get cmpMeta() { return {
14016
14146
  "$flags$": 0,
@@ -14130,10 +14260,24 @@ class EdsTable {
14130
14260
  }
14131
14261
  handlePageChange(newPage) {
14132
14262
  this.currentPage = newPage;
14263
+ sendAnalytics({
14264
+ category: 'ui-component',
14265
+ parentContext: null,
14266
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
14267
+ name: `${newPage}` || '',
14268
+ action: 'page'
14269
+ });
14133
14270
  }
14134
14271
  handleSearch(event) {
14135
14272
  this.searchQuery = event.target.value;
14136
14273
  this.currentPage = 1;
14274
+ /*sendAnalytics({
14275
+ category: 'ui-component',
14276
+ parentContext: null,
14277
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
14278
+ name: `${this.searchQuery}` || '',
14279
+ action: 'page'
14280
+ });*/
14137
14281
  }
14138
14282
  renderCell(value, column) {
14139
14283
  var _a;
@@ -14173,18 +14317,16 @@ class EdsTable {
14173
14317
  : this.hostEl.getRootNode().host instanceof HTMLElement
14174
14318
  ? this.hostEl.getRootNode().host.getBoundingClientRect().width
14175
14319
  : 400;
14176
- //console.log('containerWidth:', containerWidth);
14177
14320
  const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
14178
- console.log('columnWidth:', columnWidth);
14179
- 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...",
14321
+ 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...",
14180
14322
  // @ts-ignore
14181
- 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) => {
14323
+ 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) => {
14182
14324
  var _a;
14183
- 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));
14184
- }))), 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) => {
14325
+ 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));
14326
+ }))), 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) => {
14185
14327
  var _a;
14186
- 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)));
14187
- }))))))), 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" })))));
14328
+ 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)));
14329
+ }))))))), 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" })))));
14188
14330
  }
14189
14331
  get hostEl() { return getElement(this); }
14190
14332
  static get watchers() { return {
@@ -14348,7 +14490,7 @@ class EdsTabs {
14348
14490
  });
14349
14491
  }
14350
14492
  render() {
14351
- 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) => {
14493
+ 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) => {
14352
14494
  //const TabComponent = tab.active ? 'span' : 'a';
14353
14495
  const tabProps = this.getTabOptions(tab.active, index);
14354
14496
  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) })));
@@ -14490,11 +14632,11 @@ class EdsTabsContent {
14490
14632
  });
14491
14633
  }
14492
14634
  render() {
14493
- 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) => {
14635
+ 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) => {
14494
14636
  //const TabComponent = tab.active ? 'span' : 'a';
14495
14637
  const tabProps = this.getTabOptions(tab.active, index);
14496
14638
  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) })));
14497
- })), hAsync("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
14639
+ })), hAsync("slot", { key: 'e5da088cec99dd0e40560b70fbd9940ac5a7f56f' }))));
14498
14640
  }
14499
14641
  get el() { return getElement(this); }
14500
14642
  static get watchers() { return {
@@ -14549,6 +14691,7 @@ class EdsTag {
14549
14691
  constructor(hostRef) {
14550
14692
  registerInstance(this, hostRef);
14551
14693
  this.label = undefined;
14694
+ this.ariaLabel = '';
14552
14695
  this.intent = 'default';
14553
14696
  }
14554
14697
  /**
@@ -14556,8 +14699,10 @@ class EdsTag {
14556
14699
  * @returns The rendered HTML for the tag component with the applied styles and label.
14557
14700
  */
14558
14701
  render() {
14702
+ var _a;
14559
14703
  const classes = tagStyles({ intent: this.intent });
14560
- return hAsync("span", { key: '546bd7eb2c78760edc12cd7bb3ede5f6ab9099f3', class: classes }, this.label);
14704
+ const accessibleLabel = ((_a = this.ariaLabel) === null || _a === void 0 ? void 0 : _a.length) ? this.ariaLabel : this.label;
14705
+ return (hAsync("span", { key: '6a517f42aeb641c95d96ecd6c3090a317a3195c6', class: classes, "aria-label": accessibleLabel }, this.label));
14561
14706
  }
14562
14707
  static get style() { return EdsTagStyle0; }
14563
14708
  static get cmpMeta() { return {
@@ -14565,6 +14710,7 @@ class EdsTag {
14565
14710
  "$tagName$": "eds-tag",
14566
14711
  "$members$": {
14567
14712
  "label": [1],
14713
+ "ariaLabel": [1, "aria-label"],
14568
14714
  "intent": [1]
14569
14715
  },
14570
14716
  "$listeners$": undefined,
@@ -14588,7 +14734,8 @@ class EdsTimeline {
14588
14734
  parsed = JSON.parse(newValue);
14589
14735
  }
14590
14736
  catch (e) {
14591
- console.error('Error parsing events JSON', e);
14737
+ // eslint-disable-next-line
14738
+ console.error('Error parsing timeline events JSON', e);
14592
14739
  parsed = [];
14593
14740
  }
14594
14741
  }
@@ -14630,7 +14777,7 @@ class EdsTimeline {
14630
14777
  }
14631
14778
  }
14632
14779
  render() {
14633
- 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
14780
+ 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
14634
14781
  ? [{ label: 'completed', style: 'accent' }]
14635
14782
  : [{ 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
14636
14783
  ? [{ label: 'completed', style: 'accent' }]
@@ -14681,6 +14828,27 @@ class EdsToast {
14681
14828
  this.duration = 5000;
14682
14829
  this.visible = true;
14683
14830
  }
14831
+ /**
14832
+ * Lifecycle method that sets up the initial panel height and adds a resize event listener
14833
+ * to recalculate height on window resize.
14834
+ */
14835
+ componentDidLoad() {
14836
+ // Emit context for each eds-button element after the component is fully loaded
14837
+ const btn = this.el.querySelector('eds-button');
14838
+ this.emitContext(btn);
14839
+ }
14840
+ /**
14841
+ * Emits a custom event called `parentContext` for a given button element.
14842
+ */
14843
+ emitContext(linkElement) {
14844
+ const event = new CustomEvent('parentContext', {
14845
+ detail: {
14846
+ componentName: this.el.tagName.toLowerCase(),
14847
+ identifier: null
14848
+ }
14849
+ });
14850
+ linkElement.dispatchEvent(event);
14851
+ }
14684
14852
  connectedCallback() {
14685
14853
  // Auto-dismiss the toast after the specified duration
14686
14854
  this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
@@ -14694,7 +14862,7 @@ class EdsToast {
14694
14862
  return null;
14695
14863
  }
14696
14864
  const classes = toastStyles({ intent: this.intent });
14697
- 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" }))));
14865
+ 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" }))));
14698
14866
  }
14699
14867
  get el() { return getElement(this); }
14700
14868
  static get cmpMeta() { return {
@@ -14744,7 +14912,7 @@ class EdsToastManager {
14744
14912
  this.toasts = this.toasts.filter((t) => t.id !== id);
14745
14913
  }
14746
14914
  render() {
14747
- 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) }))))));
14915
+ 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) }))))));
14748
14916
  }
14749
14917
  get hostElement() { return getElement(this); }
14750
14918
  static get style() { return EdsToastManagerStyle0; }
@@ -14779,9 +14947,17 @@ class EdsTooltip {
14779
14947
  * Show the tooltip and update its position.
14780
14948
  */
14781
14949
  async showTooltip() {
14950
+ var _a;
14782
14951
  await this.updateTooltipPosition();
14783
14952
  this.isPositioned = true;
14784
14953
  this.isVisible = true;
14954
+ sendAnalytics({
14955
+ category: 'ui-component',
14956
+ parentContext: null,
14957
+ tag: this.el.tagName.toLowerCase(),
14958
+ name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
14959
+ action: 'hover'
14960
+ });
14785
14961
  }
14786
14962
  /**
14787
14963
  * Hide the tooltip.
@@ -14846,7 +15022,7 @@ class EdsTooltip {
14846
15022
  }
14847
15023
  }
14848
15024
  render() {
14849
- 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: {
15025
+ 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: {
14850
15026
  top: this.tooltipStyle.top,
14851
15027
  left: this.tooltipStyle.left,
14852
15028
  transform: this.tooltipStyle.transform
@@ -14886,8 +15062,8 @@ class EdsTrl {
14886
15062
  apps = JSON.parse(this.applications || '[]');
14887
15063
  }
14888
15064
  catch (error) {
14889
- // Uncomment the next line for debugging
14890
- // console.error('Invalid applications JSON', error);
15065
+ // eslint-disable-next-line
15066
+ console.error('Invalid applications trl JSON', error);
14891
15067
  apps = [];
14892
15068
  }
14893
15069
  }
@@ -14903,18 +15079,17 @@ class EdsTrl {
14903
15079
  }
14904
15080
  render() {
14905
15081
  const apps = this.getParsedApplications();
14906
- console.log('apps:', apps);
14907
15082
  // Map applications into table-friendly data.
14908
- const tableData = apps.map(app => ({
15083
+ const tableData = apps.map((app) => ({
14909
15084
  Application: app.name,
14910
- "Current TRL Stage": `TRL ${app.currentTrl}`,
15085
+ 'Current TRL Stage': `TRL ${app.currentTrl}`,
14911
15086
  Progress: (hAsync("div", { class: "w-[200px]" }, hAsync("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
14912
15087
  }));
14913
15088
  const tableConfig = {
14914
- "Application": { "format": "code" },
14915
- "Current TRL Stage": { "format": "text" }
15089
+ Application: { format: 'code' },
15090
+ 'Current TRL Stage': { format: 'text' }
14916
15091
  };
14917
- 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" })));
15092
+ 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" })));
14918
15093
  }
14919
15094
  static get cmpMeta() { return {
14920
15095
  "$flags$": 0,
@@ -14946,15 +15121,25 @@ class EdsUser {
14946
15121
  */
14947
15122
  this.handleLogin = () => {
14948
15123
  if (!this.authenticated) {
14949
- login();
15124
+ try {
15125
+ login();
15126
+ }
15127
+ catch (error) {
15128
+ toast.show(error.message, 'error');
15129
+ }
14950
15130
  }
14951
15131
  };
14952
15132
  /**
14953
15133
  * Handles user logout by invoking the Keycloak `logout` function.
14954
15134
  * Resets the `authenticated` state to `false` after logout.
14955
15135
  */
14956
- this.handleLogout = () => {
14957
- logout();
15136
+ this.handleLogout = async () => {
15137
+ try {
15138
+ await logout();
15139
+ }
15140
+ catch (error) {
15141
+ toast.show(error.message, 'error');
15142
+ }
14958
15143
  this.authenticated = false;
14959
15144
  this.user = null;
14960
15145
  };
@@ -14963,8 +15148,8 @@ class EdsUser {
14963
15148
  this.keycloakClientId = undefined;
14964
15149
  this.user = null;
14965
15150
  this.authenticated = false;
14966
- this.serverAvailable = false;
14967
15151
  this.username = '';
15152
+ this.serverAvailable = false;
14968
15153
  }
14969
15154
  /**
14970
15155
  * Lifecycle method that runs when the component is about to load.
@@ -14979,7 +15164,7 @@ class EdsUser {
14979
15164
  }
14980
15165
  this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
14981
15166
  if (!this.serverAvailable) {
14982
- //toast.show('Keycloak server is unavailable.', 'error');
15167
+ toast.show('Keycloak server is unavailable.', 'error');
14983
15168
  return; // Do not proceed further
14984
15169
  }
14985
15170
  await this.initAuth();
@@ -14991,35 +15176,27 @@ class EdsUser {
14991
15176
  */
14992
15177
  async initAuth() {
14993
15178
  try {
14994
- const keycloakConfig = {
15179
+ await initKeycloak({
14995
15180
  url: this.keycloakUrl,
14996
15181
  realm: this.keycloakRealm,
14997
15182
  clientId: this.keycloakClientId
14998
- };
14999
- await initKeycloak(keycloakConfig, true);
15000
- // Set authentication state and fetch user data if authenticated
15001
- //this.authenticated = isAuthenticated();
15183
+ }, true);
15002
15184
  if (isAuthenticated()) {
15003
15185
  this.user = getUser();
15004
15186
  this.authenticated = true;
15187
+ this.authStatusChanged.emit({
15188
+ authenticated: this.authenticated,
15189
+ user: this.user
15190
+ }); // Emit auth status change
15005
15191
  }
15006
- this.authStatusChanged.emit({
15007
- authenticated: this.authenticated,
15008
- user: this.user
15009
- }); // Emit auth status change
15010
15192
  }
15011
15193
  catch (error) {
15012
- // eslint-disable-next-line
15013
- console.error('Keycloak initialization failed:', error);
15194
+ toast.show(error.message, 'error');
15014
15195
  }
15015
15196
  }
15016
15197
  render() {
15017
15198
  var _a;
15018
- // If the server is unavailable, render null
15019
- if (!this.serverAvailable) {
15020
- return null;
15021
- }
15022
- 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) }))))));
15199
+ 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) }))))));
15023
15200
  }
15024
15201
  get hostEl() { return getElement(this); }
15025
15202
  static get cmpMeta() { return {
@@ -15031,8 +15208,8 @@ class EdsUser {
15031
15208
  "keycloakClientId": [1, "keycloak-client-id"],
15032
15209
  "user": [32],
15033
15210
  "authenticated": [32],
15034
- "serverAvailable": [32],
15035
- "username": [32]
15211
+ "username": [32],
15212
+ "serverAvailable": [32]
15036
15213
  },
15037
15214
  "$listeners$": undefined,
15038
15215
  "$lazyBundleId$": "-",
@@ -15072,7 +15249,7 @@ class EdsUserModal {
15072
15249
  }
15073
15250
  render() {
15074
15251
  var _a, _b, _c, _d, _e;
15075
- 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() })))));
15252
+ 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() })))));
15076
15253
  }
15077
15254
  static get watchers() { return {
15078
15255
  "user": ["parseUserProp"],
@@ -15094,6 +15271,55 @@ class EdsUserModal {
15094
15271
  }; }
15095
15272
  }
15096
15273
 
15274
+ 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}";
15275
+ var EdsVerticalStepperStyle0 = edsVerticalStepperCss;
15276
+
15277
+ class EdsVerticalStepper {
15278
+ constructor(hostRef) {
15279
+ registerInstance(this, hostRef);
15280
+ this.handleNext = () => {
15281
+ if (this.activeStep < this.parsedSteps.length) {
15282
+ this.activeStep = this.activeStep + 1;
15283
+ }
15284
+ };
15285
+ this.handleBack = () => {
15286
+ if (this.activeStep > 0) {
15287
+ this.activeStep = this.activeStep - 1;
15288
+ }
15289
+ };
15290
+ this.handleReset = () => {
15291
+ this.activeStep = 0;
15292
+ };
15293
+ this.steps = '[]';
15294
+ this.activeStep = 0;
15295
+ }
15296
+ get parsedSteps() {
15297
+ try {
15298
+ return JSON.parse(this.steps);
15299
+ }
15300
+ catch (error) {
15301
+ //console.error('Invalid steps JSON', error);
15302
+ return [];
15303
+ }
15304
+ }
15305
+ render() {
15306
+ const steps = this.parsedSteps;
15307
+ 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" })))));
15308
+ }
15309
+ static get style() { return EdsVerticalStepperStyle0; }
15310
+ static get cmpMeta() { return {
15311
+ "$flags$": 9,
15312
+ "$tagName$": "eds-vertical-stepper",
15313
+ "$members$": {
15314
+ "steps": [1],
15315
+ "activeStep": [32]
15316
+ },
15317
+ "$listeners$": undefined,
15318
+ "$lazyBundleId$": "-",
15319
+ "$attrsToReflect$": []
15320
+ }; }
15321
+ }
15322
+
15097
15323
  /**
15098
15324
  * @internal
15099
15325
  */
@@ -15129,7 +15355,7 @@ class GradientPrimaryPalette {
15129
15355
  ];
15130
15356
  }
15131
15357
  render() {
15132
- return (hAsync("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
15358
+ return (hAsync("ul", { key: '783eb92c379de99659e65e7cb02a1f0ca9df8758', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
15133
15359
  background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
15134
15360
  } }, 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))))))));
15135
15361
  }
@@ -15202,19 +15428,19 @@ class GradientSecondaryPalette {
15202
15428
  ];
15203
15429
  }
15204
15430
  render() {
15205
- 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: {
15431
+ 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: {
15206
15432
  background: this.colors[0].background
15207
- } }, 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: {
15433
+ } }, 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: {
15208
15434
  background: this.colors[1].background
15209
- } }, 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: {
15435
+ } }, 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: {
15210
15436
  background: this.colors[2].background
15211
- } }, 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: {
15437
+ } }, 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: {
15212
15438
  background: this.colors[3].background
15213
- } }, 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: {
15439
+ } }, 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: {
15214
15440
  background: this.colors[4].background
15215
- } }, 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: {
15441
+ } }, 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: {
15216
15442
  background: this.colors[5].background
15217
- } }, 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)))))));
15443
+ } }, 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)))))));
15218
15444
  }
15219
15445
  static get cmpMeta() { return {
15220
15446
  "$flags$": 0,
@@ -15277,11 +15503,11 @@ class GradientSupportPalette {
15277
15503
  ];
15278
15504
  }
15279
15505
  render() {
15280
- 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: {
15506
+ 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: {
15281
15507
  background: this.colors[2].background
15282
- } }, 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: {
15508
+ } }, 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: {
15283
15509
  background: this.colors[3].background
15284
- } }, 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'))))));
15510
+ } }, 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'))))));
15285
15511
  }
15286
15512
  static get cmpMeta() { return {
15287
15513
  "$flags$": 0,
@@ -15335,7 +15561,7 @@ class IncorrectUseOfColors {
15335
15561
  registerInstance(this, hostRef);
15336
15562
  }
15337
15563
  render() {
15338
- 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 } })))))))));
15564
+ 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 } })))))))));
15339
15565
  }
15340
15566
  static get cmpMeta() { return {
15341
15567
  "$flags$": 0,
@@ -15358,7 +15584,7 @@ class LogoSpace {
15358
15584
  registerInstance(this, hostRef);
15359
15585
  }
15360
15586
  render() {
15361
- 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 })))));
15587
+ 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 })))));
15362
15588
  }
15363
15589
  static get style() { return LogoSpaceStyle0; }
15364
15590
  static get cmpMeta() { return {
@@ -15382,7 +15608,7 @@ class LogoVariationsHorizontal {
15382
15608
  registerInstance(this, hostRef);
15383
15609
  }
15384
15610
  render() {
15385
- 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: "#" })))));
15611
+ 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: "#" })))));
15386
15612
  }
15387
15613
  static get style() { return LogoVariationsHorizontalStyle0; }
15388
15614
  static get cmpMeta() { return {
@@ -15408,7 +15634,7 @@ class LogoVariationsVertical {
15408
15634
  this.type = undefined;
15409
15635
  }
15410
15636
  render() {
15411
- 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: "#" })))));
15637
+ 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: "#" })))));
15412
15638
  }
15413
15639
  static get style() { return LogoVariationsVerticalStyle0; }
15414
15640
  static get cmpMeta() { return {
@@ -15435,7 +15661,7 @@ class LogoWrongUsage {
15435
15661
  registerInstance(this, hostRef);
15436
15662
  }
15437
15663
  render() {
15438
- 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")))));
15664
+ 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")))));
15439
15665
  }
15440
15666
  static get style() { return LogoWrongUsageStyle0; }
15441
15667
  static get cmpMeta() { return {
@@ -15691,7 +15917,7 @@ class TokenList {
15691
15917
  render() {
15692
15918
  // Check if `show` prop is provided; if not, display all sections
15693
15919
  const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
15694
- return (hAsync("section", { key: 'ac8573b341ad313eba0f9f082dcc72cfc81208b3', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
15920
+ return (hAsync("section", { key: '43d7e8b3192d4a2d596ca99a4dce072ea7387924', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
15695
15921
  // Only render sections that exist in `colors`
15696
15922
  sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
15697
15923
  }
@@ -15724,7 +15950,7 @@ class TokenRadii {
15724
15950
  registerInstance(this, hostRef);
15725
15951
  }
15726
15952
  render() {
15727
- 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" }))))))));
15953
+ 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" }))))))));
15728
15954
  }
15729
15955
  static get cmpMeta() { return {
15730
15956
  "$flags$": 0,
@@ -15753,7 +15979,7 @@ class TokenRatios {
15753
15979
  registerInstance(this, hostRef);
15754
15980
  }
15755
15981
  render() {
15756
- 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: {
15982
+ 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: {
15757
15983
  aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
15758
15984
  width: '100%', // Full width to show the aspect ratio correctly
15759
15985
  maxWidth: '300px'
@@ -15795,7 +16021,7 @@ class TokenShadows {
15795
16021
  registerInstance(this, hostRef);
15796
16022
  }
15797
16023
  render() {
15798
- 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]" })))))))));
16024
+ 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]" })))))))));
15799
16025
  }
15800
16026
  static get cmpMeta() { return {
15801
16027
  "$flags$": 0,
@@ -15815,7 +16041,7 @@ class TokenSpacing {
15815
16041
  registerInstance(this, hostRef);
15816
16042
  }
15817
16043
  render() {
15818
- 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")))))));
16044
+ 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")))))));
15819
16045
  }
15820
16046
  static get cmpMeta() { return {
15821
16047
  "$flags$": 0,
@@ -16033,7 +16259,7 @@ class TokenTypography {
16033
16259
  registerInstance(this, hostRef);
16034
16260
  }
16035
16261
  render() {
16036
- 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)
16262
+ 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)
16037
16263
  .filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
16038
16264
  .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: {
16039
16265
  fontFamily: typography.families.sans,
@@ -16134,7 +16360,9 @@ registerComponents([
16134
16360
  EdsSectionCore,
16135
16361
  EdsSectionHeading,
16136
16362
  EdsSocialNetworks,
16363
+ EdsSteps,
16137
16364
  EdsSvgRepository,
16365
+ EdsSwitch,
16138
16366
  EdsTab,
16139
16367
  EdsTable,
16140
16368
  EdsTabs,
@@ -16147,6 +16375,7 @@ registerComponents([
16147
16375
  EdsTrl,
16148
16376
  EdsUser,
16149
16377
  EdsUserModal,
16378
+ EdsVerticalStepper,
16150
16379
  GradientPrimaryPalette,
16151
16380
  GradientSecondaryPalette,
16152
16381
  GradientSupportPalette,