@ebrains/components 0.8.0-alpha.0 → 0.9.0-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 (560) hide show
  1. package/dist/cjs/bookmark-c61853d9.js +18 -0
  2. package/dist/cjs/color-primary-palette_6.cjs.entry.js +44 -31
  3. package/dist/cjs/{eds-components-section.cjs.entry.js → components-section.cjs.entry.js} +22 -17
  4. package/dist/cjs/components.cjs.js +1 -1
  5. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  6. package/dist/cjs/{eds-docs-palettes.cjs.entry.js → docs-palettes.cjs.entry.js} +3 -3
  7. package/dist/cjs/{eds-docs-tokens.cjs.entry.js → docs-tokens.cjs.entry.js} +3 -3
  8. package/dist/cjs/eds-accordion.cjs.entry.js +86 -0
  9. package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
  10. package/dist/cjs/{eds-accordion_17.cjs.entry.js → eds-avatar_24.cjs.entry.js} +848 -216
  11. package/dist/cjs/eds-card-desc_3.cjs.entry.js +1 -1
  12. package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
  14. package/dist/cjs/eds-frame.cjs.entry.js +5 -11
  15. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +18 -0
  17. package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
  18. package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  20. package/dist/cjs/eds-icon-external.cjs.entry.js +18 -0
  21. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  24. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-minus.cjs.entry.js +18 -0
  28. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-paper.cjs.entry.js +18 -0
  30. package/dist/cjs/eds-icon-plus.cjs.entry.js +18 -0
  31. package/dist/cjs/eds-icon-portal.cjs.entry.js +18 -0
  32. package/dist/cjs/eds-icon-private.cjs.entry.js +18 -0
  33. package/dist/cjs/eds-icon-public.cjs.entry.js +18 -0
  34. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  35. package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
  36. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  37. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +18 -0
  40. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-unknown.cjs.entry.js +18 -0
  42. package/dist/cjs/eds-icon-updown.cjs.entry.js +18 -0
  43. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  45. package/dist/cjs/eds-login_2.cjs.entry.js +23 -14
  46. package/dist/cjs/eds-matomo-notice.cjs.entry.js +123 -0
  47. package/dist/cjs/eds-modal.cjs.entry.js +6 -6
  48. package/dist/cjs/eds-pagination_2.cjs.entry.js +5 -5
  49. package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
  50. package/dist/cjs/eds-rating.cjs.entry.js +1 -1
  51. package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
  52. package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-switch.cjs.entry.js +2 -2
  54. package/dist/cjs/eds-tabs.cjs.entry.js +2 -2
  55. package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
  56. package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
  57. package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
  58. package/dist/cjs/eds-trl.cjs.entry.js +1 -1
  59. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  60. package/dist/cjs/index-2f63169d.js +74 -34
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/cjs/logo-space.cjs.entry.js +2 -2
  63. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +4 -4
  64. package/dist/cjs/{eds-logo-variations.cjs.entry.js → logo-variations-tabs.cjs.entry.js} +3 -3
  65. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  66. package/dist/cjs/minus-1da6a98a.js +13 -0
  67. package/dist/cjs/paper-0d6302f6.js +17 -0
  68. package/dist/cjs/plus-d0e00ad0.js +14 -0
  69. package/dist/cjs/portal-46212559.js +20 -0
  70. package/dist/cjs/private-38835fe7.js +27 -0
  71. package/dist/cjs/public-b519b1f6.js +18 -0
  72. package/dist/cjs/{eds-svg-repository.cjs.entry.js → svg-repository.cjs.entry.js} +30 -29
  73. package/dist/cjs/token-list_3.cjs.entry.js +5 -5
  74. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  75. package/dist/cjs/token-typography.cjs.entry.js +3 -3
  76. package/dist/cjs/tutotial-7855df3c.js +29 -0
  77. package/dist/cjs/unknown-6814e551.js +24 -0
  78. package/dist/cjs/up-and-down-d71df67d.js +14 -0
  79. package/dist/collection/collection-manifest.json +16 -5
  80. package/dist/collection/components/eds-accordion/eds-accordion.css +6 -4
  81. package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
  82. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +1 -1
  83. package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +36 -0
  84. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  85. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  86. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  87. package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +36 -0
  88. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  89. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  90. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  91. package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +36 -0
  92. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  93. package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +36 -0
  94. package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +36 -0
  95. package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +36 -0
  96. package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +36 -0
  97. package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +36 -0
  98. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  99. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
  100. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  101. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
  102. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
  103. package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +36 -0
  104. package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +36 -0
  105. package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +36 -0
  106. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  107. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  108. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  109. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  110. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  111. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  112. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  113. package/dist/collection/components/eds-img/eds-img.js +2 -2
  114. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -21
  115. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  116. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  117. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +59 -2
  118. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
  119. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +4 -1
  120. package/dist/collection/components/eds-input-field/eds-input-field.js +37 -5
  121. package/dist/collection/components/eds-input-field/eds-input-field.stories.js +1 -0
  122. package/dist/collection/components/eds-link/eds-link.css +12 -0
  123. package/dist/collection/components/eds-link/eds-link.js +17 -9
  124. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  125. package/dist/collection/components/eds-modal/eds-modal.css +32 -1
  126. package/dist/collection/components/eds-modal/eds-modal.js +5 -5
  127. package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
  128. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  129. package/dist/collection/components/eds-rating/eds-rating.js +1 -1
  130. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  131. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  132. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  133. package/dist/collection/components/eds-switch/eds-switch.js +2 -2
  134. package/dist/collection/components/eds-table/eds-table.js +4 -4
  135. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  136. package/dist/collection/components/eds-timeline/eds-timeline.css +35 -17
  137. package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
  138. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  139. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  140. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  141. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  142. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +31 -18
  143. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  144. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  145. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  146. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  147. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  148. package/dist/collection/eds-docs-ui/{eds-components-section/eds-components-section.js → components-section/components-section.js} +13 -13
  149. package/dist/collection/eds-docs-ui/components-section/functional/angular.js +2 -0
  150. package/dist/collection/eds-docs-ui/components-section/functional/installation.js +2 -0
  151. package/dist/collection/eds-docs-ui/{functional → components-section/functional}/overview.js +2 -2
  152. package/dist/collection/eds-docs-ui/components-section/functional/react.js +2 -0
  153. package/dist/collection/eds-docs-ui/components-section/functional/usage.js +2 -0
  154. package/dist/collection/eds-docs-ui/components-section/functional/vue.js +2 -0
  155. package/dist/collection/eds-docs-ui/{eds-docs-tokens/eds-docs-tokens.js → design-tokens/docs-tokens/docs-tokens.js} +3 -3
  156. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +3 -3
  157. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  158. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  159. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  160. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  161. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +3 -3
  162. package/dist/collection/eds-docs-ui/{eds-docs-palettes/eds-docs-palettes.js → docs-palettes/docs-palettes.js} +3 -3
  163. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +144 -43
  164. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  165. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +149 -68
  166. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  167. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +158 -53
  168. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  169. package/dist/collection/eds-docs-ui/{eds-logo-variations/eds-logo-variations.js → logo/logo-variations-tabs/logo-variations.js} +3 -3
  170. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +199 -169
  171. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  172. package/dist/collection/eds-docs-ui/{eds-svg-repository/eds-svg-repository.js → svg-repository/svg-repository.js} +5 -5
  173. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  174. package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +8 -0
  175. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
  176. package/dist/collection/shared-ui/eds-footer/eds-footer.js +2 -2
  177. package/dist/collection/shared-ui/eds-form/eds-form.js +46 -11
  178. package/dist/collection/shared-ui/eds-frame/eds-frame.js +28 -31
  179. package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +12 -12
  180. package/dist/collection/shared-ui/eds-header/eds-header.js +2 -2
  181. package/dist/collection/shared-ui/eds-login/eds-login.js +4 -1
  182. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  183. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +25 -13
  184. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +35 -17
  185. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
  186. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  187. package/dist/collection/shared-ui/eds-user/eds-user.css +35 -17
  188. package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
  189. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  190. package/dist/collection/utils/eds-form/formUtils.js +4 -34
  191. package/dist/components/bookmark.js +16 -0
  192. package/dist/components/{eds-logo-variations.d.ts → components-section.d.ts} +4 -4
  193. package/dist/components/{eds-components-section.js → components-section.js} +27 -22
  194. package/dist/components/components.css +35 -17
  195. package/dist/components/components.esm.js +1 -1
  196. package/dist/components/correct-use-of-colors.js +1 -1
  197. package/dist/components/{eds-svg-repository.d.ts → docs-palettes.d.ts} +4 -4
  198. package/dist/components/{eds-docs-palettes.js → docs-palettes.js} +8 -8
  199. package/dist/components/docs-tokens.d.ts +11 -0
  200. package/dist/components/{eds-docs-tokens.js → docs-tokens.js} +8 -8
  201. package/dist/components/eds-accordion2.js +2 -2
  202. package/dist/components/eds-app-root.js +1 -1
  203. package/dist/components/eds-cookies-preference.js +1 -1
  204. package/dist/components/eds-feedback.js +2 -2
  205. package/dist/components/eds-footer2.js +2 -2
  206. package/dist/components/eds-form.js +50 -45
  207. package/dist/components/eds-frame.js +7 -13
  208. package/dist/components/eds-header.js +2 -2
  209. package/dist/components/eds-icon-bluesky.js +1 -1
  210. package/dist/components/{eds-docs-palettes.d.ts → eds-icon-bookmark.d.ts} +4 -4
  211. package/dist/components/eds-icon-bookmark.js +33 -0
  212. package/dist/components/eds-icon-close.js +1 -1
  213. package/dist/components/eds-icon-copy.js +1 -1
  214. package/dist/components/eds-icon-eu.js +1 -1
  215. package/dist/components/eds-icon-external.d.ts +11 -0
  216. package/dist/components/eds-icon-external.js +33 -0
  217. package/dist/components/eds-icon-facebook.js +1 -1
  218. package/dist/components/eds-icon-gitlab.js +1 -1
  219. package/dist/components/eds-icon-linkedin.js +1 -1
  220. package/dist/components/eds-icon-loader.js +1 -1
  221. package/dist/components/eds-icon-mastodon.js +1 -1
  222. package/dist/components/eds-icon-menu.js +1 -1
  223. package/dist/components/eds-icon-minus.d.ts +11 -0
  224. package/dist/components/eds-icon-minus.js +33 -0
  225. package/dist/components/eds-icon-more.js +1 -1
  226. package/dist/components/eds-icon-paper.d.ts +11 -0
  227. package/dist/components/eds-icon-paper.js +33 -0
  228. package/dist/components/eds-icon-plus.d.ts +11 -0
  229. package/dist/components/eds-icon-plus.js +33 -0
  230. package/dist/components/{eds-docs-tokens.d.ts → eds-icon-portal.d.ts} +4 -4
  231. package/dist/components/eds-icon-portal.js +33 -0
  232. package/dist/components/eds-icon-private.d.ts +11 -0
  233. package/dist/components/eds-icon-private.js +33 -0
  234. package/dist/components/eds-icon-public.d.ts +11 -0
  235. package/dist/components/eds-icon-public.js +33 -0
  236. package/dist/components/eds-icon-search.js +1 -1
  237. package/dist/components/eds-icon-star.js +1 -1
  238. package/dist/components/eds-icon-success.js +1 -1
  239. package/dist/components/eds-icon-thumbs-down.js +1 -1
  240. package/dist/components/eds-icon-thumbs-up.js +1 -1
  241. package/dist/components/eds-icon-tutorial.d.ts +11 -0
  242. package/dist/components/eds-icon-tutorial.js +33 -0
  243. package/dist/components/eds-icon-twitter.js +1 -1
  244. package/dist/components/eds-icon-unknown.d.ts +11 -0
  245. package/dist/components/eds-icon-unknown.js +33 -0
  246. package/dist/components/eds-icon-updown.d.ts +11 -0
  247. package/dist/components/eds-icon-updown.js +33 -0
  248. package/dist/components/eds-icon-user.js +1 -1
  249. package/dist/components/eds-icon-youtube.js +1 -1
  250. package/dist/components/eds-img2.js +2 -2
  251. package/dist/components/eds-input-field2.js +37 -5
  252. package/dist/components/eds-input-footer2.js +1 -1
  253. package/dist/components/eds-input-label2.js +1 -1
  254. package/dist/components/eds-input-range2.js +26 -3
  255. package/dist/components/eds-input-search2.js +1 -1
  256. package/dist/components/eds-input-select2.js +4 -1
  257. package/dist/components/eds-input2.js +3 -5
  258. package/dist/components/eds-link2.js +18 -10
  259. package/dist/components/eds-login2.js +1 -1
  260. package/dist/components/eds-logo2.js +1 -1
  261. package/dist/components/eds-modal.js +6 -6
  262. package/dist/components/eds-pagination2.js +1 -1
  263. package/dist/components/eds-progress-bar2.js +1 -1
  264. package/dist/components/eds-rating2.js +1 -1
  265. package/dist/components/eds-section-core2.js +1 -1
  266. package/dist/components/eds-section-heading2.js +2 -2
  267. package/dist/components/eds-social-networks2.js +1 -1
  268. package/dist/components/eds-spinner2.js +1 -1
  269. package/dist/components/eds-splash-screen2.js +25 -14
  270. package/dist/components/eds-switch.js +2 -2
  271. package/dist/components/eds-table2.js +4 -4
  272. package/dist/components/eds-tabs.js +2 -2
  273. package/dist/components/eds-tag2.js +1 -1
  274. package/dist/components/eds-timeline.js +2 -2
  275. package/dist/components/eds-toast-manager.js +1 -1
  276. package/dist/components/eds-tooltip.js +1 -1
  277. package/dist/components/eds-trl.js +1 -1
  278. package/dist/components/eds-user.js +12 -18
  279. package/dist/components/incorrect-use-of-colors.js +1 -1
  280. package/dist/components/logo-space.js +69 -3
  281. package/dist/components/logo-variations-horizontal2.js +2 -2
  282. package/dist/components/logo-variations-tabs.d.ts +11 -0
  283. package/dist/components/{eds-logo-variations.js → logo-variations-tabs.js} +8 -8
  284. package/dist/components/logo-variations-vertical2.js +2 -2
  285. package/dist/components/logo-wrong-usage.js +2 -2
  286. package/dist/components/minus.js +11 -0
  287. package/dist/components/p-024c7937.js +1 -0
  288. package/dist/components/p-032f9f64.entry.js +1 -0
  289. package/dist/components/p-05754401.js +1 -0
  290. package/dist/components/{p-ceac6200.entry.js → p-058cf100.entry.js} +1 -1
  291. package/dist/components/p-063b0683.entry.js +1 -0
  292. package/dist/components/p-0ce924b1.entry.js +1 -0
  293. package/dist/components/p-18eb23ff.entry.js +1 -0
  294. package/dist/components/p-1aab55cf.entry.js +1 -0
  295. package/dist/components/p-1b2913c8.js +1 -0
  296. package/dist/components/p-1b4e9576.entry.js +1 -0
  297. package/dist/components/p-20b3a999.entry.js +1 -0
  298. package/dist/components/p-20e9ae7f.entry.js +1 -0
  299. package/dist/components/p-29e807f5.entry.js +1 -0
  300. package/dist/components/{p-d17ea8af.entry.js → p-2c1be2bb.entry.js} +1 -1
  301. package/dist/components/p-30a319d5.entry.js +1 -0
  302. package/dist/components/p-35ed7ebf.entry.js +1 -0
  303. package/dist/components/p-3932d0af.entry.js +1 -0
  304. package/dist/components/{p-4d295eb7.entry.js → p-3a7be9a7.entry.js} +1 -1
  305. package/dist/components/p-3af94671.entry.js +1 -0
  306. package/dist/components/p-41e89554.entry.js +1 -0
  307. package/dist/components/{p-07ba7c89.entry.js → p-424ba743.entry.js} +1 -1
  308. package/dist/components/p-435a8942.entry.js +1 -0
  309. package/dist/components/p-4c7852f8.entry.js +1 -0
  310. package/dist/components/p-4e8a317b.entry.js +1 -0
  311. package/dist/components/{p-0f73391d.entry.js → p-526cdc57.entry.js} +1 -1
  312. package/dist/components/p-52913e2e.entry.js +1 -0
  313. package/dist/components/{p-5cf480a8.entry.js → p-59d963d1.entry.js} +1 -1
  314. package/dist/components/p-6404e157.entry.js +1 -0
  315. package/dist/components/p-66bb44c9.entry.js +1 -0
  316. package/dist/components/p-694fc085.js +1 -0
  317. package/dist/components/p-6dc26e53.entry.js +1 -0
  318. package/dist/components/p-7198c024.js +1 -0
  319. package/dist/components/p-78fa7132.entry.js +1 -0
  320. package/dist/components/p-7dce734a.entry.js +1 -0
  321. package/dist/components/{p-01cb7ceb.entry.js → p-7fa88255.entry.js} +1 -1
  322. package/dist/components/p-83936521.entry.js +1 -0
  323. package/dist/components/{p-a6bf9bf8.entry.js → p-85ad681a.entry.js} +1 -1
  324. package/dist/components/p-8653bc36.entry.js +1 -0
  325. package/dist/components/p-86bb73dc.js +1 -0
  326. package/dist/components/p-8e3c6c63.entry.js +1 -0
  327. package/dist/components/p-923f67b5.entry.js +1 -0
  328. package/dist/components/p-93093977.entry.js +1 -0
  329. package/dist/components/{p-a02c5c4a.entry.js → p-941240b5.entry.js} +1 -1
  330. package/dist/components/p-97e95520.entry.js +1 -0
  331. package/dist/components/{p-4df00ba5.entry.js → p-9a1a6df1.entry.js} +1 -1
  332. package/dist/components/p-9dc879c9.entry.js +1 -0
  333. package/dist/components/p-a56f0579.entry.js +1 -0
  334. package/dist/components/p-a8b0fe92.entry.js +1 -0
  335. package/dist/components/p-acc4d234.entry.js +1 -0
  336. package/dist/components/p-b0b37831.entry.js +1 -0
  337. package/dist/components/p-b2b46793.entry.js +1 -0
  338. package/dist/components/p-b55b0091.entry.js +1 -0
  339. package/dist/components/p-b73410de.js +1 -0
  340. package/dist/components/p-b76aa402.entry.js +1 -0
  341. package/dist/components/p-b96fc468.entry.js +1 -0
  342. package/dist/components/p-bab07ba6.entry.js +1 -0
  343. package/dist/components/{p-abaf04e1.entry.js → p-bcbc7b7f.entry.js} +1 -1
  344. package/dist/components/p-c1e4ef92.js +1 -0
  345. package/dist/components/p-c8abff96.entry.js +1 -0
  346. package/dist/components/{p-24507e71.entry.js → p-c935aa46.entry.js} +1 -1
  347. package/dist/components/p-cccff1e3.entry.js +1 -0
  348. package/dist/components/p-cd624044.entry.js +1 -0
  349. package/dist/components/p-cdf19579.js +1 -0
  350. package/dist/components/{p-7ba154c5.entry.js → p-d525ed36.entry.js} +1 -1
  351. package/dist/components/p-d94a44b9.entry.js +1 -0
  352. package/dist/components/p-d962849c.js +1 -0
  353. package/dist/components/p-dbcf1f0e.entry.js +1 -0
  354. package/dist/components/p-dcc08064.entry.js +1 -0
  355. package/dist/components/{p-f2e66c82.entry.js → p-e64cd6f7.entry.js} +1 -1
  356. package/dist/components/p-ea089f4e.entry.js +1 -0
  357. package/dist/components/p-eebf7ebf.entry.js +1 -0
  358. package/dist/components/p-efc73304.entry.js +1 -0
  359. package/dist/components/p-f13e9ab1.entry.js +1 -0
  360. package/dist/components/p-f48a4313.entry.js +1 -0
  361. package/dist/components/{p-f223a835.entry.js → p-ff7acb55.entry.js} +1 -1
  362. package/dist/components/paper.js +15 -0
  363. package/dist/components/plus.js +12 -0
  364. package/dist/components/portal.js +18 -0
  365. package/dist/components/primary.js +1 -1
  366. package/dist/components/primary2.js +1 -1
  367. package/dist/components/private.js +25 -0
  368. package/dist/components/public.js +16 -0
  369. package/dist/components/secondary.js +1 -1
  370. package/dist/components/secondary2.js +7 -7
  371. package/dist/components/support.js +31 -18
  372. package/dist/components/support2.js +3 -3
  373. package/dist/components/svg-repository.d.ts +11 -0
  374. package/dist/components/{eds-svg-repository.js → svg-repository.js} +34 -33
  375. package/dist/components/token-list2.js +3 -3
  376. package/dist/components/token-radii2.js +1 -1
  377. package/dist/components/token-ratios.js +1 -1
  378. package/dist/components/token-shadows2.js +1 -1
  379. package/dist/components/token-spacing.js +1 -1
  380. package/dist/components/token-typography.js +3 -3
  381. package/dist/components/tutotial.js +27 -0
  382. package/dist/components/unknown.js +22 -0
  383. package/dist/components/up-and-down.js +12 -0
  384. package/dist/esm/bookmark-c200037c.js +16 -0
  385. package/dist/esm/color-primary-palette_6.entry.js +44 -31
  386. package/dist/esm/{eds-components-section.entry.js → components-section.entry.js} +22 -17
  387. package/dist/esm/components.js +1 -1
  388. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  389. package/dist/esm/{eds-docs-palettes.entry.js → docs-palettes.entry.js} +3 -3
  390. package/dist/esm/{eds-docs-tokens.entry.js → docs-tokens.entry.js} +3 -3
  391. package/dist/esm/eds-accordion.entry.js +82 -0
  392. package/dist/esm/eds-app-root.entry.js +1 -1
  393. package/dist/esm/{eds-accordion_17.entry.js → eds-avatar_24.entry.js} +841 -216
  394. package/dist/esm/eds-card-desc_3.entry.js +1 -1
  395. package/dist/esm/eds-cookies-preference.entry.js +1 -1
  396. package/dist/esm/eds-feedback.entry.js +2 -2
  397. package/dist/esm/eds-frame.entry.js +5 -11
  398. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  399. package/dist/esm/eds-icon-bookmark.entry.js +14 -0
  400. package/dist/esm/eds-icon-close.entry.js +1 -1
  401. package/dist/esm/eds-icon-copy.entry.js +1 -1
  402. package/dist/esm/eds-icon-eu.entry.js +1 -1
  403. package/dist/esm/eds-icon-external.entry.js +14 -0
  404. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  405. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  406. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  407. package/dist/esm/eds-icon-loader.entry.js +1 -1
  408. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  409. package/dist/esm/eds-icon-menu.entry.js +1 -1
  410. package/dist/esm/eds-icon-minus.entry.js +14 -0
  411. package/dist/esm/eds-icon-more.entry.js +1 -1
  412. package/dist/esm/eds-icon-paper.entry.js +14 -0
  413. package/dist/esm/eds-icon-plus.entry.js +14 -0
  414. package/dist/esm/eds-icon-portal.entry.js +14 -0
  415. package/dist/esm/eds-icon-private.entry.js +14 -0
  416. package/dist/esm/eds-icon-public.entry.js +14 -0
  417. package/dist/esm/eds-icon-search.entry.js +1 -1
  418. package/dist/esm/eds-icon-star.entry.js +1 -1
  419. package/dist/esm/eds-icon-success.entry.js +1 -1
  420. package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
  421. package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
  422. package/dist/esm/eds-icon-tutorial.entry.js +14 -0
  423. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  424. package/dist/esm/eds-icon-unknown.entry.js +14 -0
  425. package/dist/esm/eds-icon-updown.entry.js +14 -0
  426. package/dist/esm/eds-icon-user.entry.js +1 -1
  427. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  428. package/dist/esm/eds-login_2.entry.js +23 -14
  429. package/dist/esm/eds-matomo-notice.entry.js +119 -0
  430. package/dist/esm/eds-modal.entry.js +6 -6
  431. package/dist/esm/eds-pagination_2.entry.js +5 -5
  432. package/dist/esm/eds-progress-bar.entry.js +1 -1
  433. package/dist/esm/eds-rating.entry.js +1 -1
  434. package/dist/esm/eds-section-core_2.entry.js +3 -3
  435. package/dist/esm/eds-spinner.entry.js +1 -1
  436. package/dist/esm/eds-switch.entry.js +2 -2
  437. package/dist/esm/eds-tabs.entry.js +2 -2
  438. package/dist/esm/eds-timeline.entry.js +2 -2
  439. package/dist/esm/eds-toast-manager.entry.js +1 -1
  440. package/dist/esm/eds-tooltip.entry.js +1 -1
  441. package/dist/esm/eds-trl.entry.js +1 -1
  442. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  443. package/dist/esm/index-8a71b9a7.js +74 -34
  444. package/dist/esm/loader.js +1 -1
  445. package/dist/esm/logo-space.entry.js +2 -2
  446. package/dist/esm/logo-variations-horizontal_2.entry.js +4 -4
  447. package/dist/esm/{eds-logo-variations.entry.js → logo-variations-tabs.entry.js} +3 -3
  448. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  449. package/dist/esm/minus-b30a7c71.js +11 -0
  450. package/dist/esm/paper-8e74ea31.js +15 -0
  451. package/dist/esm/plus-89c07be2.js +12 -0
  452. package/dist/esm/portal-d6c8ce56.js +18 -0
  453. package/dist/esm/private-1c25ff8e.js +25 -0
  454. package/dist/esm/public-d4d8c585.js +16 -0
  455. package/dist/esm/{eds-svg-repository.entry.js → svg-repository.entry.js} +29 -28
  456. package/dist/esm/token-list_3.entry.js +5 -5
  457. package/dist/esm/token-ratios.entry.js +1 -1
  458. package/dist/esm/token-typography.entry.js +3 -3
  459. package/dist/esm/tutotial-150ee1fd.js +27 -0
  460. package/dist/esm/unknown-ed01a24c.js +22 -0
  461. package/dist/esm/up-and-down-d747abee.js +12 -0
  462. package/dist/hydrate/index.js +1122 -609
  463. package/dist/hydrate/index.mjs +1122 -609
  464. package/dist/stencil.config.js +1 -1
  465. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +11 -1
  466. package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +1 -1
  467. package/dist/types/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.d.ts +10 -0
  468. package/dist/types/components/eds-icons/eds-icon-external/eds-icon-external.d.ts +10 -0
  469. package/dist/types/components/eds-icons/eds-icon-minus/eds-icon-minus.d.ts +10 -0
  470. package/dist/types/components/eds-icons/eds-icon-paper/eds-icon-paper.d.ts +10 -0
  471. package/dist/types/components/eds-icons/eds-icon-plus/eds-icon-plus.d.ts +10 -0
  472. package/dist/types/components/eds-icons/eds-icon-portal/eds-icon-portal.d.ts +10 -0
  473. package/dist/types/components/eds-icons/eds-icon-private/eds-icon-private.d.ts +10 -0
  474. package/dist/types/components/eds-icons/eds-icon-public/eds-icon-public.d.ts +10 -0
  475. package/dist/types/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.d.ts +10 -0
  476. package/dist/types/components/eds-icons/eds-icon-unknown/eds-icon-unknown.d.ts +10 -0
  477. package/dist/types/components/eds-icons/eds-icon-updown/eds-icon-updown.d.ts +10 -0
  478. package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +0 -2
  479. package/dist/types/components/eds-input-elements/eds-input-range/eds-input-range.d.ts +12 -0
  480. package/dist/types/components/eds-input-field/eds-input-field.d.ts +3 -0
  481. package/dist/types/components.d.ts +364 -173
  482. package/dist/types/eds-docs-ui/colors/color-palette/support.d.ts +1 -0
  483. package/dist/types/eds-docs-ui/{eds-logo-variations/eds-logo-variations.d.ts → components-section/components-section.d.ts} +1 -1
  484. package/dist/types/eds-docs-ui/components-section/functional/angular.d.ts +2 -0
  485. package/dist/types/eds-docs-ui/components-section/functional/installation.d.ts +2 -0
  486. package/dist/types/eds-docs-ui/components-section/functional/overview.d.ts +2 -0
  487. package/dist/types/eds-docs-ui/components-section/functional/react.d.ts +2 -0
  488. package/dist/types/eds-docs-ui/components-section/functional/usage.d.ts +2 -0
  489. package/dist/types/eds-docs-ui/components-section/functional/vue.d.ts +2 -0
  490. package/dist/types/eds-docs-ui/{eds-docs-tokens/eds-docs-tokens.d.ts → design-tokens/docs-tokens/docs-tokens.d.ts} +1 -1
  491. package/dist/types/eds-docs-ui/{eds-docs-palettes/eds-docs-palettes.d.ts → docs-palettes/docs-palettes.d.ts} +1 -1
  492. package/dist/types/eds-docs-ui/{eds-components-section/eds-components-section.d.ts → logo/logo-variations-tabs/logo-variations.d.ts} +1 -1
  493. package/dist/types/eds-docs-ui/{eds-svg-repository/eds-svg-repository.d.ts → svg-repository/svg-repository.d.ts} +1 -1
  494. package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -0
  495. package/dist/types/shared-ui/eds-frame/eds-frame.d.ts +10 -9
  496. package/dist/types/shared-ui/eds-frame/eds-frame.stories.d.ts +3 -3
  497. package/dist/types/shared-ui/eds-login/eds-login.d.ts +3 -0
  498. package/dist/types/shared-ui/eds-splash-screen/eds-splash-screen.d.ts +2 -0
  499. package/dist/types/utils/eds-form/formUtils.d.ts +1 -1
  500. package/package.json +4 -4
  501. package/README.md +0 -370
  502. package/dist/cjs/eds-form.cjs.entry.js +0 -409
  503. package/dist/cjs/eds-input_7.cjs.entry.js +0 -357
  504. package/dist/cjs/token-spacing.cjs.entry.js +0 -16
  505. package/dist/collection/eds-docs-ui/functional/angular.js +0 -2
  506. package/dist/collection/eds-docs-ui/functional/installation.js +0 -2
  507. package/dist/collection/eds-docs-ui/functional/react.js +0 -2
  508. package/dist/collection/eds-docs-ui/functional/usage.js +0 -2
  509. package/dist/collection/eds-docs-ui/functional/vue.js +0 -2
  510. package/dist/components/eds-components-section.d.ts +0 -11
  511. package/dist/components/p-03a38eab.entry.js +0 -1
  512. package/dist/components/p-05d8fdc3.entry.js +0 -1
  513. package/dist/components/p-0918a2e2.entry.js +0 -1
  514. package/dist/components/p-096d3274.entry.js +0 -1
  515. package/dist/components/p-10a318e0.entry.js +0 -1
  516. package/dist/components/p-16e0b902.entry.js +0 -1
  517. package/dist/components/p-18e10983.entry.js +0 -1
  518. package/dist/components/p-215f3b21.entry.js +0 -1
  519. package/dist/components/p-30075622.entry.js +0 -1
  520. package/dist/components/p-32a7f571.entry.js +0 -1
  521. package/dist/components/p-3f0fd469.entry.js +0 -1
  522. package/dist/components/p-4675ac16.entry.js +0 -1
  523. package/dist/components/p-46c9a35e.entry.js +0 -1
  524. package/dist/components/p-4aefc66e.entry.js +0 -1
  525. package/dist/components/p-4bcf6077.entry.js +0 -1
  526. package/dist/components/p-5d26f527.entry.js +0 -1
  527. package/dist/components/p-64f6f07e.entry.js +0 -1
  528. package/dist/components/p-69e5af42.entry.js +0 -1
  529. package/dist/components/p-6a73ac42.entry.js +0 -1
  530. package/dist/components/p-70201ae6.entry.js +0 -1
  531. package/dist/components/p-7ba4ca15.entry.js +0 -1
  532. package/dist/components/p-84faf1b3.entry.js +0 -1
  533. package/dist/components/p-8803ecf9.entry.js +0 -1
  534. package/dist/components/p-8cf4ee6e.entry.js +0 -1
  535. package/dist/components/p-9e2a0f5a.entry.js +0 -1
  536. package/dist/components/p-9f4ad4e4.entry.js +0 -1
  537. package/dist/components/p-a0abe772.entry.js +0 -1
  538. package/dist/components/p-ae60f98b.entry.js +0 -1
  539. package/dist/components/p-b2f0f40b.entry.js +0 -1
  540. package/dist/components/p-b4332c34.entry.js +0 -1
  541. package/dist/components/p-cee891dc.entry.js +0 -1
  542. package/dist/components/p-d06faa08.entry.js +0 -1
  543. package/dist/components/p-d2159cc9.entry.js +0 -1
  544. package/dist/components/p-d895d036.entry.js +0 -1
  545. package/dist/components/p-db970de6.entry.js +0 -1
  546. package/dist/components/p-e343cd31.entry.js +0 -1
  547. package/dist/components/p-e3811d4b.entry.js +0 -1
  548. package/dist/components/p-e8bd6106.entry.js +0 -1
  549. package/dist/components/p-e96a5c8e.entry.js +0 -1
  550. package/dist/components/p-fec4cba7.entry.js +0 -1
  551. package/dist/esm/eds-form.entry.js +0 -405
  552. package/dist/esm/eds-input_7.entry.js +0 -347
  553. package/dist/esm/token-spacing.entry.js +0 -12
  554. package/dist/types/eds-docs-ui/functional/angular.d.ts +0 -2
  555. package/dist/types/eds-docs-ui/functional/installation.d.ts +0 -2
  556. package/dist/types/eds-docs-ui/functional/overview.d.ts +0 -2
  557. package/dist/types/eds-docs-ui/functional/react.d.ts +0 -2
  558. package/dist/types/eds-docs-ui/functional/usage.d.ts +0 -2
  559. package/dist/types/eds-docs-ui/functional/vue.d.ts +0 -2
  560. /package/dist/collection/eds-docs-ui/{eds-svg-repository/eds-svg-repository.css → svg-repository/svg-repository.css} +0 -0
