@ebrains/vue 0.9.1-beta → 0.9.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/.eslintrc.json +18 -0
  2. package/package.json +1 -1
  3. package/project.json +9 -0
  4. package/src/generated/components.ts +374 -0
  5. package/src/generated/vue-component-lib/utils.ts +236 -0
  6. package/src/index.ts +1 -0
  7. package/src/vue-shims.d.ts +5 -0
  8. package/tsconfig.json +18 -0
  9. package/tsconfig.lib.json +27 -0
  10. package/vite.config.ts +71 -0
  11. package/analytics-44b1416b-3vYuu4Xs.mjs +0 -28
  12. package/analytics-44b1416b-ol77SdQE.js +0 -1
  13. package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +0 -4
  14. package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +0 -1
  15. package/arrow-right-9322ba8a-DBcxNU_p.js +0 -3
  16. package/arrow-right-9322ba8a-DHq-_PPe.mjs +0 -6
  17. package/bluesky-cc5edd2d-DaFQc-pr.js +0 -12
  18. package/bluesky-cc5edd2d-DfuDDO5h.mjs +0 -15
  19. package/bookmark-c200037c-CIcZ51ZQ.js +0 -14
  20. package/bookmark-c200037c-ClkCtyRY.mjs +0 -17
  21. package/chevron-down-6144c823-DWGlv9eV.mjs +0 -13
  22. package/chevron-down-6144c823-D_8976Ke.js +0 -10
  23. package/chevron-left-ca6c66e1-DANhLw_T.mjs +0 -12
  24. package/chevron-left-ca6c66e1-uCH5SUhm.js +0 -9
  25. package/chevron-right-b88ed2d4-C7dkTMvP.js +0 -3
  26. package/chevron-right-b88ed2d4-CgEZBvy7.mjs +0 -6
  27. package/chevron-up-c66bd477-ByW7R48t.js +0 -10
  28. package/chevron-up-c66bd477-CETJkshq.mjs +0 -13
  29. package/close-87fc0d63-Cbd-ScJr.js +0 -3
  30. package/close-87fc0d63-DtDU2HIU.mjs +0 -6
  31. package/color-2554aad6-CCcV5UJZ.mjs +0 -131
  32. package/color-2554aad6-D1hFGX4H.js +0 -1
  33. package/color-primary-palette_6.entry-DNCYKab1.js +0 -1
  34. package/color-primary-palette_6.entry-DrUcl0_Y.mjs +0 -300
  35. package/components-section.entry-BC6fAK4x.mjs +0 -351
  36. package/components-section.entry-Dpc-I4Dk.js +0 -162
  37. package/copy-03b72cb6-B_WCNQrG.mjs +0 -6
  38. package/copy-03b72cb6-CZAFAegx.js +0 -3
  39. package/correct-use-of-colors.entry-BIOVttVR.mjs +0 -59
  40. package/correct-use-of-colors.entry-D4g8NP4t.js +0 -1
  41. package/docs-palettes.entry-Af1cfpJK.js +0 -1
  42. package/docs-palettes.entry-CxxKTQmL.mjs +0 -22
  43. package/docs-tokens.entry-CSj74lMT.mjs +0 -30
  44. package/docs-tokens.entry-DbqTlBjk.js +0 -1
  45. package/eds-accordion.entry-66EwvfyQ.js +0 -4
  46. package/eds-accordion.entry-BAszhx2J.mjs +0 -48
  47. package/eds-alert.entry-B5fyoE-3.mjs +0 -825
  48. package/eds-alert.entry-D0UbYNdF.js +0 -739
  49. package/eds-app-root.entry-COtx8lgi.js +0 -1
  50. package/eds-app-root.entry-DaEWCpgJ.mjs +0 -25
  51. package/eds-avatar_26.entry-B5sFgktG.js +0 -31841
  52. package/eds-avatar_26.entry-D44mROee.mjs +0 -33438
  53. package/eds-card-desc_2.entry-B6UCTFjF.mjs +0 -53
  54. package/eds-card-desc_2.entry-CRAnQEYT.js +0 -1
  55. package/eds-card-generic.entry-BTkPV7Vy.mjs +0 -56
  56. package/eds-card-generic.entry-CO_LOs7j.js +0 -1
  57. package/eds-card-project.entry-DHpOvYZ4.mjs +0 -44
  58. package/eds-card-project.entry-DaYgAAhK.js +0 -1
  59. package/eds-card-section.entry-Cj1iWta9.js +0 -1
  60. package/eds-card-section.entry-Ckc5tKfn.mjs +0 -30
  61. package/eds-card-tags.entry-CC8HHmu1.js +0 -1
  62. package/eds-card-tags.entry-DTOC83TO.mjs +0 -13
  63. package/eds-card-tool.entry-BnSmQnIO.mjs +0 -56
  64. package/eds-card-tool.entry-DbRFRI44.js +0 -1
  65. package/eds-card-wrapper.entry-DqbihYMe.js +0 -1
  66. package/eds-card-wrapper.entry-pXRtDlUm.mjs +0 -24
  67. package/eds-code-block.entry-DOOwL4C5.js +0 -9
  68. package/eds-code-block.entry-DzjesAvq.mjs +0 -1623
  69. package/eds-cookies-preference.entry-BEg8_L1i.mjs +0 -20
  70. package/eds-cookies-preference.entry-DNieltJt.js +0 -1
  71. package/eds-feedback.entry-BPC8n5Vn.js +0 -1
  72. package/eds-feedback.entry-CamM3PGo.mjs +0 -53
  73. package/eds-frame.entry-BTSVnilU.mjs +0 -67
  74. package/eds-frame.entry-CxtCcM_D.js +0 -1
  75. package/eds-icon-arrow-diagonal.entry-Bi8IA-JD.mjs +0 -13
  76. package/eds-icon-arrow-diagonal.entry-CkydmAtM.js +0 -1
  77. package/eds-icon-arrow-right.entry-Bec767Po.mjs +0 -13
  78. package/eds-icon-arrow-right.entry-DnSc-hGl.js +0 -1
  79. package/eds-icon-bluesky.entry-CJ_G1Kz6.mjs +0 -13
  80. package/eds-icon-bluesky.entry-CKsxnx_w.js +0 -1
  81. package/eds-icon-bookmark.entry-CgY2a3NE.js +0 -1
  82. package/eds-icon-bookmark.entry-CxHfI52-.mjs +0 -13
  83. package/eds-icon-chevron-down.entry-BlFjZjFS.js +0 -1
  84. package/eds-icon-chevron-down.entry-MP6nKKWS.mjs +0 -13
  85. package/eds-icon-chevron-left.entry-B87gvMYL.mjs +0 -13
  86. package/eds-icon-chevron-left.entry-D0wG_pW7.js +0 -1
  87. package/eds-icon-chevron-right.entry-CBd-dMhk.mjs +0 -13
  88. package/eds-icon-chevron-right.entry-CK9NLouO.js +0 -1
  89. package/eds-icon-chevron-up.entry-B96ccoIQ.mjs +0 -13
  90. package/eds-icon-chevron-up.entry-CKC11GWB.js +0 -1
  91. package/eds-icon-close.entry-C82RssRf.js +0 -1
  92. package/eds-icon-close.entry-DKpCci_h.mjs +0 -13
  93. package/eds-icon-copy.entry-BLIFnGI7.mjs +0 -13
  94. package/eds-icon-copy.entry-DJvo9Oo3.js +0 -1
  95. package/eds-icon-eu.entry-CIiUxa85.mjs +0 -13
  96. package/eds-icon-eu.entry-fpbE22vn.js +0 -1
  97. package/eds-icon-external.entry-Bg3Jbh4o.mjs +0 -13
  98. package/eds-icon-external.entry-DB0_JlLk.js +0 -1
  99. package/eds-icon-facebook.entry-CqhEjMDs.js +0 -1
  100. package/eds-icon-facebook.entry-Cvcx9mzY.mjs +0 -13
  101. package/eds-icon-gitlab.entry-DkWowBSx.js +0 -1
  102. package/eds-icon-gitlab.entry-ZIUW3Too.mjs +0 -13
  103. package/eds-icon-linkedin.entry-zCYN0yJN.mjs +0 -13
  104. package/eds-icon-linkedin.entry-zJM5VYX8.js +0 -1
  105. package/eds-icon-loader.entry-D3A9DYDv.js +0 -1
  106. package/eds-icon-loader.entry-DgDDBLQe.mjs +0 -13
  107. package/eds-icon-mastodon.entry-B2ln6jUP.mjs +0 -13
  108. package/eds-icon-mastodon.entry-CQi1OZdh.js +0 -1
  109. package/eds-icon-menu.entry-BqYXrP_P.js +0 -1
  110. package/eds-icon-menu.entry-CRdmUv3E.mjs +0 -13
  111. package/eds-icon-minus.entry-C6oGK2_g.mjs +0 -13
  112. package/eds-icon-minus.entry-CmEXvebI.js +0 -1
  113. package/eds-icon-more.entry-BIQGWWip.js +0 -1
  114. package/eds-icon-more.entry-aXbszIap.mjs +0 -13
  115. package/eds-icon-paper.entry-Bh5C64H8.mjs +0 -13
  116. package/eds-icon-paper.entry-LgapgnWg.js +0 -1
  117. package/eds-icon-plus.entry-BR1mOml3.mjs +0 -13
  118. package/eds-icon-plus.entry-DlX5VFJR.js +0 -1
  119. package/eds-icon-portal.entry-C2DFez0R.js +0 -1
  120. package/eds-icon-portal.entry-CMARk8X7.mjs +0 -13
  121. package/eds-icon-private.entry-BwvhDAIy.mjs +0 -13
  122. package/eds-icon-private.entry-CbexBFUk.js +0 -1
  123. package/eds-icon-public.entry-D91FTOc3.mjs +0 -13
  124. package/eds-icon-public.entry-DQzoAi-2.js +0 -1
  125. package/eds-icon-search.entry-D6gOTsOF.js +0 -1
  126. package/eds-icon-search.entry-DVhN8_Ah.mjs +0 -13
  127. package/eds-icon-star.entry-CBJGqbz6.mjs +0 -13
  128. package/eds-icon-star.entry-CIhSd8HY.js +0 -1
  129. package/eds-icon-success.entry-VMJ6qL6H.mjs +0 -13
  130. package/eds-icon-success.entry-yZ0mp_pH.js +0 -1
  131. package/eds-icon-thumbs-down.entry-CfZk-XIH.js +0 -1
  132. package/eds-icon-thumbs-down.entry-CirzFHNd.mjs +0 -13
  133. package/eds-icon-thumbs-up.entry-C205X1kc.js +0 -1
  134. package/eds-icon-thumbs-up.entry-CyPLJvn-.mjs +0 -13
  135. package/eds-icon-tutorial.entry-Do4rIMaY.mjs +0 -13
  136. package/eds-icon-tutorial.entry-Dsyw0BBK.js +0 -1
  137. package/eds-icon-twitter.entry-D0QvrckP.mjs +0 -13
  138. package/eds-icon-twitter.entry-Dxbad6Ap.js +0 -1
  139. package/eds-icon-unknown.entry-Ml0duWB3.mjs +0 -13
  140. package/eds-icon-unknown.entry-p9JzenHC.js +0 -1
  141. package/eds-icon-updown.entry-CD8350rr.mjs +0 -13
  142. package/eds-icon-updown.entry-CX-0FN1w.js +0 -1
  143. package/eds-icon-user.entry-BL2cTAJm.js +0 -1
  144. package/eds-icon-user.entry-CoG-FatJ.mjs +0 -13
  145. package/eds-icon-youtube.entry-BLYOdnDv.js +0 -1
  146. package/eds-icon-youtube.entry-BuoKDZ5t.mjs +0 -13
  147. package/eds-login_2.entry-BLdyPn8z.js +0 -9
  148. package/eds-login_2.entry-vwx33ALN.mjs +0 -981
  149. package/eds-matomo-notice.entry-BcVjYajg.js +0 -1
  150. package/eds-matomo-notice.entry-DidLaLXw.mjs +0 -90
  151. package/eds-modal.entry-B31KFXpt.js +0 -1
  152. package/eds-modal.entry-CXNV__T1.mjs +0 -96
  153. package/eds-pagination_2.entry-C5PQOTQJ.js +0 -1
  154. package/eds-pagination_2.entry-CDArkgFj.mjs +0 -258
  155. package/eds-progress-bar.entry-D-pHajo4.mjs +0 -21
  156. package/eds-progress-bar.entry-DG0GXmeq.js +0 -1
  157. package/eds-rating.entry-C1Ek7Xei.mjs +0 -61
  158. package/eds-rating.entry-ftEmF4Qw.js +0 -1
  159. package/eds-section-core_2.entry-BpzqlBXJ.js +0 -1
  160. package/eds-section-core_2.entry-kmq9d4JE.mjs +0 -39
  161. package/eds-spinner.entry-DTgScdkA.js +0 -1
  162. package/eds-spinner.entry-a3Wjf-Vo.mjs +0 -36
  163. package/eds-switch.entry-CMr4qwoV.js +0 -1
  164. package/eds-switch.entry-Cztu_2n9.mjs +0 -20
  165. package/eds-tabs.entry-0DJ99piw.js +0 -7797
  166. package/eds-tabs.entry-DBHkSmJZ.mjs +0 -7900
  167. package/eds-timeline.entry-8DYAeWK9.js +0 -7797
  168. package/eds-timeline.entry-Cj0sAIIZ.mjs +0 -7842
  169. package/eds-toast-manager.entry-CSZROgRS.js +0 -1
  170. package/eds-toast-manager.entry-Cp-uvJ6e.mjs +0 -36
  171. package/eds-toast.entry-DxditNG2.mjs +0 -61
  172. package/eds-toast.entry-w5mMLqEh.js +0 -3
  173. package/eds-tooltip.entry-BkTKzXVD.js +0 -1
  174. package/eds-tooltip.entry-DiID9ZC6.mjs +0 -77
  175. package/eds-trl.entry-BEZPY301.js +0 -1
  176. package/eds-trl.entry-BrkymCLA.mjs +0 -34
  177. package/eu-9ddde93a-BFtIQw9B.js +0 -28
  178. package/eu-9ddde93a-ft4szvR5.mjs +0 -31
  179. package/facebook-9cb5c17f-BcUhbrj6.mjs +0 -15
  180. package/facebook-9cb5c17f-Y_gvQ682.js +0 -12
  181. package/generated/components.d.ts +0 -40
  182. package/generated/vue-component-lib/utils.d.ts +0 -16
  183. package/incorrect-use-of-colors.entry-D_MDnOxK.mjs +0 -42
  184. package/incorrect-use-of-colors.entry-HDLgRpVT.js +0 -1
  185. package/index-39c58238-BwYCDOHZ.mjs +0 -44
  186. package/index-39c58238-SQ-JC-LH.js +0 -1
  187. package/index-CMP6-ecb.mjs +0 -3622
  188. package/index-RvcWEz0j.js +0 -21
  189. package/index.d.ts +0 -1
  190. package/index.js +0 -1
  191. package/index.mjs +0 -42
  192. package/linkedin-e8650abb-BkDrkjzY.js +0 -26
  193. package/linkedin-e8650abb-DYMdsale.mjs +0 -29
  194. package/loader-c9628637-ChpnbJkv.mjs +0 -31
  195. package/loader-c9628637-Vj8Wt1e8.js +0 -28
  196. package/logo-color-7f1fd803-CFgbXdt8.mjs +0 -116
  197. package/logo-color-7f1fd803-DRD3vZVn.js +0 -113
  198. package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +0 -119
  199. package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +0 -116
  200. package/logo-space.entry-B05IQf3M.mjs +0 -19
  201. package/logo-space.entry-DtPQz2nj.js +0 -6
  202. package/logo-variations-horizontal_2.entry-BUcAWE9P.js +0 -7
  203. package/logo-variations-horizontal_2.entry-CuIHzZ_5.mjs +0 -29
  204. package/logo-variations-tabs.entry-BFQf55Y1.js +0 -1
  205. package/logo-variations-tabs.entry-nnh_qtBx.mjs +0 -22
  206. package/logo-white-no-bg-f382f86f-DXYn3NwV.js +0 -1011
  207. package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +0 -1022
  208. package/logo-wrong-usage.entry-CBpe4g63.js +0 -1
  209. package/logo-wrong-usage.entry-CQ3WROz1.mjs +0 -14
  210. package/mastodon-3703ec61-C7iI4Hk0.mjs +0 -15
  211. package/mastodon-3703ec61-C9v6Olc-.js +0 -12
  212. package/menu-340ea948-BpnYX3gY.mjs +0 -12
  213. package/menu-340ea948-ZdelWVw3.js +0 -9
  214. package/minus-b30a7c71-BPAvqHzH.mjs +0 -12
  215. package/minus-b30a7c71-DqCTe6Qh.js +0 -9
  216. package/mono-53f70232-DGi2XDlR.mjs +0 -12
  217. package/mono-53f70232-DgAsWvoQ.js +0 -9
  218. package/more-4449d549-D4HA1cRq.js +0 -11
  219. package/more-4449d549-rI9hOpEp.mjs +0 -14
  220. package/paper-8e74ea31-BvGrc1Vo.mjs +0 -16
  221. package/paper-8e74ea31-C4CV6tlB.js +0 -13
  222. package/plus-89c07be2-BTXnjg5K.js +0 -10
  223. package/plus-89c07be2-DyT9I4-L.mjs +0 -13
  224. package/portal-d6c8ce56-Cj61ldo8.mjs +0 -19
  225. package/portal-d6c8ce56-NpSrdNZ_.js +0 -16
  226. package/private-1c25ff8e-D3Fo36q6.js +0 -23
  227. package/private-1c25ff8e-Dz82_Xf8.mjs +0 -26
  228. package/public-d4d8c585-BJKDD5F6.mjs +0 -17
  229. package/public-d4d8c585-lV6QxdPw.js +0 -14
  230. package/search-fbcd79c2-BMxCaeEk.js +0 -10
  231. package/search-fbcd79c2-rfV0PlHP.mjs +0 -13
  232. package/sharedUtils-a550989c-Ci3Tx3jc.mjs +0 -15
  233. package/sharedUtils-a550989c-m4pF1Vqy.js +0 -1
  234. package/star-0da9b5e9-B3-jr0yE.js +0 -3
  235. package/star-0da9b5e9-DX8_iFmu.mjs +0 -6
  236. package/success-443809da-BD23vltm.mjs +0 -19
  237. package/success-443809da-BUEhLsAD.js +0 -16
  238. package/svg-repository.entry-CtZ9pBKr.mjs +0 -301
  239. package/svg-repository.entry-qTZFd69I.js +0 -173
  240. package/thumbs-down-a18fd049-CzuBAj99.mjs +0 -6
  241. package/thumbs-down-a18fd049-DTNIbYbm.js +0 -3
  242. package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +0 -7
  243. package/thumbs-up-c19a71bc-w8Z8gegt.js +0 -4
  244. package/toastManager-d9eee791-CEYNwx25.mjs +0 -30
  245. package/toastManager-d9eee791-DvR_vUPI.js +0 -1
  246. package/token-list_3.entry-91wGiwGz.js +0 -1
  247. package/token-list_3.entry-C4RxixtE.mjs +0 -247
  248. package/token-ratios.entry-BmUxaqAu.js +0 -1
  249. package/token-ratios.entry-BvmPBjyB.mjs +0 -25
  250. package/token-typography.entry-DFkDpqQO.mjs +0 -213
  251. package/token-typography.entry-DvZ1QVjt.js +0 -2
  252. package/tutotial-150ee1fd-DFdyoHVA.mjs +0 -28
  253. package/tutotial-150ee1fd-DjN_JBL5.js +0 -25
  254. package/twitter-ac21b505-CGWVGWM9.mjs +0 -15
  255. package/twitter-ac21b505-DDdHS4hB.js +0 -12
  256. package/unknown-ed01a24c-B0AcMuip.js +0 -20
  257. package/unknown-ed01a24c-DonOUpIC.mjs +0 -23
  258. package/up-and-down-d747abee-CWoZjUyq.js +0 -10
  259. package/up-and-down-d747abee-D7g6H0T0.mjs +0 -13
  260. package/user-71ebdc15-BBKQbcQD.js +0 -14
  261. package/user-71ebdc15-CoHlCtJg.mjs +0 -17
  262. package/youtube-efbfbdc4-BLTH1Jl9.js +0 -12
  263. package/youtube-efbfbdc4-BfySbfjR.mjs +0 -15
