@ebrains/components 0.8.0-alpha.0 → 0.9.1-beta

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 (587) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -366
  3. package/dist/cjs/bookmark-c61853d9.js +18 -0
  4. package/dist/cjs/color-primary-palette_6.cjs.entry.js +44 -31
  5. package/dist/cjs/{eds-components-section.cjs.entry.js → components-section.cjs.entry.js} +22 -17
  6. package/dist/cjs/components.cjs.js +1 -1
  7. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  8. package/dist/cjs/{eds-docs-palettes.cjs.entry.js → docs-palettes.cjs.entry.js} +3 -3
  9. package/dist/cjs/{eds-docs-tokens.cjs.entry.js → docs-tokens.cjs.entry.js} +3 -3
  10. package/dist/cjs/eds-accordion.cjs.entry.js +86 -0
  11. package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
  12. package/dist/cjs/{eds-accordion_17.cjs.entry.js → eds-avatar_26.cjs.entry.js} +1031 -218
  13. package/dist/cjs/{eds-card-desc_3.cjs.entry.js → eds-card-desc_2.cjs.entry.js} +0 -35
  14. package/dist/cjs/eds-card-generic.cjs.entry.js +2 -2
  15. package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
  17. package/dist/cjs/eds-frame.cjs.entry.js +5 -11
  18. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +18 -0
  20. package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
  21. package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-external.cjs.entry.js +18 -0
  24. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  28. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  30. package/dist/cjs/eds-icon-minus.cjs.entry.js +18 -0
  31. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  32. package/dist/cjs/eds-icon-paper.cjs.entry.js +18 -0
  33. package/dist/cjs/eds-icon-plus.cjs.entry.js +18 -0
  34. package/dist/cjs/eds-icon-portal.cjs.entry.js +18 -0
  35. package/dist/cjs/eds-icon-private.cjs.entry.js +18 -0
  36. package/dist/cjs/eds-icon-public.cjs.entry.js +18 -0
  37. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  40. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
  42. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +18 -0
  43. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-icon-unknown.cjs.entry.js +18 -0
  45. package/dist/cjs/eds-icon-updown.cjs.entry.js +18 -0
  46. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  48. package/dist/cjs/eds-login_2.cjs.entry.js +23 -14
  49. package/dist/cjs/eds-matomo-notice.cjs.entry.js +123 -0
  50. package/dist/cjs/eds-modal.cjs.entry.js +9 -9
  51. package/dist/cjs/eds-pagination_2.cjs.entry.js +5 -5
  52. package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-rating.cjs.entry.js +1 -1
  54. package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
  55. package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
  56. package/dist/cjs/eds-switch.cjs.entry.js +4 -4
  57. package/dist/cjs/eds-tabs.cjs.entry.js +5 -5
  58. package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
  59. package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
  60. package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
  61. package/dist/cjs/eds-trl.cjs.entry.js +1 -1
  62. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  63. package/dist/cjs/index-2f63169d.js +76 -40
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/logo-space.cjs.entry.js +2 -2
  66. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +4 -4
  67. package/dist/cjs/{eds-logo-variations.cjs.entry.js → logo-variations-tabs.cjs.entry.js} +3 -3
  68. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  69. package/dist/cjs/minus-1da6a98a.js +13 -0
  70. package/dist/cjs/paper-0d6302f6.js +17 -0
  71. package/dist/cjs/plus-d0e00ad0.js +14 -0
  72. package/dist/cjs/portal-46212559.js +20 -0
  73. package/dist/cjs/private-38835fe7.js +27 -0
  74. package/dist/cjs/public-b519b1f6.js +18 -0
  75. package/dist/cjs/{eds-svg-repository.cjs.entry.js → svg-repository.cjs.entry.js} +30 -29
  76. package/dist/cjs/token-list_3.cjs.entry.js +5 -5
  77. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  78. package/dist/cjs/token-typography.cjs.entry.js +3 -3
  79. package/dist/cjs/tutotial-7855df3c.js +29 -0
  80. package/dist/cjs/unknown-6814e551.js +24 -0
  81. package/dist/cjs/up-and-down-d71df67d.js +14 -0
  82. package/dist/collection/collection-manifest.json +16 -5
  83. package/dist/collection/components/eds-accordion/eds-accordion.css +6 -4
  84. package/dist/collection/components/eds-accordion/eds-accordion.js +5 -5
  85. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +1 -1
  86. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +8 -1
  87. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +5 -0
  88. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
  89. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +36 -0
  90. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  91. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  92. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  93. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +36 -0
  94. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  95. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  96. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  97. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +36 -0
  98. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  99. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +36 -0
  100. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +36 -0
  101. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +36 -0
  102. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +36 -0
  103. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +36 -0
  104. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  105. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  106. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  107. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  108. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  109. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +36 -0
  110. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +36 -0
  111. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +36 -0
  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 +2 -2
  120. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -21
  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 +59 -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 +4 -1
  126. package/dist/collection/components/eds-input-field/eds-input-field.js +37 -5
  127. package/dist/collection/components/eds-input-field/eds-input-field.stories.js +1 -0
  128. package/dist/collection/components/eds-link/eds-link.css +18 -6
  129. package/dist/collection/components/eds-link/eds-link.js +17 -9
  130. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  131. package/dist/collection/components/eds-modal/eds-modal.css +32 -1
  132. package/dist/collection/components/eds-modal/eds-modal.js +9 -9
  133. package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
  134. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  135. package/dist/collection/components/eds-rating/eds-rating.js +1 -1
  136. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  137. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +5 -2
  138. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  139. package/dist/collection/components/eds-switch/eds-switch.js +5 -5
  140. package/dist/collection/components/eds-table/eds-table.js +4 -4
  141. package/dist/collection/components/eds-tag/eds-tag.css +45 -0
  142. package/dist/collection/components/eds-tag/eds-tag.js +31 -5
  143. package/dist/collection/components/eds-tag/eds-tag.stories.js +11 -4
  144. package/dist/collection/components/eds-timeline/eds-timeline.css +51 -13
  145. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  146. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  147. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  148. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  149. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  150. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +31 -18
  151. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  152. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  153. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  154. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  155. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  156. package/dist/collection/eds-docs-ui/{eds-components-section/eds-components-section.js → components-section/components-section.js} +13 -13
  157. package/dist/collection/eds-docs-ui/components-section/functional/angular.js +2 -0
  158. package/dist/collection/eds-docs-ui/components-section/functional/installation.js +2 -0
  159. package/dist/collection/eds-docs-ui/{functional → components-section/functional}/overview.js +2 -2
  160. package/dist/collection/eds-docs-ui/components-section/functional/react.js +2 -0
  161. package/dist/collection/eds-docs-ui/components-section/functional/usage.js +2 -0
  162. package/dist/collection/eds-docs-ui/components-section/functional/vue.js +2 -0
  163. package/dist/collection/eds-docs-ui/{eds-docs-tokens/eds-docs-tokens.js → design-tokens/docs-tokens/docs-tokens.js} +3 -3
  164. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +3 -3
  165. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  166. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  167. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  168. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  169. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +3 -3
  170. package/dist/collection/eds-docs-ui/{eds-docs-palettes/eds-docs-palettes.js → docs-palettes/docs-palettes.js} +3 -3
  171. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +144 -43
  172. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  173. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +149 -68
  174. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  175. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +158 -53
  176. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  177. package/dist/collection/eds-docs-ui/{eds-logo-variations/eds-logo-variations.js → logo/logo-variations-tabs/logo-variations.js} +3 -3
  178. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +199 -169
  179. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  180. package/dist/collection/eds-docs-ui/{eds-svg-repository/eds-svg-repository.js → svg-repository/svg-repository.js} +5 -5
  181. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  182. package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +8 -0
  183. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
  184. package/dist/collection/shared-ui/eds-footer/eds-footer.js +2 -2
  185. package/dist/collection/shared-ui/eds-form/eds-form.js +46 -11
  186. package/dist/collection/shared-ui/eds-frame/eds-frame.js +28 -31
  187. package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +12 -12
  188. package/dist/collection/shared-ui/eds-header/eds-header.js +2 -2
  189. package/dist/collection/shared-ui/eds-login/eds-login.js +4 -1
  190. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +3 -3
  191. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +3 -3
  192. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +25 -13
  193. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +51 -13
  194. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +5 -5
  195. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  196. package/dist/collection/shared-ui/eds-user/eds-user.css +51 -13
  197. package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
  198. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  199. package/dist/collection/utils/eds-form/formUtils.js +4 -34
  200. package/dist/components/bookmark.js +16 -0
  201. package/dist/components/{eds-logo-variations.d.ts → components-section.d.ts} +4 -4
  202. package/dist/components/{eds-components-section.js → components-section.js} +27 -22
  203. package/dist/components/components.css +51 -13
  204. package/dist/components/components.esm.js +1 -1
  205. package/dist/components/correct-use-of-colors.js +1 -1
  206. package/dist/components/{eds-svg-repository.d.ts → docs-palettes.d.ts} +4 -4
  207. package/dist/components/{eds-docs-palettes.js → docs-palettes.js} +8 -8
  208. package/dist/components/docs-tokens.d.ts +11 -0
  209. package/dist/components/{eds-docs-tokens.js → docs-tokens.js} +8 -8
  210. package/dist/components/eds-accordion2.js +6 -6
  211. package/dist/components/eds-app-root.js +1 -1
  212. package/dist/components/eds-breadcrumb.js +8 -1
  213. package/dist/components/eds-card-generic2.js +2 -2
  214. package/dist/components/eds-cookies-preference.js +1 -1
  215. package/dist/components/eds-feedback.js +2 -2
  216. package/dist/components/eds-footer2.js +2 -2
  217. package/dist/components/eds-form.js +50 -45
  218. package/dist/components/eds-frame.js +7 -13
  219. package/dist/components/eds-header.js +2 -2
  220. package/dist/components/eds-icon-bluesky.js +1 -1
  221. package/dist/components/{eds-docs-palettes.d.ts → eds-icon-bookmark.d.ts} +4 -4
  222. package/dist/components/eds-icon-bookmark.js +33 -0
  223. package/dist/components/eds-icon-close.js +1 -1
  224. package/dist/components/eds-icon-copy.js +1 -1
  225. package/dist/components/eds-icon-eu.js +1 -1
  226. package/dist/components/eds-icon-external.d.ts +11 -0
  227. package/dist/components/eds-icon-external.js +33 -0
  228. package/dist/components/eds-icon-facebook.js +1 -1
  229. package/dist/components/eds-icon-gitlab.js +1 -1
  230. package/dist/components/eds-icon-linkedin.js +1 -1
  231. package/dist/components/eds-icon-loader.js +1 -1
  232. package/dist/components/eds-icon-mastodon.js +1 -1
  233. package/dist/components/eds-icon-menu.js +1 -1
  234. package/dist/components/eds-icon-minus.d.ts +11 -0
  235. package/dist/components/eds-icon-minus.js +33 -0
  236. package/dist/components/eds-icon-more.js +1 -1
  237. package/dist/components/eds-icon-paper.d.ts +11 -0
  238. package/dist/components/eds-icon-paper.js +33 -0
  239. package/dist/components/eds-icon-plus.d.ts +11 -0
  240. package/dist/components/eds-icon-plus.js +33 -0
  241. package/dist/components/{eds-docs-tokens.d.ts → eds-icon-portal.d.ts} +4 -4
  242. package/dist/components/eds-icon-portal.js +33 -0
  243. package/dist/components/eds-icon-private.d.ts +11 -0
  244. package/dist/components/eds-icon-private.js +33 -0
  245. package/dist/components/eds-icon-public.d.ts +11 -0
  246. package/dist/components/eds-icon-public.js +33 -0
  247. package/dist/components/eds-icon-search.js +1 -1
  248. package/dist/components/eds-icon-star.js +1 -1
  249. package/dist/components/eds-icon-success.js +1 -1
  250. package/dist/components/eds-icon-thumbs-down.js +1 -1
  251. package/dist/components/eds-icon-thumbs-up.js +1 -1
  252. package/dist/components/eds-icon-tutorial.d.ts +11 -0
  253. package/dist/components/eds-icon-tutorial.js +33 -0
  254. package/dist/components/eds-icon-twitter.js +1 -1
  255. package/dist/components/eds-icon-unknown.d.ts +11 -0
  256. package/dist/components/eds-icon-unknown.js +33 -0
  257. package/dist/components/eds-icon-updown.d.ts +11 -0
  258. package/dist/components/eds-icon-updown.js +33 -0
  259. package/dist/components/eds-icon-user.js +1 -1
  260. package/dist/components/eds-icon-youtube.js +1 -1
  261. package/dist/components/eds-img2.js +2 -2
  262. package/dist/components/eds-input-field2.js +37 -5
  263. package/dist/components/eds-input-footer2.js +1 -1
  264. package/dist/components/eds-input-label2.js +1 -1
  265. package/dist/components/eds-input-range2.js +26 -3
  266. package/dist/components/eds-input-search2.js +1 -1
  267. package/dist/components/eds-input-select2.js +4 -1
  268. package/dist/components/eds-input2.js +3 -5
  269. package/dist/components/eds-link2.js +18 -10
  270. package/dist/components/eds-login2.js +1 -1
  271. package/dist/components/eds-logo2.js +1 -1
  272. package/dist/components/eds-matomo-notice2.js +3 -3
  273. package/dist/components/eds-modal.js +10 -10
  274. package/dist/components/eds-pagination2.js +1 -1
  275. package/dist/components/eds-progress-bar2.js +1 -1
  276. package/dist/components/eds-rating2.js +1 -1
  277. package/dist/components/eds-section-core2.js +1 -1
  278. package/dist/components/eds-section-heading2.js +2 -2
  279. package/dist/components/eds-social-networks2.js +3 -3
  280. package/dist/components/eds-spinner2.js +1 -1
  281. package/dist/components/eds-splash-screen2.js +25 -14
  282. package/dist/components/eds-switch.js +4 -4
  283. package/dist/components/eds-table2.js +4 -4
  284. package/dist/components/eds-tabs.js +6 -6
  285. package/dist/components/eds-tag2.js +15 -6
  286. package/dist/components/eds-timeline.js +2 -2
  287. package/dist/components/eds-toast-manager.js +1 -1
  288. package/dist/components/eds-tooltip.js +1 -1
  289. package/dist/components/eds-trl.js +1 -1
  290. package/dist/components/eds-user.js +12 -18
  291. package/dist/components/incorrect-use-of-colors.js +1 -1
  292. package/dist/components/logo-space.js +69 -3
  293. package/dist/components/logo-variations-horizontal2.js +2 -2
  294. package/dist/components/logo-variations-tabs.d.ts +11 -0
  295. package/dist/components/{eds-logo-variations.js → logo-variations-tabs.js} +8 -8
  296. package/dist/components/logo-variations-vertical2.js +2 -2
  297. package/dist/components/logo-wrong-usage.js +2 -2
  298. package/dist/components/minus.js +11 -0
  299. package/dist/components/p-024c7937.js +1 -0
  300. package/dist/components/p-0467ceb5.entry.js +1 -0
  301. package/dist/components/p-05754401.js +1 -0
  302. package/dist/components/p-063b0683.entry.js +1 -0
  303. package/dist/components/p-0ce924b1.entry.js +1 -0
  304. package/dist/components/{p-07ba7c89.entry.js → p-1309a74c.entry.js} +1 -1
  305. package/dist/components/p-18eb23ff.entry.js +1 -0
  306. package/dist/components/p-1aab55cf.entry.js +1 -0
  307. package/dist/components/p-1b2913c8.js +1 -0
  308. package/dist/components/p-20b3a999.entry.js +1 -0
  309. package/dist/components/p-20e9ae7f.entry.js +1 -0
  310. package/dist/components/p-29e807f5.entry.js +1 -0
  311. package/dist/components/{p-d17ea8af.entry.js → p-2c1be2bb.entry.js} +1 -1
  312. package/dist/components/p-35ed7ebf.entry.js +1 -0
  313. package/dist/components/p-3932d0af.entry.js +1 -0
  314. package/dist/components/{p-4d295eb7.entry.js → p-3a7be9a7.entry.js} +1 -1
  315. package/dist/components/p-3af94671.entry.js +1 -0
  316. package/dist/components/p-41e89554.entry.js +1 -0
  317. package/dist/components/p-435a8942.entry.js +1 -0
  318. package/dist/components/p-4620ebf5.entry.js +1 -0
  319. package/dist/components/p-4c7852f8.entry.js +1 -0
  320. package/dist/components/p-4e8a317b.entry.js +1 -0
  321. package/dist/components/{p-0f73391d.entry.js → p-526cdc57.entry.js} +1 -1
  322. package/dist/components/p-52913e2e.entry.js +1 -0
  323. package/dist/components/p-6404e157.entry.js +1 -0
  324. package/dist/components/p-66bb44c9.entry.js +1 -0
  325. package/dist/components/p-694fc085.js +1 -0
  326. package/dist/components/p-6dc26e53.entry.js +1 -0
  327. package/dist/components/p-7198c024.js +1 -0
  328. package/dist/components/p-78fa7132.entry.js +1 -0
  329. package/dist/components/p-7dce734a.entry.js +1 -0
  330. package/dist/components/{p-01cb7ceb.entry.js → p-7fa88255.entry.js} +1 -1
  331. package/dist/components/p-83936521.entry.js +1 -0
  332. package/dist/components/p-8653bc36.entry.js +1 -0
  333. package/dist/components/p-86bb73dc.js +1 -0
  334. package/dist/components/p-8e3c6c63.entry.js +1 -0
  335. package/dist/components/p-923f67b5.entry.js +1 -0
  336. package/dist/components/p-93093977.entry.js +1 -0
  337. package/dist/components/{p-a02c5c4a.entry.js → p-941240b5.entry.js} +1 -1
  338. package/dist/components/{p-abaf04e1.entry.js → p-94b1f974.entry.js} +1 -1
  339. package/dist/components/p-97e95520.entry.js +1 -0
  340. package/dist/components/{p-4df00ba5.entry.js → p-9a1a6df1.entry.js} +1 -1
  341. package/dist/components/p-9dc879c9.entry.js +1 -0
  342. package/dist/components/p-a56f0579.entry.js +1 -0
  343. package/dist/components/p-a8b0fe92.entry.js +1 -0
  344. package/dist/components/p-acc4d234.entry.js +1 -0
  345. package/dist/components/p-b0b37831.entry.js +1 -0
  346. package/dist/components/p-b2b46793.entry.js +1 -0
  347. package/dist/components/p-b73410de.js +1 -0
  348. package/dist/components/p-b76aa402.entry.js +1 -0
  349. package/dist/components/p-b931a634.entry.js +1 -0
  350. package/dist/components/p-b96fc468.entry.js +1 -0
  351. package/dist/components/p-bab07ba6.entry.js +1 -0
  352. package/dist/components/p-c1e4ef92.js +1 -0
  353. package/dist/components/{p-9cbcccf8.entry.js → p-c5c782e7.entry.js} +1 -1
  354. package/dist/components/p-c8abff96.entry.js +1 -0
  355. package/dist/components/{p-24507e71.entry.js → p-c935aa46.entry.js} +1 -1
  356. package/dist/components/p-c99745a8.entry.js +1 -0
  357. package/dist/components/p-cccff1e3.entry.js +1 -0
  358. package/dist/components/p-cd624044.entry.js +1 -0
  359. package/dist/components/p-cdf19579.js +1 -0
  360. package/dist/components/{p-7ba154c5.entry.js → p-d525ed36.entry.js} +1 -1
  361. package/dist/components/p-d94a44b9.entry.js +1 -0
  362. package/dist/components/p-d962849c.js +1 -0
  363. package/dist/components/p-dbcf1f0e.entry.js +1 -0
  364. package/dist/components/p-dcc08064.entry.js +1 -0
  365. package/dist/components/p-e42eb100.entry.js +1 -0
  366. package/dist/components/{p-f2e66c82.entry.js → p-e64cd6f7.entry.js} +1 -1
  367. package/dist/components/{p-5cf480a8.entry.js → p-e710c860.entry.js} +1 -1
  368. package/dist/components/p-ea089f4e.entry.js +1 -0
  369. package/dist/components/p-eebf7ebf.entry.js +1 -0
  370. package/dist/components/p-efc73304.entry.js +1 -0
  371. package/dist/components/p-f13e9ab1.entry.js +1 -0
  372. package/dist/components/p-f48a4313.entry.js +1 -0
  373. package/dist/components/p-f4ce515a.entry.js +1 -0
  374. package/dist/components/{p-f223a835.entry.js → p-ff7acb55.entry.js} +1 -1
  375. package/dist/components/paper.js +15 -0
  376. package/dist/components/plus.js +12 -0
  377. package/dist/components/portal.js +18 -0
  378. package/dist/components/primary.js +1 -1
  379. package/dist/components/primary2.js +1 -1
  380. package/dist/components/private.js +25 -0
  381. package/dist/components/public.js +16 -0
  382. package/dist/components/secondary.js +1 -1
  383. package/dist/components/secondary2.js +7 -7
  384. package/dist/components/support.js +31 -18
  385. package/dist/components/support2.js +3 -3
  386. package/dist/components/svg-repository.d.ts +11 -0
  387. package/dist/components/{eds-svg-repository.js → svg-repository.js} +34 -33
  388. package/dist/components/token-list2.js +3 -3
  389. package/dist/components/token-radii2.js +1 -1
  390. package/dist/components/token-ratios.js +1 -1
  391. package/dist/components/token-shadows2.js +1 -1
  392. package/dist/components/token-spacing.js +1 -1
  393. package/dist/components/token-typography.js +3 -3
  394. package/dist/components/tutotial.js +27 -0
  395. package/dist/components/unknown.js +22 -0
  396. package/dist/components/up-and-down.js +12 -0
  397. package/dist/esm/bookmark-c200037c.js +16 -0
  398. package/dist/esm/color-primary-palette_6.entry.js +44 -31
  399. package/dist/esm/{eds-components-section.entry.js → components-section.entry.js} +22 -17
  400. package/dist/esm/components.js +1 -1
  401. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  402. package/dist/esm/{eds-docs-palettes.entry.js → docs-palettes.entry.js} +3 -3
  403. package/dist/esm/{eds-docs-tokens.entry.js → docs-tokens.entry.js} +3 -3
  404. package/dist/esm/eds-accordion.entry.js +82 -0
  405. package/dist/esm/eds-app-root.entry.js +1 -1
  406. package/dist/esm/{eds-accordion_17.entry.js → eds-avatar_26.entry.js} +1022 -218
  407. package/dist/esm/{eds-card-desc_3.entry.js → eds-card-desc_2.entry.js} +1 -35
  408. package/dist/esm/eds-card-generic.entry.js +2 -2
  409. package/dist/esm/eds-cookies-preference.entry.js +1 -1
  410. package/dist/esm/eds-feedback.entry.js +2 -2
  411. package/dist/esm/eds-frame.entry.js +5 -11
  412. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  413. package/dist/esm/eds-icon-bookmark.entry.js +14 -0
  414. package/dist/esm/eds-icon-close.entry.js +1 -1
  415. package/dist/esm/eds-icon-copy.entry.js +1 -1
  416. package/dist/esm/eds-icon-eu.entry.js +1 -1
  417. package/dist/esm/eds-icon-external.entry.js +14 -0
  418. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  419. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  420. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  421. package/dist/esm/eds-icon-loader.entry.js +1 -1
  422. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  423. package/dist/esm/eds-icon-menu.entry.js +1 -1
  424. package/dist/esm/eds-icon-minus.entry.js +14 -0
  425. package/dist/esm/eds-icon-more.entry.js +1 -1
  426. package/dist/esm/eds-icon-paper.entry.js +14 -0
  427. package/dist/esm/eds-icon-plus.entry.js +14 -0
  428. package/dist/esm/eds-icon-portal.entry.js +14 -0
  429. package/dist/esm/eds-icon-private.entry.js +14 -0
  430. package/dist/esm/eds-icon-public.entry.js +14 -0
  431. package/dist/esm/eds-icon-search.entry.js +1 -1
  432. package/dist/esm/eds-icon-star.entry.js +1 -1
  433. package/dist/esm/eds-icon-success.entry.js +1 -1
  434. package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
  435. package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
  436. package/dist/esm/eds-icon-tutorial.entry.js +14 -0
  437. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  438. package/dist/esm/eds-icon-unknown.entry.js +14 -0
  439. package/dist/esm/eds-icon-updown.entry.js +14 -0
  440. package/dist/esm/eds-icon-user.entry.js +1 -1
  441. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  442. package/dist/esm/eds-login_2.entry.js +23 -14
  443. package/dist/esm/eds-matomo-notice.entry.js +119 -0
  444. package/dist/esm/eds-modal.entry.js +9 -9
  445. package/dist/esm/eds-pagination_2.entry.js +5 -5
  446. package/dist/esm/eds-progress-bar.entry.js +1 -1
  447. package/dist/esm/eds-rating.entry.js +1 -1
  448. package/dist/esm/eds-section-core_2.entry.js +3 -3
  449. package/dist/esm/eds-spinner.entry.js +1 -1
  450. package/dist/esm/eds-switch.entry.js +4 -4
  451. package/dist/esm/eds-tabs.entry.js +5 -5
  452. package/dist/esm/eds-timeline.entry.js +2 -2
  453. package/dist/esm/eds-toast-manager.entry.js +1 -1
  454. package/dist/esm/eds-tooltip.entry.js +1 -1
  455. package/dist/esm/eds-trl.entry.js +1 -1
  456. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  457. package/dist/esm/index-8a71b9a7.js +76 -40
  458. package/dist/esm/loader.js +1 -1
  459. package/dist/esm/logo-space.entry.js +2 -2
  460. package/dist/esm/logo-variations-horizontal_2.entry.js +4 -4
  461. package/dist/esm/{eds-logo-variations.entry.js → logo-variations-tabs.entry.js} +3 -3
  462. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  463. package/dist/esm/minus-b30a7c71.js +11 -0
  464. package/dist/esm/paper-8e74ea31.js +15 -0
  465. package/dist/esm/plus-89c07be2.js +12 -0
  466. package/dist/esm/portal-d6c8ce56.js +18 -0
  467. package/dist/esm/private-1c25ff8e.js +25 -0
  468. package/dist/esm/public-d4d8c585.js +16 -0
  469. package/dist/esm/{eds-svg-repository.entry.js → svg-repository.entry.js} +29 -28
  470. package/dist/esm/token-list_3.entry.js +5 -5
  471. package/dist/esm/token-ratios.entry.js +1 -1
  472. package/dist/esm/token-typography.entry.js +3 -3
  473. package/dist/esm/tutotial-150ee1fd.js +27 -0
  474. package/dist/esm/unknown-ed01a24c.js +22 -0
  475. package/dist/esm/up-and-down-d747abee.js +12 -0
  476. package/dist/hydrate/index.js +1163 -631
  477. package/dist/hydrate/index.mjs +1163 -631
  478. package/dist/stencil.config.js +17 -2
  479. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +11 -1
  480. package/dist/types/components/eds-accordion/eds-accordion.d.ts +1 -1
  481. package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +1 -1
  482. package/dist/types/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.d.ts +10 -0
  483. package/dist/types/components/eds-icons/eds-icon-external/eds-icon-external.d.ts +10 -0
  484. package/dist/types/components/eds-icons/eds-icon-minus/eds-icon-minus.d.ts +10 -0
  485. package/dist/types/components/eds-icons/eds-icon-paper/eds-icon-paper.d.ts +10 -0
  486. package/dist/types/components/eds-icons/eds-icon-plus/eds-icon-plus.d.ts +10 -0
  487. package/dist/types/components/eds-icons/eds-icon-portal/eds-icon-portal.d.ts +10 -0
  488. package/dist/types/components/eds-icons/eds-icon-private/eds-icon-private.d.ts +10 -0
  489. package/dist/types/components/eds-icons/eds-icon-public/eds-icon-public.d.ts +10 -0
  490. package/dist/types/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.d.ts +10 -0
  491. package/dist/types/components/eds-icons/eds-icon-unknown/eds-icon-unknown.d.ts +10 -0
  492. package/dist/types/components/eds-icons/eds-icon-updown/eds-icon-updown.d.ts +10 -0
  493. package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +0 -2
  494. package/dist/types/components/eds-input-elements/eds-input-range/eds-input-range.d.ts +12 -0
  495. package/dist/types/components/eds-input-field/eds-input-field.d.ts +3 -0
  496. package/dist/types/components/eds-modal/eds-modal.d.ts +1 -1
  497. package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +3 -0
  498. package/dist/types/components/eds-switch/eds-switch.d.ts +1 -1
  499. package/dist/types/components/eds-tag/eds-tag.d.ts +5 -1
  500. package/dist/types/components/eds-tag/eds-tag.stories.d.ts +7 -0
  501. package/dist/types/components.d.ts +404 -237
  502. package/dist/types/eds-docs-ui/colors/color-palette/support.d.ts +1 -0
  503. package/dist/types/eds-docs-ui/{eds-logo-variations/eds-logo-variations.d.ts → components-section/components-section.d.ts} +1 -1
  504. package/dist/types/eds-docs-ui/components-section/functional/angular.d.ts +2 -0
  505. package/dist/types/eds-docs-ui/components-section/functional/installation.d.ts +2 -0
  506. package/dist/types/eds-docs-ui/components-section/functional/overview.d.ts +2 -0
  507. package/dist/types/eds-docs-ui/components-section/functional/react.d.ts +2 -0
  508. package/dist/types/eds-docs-ui/components-section/functional/usage.d.ts +2 -0
  509. package/dist/types/eds-docs-ui/components-section/functional/vue.d.ts +2 -0
  510. package/dist/types/eds-docs-ui/{eds-docs-tokens/eds-docs-tokens.d.ts → design-tokens/docs-tokens/docs-tokens.d.ts} +1 -1
  511. package/dist/types/eds-docs-ui/{eds-docs-palettes/eds-docs-palettes.d.ts → docs-palettes/docs-palettes.d.ts} +1 -1
  512. package/dist/types/eds-docs-ui/{eds-components-section/eds-components-section.d.ts → logo/logo-variations-tabs/logo-variations.d.ts} +1 -1
  513. package/dist/types/eds-docs-ui/{eds-svg-repository/eds-svg-repository.d.ts → svg-repository/svg-repository.d.ts} +1 -1
  514. package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -0
  515. package/dist/types/shared-ui/eds-frame/eds-frame.d.ts +10 -9
  516. package/dist/types/shared-ui/eds-frame/eds-frame.stories.d.ts +3 -3
  517. package/dist/types/shared-ui/eds-login/eds-login.d.ts +3 -0
  518. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +1 -1
  519. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  520. package/dist/types/shared-ui/eds-splash-screen/eds-splash-screen.d.ts +2 -0
  521. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +1 -1
  522. package/dist/types/utils/eds-form/formUtils.d.ts +1 -1
  523. package/package.json +4 -4
  524. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -139
  525. package/dist/cjs/eds-form.cjs.entry.js +0 -409
  526. package/dist/cjs/eds-input_7.cjs.entry.js +0 -357
  527. package/dist/cjs/token-spacing.cjs.entry.js +0 -16
  528. package/dist/collection/eds-docs-ui/functional/angular.js +0 -2
  529. package/dist/collection/eds-docs-ui/functional/installation.js +0 -2
  530. package/dist/collection/eds-docs-ui/functional/react.js +0 -2
  531. package/dist/collection/eds-docs-ui/functional/usage.js +0 -2
  532. package/dist/collection/eds-docs-ui/functional/vue.js +0 -2
  533. package/dist/components/eds-components-section.d.ts +0 -11
  534. package/dist/components/p-03a38eab.entry.js +0 -1
  535. package/dist/components/p-05d8fdc3.entry.js +0 -1
  536. package/dist/components/p-0918a2e2.entry.js +0 -1
  537. package/dist/components/p-096d3274.entry.js +0 -1
  538. package/dist/components/p-10a318e0.entry.js +0 -1
  539. package/dist/components/p-16e0b902.entry.js +0 -1
  540. package/dist/components/p-18e10983.entry.js +0 -1
  541. package/dist/components/p-215f3b21.entry.js +0 -1
  542. package/dist/components/p-30075622.entry.js +0 -1
  543. package/dist/components/p-32a7f571.entry.js +0 -1
  544. package/dist/components/p-3f0fd469.entry.js +0 -1
  545. package/dist/components/p-4675ac16.entry.js +0 -1
  546. package/dist/components/p-46c9a35e.entry.js +0 -1
  547. package/dist/components/p-4aefc66e.entry.js +0 -1
  548. package/dist/components/p-4bcf6077.entry.js +0 -1
  549. package/dist/components/p-5d26f527.entry.js +0 -1
  550. package/dist/components/p-64f6f07e.entry.js +0 -1
  551. package/dist/components/p-69e5af42.entry.js +0 -1
  552. package/dist/components/p-6a73ac42.entry.js +0 -1
  553. package/dist/components/p-70201ae6.entry.js +0 -1
  554. package/dist/components/p-7ba4ca15.entry.js +0 -1
  555. package/dist/components/p-84faf1b3.entry.js +0 -1
  556. package/dist/components/p-8803ecf9.entry.js +0 -1
  557. package/dist/components/p-8cf4ee6e.entry.js +0 -1
  558. package/dist/components/p-9e2a0f5a.entry.js +0 -1
  559. package/dist/components/p-9f4ad4e4.entry.js +0 -1
  560. package/dist/components/p-a0abe772.entry.js +0 -1
  561. package/dist/components/p-a6bf9bf8.entry.js +0 -1
  562. package/dist/components/p-ae60f98b.entry.js +0 -1
  563. package/dist/components/p-b2f0f40b.entry.js +0 -1
  564. package/dist/components/p-b4332c34.entry.js +0 -1
  565. package/dist/components/p-b47d115d.entry.js +0 -1
  566. package/dist/components/p-ceac6200.entry.js +0 -1
  567. package/dist/components/p-cee891dc.entry.js +0 -1
  568. package/dist/components/p-d06faa08.entry.js +0 -1
  569. package/dist/components/p-d2159cc9.entry.js +0 -1
  570. package/dist/components/p-d895d036.entry.js +0 -1
  571. package/dist/components/p-db970de6.entry.js +0 -1
  572. package/dist/components/p-e343cd31.entry.js +0 -1
  573. package/dist/components/p-e3811d4b.entry.js +0 -1
  574. package/dist/components/p-e8bd6106.entry.js +0 -1
  575. package/dist/components/p-e96a5c8e.entry.js +0 -1
  576. package/dist/components/p-fec4cba7.entry.js +0 -1
  577. package/dist/esm/eds-breadcrumb.entry.js +0 -135
  578. package/dist/esm/eds-form.entry.js +0 -405
  579. package/dist/esm/eds-input_7.entry.js +0 -347
  580. package/dist/esm/token-spacing.entry.js +0 -12
  581. package/dist/types/eds-docs-ui/functional/angular.d.ts +0 -2
  582. package/dist/types/eds-docs-ui/functional/installation.d.ts +0 -2
  583. package/dist/types/eds-docs-ui/functional/overview.d.ts +0 -2
  584. package/dist/types/eds-docs-ui/functional/react.d.ts +0 -2
  585. package/dist/types/eds-docs-ui/functional/usage.d.ts +0 -2
  586. package/dist/types/eds-docs-ui/functional/vue.d.ts +0 -2
  587. /package/dist/collection/eds-docs-ui/{eds-svg-repository/eds-svg-repository.css → svg-repository/svg-repository.css} +0 -0