@@ -0,0 +1 @@
1
+ import{r as s,h as e}from"./p-cccacbd3.js";import{g as r}from"./p-50e27321.js";const a=class{constructor(e){s(this,e),this.class=""}render(){return e("span",{key:"804e76ad1a00913b2e5ac695e43eeb33f1fd9727",class:this.class,innerHTML:r})}};export{a as eds_icon_gitlab}
@@ -0,0 +1 @@
1
+ import{r as s,h as c}from"./p-cccacbd3.js";import{s as r}from"./p-e2d5a487.js";const t=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4",class:this.class,innerHTML:r})}};export{t as eds_icon_star}
@@ -1 +1 @@
1
- import{r as e,h as t}from"./p-cccacbd3.js";const i={sans:"Inter, Helvetica, Arial, sans-serif"},n={"heading-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"42px",lineHeight:"100%",letterSpacing:"-0.01em"},md:{fontSize:"48px"},lg:{fontSize:"72px"},xl:{fontSize:"83px"}},"heading-02":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"36px",lineHeight:"100%",letterSpacing:"-0.01em"},lg:{fontSize:"48px"},xl:{fontSize:"60px"}},"heading-03":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"36px",lineHeight:"100%",letterSpacing:"-0.01em"},xl:{fontSize:"42px"}},"heading-04":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"28px",lineHeight:"100%",letterSpacing:"-0.01em"},xl:{fontSize:"36px"}},"heading-05":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"28px",lineHeight:"110%",letterSpacing:"-0.01em"}},"heading-06":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"22px",lineHeight:"120%"}},"body-01":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"20px",lineHeight:"140%",letterSpacing:"-0.01em"}},"body-02":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"17px",lineHeight:"150%"}},"ui-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"18px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-02":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"16px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-02-light":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"16px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-03":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"14px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-03-light":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"14px",lineHeight:"130%",letterSpacing:"-0.01em"}},"ui-04":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"12px",lineHeight:"100%",letterSpacing:"-0.01em"}},"ui-05":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"10px",lineHeight:"110%",letterSpacing:"-0.01em"}},caption:{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"12px",lineHeight:"120%"}},"display-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"120px",lineHeight:"100%",letterSpacing:"-0.01em"},lg:{fontSize:"150px"}}},a=class{constructor(t){e(this,t)}render(){return t("section",{key:"8a5867f30800adcc1e5ef9438f01b3a031110402",class:"w-full"},t("ul",{key:"d1fc83712676e6524bddc2e5d1bc50f0266b05eb",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(n).filter((([e])=>"displays"!==e)).flatMap((([e,n])=>Object.entries(n).map((([n,a])=>t("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},t("div",{class:"w-full p-4 block lg:flex items-center border border-soft rounded"},t("div",{class:"mr-auto hidden lg:block",style:{fontFamily:i.sans,fontWeight:a.fontWeight,fontSize:a.fontSize,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing}},t("span",{class:"text-default font-bold"},`${e} (${n})`)),t("div",{class:"mr-auto block lg:hidden p-4"},t("span",{class:"text-default f-heading-05"},`${e} (${n})`)),t("div",{class:"ml-auto"},t("eds-code-block",{code:`f-${e}`,language:"Utility Class",class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`${n}:f-${e}`,language:"Screen",class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:[a.fontSize&&`font-size: ${a.fontSize};`,a.lineHeight&&`line-height: ${a.lineHeight};`,a.letterSpacing&&`letter-spacing: ${a.letterSpacing};`,a.fontWeight&&`font-weight: ${a.fontWeight};`,a.fontFamily&&`font-family: ${a.fontFamily};`].filter(Boolean).join("\n"),language:"css",class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-fontFamily)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-fontWeight)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-fontSize)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-lineHeight)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-letterSpacing)`,class:"min-w-[250px] mb-4"}))))))))))}};export{a as token_typography}
1
+ import{r as e,h as t}from"./p-cccacbd3.js";const i={sans:"Inter, Helvetica, Arial, sans-serif"},n={"heading-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"42px",lineHeight:"100%",letterSpacing:"-0.01em"},md:{fontSize:"48px"},lg:{fontSize:"72px"},xl:{fontSize:"83px"}},"heading-02":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"36px",lineHeight:"100%",letterSpacing:"-0.01em"},lg:{fontSize:"48px"},xl:{fontSize:"60px"}},"heading-03":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"36px",lineHeight:"100%",letterSpacing:"-0.01em"},xl:{fontSize:"42px"}},"heading-04":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"28px",lineHeight:"100%",letterSpacing:"-0.01em"},xl:{fontSize:"36px"}},"heading-05":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"28px",lineHeight:"110%",letterSpacing:"-0.01em"}},"heading-06":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"22px",lineHeight:"120%"}},"body-01":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"20px",lineHeight:"140%",letterSpacing:"-0.01em"}},"body-02":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"17px",lineHeight:"150%"}},"ui-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"18px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-02":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"16px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-02-light":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"16px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-03":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"14px",lineHeight:"110%",letterSpacing:"-0.01em"}},"ui-03-light":{sm:{fontFamily:"var(--sans)",fontWeight:600,fontSize:"14px",lineHeight:"130%",letterSpacing:"-0.01em"}},"ui-04":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"12px",lineHeight:"100%",letterSpacing:"-0.01em"}},"ui-05":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"10px",lineHeight:"110%",letterSpacing:"-0.01em"}},caption:{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"12px",lineHeight:"120%"}},"display-01":{sm:{fontFamily:"var(--sans)",fontWeight:800,fontSize:"120px",lineHeight:"100%",letterSpacing:"-0.01em"},lg:{fontSize:"150px"}}},a=class{constructor(t){e(this,t)}render(){return t("section",{key:"b2e3951c7419dccdd31e446898a9ad126e36398e",class:"w-full"},t("ul",{key:"78ec896dad35353bcdc4d9f9d4b68873e1274933",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(n).filter((([e])=>"displays"!==e)).flatMap((([e,n])=>Object.entries(n).map((([n,a])=>t("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},t("div",{class:"w-full p-4 block lg:flex items-center border border-soft rounded"},t("div",{class:"mr-auto hidden lg:block",style:{fontFamily:i.sans,fontWeight:a.fontWeight,fontSize:a.fontSize,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing}},t("span",{class:"text-default font-bold"},`${e} (${n})`)),t("div",{class:"mr-auto block lg:hidden p-4"},t("span",{class:"text-default f-heading-05"},`${e} (${n})`)),t("div",{class:"ml-auto"},t("eds-code-block",{code:[a.fontSize&&`font-size: ${a.fontSize};`,a.lineHeight&&`line-height: ${a.lineHeight};`,a.letterSpacing&&`letter-spacing: ${a.letterSpacing};`,a.fontWeight&&`font-weight: ${a.fontWeight};`,a.fontFamily&&`font-family: ${a.fontFamily};`].filter(Boolean).join("\n"),language:"css",class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`f-${e}`,language:"Utility Class",class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`${n}:f-${e}`,language:"Screen",class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-fontFamily)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-fontWeight)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-fontSize)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-lineHeight)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:`--var(--f-${e}-letterSpacing)`,class:"min-w-[250px] mb-4"}),t("eds-code-block",{code:"--sans: Inter, Helvetica, Arial, sans-serif;",class:"min-w-[250px] mb-4"}))))))))))}};export{a as token_typography}
@@ -0,0 +1 @@
1
+ import{r as c,h as s}from"./p-cccacbd3.js";import{b as r}from"./p-81899237.js";const e=class{constructor(s){c(this,s),this.class=""}render(){return s("span",{key:"a06ab2e79a1ec7603244ec09649ccc2c9ea1950c",class:this.class,innerHTML:r})}};export{e as eds_icon_bluesky}
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./p-cccacbd3.js";const c={"1x1":"1/1","21x9":"21/9","16x9":"16/9","3x2":"3/2","4x3":"4/3","4x5":"4/5"},s=class{constructor(t){e(this,t)}render(){return t("section",{key:"595dc0d77e33bfb2109666d185933c9f5b23616e",class:"w-full"},t("eds-section-core",{key:"a3217b7808a1bc810ff0b158c4e6547bc2a77b06",tag:"div","section-title":"Aspect Ratios","heading-level":"h3"},t("ul",{key:"505f84a67b6eba8c33d1484c4cb0e94f4de68bc0",class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(c).map((([e,c])=>t("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},t("div",{class:"container ratio-box flex items-center justify-center text-center border-2 border-soft",style:{aspectRatio:c.replace("/",":"),width:"100%",maxWidth:"300px"}},t("span",{class:"text-default font-bold mr-auto"},"aspect-",e),t("span",{class:"mt-2 text-sm ml-auto"},c))))))))}};export{s as token_ratios}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-cccacbd3.js";const e=class{constructor(i){t(this,i),this.change=s(this,"change",7),this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked,this.change.emit(this.checked))},this.checked=!1,this.disabled=!1,this.labelOn="",this.labelOff=""}render(){const t=this.labelOn||this.labelOff?this.checked?this.labelOn:this.labelOff:"Toggle switch";return i("div",{key:"d9e216919a58d90017b6fec249e7fc811c4fb681",class:"switch-container"},this.labelOff&&i("span",{key:"161bca12a4c6eebf4240ea0bdd07fd1acba35228",class:"switch-label switch-label--off"},this.labelOff),i("button",{key:"855477e89765d01d5a52f3d9db279a1e5c56ea9d",type:"button",role:"switch","aria-checked":this.checked?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":t,class:{switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled},onClick:this.toggleSwitch,disabled:this.disabled},i("span",{key:"4486e5f54ee75b95fd174291e1f5d67e181f3243",class:"switch-handle"})),this.labelOn&&i("span",{key:"702e5385f6e941dcb67eecdd766725c4b04b8b7c",class:"switch-label switch-label--on"},this.labelOn))}};e.style=":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}";export{e as eds_switch}
1
+ import{r as t,c as s,h as i}from"./p-cccacbd3.js";const e=class{constructor(i){t(this,i),this.change=s(this,"change",7),this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked,this.change.emit(this.checked))},this.checked=!1,this.disabled=!1,this.labelOn="",this.labelOff=""}render(){const t=this.labelOn||this.labelOff?this.checked?this.labelOn:this.labelOff:"Toggle switch";return i("div",{key:"842d7ecb771ab848481c9f1f6a1aa2f5f04505a7",class:"switch-container"},this.labelOff&&i("span",{key:"f20f4293896dcbde94346e82d10ed748bdeae0f6",class:"switch-label switch-label--off"},this.labelOff),i("button",{key:"ac485fe118bae7f6a42ddb9f7edeccba2224312c",type:"button",role:"switch","aria-checked":this.checked?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":t,class:{switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled},onClick:this.toggleSwitch,disabled:this.disabled},i("span",{key:"3701615162b3b8946fa5b9040e77dfa20b7de3fe",class:"switch-handle"})),this.labelOn&&i("span",{key:"b57bd428c7d6818bcec1f069a920a7aa2a2e776d",class:"switch-label switch-label--on"},this.labelOn))}};e.style=":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}";export{e as eds_switch}
@@ -0,0 +1 @@
1
+ import{r as s,h as r}from"./p-cccacbd3.js";import{s as c}from"./p-2066b033.js";const a=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"6795d973d3a1fff27c2fd6181235d0284abaf3b7",class:this.class,innerHTML:c})}};export{a as eds_icon_search}
@@ -0,0 +1 @@
1
+ import{r as s,h as c}from"./p-cccacbd3.js";import{p as r}from"./p-024c7937.js";const e=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"b3a338684e00d2d612a49734cbb3cfd8e44b4eee",class:this.class,innerHTML:r})}};export{e as eds_icon_public}
@@ -0,0 +1 @@
1
+ import{r as o,h as n,g as t}from"./p-cccacbd3.js";import{e as r}from"./p-0e6d43c5.js";import{h as e}from"./p-2692f93d.js";import{h as s,a as i,b as l,c as p,v as a,d as h,e as d,f as c,g as f}from"./p-83ff4a95.js";import{v as m}from"./p-9c5a453b.js";import{g as C}from"./p-50e27321.js";import{c as w}from"./p-1ded61bd.js";import{c as g}from"./p-4587d0ef.js";import{c as v}from"./p-5d046674.js";import{c as u}from"./p-ece618b3.js";import{a as b}from"./p-32e6c4df.js";import{a as L}from"./p-c8e7c854.js";import{t as j}from"./p-373119b3.js";import{l as k}from"./p-54b8f143.js";import{f as M}from"./p-4687b64c.js";import{y as x}from"./p-ecbb679f.js";import{m as H}from"./p-5ab1d64a.js";import{b as Z}from"./p-81899237.js";import{s as B}from"./p-2066b033.js";import{l as V}from"./p-2117611b.js";import{s as y}from"./p-b822abb7.js";import{c as W}from"./p-8983de37.js";import{m as D}from"./p-aefcb641.js";import{m as _}from"./p-29041952.js";import{u as z}from"./p-46d0716d.js";import{c as N}from"./p-0be28996.js";import{u as O}from"./p-d962849c.js";import{t as S}from"./p-c776b6f8.js";import{t as J}from"./p-ba720bf3.js";import{s as R}from"./p-e2d5a487.js";import{b as U}from"./p-05754401.js";import{m as E}from"./p-86bb73dc.js";import{p as q}from"./p-b73410de.js";import{p as A}from"./p-cdf19579.js";import{p as F}from"./p-c1e4ef92.js";import{p as G}from"./p-694fc085.js";import{p as I}from"./p-024c7937.js";import{t as K}from"./p-7198c024.js";import{u as P}from"./p-1b2913c8.js";const Q=Object.freeze({__proto__:null,twitter:j,linkedin:k,facebook:M,youtube:x,mastodon:H,bluesky:Z,euSvg:r,arrowRight:L,arrowDiagonal:b,bookmark:U,chevronUp:w,chevronDown:g,chevronRight:v,chevronLeft:u,check:'<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 <rect width="20" height="20" rx="4" fill="currentColor" />\n <path d="M4 10L8 14L16 6" stroke="white" stroke-width="3" />\n </svg>',clear:' <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 fill-rule="evenodd"\n clip-rule="evenodd"\n d="M2 10C2 5.57714 5.57714 2 10 2C14.4229 2 18 5.57714 18 10C18 14.4229 14.4229 18 10 18C5.57714 18 2 14.4229 2 10ZM6.50503 7.49497L9.01005 10L6.50503 12.505L7.49497 13.495L10 10.99L12.505 13.495L13.495 12.505L10.99 10L13.495 7.49497L12.505 6.50503L10 9.01005L7.49497 6.50503L6.50503 7.49497Z"\n fill="currentColor"\n />\n </svg>',close:W,completed:'<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 <circle\n cx="10.0001"\n cy="10.0001"\n r="9.00007"\n fill="white"\n stroke="currentColor"\n stroke-width="2"\n />\n <path\n d="M6 9.33303L8.9474 12.6664L14.0001 7.33301"\n stroke="currentColor"\n stroke-width="2.00002"\n />\n </svg>',copy:N,documentation:'<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="M12 5C10.8954 5 10 5.89543 10 7V17C10 15.8954 10.8954 15 12 15H18V5H12Z"\n stroke="currentColor"\n stroke-width="1.5"\n />\n <path\n d="M8 5C9.10457 5 10 5.89543 10 7V17C10 15.8954 9.10457 15 8 15H2V5H8Z"\n stroke="currentColor"\n stroke-width="1.5"\n />\n </svg>',download:'<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="M5.91937 8H9V3H11V8H14.0806L10 13.1008L5.91937 8Z"\n fill="currentColor"\n />\n <path\n d="M5 15V12H3V15C3 16.1046 3.89543 17 5 17H15C16.1046 17 17 16.1046 17 15V12H15V15H5Z"\n fill="currentColor"\n />\n </svg>',error:'<svg\nwidth="20"\nheight="20"\nviewBox="0 0 20 20"\nfill="none"\nxmlns="http://www.w3.org/2000/svg"\n>\n<path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M10 2C5.57714 2 2 5.57714 2 10C2 14.4229 5.57714 18 10 18C14.4229 18 18 14.4229 18 10C18 5.57714 14.4229 2 10 2Z"\n stroke="currentColor"\n stroke-width="2"\n/>\n<path\n d="M7 7L10 10M13 13L10 10M10 10L13 7M10 10L7 13"\n stroke="currentColor"\n stroke-width="1.5"\n/>\n</svg>',gitlabColor:' <svg width="20" height="20" viewBox="0 0 36 36">\n <path fill="#e24329" d="M2 14l9.38 9v-9l-4-12.28c-.205-.632-1.176-.632-1.38 0z"></path>\n <path fill="#e24329" d="M34 14l-9.38 9v-9l4-12.28c.205-.632 1.176-.632 1.38 0z"></path>\n <path fill="#e24329" d="M18,34.38 3,14 33,14 Z"></path>\n <path fill="#fc6d26" d="M18,34.38 11.38,14 2,14 6,25Z"></path>\n <path fill="#fc6d26" d="M18,34.38 24.62,14 34,14 30,25Z"></path>\n <path fill="#fca326" d="M2 14L.1 20.16c-.18.565 0 1.2.5 1.56l17.42 12.66z"></path>\n <path fill="#fca326" d="M34 14l1.9 6.16c.18.565 0 1.2-.5 1.56L18 34.38z"></path>\n </svg>',gitlabBlack:C,loader:V,hLogoColor:e,hLogoBlack:s,hLogoColorWhite:i,hLogoWhite:l,hLogoWhiteNoBg:p,vLogoColor:a,vLogoBlack:h,vLogoColorWhite:d,vLogoWhite:c,vLogoWhiteNoBg:f,vLogoMargins:m,menu:D,minus:E,more:_,failed:'<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 <circle\n cx="10.0001"\n cy="10.0001"\n r="9.00007"\n fill="white"\n stroke="currentColor"\n stroke-width="2"\n />\n <path\n d="M6.21053 14.0001L10 10M13.7895 6L10 10M10 10L6 6M10 10L14.0001 14.0001"\n stroke="currentColor"\n stroke-width="2.00002"\n />\n </svg>',filter:' <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="M2 6.5H6M9 6.5H18M18 13.5H14M11 13.5H2"\n stroke="currentColor"\n stroke-width="2"\n />\n <path\n d="M10 6.5C10 7.88071 8.88071 9 7.5 9C6.11929 9 5 7.88071 5 6.5C5 5.11929 6.11929 4 7.5 4C8.88071 4 10 5.11929 10 6.5Z"\n stroke="currentColor"\n stroke-width="2"\n />\n <path\n d="M10 13.5C10 14.8807 11.1193 16 12.5 16C13.8807 16 15 14.8807 15 13.5C15 12.1193 13.8807 11 12.5 11C11.1193 11 10 12.1193 10 13.5Z"\n stroke="currentColor"\n stroke-width="2"\n />\n </svg>',group:'<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 fill-rule="evenodd"\n clip-rule="evenodd"\n d="M6.75 4C6.75 2.20507 8.20507 0.75 10 0.75C11.7949 0.75 13.25 2.20507 13.25 4C13.25 4.02739 13.2497 4.0547 13.249 4.08193C14.372 4.69978 15.3002 5.62799 15.9181 6.75102C15.9453 6.75034 15.9726 6.75 16 6.75C17.7949 6.75 19.25 8.20507 19.25 10C19.25 11.7949 17.7949 13.25 16 13.25C15.9726 13.25 15.9453 13.2497 15.9181 13.249C15.3002 14.372 14.372 15.3002 13.249 15.9181C13.2497 15.9453 13.25 15.9726 13.25 16C13.25 17.7949 11.7949 19.25 10 19.25C8.20507 19.25 6.75 17.7949 6.75 16C6.75 15.9726 6.75034 15.9453 6.75102 15.9181C5.62799 15.3002 4.69978 14.372 4.08193 13.249C4.0547 13.2497 4.02739 13.25 4 13.25C2.20507 13.25 0.75 11.7949 0.75 10C0.75 8.20507 2.20507 6.75 4 6.75C4.02739 6.75 4.0547 6.75034 4.08193 6.75102C4.69978 5.62799 5.62799 4.69978 6.75101 4.08193C6.75034 4.0547 6.75 4.02739 6.75 4ZM10 2.25C9.0335 2.25 8.25 3.0335 8.25 4C8.25 4.9665 9.0335 5.75 10 5.75C10.9665 5.75 11.75 4.9665 11.75 4C11.75 3.0335 10.9665 2.25 10 2.25ZM14.4169 12.839C13.4224 12.2833 12.75 11.2202 12.75 10C12.75 8.77982 13.4224 7.7167 14.4169 7.16096C14.0099 6.52904 13.471 5.99011 12.839 5.58309C12.2833 6.57758 11.2202 7.25 10 7.25C8.77982 7.25 7.7167 6.57759 7.16097 5.5831C6.52904 5.99011 5.99011 6.52904 5.58309 7.16097C6.57758 7.7167 7.25 8.77982 7.25 10C7.25 11.2202 6.57758 12.2833 5.58309 12.839C5.99011 13.471 6.52904 14.0099 7.16096 14.4169C7.7167 13.4224 8.77982 12.75 10 12.75C11.2202 12.75 12.2833 13.4224 12.839 14.4169C13.471 14.0099 14.0099 13.471 14.4169 12.839ZM8.25 16C8.25 15.0335 9.0335 14.25 10 14.25C10.9665 14.25 11.75 15.0335 11.75 16C11.75 16.9665 10.9665 17.75 10 17.75C9.0335 17.75 8.25 16.9665 8.25 16ZM2.25 10C2.25 10.9665 3.0335 11.75 4 11.75C4.9665 11.75 5.75 10.9665 5.75 10C5.75 9.0335 4.9665 8.25 4 8.25C3.0335 8.25 2.25 9.0335 2.25 10ZM16 11.75C15.0335 11.75 14.25 10.9665 14.25 10C14.25 9.0335 15.0335 8.25 16 8.25C16.9665 8.25 17.75 9.0335 17.75 10C17.75 10.9665 16.9665 11.75 16 11.75Z"\n fill="currentColor"\n />\n </svg>',plus:A,paper:q,privat:G,pub:I,portal:F,user:z,upDonw:P,search:B,success:y,tutorial:K,warning:' <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 fill-rule="evenodd"\n clip-rule="evenodd"\n d="M10 3C6.13 3 3 6.13 3 10C3 13.87 6.13 17 10 17C13.87 17 17 13.87 17 10C17 6.13 13.87 3 10 3Z"\n stroke="currentColor"\n stroke-width="2"\n />\n <path d="M10 6V10.5" stroke="currentColor" stroke-width="2" />\n <circle cx="10" cy="12.9209" r="1.40346" fill="currentColor" />\n </svg>',unknown:O,thumbsUp:S,thumbsDown:J,star:R,external:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.5858 3H17V9.41421L14.5 6.91421L8.70712 12.7071L7.29291 11.2929L13.0858 5.5L10.5858 3Z" fill="currentColor"></path><path d="M8 4H5C3.89543 4 3 4.89543 3 6V15C3 16.1046 3.89543 17 5 17H14C15.1046 17 16 16.1046 16 15V12H14V15H5V6H8V4Z" fill="currentColor"></path></svg>'}),T=class{constructor(n){o(this,n)}getSvgData(){return Object.entries(Q).filter((([o])=>!o.toLowerCase().includes("logo")&&!o.toLowerCase().includes("eu"))).map((([o,n])=>({name:o,icon:n})))}get hostWidth(){return this.hostEl.parentElement?this.hostEl.parentElement.offsetWidth:400}render(){const o=this.getSvgData();return n("div",{key:"f9b58e4ab1104753ef5e26fa70af162d9e5ddb1c",class:"full-width"},n("eds-table",{key:"fe21b6043cc0fc6f96cb8359f3e7ace75d3f4639","table-data":JSON.stringify(o),config:JSON.stringify({icon:{format:"svg"},name:{format:"bold"}}),"rows-per-page":10,"search-enabled":!0,"pagination-enabled":!0}))}get hostEl(){return t(this)}};T.style=":host,.full-width{display:block;width:100%}";export{T as svg_repository}
@@ -1 +1 @@
1
- import{r as t,h as s,g as e}from"./p-cccacbd3.js";import{t as a}from"./p-22f9e720.js";const i=class{constructor(s){t(this,s),this.toastId=0,this.toasts=[]}connectedCallback(){a.init(this.hostElement),this.hostElement.addEventListener("show-toast",(t=>{const{message:s,intent:e}=t.detail;this.addToast(s,e)}))}addToast(t,s){const e=this.toastId++;this.toasts=[...this.toasts,{id:e,message:t,intent:s}]}removeToast(t){this.toasts=this.toasts.filter((s=>s.id!==t))}render(){return s("div",{key:"30aec03e44a3d83d766786a4fd8c995ce3a524c2",class:"toast-container"},this.toasts.map((t=>s("div",{key:t.id},s("eds-toast",{message:t.message,intent:t.intent,onClick:()=>this.removeToast(t.id)})))))}get hostElement(){return e(this)}};i.style=".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}";export{i as eds_toast_manager}
1
+ import{r as t,h as s,g as e}from"./p-cccacbd3.js";import{t as a}from"./p-22f9e720.js";const i=class{constructor(s){t(this,s),this.toastId=0,this.toasts=[]}connectedCallback(){a.init(this.hostElement),this.hostElement.addEventListener("show-toast",(t=>{const{message:s,intent:e}=t.detail;this.addToast(s,e)}))}addToast(t,s){const e=this.toastId++;this.toasts=[...this.toasts,{id:e,message:t,intent:s}]}removeToast(t){this.toasts=this.toasts.filter((s=>s.id!==t))}render(){return s("div",{key:"0ca6de02db6bd537c7efe007c898480d07f69bc6",class:"toast-container"},this.toasts.map((t=>s("div",{key:t.id},s("eds-toast",{message:t.message,intent:t.intent,onClick:()=>this.removeToast(t.id)})))))}get hostElement(){return e(this)}};i.style=".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}";export{i as eds_toast_manager}
@@ -0,0 +1 @@
1
+ import{r as s,h as r}from"./p-cccacbd3.js";import{p as c}from"./p-b73410de.js";const a=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"cb9f7af8825527f86c200203611dae752cb3d647",class:this.class,innerHTML:c})}};export{a as eds_icon_paper}
@@ -1 +1 @@
1
- import{r as e,h as s}from"./p-cccacbd3.js";const t=class{constructor(s){e(this,s),this.tag="section",this.sectionTitle="",this.headingLevel="h2"}render(){return s(this.tag,{key:"81d5d6f6010c56bb217b32fa520fdaf96e1c7adc"},s("eds-section-heading",{key:"c47dda41c2f553ef87f432109ead4bd0debcd99c",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),s("slot",{key:"9276798e2c581440c46ff9914809e87203a86b1b"}))}};t.style="";const i=class{constructor(s){e(this,s),this.sectionTitle=void 0,this.withContainer=!0,this.headingLevel="h2",this.tag="div",this.spacingLarge=!1}getHeadingClass(){return{h1:"f-heading-01",h2:"f-heading-02",h3:"f-heading-03",h4:"f-heading-04",h5:"f-heading-05",h6:"f-heading-06"}[this.headingLevel]}render(){return s(this.tag,{key:"6741f5bbede7d44109c5e60f92290d4b2eda4d42",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},s(this.headingLevel,{key:"cc65df919db1dc1d5725116ce1ab473319185901",class:this.getHeadingClass()},this.sectionTitle))}};export{t as eds_section_core,i as eds_section_heading}
1
+ import{r as e,h as s}from"./p-cccacbd3.js";const t=class{constructor(s){e(this,s),this.tag="section",this.sectionTitle="",this.headingLevel="h2"}render(){return s(this.tag,{key:"39c4280156ca46b83538de499baa9b152360b1b4"},s("eds-section-heading",{key:"34da742e606f0e9bb485faac8aba1519eccc8934",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),s("slot",{key:"517b8ecc112565e8c6bb0bf85b02525deaa6f9df"}))}};t.style="";const i=class{constructor(s){e(this,s),this.sectionTitle=void 0,this.withContainer=!0,this.headingLevel="h2",this.tag="div",this.spacingLarge=!1}getHeadingClass(){return{h1:"f-heading-01",h2:"f-heading-02",h3:"f-heading-03",h4:"f-heading-04",h5:"f-heading-05",h6:"f-heading-06"}[this.headingLevel]}render(){return s(this.tag,{key:"961a672dc3b656b0a308131a2d334aca51df77f6",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},s(this.headingLevel,{key:"42eb2ccfba8c83cf140967e39fead6ebddc3a279",class:this.getHeadingClass()},this.sectionTitle))}};export{t as eds_section_core,i as eds_section_heading}
@@ -0,0 +1 @@
1
+ import{r as s,h as c}from"./p-cccacbd3.js";import{f as r}from"./p-4687b64c.js";const e=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"62aec1f1d6b8e4844be83c94471b64a30c1212b9",class:this.class,innerHTML:r})}};export{e as eds_icon_facebook}
@@ -0,0 +1 @@
1
+ import{r as s,h as r}from"./p-cccacbd3.js";import{t}from"./p-7198c024.js";const c=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"9db1730236b54d01a4264e92465f9a953325f7ca",class:this.class,innerHTML:t})}};export{c as eds_icon_tutorial}
@@ -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}