@@ -1,13 +0,0 @@
1
- import { r as e, h as r } from "./index-CMP6-ecb.mjs";
2
- import { p as c } from "./public-d4d8c585-BJKDD5F6.mjs";
3
- const n = class {
4
- constructor(s) {
5
- e(this, s), this.class = "";
6
- }
7
- render() {
8
- return r("span", { key: "b3a338684e00d2d612a49734cbb3cfd8e44b4eee", class: this.class, innerHTML: c });
9
- }
10
- };
11
- export {
12
- n as eds_icon_public
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RvcWEz0j.js"),c=require("./public-d4d8c585-lV6QxdPw.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"b3a338684e00d2d612a49734cbb3cfd8e44b4eee",class:this.class,innerHTML:c.pub})}};exports.eds_icon_public=r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RvcWEz0j.js"),c=require("./search-fbcd79c2-BMxCaeEk.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"6795d973d3a1fff27c2fd6181235d0284abaf3b7",class:this.class,innerHTML:c.search})}};exports.eds_icon_search=r;
@@ -1,13 +0,0 @@
1
- import { r, h as a } from "./index-CMP6-ecb.mjs";
2
- import { s as c } from "./search-fbcd79c2-rfV0PlHP.mjs";
3
- const n = class {
4
- constructor(s) {
5
- r(this, s), this.class = "";
6
- }
7
- render() {
8
- return a("span", { key: "6795d973d3a1fff27c2fd6181235d0284abaf3b7", class: this.class, innerHTML: c });
9
- }
10
- };
11
- export {
12
- n as eds_icon_search
13
- };
@@ -1,13 +0,0 @@
1
- import { r, h as c } from "./index-CMP6-ecb.mjs";
2
- import { s as t } from "./star-0da9b5e9-DX8_iFmu.mjs";
3
- const n = class {
4
- constructor(s) {
5
- r(this, s), this.class = "";
6
- }
7
- render() {
8
- return c("span", { key: "dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4", class: this.class, innerHTML: t });
9
- }
10
- };
11
- export {
12
- n as eds_icon_star
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-RvcWEz0j.js"),r=require("./star-0da9b5e9-B3-jr0yE.js"),t=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4",class:this.class,innerHTML:r.star})}};exports.eds_icon_star=t;
@@ -1,13 +0,0 @@
1
- import { r as c, h as e } from "./index-CMP6-ecb.mjs";
2
- import { s as r } from "./success-443809da-BD23vltm.mjs";
3
- const n = class {
4
- constructor(s) {
5
- c(this, s), this.class = "";
6
- }
7
- render() {
8
- return e("span", { key: "e0e594e8a715e0cbaf87280f2b4c55b017dc07ba", class: this.class, innerHTML: r });
9
- }
10
- };
11
- export {
12
- n as eds_icon_success
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-RvcWEz0j.js"),c=require("./success-443809da-BUEhLsAD.js"),r=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"e0e594e8a715e0cbaf87280f2b4c55b017dc07ba",class:this.class,innerHTML:c.success})}};exports.eds_icon_success=r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-RvcWEz0j.js"),n=require("./thumbs-down-a18fd049-DTNIbYbm.js"),t=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"94d79a5d32574820ab3459708e3d8c4a3f28f79f",class:this.class,innerHTML:n.thumbsDown})}};exports.eds_icon_thumbs_down=t;
@@ -1,13 +0,0 @@
1
- import { r, h as t } from "./index-CMP6-ecb.mjs";
2
- import { t as n } from "./thumbs-down-a18fd049-CzuBAj99.mjs";
3
- const c = class {
4
- constructor(s) {
5
- r(this, s), this.class = "";
6
- }
7
- render() {
8
- return t("span", { key: "94d79a5d32574820ab3459708e3d8c4a3f28f79f", class: this.class, innerHTML: n });
9
- }
10
- };
11
- export {
12
- c as eds_icon_thumbs_down
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-RvcWEz0j.js"),t=require("./thumbs-up-c19a71bc-w8Z8gegt.js"),c=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"d7f5361ec8f863891c79de15966d546bae782c0a",class:this.class,innerHTML:t.thumbsUp})}};exports.eds_icon_thumbs_up=c;
@@ -1,13 +0,0 @@
1
- import { r, h as t } from "./index-CMP6-ecb.mjs";
2
- import { t as c } from "./thumbs-up-c19a71bc-CjLv5Wgw.mjs";
3
- const n = class {
4
- constructor(s) {
5
- r(this, s), this.class = "";
6
- }
7
- render() {
8
- return t("span", { key: "d7f5361ec8f863891c79de15966d546bae782c0a", class: this.class, innerHTML: c });
9
- }
10
- };
11
- export {
12
- n as eds_icon_thumbs_up
13
- };
@@ -1,13 +0,0 @@
1
- import { r, h as t } from "./index-CMP6-ecb.mjs";
2
- import { t as a } from "./tutotial-150ee1fd-DFdyoHVA.mjs";
3
- const e = class {
4
- constructor(s) {
5
- r(this, s), this.class = "";
6
- }
7
- render() {
8
- return t("span", { key: "9db1730236b54d01a4264e92465f9a953325f7ca", class: this.class, innerHTML: a });
9
- }
10
- };
11
- export {
12
- e as eds_icon_tutorial
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-RvcWEz0j.js"),s=require("./tutotial-150ee1fd-DjN_JBL5.js"),r=class{constructor(e){t.registerInstance(this,e),this.class=""}render(){return t.h("span",{key:"9db1730236b54d01a4264e92465f9a953325f7ca",class:this.class,innerHTML:s.tutorial})}};exports.eds_icon_tutorial=r;
@@ -1,13 +0,0 @@
1
- import { r as t, h as r } from "./index-CMP6-ecb.mjs";
2
- import { t as e } from "./twitter-ac21b505-CGWVGWM9.mjs";
3
- const n = class {
4
- constructor(s) {
5
- t(this, s), this.class = "";
6
- }
7
- render() {
8
- return r("span", { key: "cd91bfb2003e955cfb02b5efc28e13b54cc3b7e6", class: this.class, innerHTML: e });
9
- }
10
- };
11
- export {
12
- n as eds_icon_twitter
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RvcWEz0j.js"),s=require("./twitter-ac21b505-DDdHS4hB.js"),r=class{constructor(t){e.registerInstance(this,t),this.class=""}render(){return e.h("span",{key:"cd91bfb2003e955cfb02b5efc28e13b54cc3b7e6",class:this.class,innerHTML:s.twitter})}};exports.eds_icon_twitter=r;
@@ -1,13 +0,0 @@
1
- import { r as n, h as e } from "./index-CMP6-ecb.mjs";
2
- import { u as r } from "./unknown-ed01a24c-DonOUpIC.mjs";
3
- const t = class {
4
- constructor(s) {
5
- n(this, s), this.class = "";
6
- }
7
- render() {
8
- return e("span", { key: "259a1fae59093dd4e1fd6d26e07aae0e8c3de2fd", class: this.class, innerHTML: r });
9
- }
10
- };
11
- export {
12
- t as eds_icon_unknown
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-RvcWEz0j.js"),s=require("./unknown-ed01a24c-B0AcMuip.js"),r=class{constructor(e){n.registerInstance(this,e),this.class=""}render(){return n.h("span",{key:"259a1fae59093dd4e1fd6d26e07aae0e8c3de2fd",class:this.class,innerHTML:s.unknown})}};exports.eds_icon_unknown=r;
@@ -1,13 +0,0 @@
1
- import { r, h as e } from "./index-CMP6-ecb.mjs";
2
- import { u as n } from "./up-and-down-d747abee-D7g6H0T0.mjs";
3
- const t = class {
4
- constructor(s) {
5
- r(this, s), this.class = "";
6
- }
7
- render() {
8
- return e("span", { key: "9383784da3e52d22395288f8eba5b6f4ee826aa5", class: this.class, innerHTML: n });
9
- }
10
- };
11
- export {
12
- t as eds_icon_updown
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RvcWEz0j.js"),n=require("./up-and-down-d747abee-CWoZjUyq.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"9383784da3e52d22395288f8eba5b6f4ee826aa5",class:this.class,innerHTML:n.upDonw})}};exports.eds_icon_updown=r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RvcWEz0j.js"),r=require("./user-71ebdc15-BBKQbcQD.js"),t=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"15fa7c4b7d2dea5740d0926bb1ff6490b23667f8",class:this.class,innerHTML:r.user})}};exports.eds_icon_user=t;
@@ -1,13 +0,0 @@
1
- import { r, h as e } from "./index-CMP6-ecb.mjs";
2
- import { u as t } from "./user-71ebdc15-CoHlCtJg.mjs";
3
- const n = class {
4
- constructor(s) {
5
- r(this, s), this.class = "";
6
- }
7
- render() {
8
- return e("span", { key: "15fa7c4b7d2dea5740d0926bb1ff6490b23667f8", class: this.class, innerHTML: t });
9
- }
10
- };
11
- export {
12
- n as eds_icon_user
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RvcWEz0j.js"),t=require("./youtube-efbfbdc4-BLTH1Jl9.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"1a7ad8d7cbef70822ebda2f152d8b537df1eaf27",class:this.class,innerHTML:t.youtube})}};exports.eds_icon_youtube=r;
@@ -1,13 +0,0 @@
1
- import { r as e, h as r } from "./index-CMP6-ecb.mjs";
2
- import { y as t } from "./youtube-efbfbdc4-BfySbfjR.mjs";
3
- const c = class {
4
- constructor(s) {
5
- e(this, s), this.class = "";
6
- }
7
- render() {
8
- return r("span", { key: "1a7ad8d7cbef70822ebda2f152d8b537df1eaf27", class: this.class, innerHTML: t });
9
- }
10
- };
11
- export {
12
- c as eds_icon_youtube
13
- };
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-RvcWEz0j.js"),R=require("./toastManager-d9eee791-DvR_vUPI.js");function G(u){if(!(this instanceof G))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if(typeof u!="string"&&!V(u))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(V(u)){const r="oidcProvider"in u?["clientId"]:["url","realm","clientId"];for(const t of r)if(!u[t])throw new Error(`The configuration object is missing the required '${t}' property.`)}var e=this,p,w=[],I,h={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;var P=!0,_=q(console.info),M=q(console.warn);globalThis.isSecureContext||M(`[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.
2
- Continuing to run your application insecurely will lead to unexpected behavior and breakage.
3
-
4
- For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts`),e.init=function(r={}){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,I=ae();var t=["default","cordova","cordova-native"];if(t.indexOf(r.adapter)>-1?p=N(r.adapter):typeof r.adapter=="object"?p=r.adapter:window.Cordova||window.cordova?p=N("cordova"):p=N(),typeof r.useNonce<"u"&&(P=r.useNonce),typeof r.checkLoginIframe<"u"&&(h.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(h.interval=r.checkLoginIframeInterval),r.onLoad==="login-required"&&(e.loginRequired=!0),r.responseMode)if(r.responseMode==="query"||r.responseMode==="fragment")e.responseMode=r.responseMode;else throw"Invalid value for responseMode";if(r.flow){switch(r.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=r.flow}if(r.timeSkew!=null&&(e.timeSkew=r.timeSkew),r.redirectUri&&(e.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),typeof r.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=r.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof r.pkceMethod<"u"){if(r.pkceMethod!=="S256"&&r.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);e.pkceMethod=r.pkceMethod}else e.pkceMethod="S256";typeof r.enableLogging=="boolean"?e.enableLogging=r.enableLogging:e.enableLogging=!1,r.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof r.scope=="string"&&(e.scope=r.scope),typeof r.acrValues=="string"&&(e.acrValues=r.acrValues),typeof r.messageReceiveTimeout=="number"&&r.messageReceiveTimeout>0?e.messageReceiveTimeout=r.messageReceiveTimeout:e.messageReceiveTimeout=1e4,e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var s=g(),i=g();i.promise.then(function(){e.onReady&&e.onReady(e.authenticated),s.setSuccess(e.authenticated)}).catch(function(o){s.setError(o)});var a=re();function c(){var o=function(d){d||(f.prompt="none"),r.locale&&(f.locale=r.locale),e.login(f).then(function(){i.setSuccess()}).catch(function(m){i.setError(m)})},l=async function(){var d=document.createElement("iframe"),m=await e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});d.setAttribute("src",m),d.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),d.setAttribute("title","keycloak-silent-check-sso"),d.style.display="none",document.body.appendChild(d);var y=function(U){if(!(U.origin!==window.location.origin||d.contentWindow!==U.source)){var b=E(U.data);T(b,i),document.body.removeChild(d),window.removeEventListener("message",y)}};window.addEventListener("message",y)},f={};switch(r.onLoad){case"check-sso":h.enable?K().then(function(){L().then(function(d){d?i.setSuccess():e.silentCheckSsoRedirectUri?l():o(!1)}).catch(function(d){i.setError(d)})}):e.silentCheckSsoRedirectUri?l():o(!1);break;case"login-required":o(!0);break;default:throw"Invalid value for onLoad"}}function n(){var o=E(window.location.href);if(o&&window.history.replaceState(window.history.state,null,o.newUrl),o&&o.valid)return K().then(function(){T(o,i)}).catch(function(l){i.setError(l)});r.token&&r.refreshToken?(C(r.token,r.refreshToken,r.idToken),h.enable?K().then(function(){L().then(function(l){l?(e.onAuthSuccess&&e.onAuthSuccess(),i.setSuccess(),H()):i.setSuccess()}).catch(function(l){i.setError(l)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),i.setSuccess()}).catch(function(l){e.onAuthError&&e.onAuthError(),r.onLoad?c():i.setError(l)})):r.onLoad?c():i.setSuccess()}return a.then(function(){oe().then(n).catch(function(o){s.setError(o)})}),a.catch(function(o){s.setError(o)}),s.promise},e.login=function(r){return p.login(r)};function X(r){if(typeof crypto>"u"||typeof crypto.getRandomValues>"u")throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(r))}function B(r){return $(r,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function $(r,t){for(var s=X(r),i=new Array(r),a=0;a<r;a++)i[a]=t.charCodeAt(s[a]%t.length);return String.fromCharCode.apply(null,i)}async function Q(r,t){if(r!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${r}'.`);const s=new Uint8Array(await se(t));return ie(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function Z(r){var t={id_token:{acr:r}};return JSON.stringify(t)}e.createLoginUrl=async function(r){var t=F(),s=F(),i=p.redirectUri(r),a={state:t,nonce:s,redirectUri:encodeURIComponent(i),loginOptions:r};r&&r.prompt&&(a.prompt=r.prompt);var c;r&&r.action=="register"?c=e.endpoints.register():c=e.endpoints.authorize();var n=r&&r.scope||e.scope;n?n.indexOf("openid")===-1&&(n="openid "+n):n="openid";var o=c+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(i)+"&state="+encodeURIComponent(t)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(n);if(P&&(o=o+"&nonce="+encodeURIComponent(s)),r&&r.prompt&&(o+="&prompt="+encodeURIComponent(r.prompt)),r&&typeof r.maxAge=="number"&&(o+="&max_age="+encodeURIComponent(r.maxAge)),r&&r.loginHint&&(o+="&login_hint="+encodeURIComponent(r.loginHint)),r&&r.idpHint&&(o+="&kc_idp_hint="+encodeURIComponent(r.idpHint)),r&&r.action&&r.action!="register"&&(o+="&kc_action="+encodeURIComponent(r.action)),r&&r.locale&&(o+="&ui_locales="+encodeURIComponent(r.locale)),r&&r.acr){var l=Z(r.acr);o+="&claims="+encodeURIComponent(l)}if((r&&r.acrValues||e.acrValues)&&(o+="&acr_values="+encodeURIComponent(r.acrValues||e.acrValues)),e.pkceMethod)try{const f=B(96),d=await Q(e.pkceMethod,f);a.pkceCodeVerifier=f,o+="&code_challenge="+d,o+="&code_challenge_method="+e.pkceMethod}catch(f){throw new Error("Failed to generate PKCE challenge.",{cause:f})}return I.add(a),o},e.logout=function(r){return p.logout(r)},e.createLogoutUrl=function(r){if(((r==null?void 0:r.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var s=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(p.redirectUri(r,!1));return e.idToken&&(s+="&id_token_hint="+encodeURIComponent(e.idToken)),s},e.register=function(r){return p.register(r)},e.createRegisterUrl=async function(r){return r||(r={}),r.action="register",await e.createLoginUrl(r)},e.createAccountUrl=function(r){var t=S(),s=void 0;return typeof t<"u"&&(s=t+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(p.redirectUri(r))),s},e.accountManagement=function(){return p.accountManagement()},e.hasRealmRole=function(r){var t=e.realmAccess;return!!t&&t.roles.indexOf(r)>=0},e.hasResourceRole=function(r,t){if(!e.resourceAccess)return!1;var s=e.resourceAccess[t||e.clientId];return!!s&&s.roles.indexOf(r)>=0},e.loadUserProfile=function(){var r=S()+"/account",t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var s=g();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.profile=JSON.parse(t.responseText),s.setSuccess(e.profile)):s.setError())},t.send(),s.promise},e.loadUserInfo=function(){var r=e.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var s=g();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.userInfo=JSON.parse(t.responseText),s.setSuccess(e.userInfo)):s.setError())},t.send(),s.promise},e.isTokenExpired=function(r){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return _("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(r){if(isNaN(r))throw"Invalid minValidity";t-=r}return t<0},e.updateToken=function(r){var t=g();if(!e.refreshToken)return t.setError(),t.promise;r=r||5;var s=function(){var a=!1;if(r==-1?(a=!0,_("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(r))&&(a=!0,_("[KEYCLOAK] Refreshing token: token expired")),!a)t.setSuccess(!1);else{var c="grant_type=refresh_token&refresh_token="+e.refreshToken,n=e.endpoints.token();if(w.push(t),w.length==1){var o=new XMLHttpRequest;o.open("POST",n,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.withCredentials=!0,c+="&client_id="+encodeURIComponent(e.clientId);var l=new Date().getTime();o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200){_("[KEYCLOAK] Token refreshed"),l=(l+new Date().getTime())/2;var f=JSON.parse(o.responseText);C(f.access_token,f.refresh_token,f.id_token,l),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var d=w.pop();d!=null;d=w.pop())d.setSuccess(!0)}else{M("[KEYCLOAK] Failed to refresh token"),o.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var d=w.pop();d!=null;d=w.pop())d.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")}},o.send(c)}}};if(h.enable){var i=L();i.then(function(){s()}).catch(function(a){t.setError(a)})}else s();return t.promise},e.clearToken=function(){e.token&&(C(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function S(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function ee(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function T(r,t){var s=r.code,i=r.error,a=r.prompt,c=new Date().getTime();if(r.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(r.kc_action_status,r.kc_action),i){if(a!="none")if(r.error_description&&r.error_description==="authentication_expired")e.login(r.loginOptions);else{var n={error:i,error_description:r.error_description};e.onAuthError&&e.onAuthError(n),t&&t.setError(n)}else t&&t.setSuccess();return}else e.flow!="standard"&&(r.access_token||r.id_token)&&d(r.access_token,null,r.id_token,!0);if(e.flow!="implicit"&&s){var o="code="+s+"&grant_type=authorization_code",l=e.endpoints.token(),f=new XMLHttpRequest;f.open("POST",l,!0),f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o+="&client_id="+encodeURIComponent(e.clientId),o+="&redirect_uri="+r.redirectUri,r.pkceCodeVerifier&&(o+="&code_verifier="+r.pkceCodeVerifier),f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState==4)if(f.status==200){var m=JSON.parse(f.responseText);d(m.access_token,m.refresh_token,m.id_token,e.flow==="standard"),H()}else e.onAuthError&&e.onAuthError(),t&&t.setError()},f.send(o)}function d(m,y,U,b){c=(c+new Date().getTime())/2,C(m,y,U,c),P&&e.idTokenParsed&&e.idTokenParsed.nonce!=r.storedNonce?(_("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),t&&t.setError()):b&&(e.onAuthSuccess&&e.onAuthSuccess(),t&&t.setSuccess())}}function re(){var r=g(),t;typeof u=="string"&&(t=u);function s(n){n?e.endpoints={authorize:function(){return n.authorization_endpoint},token:function(){return n.token_endpoint},logout:function(){if(!n.end_session_endpoint)throw"Not supported by the OIDC server";return n.end_session_endpoint},checkSessionIframe:function(){if(!n.check_session_iframe)throw"Not supported by the OIDC server";return n.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!n.userinfo_endpoint)throw"Not supported by the OIDC server";return n.userinfo_endpoint}}:e.endpoints={authorize:function(){return S()+"/protocol/openid-connect/auth"},token:function(){return S()+"/protocol/openid-connect/token"},logout:function(){return S()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return S()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return S()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return S()+"/protocol/openid-connect/registrations"},userinfo:function(){return S()+"/protocol/openid-connect/userinfo"}}}if(t){var i=new XMLHttpRequest;i.open("GET",t,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(i.readyState==4)if(i.status==200||J(i)){var n=JSON.parse(i.responseText);e.authServerUrl=n["auth-server-url"],e.realm=n.realm,e.clientId=n.resource,s(null),r.setSuccess()}else r.setError()},i.send()}else{e.clientId=u.clientId;var a=u.oidcProvider;if(!a)e.authServerUrl=u.url,e.realm=u.realm,s(null),r.setSuccess();else if(typeof a=="string"){var c;a.charAt(a.length-1)=="/"?c=a+".well-known/openid-configuration":c=a+"/.well-known/openid-configuration";var i=new XMLHttpRequest;i.open("GET",c,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(i.readyState==4)if(i.status==200||J(i)){var o=JSON.parse(i.responseText);s(o),r.setSuccess()}else r.setError()},i.send()}else s(a),r.setSuccess()}return r.promise}function J(r){return r.status==0&&r.responseText&&r.responseURL.startsWith("file:")}function C(r,t,s,i){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),t?(e.refreshToken=t,e.refreshTokenParsed=O(t)):(delete e.refreshToken,delete e.refreshTokenParsed),s?(e.idToken=s,e.idTokenParsed=O(s)):(delete e.idToken,delete e.idTokenParsed),r){if(e.token=r,e.tokenParsed=O(r),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,i&&(e.timeSkew=Math.floor(i/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(_("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var a=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;_("[KEYCLOAK] Token expires in "+Math.round(a/1e3)+" s"),a<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,a)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function F(){if(typeof crypto>"u"||typeof crypto.randomUUID>"u")throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function E(r){var t=te(r);if(t){var s=I.get(t.state);return s&&(t.valid=!0,t.redirectUri=s.redirectUri,t.storedNonce=s.nonce,t.prompt=s.prompt,t.pkceCodeVerifier=s.pkceCodeVerifier,t.loginOptions=s.loginOptions),t}}function te(r){var t;switch(e.flow){case"standard":t=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}t.push("error"),t.push("error_description"),t.push("error_uri");var s=r.indexOf("?"),i=r.indexOf("#"),a,c;if(e.responseMode==="query"&&s!==-1?(a=r.substring(0,s),c=Y(r.substring(s+1,i!==-1?i:r.length),t),c.paramsString!==""&&(a+="?"+c.paramsString),i!==-1&&(a+=r.substring(i))):e.responseMode==="fragment"&&i!==-1&&(a=r.substring(0,i),c=Y(r.substring(i+1),t),c.paramsString!==""&&(a+="#"+c.paramsString)),c&&c.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((c.oauthParams.code||c.oauthParams.error)&&c.oauthParams.state)return c.oauthParams.newUrl=a,c.oauthParams}else if(e.flow==="implicit"&&(c.oauthParams.access_token||c.oauthParams.error)&&c.oauthParams.state)return c.oauthParams.newUrl=a,c.oauthParams}}function Y(r,t){for(var s=r.split("&"),i={paramsString:"",oauthParams:{}},a=0;a<s.length;a++){var c=s[a].indexOf("="),n=s[a].slice(0,c);t.indexOf(n)!==-1?i.oauthParams[n]=s[a].slice(c+1):(i.paramsString!==""&&(i.paramsString+="&"),i.paramsString+=s[a])}return i}function g(){var r={setSuccess:function(t){r.resolve(t)},setError:function(t){r.reject(t)}};return r.promise=new Promise(function(t,s){r.resolve=t,r.reject=s}),r}function ne(r,t,s){var i=null,a=new Promise(function(c,n){i=setTimeout(function(){n({error:s})},t)});return Promise.race([r,a]).finally(function(){clearTimeout(i)})}function K(){var r=g();if(!h.enable||h.iframe)return r.setSuccess(),r.promise;var t=document.createElement("iframe");h.iframe=t,t.onload=function(){var a=e.endpoints.authorize();a.charAt(0)==="/"?h.iframeOrigin=ee():h.iframeOrigin=a.substring(0,a.indexOf("/",8)),r.setSuccess()};var s=e.endpoints.checkSessionIframe();t.setAttribute("src",s),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t);var i=function(a){if(!(a.origin!==h.iframeOrigin||h.iframe.contentWindow!==a.source)&&(a.data=="unchanged"||a.data=="changed"||a.data=="error")){a.data!="unchanged"&&e.clearToken();for(var c=h.callbackList.splice(0,h.callbackList.length),n=c.length-1;n>=0;--n){var o=c[n];a.data=="error"?o.setError():o.setSuccess(a.data=="unchanged")}}};return window.addEventListener("message",i,!1),r.promise}function H(){h.enable&&e.token&&setTimeout(function(){L().then(function(r){r&&H()})},h.interval*1e3)}function L(){var r=g();if(h.iframe&&h.iframeOrigin){var t=e.clientId+" "+(e.sessionId?e.sessionId:"");h.callbackList.push(r);var s=h.iframeOrigin;h.callbackList.length==1&&h.iframe.contentWindow.postMessage(t,s)}else r.setSuccess();return r.promise}function oe(){var r=g();if((h.enable||e.silentCheckSsoRedirectUri)&&typeof e.endpoints.thirdPartyCookiesIframe=="function"){var t=document.createElement("iframe");t.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var s=function(i){t.contentWindow===i.source&&(i.data!=="supported"&&i.data!=="unsupported"||(i.data==="unsupported"&&(M(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
5
-
6
- - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
7
- - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
8
-
9
- For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers`),h.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",s),r.setSuccess()))};window.addEventListener("message",s,!1)}else r.setSuccess();return ne(r.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function N(r){if(!r||r=="default")return{login:async function(n){return window.location.assign(await e.createLoginUrl(n)),g().promise},logout:async function(n){if(((n==null?void 0:n.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(n));return}const l=document.createElement("form");l.setAttribute("method","POST"),l.setAttribute("action",e.createLogoutUrl(n)),l.style.display="none";const f={id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:p.redirectUri(n,!1)};for(const[d,m]of Object.entries(f)){const y=document.createElement("input");y.setAttribute("type","hidden"),y.setAttribute("name",d),y.setAttribute("value",m),l.appendChild(y)}document.body.appendChild(l),l.submit()},register:async function(n){return window.location.assign(await e.createRegisterUrl(n)),g().promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u")window.location.href=n;else throw"Not supported by the OIDC server";return g().promise},redirectUri:function(n,o){return n&&n.redirectUri?n.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(r=="cordova"){h.enable=!1;var t=function(n,o,l){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(n,o,l):window.open(n,o,l)},s=function(n){return n&&n.cordovaOptions?Object.keys(n.cordovaOptions).reduce(function(o,l){return o[l]=n.cordovaOptions[l],o},{}):{}},i=function(n){return Object.keys(n).reduce(function(o,l){return o.push(l+"="+n[l]),o},[]).join(",")},a=function(n){var o=s(n);return o.location="no",n&&n.prompt=="none"&&(o.hidden="yes"),i(o)},c=function(){return e.redirectUri||"http://localhost"};return{login:async function(n){var o=g(),l=a(n),f=await e.createLoginUrl(n),d=t(f,"_blank",l),m=!1,y=!1,U=function(){y=!0,d.close()};return d.addEventListener("loadstart",function(b){if(b.url.indexOf(c())==0){var z=E(b.url);T(z,o),U(),m=!0}}),d.addEventListener("loaderror",function(b){if(!m)if(b.url.indexOf(c())==0){var z=E(b.url);T(z,o),U(),m=!0}else o.setError(),U()}),d.addEventListener("exit",function(b){y||o.setError({reason:"closed_by_user"})}),o.promise},logout:function(n){var o=g(),l=e.createLogoutUrl(n),f=t(l,"_blank","location=no,hidden=yes,clearcache=yes"),d;return f.addEventListener("loadstart",function(m){m.url.indexOf(c())==0&&f.close()}),f.addEventListener("loaderror",function(m){m.url.indexOf(c())==0||(d=!0),f.close()}),f.addEventListener("exit",function(m){d?o.setError():(e.clearToken(),o.setSuccess())}),o.promise},register:async function(n){var o=g(),l=await e.createRegisterUrl(),f=a(n),d=t(l,"_blank",f);return d.addEventListener("loadstart",function(m){if(m.url.indexOf(c())==0){d.close();var y=E(m.url);T(y,o)}}),o.promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u"){var o=t(n,"_blank","location=no");o.addEventListener("loadstart",function(l){l.url.indexOf(c())==0&&o.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(n){return c()}}}if(r=="cordova-native")return h.enable=!1,{login:async function(n){var o=g(),l=await e.createLoginUrl(n);return universalLinks.subscribe("keycloak",function(f){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var d=E(f.url);T(d,o)}),window.cordova.plugins.browsertab.openUrl(l),o.promise},logout:function(n){var o=g(),l=e.createLogoutUrl(n);return universalLinks.subscribe("keycloak",function(f){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),o.setSuccess()}),window.cordova.plugins.browsertab.openUrl(l),o.promise},register:async function(n){var o=g(),l=await e.createRegisterUrl(n);return universalLinks.subscribe("keycloak",function(f){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var d=E(f.url);T(d,o)}),window.cordova.plugins.browsertab.openUrl(l),o.promise},accountManagement:function(){var n=e.createAccountUrl();if(typeof n<"u")window.cordova.plugins.browsertab.openUrl(n);else throw"Not supported by the OIDC server"},redirectUri:function(n){return n&&n.redirectUri?n.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+r}const A="kc-callback-";var D=function(){if(!(this instanceof D))return new D;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var r=this;function t(){const c=Date.now();for(const[n,o]of i()){const l=a(o);(l===null||l<c)&&localStorage.removeItem(n)}}function s(){for(const[c]of i())localStorage.removeItem(c)}function i(){return Object.entries(localStorage).filter(([c])=>c.startsWith(A))}function a(c){let n;try{n=JSON.parse(c)}catch{return null}return V(n)&&"expires"in n&&typeof n.expires=="number"?n.expires:null}r.get=function(c){if(c){var n=A+c,o=localStorage.getItem(n);return o&&(localStorage.removeItem(n),o=JSON.parse(o)),t(),o}},r.add=function(c){t();const n=A+c.state,o=JSON.stringify({...c,expires:Date.now()+60*60*1e3});try{localStorage.setItem(n,o)}catch{s(),localStorage.setItem(n,o)}}},j=function(){if(!(this instanceof j))return new j;var r=this;r.get=function(a){if(a){var c=s(A+a);if(i(A+a,"",t(-100)),c)return JSON.parse(c)}},r.add=function(a){i(A+a.state,JSON.stringify(a),t(60))},r.removeItem=function(a){i(a,"",t(-100))};var t=function(a){var c=new Date;return c.setTime(c.getTime()+a*60*1e3),c},s=function(a){for(var c=a+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var l=n[o];l.charAt(0)==" ";)l=l.substring(1);if(l.indexOf(c)==0)return l.substring(c.length,l.length)}return""},i=function(a,c,n){var o=a+"="+c+"; expires="+n.toUTCString()+"; ";document.cookie=o}};function ae(){try{return new D}catch{}return new j}function q(r){return function(){e.enableLogging&&r.apply(console,Array.prototype.slice.call(arguments))}}}function ie(u){const e=String.fromCodePoint(...u);return btoa(e)}async function se(u){const p=new TextEncoder().encode(u);if(typeof crypto>"u"||typeof crypto.subtle>"u")throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",p)}function O(u){const[e,p]=u.split(".");if(typeof p!="string")throw new Error("Unable to decode token, payload not found.");let w;try{w=ce(p)}catch(I){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:I})}try{return JSON.parse(w)}catch(I){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:I})}}function ce(u){let e=u.replaceAll("-","+").replaceAll("_","/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Input is not of the correct length.")}try{return le(e)}catch{return atob(e)}}function le(u){return decodeURIComponent(atob(u).replace(/(.)/g,(e,p)=>{let w=p.charCodeAt(0).toString(16).toUpperCase();return w.length<2&&(w="0"+w),"%"+w}))}function V(u){return typeof u=="object"&&u!==null}let k=null,x=null;function ue(u,e=!0){return x?(console.log("Keycloak already initialized, returning from cache"),x):(k||(k=new G({url:u.url,realm:u.realm,clientId:u.clientId})),x=k.init({onLoad:e?"check-sso":"login-required",checkLoginIframe:!1}).then(p=>p).catch(p=>(console.error("Failed to initialize Keycloak:",p),!1)),x)}function de(){return k!=null&&k.authenticated&&(k!=null&&k.idTokenParsed)?{fullname:k.idTokenParsed.name,email:k.idTokenParsed.email,lastname:k.idTokenParsed.family_name,firstname:k.idTokenParsed.given_name,username:k.idTokenParsed.preferred_username,background:"grey",token:k.token,sub:k.idTokenParsed.sub}:{}}function fe(){if(k)k.login();else throw new Error("Keycloak is not initialized.")}function he(){if(k)k.logout();else throw new Error("Keycloak is not initialized.")}function pe(){return!!(k!=null&&k.authenticated)}async function me(u){try{const e=await fetch(u,{method:"HEAD",mode:"no-cors"});return e.ok||e.type==="opaque"}catch{return!1}}const ke=class{constructor(u){v.registerInstance(this,u),this.keycloak=v.createEvent(this,"keycloak",7),this.auth=v.createEvent(this,"auth",7),this.handleLogin=async()=>{if(!this.authenticated)try{await fe()}catch(e){R.toast.show(e.message,"error")}},this.handleLogout=async()=>{try{await he()}catch(e){R.toast.show(e.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null,this.serverAvailable=!1}async componentWillLoad(){if(!this.keycloakUrl||!this.keycloakRealm||!this.keycloakClientId){console.error("Keycloak configuration props are missing.");return}if(this.serverAvailable=await me(`${this.keycloakUrl}/realms/${this.keycloakRealm}`),!this.serverAvailable){R.toast.show("Keycloak server is unavailable.","error");return}await this.initAuth()}async initAuth(){try{const u=await ue({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0);this.keycloak.emit({init:u}),pe()&&(this.user=de(),this.authenticated=!0,this.auth.emit({authenticated:this.authenticated,user:this.user}))}catch(u){R.toast.show(u.message,"error")}}render(){return v.h("div",{key:"ac10895096f36f2fb3a79622972d5a8c519685eb",class:"block"},!this.authenticated&&v.h("eds-button",{key:"55aab5ee63214d6a1ccdefc303273df99aa309cf",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}},ge=".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}",ve=ge,W=class{constructor(u){v.registerInstance(this,u),this.splash=v.createEvent(this,"splash",7),this.inverse=!1,this.initPromise=void 0,this.isVisible=!0}componentWillLoad(){this.initPromise&&this.handleInitPromise(this.initPromise)}async watchInitPromise(u){u&&this.handleInitPromise(u)}async handleInitPromise(u){try{await u,this.hideSplash()}catch(e){this.splash.emit({type:"error",message:e.message||"Unknown error"})}}handleHideSplash(){this.hideSplash()}hideSplash(){this.isVisible=!1,this.splash.emit({type:"hidden",message:"Splash screen hidden successfully"})}render(){return this.isVisible?v.h(v.Host,null,v.h("div",{class:"splash-overlay",style:{background:this.inverse?"black":"var(--grey-200)"}},v.h("div",{class:"logo-container"},this.inverse?v.h("eds-logo",{orientation:"vertical",type:"color-white"}):v.h("eds-logo",{orientation:"vertical",type:"color"})),v.h("div",{class:"content-container"},v.h("eds-spinner",{size:"1rem",thickness:"3px","border-color":"var(--grey-400)","bottom-color":"var(--grey-900)",background:"none",fullscreen:!1})))):null}static get watchers(){return{initPromise:["watchInitPromise"]}}};W.style=ve;exports.eds_login=ke;exports.eds_splash_screen=W;