@ebrains/vue 0.4.0-alpha.0 → 0.6.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 (229) hide show
  1. package/analytics-44b1416b-3vYuu4Xs.mjs +28 -0
  2. package/analytics-44b1416b-ol77SdQE.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-CSDWEKLH.mjs → color-primary-palette_6.entry-BJGrNiKE.mjs} +21 -21
  6. package/color-primary-palette_6.entry-CYSEDId9.js +1 -0
  7. package/correct-use-of-colors.entry-B36yaMb6.js +1 -0
  8. package/correct-use-of-colors.entry-C2K5ii07.mjs +59 -0
  9. package/eds-accordion_13.entry-BwXBZQ7p.mjs +8044 -0
  10. package/eds-accordion_13.entry-DuX3jvBd.js +7375 -0
  11. package/eds-alert.entry-B9K7jZdM.mjs +688 -0
  12. package/eds-alert.entry-HNjGFpMQ.js +608 -0
  13. package/eds-block-break.entry-1HfuhJmn.mjs +13 -0
  14. package/eds-block-break.entry-DQDjLThR.js +1 -0
  15. package/eds-breadcrumb.entry-Oe7Iu_rp.js +1 -0
  16. package/eds-breadcrumb.entry-nSQcSQxS.mjs +110 -0
  17. package/{eds-card-project.entry-C3eyu1U0.mjs → eds-card-project.entry-BMRVlg7J.mjs} +12 -11
  18. package/eds-card-project.entry-BQKGTSJB.js +1 -0
  19. package/eds-card-tags.entry-BjvxuQg1.mjs +13 -0
  20. package/{eds-card-tags.entry-YPPBWdFq.js → eds-card-tags.entry-DAkoUUin.js} +1 -1
  21. package/eds-card-tool.entry-B0rDGNdA.js +1 -0
  22. package/{eds-card-tool.entry-1_RNWh8n.mjs → eds-card-tool.entry-BPrlMiqY.mjs} +7 -7
  23. package/{eds-card-wrapper.entry-C4pNRjIj.mjs → eds-card-wrapper.entry-Ba4ljzon.mjs} +4 -4
  24. package/{eds-card-wrapper.entry-BfCDGeFs.js → eds-card-wrapper.entry-DyPmlYoI.js} +1 -1
  25. package/{eds-code-block.entry-DQEDpAjn.js → eds-code-block.entry-B3RL-q6l.js} +3 -3
  26. package/{eds-code-block.entry-B2xATQ7r.mjs → eds-code-block.entry-zX5MUsAS.mjs} +47 -47
  27. package/{eds-components-section.entry-D08woahG.js → eds-components-section.entry-BsmIIcun.js} +45 -36
  28. package/{eds-components-section.entry-DR-984-3.mjs → eds-components-section.entry-xnXY70G_.mjs} +56 -37
  29. package/eds-cookies-preference.entry-DAQEpE8v.mjs +20 -0
  30. package/eds-cookies-preference.entry-MAmSehJX.js +1 -0
  31. package/{eds-docs-palettes.entry-qKOj3XU9.js → eds-docs-palettes.entry-BiC_mzap.js} +1 -1
  32. package/{eds-docs-palettes.entry-B0yU2ZpL.mjs → eds-docs-palettes.entry-CFIZWB7Y.mjs} +2 -2
  33. package/{eds-docs-tokens.entry-BtRXzjrp.js → eds-docs-tokens.entry-CCwf01ke.js} +1 -1
  34. package/{eds-docs-tokens.entry-BVHiM7cK.mjs → eds-docs-tokens.entry-ClVBrRzm.mjs} +2 -2
  35. package/eds-dropdown_2.entry-Dhtc1LQe.js +1 -0
  36. package/eds-dropdown_2.entry-Ds54Abix.mjs +115 -0
  37. package/eds-footer.entry-CKr0MOpU.mjs +22 -0
  38. package/eds-footer.entry-DuNEl6BR.js +1 -0
  39. package/eds-form.entry-gO7sMMVG.js +7153 -0
  40. package/eds-form.entry-znKH1sqi.mjs +7340 -0
  41. package/eds-frame.entry-BE9_G-56.js +1 -0
  42. package/eds-frame.entry-COwMtc5z.mjs +74 -0
  43. package/eds-fullscreen-menu.entry-CRIb_lLm.js +1 -0
  44. package/eds-fullscreen-menu.entry-DdO0Nwbq.mjs +74 -0
  45. package/eds-header.entry-38uAVZoC.js +2 -0
  46. package/eds-header.entry-C0qfjzDY.mjs +75 -0
  47. package/eds-icon-arrow-diagonal.entry-BTLKc1cS.js +1 -0
  48. package/eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs +13 -0
  49. package/eds-icon-arrow-right.entry-Bv_6skZy.js +1 -0
  50. package/eds-icon-arrow-right.entry-DNkmpAdY.mjs +13 -0
  51. package/eds-icon-bluesky.entry-B_WksyEk.mjs +13 -0
  52. package/{eds-icon-bluesky.entry-Dppj9cuC.js → eds-icon-bluesky.entry-BfYrb4Uv.js} +1 -1
  53. package/eds-icon-chevron-down.entry-DGjMxTKO.mjs +13 -0
  54. package/{eds-icon-chevron-down.entry-CidjiGQS.js → eds-icon-chevron-down.entry-OPmfChgp.js} +1 -1
  55. package/eds-icon-chevron-left.entry-CRr4AWkS.mjs +13 -0
  56. package/eds-icon-chevron-left.entry-_zMMz-c9.js +1 -0
  57. package/eds-icon-chevron-right.entry-0FshDV46.js +1 -0
  58. package/{eds-icon-chevron-right.entry-iy6d6tux.mjs → eds-icon-chevron-right.entry-YLnmNxjo.mjs} +2 -2
  59. package/eds-icon-chevron-up.entry-DGt49ffi.js +1 -0
  60. package/eds-icon-chevron-up.entry-NPODej6j.mjs +13 -0
  61. package/eds-icon-close.entry-BQULA4ki.mjs +13 -0
  62. package/{eds-icon-close.entry-CE-Nory7.js → eds-icon-close.entry-BSSS65tZ.js} +1 -1
  63. package/eds-icon-copy.entry-Di_H0U8v.mjs +13 -0
  64. package/{eds-icon-copy.entry-Bpe3I5b6.js → eds-icon-copy.entry-PvAtojYn.js} +1 -1
  65. package/eds-icon-eu.entry-BTzpJByN.mjs +13 -0
  66. package/eds-icon-eu.entry-D77vjTJ9.js +1 -0
  67. package/eds-icon-facebook.entry-CKmUhO4W.mjs +13 -0
  68. package/eds-icon-facebook.entry-DsPVhA3Z.js +1 -0
  69. package/eds-icon-gitlab.entry-D6VEWpO6.mjs +13 -0
  70. package/eds-icon-gitlab.entry-Dzq7ViR-.js +1 -0
  71. package/{eds-icon-linkedin.entry-CstoPbTS.js → eds-icon-linkedin.entry-7PCeoMEi.js} +1 -1
  72. package/eds-icon-linkedin.entry-BI2sjTDa.mjs +13 -0
  73. package/eds-icon-loader.entry-BoQTR6PV.mjs +13 -0
  74. package/{eds-icon-loader.entry-CaGFh0gM.js → eds-icon-loader.entry-Bp-ZxeW7.js} +1 -1
  75. package/eds-icon-mastodon.entry-Cm8XCAqa.mjs +13 -0
  76. package/eds-icon-mastodon.entry-DsU7dMbW.js +1 -0
  77. package/eds-icon-menu.entry-C7HmF2n5.mjs +13 -0
  78. package/eds-icon-menu.entry-DRd13IcH.js +1 -0
  79. package/{eds-icon-more.entry-68jT9AEw.js → eds-icon-more.entry-BOWM2H9H.js} +1 -1
  80. package/eds-icon-more.entry-CqvnBXDu.mjs +13 -0
  81. package/eds-icon-search.entry-BrANR30M.mjs +13 -0
  82. package/eds-icon-search.entry-CubLvPO7.js +1 -0
  83. package/{eds-icon-success.entry-CACuZjP6.js → eds-icon-success.entry-CDwqLyts.js} +1 -1
  84. package/eds-icon-success.entry-CtMWWFTW.mjs +13 -0
  85. package/eds-icon-twitter.entry-BnhBJxrn.js +1 -0
  86. package/eds-icon-twitter.entry-DHTwTPKu.mjs +13 -0
  87. package/eds-icon-user.entry-GYJBVLsU.js +1 -0
  88. package/eds-icon-user.entry-LTXtb_m4.mjs +13 -0
  89. package/eds-icon-youtube.entry-BluzizaX.js +1 -0
  90. package/eds-icon-youtube.entry-BqP_g-Pb.mjs +13 -0
  91. package/eds-input_7.entry-Bo9-yfaP.js +7167 -0
  92. package/eds-input_7.entry-CCX6iGUA.mjs +7373 -0
  93. package/eds-link.entry-B_t5O_EC.js +7288 -0
  94. package/eds-link.entry-D4lqKj64.mjs +7454 -0
  95. package/eds-login.entry-CB_gy86p.mjs +58 -0
  96. package/eds-login.entry-CDj80EGl.js +1 -0
  97. package/eds-logo-variations.entry-AbwI_N4g.mjs +22 -0
  98. package/{eds-logo-variations.entry-CUD-M_Fd.js → eds-logo-variations.entry-B7BEqih8.js} +1 -1
  99. package/eds-logo.entry-C4YV268f.mjs +61 -0
  100. package/eds-logo.entry-D-2GjdZl.js +1 -0
  101. package/eds-modal.entry-2mm8jzwO.mjs +84 -0
  102. package/eds-modal.entry-N0Zu-2yI.js +1 -0
  103. package/{eds-navigator.entry-BJTqtqld.js → eds-navigator.entry-Bd0BYBJE.js} +1 -1
  104. package/{eds-navigator.entry-DdzcXSRW.mjs → eds-navigator.entry-DJHFUppb.mjs} +2 -2
  105. package/eds-pagination_2.entry-N7stHjY-.js +1 -0
  106. package/{eds-pagination_2.entry-B5PLo2Uu.mjs → eds-pagination_2.entry-T_lnxySd.mjs} +9 -9
  107. package/{eds-progress-bar.entry-DdqH0plT.mjs → eds-progress-bar.entry-BpqT4TGP.mjs} +5 -5
  108. package/{eds-progress-bar.entry-BBFsASiy.js → eds-progress-bar.entry-C-qHC2dN.js} +1 -1
  109. package/eds-rating.entry-C1djorgY.js +1 -0
  110. package/eds-rating.entry-DJbkld-l.mjs +48 -0
  111. package/{eds-section-core_2.entry-D3HYngR_.mjs → eds-section-core_2.entry-BwoSUszo.mjs} +6 -6
  112. package/{eds-section-core_2.entry-D_nLUa29.js → eds-section-core_2.entry-JyCa51Zs.js} +1 -1
  113. package/eds-social-networks.entry-CWw8CODU.mjs +50 -0
  114. package/eds-social-networks.entry-CveQgGlC.js +1 -0
  115. package/eds-steps.entry-NC8mexCJ.js +1 -0
  116. package/eds-steps.entry-gPHX8t5y.mjs +37 -0
  117. package/{eds-svg-repository.entry-in72TP_1.js → eds-svg-repository.entry-BhAWpTfJ.js} +2 -2
  118. package/{eds-svg-repository.entry-C-kayEdW.mjs → eds-svg-repository.entry-DeKbE1sw.mjs} +2 -2
  119. package/eds-switch.entry-6C-fiD1f.js +1 -0
  120. package/eds-switch.entry-LXqTebs4.mjs +20 -0
  121. package/{eds-tab.entry-BKYSiEkl.mjs → eds-tab.entry-7_C7zAnd.mjs} +2 -2
  122. package/{eds-tab.entry-BUzZWKac.js → eds-tab.entry-BI3X5Amp.js} +1 -1
  123. package/{eds-tabs-content.entry-3cyCQAth.mjs → eds-tabs-content.entry-BYK_ciTB.mjs} +6 -6
  124. package/eds-tabs-content.entry-FqonRXn9.js +1 -0
  125. package/{eds-tabs.entry-B8q09in2.mjs → eds-tabs.entry-CCGBUoii.mjs} +7 -7
  126. package/eds-tabs.entry-VauMxz1h.js +1 -0
  127. package/{eds-timeline.entry-DhHSQScv.mjs → eds-timeline.entry-B-eABvy-.mjs} +2 -2
  128. package/{eds-timeline.entry-DEcov8mq.js → eds-timeline.entry-UjKckHoD.js} +1 -1
  129. package/{eds-tooltip.entry-BTunlfGS.mjs → eds-tooltip.entry-BSd2vlEo.mjs} +3 -3
  130. package/eds-tooltip.entry-D9pRQyxl.js +1 -0
  131. package/{eds-trl.entry-Bt28XH55.mjs → eds-trl.entry-C1CKXjzi.mjs} +8 -8
  132. package/{eds-trl.entry-BHrlC_5O.js → eds-trl.entry-DdPaX9aY.js} +1 -1
  133. package/eds-user.entry-BX3nKCHB.mjs +66 -0
  134. package/eds-user.entry-CyEG-Wtm.js +1 -0
  135. package/eds-vertical-stepper.entry-CdmDXaW2.mjs +27 -0
  136. package/eds-vertical-stepper.entry-DphlSSa0.js +1 -0
  137. package/generated/components.d.ts +3 -0
  138. package/incorrect-use-of-colors.entry-BhygRTdu.js +1 -0
  139. package/incorrect-use-of-colors.entry-QkMrxvFS.mjs +42 -0
  140. package/{index-I5Asbjce.mjs → index-Df31uHzU.mjs} +609 -510
  141. package/index-DvG3cC-8.js +21 -0
  142. package/index.js +1 -1
  143. package/index.mjs +30 -27
  144. package/{keycloak-13893af6-BLzE1H6E.mjs → keycloak-d502ec16-Ce0iGqyk.mjs} +259 -247
  145. package/keycloak-d502ec16-m7LwS-Gh.js +9 -0
  146. package/{logo-space.entry-GnVq-srD.mjs → logo-space.entry-CChbx8AS.mjs} +7 -7
  147. package/{logo-space.entry-DsM5jXgX.js → logo-space.entry-q9Uznxi3.js} +1 -1
  148. package/logo-variations-horizontal_2.entry-DA_yMnFa.mjs +29 -0
  149. package/logo-variations-horizontal_2.entry-G3ih093R.js +7 -0
  150. package/logo-wrong-usage.entry-BoBmwzLl.mjs +14 -0
  151. package/logo-wrong-usage.entry-l4pJC0KB.js +1 -0
  152. package/package.json +1 -1
  153. package/{token-list_3.entry-DaIOT7_R.js → token-list_3.entry-B4bQ3_yz.js} +1 -1
  154. package/{token-list_3.entry-CReCwFzO.mjs → token-list_3.entry-CJXI55T0.mjs} +4 -4
  155. package/{token-ratios.entry-Dh8kvz8R.mjs → token-ratios.entry-LNQoHORe.mjs} +2 -2
  156. package/token-ratios.entry-hdef-MAq.js +1 -0
  157. package/token-spacing.entry-YXQwnYx0.mjs +12 -0
  158. package/token-spacing.entry-xhNHm9Tw.js +1 -0
  159. package/{token-typography.entry-DG-4k5gY.js → token-typography.entry-DddK_fiy.js} +1 -1
  160. package/{token-typography.entry-CIETKadf.mjs → token-typography.entry-qTyV0EeH.mjs} +2 -2
  161. package/color-bb472c37-CKu54kOY.js +0 -1
  162. package/color-bb472c37-DDERsxdk.mjs +0 -207
  163. package/color-primary-palette_6.entry-BB6740d4.js +0 -1
  164. package/correct-use-of-colors.entry-LuyuqIQ9.js +0 -1
  165. package/correct-use-of-colors.entry-hvZ1z3tc.mjs +0 -59
  166. package/eds-accordion_33.entry-DFgdjlJE.mjs +0 -31360
  167. package/eds-accordion_33.entry-DlnbmQ6R.js +0 -29468
  168. package/eds-card-project.entry-BQ-dH8vM.js +0 -1
  169. package/eds-card-section.entry-DU-1TB0I.js +0 -1
  170. package/eds-card-section.entry-Dxk-Ob_Y.mjs +0 -39
  171. package/eds-card-tags.entry-CIu6lD0P.mjs +0 -13
  172. package/eds-card-tool.entry-DgBqQucY.js +0 -1
  173. package/eds-icon-arrow-diagonal.entry-DjDB--sU.js +0 -1
  174. package/eds-icon-arrow-diagonal.entry-E5xC3m8H.mjs +0 -13
  175. package/eds-icon-arrow-right.entry-DaXIkUew.mjs +0 -13
  176. package/eds-icon-arrow-right.entry-odZ8U-W2.js +0 -1
  177. package/eds-icon-bluesky.entry-B3yW2mUC.mjs +0 -13
  178. package/eds-icon-chevron-down.entry-xWODzTE-.mjs +0 -13
  179. package/eds-icon-chevron-left.entry-CJyHE01I.mjs +0 -13
  180. package/eds-icon-chevron-left.entry-DjJj-hmG.js +0 -1
  181. package/eds-icon-chevron-right.entry-D8RyOADq.js +0 -1
  182. package/eds-icon-chevron-up.entry-TKCdY_T3.mjs +0 -13
  183. package/eds-icon-chevron-up.entry-ezV-v92v.js +0 -1
  184. package/eds-icon-close.entry-Brv3Uxu1.mjs +0 -13
  185. package/eds-icon-copy.entry-DQioS3t7.mjs +0 -13
  186. package/eds-icon-eu.entry-BzmYOiKL.js +0 -1
  187. package/eds-icon-eu.entry-KylDo55P.mjs +0 -13
  188. package/eds-icon-facebook.entry-DWZ02rD5.js +0 -1
  189. package/eds-icon-facebook.entry-DpS2m4v2.mjs +0 -13
  190. package/eds-icon-gitlab.entry-D8PM12SK.js +0 -1
  191. package/eds-icon-gitlab.entry-JX-5azIw.mjs +0 -13
  192. package/eds-icon-linkedin.entry-BylIVu8G.mjs +0 -13
  193. package/eds-icon-loader.entry-DZyUa8Na.mjs +0 -13
  194. package/eds-icon-mastodon.entry-BIckHn_q.mjs +0 -13
  195. package/eds-icon-mastodon.entry-DxNG__-Y.js +0 -1
  196. package/eds-icon-menu.entry-C9N6s8Oa.mjs +0 -13
  197. package/eds-icon-menu.entry-DwN-ZAWi.js +0 -1
  198. package/eds-icon-more.entry-MUkUL_e2.mjs +0 -13
  199. package/eds-icon-search.entry-CcwwFnns.mjs +0 -13
  200. package/eds-icon-search.entry-CrfMqbyi.js +0 -1
  201. package/eds-icon-success.entry-BUzsze9h.mjs +0 -13
  202. package/eds-icon-twitter.entry-B1Iw69NW.mjs +0 -13
  203. package/eds-icon-twitter.entry-BbStwaGv.js +0 -1
  204. package/eds-icon-user.entry-CNo6pger.mjs +0 -13
  205. package/eds-icon-user.entry-vYVsxfK7.js +0 -1
  206. package/eds-icon-youtube.entry-CBU7Dvkh.mjs +0 -13
  207. package/eds-icon-youtube.entry-CmCAFp7D.js +0 -1
  208. package/eds-login.entry-Bfztcsrc.js +0 -1
  209. package/eds-login.entry-XqWPWCDL.mjs +0 -46
  210. package/eds-logo-variations.entry-Cy_fbJLx.mjs +0 -22
  211. package/eds-matomo-notice.entry-CytVSgYS.js +0 -1
  212. package/eds-matomo-notice.entry-kSuLDx9K.mjs +0 -91
  213. package/eds-pagination_2.entry-DUsG8tcv.js +0 -1
  214. package/eds-rating.entry-CErokyKU.mjs +0 -38
  215. package/eds-rating.entry-p9oWKCkQ.js +0 -1
  216. package/eds-tabs-content.entry-Cg7U8c5D.js +0 -1
  217. package/eds-tabs.entry-DS6qBEo7.js +0 -1
  218. package/eds-tooltip.entry-sjwuhdKF.js +0 -1
  219. package/incorrect-use-of-colors.entry-DkY89xG1.mjs +0 -42
  220. package/incorrect-use-of-colors.entry-e4VhTVHS.js +0 -1
  221. package/index-D2H_BflF.js +0 -21
  222. package/keycloak-13893af6-NiM3zoVg.js +0 -9
  223. package/logo-variations-horizontal_2.entry-BeQ_r9Li.js +0 -7
  224. package/logo-variations-horizontal_2.entry-CC7tj8Hr.mjs +0 -29
  225. package/logo-wrong-usage.entry-Ct1Ae63m.mjs +0 -14
  226. package/logo-wrong-usage.entry-DkqcMaqp.js +0 -1
  227. package/token-ratios.entry-aBiRsmfr.js +0 -1
  228. package/token-spacing.entry-C5HX4qPq.mjs +0 -12
  229. package/token-spacing.entry-DDiMRsNO.js +0 -1
