@ebrains/vue 0.3.0-alpha.0 → 0.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/analytics-1cde8e4a-BDRcCMlV.mjs +24 -0
  2. package/analytics-1cde8e4a-B_MD-9qW.js +1 -0
  3. package/color-2554aad6-CCcV5UJZ.mjs +131 -0
  4. package/color-2554aad6-D1hFGX4H.js +1 -0
  5. package/{color-primary-palette_6.entry-WwN9tuB9.mjs → color-primary-palette_6.entry-CgeStD0V.mjs} +21 -21
  6. package/color-primary-palette_6.entry-c_K7930i.js +1 -0
  7. package/correct-use-of-colors.entry-De5Tcxdm.mjs +59 -0
  8. package/correct-use-of-colors.entry-DpmXW_CD.js +1 -0
  9. package/{eds-accordion.entry-RvtdAQT0.mjs → eds-accordion.entry-B8TjhnWX.mjs} +19 -28
  10. package/eds-accordion.entry-BySfMYU2.js +4 -0
  11. package/{eds-avatar_17.entry-BQZz43q9.js → eds-alert_17.entry-BfpBSBVW.js} +572 -113
  12. package/{eds-avatar_17.entry-08AUpBqo.mjs → eds-alert_17.entry-IJq6baZd.mjs} +897 -452
  13. package/eds-avatar_4.entry-B7CV7v_n.mjs +283 -0
  14. package/eds-avatar_4.entry-D1CDRW_R.js +149 -0
  15. package/eds-card-generic.entry-BhLK-nyp.js +1 -0
  16. package/{eds-card-generic.entry-0IAAHjtS.mjs → eds-card-generic.entry-DIHPUjbI.mjs} +4 -4
  17. package/{eds-card-project.entry-Ckgpwy2Y.mjs → eds-card-project.entry-C2dWgXXW.mjs} +12 -11
  18. package/eds-card-project.entry-CunHqbYK.js +1 -0
  19. package/{eds-card-section.entry-B90kv8Pj.js → eds-card-section.entry-0n2V-MH6.js} +1 -1
  20. package/{eds-card-section.entry-DnktDeDm.mjs → eds-card-section.entry-Ccjil38X.mjs} +4 -4
  21. package/eds-card-tags.entry-C6jjLiGA.mjs +13 -0
  22. package/eds-card-tags.entry-CQS5AtAg.js +1 -0
  23. package/{eds-card-tool.entry-CmRu6pmc.mjs → eds-card-tool.entry-Bi8w0xds.mjs} +7 -7
  24. package/eds-card-tool.entry-DJA23zJf.js +1 -0
  25. package/{eds-card-wrapper.entry-rBHdbwzh.js → eds-card-wrapper.entry-BKPCc7ci.js} +1 -1
  26. package/{eds-card-wrapper.entry-Buesg37A.mjs → eds-card-wrapper.entry-UPnkq2JI.mjs} +4 -4
  27. package/{eds-code-block.entry-DKnuVY85.mjs → eds-code-block.entry-BZTLGjqq.mjs} +50 -9
  28. package/{eds-code-block.entry-M3x0FsRB.js → eds-code-block.entry-Ckb3jisn.js} +3 -3
  29. package/{eds-components-section.entry-BEBky2Me.js → eds-components-section.entry-B3WrdIfL.js} +45 -36
  30. package/{eds-components-section.entry-BAWU9rKy.mjs → eds-components-section.entry-D1ovrn93.mjs} +56 -37
  31. package/{eds-docs-palettes.entry-D3DdXkoo.js → eds-docs-palettes.entry-Bk77Xn04.js} +1 -1
  32. package/{eds-docs-palettes.entry-etHagd2P.mjs → eds-docs-palettes.entry-lpT0ypSs.mjs} +2 -2
  33. package/{eds-docs-tokens.entry-CIGNTs97.mjs → eds-docs-tokens.entry-Bi35zxEM.mjs} +2 -2
  34. package/{eds-docs-tokens.entry--gW4Z293.js → eds-docs-tokens.entry-DCHw-jrS.js} +1 -1
  35. package/eds-dropdown_2.entry-Bamjbo1o.mjs +115 -0
  36. package/eds-dropdown_2.entry-YEBzyKJu.js +1 -0
  37. package/{eds-form.entry-D8FLPsaS.js → eds-form.entry-a52cYx3b.js} +2 -2
  38. package/{eds-form.entry-zewjTpaa.mjs → eds-form.entry-xm937wbh.mjs} +113 -92
  39. package/{eds-frame.entry-BlOnLCrI.js → eds-frame.entry-BnT9nQwa.js} +1 -1
  40. package/{eds-frame.entry-SCGm_pju.mjs → eds-frame.entry-CU7GoLj6.mjs} +2 -2
  41. package/eds-icon-arrow-diagonal.entry-fzsCJiPP.js +1 -0
  42. package/eds-icon-arrow-diagonal.entry-kClkB8LF.mjs +13 -0
  43. package/eds-icon-arrow-right.entry-B75Ra6OD.js +1 -0
  44. package/eds-icon-arrow-right.entry-DX6A-VKL.mjs +13 -0
  45. package/{eds-icon-bluesky.entry-BDD9os2p.js → eds-icon-bluesky.entry-7tzCZSoL.js} +1 -1
  46. package/eds-icon-bluesky.entry-BNSdVu2K.mjs +13 -0
  47. package/eds-icon-chevron-down.entry-BLvZ3e_N.mjs +13 -0
  48. package/{eds-icon-chevron-down.entry-DA_Mq25N.js → eds-icon-chevron-down.entry-BUG6E9eR.js} +1 -1
  49. package/eds-icon-chevron-left.entry-BT-KYjSo.js +1 -0
  50. package/eds-icon-chevron-left.entry-Vq-R3b59.mjs +13 -0
  51. package/{eds-icon-chevron-right.entry-B2HI3b59.mjs → eds-icon-chevron-right.entry-B1qzmGrD.mjs} +2 -2
  52. package/eds-icon-chevron-right.entry-BmU_I0Y1.js +1 -0
  53. package/eds-icon-chevron-up.entry-DXXRgw1V.js +1 -0
  54. package/eds-icon-chevron-up.entry-DuySJU_i.mjs +13 -0
  55. package/eds-icon-close.entry-DDxUAr21.mjs +13 -0
  56. package/{eds-icon-close.entry-JIzBTjIa.js → eds-icon-close.entry-DS7BLTzl.js} +1 -1
  57. package/eds-icon-copy.entry-DNa1wI4F.mjs +13 -0
  58. package/{eds-icon-copy.entry-Ccrvu27o.js → eds-icon-copy.entry-Nz_P5A7p.js} +1 -1
  59. package/eds-icon-eu.entry-CLQcoimB.js +1 -0
  60. package/eds-icon-eu.entry-DTdf6Skc.mjs +13 -0
  61. package/eds-icon-facebook.entry-B9szoikj.mjs +13 -0
  62. package/eds-icon-facebook.entry-knUdck2t.js +1 -0
  63. package/eds-icon-gitlab.entry-IO7f4hgL.mjs +13 -0
  64. package/eds-icon-gitlab.entry-pKxaKA0B.js +1 -0
  65. package/{eds-icon-linkedin.entry-B4ev6evD.js → eds-icon-linkedin.entry-BD__kbDV.js} +1 -1
  66. package/eds-icon-linkedin.entry-CryUW1Er.mjs +13 -0
  67. package/{eds-icon-loader.entry-BFeh0vtX.js → eds-icon-loader.entry-B_3Sd6PB.js} +1 -1
  68. package/eds-icon-loader.entry-CxizdRT8.mjs +13 -0
  69. package/eds-icon-mastodon.entry-7152lwgd.js +1 -0
  70. package/eds-icon-mastodon.entry-MyM74vvm.mjs +13 -0
  71. package/eds-icon-menu.entry-5RRmRTxa.mjs +13 -0
  72. package/eds-icon-menu.entry-BVU8htgo.js +1 -0
  73. package/eds-icon-more.entry-KE6_EsAg.mjs +13 -0
  74. package/{eds-icon-more.entry-C-v0Cjp9.js → eds-icon-more.entry-lossstHZ.js} +1 -1
  75. package/eds-icon-search.entry-Dg0wabdP.mjs +13 -0
  76. package/eds-icon-search.entry-DiYaxnYX.js +1 -0
  77. package/{eds-icon-success.entry-DSukl_w-.js → eds-icon-success.entry-CRu9Ssdi.js} +1 -1
  78. package/eds-icon-success.entry-_fWfddhX.mjs +13 -0
  79. package/eds-icon-twitter.entry-B4xPE3Vz.js +1 -0
  80. package/eds-icon-twitter.entry-DHFpeStb.mjs +13 -0
  81. package/eds-icon-user.entry-BOv2lInW.mjs +13 -0
  82. package/eds-icon-user.entry-DkRLDrdp.js +1 -0
  83. package/eds-icon-youtube.entry-CRRGbDsw.mjs +13 -0
  84. package/eds-icon-youtube.entry-DL5fWU8k.js +1 -0
  85. package/{eds-input_7.entry-BV0VagCj.js → eds-input_7.entry-BZ9afXqe.js} +3 -3
  86. package/{eds-input_7.entry-CRNkC-uR.mjs → eds-input_7.entry-WvoE_Mue.mjs} +30 -25
  87. package/eds-login.entry-BRWK6otG.js +1 -0
  88. package/eds-login.entry-C0eOhlEq.mjs +58 -0
  89. package/{eds-logo-variations.entry-U65PDVhE.js → eds-logo-variations.entry-BnB25dDH.js} +1 -1
  90. package/eds-logo-variations.entry-Cw44vuQE.mjs +22 -0
  91. package/eds-matomo-notice.entry-BpwE1vQ3.js +1 -0
  92. package/{eds-matomo-notice.entry-y5SvHzsZ.mjs → eds-matomo-notice.entry-DsLbzeqQ.mjs} +2 -2
  93. package/eds-modal.entry-B9gXEOjT.js +1 -0
  94. package/eds-modal.entry-CCy9SRVR.mjs +84 -0
  95. package/{eds-navigator.entry-DixbL3UY.js → eds-navigator.entry-B9scz8p_.js} +1 -1
  96. package/{eds-navigator.entry-CvKDpQVM.mjs → eds-navigator.entry-Dk-4UW_d.mjs} +2 -2
  97. package/eds-pagination_2.entry-D_sngThL.js +1 -0
  98. package/{eds-pagination_2.entry-CRrIKRa-.mjs → eds-pagination_2.entry-M3CLFGN_.mjs} +25 -17
  99. package/{eds-progress-bar.entry-sdqDGSI3.mjs → eds-progress-bar.entry-BtI2_94Z.mjs} +5 -5
  100. package/{eds-progress-bar.entry-Bmjv2r3W.js → eds-progress-bar.entry-D56TNSGj.js} +1 -1
  101. package/{eds-section-core_2.entry-DBjBQ_AT.js → eds-section-core_2.entry-BmbK_RfT.js} +1 -1
  102. package/{eds-section-core_2.entry-cwkrHET8.mjs → eds-section-core_2.entry-pmUkAIz7.mjs} +6 -6
  103. package/{eds-svg-repository.entry-UvAba6M3.mjs → eds-svg-repository.entry-B3xCCFOp.mjs} +2 -2
  104. package/{eds-svg-repository.entry-BEJBJ538.js → eds-svg-repository.entry-DZ1FMRrQ.js} +2 -2
  105. package/{eds-tab.entry-CR1nFyrH.mjs → eds-tab.entry-Bpv6R_M0.mjs} +2 -2
  106. package/{eds-tab.entry-uQka8MTr.js → eds-tab.entry-DjpVgaDN.js} +1 -1
  107. package/eds-tabs-content.entry-Bj5wNmkr.js +1 -0
  108. package/{eds-tabs-content.entry-BKT7-iAV.mjs → eds-tabs-content.entry-CzwoLZzR.mjs} +4 -4
  109. package/{eds-tabs.entry-BKx8xHJ8.mjs → eds-tabs.entry-BYBPkYRs.mjs} +5 -5
  110. package/eds-tabs.entry-Cbc9yhHL.js +1 -0
  111. package/eds-timeline.entry-Bq-eo4Og.js +1 -0
  112. package/{eds-timeline.entry-B7jxBFA4.mjs → eds-timeline.entry-DJYcN7rN.mjs} +7 -7
  113. package/{eds-tooltip.entry-DJqN6_P4.mjs → eds-tooltip.entry-CTCdKTKM.mjs} +14 -6
  114. package/eds-tooltip.entry-eiFlYpfl.js +1 -0
  115. package/eds-trl.entry-8BXrp9SK.mjs +34 -0
  116. package/eds-trl.entry-DtffM-e5.js +1 -0
  117. package/eds-user.entry-DfBE6LuF.js +1 -0
  118. package/eds-user.entry-ybggwcts.mjs +66 -0
  119. package/eds-vertical-stepper.entry-DpcwvOst.mjs +27 -0
  120. package/eds-vertical-stepper.entry-O_GJNo8B.js +1 -0
  121. package/generated/components.d.ts +3 -1
  122. package/incorrect-use-of-colors.entry-CDHLoNBa.js +1 -0
  123. package/incorrect-use-of-colors.entry-DbwiJCH0.mjs +42 -0
  124. package/{index-Dg2DO7q4.mjs → index-C-Gy1Lax.mjs} +502 -498
  125. package/index-D_kZU_4I.js +21 -0
  126. package/index.js +1 -1
  127. package/index.mjs +33 -31
  128. package/{keycloak-13893af6-BLzE1H6E.mjs → keycloak-d502ec16-Ce0iGqyk.mjs} +259 -247
  129. package/keycloak-d502ec16-m7LwS-Gh.js +9 -0
  130. package/{logo-space.entry-DC5fUroI.js → logo-space.entry-D56IaLNE.js} +1 -1
  131. package/{logo-space.entry-Cf-keXHv.mjs → logo-space.entry-DERJLkyL.mjs} +7 -7
  132. package/logo-variations-horizontal_2.entry-OY3Zka_7.js +7 -0
  133. package/logo-variations-horizontal_2.entry-wp9D1MMl.mjs +29 -0
  134. package/logo-wrong-usage.entry-BniBpQrN.js +1 -0
  135. package/logo-wrong-usage.entry-RgKFDObE.mjs +14 -0
  136. package/package.json +1 -4
  137. package/{token-list_3.entry-BkOkChEb.js → token-list_3.entry-C0Tohj1W.js} +1 -1
  138. package/{token-list_3.entry-CheMK1r_.mjs → token-list_3.entry-Zgzwbhio.mjs} +4 -4
  139. package/{token-ratios.entry-rSMXHIix.mjs → token-ratios.entry-B7ZwRluK.mjs} +2 -2
  140. package/token-ratios.entry-bO5CkZ9D.js +1 -0
  141. package/token-spacing.entry-BTYazF9c.js +1 -0
  142. package/token-spacing.entry-_yyMlwbO.mjs +12 -0
  143. package/{token-typography.entry-AjIHL4M4.js → token-typography.entry-D-PPtDvs.js} +1 -1
  144. package/{token-typography.entry-CExckWkx.mjs → token-typography.entry-D4bxbB2m.mjs} +2 -2
  145. package/color-0ba8ed56-BVeDdJAE.js +0 -1
  146. package/color-0ba8ed56-D-UJpBQL.mjs +0 -207
  147. package/color-primary-palette_6.entry-_ANGnnBl.js +0 -1
  148. package/correct-use-of-colors.entry-B312hpv9.js +0 -1
  149. package/correct-use-of-colors.entry-BjxRVkfm.mjs +0 -59
  150. package/eds-accordion.entry-h9ApF51u.js +0 -4
  151. package/eds-alert.entry-C6VZ3ss6.js +0 -608
  152. package/eds-alert.entry-D5o-ZjCb.mjs +0 -688
  153. package/eds-card-desc_3.entry-D7hiMZ09.mjs +0 -87
  154. package/eds-card-desc_3.entry-Dxs_izUN.js +0 -1
  155. package/eds-card-generic.entry-DZYZP5oa.js +0 -1
  156. package/eds-card-project.entry-D7P4K88F.js +0 -1
  157. package/eds-card-tags.entry-CnHitp9l.js +0 -1
  158. package/eds-card-tags.entry-XboLA5-P.mjs +0 -13
  159. package/eds-card-tool.entry-CbreK2xg.js +0 -1
  160. package/eds-icon-arrow-diagonal.entry-CEffhVkn.mjs +0 -13
  161. package/eds-icon-arrow-diagonal.entry-abxXXnCe.js +0 -1
  162. package/eds-icon-arrow-right.entry-4zl098Gq.js +0 -1
  163. package/eds-icon-arrow-right.entry-DrA5pZ5q.mjs +0 -13
  164. package/eds-icon-bluesky.entry-CRey5aEK.mjs +0 -13
  165. package/eds-icon-chevron-down.entry-DCd5FfEN.mjs +0 -13
  166. package/eds-icon-chevron-left.entry-CiGlPKup.js +0 -1
  167. package/eds-icon-chevron-left.entry-Lmfmw6QC.mjs +0 -13
  168. package/eds-icon-chevron-right.entry-DMwxsQGs.js +0 -1
  169. package/eds-icon-chevron-up.entry-CwavCcA0.mjs +0 -13
  170. package/eds-icon-chevron-up.entry-D9pmuoVK.js +0 -1
  171. package/eds-icon-close.entry-pxvkbolY.mjs +0 -13
  172. package/eds-icon-copy.entry-Begn9c9I.mjs +0 -13
  173. package/eds-icon-eu.entry-C0ZIqXHV.js +0 -1
  174. package/eds-icon-eu.entry-CLI94rkv.mjs +0 -13
  175. package/eds-icon-facebook.entry-BIZwxPBr.js +0 -1
  176. package/eds-icon-facebook.entry-o2SylrAp.mjs +0 -13
  177. package/eds-icon-gitlab.entry-BJi35Zov.js +0 -1
  178. package/eds-icon-gitlab.entry-BWfZkXKF.mjs +0 -13
  179. package/eds-icon-linkedin.entry-Z4gD9HGr.mjs +0 -13
  180. package/eds-icon-loader.entry-DgIgWpYk.mjs +0 -13
  181. package/eds-icon-mastodon.entry-BLCaUfQY.js +0 -1
  182. package/eds-icon-mastodon.entry-C_2paQis.mjs +0 -13
  183. package/eds-icon-menu.entry-CNtaXAOo.mjs +0 -13
  184. package/eds-icon-menu.entry-CzF-GJXn.js +0 -1
  185. package/eds-icon-more.entry-4gqxzs_k.mjs +0 -13
  186. package/eds-icon-search.entry-D070uKfZ.mjs +0 -13
  187. package/eds-icon-search.entry-iLCAU3Et.js +0 -1
  188. package/eds-icon-success.entry-Ci0RTnP5.mjs +0 -13
  189. package/eds-icon-twitter.entry-D6I83zuS.mjs +0 -13
  190. package/eds-icon-twitter.entry-I9FRjdSE.js +0 -1
  191. package/eds-icon-user.entry-BI7Uw3Pp.mjs +0 -13
  192. package/eds-icon-user.entry-DcLB78T6.js +0 -1
  193. package/eds-icon-youtube.entry-CR4ml_RW.mjs +0 -13
  194. package/eds-icon-youtube.entry-DAke-XDg.js +0 -1
  195. package/eds-login.entry-DOeyfoyM.js +0 -1
  196. package/eds-login.entry-DmJw6ABI.mjs +0 -46
  197. package/eds-logo-variations.entry-o4lyGmhR.mjs +0 -22
  198. package/eds-matomo-notice.entry-tzuOtKT9.js +0 -1
  199. package/eds-modal.entry-B7Ph4m3y.js +0 -1
  200. package/eds-modal.entry-BW8crUoC.mjs +0 -65
  201. package/eds-pagination_2.entry-DoZ-NFBH.js +0 -1
  202. package/eds-rating.entry-J5lQt6oj.mjs +0 -40
  203. package/eds-rating.entry-dK5fopCq.js +0 -1
  204. package/eds-tabs-content.entry-CTM0EjTl.js +0 -1
  205. package/eds-tabs.entry-BWxSN8SV.js +0 -1
  206. package/eds-timeline.entry-D9KWrb_r.js +0 -1
  207. package/eds-tooltip.entry-CfhqHRxF.js +0 -1
  208. package/eds-trl.entry-COK7rgVS.mjs +0 -36
  209. package/eds-trl.entry-CoySvAJL.js +0 -1
  210. package/incorrect-use-of-colors.entry-D7xAYXu2.js +0 -1
  211. package/incorrect-use-of-colors.entry-DsNEjuWo.mjs +0 -42
  212. package/index-Dvww9rdy.js +0 -21
  213. package/keycloak-13893af6-NiM3zoVg.js +0 -9
  214. package/logo-variations-horizontal_2.entry-BWau6qh4.js +0 -7
  215. package/logo-variations-horizontal_2.entry-xvJ8Iiu5.mjs +0 -29
  216. package/logo-wrong-usage.entry-RcSb8NIe.mjs +0 -14
  217. package/logo-wrong-usage.entry-sU8NISwX.js +0 -1
  218. package/token-ratios.entry-Dfz4q4qy.js +0 -1
  219. package/token-spacing.entry-ByzbVlGi.js +0 -1
  220. package/token-spacing.entry-DvopunO1.mjs +0 -12