@@ -0,0 +1 @@
1
+ const n=' <svg\n width="12"\n height="12"\n viewBox="0 0 12 12"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M8 5V3C8 1.89543 7.10457 1 6 1V1C4.89543 1 4 1.89543 4 3V5"\n stroke="currentColor"\n stroke-width="1.5"\n />\n <rect\n x="2"\n y="5"\n width="8"\n height="6"\n rx="1"\n stroke="currentColor"\n stroke-width="1.5"\n />\n <circle cx="6" cy="8" r="1.5" fill="currentColor" />\n </svg>';export{n as p}
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./p-cccacbd3.js";const s=class{constructor(e){t(this,e),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e("token-list",{show:"background"});case 1:return e("token-list",{show:"text"});case 2:return e("token-list",{show:"border"});case 3:return e("token-radii",null);case 4:return e("token-list",{show:"outline"});case 5:return e("token-shadows",null);default:return e("p",null,"Content not available.")}}render(){return e("div",{key:"29810a0ace60d2e5a0fc84d6715fc2fc89d6187f",class:"container"},this.renderContent())}};export{s as docs_tokens}
@@ -0,0 +1 @@
1
+ const n=' <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M3 7.5L10 3L17 7.5L10 12L3 7.5Z"\n stroke="currentColor"\n stroke-width="1.5"\n stroke-linecap="round"\n />\n <path\n d="M5 8.5V13.2L10 16.5L15 13.6667V8.5"\n stroke="currentColor"\n stroke-width="1.5"\n />\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M16.8896 13.4492V7.5H18.3896V12.6081L16.8896 13.4492Z"\n fill="currentColor"\n />\n </svg>';export{n as t}
@@ -0,0 +1 @@
1
+ import{r as s,h as r}from"./p-cccacbd3.js";import{t}from"./p-ba720bf3.js";const a=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"94d79a5d32574820ab3459708e3d8c4a3f28f79f",class:this.class,innerHTML:t})}};export{a as eds_icon_thumbs_down}
@@ -0,0 +1 @@
1
+ import{r as s,h as c}from"./p-cccacbd3.js";import{p as r}from"./p-694fc085.js";const e=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"d57700e721a421e4c970a1e643d92548fcf2b18c",class:this.class,innerHTML:r})}};export{e as eds_icon_private}
@@ -1 +1 @@
1
- import{r as e,c as n,h as t,H as o}from"./p-cccacbd3.js";import{t as r}from"./p-22f9e720.js";function i(e){if(!(this instanceof i))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if("string"!=typeof e&&!c(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(c(e)){const n="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(const t of n)if(!e[t])throw new Error(`The configuration object is missing the required '${t}' property.`)}var n,t,o=this,r=[],s={enable:!0,callbackList:[],interval:5};o.didInitialize=!1;var u=!0,l=U(console.info),f=U(console.warn);function d(){return void 0!==o.authServerUrl?"/"==o.authServerUrl.charAt(o.authServerUrl.length-1)?o.authServerUrl+"realms/"+encodeURIComponent(o.realm):o.authServerUrl+"/realms/"+encodeURIComponent(o.realm):void 0}function p(e,n){var t=e.code,r=e.error,i=e.prompt,a=(new Date).getTime();if(e.kc_action_status&&o.onActionUpdate&&o.onActionUpdate(e.kc_action_status,e.kc_action),r)if("none"!=i)if(e.error_description&&"authentication_expired"===e.error_description)o.login(e.loginOptions);else{var c={error:r,error_description:e.error_description};o.onAuthError&&o.onAuthError(c),n&&n.setError(c)}else n&&n.setSuccess();else if("standard"!=o.flow&&(e.access_token||e.id_token)&&p(e.access_token,null,e.id_token,!0),"implicit"!=o.flow&&t){var s="code="+t+"&grant_type=authorization_code",f=o.endpoints.token(),d=new XMLHttpRequest;d.open("POST",f,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s+="&client_id="+encodeURIComponent(o.clientId),s+="&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(s+="&code_verifier="+e.pkceCodeVerifier),d.withCredentials=!0,d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status){var e=JSON.parse(d.responseText);p(e.access_token,e.refresh_token,e.id_token,"standard"===o.flow),b()}else o.onAuthError&&o.onAuthError(),n&&n.setError()},d.send(s)}function p(t,r,i,c){w(t,r,i,a=(a+(new Date).getTime())/2),u&&o.idTokenParsed&&o.idTokenParsed.nonce!=e.storedNonce?(l("[KEYCLOAK] Invalid nonce, clearing token"),o.clearToken(),n&&n.setError()):c&&(o.onAuthSuccess&&o.onAuthSuccess(),n&&n.setSuccess())}}function h(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function w(e,n,t,r){if(o.tokenTimeoutHandle&&(clearTimeout(o.tokenTimeoutHandle),o.tokenTimeoutHandle=null),n?(o.refreshToken=n,o.refreshTokenParsed=a(n)):(delete o.refreshToken,delete o.refreshTokenParsed),t?(o.idToken=t,o.idTokenParsed=a(t)):(delete o.idToken,delete o.idTokenParsed),e){if(o.token=e,o.tokenParsed=a(e),o.sessionId=o.tokenParsed.sid,o.authenticated=!0,o.subject=o.tokenParsed.sub,o.realmAccess=o.tokenParsed.realm_access,o.resourceAccess=o.tokenParsed.resource_access,r&&(o.timeSkew=Math.floor(r/1e3)-o.tokenParsed.iat),null!=o.timeSkew&&(l("[KEYCLOAK] Estimated time difference between browser and server is "+o.timeSkew+" seconds"),o.onTokenExpired)){var i=1e3*(o.tokenParsed.exp-(new Date).getTime()/1e3+o.timeSkew);l("[KEYCLOAK] Token expires in "+Math.round(i/1e3)+" s"),i<=0?o.onTokenExpired():o.tokenTimeoutHandle=setTimeout(o.onTokenExpired,i)}}else delete o.token,delete o.tokenParsed,delete o.subject,delete o.realmAccess,delete o.resourceAccess,o.authenticated=!1}function v(){if("undefined"==typeof crypto||void 0===crypto.randomUUID)throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function m(e){var n=function(e){var n;switch(o.flow){case"standard":n=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":n=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":n=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"]}n.push("error"),n.push("error_description"),n.push("error_uri");var t,r,i=e.indexOf("?"),a=e.indexOf("#");if("query"===o.responseMode&&-1!==i?(t=e.substring(0,i),""!==(r=y(e.substring(i+1,-1!==a?a:e.length),n)).paramsString&&(t+="?"+r.paramsString),-1!==a&&(t+=e.substring(a))):"fragment"===o.responseMode&&-1!==a&&(t=e.substring(0,a),""!==(r=y(e.substring(a+1),n)).paramsString&&(t+="#"+r.paramsString)),r&&r.oauthParams)if("standard"===o.flow||"hybrid"===o.flow){if((r.oauthParams.code||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}else if("implicit"===o.flow&&(r.oauthParams.access_token||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}(e);if(n){var r=t.get(n.state);return r&&(n.valid=!0,n.redirectUri=r.redirectUri,n.storedNonce=r.nonce,n.prompt=r.prompt,n.pkceCodeVerifier=r.pkceCodeVerifier,n.loginOptions=r.loginOptions),n}}function y(e,n){for(var t=e.split("&"),o={paramsString:"",oauthParams:{}},r=0;r<t.length;r++){var i=t[r].indexOf("="),a=t[r].slice(0,i);-1!==n.indexOf(a)?o.oauthParams[a]=t[r].slice(i+1):(""!==o.paramsString&&(o.paramsString+="&"),o.paramsString+=t[r])}return o}function g(){var e={setSuccess:function(n){e.resolve(n)},setError:function(n){e.reject(n)}};return e.promise=new Promise((function(n,t){e.resolve=n,e.reject=t})),e}function k(){var e=g();if(!s.enable)return e.setSuccess(),e.promise;if(s.iframe)return e.setSuccess(),e.promise;var n=document.createElement("iframe");s.iframe=n,n.onload=function(){var n=o.endpoints.authorize();s.iframeOrigin="/"===n.charAt(0)?window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):n.substring(0,n.indexOf("/",8)),e.setSuccess()};var t=o.endpoints.checkSessionIframe();return n.setAttribute("src",t),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-session-iframe"),n.style.display="none",document.body.appendChild(n),window.addEventListener("message",(function(e){if(e.origin===s.iframeOrigin&&s.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&o.clearToken();for(var n=s.callbackList.splice(0,s.callbackList.length),t=n.length-1;t>=0;--t){var r=n[t];"error"==e.data?r.setError():r.setSuccess("unchanged"==e.data)}}}),!1),e.promise}function b(){s.enable&&o.token&&setTimeout((function(){_().then((function(e){e&&b()}))}),1e3*s.interval)}function _(){var e=g();if(s.iframe&&s.iframeOrigin){var n=o.clientId+" "+(o.sessionId?o.sessionId:"");s.callbackList.push(e),1==s.callbackList.length&&s.iframe.contentWindow.postMessage(n,s.iframeOrigin)}else e.setSuccess();return e.promise}function I(e){if(!e||"default"==e)return{login:async function(e){return window.location.assign(await o.createLoginUrl(e)),g().promise},logout:async function(e){if("GET"===(e?.logoutMethod??o.logoutMethod))return void window.location.replace(o.createLogoutUrl(e));const t=document.createElement("form");t.setAttribute("method","POST"),t.setAttribute("action",o.createLogoutUrl(e)),t.style.display="none";const r={id_token_hint:o.idToken,client_id:o.clientId,post_logout_redirect_uri:n.redirectUri(e,!1)};for(const[e,n]of Object.entries(r)){const o=document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("name",e),o.setAttribute("value",n),t.appendChild(o)}document.body.appendChild(t),t.submit()},register:async function(e){return window.location.assign(await o.createRegisterUrl(e)),g().promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";return window.location.href=e,g().promise},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:location.href}};if("cordova"==e){s.enable=!1;var t=function(e,n,t){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,n,t):window.open(e,n,t)},r=function(e){var n=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(n,t){return n[t]=e.cordovaOptions[t],n}),{}):{}}(e);return n.location="no",e&&"none"==e.prompt&&(n.hidden="yes"),function(e){return Object.keys(e).reduce((function(n,t){return n.push(t+"="+e[t]),n}),[]).join(",")}(n)},i=function(){return o.redirectUri||"http://localhost"};return{login:async function(e){var n=g(),a=r(e),c=await o.createLoginUrl(e),s=t(c,"_blank",a),u=!1,l=!1,f=function(){l=!0,s.close()};return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(p(m(e.url),n),f(),u=!0)})),s.addEventListener("loaderror",(function(e){u||(0==e.url.indexOf(i())?(p(m(e.url),n),f(),u=!0):(n.setError(),f()))})),s.addEventListener("exit",(function(){l||n.setError({reason:"closed_by_user"})})),n.promise},logout:function(e){var n,r=g(),a=o.createLogoutUrl(e),c=t(a,"_blank","location=no,hidden=yes,clearcache=yes");return c.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&c.close()})),c.addEventListener("loaderror",(function(e){0==e.url.indexOf(i())||(n=!0),c.close()})),c.addEventListener("exit",(function(){n?r.setError():(o.clearToken(),r.setSuccess())})),r.promise},register:async function(e){var n=g(),a=await o.createRegisterUrl(),c=r(e),s=t(a,"_blank",c);return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(s.close(),p(m(e.url),n))})),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";var n=t(e,"_blank","location=no");n.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&n.close()}))},redirectUri:function(){return i()}}}if("cordova-native"==e)return s.enable=!1,{login:async function(e){var n=g(),t=await o.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},logout:function(e){var n=g(),t=o.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),o.clearToken(),n.setSuccess()})),window.cordova.plugins.browsertab.openUrl(t),n.promise},register:async function(e){var n=g(),t=await o.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}globalThis.isSecureContext||f("[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\nContinuing to run your application insecurely will lead to unexpected behavior and breakage.\n\nFor more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"),o.init=function(r={}){if(o.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");if(o.didInitialize=!0,o.authenticated=!1,t=function(){try{return new S}catch(e){}return new O}(),n=["default","cordova","cordova-native"].indexOf(r.adapter)>-1?I(r.adapter):"object"==typeof r.adapter?r.adapter:window.Cordova||window.cordova?I("cordova"):I(),void 0!==r.useNonce&&(u=r.useNonce),void 0!==r.checkLoginIframe&&(s.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(s.interval=r.checkLoginIframeInterval),"login-required"===r.onLoad&&(o.loginRequired=!0),r.responseMode){if("query"!==r.responseMode&&"fragment"!==r.responseMode)throw"Invalid value for responseMode";o.responseMode=r.responseMode}if(r.flow){switch(r.flow){case"standard":o.responseType="code";break;case"implicit":o.responseType="id_token token";break;case"hybrid":o.responseType="code id_token token";break;default:throw"Invalid value for flow"}o.flow=r.flow}if(null!=r.timeSkew&&(o.timeSkew=r.timeSkew),r.redirectUri&&(o.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(o.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),o.silentCheckSsoFallback="boolean"!=typeof r.silentCheckSsoFallback||r.silentCheckSsoFallback,void 0!==r.pkceMethod){if("S256"!==r.pkceMethod&&!1!==r.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);o.pkceMethod=r.pkceMethod}else o.pkceMethod="S256";o.enableLogging="boolean"==typeof r.enableLogging&&r.enableLogging,o.logoutMethod="POST"===r.logoutMethod?"POST":"GET","string"==typeof r.scope&&(o.scope=r.scope),"string"==typeof r.acrValues&&(o.acrValues=r.acrValues),o.messageReceiveTimeout="number"==typeof r.messageReceiveTimeout&&r.messageReceiveTimeout>0?r.messageReceiveTimeout:1e4,o.responseMode||(o.responseMode="fragment"),o.responseType||(o.responseType="code",o.flow="standard");var i=g(),a=g();a.promise.then((function(){o.onReady&&o.onReady(o.authenticated),i.setSuccess(o.authenticated)})).catch((function(e){i.setError(e)}));var c=function(){var n,t=g();function r(e){o.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:{authorize:function(){return d()+"/protocol/openid-connect/auth"},token:function(){return d()+"/protocol/openid-connect/token"},logout:function(){return d()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return d()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return d()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return d()+"/protocol/openid-connect/registrations"},userinfo:function(){return d()+"/protocol/openid-connect/userinfo"}}}if("string"==typeof e&&(n=e),n)(a=new XMLHttpRequest).open("GET",n,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status||h(a)){var e=JSON.parse(a.responseText);o.authServerUrl=e["auth-server-url"],o.realm=e.realm,o.clientId=e.resource,r(null),t.setSuccess()}else t.setError()},a.send();else{o.clientId=e.clientId;var i,a,c=e.oidcProvider;c?"string"==typeof c?(i="/"==c.charAt(c.length-1)?c+".well-known/openid-configuration":c+"/.well-known/openid-configuration",(a=new XMLHttpRequest).open("GET",i,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){4==a.readyState&&(200==a.status||h(a)?(r(JSON.parse(a.responseText)),t.setSuccess()):t.setError())},a.send()):(r(c),t.setSuccess()):(o.authServerUrl=e.url,o.realm=e.realm,r(null),t.setSuccess())}return t.promise}();function l(){var e=function(e){e||(t.prompt="none"),r.locale&&(t.locale=r.locale),o.login(t).then((function(){a.setSuccess()})).catch((function(e){a.setError(e)}))},n=async function(){var e=document.createElement("iframe"),n=await o.createLoginUrl({prompt:"none",redirectUri:o.silentCheckSsoRedirectUri});e.setAttribute("src",n),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var t=function(n){n.origin===window.location.origin&&e.contentWindow===n.source&&(p(m(n.data),a),document.body.removeChild(e),window.removeEventListener("message",t))};window.addEventListener("message",t)},t={};switch(r.onLoad){case"check-sso":s.enable?k().then((function(){_().then((function(t){t?a.setSuccess():o.silentCheckSsoRedirectUri?n():e(!1)})).catch((function(e){a.setError(e)}))})):o.silentCheckSsoRedirectUri?n():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function v(){var e=m(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return k().then((function(){p(e,a)})).catch((function(e){a.setError(e)}));r.token&&r.refreshToken?(w(r.token,r.refreshToken,r.idToken),s.enable?k().then((function(){_().then((function(e){e?(o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess(),b()):a.setSuccess()})).catch((function(e){a.setError(e)}))})):o.updateToken(-1).then((function(){o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess()})).catch((function(e){o.onAuthError&&o.onAuthError(),r.onLoad?l():a.setError(e)}))):r.onLoad?l():a.setSuccess()}return c.then((function(){(function(){var e=g();if((s.enable||o.silentCheckSsoRedirectUri)&&"function"==typeof o.endpoints.thirdPartyCookiesIframe){var n=document.createElement("iframe");n.setAttribute("src",o.endpoints.thirdPartyCookiesIframe()),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-3p-check-iframe"),n.style.display="none",document.body.appendChild(n);var t=function(r){n.contentWindow===r.source&&("supported"!==r.data&&"unsupported"!==r.data||("unsupported"===r.data&&(f("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"),s.enable=!1,o.silentCheckSsoFallback&&(o.silentCheckSsoRedirectUri=!1)),document.body.removeChild(n),window.removeEventListener("message",t),e.setSuccess()))};window.addEventListener("message",t,!1)}else e.setSuccess();return function(e,n){var t=null,o=new Promise((function(e,o){t=setTimeout((function(){o({error:"Timeout when waiting for 3rd party check iframe message."})}),n)}));return Promise.race([e,o]).finally((function(){clearTimeout(t)}))}(e.promise,o.messageReceiveTimeout)})().then(v).catch((function(e){i.setError(e)}))})),c.catch((function(e){i.setError(e)})),i.promise},o.login=function(e){return n.login(e)},o.createLoginUrl=async function(e){var r,i=v(),a=v(),c=n.redirectUri(e),s={state:i,nonce:a,redirectUri:encodeURIComponent(c),loginOptions:e};e&&e.prompt&&(s.prompt=e.prompt),r=e&&"register"==e.action?o.endpoints.register():o.endpoints.authorize();var l=e&&e.scope||o.scope;l?-1===l.indexOf("openid")&&(l="openid "+l):l="openid";var f=r+"?client_id="+encodeURIComponent(o.clientId)+"&redirect_uri="+encodeURIComponent(c)+"&state="+encodeURIComponent(i)+"&response_mode="+encodeURIComponent(o.responseMode)+"&response_type="+encodeURIComponent(o.responseType)+"&scope="+encodeURIComponent(l);if(u&&(f=f+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(f+="&prompt="+encodeURIComponent(e.prompt)),e&&"number"==typeof e.maxAge&&(f+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(f+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(f+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(f+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(f+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr){var d=JSON.stringify({id_token:{acr:e.acr}});f+="&claims="+encodeURIComponent(d)}if((e&&e.acrValues||o.acrValues)&&(f+="&acr_values="+encodeURIComponent(e.acrValues||o.acrValues)),o.pkceMethod)try{const e=function(e,n){for(var t=function(e){if("undefined"==typeof crypto||void 0===crypto.getRandomValues)throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(e))}(e),o=new Array(e),r=0;r<e;r++)o[r]=n.charCodeAt(t[r]%62);return String.fromCharCode.apply(null,o)}(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"),n=await async function(e,n){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return function(e){const n=String.fromCodePoint(...e);return btoa(n)}(new Uint8Array(await async function(e){const n=(new TextEncoder).encode(e);if("undefined"==typeof crypto||void 0===crypto.subtle)throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",n)}(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(o.pkceMethod,e);s.pkceCodeVerifier=e,f+="&code_challenge="+n,f+="&code_challenge_method="+o.pkceMethod}catch(e){throw new Error("Failed to generate PKCE challenge.",{cause:e})}return t.add(s),f},o.logout=function(e){return n.logout(e)},o.createLogoutUrl=function(e){if("POST"===(e?.logoutMethod??o.logoutMethod))return o.endpoints.logout();var t=o.endpoints.logout()+"?client_id="+encodeURIComponent(o.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(e,!1));return o.idToken&&(t+="&id_token_hint="+encodeURIComponent(o.idToken)),t},o.register=function(e){return n.register(e)},o.createRegisterUrl=async function(e){return e||(e={}),e.action="register",await o.createLoginUrl(e)},o.createAccountUrl=function(e){var t=d(),r=void 0;return void 0!==t&&(r=t+"/account?referrer="+encodeURIComponent(o.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(e))),r},o.accountManagement=function(){return n.accountManagement()},o.hasRealmRole=function(e){var n=o.realmAccess;return!!n&&n.roles.indexOf(e)>=0},o.hasResourceRole=function(e,n){if(!o.resourceAccess)return!1;var t=o.resourceAccess[n||o.clientId];return!!t&&t.roles.indexOf(e)>=0},o.loadUserProfile=function(){var e=d()+"/account",n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.profile=JSON.parse(n.responseText),t.setSuccess(o.profile)):t.setError())},n.send(),t.promise},o.loadUserInfo=function(){var e=o.endpoints.userinfo(),n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.userInfo=JSON.parse(n.responseText),t.setSuccess(o.userInfo)):t.setError())},n.send(),t.promise},o.isTokenExpired=function(e){if(!o.tokenParsed||!o.refreshToken&&"implicit"!=o.flow)throw"Not authenticated";if(null==o.timeSkew)return l("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var n=o.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+o.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";n-=e}return n<0},o.updateToken=function(e){var n=g();if(!o.refreshToken)return n.setError(),n.promise;e=e||5;var t=function(){var t=!1;if(-1==e?(t=!0,l("[KEYCLOAK] Refreshing token: forced refresh")):o.tokenParsed&&!o.isTokenExpired(e)||(t=!0,l("[KEYCLOAK] Refreshing token: token expired")),t){var i="grant_type=refresh_token&refresh_token="+o.refreshToken,a=o.endpoints.token();if(r.push(n),1==r.length){var c=new XMLHttpRequest;c.open("POST",a,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.withCredentials=!0,i+="&client_id="+encodeURIComponent(o.clientId);var s=(new Date).getTime();c.onreadystatechange=function(){if(4==c.readyState)if(200==c.status){l("[KEYCLOAK] Token refreshed"),s=(s+(new Date).getTime())/2;var e=JSON.parse(c.responseText);w(e.access_token,e.refresh_token,e.id_token,s),o.onAuthRefreshSuccess&&o.onAuthRefreshSuccess();for(var n=r.pop();null!=n;n=r.pop())n.setSuccess(!0)}else for(f("[KEYCLOAK] Failed to refresh token"),400==c.status&&o.clearToken(),o.onAuthRefreshError&&o.onAuthRefreshError(),n=r.pop();null!=n;n=r.pop())n.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")},c.send(i)}}else n.setSuccess(!1)};return s.enable?_().then((function(){t()})).catch((function(e){n.setError(e)})):t(),n.promise},o.clearToken=function(){o.token&&(w(null,null,null),o.onAuthLogout&&o.onAuthLogout(),o.loginRequired&&o.login())};const C="kc-callback-";var S=function(){if(!(this instanceof S))return new S;function e(){const e=Date.now();for(const[o,r]of n()){const n=t(r);(null===n||n<e)&&localStorage.removeItem(o)}}function n(){return Object.entries(localStorage).filter((([e])=>e.startsWith(C)))}function t(e){let n;try{n=JSON.parse(e)}catch(e){return null}return c(n)&&"expires"in n&&"number"==typeof n.expires?n.expires:null}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(n){if(n){var t=C+n,o=localStorage.getItem(t);return o&&(localStorage.removeItem(t),o=JSON.parse(o)),e(),o}},this.add=function(t){e();const o=C+t.state,r=JSON.stringify({...t,expires:Date.now()+36e5});try{localStorage.setItem(o,r)}catch(e){!function(){for(const[e]of n())localStorage.removeItem(e)}(),localStorage.setItem(o,r)}}},O=function(){if(!(this instanceof O))return new O;var e=this;e.get=function(e){if(e){var r=t(C+e);return o(C+e,"",n(-100)),r?JSON.parse(r):void 0}},e.add=function(e){o(C+e.state,JSON.stringify(e),n(60))},e.removeItem=function(e){o(e,"",n(-100))};var n=function(e){var n=new Date;return n.setTime(n.getTime()+60*e*1e3),n},t=function(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){for(var r=t[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(n))return r.substring(n.length,r.length)}return""},o=function(e,n,t){var o=e+"="+n+"; expires="+t.toUTCString()+"; ";document.cookie=o}};function U(e){return function(){o.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}function a(e){const[n,t]=e.split(".");if("string"!=typeof t)throw new Error("Unable to decode token, payload not found.");let o;try{o=function(e){let n=e.replaceAll("-","+").replaceAll("_","/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Input is not of the correct length.")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,n)=>{let t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return atob(n)}}(t)}catch(e){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:e})}try{return JSON.parse(o)}catch(e){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:e})}}function c(e){return"object"==typeof e&&null!==e}let s=null,u=null;const l=class{constructor(t){e(this,t),this.keycloak=n(this,"keycloak",7),this.auth=n(this,"auth",7),this.handleLogin=async()=>{if(!this.authenticated)try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.login()}()}catch(e){r.show(e.message,"error")}},this.handleLogout=async()=>{try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.logout()}()}catch(e){r.show(e.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null,this.serverAvailable=!1}async componentWillLoad(){this.keycloakUrl&&this.keycloakRealm&&this.keycloakClientId?(this.serverAvailable=await async function(e){try{const n=await fetch(e,{method:"HEAD",mode:"no-cors"});return n.ok||"opaque"===n.type}catch(e){return!1}}(`${this.keycloakUrl}/realms/${this.keycloakRealm}`),this.serverAvailable?await this.initAuth():r.show("Keycloak server is unavailable.","error")):console.error("Keycloak configuration props are missing.")}async initAuth(){try{const e=await function(e,n=!0){return u?(console.log("Keycloak already initialized, returning from cache"),u):(s||(s=new i({url:e.url,realm:e.realm,clientId:e.clientId})),u=s.init({onLoad:n?"check-sso":"login-required",checkLoginIframe:!1}).then((e=>e)).catch((e=>(console.error("Failed to initialize Keycloak:",e),!1))),u)}({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0);this.keycloak.emit({init:e}),(null==s?void 0:s.authenticated)&&(this.user=(null==s?void 0:s.authenticated)&&(null==s?void 0:s.idTokenParsed)?{fullname:s.idTokenParsed.name,email:s.idTokenParsed.email,lastname:s.idTokenParsed.family_name,firstname:s.idTokenParsed.given_name,username:s.idTokenParsed.preferred_username,background:"grey",token:s.token,sub:s.idTokenParsed.sub}:{},this.authenticated=!0,this.auth.emit({authenticated:this.authenticated,user:this.user}))}catch(e){r.show(e.message,"error")}}render(){return t("div",{key:"dace7b16af2f945e4981c9ef139f4c2ae94e130c",class:"block"},!this.authenticated&&t("eds-button",{key:"a8d0bd545e8ae4a159b5977d50d05ae27dec7df3",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}},f=class{constructor(t){e(this,t),this.splash=n(this,"splash",7),this.inverse=!1,this.initPromise=void 0,this.isVisible=!0}componentWillLoad(){this.initPromise&&this.initPromise.then((()=>{console.log("Promises resolved"),this.hideSplash()})).catch((e=>{console.error("Initialization error:",e),this.splash.emit({type:"error",message:e.message||"Unknown error"})}))}handleHideSplash(){this.hideSplash()}hideSplash(){this.isVisible=!1,this.splash.emit({type:"hidden",message:"Splash screen hidden successfully"})}render(){return this.isVisible?t(o,null,t("div",{class:"splash-overlay",style:{background:this.inverse?"black":"var(--grey-200)"}},t("div",{class:"logo-container"},t("eds-logo",this.inverse?{orientation:"vertical",type:"color-white"}:{orientation:"vertical",type:"color"})),t("div",{class:"content-container"},t("eds-spinner",{size:"1rem",thickness:"3px","border-color":"var(--grey-400)","bottom-color":"var(--grey-900)",background:"none",fullscreen:!1})))):null}};f.style=".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}";export{l as eds_login,f as eds_splash_screen}
1
+ import{r as e,c as n,h as t,H as o}from"./p-cccacbd3.js";import{t as r}from"./p-22f9e720.js";function i(e){if(!(this instanceof i))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if("string"!=typeof e&&!c(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(c(e)){const n="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(const t of n)if(!e[t])throw new Error(`The configuration object is missing the required '${t}' property.`)}var n,t,o=this,r=[],s={enable:!0,callbackList:[],interval:5};o.didInitialize=!1;var u=!0,l=U(console.info),f=U(console.warn);function d(){return void 0!==o.authServerUrl?"/"==o.authServerUrl.charAt(o.authServerUrl.length-1)?o.authServerUrl+"realms/"+encodeURIComponent(o.realm):o.authServerUrl+"/realms/"+encodeURIComponent(o.realm):void 0}function p(e,n){var t=e.code,r=e.error,i=e.prompt,a=(new Date).getTime();if(e.kc_action_status&&o.onActionUpdate&&o.onActionUpdate(e.kc_action_status,e.kc_action),r)if("none"!=i)if(e.error_description&&"authentication_expired"===e.error_description)o.login(e.loginOptions);else{var c={error:r,error_description:e.error_description};o.onAuthError&&o.onAuthError(c),n&&n.setError(c)}else n&&n.setSuccess();else if("standard"!=o.flow&&(e.access_token||e.id_token)&&p(e.access_token,null,e.id_token,!0),"implicit"!=o.flow&&t){var s="code="+t+"&grant_type=authorization_code",f=o.endpoints.token(),d=new XMLHttpRequest;d.open("POST",f,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s+="&client_id="+encodeURIComponent(o.clientId),s+="&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(s+="&code_verifier="+e.pkceCodeVerifier),d.withCredentials=!0,d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status){var e=JSON.parse(d.responseText);p(e.access_token,e.refresh_token,e.id_token,"standard"===o.flow),b()}else o.onAuthError&&o.onAuthError(),n&&n.setError()},d.send(s)}function p(t,r,i,c){w(t,r,i,a=(a+(new Date).getTime())/2),u&&o.idTokenParsed&&o.idTokenParsed.nonce!=e.storedNonce?(l("[KEYCLOAK] Invalid nonce, clearing token"),o.clearToken(),n&&n.setError()):c&&(o.onAuthSuccess&&o.onAuthSuccess(),n&&n.setSuccess())}}function h(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function w(e,n,t,r){if(o.tokenTimeoutHandle&&(clearTimeout(o.tokenTimeoutHandle),o.tokenTimeoutHandle=null),n?(o.refreshToken=n,o.refreshTokenParsed=a(n)):(delete o.refreshToken,delete o.refreshTokenParsed),t?(o.idToken=t,o.idTokenParsed=a(t)):(delete o.idToken,delete o.idTokenParsed),e){if(o.token=e,o.tokenParsed=a(e),o.sessionId=o.tokenParsed.sid,o.authenticated=!0,o.subject=o.tokenParsed.sub,o.realmAccess=o.tokenParsed.realm_access,o.resourceAccess=o.tokenParsed.resource_access,r&&(o.timeSkew=Math.floor(r/1e3)-o.tokenParsed.iat),null!=o.timeSkew&&(l("[KEYCLOAK] Estimated time difference between browser and server is "+o.timeSkew+" seconds"),o.onTokenExpired)){var i=1e3*(o.tokenParsed.exp-(new Date).getTime()/1e3+o.timeSkew);l("[KEYCLOAK] Token expires in "+Math.round(i/1e3)+" s"),i<=0?o.onTokenExpired():o.tokenTimeoutHandle=setTimeout(o.onTokenExpired,i)}}else delete o.token,delete o.tokenParsed,delete o.subject,delete o.realmAccess,delete o.resourceAccess,o.authenticated=!1}function v(){if("undefined"==typeof crypto||void 0===crypto.randomUUID)throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function m(e){var n=function(e){var n;switch(o.flow){case"standard":n=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":n=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":n=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"]}n.push("error"),n.push("error_description"),n.push("error_uri");var t,r,i=e.indexOf("?"),a=e.indexOf("#");if("query"===o.responseMode&&-1!==i?(t=e.substring(0,i),""!==(r=y(e.substring(i+1,-1!==a?a:e.length),n)).paramsString&&(t+="?"+r.paramsString),-1!==a&&(t+=e.substring(a))):"fragment"===o.responseMode&&-1!==a&&(t=e.substring(0,a),""!==(r=y(e.substring(a+1),n)).paramsString&&(t+="#"+r.paramsString)),r&&r.oauthParams)if("standard"===o.flow||"hybrid"===o.flow){if((r.oauthParams.code||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}else if("implicit"===o.flow&&(r.oauthParams.access_token||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}(e);if(n){var r=t.get(n.state);return r&&(n.valid=!0,n.redirectUri=r.redirectUri,n.storedNonce=r.nonce,n.prompt=r.prompt,n.pkceCodeVerifier=r.pkceCodeVerifier,n.loginOptions=r.loginOptions),n}}function y(e,n){for(var t=e.split("&"),o={paramsString:"",oauthParams:{}},r=0;r<t.length;r++){var i=t[r].indexOf("="),a=t[r].slice(0,i);-1!==n.indexOf(a)?o.oauthParams[a]=t[r].slice(i+1):(""!==o.paramsString&&(o.paramsString+="&"),o.paramsString+=t[r])}return o}function g(){var e={setSuccess:function(n){e.resolve(n)},setError:function(n){e.reject(n)}};return e.promise=new Promise((function(n,t){e.resolve=n,e.reject=t})),e}function k(){var e=g();if(!s.enable)return e.setSuccess(),e.promise;if(s.iframe)return e.setSuccess(),e.promise;var n=document.createElement("iframe");s.iframe=n,n.onload=function(){var n=o.endpoints.authorize();s.iframeOrigin="/"===n.charAt(0)?window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):n.substring(0,n.indexOf("/",8)),e.setSuccess()};var t=o.endpoints.checkSessionIframe();return n.setAttribute("src",t),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-session-iframe"),n.style.display="none",document.body.appendChild(n),window.addEventListener("message",(function(e){if(e.origin===s.iframeOrigin&&s.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&o.clearToken();for(var n=s.callbackList.splice(0,s.callbackList.length),t=n.length-1;t>=0;--t){var r=n[t];"error"==e.data?r.setError():r.setSuccess("unchanged"==e.data)}}}),!1),e.promise}function b(){s.enable&&o.token&&setTimeout((function(){_().then((function(e){e&&b()}))}),1e3*s.interval)}function _(){var e=g();if(s.iframe&&s.iframeOrigin){var n=o.clientId+" "+(o.sessionId?o.sessionId:"");s.callbackList.push(e),1==s.callbackList.length&&s.iframe.contentWindow.postMessage(n,s.iframeOrigin)}else e.setSuccess();return e.promise}function I(e){if(!e||"default"==e)return{login:async function(e){return window.location.assign(await o.createLoginUrl(e)),g().promise},logout:async function(e){if("GET"===(e?.logoutMethod??o.logoutMethod))return void window.location.replace(o.createLogoutUrl(e));const t=document.createElement("form");t.setAttribute("method","POST"),t.setAttribute("action",o.createLogoutUrl(e)),t.style.display="none";const r={id_token_hint:o.idToken,client_id:o.clientId,post_logout_redirect_uri:n.redirectUri(e,!1)};for(const[e,n]of Object.entries(r)){const o=document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("name",e),o.setAttribute("value",n),t.appendChild(o)}document.body.appendChild(t),t.submit()},register:async function(e){return window.location.assign(await o.createRegisterUrl(e)),g().promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";return window.location.href=e,g().promise},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:location.href}};if("cordova"==e){s.enable=!1;var t=function(e,n,t){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,n,t):window.open(e,n,t)},r=function(e){var n=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(n,t){return n[t]=e.cordovaOptions[t],n}),{}):{}}(e);return n.location="no",e&&"none"==e.prompt&&(n.hidden="yes"),function(e){return Object.keys(e).reduce((function(n,t){return n.push(t+"="+e[t]),n}),[]).join(",")}(n)},i=function(){return o.redirectUri||"http://localhost"};return{login:async function(e){var n=g(),a=r(e),c=await o.createLoginUrl(e),s=t(c,"_blank",a),u=!1,l=!1,f=function(){l=!0,s.close()};return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(p(m(e.url),n),f(),u=!0)})),s.addEventListener("loaderror",(function(e){u||(0==e.url.indexOf(i())?(p(m(e.url),n),f(),u=!0):(n.setError(),f()))})),s.addEventListener("exit",(function(){l||n.setError({reason:"closed_by_user"})})),n.promise},logout:function(e){var n,r=g(),a=o.createLogoutUrl(e),c=t(a,"_blank","location=no,hidden=yes,clearcache=yes");return c.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&c.close()})),c.addEventListener("loaderror",(function(e){0==e.url.indexOf(i())||(n=!0),c.close()})),c.addEventListener("exit",(function(){n?r.setError():(o.clearToken(),r.setSuccess())})),r.promise},register:async function(e){var n=g(),a=await o.createRegisterUrl(),c=r(e),s=t(a,"_blank",c);return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(s.close(),p(m(e.url),n))})),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";var n=t(e,"_blank","location=no");n.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&n.close()}))},redirectUri:function(){return i()}}}if("cordova-native"==e)return s.enable=!1,{login:async function(e){var n=g(),t=await o.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},logout:function(e){var n=g(),t=o.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),o.clearToken(),n.setSuccess()})),window.cordova.plugins.browsertab.openUrl(t),n.promise},register:async function(e){var n=g(),t=await o.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}globalThis.isSecureContext||f("[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\nContinuing to run your application insecurely will lead to unexpected behavior and breakage.\n\nFor more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"),o.init=function(r={}){if(o.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");if(o.didInitialize=!0,o.authenticated=!1,t=function(){try{return new S}catch(e){}return new O}(),n=["default","cordova","cordova-native"].indexOf(r.adapter)>-1?I(r.adapter):"object"==typeof r.adapter?r.adapter:window.Cordova||window.cordova?I("cordova"):I(),void 0!==r.useNonce&&(u=r.useNonce),void 0!==r.checkLoginIframe&&(s.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(s.interval=r.checkLoginIframeInterval),"login-required"===r.onLoad&&(o.loginRequired=!0),r.responseMode){if("query"!==r.responseMode&&"fragment"!==r.responseMode)throw"Invalid value for responseMode";o.responseMode=r.responseMode}if(r.flow){switch(r.flow){case"standard":o.responseType="code";break;case"implicit":o.responseType="id_token token";break;case"hybrid":o.responseType="code id_token token";break;default:throw"Invalid value for flow"}o.flow=r.flow}if(null!=r.timeSkew&&(o.timeSkew=r.timeSkew),r.redirectUri&&(o.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(o.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),o.silentCheckSsoFallback="boolean"!=typeof r.silentCheckSsoFallback||r.silentCheckSsoFallback,void 0!==r.pkceMethod){if("S256"!==r.pkceMethod&&!1!==r.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);o.pkceMethod=r.pkceMethod}else o.pkceMethod="S256";o.enableLogging="boolean"==typeof r.enableLogging&&r.enableLogging,o.logoutMethod="POST"===r.logoutMethod?"POST":"GET","string"==typeof r.scope&&(o.scope=r.scope),"string"==typeof r.acrValues&&(o.acrValues=r.acrValues),o.messageReceiveTimeout="number"==typeof r.messageReceiveTimeout&&r.messageReceiveTimeout>0?r.messageReceiveTimeout:1e4,o.responseMode||(o.responseMode="fragment"),o.responseType||(o.responseType="code",o.flow="standard");var i=g(),a=g();a.promise.then((function(){o.onReady&&o.onReady(o.authenticated),i.setSuccess(o.authenticated)})).catch((function(e){i.setError(e)}));var c=function(){var n,t=g();function r(e){o.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:{authorize:function(){return d()+"/protocol/openid-connect/auth"},token:function(){return d()+"/protocol/openid-connect/token"},logout:function(){return d()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return d()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return d()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return d()+"/protocol/openid-connect/registrations"},userinfo:function(){return d()+"/protocol/openid-connect/userinfo"}}}if("string"==typeof e&&(n=e),n)(a=new XMLHttpRequest).open("GET",n,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status||h(a)){var e=JSON.parse(a.responseText);o.authServerUrl=e["auth-server-url"],o.realm=e.realm,o.clientId=e.resource,r(null),t.setSuccess()}else t.setError()},a.send();else{o.clientId=e.clientId;var i,a,c=e.oidcProvider;c?"string"==typeof c?(i="/"==c.charAt(c.length-1)?c+".well-known/openid-configuration":c+"/.well-known/openid-configuration",(a=new XMLHttpRequest).open("GET",i,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){4==a.readyState&&(200==a.status||h(a)?(r(JSON.parse(a.responseText)),t.setSuccess()):t.setError())},a.send()):(r(c),t.setSuccess()):(o.authServerUrl=e.url,o.realm=e.realm,r(null),t.setSuccess())}return t.promise}();function l(){var e=function(e){e||(t.prompt="none"),r.locale&&(t.locale=r.locale),o.login(t).then((function(){a.setSuccess()})).catch((function(e){a.setError(e)}))},n=async function(){var e=document.createElement("iframe"),n=await o.createLoginUrl({prompt:"none",redirectUri:o.silentCheckSsoRedirectUri});e.setAttribute("src",n),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var t=function(n){n.origin===window.location.origin&&e.contentWindow===n.source&&(p(m(n.data),a),document.body.removeChild(e),window.removeEventListener("message",t))};window.addEventListener("message",t)},t={};switch(r.onLoad){case"check-sso":s.enable?k().then((function(){_().then((function(t){t?a.setSuccess():o.silentCheckSsoRedirectUri?n():e(!1)})).catch((function(e){a.setError(e)}))})):o.silentCheckSsoRedirectUri?n():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function v(){var e=m(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return k().then((function(){p(e,a)})).catch((function(e){a.setError(e)}));r.token&&r.refreshToken?(w(r.token,r.refreshToken,r.idToken),s.enable?k().then((function(){_().then((function(e){e?(o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess(),b()):a.setSuccess()})).catch((function(e){a.setError(e)}))})):o.updateToken(-1).then((function(){o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess()})).catch((function(e){o.onAuthError&&o.onAuthError(),r.onLoad?l():a.setError(e)}))):r.onLoad?l():a.setSuccess()}return c.then((function(){(function(){var e=g();if((s.enable||o.silentCheckSsoRedirectUri)&&"function"==typeof o.endpoints.thirdPartyCookiesIframe){var n=document.createElement("iframe");n.setAttribute("src",o.endpoints.thirdPartyCookiesIframe()),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-3p-check-iframe"),n.style.display="none",document.body.appendChild(n);var t=function(r){n.contentWindow===r.source&&("supported"!==r.data&&"unsupported"!==r.data||("unsupported"===r.data&&(f("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"),s.enable=!1,o.silentCheckSsoFallback&&(o.silentCheckSsoRedirectUri=!1)),document.body.removeChild(n),window.removeEventListener("message",t),e.setSuccess()))};window.addEventListener("message",t,!1)}else e.setSuccess();return function(e,n){var t=null,o=new Promise((function(e,o){t=setTimeout((function(){o({error:"Timeout when waiting for 3rd party check iframe message."})}),n)}));return Promise.race([e,o]).finally((function(){clearTimeout(t)}))}(e.promise,o.messageReceiveTimeout)})().then(v).catch((function(e){i.setError(e)}))})),c.catch((function(e){i.setError(e)})),i.promise},o.login=function(e){return n.login(e)},o.createLoginUrl=async function(e){var r,i=v(),a=v(),c=n.redirectUri(e),s={state:i,nonce:a,redirectUri:encodeURIComponent(c),loginOptions:e};e&&e.prompt&&(s.prompt=e.prompt),r=e&&"register"==e.action?o.endpoints.register():o.endpoints.authorize();var l=e&&e.scope||o.scope;l?-1===l.indexOf("openid")&&(l="openid "+l):l="openid";var f=r+"?client_id="+encodeURIComponent(o.clientId)+"&redirect_uri="+encodeURIComponent(c)+"&state="+encodeURIComponent(i)+"&response_mode="+encodeURIComponent(o.responseMode)+"&response_type="+encodeURIComponent(o.responseType)+"&scope="+encodeURIComponent(l);if(u&&(f=f+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(f+="&prompt="+encodeURIComponent(e.prompt)),e&&"number"==typeof e.maxAge&&(f+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(f+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(f+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(f+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(f+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr){var d=JSON.stringify({id_token:{acr:e.acr}});f+="&claims="+encodeURIComponent(d)}if((e&&e.acrValues||o.acrValues)&&(f+="&acr_values="+encodeURIComponent(e.acrValues||o.acrValues)),o.pkceMethod)try{const e=function(e,n){for(var t=function(e){if("undefined"==typeof crypto||void 0===crypto.getRandomValues)throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(e))}(e),o=new Array(e),r=0;r<e;r++)o[r]=n.charCodeAt(t[r]%62);return String.fromCharCode.apply(null,o)}(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"),n=await async function(e,n){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return function(e){const n=String.fromCodePoint(...e);return btoa(n)}(new Uint8Array(await async function(e){const n=(new TextEncoder).encode(e);if("undefined"==typeof crypto||void 0===crypto.subtle)throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",n)}(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(o.pkceMethod,e);s.pkceCodeVerifier=e,f+="&code_challenge="+n,f+="&code_challenge_method="+o.pkceMethod}catch(e){throw new Error("Failed to generate PKCE challenge.",{cause:e})}return t.add(s),f},o.logout=function(e){return n.logout(e)},o.createLogoutUrl=function(e){if("POST"===(e?.logoutMethod??o.logoutMethod))return o.endpoints.logout();var t=o.endpoints.logout()+"?client_id="+encodeURIComponent(o.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(e,!1));return o.idToken&&(t+="&id_token_hint="+encodeURIComponent(o.idToken)),t},o.register=function(e){return n.register(e)},o.createRegisterUrl=async function(e){return e||(e={}),e.action="register",await o.createLoginUrl(e)},o.createAccountUrl=function(e){var t=d(),r=void 0;return void 0!==t&&(r=t+"/account?referrer="+encodeURIComponent(o.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(e))),r},o.accountManagement=function(){return n.accountManagement()},o.hasRealmRole=function(e){var n=o.realmAccess;return!!n&&n.roles.indexOf(e)>=0},o.hasResourceRole=function(e,n){if(!o.resourceAccess)return!1;var t=o.resourceAccess[n||o.clientId];return!!t&&t.roles.indexOf(e)>=0},o.loadUserProfile=function(){var e=d()+"/account",n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.profile=JSON.parse(n.responseText),t.setSuccess(o.profile)):t.setError())},n.send(),t.promise},o.loadUserInfo=function(){var e=o.endpoints.userinfo(),n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.userInfo=JSON.parse(n.responseText),t.setSuccess(o.userInfo)):t.setError())},n.send(),t.promise},o.isTokenExpired=function(e){if(!o.tokenParsed||!o.refreshToken&&"implicit"!=o.flow)throw"Not authenticated";if(null==o.timeSkew)return l("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var n=o.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+o.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";n-=e}return n<0},o.updateToken=function(e){var n=g();if(!o.refreshToken)return n.setError(),n.promise;e=e||5;var t=function(){var t=!1;if(-1==e?(t=!0,l("[KEYCLOAK] Refreshing token: forced refresh")):o.tokenParsed&&!o.isTokenExpired(e)||(t=!0,l("[KEYCLOAK] Refreshing token: token expired")),t){var i="grant_type=refresh_token&refresh_token="+o.refreshToken,a=o.endpoints.token();if(r.push(n),1==r.length){var c=new XMLHttpRequest;c.open("POST",a,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.withCredentials=!0,i+="&client_id="+encodeURIComponent(o.clientId);var s=(new Date).getTime();c.onreadystatechange=function(){if(4==c.readyState)if(200==c.status){l("[KEYCLOAK] Token refreshed"),s=(s+(new Date).getTime())/2;var e=JSON.parse(c.responseText);w(e.access_token,e.refresh_token,e.id_token,s),o.onAuthRefreshSuccess&&o.onAuthRefreshSuccess();for(var n=r.pop();null!=n;n=r.pop())n.setSuccess(!0)}else for(f("[KEYCLOAK] Failed to refresh token"),400==c.status&&o.clearToken(),o.onAuthRefreshError&&o.onAuthRefreshError(),n=r.pop();null!=n;n=r.pop())n.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")},c.send(i)}}else n.setSuccess(!1)};return s.enable?_().then((function(){t()})).catch((function(e){n.setError(e)})):t(),n.promise},o.clearToken=function(){o.token&&(w(null,null,null),o.onAuthLogout&&o.onAuthLogout(),o.loginRequired&&o.login())};const C="kc-callback-";var S=function(){if(!(this instanceof S))return new S;function e(){const e=Date.now();for(const[o,r]of n()){const n=t(r);(null===n||n<e)&&localStorage.removeItem(o)}}function n(){return Object.entries(localStorage).filter((([e])=>e.startsWith(C)))}function t(e){let n;try{n=JSON.parse(e)}catch(e){return null}return c(n)&&"expires"in n&&"number"==typeof n.expires?n.expires:null}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(n){if(n){var t=C+n,o=localStorage.getItem(t);return o&&(localStorage.removeItem(t),o=JSON.parse(o)),e(),o}},this.add=function(t){e();const o=C+t.state,r=JSON.stringify({...t,expires:Date.now()+36e5});try{localStorage.setItem(o,r)}catch(e){!function(){for(const[e]of n())localStorage.removeItem(e)}(),localStorage.setItem(o,r)}}},O=function(){if(!(this instanceof O))return new O;var e=this;e.get=function(e){if(e){var r=t(C+e);return o(C+e,"",n(-100)),r?JSON.parse(r):void 0}},e.add=function(e){o(C+e.state,JSON.stringify(e),n(60))},e.removeItem=function(e){o(e,"",n(-100))};var n=function(e){var n=new Date;return n.setTime(n.getTime()+60*e*1e3),n},t=function(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){for(var r=t[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(n))return r.substring(n.length,r.length)}return""},o=function(e,n,t){var o=e+"="+n+"; expires="+t.toUTCString()+"; ";document.cookie=o}};function U(e){return function(){o.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}function a(e){const[n,t]=e.split(".");if("string"!=typeof t)throw new Error("Unable to decode token, payload not found.");let o;try{o=function(e){let n=e.replaceAll("-","+").replaceAll("_","/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Input is not of the correct length.")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,n)=>{let t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return atob(n)}}(t)}catch(e){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:e})}try{return JSON.parse(o)}catch(e){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:e})}}function c(e){return"object"==typeof e&&null!==e}let s=null,u=null;const l=class{constructor(t){e(this,t),this.keycloak=n(this,"keycloak",7),this.auth=n(this,"auth",7),this.handleLogin=async()=>{if(!this.authenticated)try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.login()}()}catch(e){r.show(e.message,"error")}},this.handleLogout=async()=>{try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.logout()}()}catch(e){r.show(e.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null,this.serverAvailable=!1}async componentWillLoad(){this.keycloakUrl&&this.keycloakRealm&&this.keycloakClientId?(this.serverAvailable=await async function(e){try{const n=await fetch(e,{method:"HEAD",mode:"no-cors"});return n.ok||"opaque"===n.type}catch(e){return!1}}(`${this.keycloakUrl}/realms/${this.keycloakRealm}`),this.serverAvailable?await this.initAuth():r.show("Keycloak server is unavailable.","error")):console.error("Keycloak configuration props are missing.")}async initAuth(){try{const e=await function(e,n=!0){return u?(console.log("Keycloak already initialized, returning from cache"),u):(s||(s=new i({url:e.url,realm:e.realm,clientId:e.clientId})),u=s.init({onLoad:n?"check-sso":"login-required",checkLoginIframe:!1}).then((e=>e)).catch((e=>(console.error("Failed to initialize Keycloak:",e),!1))),u)}({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0);this.keycloak.emit({init:e}),(null==s?void 0:s.authenticated)&&(this.user=(null==s?void 0:s.authenticated)&&(null==s?void 0:s.idTokenParsed)?{fullname:s.idTokenParsed.name,email:s.idTokenParsed.email,lastname:s.idTokenParsed.family_name,firstname:s.idTokenParsed.given_name,username:s.idTokenParsed.preferred_username,background:"grey",token:s.token,sub:s.idTokenParsed.sub}:{},this.authenticated=!0,this.auth.emit({authenticated:this.authenticated,user:this.user}))}catch(e){r.show(e.message,"error")}}render(){return t("div",{key:"ac10895096f36f2fb3a79622972d5a8c519685eb",class:"block"},!this.authenticated&&t("eds-button",{key:"55aab5ee63214d6a1ccdefc303273df99aa309cf",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}},f=class{constructor(t){e(this,t),this.splash=n(this,"splash",7),this.inverse=!1,this.initPromise=void 0,this.isVisible=!0}componentWillLoad(){this.initPromise&&this.handleInitPromise(this.initPromise)}async watchInitPromise(e){e&&this.handleInitPromise(e)}async handleInitPromise(e){try{await e,this.hideSplash()}catch(e){this.splash.emit({type:"error",message:e.message||"Unknown error"})}}handleHideSplash(){this.hideSplash()}hideSplash(){this.isVisible=!1,this.splash.emit({type:"hidden",message:"Splash screen hidden successfully"})}render(){return this.isVisible?t(o,null,t("div",{class:"splash-overlay",style:{background:this.inverse?"black":"var(--grey-200)"}},t("div",{class:"logo-container"},t("eds-logo",this.inverse?{orientation:"vertical",type:"color-white"}:{orientation:"vertical",type:"color"})),t("div",{class:"content-container"},t("eds-spinner",{size:"1rem",thickness:"3px","border-color":"var(--grey-400)","bottom-color":"var(--grey-900)",background:"none",fullscreen:!1})))):null}static get watchers(){return{initPromise:["watchInitPromise"]}}};f.style=".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}";export{l as eds_login,f as eds_splash_screen}
@@ -0,0 +1 @@
1
+ import{r as s,h as c}from"./p-cccacbd3.js";import{e as r}from"./p-0e6d43c5.js";const e=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"9758d733a6bdc751f059588ca8c3bc916f430968",class:this.class,innerHTML:r})}};export{e as eds_icon_eu}
@@ -0,0 +1 @@
1
+ import{r as s,h as e}from"./p-cccacbd3.js";import{u as r}from"./p-d962849c.js";const c=class{constructor(e){s(this,e),this.class=""}render(){return e("span",{key:"259a1fae59093dd4e1fd6d26e07aae0e8c3de2fd",class:this.class,innerHTML:r})}};export{c as eds_icon_unknown}
@@ -0,0 +1 @@
1
+ const n=' <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n fill="none"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path d="M16 10H4" stroke="currentColor" stroke-width="2" />\n </svg>';export{n as m}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-cccacbd3.js";const c=class{constructor(a){e(this,a),this.colors=[{rgb:"R156 G225 B66",cmyk:"C52 M0 Y98 K0",hex:"#9CE142",pantoneC:"PANTONE 367 C",pantoneU:"PANTONE 374 U",background:"#9CE142"},{rgb:"R0 G201 B89",cmyk:"C75 M0 Y80 K0",hex:"#00C959",pantoneC:"PANTONE 7480 C",pantoneU:"PANTONE 7481 U",background:"#00C959"},{rgb:"R0 G165 B149",cmyk:"C78 M8 Y49 K0",hex:"#00A595",pantoneC:"PANTONE 3272 C",pantoneU:"PANTONE 3275 U",background:"#00A595"}]}render(){return a("ul",{key:"970e6baf4b258e9a0ed194316daf1c862d17733e",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},this.colors.map((e=>a("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{class:"effect-height flex items-center justify-between p-16",style:{backgroundColor:e.background}},a("div",{class:"grid"},a("span",{class:"f-body-02"},e.rgb),a("span",{class:"f-body-02 w-full"},e.cmyk),a("eds-code-block",{code:e.hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{class:"grid"},a("span",{class:"f-body-02"},e.pantoneC),a("span",{class:"f-body-02"},e.pantoneU)))))))}},d=class{constructor(a){e(this,a),this.colors=[{rgb:"R63 G169 B245",cmyk:"C68 M13 Y0 K0",hex:"#3FA9F5",pantoneC:"PANTONE 298 C",pantoneU:"PANTONE 298 U",background:"#3FA9F5"},{rgb:"R6 G68 B244",cmyk:"C92 M60 Y0 K0",hex:"#0644F4",pantoneC:"PANTONE 2728 C",pantoneU:"PANTONE 2935 U",background:"#0644F4"},{rgb:"R196 G97 B255",cmyk:"C52 M67 Y0 K0",hex:"#C461FF",pantoneC:"PANTONE 252 C",pantoneU:"PANTONE 252 U",background:"#C461FF"},{rgb:"R93 G61 B249",cmyk:"C83 M78 Y0 K0",hex:"#5D3DF9",pantoneC:"PANTONE 266 C",pantoneU:"PANTONE 2735 U",background:"#5D3DF9"},{rgb:"R255 G165 B67",cmyk:"C0 M43 Y76 K0",hex:"#FFA543",pantoneC:"PANTONE 804 C",pantoneU:"PANTONE 136 U",background:"#FFA543"},{rgb:"R255 G77 B104",cmyk:"C0 M81 Y42 K0",hex:"#FF4D68",pantoneC:"PANTONE 1785 C",pantoneU:"PANTONE 185 U",background:"#FF4D68"}],this.show=void 0}render(){return a("ul",{key:"54f985b91b28ae253a06ec313872ccc81449bf51",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},this.colors.map((e=>a("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{class:"effect-height flex items-center justify-between p-16",style:{backgroundColor:e.background}},a("div",{class:"grid"},a("span",{class:"f-body-02"},e.rgb),a("span",{class:"f-body-02 w-full"},e.cmyk),a("eds-code-block",{code:e.hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{class:"grid"},a("span",{class:"f-body-02"},e.pantoneC),a("span",{class:"f-body-02"},e.pantoneU)))))))}},s=class{constructor(a){e(this,a),this.colors=[{rgb:"R20 G20 B20",cmyk:"C78 M69 Y61 K87",hex:"#141414",pantoneC:"",pantoneU:"",background:"#141414"},{rgb:"R56 G56 B56",cmyk:"C68 M58 Y55 K63",hex:"#383838",pantoneC:"PANTONE 447 C",pantoneU:"PANTONE Neutral Black U",background:"#383838"},{rgb:"R204 G204 B204",cmyk:"C23 M17 Y18 K0",hex:"#CCCCCC",pantoneC:"PANTONE Cool Gray 2 C",pantoneU:"PANTONE Cool Gray 2 U",background:"#CCCCCC"},{rgb:"R230 G230 B230",cmyk:"C12 M8 Y9 K0",hex:"#E6E6E6",pantoneC:"PANTONE 663 C",pantoneU:"PANTONE 649 U",background:"#E6E6E6"},{rgb:"R255 G255 B255",cmyk:"C0 M0 Y0 K0",hex:"#FFFFFF",pantoneC:"",pantoneU:"",background:"#FFFFFF"}]}getTextColor(e){if(e.startsWith("#")){const a=e.slice(1);return(.299*parseInt(a.substring(0,2),16)+.587*parseInt(a.substring(2,4),16)+.114*parseInt(a.substring(4,6),16))/255>.5?"text-default":"text-inverse"}if(/rgb/i.test(e)){const a=e.replace(/rgba?\(/i,"").replace(")","").split(",").map((e=>parseFloat(e.trim()))),[c,d,s]=a;return(.299*c+.587*d+.114*s)/255>.5?"text-default":"text-inverse"}return"text-default"}render(){return a("ul",{key:"cf31dbb2778735cb95f40243f557e97c15cd29f0",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},this.colors.map((e=>{const c=this.getTextColor(e.background);return a("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{class:"effect-height flex items-center justify-between p-16",style:{backgroundColor:e.background}},a("div",{class:"grid"},a("span",{class:`f-body-02 ${c}`},e.cmyk),a("eds-code-block",{code:e.hex,style:{minWidth:"150px",marginRight:"5px"},class:c})),a("div",{class:"grid"},a("span",{class:`f-body-02 ${c}`},e.pantoneC),a("span",{class:`f-body-02 ${c}`},e.pantoneU))))})))}},f=class{constructor(a){e(this,a),this.colors=[{rgb:"R156 G225 B66",cmyk:"C52 M0 Y98 K0",hex:"#9CE142",pantoneC:"PANTONE 367 C",pantoneU:"PANTONE 374 U",background:"linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)"},{rgb:"R0 G201 B89",cmyk:"C75 M0 Y80 K0",hex:"#00C959",pantoneC:"PANTONE 7480 C",pantoneU:"PANTONE 7481 U",background:"linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)"},{rgb:"R0 G165 B149",cmyk:"C78 M8 Y49 K0",hex:"#00A595",pantoneC:"PANTONE 3272 C",pantoneU:"PANTONE 3275 U",background:"linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)"}]}render(){return a("ul",{key:"469fc7f19a4346b7e930095c489c0e89cc58e6df",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16",style:{background:"linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)"}},this.colors.map((e=>a("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{class:"effect-height flex items-center justify-between p-16"},a("div",{class:"grid"},a("span",{class:"f-body-02"},e.rgb),a("span",{class:"f-body-02 w-full"},e.cmyk),a("eds-code-block",{code:e.hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{class:"grid"},a("span",{class:"f-body-02"},e.pantoneC),a("span",{class:"f-body-02"},e.pantoneU)))))))}},b=class{constructor(a){e(this,a),this.colors=[{rgb:"R63 G169 B245",cmyk:"C68 M13 Y0 K0",hex:"#3FA9F5",pantoneC:"PANTONE 298 C",pantoneU:"PANTONE 298 U",background:"linear-gradient(to bottom, #3FA9F5, #3FA9F5)"},{rgb:"R6 G68 B244",cmyk:"C92 M60 Y0 K0",hex:"#0644F4",pantoneC:"PANTONE 2728 C",pantoneU:"PANTONE 2935 U",background:"linear-gradient(to bottom, #3FA9F5, #0644F4)"},{rgb:"R196 G97 B255",cmyk:"C52 M67 Y0 K0",hex:"#C461FF",pantoneC:"PANTONE 252 C",pantoneU:"PANTONE 252 U",background:"linear-gradient(to bottom, #C461FF, #C461FF)"},{rgb:"R93 G61 B249",cmyk:"C83 M78 Y0 K0",hex:"#5D3DF9",pantoneC:"PANTONE 266 C",pantoneU:"PANTONE 2735 U",background:"linear-gradient(to bottom, #C461FF, #5D3DF9)"},{rgb:"R255 G165 B67",cmyk:"C0 M43 Y76 K0",hex:"#FFA543",pantoneC:"PANTONE 804 C",pantoneU:"PANTONE 136 U",background:"linear-gradient(to bottom, #FFA543, #FFA543)"},{rgb:"R255 G77 B104",cmyk:"C0 M81 Y42 K0",hex:"#FF4D68",pantoneC:"PANTONE 1785 C",pantoneU:"PANTONE 185 U",background:"linear-gradient(to bottom, #FFA543, #FF4D68)"}]}render(){return a("div",{key:"bcfd5c5ca5a01138d27ae5f0867998bb40d526ac"},a("ul",{key:"6f79d13b142488f1253ba77b0a044fd8ada8d297",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a("li",{key:"e8e44a1ee3993564fc2331d0d9337a2e0ceaebc1",class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{key:"229940b2fe6264429fb7627c9d3aa02e18e90b5a",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[0].background}},a("div",{key:"0cf83c147dde777efe2783d2148e780ab328c978",class:"grid"},a("span",{key:"06f893ff45abe7c1d3cb817fe5834a5176c93f06",class:"f-body-02"},this.colors[0].rgb),a("span",{key:"3967e17ed980810d8b35b0d2b2e754f7b2e8b3e0",class:"f-body-02 w-full"},this.colors[0].cmyk),a("eds-code-block",{key:"2adc489cee7b3a3a67f62493fb5e125fc1e75c04",code:this.colors[0].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"cb27de2308afcaaaad82675c50573805e51f36f7",class:"grid"},a("span",{key:"0655190c8a8d555ed0fec5c319ff349d9fefc4d0",class:"f-body-02"},this.colors[0].pantoneC),a("span",{key:"2b75a99e922965547e9f86240c0db577ec0b9682",class:"f-body-02"},this.colors[0].pantoneU))),a("div",{key:"a8b7ef1c5309601366baffa2d3b48c6cd8893eb6",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[1].background}},a("div",{key:"fd01906e34a91984aa7ce6439abcf03673d70099",class:"grid"},a("span",{key:"d4e119028ad415d9a21988c2bf603011856bb78d",class:"f-body-02"},this.colors[1].rgb),a("span",{key:"4ba9d26645884bc1fc75741ee40509af56a9e7ae",class:"f-body-02 w-full"},this.colors[1].cmyk),a("eds-code-block",{key:"5be1c28b15b458fba099868b598ee513077562e0",code:this.colors[1].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"8609b9e68f23aaec35e76b312a425c376d508892",class:"grid"},a("span",{key:"f5cbb2d867e1a66e8371ebd73503ac1cd208f51d",class:"f-body-02"},this.colors[1].pantoneC),a("span",{key:"b72b8b23c5b1e136cb1114af22f34c6222b0d0f9",class:"f-body-02"},this.colors[1].pantoneU))))),a("eds-block-break",{key:"73e70749f132579efc19bccab4fff8b3e2d6979a"}),a("ul",{key:"ae61acfb731129d85d3c5151ac08d676113a5971",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a("li",{key:"2b59810dbc40db3dfca10a09ad524499ea87f0e9",class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{key:"e66cdabf69654205b975801bbc5ff102982fba78",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[2].background}},a("div",{key:"0f4d10150dc7694d7d4ccf59bc99a95216a00bc5",class:"grid"},a("span",{key:"85bbcdc4ca9b1f35625c15f5e742c35599084456",class:"f-body-02"},this.colors[2].rgb),a("span",{key:"0b5354d88e4ada3497bb20ae9138e3f23d31b5e7",class:"f-body-02 w-full"},this.colors[2].cmyk),a("eds-code-block",{key:"a67ca35d57d13a66fcab132565c1a246e37f42e8",code:this.colors[2].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"41322955767caa5ce439b142ccacdcb809ebc52e",class:"grid"},a("span",{key:"ab06d7acd75b1065d057a4ec8cd7af93cd91bb5c",class:"f-body-02"},this.colors[2].pantoneC),a("span",{key:"ec63cad47f9021cfd1bed508721cc5772d037bd3",class:"f-body-02"},this.colors[2].pantoneU))),a("div",{key:"ce5898b0ff195f6033d28e68dfd981a1813a23a4",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[3].background}},a("div",{key:"1126fbf08d60b5840ba76e7d838d0ebfb47a0af9",class:"grid"},a("span",{key:"d18fbf24fcedb41638c626991e9ef3706cd0e4f7",class:"f-body-02"},this.colors[3].rgb),a("span",{key:"9d7d1df13ce9ab7b447d72851a2f5f3b66cf1034",class:"f-body-02 w-full"},this.colors[3].cmyk),a("eds-code-block",{key:"5f92ba3b52a56638b7469572614d75fde23a1516",code:this.colors[3].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"4b17671dd5d18382d80ee52b8cbce51633d78603",class:"grid"},a("span",{key:"cc6a59b63bcd128d5adfd70d908cecba1324a717",class:"f-body-02"},this.colors[3].pantoneC),a("span",{key:"1cf37dab03769794f85d09d8d331306fb24e2fb3",class:"f-body-02"},this.colors[3].pantoneU))))),a("eds-block-break",{key:"1e1888c860c39e5ac93c2dcd5ff9bf65e8c3b412"}),a("ul",{key:"46ee0e1cd0a80a6da7991ee9474e4db5841b1c52",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a("li",{key:"59343e8799ddb56b0d14d3a9c43f4d43c5d82cba",class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{key:"5388a8eb55332a9a6d5b5fbe8bf022eb2a76d06c",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[4].background}},a("div",{key:"0f57d835c53d5844a155c8cfb78b1b3d0d37aecd",class:"grid"},a("span",{key:"65b91767f90901590ca0ca4d892bf4bf5ca215d2",class:"f-body-02"},this.colors[4].rgb),a("span",{key:"c2c46be9bee84e4ca53929dc9a0f5b87f48ad3ed",class:"f-body-02 w-full"},this.colors[4].cmyk),a("eds-code-block",{key:"c40e13a9f535d710cede159d555fac9bbddf7b4c",code:this.colors[4].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"0ebf1113e44f4e2704465d286022b84ddd57c43e",class:"grid"},a("span",{key:"e8c7485dfe4b2d1e36eae2cb21ec624384e5c085",class:"f-body-02"},this.colors[4].pantoneC),a("span",{key:"7d875d8c15a4f7bee7c746d9f297bd910f4cc5a6",class:"f-body-02"},this.colors[4].pantoneU))),a("div",{key:"27777683ba91c02274fd691b09a43c836e24aca3",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[5].background}},a("div",{key:"4f9b082b9e6c5d679801446fa5a7b88d18b40147",class:"grid"},a("span",{key:"6afd59aafb0f1b793a8f989f7d201a922951dacd",class:"f-body-02"},this.colors[5].rgb),a("span",{key:"2114f91de062deba17e69d9bff77670107ed3f91",class:"f-body-02 w-full"},this.colors[5].cmyk),a("eds-code-block",{key:"08f8b3155d932eed5b05f4dbfc0e3c6e23aa02b5",code:this.colors[5].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"5459b32225dbf86021dd6a95e84b73bf14a74fe8",class:"grid"},a("span",{key:"bedfeaa4250c3bf74f267d50aecc0df93fbf21ad",class:"f-body-02"},this.colors[5].pantoneC),a("span",{key:"8cc7a7a1abef3dcccad63c600692bffa5df89837",class:"f-body-02"},this.colors[5].pantoneU))))))}},t=class{constructor(a){e(this,a),this.colors=[{rgb:"R20 G20 B20",cmyk:"C78 M69 Y61 K87",hex:"#141414",pantoneC:"",pantoneU:"",background:"#141414"},{rgb:"R56 G56 B56",cmyk:"C68 M58 Y55 K63",hex:"#383838",pantoneC:"PANTONE 447 C",pantoneU:"PANTONE Neutral Black U",background:"#383838"},{rgb:"R204 G204 B204",cmyk:"C23 M17 Y18 K0",hex:"#CCCCCC",pantoneC:"PANTONE Cool Gray 2 C",pantoneU:"PANTONE Cool Gray 2 U",background:"linear-gradient(to bottom, #CCCCCC, #CCCCCC)"},{rgb:"R230 G230 B230",cmyk:"C12 M8 Y9 K0",hex:"#E6E6E6",pantoneC:"PANTONE 663 C",pantoneU:"PANTONE 649 U",background:"linear-gradient(to bottom, #CCCCCC, #E6E6E6)"},{rgb:"R255 G255 B255",cmyk:"C0 M0 Y0 K0",hex:"#FFFFFF",pantoneC:"",pantoneU:"",background:"#FFFFFF"}]}render(){return a("ul",{key:"d965ec67f29697480e0b7a6fea0743d946476153",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},a("li",{key:"7ae7f96aa9b3ce2a8d1fbc018b652a83e4f41e90",class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{key:"604c51b26cc5eec60e2e0125cda0cb60c82282f0",class:"effect-height flex items-center justify-between p-16",style:{backgroundColor:this.colors[0].background}},a("div",{key:"083d7aa003c99b54dc0c62c5ba1603c2a2a75c0a",class:"grid"},a("span",{key:"4bc89f70e22217fa58f1db0586a8d5ee0db8bdae",class:"f-body-02"},this.colors[0].rgb),a("span",{key:"d8e1bb4f6ce3e173e31685fc4435be29d9eac4a4",class:"f-body-02 w-full"},this.colors[0].cmyk),a("eds-code-block",{key:"e370e6ea2808161625aea5e9b1e6e4dd9d137f33",code:this.colors[0].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"6caf8c42e6296081a3daaca0e52c2a2776d1ab46",class:"grid"},a("span",{key:"48ac4de4d194ae630a8a14df56ff2670f2f37092",class:"f-body-02"},this.colors[0].pantoneC||"N/A"),a("span",{key:"fd02781c816a152d92c1579dc9a3115eadb0690e",class:"f-body-02"},this.colors[0].pantoneU||"N/A")))),a("li",{key:"a8562d9fb6ff77fcc6b31952a2ead12f3e0e9b50",class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{key:"4578880af1de315101deb5b42c91769dc2ca7437",class:"effect-height flex items-center justify-between p-16",style:{backgroundColor:this.colors[1].background}},a("div",{key:"ed304eb3c8c3ccb769db7d769872ce075261cb17",class:"grid"},a("span",{key:"956fe1115a5c1c4f6d2503737a46f0f1cbdc8e06",class:"f-body-02"},this.colors[1].rgb),a("span",{key:"6beb1017eec40dd27351fda2ec1609987d46fb05",class:"f-body-02 w-full"},this.colors[1].cmyk),a("eds-code-block",{key:"a9319b683d13670c827b3444484d5469142ef76d",code:this.colors[1].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"1d4f1a48a18aee0a90dd04fb336352042014ce29",class:"grid"},a("span",{key:"f4b7df5e0cde451a5e650e11b9805cc5be0c9fec",class:"f-body-02"},this.colors[1].pantoneC||"N/A"),a("span",{key:"26d4869a2207e1386f72d2833aaf819c15006c34",class:"f-body-02"},this.colors[1].pantoneU||"N/A")))),a("li",{key:"ed2b1465825e249bff9f5df38649b331f19e0672",class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{key:"22182a6d9bb64ab5dcbc38e359c3a7d7f79f3090",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[2].background}},a("div",{key:"28e2e772e7d12fbfdebec31f0aff6db397140132",class:"grid"},a("span",{key:"872451c9846398641f1a592e8c166a6a51ee7298",class:"f-body-02"},this.colors[2].rgb),a("span",{key:"84e28be1191f264e126c8579e26cbe6966010b4d",class:"f-body-02 w-full"},this.colors[2].cmyk),a("eds-code-block",{key:"a4c3dc76652feefaf3a9eba5bb3694b8dbf96be8",code:this.colors[2].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"ff3a6599da869d3f9e85cb94481206e7e6331988",class:"grid"},a("span",{key:"37ef90488eb673fdac1221f7123daa87a5a75fcd",class:"f-body-02"},this.colors[2].pantoneC),a("span",{key:"0a6fbb96f982a3e7c12af3787520335878faa9fe",class:"f-body-02"},this.colors[2].pantoneU))),a("div",{key:"b59aeb053ab1145e0d3bc163f4650cdf30afe7d4",class:"effect-height flex items-center justify-between p-16",style:{background:this.colors[3].background}},a("div",{key:"af020f1a66c2d0afcb2e2bdf189569e6d897ef32",class:"grid"},a("span",{key:"3b2f895dccdeb5e2fb5aa505f19514f012d24426",class:"f-body-02"},this.colors[3].rgb),a("span",{key:"9836a6ef47ed0dc8767a590212a23bfca2f74adf",class:"f-body-02 w-full"},this.colors[3].cmyk),a("eds-code-block",{key:"3b274f716c6ca1381e4cc0136d18e167290bfa74",code:this.colors[3].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"a41592e2172dc9f81e9d2f36328ff88de3f0954e",class:"grid"},a("span",{key:"fd7a06a256d3513bcf239fe9f778f3589895b9d5",class:"f-body-02"},this.colors[3].pantoneC),a("span",{key:"991f38ea137b729c9e9e6c9e0031940151f6e9dc",class:"f-body-02"},this.colors[3].pantoneU)))),a("li",{key:"8efdd7d9f93cba4b9479e1d3face7cec94cf1af6",class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},a("div",{key:"4223ec29cac4313dc261cb472bd880ae00279657",class:"effect-height flex items-center justify-between p-16",style:{backgroundColor:this.colors[4].background}},a("div",{key:"227dd5fab1add4083271b6e7f95c7d575d91252e",class:"grid"},a("span",{key:"e5b1aab8d67f7c67f231acd4156768f146320be3",class:"f-body-02"},this.colors[4].rgb),a("span",{key:"fc4712e37494e8e30a48bc77a0ca61c94e24075d",class:"f-body-02 w-full"},this.colors[4].cmyk),a("eds-code-block",{key:"a429c519e42e242d8ce8f661a513f7b5327ffce7",code:this.colors[4].hex,style:{minWidth:"150px",marginRight:"5px"}})),a("div",{key:"84f30a1620cacadf8c0bf1382333d74772f81f27",class:"grid"},a("span",{key:"2b6dfc8e87517e4d0421ef0e5c2391a07f033600",class:"f-body-02"},this.colors[4].pantoneC||"N/A"),a("span",{key:"c4cd5bc061ce4163a170568c0ed5934c7f30d75f",class:"f-body-02"},this.colors[4].pantoneU||"N/A")))))}};export{c as color_primary_palette,d as color_secondary_palette,s as color_support_palette,f as gradient_primary_palette,b as gradient_secondary_palette,t as gradient_support_palette}
@@ -0,0 +1 @@
1
+ import{r as s,h as r}from"./p-cccacbd3.js";import{a}from"./p-32e6c4df.js";const e=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"8b5169456f56b7294d86af4e75a9aeec20a20174",class:this.class,innerHTML:a})}};export{e as eds_icon_external}
@@ -0,0 +1 @@
1
+ import{r as s,h as e}from"./p-cccacbd3.js";import{m as r}from"./p-29041952.js";const c=class{constructor(e){s(this,e),this.class=""}render(){return e("span",{key:"770c34b98ec0e0a7e16de4d7b5b41b4afec9911e",class:this.class,innerHTML:r})}};export{c as eds_icon_more}
@@ -1 +1 @@
1
- import{r as e,h as s}from"./p-cccacbd3.js";const t=class{constructor(s){e(this,s),this.buttonText="Cookies Preferences",this.intent=void 0,this.showMatomoNotice=!1,this.noticeKey=0}toggleCookiesPopup(){sessionStorage.removeItem("matomo-deferred"),this.showMatomoNotice?this.noticeKey=this.noticeKey+1:this.showMatomoNotice=!0}render(){return s("div",{key:"13e1244d4e151f091eaca1d22dbed009bcb97786"},s("eds-link",{key:"4cfc54b447c93824f98da1f990a28fdb61018afe",size:"small",intent:this.intent,label:this.buttonText,onClick:()=>this.toggleCookiesPopup()}),this.showMatomoNotice&&s("eds-matomo-notice",{"force-show":!0,key:this.noticeKey}))}};t.style="";export{t as eds_cookies_preference}
1
+ import{r as e,h as s}from"./p-cccacbd3.js";const t=class{constructor(s){e(this,s),this.buttonText="Cookies Preferences",this.intent=void 0,this.showMatomoNotice=!1,this.noticeKey=0}toggleCookiesPopup(){sessionStorage.removeItem("matomo-deferred"),this.showMatomoNotice?this.noticeKey=this.noticeKey+1:this.showMatomoNotice=!0}render(){return s("div",{key:"fe3330180b8f3a5ff6b02156f5d76afb8cdf7edd"},s("eds-link",{key:"c5d63e486cb63bcb28b89babe606ac1eae525fe0",size:"small",intent:this.intent,label:this.buttonText,onClick:()=>this.toggleCookiesPopup()}),this.showMatomoNotice&&s("eds-matomo-notice",{"force-show":!0,key:this.noticeKey}))}};t.style="";export{t as eds_cookies_preference}