@@ -0,0 +1,58 @@
1
+ import { r as i, c as r, h as s } from "./index-Df31uHzU.mjs";
2
+ import { l as n, a as h, i as o, b as c, g as l } from "./keycloak-d502ec16-Ce0iGqyk.mjs";
3
+ import { t } from "./toastManager-d9eee791-CEYNwx25.mjs";
4
+ const g = class {
5
+ constructor(e) {
6
+ i(this, e), this.authStatusChanged = r(this, "authStatusChanged", 7), this.handleLogin = async () => {
7
+ if (!this.authenticated)
8
+ try {
9
+ await n(), t.show("You are authenticated", "success");
10
+ } catch (a) {
11
+ t.show(a.message, "error");
12
+ }
13
+ }, this.handleLogout = async () => {
14
+ try {
15
+ await h();
16
+ } catch (a) {
17
+ t.show(a.message, "error");
18
+ }
19
+ this.authenticated = !1, this.user = null;
20
+ }, this.keycloakUrl = void 0, this.keycloakRealm = void 0, this.keycloakClientId = void 0, this.authenticated = !1, this.user = null;
21
+ }
22
+ /**
23
+ * Lifecycle method that runs when the component is about to load.
24
+ * It initializes authentication by calling the `initAuth` method.
25
+ */
26
+ async componentWillLoad() {
27
+ if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
28
+ console.error("Keycloak configuration props are missing.");
29
+ return;
30
+ }
31
+ await this.initAuth();
32
+ }
33
+ /**
34
+ * Initializes the Keycloak authentication by configuring Keycloak with the provided props.
35
+ * Sets the `authenticated` state and `user` data if the user is authenticated.
36
+ * Emits `authStatusChanged` event with the authentication status.
37
+ */
38
+ async initAuth() {
39
+ try {
40
+ await o({
41
+ url: this.keycloakUrl,
42
+ realm: this.keycloakRealm,
43
+ clientId: this.keycloakClientId
44
+ }, !0), c() && (this.user = l(), this.authenticated = !0, this.authStatusChanged.emit({
45
+ authenticated: this.authenticated,
46
+ user: this.user
47
+ }));
48
+ } catch (e) {
49
+ t.show(e.message, "error");
50
+ }
51
+ }
52
+ render() {
53
+ return s("div", { key: "62768f8a6cc8ac16b13f9b2bb9cf5835f7f63844", class: "block" }, !this.authenticated && s("eds-button", { key: "31e341d628242fed472f673c0fe8346c7871515d", label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }));
54
+ }
55
+ };
56
+ export {
57
+ g as eds_login
58
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),t=require("./keycloak-d502ec16-m7LwS-Gh.js"),a=require("./toastManager-d9eee791-DvR_vUPI.js"),r=class{constructor(i){e.registerInstance(this,i),this.authStatusChanged=e.createEvent(this,"authStatusChanged",7),this.handleLogin=async()=>{if(!this.authenticated)try{await t.login(),a.toast.show("You are authenticated","success")}catch(s){a.toast.show(s.message,"error")}},this.handleLogout=async()=>{try{await t.logout()}catch(s){a.toast.show(s.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null}async componentWillLoad(){if(!this.keycloakUrl||!this.keycloakRealm||!this.keycloakClientId){console.error("Keycloak configuration props are missing.");return}await this.initAuth()}async initAuth(){try{await t.initKeycloak({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0),t.isAuthenticated()&&(this.user=t.getUser(),this.authenticated=!0,this.authStatusChanged.emit({authenticated:this.authenticated,user:this.user}))}catch(i){a.toast.show(i.message,"error")}}render(){return e.h("div",{key:"62768f8a6cc8ac16b13f9b2bb9cf5835f7f63844",class:"block"},!this.authenticated&&e.h("eds-button",{key:"31e341d628242fed472f673c0fe8346c7871515d",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}};exports.eds_login=r;
@@ -0,0 +1,22 @@
1
+ import { r as e, h as t } from "./index-Df31uHzU.mjs";
2
+ const a = class {
3
+ constructor(n) {
4
+ e(this, n), this.tabIndex = void 0;
5
+ }
6
+ renderContent() {
7
+ switch (this.tabIndex) {
8
+ case 0:
9
+ return t("logo-variations-horizontal", null);
10
+ case 1:
11
+ return t("logo-variations-vertical", null);
12
+ default:
13
+ return t("p", null, "Content not available.");
14
+ }
15
+ }
16
+ render() {
17
+ return t("div", { key: "0494cbb3e7b4902e91a0c78c691bc3405b9f11cc", class: "container" }, this.renderContent());
18
+ }
19
+ };
20
+ export {
21
+ a as eds_logo_variations
22
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("logo-variations-horizontal",null);case 1:return e.h("logo-variations-vertical",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"9d6ce0e75030d6e636aab423181b0ce999f6f1b0",class:"container"},this.renderContent())}};exports.eds_logo_variations=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("logo-variations-horizontal",null);case 1:return e.h("logo-variations-vertical",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"0494cbb3e7b4902e91a0c78c691bc3405b9f11cc",class:"container"},this.renderContent())}};exports.eds_logo_variations=n;
@@ -0,0 +1,61 @@
1
+ import { r as s, h as i, g as a } from "./index-Df31uHzU.mjs";
2
+ import { h as r } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
3
+ import { h as l, a as n, b as c, c as h, v as g, d, e as f, f as m, g as u } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
4
+ import { s as p } from "./analytics-44b1416b-3vYuu4Xs.mjs";
5
+ const L = ".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}}", b = L, w = class {
6
+ constructor(o) {
7
+ s(this, o), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
8
+ }
9
+ /**
10
+ * Handles the click event on the logo link.
11
+ * Emits a `matomoEvent` for analytics tracking with details about the interaction.
12
+ * - `category`: Component type (e.g., "ui-component").
13
+ * - `tag`: The HTML tag name of the component.
14
+ * - `name`: Event name, set as "logo".
15
+ * - `action`: The action, set as "click".
16
+ */
17
+ handleClick() {
18
+ p({
19
+ category: "ui-component",
20
+ tag: this.el.tagName.toLowerCase(),
21
+ name: "logo",
22
+ action: "click"
23
+ });
24
+ }
25
+ /**
26
+ * Determines the appropriate SVG content based on the `orientation` and `type` props.
27
+ */
28
+ getLogo() {
29
+ const t = {
30
+ horizontal: {
31
+ color: r,
32
+ black: l,
33
+ "color-white": n,
34
+ white: c,
35
+ "no-bg": h
36
+ },
37
+ vertical: {
38
+ color: g,
39
+ black: d,
40
+ "color-white": f,
41
+ white: m,
42
+ "no-bg": u
43
+ }
44
+ }[this.orientation];
45
+ if (!t)
46
+ return r;
47
+ const e = t[this.type];
48
+ return e || t.color;
49
+ }
50
+ render() {
51
+ const o = this.getLogo();
52
+ return i("a", { key: "ee8de4071b0137020341982b4c5cb2c938f1c4df", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, i("div", { key: "1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c", innerHTML: o }));
53
+ }
54
+ get el() {
55
+ return a(this);
56
+ }
57
+ };
58
+ w.style = b;
59
+ export {
60
+ w as eds_logo
61
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DvG3cC-8.js"),r=require("./logo-color-7f1fd803-DRD3vZVn.js"),o=require("./logo-white-no-bg-f382f86f-DXYn3NwV.js"),c=require("./analytics-44b1416b-ol77SdQE.js"),s=".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}}",a=s,n=class{constructor(e){t.registerInstance(this,e),this.href="/",this.orientation="horizontal",this.type=void 0,this.label="Home"}handleClick(){c.sendAnalytics({category:"ui-component",tag:this.el.tagName.toLowerCase(),name:"logo",action:"click"})}getLogo(){const i={horizontal:{color:r.hLogoColor,black:o.hLogoBlack,"color-white":o.hLogoColorWhite,white:o.hLogoWhite,"no-bg":o.hLogoWhiteNoBg},vertical:{color:o.vLogoColor,black:o.vLogoBlack,"color-white":o.vLogoColorWhite,white:o.vLogoWhite,"no-bg":o.vLogoWhiteNoBg}}[this.orientation];if(!i)return r.hLogoColor;const l=i[this.type];return l||i.color}render(){const e=this.getLogo();return t.h("a",{key:"ee8de4071b0137020341982b4c5cb2c938f1c4df",href:this.href,onClick:()=>this.handleClick(),class:"eds-logo-wrapper","aria-label":this.label},t.h("div",{key:"1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c",innerHTML:e}))}get el(){return t.getElement(this)}};n.style=a;exports.eds_logo=n;
@@ -0,0 +1,84 @@
1
+ import { r, h as t, g as i } from "./index-Df31uHzU.mjs";
2
+ import { s as a } from "./analytics-44b1416b-3vYuu4Xs.mjs";
3
+ const o = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}", n = o, s = class {
4
+ constructor(e) {
5
+ r(this, e), this.isOpen = !1, this.title = "", this.truncate = !0, this.truncateLines = "1", this.position = "middle";
6
+ }
7
+ getTruncateClass() {
8
+ return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : "";
9
+ }
10
+ /**
11
+ * Returns the Tailwind CSS classes to position the modal based on the `position` prop.
12
+ *
13
+ * @private
14
+ * @returns {string} The concatenated CSS classes for modal positioning.
15
+ */
16
+ getModalPositionClasses() {
17
+ switch (this.position) {
18
+ case "top":
19
+ return "left-1/2 top-20 -translate-x-1/2";
20
+ case "bottom":
21
+ return "left-1/2 bottom-20 -translate-x-1/2";
22
+ case "left":
23
+ return "left-20 top-1/2 -translate-y-1/2";
24
+ case "right":
25
+ return "right-20 top-1/2 -translate-y-1/2";
26
+ case "middle":
27
+ default:
28
+ return "left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2";
29
+ }
30
+ }
31
+ /**
32
+ * Opens the modal.
33
+ */
34
+ async open() {
35
+ var e;
36
+ this.isOpen = !0, a({
37
+ category: "ui-component",
38
+ parentContext: null,
39
+ tag: this.el.tagName.toLowerCase(),
40
+ name: ((e = this.title) === null || e === void 0 ? void 0 : e.toLowerCase()) || "",
41
+ action: "opened"
42
+ });
43
+ }
44
+ /**
45
+ * Closes the modal.
46
+ */
47
+ async close() {
48
+ var e;
49
+ this.isOpen = !1, a({
50
+ category: "ui-component",
51
+ parentContext: null,
52
+ tag: this.el.tagName.toLowerCase(),
53
+ name: ((e = this.title) === null || e === void 0 ? void 0 : e.toLowerCase()) || "",
54
+ action: "closed"
55
+ });
56
+ }
57
+ /**
58
+ * Toggles the modal open or closed.
59
+ */
60
+ async toggle() {
61
+ this.isOpen = !this.isOpen;
62
+ }
63
+ /**
64
+ * Closes the modal when the Escape key is pressed.
65
+ */
66
+ handleKeyDown(e) {
67
+ this.isOpen && e.key === "Escape" && this.close();
68
+ }
69
+ render() {
70
+ const e = `modal-title-${this.el.tagName.toLowerCase()}`;
71
+ return t("div", { key: "cd976fb0cd0c0663279dcd4dbd5823e26b6c32f7", class: `${this.isOpen ? "block" : "hidden"} fixed inset-0 z-50 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": e }, this.isOpen && t("div", {
72
+ key: "40a2febed5d0ec15d5370183c97cfd05abd72007",
73
+ class: "fixed inset-0 bg-dark bg-opacity-90",
74
+ onClick: () => this.close()
75
+ }), t("div", { key: "50f2c23d80a2007aca4d0a8911816141e43b71ee", class: `max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, t("div", { key: "e1cba5879bc488a99b896c48c8a780336b2195e7", class: "flex justify-between items-center border-b-2 border-softer pb-8" }, t("span", { key: "8f018e3d2890346d23e7dcb115676051048bcacb", id: e, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), t("eds-button", { key: "4ae4013dd45573648817ac95ee4370ed615aa6a0", intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), t("div", { key: "ac4e3d8f273d04ad02e0123c23b36b89bfc89db2", class: "pt-8" }, t("slot", { key: "60917e9f750bfd7948e580acc817cffe6424608a" }))));
76
+ }
77
+ get el() {
78
+ return i(this);
79
+ }
80
+ };
81
+ s.style = n;
82
+ export {
83
+ s as eds_modal
84
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DvG3cC-8.js"),a=require("./analytics-44b1416b-ol77SdQE.js"),i=".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}",o=i,r=class{constructor(e){t.registerInstance(this,e),this.isOpen=!1,this.title="",this.truncate=!0,this.truncateLines="1",this.position="middle"}getTruncateClass(){return this.truncate&&this.truncateLines?`line-clamp-${this.truncateLines}`:""}getModalPositionClasses(){switch(this.position){case"top":return"left-1/2 top-20 -translate-x-1/2";case"bottom":return"left-1/2 bottom-20 -translate-x-1/2";case"left":return"left-20 top-1/2 -translate-y-1/2";case"right":return"right-20 top-1/2 -translate-y-1/2";case"middle":default:return"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"}}async open(){var e;this.isOpen=!0,a.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((e=this.title)===null||e===void 0?void 0:e.toLowerCase())||"",action:"opened"})}async close(){var e;this.isOpen=!1,a.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((e=this.title)===null||e===void 0?void 0:e.toLowerCase())||"",action:"closed"})}async toggle(){this.isOpen=!this.isOpen}handleKeyDown(e){this.isOpen&&e.key==="Escape"&&this.close()}render(){const e=`modal-title-${this.el.tagName.toLowerCase()}`;return t.h("div",{key:"cd976fb0cd0c0663279dcd4dbd5823e26b6c32f7",class:`${this.isOpen?"block":"hidden"} fixed inset-0 z-50 flex`,role:"dialog","aria-modal":"true","aria-labelledby":e},this.isOpen&&t.h("div",{key:"40a2febed5d0ec15d5370183c97cfd05abd72007",class:"fixed inset-0 bg-dark bg-opacity-90",onClick:()=>this.close()}),t.h("div",{key:"50f2c23d80a2007aca4d0a8911816141e43b71ee",class:`max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center`},t.h("div",{key:"e1cba5879bc488a99b896c48c8a780336b2195e7",class:"flex justify-between items-center border-b-2 border-softer pb-8"},t.h("span",{key:"8f018e3d2890346d23e7dcb115676051048bcacb",id:e,class:`f-heading-04 text-lighter ${this.getTruncateClass()}`},this.title),t.h("eds-button",{key:"4ae4013dd45573648817ac95ee4370ed615aa6a0",intent:"tertiary",icon:"close","aria-label":"Close modal",onClick:()=>this.close(),"extra-class":"ml-8"})),t.h("div",{key:"ac4e3d8f273d04ad02e0123c23b36b89bfc89db2",class:"pt-8"},t.h("slot",{key:"60917e9f750bfd7948e580acc817cffe6424608a"}))))}get el(){return t.getElement(this)}};r.style=o;exports.eds_modal=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),n=class{constructor(t){e.registerInstance(this,t),this.prevLabel=void 0,this.nextLabel=void 0,this.prevUrl=void 0,this.nextUrl=void 0,this.linkSize="small",this.linkIntent="tertiary"}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(i=>{this.emitContext(i)})}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}render(){return e.h("ul",{key:"1ab60197bbc9ee86d77134138744dce39df2aaa7",class:"flex lg:flex grow items-center justify-center gap-x-8"},this.prevLabel&&e.h("eds-link",{key:"b29fd121d33c1e919d24a5d460d8d6864f1ff9db",label:this.prevLabel,url:this.prevUrl||void 0,disabled:!this.prevUrl,"aria-label":this.prevLabel,size:this.linkSize,intent:this.linkIntent,class:"mr-auto !p-8 lg:!pr-12"},e.h("eds-icon-wrapper",{key:"64620ccfaf2e006a6414bcd7e874a352b9d2d56b",icon:"chevron-left"}),this.prevLabel),this.nextLabel&&e.h("eds-link",{key:"ae6425f0f01c8f5bcbdae27d9bea9dc3a5b09d3b",label:this.nextLabel,url:this.nextUrl||void 0,disabled:!this.nextUrl,"aria-label":this.nextLabel,size:this.linkSize,intent:this.linkIntent,class:"ml-auto !p-8 lg:!pl-12"},this.nextLabel,e.h("eds-icon-wrapper",{key:"d286fc26f17ee6cf6828990e98df7865fbbfd352",icon:"chevron-right",class:"w-20 h-20"})))}get el(){return e.getElement(this)}};exports.eds_navigator=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),n=class{constructor(t){e.registerInstance(this,t),this.prevLabel=void 0,this.nextLabel=void 0,this.prevUrl=void 0,this.nextUrl=void 0,this.linkSize="small",this.linkIntent="tertiary"}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(i=>{this.emitContext(i)})}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}render(){return e.h("ul",{key:"712287e683436cc98c2d6ef195501add1929522e",class:"flex lg:flex grow items-center justify-center gap-x-8"},this.prevLabel&&e.h("eds-link",{key:"4fda36ce37897284d7062f88133f147831d96a6f",label:this.prevLabel,url:this.prevUrl||void 0,disabled:!this.prevUrl,"aria-label":this.prevLabel,size:this.linkSize,intent:this.linkIntent,class:"mr-auto !p-8 lg:!pr-12"},e.h("eds-icon-wrapper",{key:"9bfa6bbbdc68641f65bec49f207d96f075b9a5b0",icon:"chevron-left"}),this.prevLabel),this.nextLabel&&e.h("eds-link",{key:"6ee8ebee011a2c30a74645b072c7c37929d0a55f",label:this.nextLabel,url:this.nextUrl||void 0,disabled:!this.nextUrl,"aria-label":this.nextLabel,size:this.linkSize,intent:this.linkIntent,class:"ml-auto !p-8 lg:!pl-12"},this.nextLabel,e.h("eds-icon-wrapper",{key:"44ebd4dcce0e367df7d9035bb445e49fde35e913",icon:"chevron-right",class:"w-20 h-20"})))}get el(){return e.getElement(this)}};exports.eds_navigator=n;
@@ -1,4 +1,4 @@
1
- import { r as n, h as e, g as l } from "./index-I5Asbjce.mjs";
1
+ import { r as n, h as e, g as l } from "./index-Df31uHzU.mjs";
2
2
  const a = class {
3
3
  constructor(t) {
4
4
  n(this, t), this.prevLabel = void 0, this.nextLabel = void 0, this.prevUrl = void 0, this.nextUrl = void 0, this.linkSize = "small", this.linkIntent = "tertiary";
@@ -22,7 +22,7 @@ const a = class {
22
22
  t.dispatchEvent(i);
23
23
  }
24
24
  render() {
25
- return e("ul", { key: "1ab60197bbc9ee86d77134138744dce39df2aaa7", class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && e("eds-link", { key: "b29fd121d33c1e919d24a5d460d8d6864f1ff9db", label: this.prevLabel, url: this.prevUrl || void 0, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, e("eds-icon-wrapper", { key: "64620ccfaf2e006a6414bcd7e874a352b9d2d56b", icon: "chevron-left" }), this.prevLabel), this.nextLabel && e("eds-link", { key: "ae6425f0f01c8f5bcbdae27d9bea9dc3a5b09d3b", label: this.nextLabel, url: this.nextUrl || void 0, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, e("eds-icon-wrapper", { key: "d286fc26f17ee6cf6828990e98df7865fbbfd352", icon: "chevron-right", class: "w-20 h-20" })));
25
+ return e("ul", { key: "712287e683436cc98c2d6ef195501add1929522e", class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && e("eds-link", { key: "4fda36ce37897284d7062f88133f147831d96a6f", label: this.prevLabel, url: this.prevUrl || void 0, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, e("eds-icon-wrapper", { key: "9bfa6bbbdc68641f65bec49f207d96f075b9a5b0", icon: "chevron-left" }), this.prevLabel), this.nextLabel && e("eds-link", { key: "6ee8ebee011a2c30a74645b072c7c37929d0a55f", label: this.nextLabel, url: this.nextUrl || void 0, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, e("eds-icon-wrapper", { key: "44ebd4dcce0e367df7d9035bb445e49fde35e913", icon: "chevron-right", class: "w-20 h-20" })));
26
26
  }
27
27
  get el() {
28
28
  return l(this);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-DvG3cC-8.js"),d=require("./analytics-44b1416b-ol77SdQE.js"),c="ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.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)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{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:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}",f=c,h=class{constructor(t){i.registerInstance(this,t),this.currentPage=void 0,this.lastPage=void 0,this.perPage=10,this.total=0,this.url="",this.mode="default",this.prevLabel="Prev",this.nextLabel="Next",this.prevUrl="",this.nextUrl="",this.links=[]}componentWillLoad(){this.mode==="default"&&this.generateLinks()}componentDidLoad(){this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach(e=>{this.emitContext(e)})}emitContext(t){const e=new CustomEvent("parentContext",{detail:{componentName:this.hostEl.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(e)}onPageOrLastPageChange(){this.mode==="default"&&this.generateLinks()}isFirstPage(){return this.currentPage===1}isLastPage(){return this.currentPage===this.lastPage}generateLink(t){const e=this.url.includes("?");return{ariaLabel:`Page ${t}`,url:`${this.url}${e?"&":"?"}page=${t}`,label:t.toString(),current:this.currentPage===t,disabled:!1}}generateLinks(){this.lastPage&&this.lastPage>5?this.links=this.getPaginationGenerator(this.currentPage||1,this.lastPage).map(t=>typeof t=="number"?this.generateLink(t):t):this.lastPage&&(this.links=Array.from({length:this.lastPage}).map((t,e)=>this.generateLink(e+1)))}getPaginationGenerator(t,e){const a=[];if(e<=5)for(let n=1;n<=e;n++)a.push(n);else{a.push(1),t-1>2&&a.push("...");for(let n=Math.max(2,t-1);n<=Math.min(e-1,t+1);n++)a.push(n);t+1<e-1&&a.push("..."),a.push(e)}return a}pageResults(){return this.total>0?this.total>this.perPage?`${this.perPage*((this.currentPage||1)-1)+1} - ${this.perPage*(this.currentPage||1)>=this.total?this.total:this.perPage*(this.currentPage||1)} of ${this.total}`:`${this.total}`:""}handlePageClick(t,e){if(this.mode!=="navigator"&&(t.preventDefault(),e!==this.currentPage)){this.links=this.links.map(a=>typeof a=="object"?Object.assign(Object.assign({},a),{current:parseInt(a.label)===e}):a);const s=new CustomEvent("pageChange",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"8c8418eec263acc153a928b752775458f897504f"},this.total>0&&this.mode==="default"&&i.h("p",{key:"02a5a69772a4812f10b29e8df117b72df210614d",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"ef9804843100c722643c24e31a05f86f2d55efa0",class:"sr-only"},"Results:"),this.pageResults()),this.mode==="navigator"||this.lastPage&&this.lastPage>1?i.h("nav",{"aria-label":"Pagination"},i.h("ul",{class:"flex items-center justify-center gap-x-8"},i.h("li",{class:"mr-auto"},i.h("eds-link",{label:this.prevLabel,url:this.mode==="navigator"?this.prevUrl||"#":this.isFirstPage()?"#":this.generateLink(this.currentPage-1).url,disabled:this.mode==="navigator"?!this.prevUrl:this.isFirstPage(),"aria-label":"Previous page",icon:"chevron-left","icon-pos":"left",size:"small","icon-small":"true",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pr-12",onClick:t=>{this.mode==="default"&&(this.isFirstPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)-1))}})),this.mode==="default"&&this.links.map((t,e)=>i.h("li",{key:e,class:"f-ui-02 flex h-36 items-center justify-center"},typeof t=="string"?i.h("span",{class:"flex items-center justify-center"},t):i.h("eds-link",{url:t.url,"aria-label":t.ariaLabel,label:t.label,current:t.current,size:"small",class:"!p-8",intent:t.current?"secondary":"ghost",onClick:s=>this.handlePageClick(s,parseInt(t.label))}))),i.h("li",{class:"ml-auto"},i.h("eds-link",{label:this.nextLabel,url:this.mode==="navigator"?this.nextUrl||"#":this.isLastPage()?"#":this.generateLink(this.currentPage+1).url,disabled:this.mode==="navigator"?!this.nextUrl:this.isLastPage(),"aria-label":"Next page",size:"small","icon-small":"true",icon:"chevron-right",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors",onClick:t=>{this.mode==="default"&&(this.isLastPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)+1))}})))):null)}get hostEl(){return i.getElement(this)}static get watchers(){return{currentPage:["onPageOrLastPageChange"],lastPage:["onPageOrLastPageChange"]}}};h.style=f;const u="table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.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)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}",p=u,g=class{constructor(t){i.registerInstance(this,t),this.data=null,this.endpoint=null,this.config={},this.rowsPerPage=10,this.paginationEnabled=!0,this.searchEnabled=!1,this.hostWidth=void 0,this.columnSize="default",this.tableData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery=""}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}parseData(){try{this.tableData=typeof this.data=="string"?JSON.parse(this.data):this.data||[],this.totalRows=this.tableData.length,this.updateColumns(),this.currentPage=1}catch(t){console.error("Failed to parse data:",t),this.tableData=[]}}parseConfig(){try{this.parsedConfig=typeof this.config=="string"?JSON.parse(this.config):this.config}catch(t){console.error("Failed to parse config:",t),this.parsedConfig={}}}async fetchData(){try{const e=await(await fetch(this.endpoint)).json();this.data=e}catch(t){console.error("Failed to fetch data:",t)}}setupPaginationListener(){if(!this.shouldEnablePagination())return;const t=this.hostEl.shadowRoot.querySelector("eds-pagination");t&&!t.hasAttribute("listener-attached")&&(t.addEventListener("pageChange",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tableData.filter(t=>Object.values(t).some(e=>e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())))}getPaginatedRows(){const t=this.getFilteredRows();this.totalRows=t.length;const e=(this.currentPage-1)*this.rowsPerPage;return t.slice(e,e+this.rowsPerPage)}handlePageChange(t){this.currentPage=t,d.sendAnalytics({category:"ui-component",parentContext:null,tag:`${this.hostEl.tagName.toLowerCase()}/eds-pagination`,name:`${t}`||"",action:"page"})}handleSearch(t){this.searchQuery=t.target.value,this.currentPage=1}renderCell(t,e){var s;const a=(s=this.parsedConfig[e])===null||s===void 0?void 0:s.format;return a==="uppercase"?t==null?void 0:t.toString().toUpperCase():a==="svg"?i.h("div",{innerHTML:t}):a==="bold"?i.h("strong",null,t):a==="code"?i.h("code",null,t):t}shouldEnablePagination(){return this.paginationEnabled&&this.totalRows>this.rowsPerPage}updateColumns(){this.columns=this.tableData.length>0?Object.keys(this.tableData[0]):[]}getVisibleColumnsCount(){return this.columns.filter(t=>{var e;return!(!((e=this.parsedConfig[t])===null||e===void 0)&&e.hidden)}).length}divisionFactor(){let t=1;return this.columnSize==="medium"?t=2:this.columnSize==="large"&&(t=4),t}render(){const t=this.getPaginatedRows(),e=Math.ceil(this.totalRows/this.rowsPerPage),s=this.getVisibleColumnsCount(),a=this.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.hostEl.parentElement.getBoundingClientRect().width:this.hostEl.getRootNode().host instanceof HTMLElement?this.hostEl.getRootNode().host.getBoundingClientRect().width:400,n=s>0?Math.floor(a/s*this.divisionFactor()):100;return i.h("div",{key:"66ca59804bc8054655ed0d942104516fe4cd259b"},this.searchEnabled&&i.h("div",{key:"df7267fc443da042e4b6ff81ded5800a2213bd73"},i.h("eds-input-field",{key:1,name:"search","aria-label":"Search",type:"text",placeholder:"Search...",onInput:o=>this.handleSearch(o)})),i.h("div",{key:"80ac1fcb3802f9f5d5eabe016fb7345b88908b36",class:"mt-20"},i.h("table",{key:"09acf39378b1a4c8bfe40b496ec6bf71a2d761ca",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"8b844806cfef10d1a59da54a385ee8ed6c167050"},i.h("tr",{key:"1b3cff91bdaf225e9f3b337e245cd80ad4772b6a",class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(o=>{var r;return!(!((r=this.parsedConfig[o])===null||r===void 0)&&r.hidden)&&i.h("th",{class:"m-0 py-8 border border-softer f-ui-02 break-words",style:{minWidth:`${n-5}px`}},o)}))),i.h("tbody",{key:"93dfd3abd196779c288f85bb6a357ad3e9c01418"},t.map(o=>i.h("tr",{class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(r=>{var l;return!(!((l=this.parsedConfig[r])===null||l===void 0)&&l.hidden)&&i.h("td",{class:"text-center border border-softer m-0 py-8 f-ui-2 break-words",style:{minWidth:`${n-5}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58",class:"mt-20"},i.h("eds-pagination",{key:"abe3a593827d99437a06e204ea9d8ef92f80aba7",currentPage:this.currentPage,lastPage:e,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};g.style=p;exports.eds_pagination=h;exports.eds_table=g;
@@ -1,5 +1,5 @@
1
- import { r as h, h as i, g } from "./index-I5Asbjce.mjs";
2
- import { s as d } from "./color-bb472c37-DDERsxdk.mjs";
1
+ import { r as h, h as i, g } from "./index-Df31uHzU.mjs";
2
+ import { s as d } from "./analytics-44b1416b-3vYuu4Xs.mjs";
3
3
  const c = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.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)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{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:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}", f = c, u = class {
4
4
  constructor(t) {
5
5
  h(this, t), this.currentPage = void 0, this.lastPage = void 0, this.perPage = 10, this.total = 0, this.url = "", this.mode = "default", this.prevLabel = "Prev", this.nextLabel = "Next", this.prevUrl = "", this.nextUrl = "", this.links = [];
@@ -108,7 +108,7 @@ const c = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(-
108
108
  }
109
109
  }
110
110
  render() {
111
- return i("div", { key: "584e0918b070eac25a7c4bfceff59b000b60076c" }, this.total > 0 && this.mode === "default" && i("p", { key: "c688bd8e1f1d15904fc274454093f03213f59e38", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "c2472919bad41f76e26d518da27509e545ed9db6", class: "sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? i("nav", { "aria-label": "Pagination" }, i("ul", { class: "flex items-center justify-center gap-x-8" }, i("li", { class: "mr-auto" }, i("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12", onClick: (t) => {
111
+ return i("div", { key: "8c8418eec263acc153a928b752775458f897504f" }, this.total > 0 && this.mode === "default" && i("p", { key: "02a5a69772a4812f10b29e8df117b72df210614d", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "ef9804843100c722643c24e31a05f86f2d55efa0", class: "sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? i("nav", { "aria-label": "Pagination" }, i("ul", { class: "flex items-center justify-center gap-x-8" }, i("li", { class: "mr-auto" }, i("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12", onClick: (t) => {
112
112
  this.mode === "default" && (this.isFirstPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) - 1));
113
113
  } })), this.mode === "default" && this.links.map((t, e) => i("li", { key: e, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof t == "string" ? i("span", { class: "flex items-center justify-center" }, t) : i("eds-link", { url: t.url, "aria-label": t.ariaLabel, label: t.label, current: t.current, size: "small", class: "!p-8", intent: t.current ? "secondary" : "ghost", onClick: (s) => this.handlePageClick(s, parseInt(t.label)) }))), i("li", { class: "ml-auto" }, i("eds-link", { label: this.nextLabel, url: this.mode === "navigator" ? this.nextUrl || "#" : this.isLastPage() ? "#" : this.generateLink(this.currentPage + 1).url, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (t) => {
114
114
  this.mode === "default" && (this.isLastPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) + 1));
@@ -216,7 +216,7 @@ const p = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.c
216
216
  }
217
217
  render() {
218
218
  const t = this.getPaginatedRows(), e = Math.ceil(this.totalRows / this.rowsPerPage), s = this.getVisibleColumnsCount(), a = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.hostEl.parentElement instanceof HTMLElement ? this.hostEl.parentElement.getBoundingClientRect().width : this.hostEl.getRootNode().host instanceof HTMLElement ? this.hostEl.getRootNode().host.getBoundingClientRect().width : 400, n = s > 0 ? Math.floor(a / s * this.divisionFactor()) : 100;
219
- return i("div", { key: "69fd87330d2049eeb91751c781c7aa753fa89883" }, this.searchEnabled && i("div", { key: "2f9680dd17b852b140fe560f7979e1dd58236c5a" }, i("eds-input-field", {
219
+ return i("div", { key: "66ca59804bc8054655ed0d942104516fe4cd259b" }, this.searchEnabled && i("div", { key: "df7267fc443da042e4b6ff81ded5800a2213bd73" }, i("eds-input-field", {
220
220
  key: 1,
221
221
  name: "search",
222
222
  "aria-label": "Search",
@@ -224,13 +224,13 @@ const p = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.c
224
224
  placeholder: "Search...",
225
225
  // @ts-ignore
226
226
  onInput: (o) => this.handleSearch(o)
227
- })), i("div", { key: "d67edb24308e526a3e860a90250d58cf8bfee9c8", class: "mt-20" }, i("table", { key: "9a2ef219110e459ac670a0f9c2e62c600f6b5acd", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "81bae222447e805d06642dda19903d5bf99f2b01" }, i("tr", { key: "582d7ea661823b81ccdf3adc9769fe53cf56f04c", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
227
+ })), i("div", { key: "80ac1fcb3802f9f5d5eabe016fb7345b88908b36", class: "mt-20" }, i("table", { key: "09acf39378b1a4c8bfe40b496ec6bf71a2d761ca", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "8b844806cfef10d1a59da54a385ee8ed6c167050" }, i("tr", { key: "1b3cff91bdaf225e9f3b337e245cd80ad4772b6a", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
228
228
  var r;
229
- return !(!((r = this.parsedConfig[o]) === null || r === void 0) && r.hidden) && i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${n}px` } }, o);
230
- }))), i("tbody", { key: "ce7f87e665c394c5e9f2201ef2658e888ea07948" }, t.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
229
+ return !(!((r = this.parsedConfig[o]) === null || r === void 0) && r.hidden) && i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${n - 5}px` } }, o);
230
+ }))), i("tbody", { key: "93dfd3abd196779c288f85bb6a357ad3e9c01418" }, t.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
231
231
  var l;
232
- return !(!((l = this.parsedConfig[r]) === null || l === void 0) && l.hidden) && i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${n}px` } }, this.renderCell(o[r], r));
233
- })))))), this.shouldEnablePagination() && i("div", { key: "0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0", class: "mt-20" }, i("eds-pagination", { key: "5192f3f4b2ee93d5864d1afed3341a122c826d97", currentPage: this.currentPage, lastPage: e, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
232
+ return !(!((l = this.parsedConfig[r]) === null || l === void 0) && l.hidden) && i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${n - 5}px` } }, this.renderCell(o[r], r));
233
+ })))))), this.shouldEnablePagination() && i("div", { key: "516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58", class: "mt-20" }, i("eds-pagination", { key: "abe3a593827d99437a06e204ea9d8ef92f80aba7", currentPage: this.currentPage, lastPage: e, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
234
234
  }
235
235
  get hostEl() {
236
236
  return g(this);
@@ -1,7 +1,7 @@
1
- import { r, h as t } from "./index-I5Asbjce.mjs";
2
- const o = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.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)}", a = o, i = class {
1
+ import { r as t, h as r } from "./index-Df31uHzU.mjs";
2
+ const a = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.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)}", o = a, i = class {
3
3
  constructor(e) {
4
- r(this, e), this.value = 0;
4
+ t(this, e), this.value = 0;
5
5
  }
6
6
  /**
7
7
  * Method to update the progress value externally.
@@ -12,10 +12,10 @@ const o = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:v
12
12
  }
13
13
  render() {
14
14
  const e = this.value;
15
- return t("div", { key: "3131f56034a9fd72ca51e448bc2bcc6281669b25", class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, t("div", { key: "f1665a254f8dbe1ccb9e512e5f2e7c1e5ab88c07", class: "inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02", style: { width: `${e}%` } }, e, "%"));
15
+ return r("div", { key: "0f47fedbf9d44887f65b399e184215f0937b1df1", role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": e, "aria-valuetext": `${e}%`, class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, r("div", { key: "a2d095d778842c969832ea6b1ba7f7ef917d1390", class: "inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02", style: { width: `${e}%` } }, e, "%"));
16
16
  }
17
17
  };
18
- i.style = a;
18
+ i.style = o;
19
19
  export {
20
20
  i as eds_progress_bar
21
21
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D2H_BflF.js"),o=".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.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)}",i=o,r=class{constructor(e){t.registerInstance(this,e),this.value=0}async updateValue(e){this.value=Math.min(100,Math.max(0,e))}render(){const e=this.value;return t.h("div",{key:"3131f56034a9fd72ca51e448bc2bcc6281669b25",class:"outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden"},t.h("div",{key:"f1665a254f8dbe1ccb9e512e5f2e7c1e5ab88c07",class:"inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02",style:{width:`${e}%`}},e,"%"))}};r.style=i;exports.eds_progress_bar=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-DvG3cC-8.js"),a=".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.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)}",o=a,t=class{constructor(e){r.registerInstance(this,e),this.value=0}async updateValue(e){this.value=Math.min(100,Math.max(0,e))}render(){const e=this.value;return r.h("div",{key:"0f47fedbf9d44887f65b399e184215f0937b1df1",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e,"aria-valuetext":`${e}%`,class:"outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden"},r.h("div",{key:"a2d095d778842c969832ea6b1ba7f7ef917d1390",class:"inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02",style:{width:`${e}%`}},e,"%"))}};t.style=o;exports.eds_progress_bar=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),l=":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}",g=l,r=class{constructor(t){e.registerInstance(this,t),this.ratingChange=e.createEvent(this,"ratingChange",7),this.stars=5,this.label="Rate your experience",this.textMapping=["Very Poor","Poor","Average","Good","Excellent"],this.selectedRating=0}get parsedMappings(){if(typeof this.textMapping=="object")return this.textMapping;if(typeof this.textMapping=="string")try{return JSON.parse(this.textMapping)}catch{return[]}return[]}handleClick(t){this.selectedRating=t,this.ratingChange.emit(t)}render(){return e.h("div",{key:"b613863ad54ae9b381a5741bce4b188eff806ef0",class:"relative w-full flex flex-col"},e.h("span",{key:"f35cef9c3691aab73995e2ca6e2554cc19bae837",class:"f-heading-05"},this.label),e.h("div",{key:"37082eb4bbadf5c211c197f3f81501d0b0e61404",role:"radiogroup","aria-label":this.label,class:"stars flex space-x-2"},Array.from({length:this.stars},(t,n)=>{const i=n+1,a=i<=this.selectedRating,f=this.parsedMappings[i-1]||`Rating ${i}`;return e.h("eds-button",{label:"★",role:"radio","aria-checked":a?"true":"false","aria-label":f,onClick:()=>this.handleClick(i),tabIndex:this.selectedRating===0&&n===0||a?0:-1,intent:a?"primary":"ghost",size:"small","extra-class":"p-2"})})),this.selectedRating>0&&this.parsedMappings[this.selectedRating-1]&&e.h("span",{key:"61b4b92e476cfa0dd9bf405cb080dedd995ff9c6",class:"f-ui-04 text-lighter mt-4"},this.parsedMappings[this.selectedRating-1]))}};r.style=g;exports.eds_rating=r;
@@ -0,0 +1,48 @@
1
+ import { r as f, c as l, h as t } from "./index-Df31uHzU.mjs";
2
+ const g = ":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}", s = g, o = class {
3
+ constructor(e) {
4
+ f(this, e), this.ratingChange = l(this, "ratingChange", 7), this.stars = 5, this.label = "Rate your experience", this.textMapping = ["Very Poor", "Poor", "Average", "Good", "Excellent"], this.selectedRating = 0;
5
+ }
6
+ /**
7
+ * Parses the `textMapping` prop into an array of strings.
8
+ */
9
+ get parsedMappings() {
10
+ if (typeof this.textMapping == "object")
11
+ return this.textMapping;
12
+ if (typeof this.textMapping == "string")
13
+ try {
14
+ return JSON.parse(this.textMapping);
15
+ } catch {
16
+ return [];
17
+ }
18
+ return [];
19
+ }
20
+ /**
21
+ * Handles the click event on a star.
22
+ * @param rating - The selected rating value.
23
+ */
24
+ handleClick(e) {
25
+ this.selectedRating = e, this.ratingChange.emit(e);
26
+ }
27
+ render() {
28
+ return t("div", { key: "b613863ad54ae9b381a5741bce4b188eff806ef0", class: "relative w-full flex flex-col" }, t("span", { key: "f35cef9c3691aab73995e2ca6e2554cc19bae837", class: "f-heading-05" }, this.label), t("div", { key: "37082eb4bbadf5c211c197f3f81501d0b0e61404", role: "radiogroup", "aria-label": this.label, class: "stars flex space-x-2" }, Array.from({ length: this.stars }, (e, n) => {
29
+ const i = n + 1, a = i <= this.selectedRating, r = this.parsedMappings[i - 1] || `Rating ${i}`;
30
+ return t("eds-button", {
31
+ label: "★",
32
+ role: "radio",
33
+ "aria-checked": a ? "true" : "false",
34
+ "aria-label": r,
35
+ onClick: () => this.handleClick(i),
36
+ tabIndex: this.selectedRating === 0 && n === 0 || a ? 0 : -1,
37
+ intent: a ? "primary" : "ghost",
38
+ size: "small",
39
+ "extra-class": "p-2"
40
+ // Optional padding or styling for the star button
41
+ });
42
+ })), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && t("span", { key: "61b4b92e476cfa0dd9bf405cb080dedd995ff9c6", class: "f-ui-04 text-lighter mt-4" }, this.parsedMappings[this.selectedRating - 1]));
43
+ }
44
+ };
45
+ o.style = s;
46
+ export {
47
+ o as eds_rating
48
+ };
@@ -1,14 +1,14 @@
1
- import { r as t, h as s } from "./index-I5Asbjce.mjs";
2
- const n = "", a = n, c = class {
1
+ import { r as t, h as s } from "./index-Df31uHzU.mjs";
2
+ const a = "", n = a, c = class {
3
3
  constructor(e) {
4
4
  t(this, e), this.tag = "section", this.sectionTitle = "", this.headingLevel = "h2";
5
5
  }
6
6
  render() {
7
7
  const e = this.tag;
8
- return s(e, { key: "849c35d9cd587cf14b0d6bc6efd1310a85d447f2" }, s("eds-section-heading", { key: "7ed4486fcf6e7c653026869c9468be9471db1775", headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), s("slot", { key: "5d95ea6516ecaaab4e07a40b84cd20deb3d8d3b2" }));
8
+ return s(e, { key: "e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac" }, s("eds-section-heading", { key: "379c6bc644612d3e0865ce2acd8eacb4d67c7769", headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), s("slot", { key: "5828a28c2c8ac65fbc56652f733f148a0d0198b7" }));
9
9
  }
10
10
  };
11
- c.style = a;
11
+ c.style = n;
12
12
  const d = class {
13
13
  constructor(e) {
14
14
  t(this, e), this.sectionTitle = void 0, this.withContainer = !0, this.headingLevel = "h2", this.tag = "div", this.spacingLarge = !1;
@@ -25,12 +25,12 @@ const d = class {
25
25
  }
26
26
  render() {
27
27
  const e = this.tag, i = this.headingLevel;
28
- return s(e, { key: "2c6466c0a02bf8598153c18eafb37affc3dac395", class: {
28
+ return s(e, { key: "c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb", class: {
29
29
  "ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20": !0,
30
30
  container: this.withContainer,
31
31
  "pt-48": this.spacingLarge,
32
32
  "pt-28": !this.spacingLarge
33
- } }, s(i, { key: "fc7f0f09e02e8c63697e46811c465792497126e0", class: this.getHeadingClass() }, this.sectionTitle));
33
+ } }, s(i, { key: "e65e13820553eefa5aec8bc9740e5e9da828ac92", class: this.getHeadingClass() }, this.sectionTitle));
34
34
  }
35
35
  };
36
36
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D2H_BflF.js"),n="",a=n,s=class{constructor(e){t.registerInstance(this,e),this.tag="section",this.sectionTitle="",this.headingLevel="h2"}render(){const e=this.tag;return t.h(e,{key:"849c35d9cd587cf14b0d6bc6efd1310a85d447f2"},t.h("eds-section-heading",{key:"7ed4486fcf6e7c653026869c9468be9471db1775",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),t.h("slot",{key:"5d95ea6516ecaaab4e07a40b84cd20deb3d8d3b2"}))}};s.style=a;const c=class{constructor(e){t.registerInstance(this,e),this.sectionTitle=void 0,this.withContainer=!0,this.headingLevel="h2",this.tag="div",this.spacingLarge=!1}getHeadingClass(){return{h1:"f-heading-01",h2:"f-heading-02",h3:"f-heading-03",h4:"f-heading-04",h5:"f-heading-05",h6:"f-heading-06"}[this.headingLevel]}render(){const e=this.tag,i=this.headingLevel;return t.h(e,{key:"2c6466c0a02bf8598153c18eafb37affc3dac395",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},t.h(i,{key:"fc7f0f09e02e8c63697e46811c465792497126e0",class:this.getHeadingClass()},this.sectionTitle))}};exports.eds_section_core=s;exports.eds_section_heading=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DvG3cC-8.js"),a="",n=a,s=class{constructor(e){t.registerInstance(this,e),this.tag="section",this.sectionTitle="",this.headingLevel="h2"}render(){const e=this.tag;return t.h(e,{key:"e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac"},t.h("eds-section-heading",{key:"379c6bc644612d3e0865ce2acd8eacb4d67c7769",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),t.h("slot",{key:"5828a28c2c8ac65fbc56652f733f148a0d0198b7"}))}};s.style=n;const c=class{constructor(e){t.registerInstance(this,e),this.sectionTitle=void 0,this.withContainer=!0,this.headingLevel="h2",this.tag="div",this.spacingLarge=!1}getHeadingClass(){return{h1:"f-heading-01",h2:"f-heading-02",h3:"f-heading-03",h4:"f-heading-04",h5:"f-heading-05",h6:"f-heading-06"}[this.headingLevel]}render(){const e=this.tag,i=this.headingLevel;return t.h(e,{key:"c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},t.h(i,{key:"e65e13820553eefa5aec8bc9740e5e9da828ac92",class:this.getHeadingClass()},this.sectionTitle))}};exports.eds_section_core=s;exports.eds_section_heading=c;
@@ -0,0 +1,50 @@
1
+ import { r as o, h as t } from "./index-Df31uHzU.mjs";
2
+ const n = "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}", l = n, r = class {
3
+ constructor(e) {
4
+ o(this, e), this.socialNetworks = [
5
+ {
6
+ label: "Twitter",
7
+ url: "https://twitter.com/ebrains_eu",
8
+ icon: "twitter"
9
+ },
10
+ {
11
+ label: "Linkedin",
12
+ url: "https://www.linkedin.com/company/ebrains-eu/about/",
13
+ icon: "linkedin"
14
+ },
15
+ {
16
+ label: "Facebook",
17
+ url: "https://www.facebook.com/people/Ebrains_eu/100046659909324/",
18
+ icon: "facebook"
19
+ },
20
+ {
21
+ label: "Youtube",
22
+ url: "https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ",
23
+ icon: "youtube"
24
+ },
25
+ {
26
+ label: "Mastodon",
27
+ url: "https://mastodon.social/@ebrains",
28
+ icon: "mastodon"
29
+ },
30
+ {
31
+ label: "Bluesky",
32
+ url: "https://bsky.app/profile/ebrains.bsky.social",
33
+ icon: "bluesky"
34
+ }
35
+ ], this.title = "Follow EBRAINS to keep up-to-date";
36
+ }
37
+ /**
38
+ * Renders the component's HTML structure with links to EBRAINS social profiles.
39
+ * Each social network link uses the `eds-link` component with specific classes and styles.
40
+ *
41
+ * @returns {JSX.Element} The rendered JSX for the component.
42
+ */
43
+ render() {
44
+ return t("div", { key: "9efc31261e88c70f9c808251124178d807140594" }, t("p", { key: "383101de2aaba05e1024f3ba86d788ad5d92173c", class: "f-ui-02" }, this.title), t("ul", { key: "e27243a4e7b8aab085c4ef091d67df57dba70664", class: "mt-12 flex gap-4" }, this.socialNetworks.map((e, i) => t("li", { key: i }, t("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: !0, "aria-label": e.label, url: e.url, icon: e.icon, intent: "strong" })))));
45
+ }
46
+ };
47
+ r.style = l;
48
+ export {
49
+ r as eds_social_networks
50
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),n="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}",l=n,i=class{constructor(t){e.registerInstance(this,t),this.socialNetworks=[{label:"Twitter",url:"https://twitter.com/ebrains_eu",icon:"twitter"},{label:"Linkedin",url:"https://www.linkedin.com/company/ebrains-eu/about/",icon:"linkedin"},{label:"Facebook",url:"https://www.facebook.com/people/Ebrains_eu/100046659909324/",icon:"facebook"},{label:"Youtube",url:"https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ",icon:"youtube"},{label:"Mastodon",url:"https://mastodon.social/@ebrains",icon:"mastodon"},{label:"Bluesky",url:"https://bsky.app/profile/ebrains.bsky.social",icon:"bluesky"}],this.title="Follow EBRAINS to keep up-to-date"}render(){return e.h("div",{key:"9efc31261e88c70f9c808251124178d807140594"},e.h("p",{key:"383101de2aaba05e1024f3ba86d788ad5d92173c",class:"f-ui-02"},this.title),e.h("ul",{key:"e27243a4e7b8aab085c4ef091d67df57dba70664",class:"mt-12 flex gap-4"},this.socialNetworks.map((t,o)=>e.h("li",{key:o},e.h("eds-link",{"extra-class":"effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm",external:!0,"aria-label":t.label,url:t.url,icon:t.icon,intent:"strong"})))))}};i.style=l;exports.eds_social_networks=i;