@@ -1,215 +1,704 @@
1
- import { r as t, h as e, g as s, c as g } from "./index-Dg2DO7q4.mjs";
2
- import { g as h, s as x } from "./color-0ba8ed56-D-UJpBQL.mjs";
3
- import { c } from "./index-39c58238-BwYCDOHZ.mjs";
4
- import { h as b } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
5
- import { h as f, a as m, b as p, c as u, v as y, d as v, e as w, f as k, g as z } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
6
- import { t as S } from "./toastManager-d9eee791-CEYNwx25.mjs";
7
- import { l as C, a as F, c as E, i as I, b as L, g as H } from "./keycloak-13893af6-BLzE1H6E.mjs";
8
- const A = `.border-inside {
9
- position: relative;
10
-
11
- &::after {
12
- pointer-events: none;
13
- }
14
-
15
- &::after {
16
- position: absolute;
17
- }
18
-
19
- &::after {
20
- inset: 0rem;
21
- }
1
+ import { r as l, h as e, g as o, c as a } from "./index-C-Gy1Lax.mjs";
2
+ import { c as d } from "./index-39c58238-BwYCDOHZ.mjs";
3
+ import { s as c } from "./analytics-1cde8e4a-BDRcCMlV.mjs";
4
+ import { h as g } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
5
+ import { h as b, a as h, b as f, c as m, v as p, d as u, e as y, f as v, g as w } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
6
+ import { t as k } from "./toastManager-d9eee791-CEYNwx25.mjs";
7
+ const z = `:root {
8
+ font-optical-sizing: auto;
9
+ }
10
+ html,
11
+ body {
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+ /*
16
+ :focus[data-focus-method="mouse"],
17
+ :focus[data-focus-method="touch"] {
18
+ outline: none !important;
19
+ }
20
+ */
21
+ /*FADE*/
22
+ /*FADE TRANSLATE Y*/
23
+ /*SLIDE LEFT*/
24
+ /*SLIDE BOTTOM*/
25
+ /*COLLAPSE Y*/
26
+ *, ::before, ::after {
27
+ --tw-ring-offset-shadow: 0 0 #0000;
28
+ --tw-ring-shadow: 0 0 #0000;
29
+ --tw-shadow: 0 0 #0000;
30
+ }
31
+ ::backdrop {
32
+ --tw-ring-offset-shadow: 0 0 #0000;
33
+ --tw-ring-shadow: 0 0 #0000;
34
+ --tw-shadow: 0 0 #0000;
35
+ }
36
+ /*
37
+ ! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com
38
+ */
39
+ /*
40
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
41
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
42
+ */
43
+ *,
44
+ ::before,
45
+ ::after {
46
+ box-sizing: border-box; /* 1 */
47
+ border-width: 0; /* 2 */
48
+ border-style: solid; /* 2 */
49
+ border-color: currentColor; /* 2 */
50
+ }
51
+ ::before,
52
+ ::after {
53
+ }
54
+ /*
55
+ 1. Use a consistent sensible line-height in all browsers.
56
+ 2. Prevent adjustments of font size after orientation changes in iOS.
57
+ 3. Use a more readable tab size.
58
+ 4. Use the user's configured \`sans\` font-family by default.
59
+ 5. Use the user's configured \`sans\` font-feature-settings by default.
60
+ 6. Use the user's configured \`sans\` font-variation-settings by default.
61
+ 7. Disable tap highlights on iOS
62
+ */
63
+ html {
64
+ line-height: 1.5; /* 1 */
65
+ -webkit-text-size-adjust: 100%; /* 2 */
66
+ -moz-tab-size: 4; /* 3 */
67
+ -o-tab-size: 4;
68
+ tab-size: 4; /* 3 */
69
+ font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
70
+ font-feature-settings: normal; /* 5 */
71
+ font-variation-settings: normal; /* 6 */
72
+ -webkit-tap-highlight-color: transparent; /* 7 */
73
+ }
74
+ /*
75
+ 1. Remove the margin in all browsers.
76
+ 2. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.
77
+ */
78
+ body {
79
+ margin: 0; /* 1 */
80
+ line-height: inherit; /* 2 */
81
+ }
82
+ /*
83
+ 1. Add the correct height in Firefox.
84
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
85
+ 3. Ensure horizontal rules are visible by default.
86
+ */
87
+ hr {
88
+ height: 0; /* 1 */
89
+ color: inherit; /* 2 */
90
+ border-top-width: 1px; /* 3 */
91
+ }
92
+ /*
93
+ Add the correct text decoration in Chrome, Edge, and Safari.
94
+ */
95
+ abbr:where([title]) {
96
+ -webkit-text-decoration: underline dotted;
97
+ text-decoration: underline dotted;
98
+ }
99
+ /*
100
+ Remove the default font size and weight for headings.
101
+ */
102
+ h1,
103
+ h2,
104
+ h3,
105
+ h4,
106
+ h5,
107
+ h6 {
108
+ font-size: inherit;
109
+ font-weight: inherit;
110
+ }
111
+ /*
112
+ Reset links to optimize for opt-in styling instead of opt-out.
113
+ */
114
+ a {
115
+ color: inherit;
116
+ text-decoration: inherit;
117
+ }
118
+ /*
119
+ Add the correct font weight in Edge and Safari.
120
+ */
121
+ b,
122
+ strong {
123
+ font-weight: bolder;
124
+ }
125
+ /*
126
+ 1. Use the user's configured \`mono\` font-family by default.
127
+ 2. Use the user's configured \`mono\` font-feature-settings by default.
128
+ 3. Use the user's configured \`mono\` font-variation-settings by default.
129
+ 4. Correct the odd \`em\` font sizing in all browsers.
130
+ */
131
+ code,
132
+ pre {
133
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
134
+ font-feature-settings: normal; /* 2 */
135
+ font-variation-settings: normal; /* 3 */
136
+ font-size: 1em; /* 4 */
137
+ }
138
+ /*
139
+ Add the correct font size in all browsers.
140
+ */
141
+ small {
142
+ font-size: 80%;
143
+ }
144
+ /*
145
+ Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
146
+ */
147
+ sub {
148
+ font-size: 75%;
149
+ line-height: 0;
150
+ position: relative;
151
+ vertical-align: baseline;
152
+ }
153
+ sub {
154
+ bottom: -0.25em;
155
+ }
156
+ /*
157
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
158
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
159
+ 3. Remove gaps between table borders by default.
160
+ */
161
+ table {
162
+ text-indent: 0; /* 1 */
163
+ border-color: inherit; /* 2 */
164
+ border-collapse: collapse; /* 3 */
165
+ }
166
+ /*
167
+ 1. Change the font styles in all browsers.
168
+ 2. Remove the margin in Firefox and Safari.
169
+ 3. Remove default padding in all browsers.
170
+ */
171
+ button,
172
+ input,
173
+ select,
174
+ textarea {
175
+ font-family: inherit; /* 1 */
176
+ font-feature-settings: inherit; /* 1 */
177
+ font-variation-settings: inherit; /* 1 */
178
+ font-size: 100%; /* 1 */
179
+ font-weight: inherit; /* 1 */
180
+ line-height: inherit; /* 1 */
181
+ letter-spacing: inherit; /* 1 */
182
+ color: inherit; /* 1 */
183
+ margin: 0; /* 2 */
184
+ padding: 0; /* 3 */
185
+ }
186
+ /*
187
+ Remove the inheritance of text transform in Edge and Firefox.
188
+ */
189
+ button,
190
+ select {
191
+ text-transform: none;
192
+ }
193
+ /*
194
+ 1. Correct the inability to style clickable types in iOS and Safari.
195
+ 2. Remove default button styles.
196
+ */
197
+ button,
198
+ input:where([type='button']),
199
+ input:where([type='submit']) {
200
+ -webkit-appearance: button; /* 1 */
201
+ background-color: transparent; /* 2 */
202
+ background-image: none; /* 2 */
203
+ }
204
+ /*
205
+ Use the modern Firefox focus style for all focusable elements.
206
+ */
207
+ /*
208
+ Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
209
+ */
210
+ /*
211
+ Add the correct vertical alignment in Chrome and Firefox.
212
+ */
213
+ /*
214
+ Correct the cursor style of increment and decrement buttons in Safari.
215
+ */
216
+ ::-webkit-inner-spin-button,
217
+ ::-webkit-outer-spin-button {
218
+ height: auto;
219
+ }
220
+ /*
221
+ 1. Correct the odd appearance in Chrome and Safari.
222
+ 2. Correct the outline style in Safari.
223
+ */
224
+ [type='search'] {
225
+ -webkit-appearance: textfield; /* 1 */
226
+ outline-offset: -2px; /* 2 */
227
+ }
228
+ /*
229
+ Remove the inner padding in Chrome and Safari on macOS.
230
+ */
231
+ ::-webkit-search-decoration {
232
+ -webkit-appearance: none;
233
+ }
234
+ /*
235
+ 1. Correct the inability to style clickable types in iOS and Safari.
236
+ 2. Change font properties to \`inherit\` in Safari.
237
+ */
238
+ ::-webkit-file-upload-button {
239
+ -webkit-appearance: button; /* 1 */
240
+ font: inherit; /* 2 */
241
+ }
242
+ /*
243
+ Add the correct display in Chrome and Safari.
244
+ */
245
+ /*
246
+ Removes the default spacing and border for appropriate elements.
247
+ */
22
248
 
23
- &::after {
24
- z-index: 1;
25
- }
249
+ h1,
250
+ h2,
251
+ h3,
252
+ h4,
253
+ h5,
254
+ h6,
255
+ hr,
256
+ p,
257
+ pre {
258
+ margin: 0;
259
+ }
260
+ fieldset {
261
+ margin: 0;
262
+ padding: 0;
263
+ }
264
+ ol,
265
+ ul,
266
+ menu {
267
+ list-style: none;
268
+ margin: 0;
269
+ padding: 0;
270
+ }
271
+ /*
272
+ Reset default styling for dialogs.
273
+ */
274
+ dialog {
275
+ padding: 0;
276
+ }
277
+ /*
278
+ Prevent resizing textareas horizontally by default.
279
+ */
280
+ textarea {
281
+ resize: vertical;
282
+ }
283
+ /*
284
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
285
+ 2. Set the default placeholder color to the user's configured gray 400 color.
286
+ */
287
+ input::-moz-placeholder, textarea::-moz-placeholder {
288
+ opacity: 1; /* 1 */
289
+ color: #9ca3af; /* 2 */
290
+ }
291
+ input::placeholder,
292
+ textarea::placeholder {
293
+ opacity: 1; /* 1 */
294
+ color: #9ca3af; /* 2 */
295
+ }
296
+ /*
297
+ Set the default cursor for buttons.
298
+ */
299
+ button,
300
+ [role="button"] {
301
+ cursor: pointer;
302
+ }
303
+ /*
304
+ Make sure disabled buttons don't get the pointer cursor.
305
+ */
306
+ /*
307
+ 1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
308
+ 2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
309
+ This can trigger a poorly considered lint error in some tools but is included by design.
310
+ */
311
+ img,
312
+ iframe,
313
+ object {
314
+ display: block; /* 1 */
315
+ vertical-align: middle; /* 2 */
316
+ }
317
+ /*
318
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
319
+ */
320
+ img {
321
+ max-width: 100%;
322
+ height: auto;
323
+ }
324
+ /* Make elements with the HTML hidden attribute stay hidden by default */
325
+ [hidden] {
326
+ display: none;
327
+ }
328
+ :root {
329
+ --inner-gutter: 8px;
330
+ }
331
+ @media (min-width: 750px) {
332
+ :root {
333
+ --inner-gutter: 12px;
334
+ }
335
+ }
336
+ @media (min-width: 900px) {
337
+ :root {
338
+ --inner-gutter: 16px;
339
+ }
340
+ }
341
+ @media (min-width: 1024px) {
342
+ :root {
343
+ --inner-gutter: 16px;
344
+ }
345
+ }
346
+ @media (min-width: 1280px) {
347
+ :root {
348
+ --inner-gutter: 16px;
349
+ }
350
+ }
351
+ @media (min-width: 2200px) {
352
+ :root {
353
+ --inner-gutter: 16px;
354
+ }
355
+ }
356
+ :root {
357
+ }
358
+ @media (min-width: 900px) {
359
+ :root {
360
+ }
361
+ }
362
+ :root {
363
+ --sans: Inter, Helvetica, Arial, sans-serif;
364
+ --f-ui-01-fontFamily: var(--sans);
365
+ --f-ui-01-fontWeight: 800;
366
+ --f-ui-01-fontSize: 18px;
367
+ --f-ui-01-lineHeight: 110%;
368
+ --f-ui-01-letterSpacing: -0.01em;
369
+ }
370
+ .f-ui-01 {
371
+ font-family: var(--f-ui-01-fontFamily);
372
+ font-weight: var(--f-ui-01-fontWeight);
373
+ font-size: var(--f-ui-01-fontSize);
374
+ line-height: var(--f-ui-01-lineHeight);
375
+ letter-spacing: var(--f-ui-01-letterSpacing);
376
+ }
377
+ @media (min-width: 750px) {
378
+ :root {
379
+ }
380
+ }
381
+ @media (min-width: 900px) {
382
+ :root {
383
+ }
384
+ }
385
+ @media (min-width: 1024px) {
386
+ :root {
387
+ }
388
+ }
389
+ .f-ui-01 b, .f-ui-01 strong {
390
+ font-weight: var(--f-ui-01---bold-weight, bold);
391
+ }
392
+ :root {
393
+ --grey-300: #e6e6e6;
394
+ --green-200: #d3ffdc;
395
+ --yellow-200: #ffffcb;
396
+ --red-200: #ffe0e1;
397
+ }
398
+ @media (min-width: 750px) {
399
+ .md\\:grid-line-x > *::before {
400
+ content: attr(👻);
401
+ inset-inline-start: 0;
402
+ inset-inline-end: 0;
403
+ top: 0;
404
+ bottom: calc(var(--inner-gutter) / -2);
405
+ border-top: 0 solid transparent;
406
+ border-bottom: 0 solid transparent;
407
+ }
408
+ .md\\:grid-line-xfull > *::before {
409
+ content: attr(👻);
410
+ inset-inline-start: calc(var(--inner-gutter) / -2);
411
+ inset-inline-end: calc(var(--inner-gutter) / -2);
412
+ top: 0;
413
+ bottom: calc(var(--inner-gutter) / -2);
414
+ border-top: 0 solid transparent;
415
+ border-bottom: 0 solid transparent;
416
+ }
417
+ .md\\:grid-line-x-0 > *::before {
418
+ content: none;
419
+ }
420
+ .md\\:grid-line-y > *::after {
421
+ content: attr(👻);
422
+ inset-inline-start: 0;
423
+ inset-inline-end: calc(var(--inner-gutter) / -2);
424
+ top: 0;
425
+ bottom: 0;
426
+ border-inline-start: 0 solid transparent;
427
+ border-inline-end: 0 solid transparent;
428
+ }
429
+ .md\\:grid-line-yfull > *::after {
430
+ content: attr(👻);
431
+ inset-inline-start: 0;
432
+ inset-inline-end: calc(var(--inner-gutter) / -2);
433
+ top: calc(var(--inner-gutter) / -1);
434
+ bottom: 0;
435
+ border-inline-start: 0 solid transparent;
436
+ border-inline-end: 0 solid transparent;
437
+ }
438
+ .md\\:grid-line-y-0 > *::after {
439
+ content: none;
440
+ }
441
+ }
442
+ @media (min-width: 900px) {
443
+ .lg\\:grid-line-x > *::before {
444
+ content: attr(👻);
445
+ inset-inline-start: 0;
446
+ inset-inline-end: 0;
447
+ top: 0;
448
+ bottom: calc(var(--inner-gutter) / -2);
449
+ border-top: 0 solid transparent;
450
+ border-bottom: 0 solid transparent;
451
+ }
452
+ .lg\\:grid-line-xfull > *::before {
453
+ content: attr(👻);
454
+ inset-inline-start: calc(var(--inner-gutter) / -2);
455
+ inset-inline-end: calc(var(--inner-gutter) / -2);
456
+ top: 0;
457
+ bottom: calc(var(--inner-gutter) / -2);
458
+ border-top: 0 solid transparent;
459
+ border-bottom: 0 solid transparent;
460
+ }
461
+ .lg\\:grid-line-x-0 > *::before {
462
+ content: none;
463
+ }
464
+ .lg\\:grid-line-y > *::after {
465
+ content: attr(👻);
466
+ inset-inline-start: 0;
467
+ inset-inline-end: calc(var(--inner-gutter) / -2);
468
+ top: 0;
469
+ bottom: 0;
470
+ border-inline-start: 0 solid transparent;
471
+ border-inline-end: 0 solid transparent;
472
+ }
473
+ .lg\\:grid-line-yfull > *::after {
474
+ content: attr(👻);
475
+ inset-inline-start: 0;
476
+ inset-inline-end: calc(var(--inner-gutter) / -2);
477
+ top: calc(var(--inner-gutter) / -1);
478
+ bottom: 0;
479
+ border-inline-start: 0 solid transparent;
480
+ border-inline-end: 0 solid transparent;
481
+ }
482
+ .lg\\:grid-line-y-0 > *::after {
483
+ content: none;
484
+ }
485
+ }
486
+ .border-inside {
487
+ position: relative;
26
488
 
27
489
  &::after {
28
- border-radius: 8px;
29
- }
490
+ pointer-events: none;
491
+ }
30
492
 
31
493
  &::after {
32
- border-width: 1px;
33
- }
494
+ position: absolute;
495
+ }
34
496
 
35
497
  &::after {
36
- border-width: 2px;
37
- }
498
+ inset: 0rem;
499
+ }
38
500
 
39
501
  &::after {
40
- border: 2px solid rgba(0, 0, 0, .1);
41
- }
502
+ z-index: 1;
503
+ }
42
504
 
43
505
  &::after {
44
- content: '';
45
- }
46
- }
506
+ border-radius: 8px;
507
+ }
47
508
 
48
- .border-inside-pill {
49
509
  &::after {
50
- border-radius: 100px;
51
- }
510
+ border-width: 1px;
511
+ }
52
512
 
53
513
  &::after {
54
- content: '';
55
- }
56
- }
514
+ border-width: 2px;
515
+ }
57
516
 
58
- .border-inside-inverse {
59
517
  &::after {
60
- border: 2px solid rgba(255, 255, 255, 0.3);
61
- }
518
+ border-color: rgba(0, 0, 0, .1 );
519
+ }
62
520
 
63
521
  &::after {
64
- content: '';
522
+ content: '';
65
523
  }
66
524
  }
67
-
68
- .aspect-1x1 {
69
- aspect-ratio: 1/1;
70
- }
71
-
525
+ /** region TRANSITIONS */
526
+ /** endregion */
527
+ /* region FOCUS */
528
+ /* endregion */
529
+ /* region BG */
530
+ /* endregion */
531
+ /*region shadow*/
532
+ /*endregion*/
72
533
  .flex {
73
- display: flex;
534
+ display: flex;
74
535
  }
75
-
76
- .inline-flex {
77
- display: inline-flex;
536
+ .w-full {
537
+ width: 100%;
538
+ }
539
+ .flex-row {
540
+ flex-direction: row;
78
541
  }
79
-
80
542
  .items-center {
81
- align-items: center;
543
+ align-items: center;
82
544
  }
83
-
84
- .justify-center {
85
- justify-content: center;
545
+ .justify-between {
546
+ justify-content: space-between;
86
547
  }
87
-
88
- .overflow-hidden {
89
- overflow: hidden;
548
+ .gap-x-12 {
549
+ -moz-column-gap: 0.75rem;
550
+ column-gap: 0.75rem;
90
551
  }
91
-
92
- .px-4 {
93
- padding-left: 0.25rem;
94
- padding-right: 0.25rem;
552
+ .space-y-12 > :not([hidden]) ~ :not([hidden]) {
553
+ --tw-space-y-reverse: 0;
554
+ margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
555
+ margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
95
556
  }
96
-
97
- .rounded-pill {
98
- border-radius: 100px;
557
+ .rounded-lg {
558
+ border-radius: 16px;
99
559
  }
100
-
101
- .rounded-sm {
102
- border-radius: 8px;
560
+ .bg-dark {
561
+ background-color: var(--grey-300);
103
562
  }
104
-
105
- .rounded-xs {
106
- border-radius: 4px;
563
+ .bg-error {
564
+ background-color: var(--red-200);
107
565
  }
108
-
109
-
110
- .bg-dark {
111
- background-color: var(--grey-300);
566
+ .bg-success {
567
+ background-color: var(--green-200);
112
568
  }
113
-
114
- .bg-darker {
115
- background-color: var(--grey-400);
569
+ .bg-warning {
570
+ background-color: var(--yellow-200);
116
571
  }
117
-
118
- .bg-stronger {
119
- background-color: var(--grey-900);
572
+ .p-16 {
573
+ padding: 1rem;
120
574
  }
121
-
122
- .bg-strongest {
123
- background-color: var(--black);
575
+ .p-20 {
576
+ padding: 1.25rem;
124
577
  }
125
-
126
- .text-accent {
127
- color: var(--green-500);
578
+ .px-12 {
579
+ padding-left: 0.75rem;
580
+ padding-right: 0.75rem;
128
581
  }
129
-
130
- .text-default {
131
- color: var(--black);
582
+ .px-20 {
583
+ padding-left: 1.25rem;
584
+ padding-right: 1.25rem;
132
585
  }
133
-
134
- .\\!no-underline {
135
- text-decoration-line: none !important;
586
+ .py-12 {
587
+ padding-top: 0.75rem;
588
+ padding-bottom: 0.75rem;
136
589
  }
137
-
138
- .f-ui-01 {
139
- font-family: var(--f-ui-01-fontFamily);
140
- font-weight: var(--f-ui-01-fontWeight);
141
- font-size: var(--f-ui-01-fontSize);
142
- line-height: var(--f-ui-01-lineHeight);
143
- letter-spacing: var(--f-ui-01-letterSpacing);
590
+ .py-20 {
591
+ padding-top: 1.25rem;
592
+ padding-bottom: 1.25rem;
144
593
  }
145
-
146
- .w-32 {
147
- width: 2rem;
594
+ .py-8 {
595
+ padding-top: 0.5rem;
596
+ padding-bottom: 0.5rem;
148
597
  }
149
-
150
- .w-44 {
151
- width: 2.75rem;
598
+ .pr-12 {
599
+ padding-right: 0.75rem;
152
600
  }
153
-
154
- .w-\\[54px\\] {
155
- width: 54px;
156
- }`, W = A, j = class {
601
+ .shadow {
602
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
603
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
604
+ }
605
+ [class*=underline-] {
606
+ text-decoration-line: underline;
607
+ }
608
+ .after\\:rounded-lg::after {
609
+ border-radius: 16px;
610
+ }
611
+ .after\\:border-softest::after {
612
+ border-color: rgba(0, 0, 0, .05 );
613
+ }
614
+ `, S = z, C = d(["w-full bg-dark rounded-lg border-inside after:border-softest after:rounded-lg"], {
615
+ variants: {
616
+ intent: {
617
+ default: "",
618
+ warning: "bg-warning",
619
+ error: "bg-error",
620
+ success: "bg-success"
621
+ },
622
+ direction: {
623
+ vertical: "space-y-12",
624
+ horizontal: "flex flex-row items-center justify-between gap-x-12"
625
+ },
626
+ withBtn: {
627
+ false: "",
628
+ true: ""
629
+ }
630
+ },
631
+ compoundVariants: [
632
+ {
633
+ direction: "horizontal",
634
+ withBtn: !0,
635
+ class: "px-20 pr-12 py-12"
636
+ },
637
+ {
638
+ direction: "horizontal",
639
+ withBtn: !1,
640
+ class: "p-20"
641
+ },
642
+ {
643
+ direction: "vertical",
644
+ withBtn: !0,
645
+ class: "p-16"
646
+ },
647
+ {
648
+ direction: "vertical",
649
+ withBtn: !1,
650
+ class: "px-12 py-20"
651
+ }
652
+ ],
653
+ defaultVariants: {
654
+ intent: "default",
655
+ direction: "horizontal"
656
+ }
657
+ }), F = class {
157
658
  constructor(n) {
158
- t(this, n), this.firstName = void 0, this.lastName = void 0, this.picture = void 0, this.initials = void 0, this.color = void 0, this.rounded = !1, this.initialsStrong = !1;
659
+ l(this, n), this.message = void 0, this.pressableLabel = void 0, this.pressableUrl = void 0, this.direction = "horizontal", this.intent = "default", this.withBtn = !1;
159
660
  }
160
- /**
161
- * Computed initials based on the provided `initials` prop or derived from `firstName` and `lastName`.
162
- * @returns {string | undefined} Initials for display in the avatar.
163
- */
164
- get computedInitials() {
165
- if (this.initials)
166
- return (this.initials.match(/.{1,3}/g) || [])[0] || "";
167
- if (this.firstName && this.lastName)
168
- return `${this.firstName.charAt(0)}${this.lastName.charAt(0)}`.toUpperCase();
661
+ componentWillLoad() {
662
+ this.withBtn = !!this.pressableLabel;
169
663
  }
170
- /**
171
- * Computes the CSS classes for the avatar container based on provided props like `rounded`, `color`, and `picture`.
172
- * @returns {string} List of CSS classes to apply to the avatar container.
173
- */
174
- get containerClasses() {
175
- return [
176
- "border-inside",
177
- "aspect-1x1",
178
- "flex",
179
- "items-center",
180
- "justify-center",
181
- "overflow-hidden",
182
- this.picture ? "" : "px-4",
183
- this.rounded ? "rounded-pill border-inside-pill w-32" : "w-[54px] rounded-sm",
184
- this.color ? "border-inside-inverse" : "",
185
- this.color === "grey" ? "bg-dark" : this.color && !this.picture ? h({
186
- color: this.color,
187
- direction: "top",
188
- pseudo: !1
189
- }) : this.picture ? "" : "bg-strongest text-accent"
190
- ].join(" ");
664
+ componentDidLoad() {
665
+ var n;
666
+ const i = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelector("eds-link");
667
+ i && this.emitContext(i);
668
+ }
669
+ emitContext(n) {
670
+ const i = new CustomEvent("parentContext", {
671
+ detail: {
672
+ componentName: this.el.tagName.toLowerCase(),
673
+ identifier: null
674
+ }
675
+ });
676
+ n.dispatchEvent(i);
191
677
  }
192
- /**
193
- * Renders the avatar component. Displays either an image using `eds-img` or initials depending on whether `picture` or `computedInitials` is set.
194
- * @returns {JSX.Element} The rendered avatar component.
195
- */
196
678
  render() {
197
- return e("div", { key: "716279a35cc9235da991563d5f84d2dedbdae001", class: this.containerClasses }, this.picture ? e("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: !0, withBg: !0 }) : e("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials));
679
+ return e("div", { key: "519742081f681d6d67bc1b42c89fe1b6d005fe0f", class: C({
680
+ intent: this.intent,
681
+ direction: this.direction,
682
+ withBtn: this.withBtn
683
+ }), role: "alert" }, e("p", { key: "6a5d11fdc2a975512b12c307286b0a8b06998bec", class: "f-ui-01 py-8" }, this.message), this.withBtn && (this.pressableUrl ? e("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: !0 }) : null));
684
+ }
685
+ get el() {
686
+ return o(this);
198
687
  }
199
688
  };
200
- j.style = W;
201
- const O = ".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}", U = O, T = class {
689
+ F.style = S;
690
+ const E = ".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}", L = E, H = class {
202
691
  constructor(n) {
203
- t(this, n), this.extraClass = "";
692
+ l(this, n), this.extraClass = "";
204
693
  }
205
694
  render() {
206
- return e("hr", { key: "85b5253d4abb77072424452d2ff6a0d631e67652", class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
695
+ return e("hr", { key: "8cb39dda5d7f909b459390fe7e3f86dfd147ba98", class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
207
696
  }
208
697
  };
209
- T.style = U;
210
- const B = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}", M = B, R = class {
698
+ H.style = L;
699
+ const I = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}", W = I, j = class {
211
700
  constructor(n) {
212
- t(this, n), this.updateScreenSize = () => {
701
+ l(this, n), this.updateScreenSize = () => {
213
702
  const i = window.innerWidth;
214
703
  i < 769 ? (this.maxVisibleItems = 3, this.isSmallScreen = !0) : i <= 1024 ? (this.maxVisibleItems = 4, this.isSmallScreen = !0) : (this.maxVisibleItems = 6, this.isSmallScreen = !1);
215
704
  }, this.items = [], this.intent = "ghost", this.parsedItems = [], this.isSmallScreen = !1, this.maxVisibleItems = 6;
@@ -222,8 +711,8 @@ const B = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{
222
711
  try {
223
712
  const i = JSON.parse(n);
224
713
  this.parsedItems = Array.isArray(i) ? i : [];
225
- } catch (i) {
226
- console.error("Error parsing breadcrumb items:", i), this.parsedItems = [];
714
+ } catch {
715
+ this.parsedItems = [];
227
716
  }
228
717
  else Array.isArray(n) ? this.parsedItems = n : this.parsedItems = [];
229
718
  }
@@ -242,8 +731,10 @@ const B = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{
242
731
  * It emits a custom event for each `eds-link` element contained within the breadcrumb.
243
732
  */
244
733
  componentDidLoad() {
245
- this.el.shadowRoot.querySelectorAll("eds-link").forEach((i) => {
246
- this.emitContext(i);
734
+ var n;
735
+ const i = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-link");
736
+ i == null || i.forEach((r) => {
737
+ this.emitContext(r);
247
738
  });
248
739
  }
249
740
  /**
@@ -262,52 +753,47 @@ const B = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{
262
753
  n.dispatchEvent(i);
263
754
  }
264
755
  /**
265
- * Truncates breadcrumb items based on the maxVisibleItems value.
266
- * Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
756
+ * Returns breadcrumb items with potential truncation if there are too many.
757
+ * It inserts an ellipsis item where necessary.
267
758
  */
268
759
  getTruncatedItems() {
269
- const n = this.parsedItems.length;
760
+ const n = this.parsedItems.length, i = { label: "...", url: "", isHidden: !0 };
270
761
  if (n > this.maxVisibleItems) {
271
- const i = this.parsedItems[0], r = this.parsedItems.slice(-2), l = { label: "...", url: "", isHidden: !0 };
762
+ const r = this.parsedItems[0], t = this.parsedItems.slice(-2);
272
763
  if (this.maxVisibleItems === 3)
273
- return [
274
- this.truncateLabel(i),
275
- l,
276
- ...r.map((o, d) => d === r.length - 1 ? o : this.truncateLabel(o))
277
- ];
764
+ return [r, i, ...t];
278
765
  if (this.maxVisibleItems === 4) {
279
- const o = this.parsedItems[Math.floor(n / 2)];
280
- return [
281
- this.truncateLabel(i),
282
- this.truncateLabel(o),
283
- l,
284
- ...r.map((d, a) => a === r.length - 1 ? d : this.truncateLabel(d))
285
- ];
766
+ const s = this.parsedItems[Math.floor(n / 2)];
767
+ return [r, s, i, ...t];
286
768
  }
287
769
  }
288
- return this.parsedItems.map((i, r) => r === this.parsedItems.length - 1 ? i : this.truncateLabel(i));
770
+ return this.parsedItems;
289
771
  }
290
772
  /**
291
- * Truncates the label of a breadcrumb item to a maximum of 10 characters
292
- * if the screen is small.
773
+ * Helper to determine the display label and full label.
774
+ * If the label is longer than 15 characters and the item is not the current (last) item,
775
+ * we display a truncated version but use the full label for aria attributes.
293
776
  */
294
- truncateLabel(n) {
295
- return n.label.length > 15 ? Object.assign(Object.assign({}, n), { label: `${n.label.slice(0, 15)}...` }) : n;
777
+ getLabels(n, i) {
778
+ return !i && n.label.length > 15 ? { displayLabel: `${n.label.slice(0, 15)}...`, fullLabel: n.label } : { displayLabel: n.label, fullLabel: n.label };
296
779
  }
297
780
  /**
298
781
  * Render method for the breadcrumb component.
299
782
  * It creates a navigation element with an ordered list of breadcrumb links.
300
- * The last link is disabled and marked as the current page.
783
+ * The last link is marked as the current page.
301
784
  */
302
785
  render() {
303
786
  const n = this.getTruncatedItems();
304
- return e("nav", { key: "1491f7e548ba859e0661129de2ec320552a2bb42", "aria-label": "Breadcrumb" }, e("ol", { key: "93525aad588295e9f2a3f02d143824c7c58ea512", class: "flex items-center space-x-2" }, n.map((i, r) => {
305
- const l = r === n.length - 1;
306
- return e("li", { class: "flex items-center" }, i.isHidden ? e("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...") : e("eds-link", { label: i.label, url: i.url, intent: this.intent, current: l, "aria-label": i.label, size: "small", "icon-small": "false" }), !l && !i.isHidden && e("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }));
787
+ return e("nav", { key: "d177957e1b3218c21991bbdc9636a8e32befe990", "aria-label": "Breadcrumb" }, e("ol", { key: "d10336ddee99b9fb84d17e53093c57c6a025982f", class: "flex items-center space-x-2" }, n.map((i, r) => {
788
+ const t = r === n.length - 1;
789
+ return e("li", { class: "flex items-center" }, i.isHidden ? e("span", { class: "truncate px-2", "aria-hidden": "true" }, "...") : (() => {
790
+ const { displayLabel: s, fullLabel: x } = this.getLabels(i, t);
791
+ return e("eds-link", Object.assign({ label: s, url: i.url, intent: this.intent, current: t, "aria-label": x, size: "small", "icon-small": "false" }, t ? { "aria-current": "page" } : {}));
792
+ })(), !t && !i.isHidden && e("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }));
307
793
  })));
308
794
  }
309
795
  get el() {
310
- return s(this);
796
+ return o(this);
311
797
  }
312
798
  static get watchers() {
313
799
  return {
@@ -315,8 +801,8 @@ const B = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{
315
801
  };
316
802
  }
317
803
  };
318
- R.style = M;
319
- const D = `@font-face {
804
+ j.style = W;
805
+ const A = `@font-face {
320
806
  font-family: "Inter";
321
807
  font-weight: 100 900;
322
808
  font-display: swap;
@@ -7455,9 +7941,9 @@ const D = `@font-face {
7455
7941
  padding-right: 0rem;
7456
7942
  }
7457
7943
  }
7458
- `, _ = D, N = class {
7944
+ `, O = A, R = class {
7459
7945
  constructor(n) {
7460
- t(this, n), this.button = c([
7946
+ l(this, n), this.button = d([
7461
7947
  "relative inline-flex items-center",
7462
7948
  "py-8",
7463
7949
  "effect-focus effect-color",
@@ -7555,7 +8041,7 @@ const D = `@font-face {
7555
8041
  pill: !1,
7556
8042
  size: "small"
7557
8043
  }
7558
- }), this.iconCva = c(["flex inline-flex items-center justify-center"], {
8044
+ }), this.iconCva = d(["flex inline-flex items-center justify-center"], {
7559
8045
  variants: {
7560
8046
  size: {
7561
8047
  large: "",
@@ -7605,20 +8091,30 @@ const D = `@font-face {
7605
8091
  size: "small",
7606
8092
  iconOnly: !1
7607
8093
  }
7608
- }), this.parentContext = null, this.label = void 0, this.ariaLabel = void 0, this.elementType = "button", this.intent = "secondary", this.loading = !1, this.disabled = !1, this.pill = !1, this.icon = void 0, this.size = "small", this.iconPos = "right", this.iconSmall = !1, this.extraClass = void 0, this.triggerClick = void 0;
7609
- }
7610
- handleParentContext(n) {
7611
- n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
8094
+ }), this.label = void 0, this.ariaLabel = "Button", this.elementType = "button", this.intent = "secondary", this.loading = !1, this.disabled = !1, this.pill = !1, this.icon = void 0, this.size = "small", this.iconPos = "right", this.iconSmall = !1, this.extraClass = void 0, this.triggerClick = void 0;
7612
8095
  }
8096
+ /*private parentContext: ParentContextDetail | null = null; // Accepts the entire event detail or null
8097
+
8098
+ @Listen('parentContext')
8099
+ handleParentContext(event: CustomEvent) {
8100
+ if (event.target !== this.el) {
8101
+ // Ignore the event if it's not targeted at this specific instance
8102
+ return;
8103
+ }
8104
+ //console.log(event.detail);
8105
+ this.parentContext = event.detail;
8106
+ event.stopPropagation();
8107
+ }
8108
+ */
7613
8109
  handleClick(n) {
7614
8110
  var i, r;
7615
8111
  if (this.disabled) {
7616
8112
  n.preventDefault();
7617
8113
  return;
7618
8114
  }
7619
- x({
8115
+ c({
7620
8116
  category: "ui-component",
7621
- parentContext: this.parentContext,
8117
+ parentContext: null,
7622
8118
  tag: this.el.tagName.toLowerCase(),
7623
8119
  name: ((i = this.label) === null || i === void 0 ? void 0 : i.toLowerCase()) || ((r = this.ariaLabel) === null || r === void 0 ? void 0 : r.toLowerCase()) || "",
7624
8120
  action: "click"
@@ -7639,107 +8135,19 @@ const D = `@font-face {
7639
8135
  iconOnly: !this.label,
7640
8136
  show: !this.loading
7641
8137
  }), r = this.elementType;
7642
- return e(r, { key: "1053db0332f574db35e58453d789567eaf235d30", "aria-label": this.label || this.ariaLabel || void 0, "aria-disabled": this.elementType === "button" ? this.disabled : void 0, disabled: this.elementType === "button" ? this.disabled : void 0, class: `${n || ""} ${this.extraClass || ""}`, onClick: (l) => this.handleClick(l) }, this.label && e("span", { key: "ff95b889b008075d46b89a1d23e51ad8afa20918", class: this.loading ? "opacity-0" : "" }, this.label), this.loading && e("span", { key: "942f3fffcaef08defd3d0ef0dbb275b9d189c907", class: "absolute inset-0 flex items-center justify-center" }, e("span", { key: "91e53dcee9d4f2a842ea922498c9da7f15ffe109", class: "loader", style: {
8138
+ return e(r, { key: "52cda715164eeca59e35b45f617a2d6d1b05a94c", "aria-label": this.label || this.ariaLabel || void 0, "aria-disabled": this.elementType === "button" ? this.disabled : void 0, disabled: this.elementType === "button" ? this.disabled : void 0, class: `${n || ""} ${this.extraClass || ""}`, onClick: (t) => this.handleClick(t) }, this.label && e("span", { key: "866cd0272d9f381b3ecb892e588c860ca8b41051", class: this.loading ? "opacity-0" : "" }, this.label), this.loading && e("span", { key: "fcba01e3404724869c59f4e21bd5db459643d840", class: "absolute inset-0 flex items-center justify-center" }, e("span", { key: "e44955e5641e757e66eb4961097fb4d60e4def7c", class: "loader", style: {
7643
8139
  border: `3px solid ${this.intent === "secondary" ? "rgba(255, 255, 255, .3)" : "rgba(0, 0, 0, .3)"}`,
7644
8140
  borderBottomColor: this.intent === "secondary" ? "#fff" : "#000"
7645
8141
  } })), this.icon ? e("eds-icon-wrapper", { class: i, icon: this.icon }) : null);
7646
8142
  }
7647
8143
  get el() {
7648
- return s(this);
7649
- }
7650
- };
7651
- N.style = _;
7652
- const P = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-shadow:0px 1.5px 2px rgba(0, 0, 0, 0.1);--tw-shadow-colored:0px 1.5px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-inverse{background-color:var(--white)}.border-softest{border:2px solid rgba(0, 0, 0, .05)}.z-10{z-index:10}.z-on-top{z-index:99999}.absolute{position:absolute}.top-full{top:100%}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.gap-y-4{row-gap:0.25rem}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.left-0{left:0rem}.left-1\\/2{left:50%}.left-4{left:0.25rem}.left-\\[4px\\]{left:4px}.right-0{right:0rem}.right-4{right:0.25rem}.right-8{right:0.5rem}", Y = P, $ = class {
7653
- constructor(n) {
7654
- t(this, n), this.focusableItems = [], this.handleClick = () => {
7655
- this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown();
7656
- }, this.icon = "chevron-down", this.label = void 0, this.rounded = !1, this.ariaLabel = "Open dropdown", this.asNav = !0, this.dropdownPos = "left", this.dropdownOffset = !0, this.intent = "tertiary", this.isOpen = !1, this.focusIndex = -1;
7657
- }
7658
- /**
7659
- * Closes the dropdown when a click occurs outside of it.
7660
- * @param {Event} e - The click event.
7661
- */
7662
- handleWindowClick(n) {
7663
- this.host.contains(n.target) || this.closeDropdown();
7664
- }
7665
- /**
7666
- * Handles keyboard navigation and accessibility within the dropdown.
7667
- * @param {KeyboardEvent} event - The keyboard event.
7668
- */
7669
- handleKeyDown(n) {
7670
- if (this.isOpen)
7671
- switch (n.key) {
7672
- case "Tab":
7673
- this.closeDropdown();
7674
- break;
7675
- case "ArrowUp":
7676
- n.preventDefault(), this.focusIndex = (this.focusIndex - 1 + this.focusableItems.length) % this.focusableItems.length, this.focusItem();
7677
- break;
7678
- case "ArrowDown":
7679
- n.preventDefault(), this.focusIndex = (this.focusIndex + 1) % this.focusableItems.length, this.focusItem();
7680
- break;
7681
- }
7682
- }
7683
- /**
7684
- * Closes the dropdown and resets focus.
7685
- */
7686
- closeDropdown() {
7687
- this.isOpen = !1, this.focusIndex = -1;
7688
- }
7689
- /**
7690
- * Sets focus on the currently selected item in the dropdown.
7691
- */
7692
- focusItem() {
7693
- var n;
7694
- (n = this.focusableItems[this.focusIndex]) === null || n === void 0 || n.focus();
7695
- }
7696
- /**
7697
- * Lifecycle method that runs after the component has been added to the DOM.
7698
- * Initializes focusable items within the dropdown.
7699
- */
7700
- componentDidLoad() {
7701
- var n;
7702
- this.focusableItems = Array.from(((n = this.dropdownContent) === null || n === void 0 ? void 0 : n.querySelectorAll("a, button")) || []), this.host.shadowRoot.querySelectorAll("eds-button").forEach((r) => {
7703
- this.emitContext(r);
7704
- });
7705
- }
7706
- /**
7707
- * Emits a custom event called `parentContext` for a given button element.
7708
- * Provides context information about the dropdown component.
7709
- *
7710
- * @param linkElement - The button element to which the event will be dispatched.
7711
- */
7712
- emitContext(n) {
7713
- const i = new CustomEvent("parentContext", {
7714
- detail: {
7715
- componentName: this.host.tagName.toLowerCase(),
7716
- identifier: null
7717
- }
7718
- });
7719
- n.dispatchEvent(i);
7720
- }
7721
- /**
7722
- * Renders the dropdown component and displays its content when open.
7723
- * @returns {JSX.Element} The rendered dropdown component.
7724
- */
7725
- render() {
7726
- return e("div", { key: "d49e23ee208cfb000baba83795899487e4d94af7", class: "z-focus relative", ref: (n) => this.dropdownContent = n }, e("eds-button", { key: "6647007c34b47558873e470890893ae4f8e18b5c", label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), e("nav", { key: "41bbd4e2bf02345393aaa97101b2c3aca2fa4085", class: {
7727
- "shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8": !0,
7728
- "left-4": this.dropdownPos === "left" && this.dropdownOffset,
7729
- "left-0": this.dropdownPos === "left" && !this.dropdownOffset,
7730
- "right-4": this.dropdownPos === "right" && this.dropdownOffset,
7731
- "right-0": this.dropdownPos === "right" && !this.dropdownOffset,
7732
- "rounded-lg": this.rounded
7733
- }, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, e("slot", { key: "714bad9f5a8ddf6d5ea246044a83b0a5102494c4" })));
7734
- }
7735
- get host() {
7736
- return s(this);
8144
+ return o(this);
7737
8145
  }
7738
8146
  };
7739
- $.style = Y;
7740
- const X = "", V = X, q = class {
8147
+ R.style = O;
8148
+ const B = "", M = B, T = class {
7741
8149
  constructor(n) {
7742
- t(this, n), this.backToTop = () => {
8150
+ l(this, n), this.backToTop = () => {
7743
8151
  window.scrollTo({ top: 0, behavior: "smooth" });
7744
8152
  }, this.extraClass = "", this.social = !1, this.hasCookiesSetUp = !1, this.enableScrollTop = !1, this.fundedBy = "EBRAINS is funded by the Horizon Europe Framework Programme.", this.rightsReserved = `${(/* @__PURE__ */ new Date()).getFullYear()} EBRAINS. All rights reserved.`, this.cookiesPreference = "Cookies Preferences";
7745
8153
  }
@@ -7758,13 +8166,13 @@ const X = "", V = X, q = class {
7758
8166
  * @returns {JSX.Element} The rendered JSX for the footer component.
7759
8167
  */
7760
8168
  render() {
7761
- return e("footer", { key: "8d3d1b5d2acd76f56b2bc12539cb7d277b4dcd7f", class: `${this.extraClass} pb-banner` }, this.social ? e("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, e("div", { class: "container pb-20 xl:pb-40 " }, e("div", { class: "grid-layout" }, e("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, e("eds-social-networks", { class: "mt-28" })), e("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" })))) : null, e("div", { key: "7d6e3a414ec8e8f8e2b795faf639948f8819f5cb", class: `border-softest ${this.social ? "border-t-2" : ""} pt-20 pb-28 md:pt-28` }, e("div", { key: "9a475fd146ac0e1bc78c43940ee24ec31212fcb9", class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, e("div", { key: "4b465113cdb882f919fba15e944eb56edbe3c570", class: "flex items-center gap-x-12" }, e("a", { key: "1a8ad1ee5f4dfb77da036b03d0770cba8e5d725e", target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, e("eds-img", { key: "4714ea1a01b7b7eef8b3af0c04ffe793d51c4d5e", width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), e("div", { key: "c4db6bab70e570e337c82136a0d9d6dad01c1039", class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, e("p", { key: "0b030a92c12a3a96fe2baacc13ac21f5bd708a50" }, this.fundedBy), e("div", { key: "4714d0ccf0e3912ae330a6f39ed3607caf2b51a4", class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, e("span", { key: "b4bc2d45871c7d1f9de1d6090959b12fd5246f01", class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "© ", this.rightsReserved), this.hasCookiesSetUp && e("button", { key: "98b56eee7be6bc1558821933cebf2853b3bb68fc", class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference))), e("div", { key: "f4bf4a0c99f3be920dd15f68e6f7e390cd85ecce", class: "ml-auto pl-12" }, this.enableScrollTop ? e("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop }) : null))));
8169
+ return e("footer", { key: "ba6500548e8f719b8670063918c61b391ddb8387", class: `${this.extraClass} pb-banner` }, this.social ? e("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, e("div", { class: "container pb-20 xl:pb-40 " }, e("div", { class: "grid-layout" }, e("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, e("eds-social-networks", { class: "mt-28" })), e("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" })))) : null, e("div", { key: "1221cca6d40c4de8ed7ceefa84198817bf904630", class: `border-softest ${this.social ? "border-t-2" : ""} pt-20 pb-28 md:pt-28` }, e("div", { key: "ad55b938fb2961074822d6bf458f0ea7a15baa84", class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, e("div", { key: "91c13fdd98508a812e5dcfa86056b5adc035623d", class: "flex items-center gap-x-12" }, e("a", { key: "4ddd8715a5cabbff2209f8ceb389900c9eddcd74", target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, e("eds-img", { key: "df5f16284084d9171cd3d567dd249a0ef98bde79", width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), e("div", { key: "0ff4328cc30f06c1a85ffc726d5b6b0dc53e49b9", class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, e("p", { key: "2cb2b4f072a141e58c9a2185c9179d475f9690bd" }, this.fundedBy), e("div", { key: "b31d1e18933fb1be11d8454f9a5301dedc839015", class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, e("span", { key: "aab95785cfb2bc7d490ac9426ef5e421f9418dc9", class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "© ", this.rightsReserved), this.hasCookiesSetUp && e("button", { key: "fbd5bf3560faf0ee34d740bda423595c3cd21ad8", class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference))), e("div", { key: "0427234b6679ae05b673a5c6efb8447306f61876", class: "ml-auto pl-12" }, this.enableScrollTop ? e("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop }) : null))));
7762
8170
  }
7763
8171
  };
7764
- q.style = V;
7765
- const J = "", G = J, K = class {
8172
+ T.style = M;
8173
+ const U = "", D = U, N = class {
7766
8174
  constructor(n) {
7767
- t(this, n), this.menuClose = g(this, "menuClose", 7), this.links = void 0, this.menuLinks = void 0, this.homeUrl = "/", this.inverseHeader = !1, this.isMenuOpen = !1;
8175
+ l(this, n), this.menuClose = a(this, "menuClose", 7), this.links = void 0, this.menuLinks = void 0, this.homeUrl = "/", this.inverseHeader = !1, this.isMenuOpen = !1;
7768
8176
  }
7769
8177
  /**
7770
8178
  * Listens for the toggleMenu event to open or close the menu.
@@ -7831,10 +8239,10 @@ const J = "", G = J, K = class {
7831
8239
  return this.isMenuOpen ? e("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, e("div", { class: "flex min-h-full flex-col" }, e("div", { class: `bg-default w-full sticky top-0 ${this.inverseHeader ? "bg-strongest" : "bg-default"}` }, e("div", { class: "mx-auto flex items-center justify-between" }, e("div", { class: "mr-auto w-[200px] h-[85px]" }, e("eds-logo", { type: this.inverseHeader ? "color-white" : "color", href: this.homeUrl })), e("div", { class: "px-16" }, e("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), e("div", { class: "py-16 px-16" }, e("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((n, i) => e("eds-link", { label: n.label, key: i, url: n.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" }))), e("eds-block-break", null), e("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((n, i) => e("eds-link", { label: n.label, key: i, url: n.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" })))), e("div", { class: "mt-auto" }, e("eds-footer", { social: !0, "extra-class": "bg-darker" })))) : null;
7832
8240
  }
7833
8241
  };
7834
- K.style = G;
7835
- const Q = "", Z = Q, nn = class {
8242
+ N.style = D;
8243
+ const P = "", Y = P, _ = class {
7836
8244
  constructor(n) {
7837
- t(this, n), this.toggleMenu = g(this, "toggleMenu", 7), this.homeUrl = "/", this.links = void 0, this.inverseHeader = !1, this.userFeature = !1, this.menuEnabled = !1, this.keycloakUrl = void 0, this.keycloakRealm = void 0, this.keycloakClientId = void 0, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
8245
+ l(this, n), this.toggleMenu = a(this, "toggleMenu", 7), this.homeUrl = "/", this.links = void 0, this.inverseHeader = !1, this.menuEnabled = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
7838
8246
  }
7839
8247
  onAuthStatusChanged(n) {
7840
8248
  var i;
@@ -7895,17 +8303,17 @@ const Q = "", Z = Q, nn = class {
7895
8303
  return [];
7896
8304
  }
7897
8305
  render() {
7898
- return e("header", { key: "b16e5e84ba7565ebf4ea5892a9a1af84fc94769d", class: `flex items-center justify-between relative z-10
7899
- ${this.inverseHeader ? "text-inverse bg-strongest" : "text-default bg-dark"}` }, e("div", { key: "00206a2714dedfe205151002cc10c430e75814fb", class: "mr-auto w-[200px] h-[85px]" }, e("eds-logo", { key: "25fc6207d61bb4cc06877dd0b15bf56392b50255", type: this.inverseHeader ? "color-white" : "color", href: this.homeUrl })), this.parsedLinks && e("nav", { key: "8d1ee2947db26e5acb556da845fe1b811a8d18b2", class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, e("ul", { key: "5c70e48f3a617a6abe402659b37741e657440cbc", class: "flex gap-x-2" }, this.parsedLinks.map((n) => e("eds-link", { label: n.label, "aria-label": n.label, url: n.url, intent: "ghost", size: "small", icon: n.icon, external: n.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))), e("slot", { key: "773b60e90ecfe336fede86ea6e3b0ec2fd10bd72" }), this.userFeature ? e("div", { class: "px-16" }, e("eds-user", { "keycloak-url": this.keycloakUrl, "keycloak-realm": this.keycloakRealm, "keycloak-client-id": this.keycloakClientId })) : null, this.menuEnabled ? e("div", { class: "md:hidden flex overflow-hidden px-16" }, e("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })) : null);
8306
+ return e("header", { key: "ce002da29cee5446f64694ba93ec67f89c180ac4", class: `flex items-center justify-between relative z-10
8307
+ ${this.inverseHeader ? "text-inverse bg-strongest" : "text-default bg-dark"}` }, e("div", { key: "579593f3180b27d129fd9ca380d6b74d0efcbd1e", class: "mr-auto w-[200px] h-[85px]" }, e("eds-logo", { key: "c72d87a2ff7cd1ea2b0390cd364e376d1f52c67f", type: this.inverseHeader ? "color-white" : "color", href: this.homeUrl })), this.parsedLinks && e("nav", { key: "6755e304c48624049af8426d4d9b19d0cb156dda", class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, e("ul", { key: "390f9b6c6c950719598eec88b4befb4224cb0c03", class: "flex gap-x-2" }, this.parsedLinks.map((n) => e("eds-link", { label: n.label, "aria-label": n.label, url: n.url, intent: "ghost", size: "small", icon: n.icon, external: n.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))), e("slot", { key: "bc7b093739cc3058e4eb3d4eddbb0b49856b5710" }), this.menuEnabled ? e("div", { class: "md:hidden flex overflow-hidden px-16" }, e("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })) : null);
7900
8308
  }
7901
8309
  get hostEl() {
7902
- return s(this);
8310
+ return o(this);
7903
8311
  }
7904
8312
  };
7905
- nn.style = Z;
7906
- const En = class {
8313
+ _.style = Y;
8314
+ const Sn = class {
7907
8315
  constructor(n) {
7908
- t(this, n), this.TagName = null, this.icon = "arrow-right", this.class = "", this.IconComponent = null;
8316
+ l(this, n), this.TagName = null, this.icon = "arrow-right", this.class = "", this.IconComponent = null;
7909
8317
  }
7910
8318
  componentWillLoad() {
7911
8319
  this.loadIconComponent(this.icon);
@@ -7929,7 +8337,7 @@ const En = class {
7929
8337
  icon: ["iconChanged"]
7930
8338
  };
7931
8339
  }
7932
- }, en = `/*
8340
+ }, X = `/*
7933
8341
  1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
7934
8342
  2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
7935
8343
  This can trigger a poorly considered lint error in some tools but is included by design.
@@ -8011,34 +8419,36 @@ video {
8011
8419
 
8012
8420
  .opacity-100 {
8013
8421
  opacity: 1;
8014
- }`, rn = en, ln = class {
8422
+ }`, V = X, $ = class {
8015
8423
  constructor(n) {
8016
- t(this, n), this.img = null, this.handleLoad = () => {
8424
+ l(this, n), this.img = null, this.handleLoad = () => {
8425
+ this.loaded = !0, this.showBg = !1;
8426
+ }, this.handleError = () => {
8017
8427
  this.loaded = !0, this.showBg = !1;
8018
8428
  }, this.handleTransitionEnd = () => {
8019
8429
  this.showBg = !1;
8020
- }, this.src = void 0, this.alt = void 0, this.width = void 0, this.height = void 0, this.srcset = void 0, this.sizes = void 0, this.formats = [], this.lazyload = !0, this.withBg = !0, this.loaded = !this.lazyload, this.showBg = this.withBg;
8430
+ }, this.src = void 0, this.alt = "", this.width = void 0, this.height = void 0, this.srcset = void 0, this.sizes = void 0, this.formats = [], this.lazyload = !0, this.withBg = !0, this.loaded = !this.lazyload, this.showBg = this.withBg;
8021
8431
  }
8022
8432
  componentDidLoad() {
8023
8433
  this.img && this.img.complete && (this.loaded = !0, this.showBg = !1);
8024
8434
  }
8025
8435
  render() {
8026
8436
  const n = {};
8027
- return this.lazyload && (n.loading = "lazy", n.decoding = "async"), e("div", { key: "fde8a77bb251e3be2ec3a42b8d83f585eae65b2c", class: {
8437
+ return this.lazyload && (n.loading = "lazy", n.decoding = "async"), e("div", { key: "733be8df2b9e3db1b5b13aaa47c16a9c26f345d7", class: {
8028
8438
  "items-center justify-center": !0,
8029
8439
  "effect-bg-pattern": this.lazyload && this.showBg
8030
- } }, e("picture", { key: "e512cbd9134f14f5418856cf451cddfb93ca1760" }, this.formats.map((i) => e("source", { type: i.type, srcSet: i.srcset, media: i.media, sizes: this.sizes })), e("img", Object.assign({ key: "98339035b8d055d8bb8de654ce1f4ba410ef3865", ref: (i) => this.img = i, class: {
8440
+ } }, e("picture", { key: "3a6a0289bcf8a2851278eb6c6fbe64bfe7004014" }, this.formats.map((i) => e("source", { type: i.type, srcSet: i.srcset, media: i.media, sizes: this.sizes })), e("img", Object.assign({ key: "b5d92e20a28f67a13d926f081b5f85dbd981ff78", ref: (i) => this.img = i, class: {
8031
8441
  "effect-opacity object-cover object-center": !0,
8032
8442
  "opacity-100": this.loaded,
8033
8443
  "opacity-0": !this.loaded
8034
- }, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, n, { onLoad: this.handleLoad, onTransitionEnd: this.handleTransitionEnd }))));
8444
+ }, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, n, { onLoad: this.handleLoad, onError: this.handleError, onTransitionEnd: this.handleTransitionEnd }))));
8035
8445
  }
8036
8446
  get imgElement() {
8037
- return s(this);
8447
+ return o(this);
8038
8448
  }
8039
8449
  };
8040
- ln.style = rn;
8041
- const tn = `@font-face {
8450
+ $.style = V;
8451
+ const q = `@font-face {
8042
8452
  font-family: "Inter";
8043
8453
  font-weight: 100 900;
8044
8454
  font-display: swap;
@@ -15201,7 +15611,7 @@ const tn = `@font-face {
15201
15611
  align-items: center;
15202
15612
  }
15203
15613
 
15204
- `, on = tn, sn = c([
15614
+ `, J = q, G = d([
15205
15615
  "relative inline-flex justify-center items-center py-8 rounded-sm",
15206
15616
  "effect-color effect-focus aria-disabled:text-lightest",
15207
15617
  "aria-disabled:bg-dark aria-disabled:cursor-not-allowed aria-disabled:!border-transparent aria-disabled:after:!border-transparent"
@@ -15318,11 +15728,11 @@ const tn = `@font-face {
15318
15728
  iconSmall: !1,
15319
15729
  size: "small"
15320
15730
  }
15321
- }), dn = class {
15731
+ }), Q = class {
15322
15732
  constructor(n) {
15323
- t(this, n), this.parentContext = null, this.label = void 0, this.intent = void 0, this.icon = void 0, this.iconPos = "right", this.iconSmall = !1, this.size = "small", this.external = !1, this.current = !1, this.download = !1, this.url = void 0, this.ariaLabel = void 0, this.disabled = !1, this.hideLabelOnSmallScreen = !1, this.extraClass = void 0;
15733
+ l(this, n), this.parentContext = null, this.label = void 0, this.intent = void 0, this.icon = void 0, this.iconPos = "right", this.iconSmall = !1, this.size = "small", this.external = !1, this.current = !1, this.download = !1, this.url = void 0, this.ariaLabel = void 0, this.disabled = !1, this.hideLabelOnSmallScreen = !1, this.extraClass = void 0;
15324
15734
  }
15325
- handleBreadcrumbContext(n) {
15735
+ handleParentContext(n) {
15326
15736
  n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
15327
15737
  }
15328
15738
  handleClick(n) {
@@ -15331,7 +15741,7 @@ const tn = `@font-face {
15331
15741
  n.preventDefault();
15332
15742
  return;
15333
15743
  }
15334
- x({
15744
+ c({
15335
15745
  category: "ui-component",
15336
15746
  parentContext: this.parentContext,
15337
15747
  tag: this.el.tagName.toLowerCase(),
@@ -15349,28 +15759,28 @@ const tn = `@font-face {
15349
15759
  `, icon: this.icon })) : null;
15350
15760
  }
15351
15761
  renderRightIcon() {
15352
- return this.icon && this.iconPos === "right" ? e("span", { class: !this.external && !this.label ? "" : "flex" }, e("eds-icon-wrapper", { class: `
15762
+ return this.icon && this.iconPos === "right" ? e("span", { class: !this.external && !this.label ? "" : "flex ml-4" }, e("eds-icon-wrapper", { class: `
15353
15763
  flex inline-flex items-center justify-center
15354
15764
  ${this.size === "large" ? "h-32 w-32" : "h-20 w-20"}
15355
15765
  `, icon: this.icon })) : null;
15356
15766
  }
15357
15767
  render() {
15358
- const n = this.disabled ? "span" : "a", i = sn({
15768
+ const n = this.disabled ? "span" : "a", i = G({
15359
15769
  intent: this.intent,
15360
15770
  size: this.getLinkSize(),
15361
15771
  iconSmall: this.iconSmall,
15362
15772
  isActive: this.current
15363
- }), r = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
15364
- return e(n, { key: "287497bf5ba99fe467ba08d59f65d24204fbecbc", class: `${i || ""} ${this.extraClass || ""}`, href: this.disabled ? void 0 : this.url, target: this.external && !this.disabled ? "_blank" : void 0, rel: this.external && !this.disabled ? "noopener noreferrer" : void 0, "aria-label": this.label || this.ariaLabel || void 0, "aria-disabled": this.disabled ? "true" : null, download: this.download ? "" : void 0, onClick: (l) => this.handleClick(l) }, e("span", { key: "a244b21dffaad38cb149a925df1feb3d78beed03", class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), e("span", { key: "2ef69a91351ea622d6425699b90b45a0bd5989b1", class: r }, this.label), this.renderRightIcon()));
15773
+ }), r = this.ariaLabel || this.label || "link", t = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
15774
+ return e(n, { key: "965b2bf54c59752e7ed3cafbc167a8f2d1a2a9b1", class: `${i || ""} ${this.extraClass || ""}`, href: this.disabled ? void 0 : this.url, target: this.external && !this.disabled ? "_blank" : void 0, rel: this.external && !this.disabled ? "noopener noreferrer" : void 0, "aria-label": r, "aria-disabled": this.disabled ? "true" : null, "aria-current": this.current ? "page" : void 0, download: this.download ? "" : void 0, onClick: (s) => this.handleClick(s) }, e("span", { key: "7df72410c98bab3c0ef204e5cd33f1e069976d24", class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), e("span", { key: "208b4fa88695bd8e8ed961d4c7639b117341110c", class: t }, this.label), this.renderRightIcon()));
15365
15775
  }
15366
15776
  get el() {
15367
- return s(this);
15777
+ return o(this);
15368
15778
  }
15369
15779
  };
15370
- dn.style = on;
15371
- const an = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}", cn = an, gn = class {
15780
+ Q.style = J;
15781
+ const K = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}", Z = K, nn = class {
15372
15782
  constructor(n) {
15373
- t(this, n), this.href = "/", this.orientation = "horizontal", this.type = void 0;
15783
+ l(this, n), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
15374
15784
  }
15375
15785
  /**
15376
15786
  * Handles the click event on the logo link.
@@ -15381,7 +15791,7 @@ const an = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
15381
15791
  * - `action`: The action, set as "click".
15382
15792
  */
15383
15793
  handleClick() {
15384
- x({
15794
+ c({
15385
15795
  category: "ui-component",
15386
15796
  tag: this.el.tagName.toLowerCase(),
15387
15797
  name: "logo",
@@ -15394,37 +15804,81 @@ const an = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
15394
15804
  getLogo() {
15395
15805
  const i = {
15396
15806
  horizontal: {
15397
- color: b,
15398
- black: f,
15399
- "color-white": m,
15400
- white: p,
15401
- "no-bg": u
15807
+ color: g,
15808
+ black: b,
15809
+ "color-white": h,
15810
+ white: f,
15811
+ "no-bg": m
15402
15812
  },
15403
15813
  vertical: {
15404
- color: y,
15405
- black: v,
15406
- "color-white": w,
15407
- white: k,
15408
- "no-bg": z
15814
+ color: p,
15815
+ black: u,
15816
+ "color-white": y,
15817
+ white: v,
15818
+ "no-bg": w
15409
15819
  }
15410
15820
  }[this.orientation];
15411
15821
  if (!i)
15412
- return b;
15822
+ return g;
15413
15823
  const r = i[this.type];
15414
15824
  return r || i.color;
15415
15825
  }
15416
15826
  render() {
15417
15827
  const n = this.getLogo();
15418
- return e("a", { key: "3d9435fbc45427865bfa7bacb36bea4c34f08c4e", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper" }, e("div", { key: "662122c4b687a082c930c034b033e9732ef611be", innerHTML: n }));
15828
+ return e("a", { key: "ee8de4071b0137020341982b4c5cb2c938f1c4df", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, e("div", { key: "1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c", innerHTML: n }));
15419
15829
  }
15420
15830
  get el() {
15421
- return s(this);
15831
+ return o(this);
15422
15832
  }
15423
15833
  };
15424
- gn.style = cn;
15425
- const xn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}", bn = xn, hn = class {
15834
+ nn.style = Z;
15835
+ const en = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}", rn = en, ln = class {
15426
15836
  constructor(n) {
15427
- t(this, n), this.socialNetworks = [
15837
+ l(this, n), this.ratingChange = a(this, "ratingChange", 7), this.stars = 5, this.label = "Rate your experience", this.textMapping = ["Very Poor", "Poor", "Average", "Good", "Excellent"], this.selectedRating = 0;
15838
+ }
15839
+ /**
15840
+ * Parses the `textMapping` prop into an array of strings.
15841
+ */
15842
+ get parsedMappings() {
15843
+ if (typeof this.textMapping == "object")
15844
+ return this.textMapping;
15845
+ if (typeof this.textMapping == "string")
15846
+ try {
15847
+ return JSON.parse(this.textMapping);
15848
+ } catch {
15849
+ return [];
15850
+ }
15851
+ return [];
15852
+ }
15853
+ /**
15854
+ * Handles the click event on a star.
15855
+ * @param rating - The selected rating value.
15856
+ */
15857
+ handleClick(n) {
15858
+ this.selectedRating = n, this.ratingChange.emit(n);
15859
+ }
15860
+ render() {
15861
+ return e("div", { key: "b613863ad54ae9b381a5741bce4b188eff806ef0", class: "relative w-full flex flex-col" }, e("span", { key: "f35cef9c3691aab73995e2ca6e2554cc19bae837", class: "f-heading-05" }, this.label), e("div", { key: "37082eb4bbadf5c211c197f3f81501d0b0e61404", role: "radiogroup", "aria-label": this.label, class: "stars flex space-x-2" }, Array.from({ length: this.stars }, (n, i) => {
15862
+ const r = i + 1, t = r <= this.selectedRating, s = this.parsedMappings[r - 1] || `Rating ${r}`;
15863
+ return e("eds-button", {
15864
+ label: "★",
15865
+ role: "radio",
15866
+ "aria-checked": t ? "true" : "false",
15867
+ "aria-label": s,
15868
+ onClick: () => this.handleClick(r),
15869
+ tabIndex: this.selectedRating === 0 && i === 0 || t ? 0 : -1,
15870
+ intent: t ? "primary" : "ghost",
15871
+ size: "small",
15872
+ "extra-class": "p-2"
15873
+ // Optional padding or styling for the star button
15874
+ });
15875
+ })), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && e("span", { key: "61b4b92e476cfa0dd9bf405cb080dedd995ff9c6", class: "f-ui-04 text-lighter mt-4" }, this.parsedMappings[this.selectedRating - 1]));
15876
+ }
15877
+ };
15878
+ ln.style = rn;
15879
+ const tn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}", on = tn, sn = class {
15880
+ constructor(n) {
15881
+ l(this, n), this.socialNetworks = [
15428
15882
  {
15429
15883
  label: "Twitter",
15430
15884
  url: "https://twitter.com/ebrains_eu",
@@ -15464,11 +15918,59 @@ const xn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset
15464
15918
  * @returns {JSX.Element} The rendered JSX for the component.
15465
15919
  */
15466
15920
  render() {
15467
- return e("div", { key: "a6a3e2084eb01def71f6fee67ebe8c5f4f613c89" }, e("p", { key: "43b92e9c33f8abef6070a6a3cd77f7573e2ab454", class: "f-ui-02" }, this.title), e("ul", { key: "c0e0dfdeff373885f62250c8bf4385268410406c", class: "mt-12 flex gap-4" }, this.socialNetworks.map((n, i) => e("li", { key: i }, e("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: !0, "aria-label": n.label, url: n.url, icon: n.icon, intent: "strong" })))));
15921
+ return e("div", { key: "615a7cb2c26060d2d4cde875291a081b7de12e19" }, e("p", { key: "9e19ad59fcc94508cb60cd4aafa87c3878fb2ebc", class: "f-ui-02" }, this.title), e("ul", { key: "a4811d16447ab148a7c129f188405f3f7050df70", class: "mt-12 flex gap-4" }, this.socialNetworks.map((n, i) => e("li", { key: i }, e("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: !0, "aria-label": n.label, url: n.url, icon: n.icon, intent: "strong" })))));
15922
+ }
15923
+ };
15924
+ sn.style = on;
15925
+ const dn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:24px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:1.125rem;font-weight:500;position:relative;margin-top:1em;margin-bottom:1em}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}", an = dn, cn = class {
15926
+ constructor(n) {
15927
+ l(this, n), this.stepClick = a(this, "stepClick", 7), this.handleNext = () => {
15928
+ this.activeStep < this.parsedSteps.length && (this.activeStep = this.activeStep + 1);
15929
+ }, this.handleBack = () => {
15930
+ this.activeStep > 0 && (this.activeStep = this.activeStep - 1);
15931
+ }, this.handleReset = () => {
15932
+ this.activeStep = 0;
15933
+ }, this.steps = [], this.type = "static", this.activeStep = 0;
15934
+ }
15935
+ handleStepClick(n) {
15936
+ this.stepClick.emit(n), this.type === "linear" && (this.activeStep = n);
15937
+ }
15938
+ /**
15939
+ * Parse the JSON string into an array of steps.
15940
+ */
15941
+ get parsedSteps() {
15942
+ if (typeof this.steps == "string")
15943
+ try {
15944
+ const n = this.steps;
15945
+ return JSON.parse(n);
15946
+ } catch {
15947
+ return [];
15948
+ }
15949
+ return this.steps;
15950
+ }
15951
+ render() {
15952
+ const n = this.parsedSteps;
15953
+ return this.type === "linear" ? e("div", null, e("div", { class: "steps" }, n.map((i, r) => e("div", { class: "step mb-28", key: r }, e("h3", { onClick: () => this.handleStepClick(r) }, i.title), this.activeStep === r && e("div", { class: "content" }, e("div", { class: "f-body-02 text-lighter my-16" }, i.content), e("eds-button", { label: r === n.length - 1 ? "Finish" : "Continue", class: "next-btn", onClick: this.handleNext }), e("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: r === 0, "extra-class": r === 0 ? "hidden" : "ml-8 block" }))))), this.activeStep === n.length && e("div", { class: "completed" }, e("eds-alert", { intent: "success", message: "All steps completed - you're finished!" }), e("eds-button", { label: "Start again", onClick: this.handleReset, "extra-class": "mt-4" }))) : e("div", { class: "steps" }, n.map((i, r) => e("div", { class: "step mb-28", key: r }, e("h3", null, i.title), e("div", { class: "content" }, e("div", { class: "f-body-02 text-lighter my-16" }, i.content)))));
15468
15954
  }
15469
15955
  };
15470
- hn.style = bn;
15471
- const fn = c(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"], {
15956
+ cn.style = an;
15957
+ const gn = ":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)}", xn = gn, bn = class {
15958
+ constructor(n) {
15959
+ l(this, n), this.change = a(this, "change", 7), this.toggleSwitch = () => {
15960
+ this.disabled || (this.checked = !this.checked, this.change.emit(this.checked));
15961
+ }, this.checked = !1, this.disabled = !1, this.labelOn = "", this.labelOff = "";
15962
+ }
15963
+ render() {
15964
+ const n = this.labelOn || this.labelOff ? this.checked ? this.labelOn : this.labelOff : "Toggle switch";
15965
+ return e("div", { key: "d4c727cbb562921b2bcba269e84f25c359c7061b", class: "switch-container" }, this.labelOff && e("span", { key: "90b18fff27bd21501466deb5879e5fe6ff607043", class: "switch-label switch-label--off" }, this.labelOff), e("button", { key: "8675f5d9f972d3932710fa7f9b28f74f95a83003", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", "aria-disabled": this.disabled ? "true" : "false", "aria-label": n, class: {
15966
+ switch: !0,
15967
+ "switch--checked": this.checked,
15968
+ "switch--disabled": this.disabled
15969
+ }, onClick: this.toggleSwitch, disabled: this.disabled }, e("span", { key: "26aa30a01b10419c1665b1fd58b5696a02d1504a", class: "switch-handle" })), this.labelOn && e("span", { key: "3680d67555e9193a97e129c0639b411263e070a8", class: "switch-label switch-label--on" }, this.labelOn));
15970
+ }
15971
+ };
15972
+ bn.style = xn;
15973
+ const hn = d(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"], {
15472
15974
  variants: {
15473
15975
  intent: {
15474
15976
  default: "bg-dark text-light",
@@ -15480,12 +15982,32 @@ const fn = c(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"], {
15480
15982
  defaultVariants: {
15481
15983
  intent: "default"
15482
15984
  }
15483
- }), In = class {
15985
+ }), Cn = class {
15484
15986
  constructor(n) {
15485
- t(this, n), this.dismissToast = () => {
15987
+ l(this, n), this.dismissToast = () => {
15486
15988
  this.visible = !1;
15487
15989
  }, this.message = void 0, this.intent = "default", this.duration = 5e3, this.visible = !0;
15488
15990
  }
15991
+ /**
15992
+ * Lifecycle method that sets up the initial panel height and adds a resize event listener
15993
+ * to recalculate height on window resize.
15994
+ */
15995
+ componentDidLoad() {
15996
+ const n = this.el.querySelector("eds-button");
15997
+ this.emitContext(n);
15998
+ }
15999
+ /**
16000
+ * Emits a custom event called `parentContext` for a given button element.
16001
+ */
16002
+ emitContext(n) {
16003
+ const i = new CustomEvent("parentContext", {
16004
+ detail: {
16005
+ componentName: this.el.tagName.toLowerCase(),
16006
+ identifier: null
16007
+ }
16008
+ });
16009
+ n.dispatchEvent(i);
16010
+ }
15489
16011
  connectedCallback() {
15490
16012
  this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
15491
16013
  }
@@ -15495,18 +16017,18 @@ const fn = c(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"], {
15495
16017
  render() {
15496
16018
  if (!this.visible)
15497
16019
  return null;
15498
- const n = fn({ intent: this.intent });
15499
- return e("div", { class: n }, e("div", { class: "flex items-center justify-between gap-4" }, e("p", { class: "f-ui-01" }, this.message), e("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" })));
16020
+ const n = hn({ intent: this.intent });
16021
+ return e("div", { class: n, role: "alert", "aria-live": "assertive" }, e("div", { class: "flex items-center justify-between gap-4" }, e("p", { class: "f-ui-01" }, this.message), e("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" })));
15500
16022
  }
15501
16023
  get el() {
15502
- return s(this);
16024
+ return o(this);
15503
16025
  }
15504
- }, mn = ".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:50;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)}}", pn = mn, un = class {
16026
+ }, fn = ".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:50;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)}}", mn = fn, pn = class {
15505
16027
  constructor(n) {
15506
- t(this, n), this.toastId = 0, this.toasts = [];
16028
+ l(this, n), this.toastId = 0, this.toasts = [];
15507
16029
  }
15508
16030
  connectedCallback() {
15509
- S.init(this.hostElement), this.hostElement.addEventListener("show-toast", (n) => {
16031
+ k.init(this.hostElement), this.hostElement.addEventListener("show-toast", (n) => {
15510
16032
  const { message: i, intent: r } = n.detail;
15511
16033
  this.addToast(i, r);
15512
16034
  });
@@ -15525,106 +16047,29 @@ const fn = c(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"], {
15525
16047
  this.toasts = this.toasts.filter((i) => i.id !== n);
15526
16048
  }
15527
16049
  render() {
15528
- return e("div", { key: "459148404380e386117387f42183e24a069b2de6", class: "toast-container" }, this.toasts.map((n) => e("div", { key: n.id }, e("eds-toast", { message: n.message, intent: n.intent, onClick: () => this.removeToast(n.id) }))));
16050
+ return e("div", { key: "22cb79fd617ca1701fba63d3d4bf04f73ce1ac77", class: "toast-container" }, this.toasts.map((n) => e("div", { key: n.id }, e("eds-toast", { message: n.message, intent: n.intent, onClick: () => this.removeToast(n.id) }))));
15529
16051
  }
15530
16052
  get hostElement() {
15531
- return s(this);
15532
- }
15533
- };
15534
- un.style = pn;
15535
- const Ln = class {
15536
- constructor(n) {
15537
- t(this, n), this.authStatusChanged = g(this, "authStatusChanged", 7), this.handleLogin = () => {
15538
- this.authenticated || C();
15539
- }, this.handleLogout = () => {
15540
- F(), this.authenticated = !1, this.user = null;
15541
- }, this.keycloakUrl = void 0, this.keycloakRealm = void 0, this.keycloakClientId = void 0, this.user = null, this.authenticated = !1, this.serverAvailable = !1, this.username = "";
15542
- }
15543
- /**
15544
- * Lifecycle method that runs when the component is about to load.
15545
- * It initializes authentication by calling the `initAuth` method.
15546
- */
15547
- async componentWillLoad() {
15548
- if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
15549
- console.error("Keycloak configuration props are missing.");
15550
- return;
15551
- }
15552
- this.serverAvailable = await E(`${this.keycloakUrl}/realms/${this.keycloakRealm}`), this.serverAvailable && await this.initAuth();
15553
- }
15554
- /**
15555
- * Initializes the Keycloak authentication by configuring Keycloak with the provided props.
15556
- * Sets the `authenticated` state and `user` data if the user is authenticated.
15557
- * Emits `authStatusChanged` event with the authentication status.
15558
- */
15559
- async initAuth() {
15560
- try {
15561
- const n = {
15562
- url: this.keycloakUrl,
15563
- realm: this.keycloakRealm,
15564
- clientId: this.keycloakClientId
15565
- };
15566
- await I(n, !0), L() && (this.user = H(), this.authenticated = !0), this.authStatusChanged.emit({
15567
- authenticated: this.authenticated,
15568
- user: this.user
15569
- });
15570
- } catch (n) {
15571
- console.error("Keycloak initialization failed:", n);
15572
- }
15573
- }
15574
- render() {
15575
- var n;
15576
- return this.serverAvailable ? e("div", { class: "block" }, this.authenticated ? e("div", { class: "flex items-center" }, e("eds-dropdown", { label: `Welcome, ${(n = this.user) === null || n === void 0 ? void 0 : n.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, e("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))) : e("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : null;
15577
- }
15578
- get hostEl() {
15579
- return s(this);
15580
- }
15581
- }, Hn = class {
15582
- constructor(n) {
15583
- t(this, n), this.user = void 0, this.links = void 0, this.onLogout = void 0, this.parsedUser = {}, this.parsedLinks = [];
15584
- }
15585
- parseUserProp(n) {
15586
- this.parsedUser = typeof n == "string" ? JSON.parse(n) : n;
15587
- }
15588
- parseLinksProp(n) {
15589
- this.parsedLinks = typeof n == "string" ? JSON.parse(n) : n;
15590
- }
15591
- componentWillLoad() {
15592
- this.parseUserProp(this.user), this.parseLinksProp(this.links);
15593
- }
15594
- get initials() {
15595
- var n, i, r, l, o, d, a;
15596
- return `${((i = (n = this.parsedUser) === null || n === void 0 ? void 0 : n.firstname) === null || i === void 0 ? void 0 : i.charAt(0)) || ""}${((l = (r = this.parsedUser) === null || r === void 0 ? void 0 : r.lastname) === null || l === void 0 ? void 0 : l.charAt(0)) || ""}`.toUpperCase() || ((a = (d = (o = this.parsedUser) === null || o === void 0 ? void 0 : o.fullname) === null || d === void 0 ? void 0 : d.charAt(0)) === null || a === void 0 ? void 0 : a.toUpperCase()) || "";
15597
- }
15598
- get hasLogout() {
15599
- return typeof this.onLogout == "function";
15600
- }
15601
- render() {
15602
- var n, i, r, l, o;
15603
- return e("div", { key: "ad99ddd7c2710ef90840a5571ab6a161178cacc0", class: "min-w-[280px] p-8" }, e("div", { key: "d1da12f3a965fa7503fb3e00566db0796b803352", class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, e("eds-avatar", { key: "c3d3ca80a9d23cc88f8ee6801b29995138c9b7c6", "first-name": (n = this.parsedUser) === null || n === void 0 ? void 0 : n.firstname, "last-name": (i = this.parsedUser) === null || i === void 0 ? void 0 : i.lastname, initials: this.initials, color: "grey", rounded: !0, "initials-strong": !0 }), e("div", { key: "4efe378b3a9ce76d35e642db150be13d0434db72", class: "max-w-full" }, ((r = this.parsedUser) === null || r === void 0 ? void 0 : r.fullname) && e("p", { key: "1068082a2894e3c3e3f77d1eea923f9c39d8766c", class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname), ((l = this.parsedUser) === null || l === void 0 ? void 0 : l.username) && e("p", { key: "b86e08b806a37c9957bca7f9ee268303e7ace134", class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((o = this.parsedUser) === null || o === void 0 ? void 0 : o.email) && e("p", { key: "b3514920e1eb4906cb7f7705bfbc986166e84946", class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), e("div", { key: "61941fa0a19a19087da886a73d85d7e438d2c0b0", class: "text-default mt-16 flex w-full flex-col gap-y-8" }, e("div", { key: "5ad2be1763726c9d794b78a2593106fd8ba1dc7b", class: "border-softer mb-10 border-b-2 pb-16" }, e("eds-link", { key: "dbe3a9de56bf5ccc26426ddb831f2d1a27a0e6ff", label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: !0 })), e("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: !0, "extra-class": "w-full" }), this.hasLogout && e("eds-link", { key: "642890827e2fa6735bc616e680dbda481c2c0053", label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })));
15604
- }
15605
- static get watchers() {
15606
- return {
15607
- user: ["parseUserProp"],
15608
- links: ["parseLinksProp"]
15609
- };
16053
+ return o(this);
15610
16054
  }
15611
16055
  };
16056
+ pn.style = mn;
15612
16057
  export {
15613
- j as eds_avatar,
15614
- T as eds_block_break,
15615
- R as eds_breadcrumb,
15616
- N as eds_button,
15617
- $ as eds_dropdown,
15618
- q as eds_footer,
15619
- K as eds_fullscreen_menu,
15620
- nn as eds_header,
15621
- En as eds_icon_wrapper,
15622
- ln as eds_img,
15623
- dn as eds_link,
15624
- gn as eds_logo,
15625
- hn as eds_social_networks,
15626
- In as eds_toast,
15627
- un as eds_toast_manager,
15628
- Ln as eds_user,
15629
- Hn as eds_user_modal
16058
+ F as eds_alert,
16059
+ H as eds_block_break,
16060
+ j as eds_breadcrumb,
16061
+ R as eds_button,
16062
+ T as eds_footer,
16063
+ N as eds_fullscreen_menu,
16064
+ _ as eds_header,
16065
+ Sn as eds_icon_wrapper,
16066
+ $ as eds_img,
16067
+ Q as eds_link,
16068
+ nn as eds_logo,
16069
+ ln as eds_rating,
16070
+ sn as eds_social_networks,
16071
+ cn as eds_steps,
16072
+ bn as eds_switch,
16073
+ Cn as eds_toast,
16074
+ pn as eds_toast_manager
15630
16075
  };