@ebrains/components 0.9.1-beta → 0.9.3-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.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +1 -1
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/eds-accordion.cjs.entry.js +2 -2
- package/dist/cjs/eds-alert.cjs.entry.js +2 -2
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/{eds-avatar_26.cjs.entry.js → eds-avatar_27.cjs.entry.js} +168 -45
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-updown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-login_2.cjs.entry.js +1 -1
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +3 -3
- package/dist/cjs/eds-pagination_2.cjs.entry.js +5 -5
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-rating.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/eds-switch.cjs.entry.js +2 -2
- package/dist/cjs/eds-tabs.cjs.entry.js +2 -2
- package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-2f63169d.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/svg-repository.cjs.entry.js +1 -1
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-alert/eds-alert.js +2 -2
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +7 -8
- package/dist/collection/components/eds-button/eds-button.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +2 -2
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.css +47 -1
- package/dist/collection/components/eds-modal/eds-modal.js +52 -30
- package/dist/collection/components/eds-modal/eds-modal.stories.js +24 -15
- package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +1 -1
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.js +4 -4
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.css +12 -15
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +2 -2
- package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +16 -8
- package/dist/collection/shared-ui/eds-form/eds-form.js +3 -3
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +11 -2
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +1 -1
- package/dist/collection/shared-ui/eds-header/eds-header.js +5 -5
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +1 -0
- package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +3 -3
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +3 -9
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +26 -2
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +3 -3
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +79 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +12 -15
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.css +12 -15
- package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +12 -15
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/eds-accordion2.js +2 -2
- package/dist/components/eds-alert2.js +2 -2
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +7 -8
- package/dist/components/eds-button2.js +1 -1
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-tool.js +1 -1
- package/dist/components/eds-card-wrapper.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -2
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +2 -2
- package/dist/components/eds-form.js +3 -3
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +1 -1
- package/dist/components/eds-header.js +4 -4
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-bookmark.js +1 -1
- package/dist/components/eds-icon-chevron-down.js +1 -1
- package/dist/components/eds-icon-chevron-left.js +1 -1
- package/dist/components/eds-icon-chevron-right.js +1 -1
- package/dist/components/eds-icon-chevron-up.js +1 -1
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +2 -2
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-login2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-matomo-notice2.js +3 -3
- package/dist/components/eds-modal.js +37 -15
- package/dist/components/eds-pagination2.js +1 -1
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +1 -1
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +4 -4
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +4 -4
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +2 -2
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -1
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +2 -2
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/{p-4620ebf5.entry.js → p-037975af.entry.js} +1 -1
- package/dist/components/p-05549a74.entry.js +1 -0
- package/dist/components/p-05b272e5.entry.js +1 -0
- package/dist/components/p-0b99fd3c.entry.js +1 -0
- package/dist/components/p-0e378e0e.entry.js +1 -0
- package/dist/components/p-1ec25dc2.entry.js +1 -0
- package/dist/components/{p-1309a74c.entry.js → p-202f78cc.entry.js} +1 -1
- package/dist/components/{p-2c1be2bb.entry.js → p-22b76c3c.entry.js} +1 -1
- package/dist/components/p-24300934.entry.js +1 -0
- package/dist/components/p-25f1cc6c.entry.js +1 -0
- package/dist/components/{p-d94a44b9.entry.js → p-29ad9c73.entry.js} +1 -1
- package/dist/components/p-31ca07fd.entry.js +1 -0
- package/dist/components/p-342bc3d8.entry.js +1 -0
- package/dist/components/p-35068b80.entry.js +1 -0
- package/dist/components/p-3950debe.entry.js +1 -0
- package/dist/components/p-3d74d4b1.entry.js +1 -0
- package/dist/components/{p-91440d2f.entry.js → p-42f19373.entry.js} +1 -1
- package/dist/components/{p-e42eb100.entry.js → p-4ecaedbc.entry.js} +1 -1
- package/dist/components/p-5055eb25.entry.js +1 -0
- package/dist/components/{p-21a746a4.entry.js → p-55e3683c.entry.js} +1 -1
- package/dist/components/p-5646902d.entry.js +1 -0
- package/dist/components/p-5ff68e7d.entry.js +1 -0
- package/dist/components/p-63cc5d3d.entry.js +1 -0
- package/dist/components/p-6506cf52.entry.js +1 -0
- package/dist/components/{p-ea089f4e.entry.js → p-67c72c20.entry.js} +1 -1
- package/dist/components/{p-063b0683.entry.js → p-688e07d6.entry.js} +1 -1
- package/dist/components/p-6aa17003.entry.js +1 -0
- package/dist/components/p-6e273e0f.entry.js +1 -0
- package/dist/components/p-6fcb754e.entry.js +1 -0
- package/dist/components/{p-622dd2a1.entry.js → p-70c9af1e.entry.js} +1 -1
- package/dist/components/{p-18eb23ff.entry.js → p-7180a36b.entry.js} +1 -1
- package/dist/components/p-7351cad3.entry.js +1 -0
- package/dist/components/{p-4e8a317b.entry.js → p-751497f4.entry.js} +1 -1
- package/dist/components/p-75cc9f9e.entry.js +1 -0
- package/dist/components/{p-3a7be9a7.entry.js → p-75d37c48.entry.js} +1 -1
- package/dist/components/{p-c99745a8.entry.js → p-7a31c31f.entry.js} +1 -1
- package/dist/components/{p-3f480c3c.entry.js → p-7a550385.entry.js} +1 -1
- package/dist/components/{p-941240b5.entry.js → p-7ac9881e.entry.js} +1 -1
- package/dist/components/{p-e710c860.entry.js → p-7cb60f9c.entry.js} +1 -1
- package/dist/components/{p-c8abff96.entry.js → p-7db75d62.entry.js} +1 -1
- package/dist/components/p-888c3471.entry.js +1 -0
- package/dist/components/{p-cccff1e3.entry.js → p-892362e0.entry.js} +1 -1
- package/dist/components/{p-1aab55cf.entry.js → p-8a4d9b9b.entry.js} +1 -1
- package/dist/components/p-8b7f5204.entry.js +1 -0
- package/dist/components/p-8db820ef.entry.js +1 -0
- package/dist/components/{p-c86243a3.entry.js → p-aa2e6fec.entry.js} +1 -1
- package/dist/components/p-ae4f5e3a.entry.js +1 -0
- package/dist/components/p-b024183c.entry.js +1 -0
- package/dist/components/{p-0ce924b1.entry.js → p-b115c3f1.entry.js} +1 -1
- package/dist/components/p-b3a3ae59.entry.js +1 -0
- package/dist/components/p-b4595a9e.entry.js +1 -0
- package/dist/components/{p-f48a4313.entry.js → p-b817dceb.entry.js} +1 -1
- package/dist/components/p-b8ca2127.entry.js +1 -0
- package/dist/components/{p-ff7acb55.entry.js → p-ba6cc102.entry.js} +1 -1
- package/dist/components/{p-c935aa46.entry.js → p-c4db0829.entry.js} +1 -1
- package/dist/components/p-c51b5f04.entry.js +1 -0
- package/dist/components/{p-94b1f974.entry.js → p-c5a7d2b1.entry.js} +1 -1
- package/dist/components/p-c5f98369.entry.js +1 -0
- package/dist/components/p-c604063d.entry.js +1 -0
- package/dist/components/p-c9a19e93.entry.js +1 -0
- package/dist/components/p-d164a75d.entry.js +1 -0
- package/dist/components/{p-526cdc57.entry.js → p-d4c920fa.entry.js} +1 -1
- package/dist/components/p-d82cc261.entry.js +1 -0
- package/dist/components/{p-e64cd6f7.entry.js → p-d83d2815.entry.js} +1 -1
- package/dist/components/p-da6e49a9.entry.js +1 -0
- package/dist/components/{p-6dc26e53.entry.js → p-e089797c.entry.js} +1 -1
- package/dist/components/{p-9a1a6df1.entry.js → p-e2b00067.entry.js} +1 -1
- package/dist/components/p-e8a2d709.entry.js +1 -0
- package/dist/components/{p-8527ef5f.entry.js → p-ea942740.entry.js} +1 -1
- package/dist/components/p-ece20356.entry.js +1 -0
- package/dist/components/p-ed6fd4b8.entry.js +1 -0
- package/dist/components/{p-7fa88255.entry.js → p-f3822d6b.entry.js} +1 -1
- package/dist/components/p-f539febe.entry.js +1 -0
- package/dist/components/p-f7f4b247.entry.js +1 -0
- package/dist/components/p-fdbfa776.entry.js +1 -0
- package/dist/components/p-fe27f4a9.entry.js +1 -0
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +1 -1
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +1 -1
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/docs-palettes.entry.js +1 -1
- package/dist/esm/docs-tokens.entry.js +1 -1
- package/dist/esm/eds-accordion.entry.js +2 -2
- package/dist/esm/eds-alert.entry.js +2 -2
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/{eds-avatar_26.entry.js → eds-avatar_27.entry.js} +168 -46
- package/dist/esm/eds-card-desc_2.entry.js +2 -2
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-bookmark.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
- package/dist/esm/eds-icon-close.entry.js +1 -1
- package/dist/esm/eds-icon-copy.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-external.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-loader.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-menu.entry.js +1 -1
- package/dist/esm/eds-icon-minus.entry.js +1 -1
- package/dist/esm/eds-icon-more.entry.js +1 -1
- package/dist/esm/eds-icon-paper.entry.js +1 -1
- package/dist/esm/eds-icon-plus.entry.js +1 -1
- package/dist/esm/eds-icon-portal.entry.js +1 -1
- package/dist/esm/eds-icon-private.entry.js +1 -1
- package/dist/esm/eds-icon-public.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-star.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
- package/dist/esm/eds-icon-tutorial.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-unknown.entry.js +1 -1
- package/dist/esm/eds-icon-updown.entry.js +1 -1
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-login_2.entry.js +1 -1
- package/dist/esm/eds-matomo-notice.entry.js +3 -3
- package/dist/esm/eds-pagination_2.entry.js +5 -5
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-rating.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-spinner.entry.js +1 -1
- package/dist/esm/eds-switch.entry.js +2 -2
- package/dist/esm/eds-tabs.entry.js +2 -2
- package/dist/esm/eds-timeline.entry.js +2 -2
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-tooltip.entry.js +1 -1
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-8a71b9a7.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
- package/dist/esm/logo-variations-tabs.entry.js +1 -1
- package/dist/esm/logo-wrong-usage.entry.js +1 -1
- package/dist/esm/svg-repository.entry.js +1 -1
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/hydrate/index.js +187 -166
- package/dist/hydrate/index.mjs +187 -166
- package/dist/stencil.config.js +1 -1
- package/dist/types/components/eds-modal/eds-modal.d.ts +12 -12
- package/dist/types/components/eds-modal/eds-modal.stories.d.ts +17 -0
- package/dist/types/components.d.ts +15 -15
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +1 -1
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -5
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +48 -0
- package/package.json +1 -1
- package/dist/cjs/eds-modal.cjs.entry.js +0 -109
- package/dist/collection/shared-ui/eds-login/eds-login.stories.js +0 -37
- package/dist/components/p-0467ceb5.entry.js +0 -1
- package/dist/components/p-20b3a999.entry.js +0 -1
- package/dist/components/p-20e9ae7f.entry.js +0 -1
- package/dist/components/p-29e807f5.entry.js +0 -1
- package/dist/components/p-35ed7ebf.entry.js +0 -1
- package/dist/components/p-376b706b.entry.js +0 -1
- package/dist/components/p-3932d0af.entry.js +0 -1
- package/dist/components/p-3af94671.entry.js +0 -1
- package/dist/components/p-41e89554.entry.js +0 -1
- package/dist/components/p-435a8942.entry.js +0 -1
- package/dist/components/p-4c7852f8.entry.js +0 -1
- package/dist/components/p-52913e2e.entry.js +0 -1
- package/dist/components/p-6404e157.entry.js +0 -1
- package/dist/components/p-66bb44c9.entry.js +0 -1
- package/dist/components/p-78fa7132.entry.js +0 -1
- package/dist/components/p-7dce734a.entry.js +0 -1
- package/dist/components/p-83936521.entry.js +0 -1
- package/dist/components/p-8653bc36.entry.js +0 -1
- package/dist/components/p-8baa7e01.entry.js +0 -1
- package/dist/components/p-8e3c6c63.entry.js +0 -1
- package/dist/components/p-923f67b5.entry.js +0 -1
- package/dist/components/p-93093977.entry.js +0 -1
- package/dist/components/p-97e95520.entry.js +0 -1
- package/dist/components/p-9873ebec.entry.js +0 -1
- package/dist/components/p-9dc879c9.entry.js +0 -1
- package/dist/components/p-a1d55013.entry.js +0 -1
- package/dist/components/p-a56f0579.entry.js +0 -1
- package/dist/components/p-a8b0fe92.entry.js +0 -1
- package/dist/components/p-acc4d234.entry.js +0 -1
- package/dist/components/p-b0b37831.entry.js +0 -1
- package/dist/components/p-b299b89a.entry.js +0 -1
- package/dist/components/p-b2b46793.entry.js +0 -1
- package/dist/components/p-b76aa402.entry.js +0 -1
- package/dist/components/p-b931a634.entry.js +0 -1
- package/dist/components/p-b96fc468.entry.js +0 -1
- package/dist/components/p-bab07ba6.entry.js +0 -1
- package/dist/components/p-cd624044.entry.js +0 -1
- package/dist/components/p-cdc36ea8.entry.js +0 -1
- package/dist/components/p-d525ed36.entry.js +0 -1
- package/dist/components/p-dbcf1f0e.entry.js +0 -1
- package/dist/components/p-dcc08064.entry.js +0 -1
- package/dist/components/p-eebf7ebf.entry.js +0 -1
- package/dist/components/p-efc73304.entry.js +0 -1
- package/dist/components/p-f13e9ab1.entry.js +0 -1
- package/dist/components/p-f4ce515a.entry.js +0 -1
- package/dist/esm/eds-modal.entry.js +0 -105
- package/dist/types/shared-ui/eds-login/eds-login.stories.d.ts +0 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as c}from"./p-cccacbd3.js";import{u as r}from"./p-d962849c.js";const n=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"a9145c4e133746c314a1ee34d36a5f19f3686565",class:this.class,innerHTML:r})}};export{n as eds_icon_unknown}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as c}from"./p-cccacbd3.js";import{s as r}from"./p-e2d5a487.js";const t=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0",class:this.class,innerHTML:r})}};export{t as eds_icon_star}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,g as
|
|
1
|
+
import{r as t,h as s,g as a}from"./p-cccacbd3.js";import{t as e}from"./p-22f9e720.js";const i=class{constructor(s){t(this,s),this.toastId=0,this.toasts=[]}connectedCallback(){e.init(this.hostElement),this.hostElement.addEventListener("show-toast",(t=>{const{message:s,intent:a}=t.detail;this.addToast(s,a)}))}addToast(t,s){const a=this.toastId++;this.toasts=[...this.toasts,{id:a,message:t,intent:s}]}removeToast(t){this.toasts=this.toasts.filter((s=>s.id!==t))}render(){return s("div",{key:"cc2aa94e01507dc8c27e82dfa550af5da6eaba3e",class:"toast-container"},this.toasts.map((t=>s("div",{key:t.id},s("eds-toast",{message:t.message,intent:t.intent,onClick:()=>this.removeToast(t.id)})))))}get hostElement(){return a(this)}};i.style=".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}";export{i as eds_toast_manager}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as c}from"./p-cccacbd3.js";import{c as a}from"./p-8983de37.js";const e=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"907eaa5d70add8ad62e9f071aacce359682969fe",class:this.class,innerHTML:a})}};export{e as eds_icon_close}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as s}from"./p-cccacbd3.js";const i=class{constructor(t){e(this,t),this.size="1rem",this.thickness="10px",this.borderColor="var(--grey-400)",this.bottomColor="var(--grey-900)",this.background="var(--grey-200)",this.fullscreen=!1}render(){const e=Object.assign({width:this.size,height:this.size,border:`${this.thickness} solid ${this.borderColor}`,borderBottomColor:this.bottomColor},!this.fullscreen&&{display:"inline-block"});return t(s,{key:"
|
|
1
|
+
import{r as e,h as t,H as s}from"./p-cccacbd3.js";const i=class{constructor(t){e(this,t),this.size="1rem",this.thickness="10px",this.borderColor="var(--grey-400)",this.bottomColor="var(--grey-900)",this.background="var(--grey-200)",this.fullscreen=!1}render(){const e=Object.assign({width:this.size,height:this.size,border:`${this.thickness} solid ${this.borderColor}`,borderBottomColor:this.bottomColor},!this.fullscreen&&{display:"inline-block"});return t(s,{key:"77f17386e37b3dae21c2893dab53ef046d74b8fb"},t("div",{key:"c9420f866d61331901df7d6d681d09f75e31846c",class:"spinner-overlay",style:this.fullscreen?{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",zIndex:"9999999",backgroundColor:this.background,display:"flex",alignItems:"center",justifyContent:"center"}:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"1000",backgroundColor:this.background,display:"flex",alignItems:"center",justifyContent:"center"}},t("span",{key:"83497de6228b75fad77225a1b6fee9a614d68fe4",class:"spinner",style:e})))}};i.style=":host{display:block}.spinner{box-sizing:border-box;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}";export{i as eds_spinner}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as c}from"./p-cccacbd3.js";import{a as r}from"./p-32e6c4df.js";const a=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"099d0118c7a4bfa2d8b5c21f45162080b31a2f7c",class:this.class,innerHTML:r})}};export{a as eds_icon_external}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-cccacbd3.js";const s=class{constructor(e){t(this,e),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e("token-list",{show:"background"});case 1:return e("token-list",{show:"text"});case 2:return e("token-list",{show:"border"});case 3:return e("token-radii",null);case 4:return e("token-list",{show:"outline"});case 5:return e("token-shadows",null);default:return e("p",null,"Content not available.")}}render(){return e("div",{key:"
|
|
1
|
+
import{r as t,h as e}from"./p-cccacbd3.js";const s=class{constructor(e){t(this,e),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e("token-list",{show:"background"});case 1:return e("token-list",{show:"text"});case 2:return e("token-list",{show:"border"});case 3:return e("token-radii",null);case 4:return e("token-list",{show:"outline"});case 5:return e("token-shadows",null);default:return e("p",null,"Content not available.")}}render(){return e("div",{key:"2d4d06ef8d68dc42280f71042322a5f3ca528564",class:"container"},this.renderContent())}};export{s as docs_tokens}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as r}from"./p-cccacbd3.js";const t={tokens:{"grey-100":"#f8f8f8","grey-200":"#f2f2f2","grey-300":"#e6e6e6","grey-400":"#d8d8d8","grey-500":"#8c8c8c","grey-600":"#6e6e6e","grey-700":"#666666","grey-800":"#4d4d4d","grey-900":"#242424","green-100":"#eaffee","green-200":"#d3ffdc","green-300":"#9dffb4","green-400":"#63fb92","green-500":"#00e766","green-600":"#00c959","green-700":"#009d45","green-800":"#007734","green-900":"#004f23","yellow-100":"#fefee5","yellow-200":"#ffffcb","yellow-300":"#fdfdaa","yellow-400":"#ffff8b","yellow-500":"#ffff51","yellow-600":"#f3f30a","yellow-700":"#d7d72b","yellow-800":"#9a9a1e","yellow-900":"#636313","orange-100":"#fff4ee","orange-200":"#ffeade","orange-300":"#ffdcc5","orange-400":"#ffcca9","orange-500":"#ffb87e","orange-600":"#ffa543","orange-700":"#cb7f28","orange-800":"#995f1e","orange-900":"#653f14","red-100":"#feefef","red-200":"#ffe0e1","red-300":"#ffc7c9","red-400":"#ff9ea2","red-500":"#ff7a7f","red-600":"#ff4d68","red-700":"#d01111","red-800":"#a3001a","red-900":"#6f0011","purple-100":"#f9f3ff","purple-200":"#f4e8ff","purple-300":"#e9ceff","purple-400":"#ddb1ff","purple-500":"#d18fff","purple-600":"#c461ff","purple-700":"#af56e4","purple-800":"#8337b1","purple-900":"#3d1e4f","blue-100":"#eff0ff","blue-200":"#dee0ff","blue-300":"#caceff","blue-400":"#b2b8ff","blue-500":"#7a89f5","blue-600":"#2b69fc","blue-700":"#0034cb","blue-800":"#002799","blue-900":"#001a65","cyan-100":"#E0EEFF","cyan-200":"#D3E6FF","cyan-300":"#B5D8FF","cyan-400":"#92C8FF","cyan-500":"#6CBFFE","cyan-600":"#3FA9F5","cyan-700":"#267FBE","cyan-800":"#1F689B","cyan-900":"#15496D",black:"#000000",white:"#ffffff",transparent:"transparent",current:"currentColor"},border:{default:"black",inverse:"white","inverse-soft":"rgba(255, 255, 255, 0.3)","inverse-softer":"rgba(255, 255, 255, 0.15)",soft:"rgba(0, 0, 0, .15 )",softer:"rgba(0, 0, 0, .1 )",softest:"rgba(0, 0, 0, .05 )",accent:"green-500",error:"red-700",current:"currentColor",transparent:"transparent"},text:{inverse:"white",default:"black",current:"currentColor",transparent:"transparent",light:"grey-700",lighter:"grey-600",lightest:"grey-500","extra-light":"grey-300",success:"green-800",warning:"yellow-900",error:"red-700",accent:"green-500","on-gradient":"rgba(0, 0, 0, 0.55)"},background:{default:"grey-200",inverse:"white","inverse-soft":"rgba(255, 255, 255, .2)","inverse-softer":"rgba(255, 255, 255, .15)",dark:"grey-300",darker:"grey-400",strong:"grey-700","strong-dark":"grey-800",stronger:"grey-900",strongest:"black","strongest-soft":"rgba(0, 0, 0, .05)",accent:"green-500","accent-dark":"green-600","accent-darker":"green-800",success:"green-200",warning:"yellow-200",error:"red-200",current:"currentColor",transparent:"transparent",overlay:"rgba(0, 0, 0, 0.25)","on-gradient":"rgba(0, 0, 0, 0.1)","on-dark":"rgba(255, 255, 255, 0.2)"},underline:{accent:"green-500",light:"grey-700",lighter:"grey-600",lightest:"grey-500","extra-light":"grey-300"},outline:{default:"black",accent:"green-500"},gradients:{"gradient-01-top":"gradient-01-top","gradient-02-top":"gradient-02-top","gradient-03-top":"gradient-03-top","gradient-04-top":"gradient-04-top","gradient-01-bottom":"gradient-01-bottom","gradient-02-bottom":"gradient-02-bottom","gradient-03-bottom":"gradient-03-bottom","gradient-04-bottom":"gradient-04-bottom"}},a=class{constructor(r){e(this,r),this.show=void 0}getTextColor(e){if(e.startsWith("rgba")||e.startsWith("rgb")){const r=e.replace(/rgba?\(/,"").replace(")","").split(",").map((e=>parseFloat(e.trim())));return(.299*r[0]+.587*r[1]+.114*r[2])/255>.5?"text-default":"text-inverse"}if(e.startsWith("#")){const r=e.replace("#","");return(.299*parseInt(r.substring(0,2),16)+.587*parseInt(r.substring(2,4),16)+.114*parseInt(r.substring(4,6),16))/255>.5?"text-default":"text-inverse"}return"text-default"}resolveColor(e){return t.tokens[e]?t.tokens[e]:e}renderSection(e,t){if("tokens"===e){const e=this.groupTokensByCategory(t);return Object.entries(e).map((([,e])=>r("ul",{class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},e.map((e=>{const t=Object.keys(e)[0],a=this.resolveColor(e[t]),s=this.getTextColor(a);return r("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},r("div",{class:"effect-height items-center justify-between p-16 hidden lg:flex",style:{backgroundColor:a}},r("span",{class:`${s} f-body-02`},t),r("div",{class:"inline-flex"},r("eds-code-block",{code:a,language:"hex",class:"min-w-[210px] mr-4"}),r("eds-code-block",{language:"css",code:`var(--${t})`,class:"min-w-[210px]"}))),r("div",{class:"effect-height items-center justify-between p-16 block lg:hidden",style:{backgroundColor:a}},r("span",{class:`${s} f-body-02`},t),r("div",{class:"inline block"},r("eds-code-block",{code:a,class:"min-w-[210px] mb-4"}),r("eds-code-block",{code:`var(--${t})`,class:"min-w-[210px]"}))))})))))}return r("ul",{class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(t).map((([t,a])=>{const s=this.resolveColor(a),n=this.getTextColor(s),l=s.startsWith("#")||s.startsWith("rgb")?{backgroundColor:s}:{border:`2px solid ${s}`};return r("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},r("div",{class:"effect-height block lg:flex items-center justify-between p-16",style:l},r("div",{class:"w-full flex"},r("span",{class:`${n} mr-auto font-bold`},t),r("span",{class:`${n} ml-auto mr-4 font-bold`},a)),r("span",{class:`${n}`},r("eds-code-block","background"===e?{code:`bg-${t}`,class:"min-w-[210px] mr-4"}:{code:`${e}-${t}`,class:"border"===e?"min-w-[250px] mr-4":"min-w-[210px] mr-4"}))))})))}groupTokensByCategory(e){const r={};return Object.entries(e).forEach((([e,t])=>{const a=e.split("-")[0];r[a]||(r[a]=[]),r[a].push({[e]:t})})),r}render(){return r("section",{key:"
|
|
1
|
+
import{r as e,h as r}from"./p-cccacbd3.js";const t={tokens:{"grey-100":"#f8f8f8","grey-200":"#f2f2f2","grey-300":"#e6e6e6","grey-400":"#d8d8d8","grey-500":"#8c8c8c","grey-600":"#6e6e6e","grey-700":"#666666","grey-800":"#4d4d4d","grey-900":"#242424","green-100":"#eaffee","green-200":"#d3ffdc","green-300":"#9dffb4","green-400":"#63fb92","green-500":"#00e766","green-600":"#00c959","green-700":"#009d45","green-800":"#007734","green-900":"#004f23","yellow-100":"#fefee5","yellow-200":"#ffffcb","yellow-300":"#fdfdaa","yellow-400":"#ffff8b","yellow-500":"#ffff51","yellow-600":"#f3f30a","yellow-700":"#d7d72b","yellow-800":"#9a9a1e","yellow-900":"#636313","orange-100":"#fff4ee","orange-200":"#ffeade","orange-300":"#ffdcc5","orange-400":"#ffcca9","orange-500":"#ffb87e","orange-600":"#ffa543","orange-700":"#cb7f28","orange-800":"#995f1e","orange-900":"#653f14","red-100":"#feefef","red-200":"#ffe0e1","red-300":"#ffc7c9","red-400":"#ff9ea2","red-500":"#ff7a7f","red-600":"#ff4d68","red-700":"#d01111","red-800":"#a3001a","red-900":"#6f0011","purple-100":"#f9f3ff","purple-200":"#f4e8ff","purple-300":"#e9ceff","purple-400":"#ddb1ff","purple-500":"#d18fff","purple-600":"#c461ff","purple-700":"#af56e4","purple-800":"#8337b1","purple-900":"#3d1e4f","blue-100":"#eff0ff","blue-200":"#dee0ff","blue-300":"#caceff","blue-400":"#b2b8ff","blue-500":"#7a89f5","blue-600":"#2b69fc","blue-700":"#0034cb","blue-800":"#002799","blue-900":"#001a65","cyan-100":"#E0EEFF","cyan-200":"#D3E6FF","cyan-300":"#B5D8FF","cyan-400":"#92C8FF","cyan-500":"#6CBFFE","cyan-600":"#3FA9F5","cyan-700":"#267FBE","cyan-800":"#1F689B","cyan-900":"#15496D",black:"#000000",white:"#ffffff",transparent:"transparent",current:"currentColor"},border:{default:"black",inverse:"white","inverse-soft":"rgba(255, 255, 255, 0.3)","inverse-softer":"rgba(255, 255, 255, 0.15)",soft:"rgba(0, 0, 0, .15 )",softer:"rgba(0, 0, 0, .1 )",softest:"rgba(0, 0, 0, .05 )",accent:"green-500",error:"red-700",current:"currentColor",transparent:"transparent"},text:{inverse:"white",default:"black",current:"currentColor",transparent:"transparent",light:"grey-700",lighter:"grey-600",lightest:"grey-500","extra-light":"grey-300",success:"green-800",warning:"yellow-900",error:"red-700",accent:"green-500","on-gradient":"rgba(0, 0, 0, 0.55)"},background:{default:"grey-200",inverse:"white","inverse-soft":"rgba(255, 255, 255, .2)","inverse-softer":"rgba(255, 255, 255, .15)",dark:"grey-300",darker:"grey-400",strong:"grey-700","strong-dark":"grey-800",stronger:"grey-900",strongest:"black","strongest-soft":"rgba(0, 0, 0, .05)",accent:"green-500","accent-dark":"green-600","accent-darker":"green-800",success:"green-200",warning:"yellow-200",error:"red-200",current:"currentColor",transparent:"transparent",overlay:"rgba(0, 0, 0, 0.25)","on-gradient":"rgba(0, 0, 0, 0.1)","on-dark":"rgba(255, 255, 255, 0.2)"},underline:{accent:"green-500",light:"grey-700",lighter:"grey-600",lightest:"grey-500","extra-light":"grey-300"},outline:{default:"black",accent:"green-500"},gradients:{"gradient-01-top":"gradient-01-top","gradient-02-top":"gradient-02-top","gradient-03-top":"gradient-03-top","gradient-04-top":"gradient-04-top","gradient-01-bottom":"gradient-01-bottom","gradient-02-bottom":"gradient-02-bottom","gradient-03-bottom":"gradient-03-bottom","gradient-04-bottom":"gradient-04-bottom"}},a=class{constructor(r){e(this,r),this.show=void 0}getTextColor(e){if(e.startsWith("rgba")||e.startsWith("rgb")){const r=e.replace(/rgba?\(/,"").replace(")","").split(",").map((e=>parseFloat(e.trim())));return(.299*r[0]+.587*r[1]+.114*r[2])/255>.5?"text-default":"text-inverse"}if(e.startsWith("#")){const r=e.replace("#","");return(.299*parseInt(r.substring(0,2),16)+.587*parseInt(r.substring(2,4),16)+.114*parseInt(r.substring(4,6),16))/255>.5?"text-default":"text-inverse"}return"text-default"}resolveColor(e){return t.tokens[e]?t.tokens[e]:e}renderSection(e,t){if("tokens"===e){const e=this.groupTokensByCategory(t);return Object.entries(e).map((([,e])=>r("ul",{class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},e.map((e=>{const t=Object.keys(e)[0],a=this.resolveColor(e[t]),s=this.getTextColor(a);return r("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},r("div",{class:"effect-height items-center justify-between p-16 hidden lg:flex",style:{backgroundColor:a}},r("span",{class:`${s} f-body-02`},t),r("div",{class:"inline-flex"},r("eds-code-block",{code:a,language:"hex",class:"min-w-[210px] mr-4"}),r("eds-code-block",{language:"css",code:`var(--${t})`,class:"min-w-[210px]"}))),r("div",{class:"effect-height items-center justify-between p-16 block lg:hidden",style:{backgroundColor:a}},r("span",{class:`${s} f-body-02`},t),r("div",{class:"inline block"},r("eds-code-block",{code:a,class:"min-w-[210px] mb-4"}),r("eds-code-block",{code:`var(--${t})`,class:"min-w-[210px]"}))))})))))}return r("ul",{class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(t).map((([t,a])=>{const s=this.resolveColor(a),n=this.getTextColor(s),l=s.startsWith("#")||s.startsWith("rgb")?{backgroundColor:s}:{border:`2px solid ${s}`};return r("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col"},r("div",{class:"effect-height block lg:flex items-center justify-between p-16",style:l},r("div",{class:"w-full flex"},r("span",{class:`${n} mr-auto font-bold`},t),r("span",{class:`${n} ml-auto mr-4 font-bold`},a)),r("span",{class:`${n}`},r("eds-code-block","background"===e?{code:`bg-${t}`,class:"min-w-[210px] mr-4"}:{code:`${e}-${t}`,class:"border"===e?"min-w-[250px] mr-4":"min-w-[210px] mr-4"}))))})))}groupTokensByCategory(e){const r={};return Object.entries(e).forEach((([e,t])=>{const a=e.split("-")[0];r[a]||(r[a]=[]),r[a].push({[e]:t})})),r}render(){return r("section",{key:"61b0561443787bdc5d1fdf6db0bed0bebe8ba6cb",class:"w-full mt-28"},Object.entries(this.show?{[this.show]:t[this.show]}:t).map((([e,r])=>r?this.renderSection(e,r):null)))}},s={xxs:"2px",xs:"4px",sm:"8px",md:"12px",lg:"16px",pill:"100px"},n=class{constructor(r){e(this,r)}render(){return r("section",{key:"f6e277d8d84957ad05f027a7a151f2dd0b5c6e21",class:"w-full mt-28"},r("ul",{key:"feeef0a573d704dc010b76fc94a5ac9a9a05f0da",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(s).map((([e,t])=>r("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},r("div",{class:`w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${e}`},r("eds-code-block",{language:"Utility Class",code:`rounded-${e}`,class:"mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto"}),r("eds-code-block",{code:`border-radius:${t}`,language:"css",class:"mx-auto min-w-[200px] sm:max-w-[200px] ml-auto"})))))))}},l={shadows:{small:"0px 1.5px 2px rgba(0, 0, 0, 0.1)",hover:"0px 0px 16px rgba(0, 0, 0, 0.2)",accent:"0px 0px 12px rgba(0, 201, 89, 0.6)",podium:"0px 0px 8px 8px rgb(0 0 0 / 25%);",border:"0 10px 10px rgba(0, 0, 0, 0.15);","border-top":"0 -10px 10px rgba(0, 0, 0, 0.15);"},dropShadows:{small:"0px 0px 16px rgba(0, 0, 0, 0.3)"}},o=class{constructor(r){e(this,r)}render(){return r("section",{key:"0d61c0eee38fbcffe111031da0829b3a9050bc8d",class:"w-full mt-28"},r("ul",{key:"587c263280d086c23351c6bbeaf01f37c307ce65",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(l).map((([e,t])=>Object.entries(t).map((([t,a])=>r("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16"},r("div",{class:"w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft",style:{boxShadow:a}},r("eds-code-block",{code:`${e}-${t}`,language:"Utility Class",class:"mr-auto sm:mb-4 min-w-[200px]"}),r("eds-code-block",{code:`${a}`,language:"css",class:"ml-auto min-w-[200px]"})))))))))}};export{a as token_list,n as token_radii,o as token_shadows}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as c}from"./p-cccacbd3.js";import{m as r}from"./p-86bb73dc.js";const e=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"76fe78207051b486030fc1ef778d55ecfec2c3d2",class:this.class,innerHTML:r})}};export{e as eds_icon_minus}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,h as e,g as t}from"./p-cccacbd3.js";import{c as i}from"./p-112122d6.js";const r=i(["w-full bg-dark"],{variants:{intent:{default:"",warning:"bg-warning",error:"bg-error",success:"bg-success"},brd:{rounded:"rounded-lg border-inside after:border-softest after:rounded-lg",normal:""},direction:{vertical:"space-y-12",horizontal:"flex flex-row items-center justify-between gap-x-12"},withBtn:{false:"",true:""}},compoundVariants:[{direction:"horizontal",withBtn:!0,class:"px-20 pr-12 py-12"},{direction:"horizontal",withBtn:!1,class:"p-20"},{direction:"vertical",withBtn:!0,class:"p-16"},{direction:"vertical",withBtn:!1,class:"px-12 py-20"}],defaultVariants:{intent:"default",brd:"rounded",direction:"horizontal"}}),o=class{constructor(e){n(this,e),this.message=void 0,this.pressableLabel=void 0,this.pressableUrl=void 0,this.direction="horizontal",this.intent="default",this.brd="rounded",this.withBtn=!1}componentWillLoad(){this.withBtn=Boolean(this.pressableLabel)}componentDidLoad(){var n;const e=null===(n=this.el.shadowRoot)||void 0===n?void 0:n.querySelector("eds-link");e&&this.emitContext(e)}emitContext(n){const e=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});n.dispatchEvent(e)}render(){return e("div",{key:"02e7ec45a64008c3a5e8ea99cade7da6b076259f",class:r({intent:this.intent,brd:this.brd,direction:this.direction,withBtn:this.withBtn}),role:"alert"},e("p",{key:"ba99f147a48ed7cc19ccc18b309e1a11ca053a09",class:"f-ui-01 py-8",innerHTML:this.message}),this.withBtn&&(this.pressableUrl?e("eds-link",{class:"eds-alert-link",label:this.pressableLabel,url:this.pressableUrl,intent:"secondary",external:!0}):null))}get el(){return t(this)}};o.style=':root {\n font-optical-sizing: auto;\n}\n\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/*\n:focus[data-focus-method="mouse"],\n:focus[data-focus-method="touch"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*,\n::before,\n::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box;\n /* 1 */\n border-width: 0;\n /* 2 */\n border-style: solid;\n /* 2 */\n border-color: currentColor;\n /* 2 */\n}\n\n::before,\n::after {}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n -moz-tab-size: 4;\n /* 3 */\n -o-tab-size: 4;\n tab-size: 4;\n /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n /* 4 */\n font-feature-settings: normal;\n /* 5 */\n font-variation-settings: normal;\n /* 6 */\n -webkit-tap-highlight-color: transparent;\n /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0;\n /* 1 */\n line-height: inherit;\n /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0;\n /* 1 */\n color: inherit;\n /* 2 */\n border-top-width: 1px;\n /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n /* 1 */\n font-feature-settings: normal;\n /* 2 */\n font-variation-settings: normal;\n /* 3 */\n font-size: 1em;\n /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0;\n /* 1 */\n border-color: inherit;\n /* 2 */\n border-collapse: collapse;\n /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit;\n /* 1 */\n font-feature-settings: inherit;\n /* 1 */\n font-variation-settings: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n font-weight: inherit;\n /* 1 */\n line-height: inherit;\n /* 1 */\n letter-spacing: inherit;\n /* 1 */\n color: inherit;\n /* 1 */\n margin: 0;\n /* 2 */\n padding: 0;\n /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type=\'search\'] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\ninput::-moz-placeholder,\ntextarea::-moz-placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block;\n /* 1 */\n vertical-align: middle;\n /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n:root {\n --inner-gutter: 8px;\n}\n\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n:root {}\n\n@media (min-width: 900px) {\n :root {}\n}\n\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n@media (min-width: 750px) {\n :root {}\n}\n\n@media (min-width: 900px) {\n :root {}\n}\n\n@media (min-width: 1024px) {\n :root {}\n}\n\n.f-ui-01 b,\n.f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n\n@media (min-width: 750px) {\n .md\\:grid-line-x>*::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .md\\:grid-line-xfull>*::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .md\\:grid-line-x-0>*::before {\n content: none;\n }\n\n .md\\:grid-line-y>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .md\\:grid-line-yfull>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .md\\:grid-line-y-0>*::after {\n content: none;\n }\n}\n\n@media (min-width: 900px) {\n .lg\\:grid-line-x>*::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .lg\\:grid-line-xfull>*::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .lg\\:grid-line-x-0>*::before {\n content: none;\n }\n\n .lg\\:grid-line-y>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .lg\\:grid-line-yfull>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .lg\\:grid-line-y-0>*::after {\n content: none;\n }\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: \'\';\n }\n}\n\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n\n.space-y-12> :not([hidden])~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-error {\n background-color: var(--red-200);\n}\n\n.bg-success {\n background-color: var(--green-200);\n}\n\n.bg-warning {\n background-color: var(--yellow-200);\n}\n\n.p-16 {\n padding: 1rem;\n}\n\n.p-20 {\n padding: 1.25rem;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pr-12 {\n padding-right: 0.75rem;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n[class*=underline-] {\n text-decoration-line: underline;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}';export{o as eds_alert}
|
|
1
|
+
import{r as n,h as e,g as t}from"./p-cccacbd3.js";import{c as i}from"./p-112122d6.js";const r=i(["w-full bg-dark"],{variants:{intent:{default:"",warning:"bg-warning",error:"bg-error",success:"bg-success"},brd:{rounded:"rounded-lg border-inside after:border-softest after:rounded-lg",normal:""},direction:{vertical:"space-y-12",horizontal:"flex flex-row items-center justify-between gap-x-12"},withBtn:{false:"",true:""}},compoundVariants:[{direction:"horizontal",withBtn:!0,class:"px-20 pr-12 py-12"},{direction:"horizontal",withBtn:!1,class:"p-20"},{direction:"vertical",withBtn:!0,class:"p-16"},{direction:"vertical",withBtn:!1,class:"px-12 py-20"}],defaultVariants:{intent:"default",brd:"rounded",direction:"horizontal"}}),o=class{constructor(e){n(this,e),this.message=void 0,this.pressableLabel=void 0,this.pressableUrl=void 0,this.direction="horizontal",this.intent="default",this.brd="rounded",this.withBtn=!1}componentWillLoad(){this.withBtn=Boolean(this.pressableLabel)}componentDidLoad(){var n;const e=null===(n=this.el.shadowRoot)||void 0===n?void 0:n.querySelector("eds-link");e&&this.emitContext(e)}emitContext(n){const e=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});n.dispatchEvent(e)}render(){return e("div",{key:"90eae6088fb792c671eca1d74d9a6e7d212c2c1c",class:r({intent:this.intent,brd:this.brd,direction:this.direction,withBtn:this.withBtn}),role:"alert"},e("p",{key:"201a9e6352350dbe9d4f1ab137a669f212519ea5",class:"f-ui-01 py-8",innerHTML:this.message}),this.withBtn&&(this.pressableUrl?e("eds-link",{class:"eds-alert-link",label:this.pressableLabel,url:this.pressableUrl,intent:"secondary",external:!0}):null))}get el(){return t(this)}};o.style=':root {\n font-optical-sizing: auto;\n}\n\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/*\n:focus[data-focus-method="mouse"],\n:focus[data-focus-method="touch"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*,\n::before,\n::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box;\n /* 1 */\n border-width: 0;\n /* 2 */\n border-style: solid;\n /* 2 */\n border-color: currentColor;\n /* 2 */\n}\n\n::before,\n::after {}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n -moz-tab-size: 4;\n /* 3 */\n -o-tab-size: 4;\n tab-size: 4;\n /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n /* 4 */\n font-feature-settings: normal;\n /* 5 */\n font-variation-settings: normal;\n /* 6 */\n -webkit-tap-highlight-color: transparent;\n /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0;\n /* 1 */\n line-height: inherit;\n /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0;\n /* 1 */\n color: inherit;\n /* 2 */\n border-top-width: 1px;\n /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n /* 1 */\n font-feature-settings: normal;\n /* 2 */\n font-variation-settings: normal;\n /* 3 */\n font-size: 1em;\n /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0;\n /* 1 */\n border-color: inherit;\n /* 2 */\n border-collapse: collapse;\n /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit;\n /* 1 */\n font-feature-settings: inherit;\n /* 1 */\n font-variation-settings: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n font-weight: inherit;\n /* 1 */\n line-height: inherit;\n /* 1 */\n letter-spacing: inherit;\n /* 1 */\n color: inherit;\n /* 1 */\n margin: 0;\n /* 2 */\n padding: 0;\n /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type=\'search\'] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\ninput::-moz-placeholder,\ntextarea::-moz-placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block;\n /* 1 */\n vertical-align: middle;\n /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n:root {\n --inner-gutter: 8px;\n}\n\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n:root {}\n\n@media (min-width: 900px) {\n :root {}\n}\n\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n@media (min-width: 750px) {\n :root {}\n}\n\n@media (min-width: 900px) {\n :root {}\n}\n\n@media (min-width: 1024px) {\n :root {}\n}\n\n.f-ui-01 b,\n.f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n\n@media (min-width: 750px) {\n .md\\:grid-line-x>*::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .md\\:grid-line-xfull>*::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .md\\:grid-line-x-0>*::before {\n content: none;\n }\n\n .md\\:grid-line-y>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .md\\:grid-line-yfull>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .md\\:grid-line-y-0>*::after {\n content: none;\n }\n}\n\n@media (min-width: 900px) {\n .lg\\:grid-line-x>*::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .lg\\:grid-line-xfull>*::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .lg\\:grid-line-x-0>*::before {\n content: none;\n }\n\n .lg\\:grid-line-y>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .lg\\:grid-line-yfull>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .lg\\:grid-line-y-0>*::after {\n content: none;\n }\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: \'\';\n }\n}\n\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n\n.space-y-12> :not([hidden])~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-error {\n background-color: var(--red-200);\n}\n\n.bg-success {\n background-color: var(--green-200);\n}\n\n.bg-warning {\n background-color: var(--yellow-200);\n}\n\n.p-16 {\n padding: 1rem;\n}\n\n.p-20 {\n padding: 1.25rem;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pr-12 {\n padding-right: 0.75rem;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n[class*=underline-] {\n text-decoration-line: underline;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}';export{o as eds_alert}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-cccacbd3.js";const a=class{constructor(t){e(this,t),this.applications=void 0}getParsedApplications(){let e=[];if("string"==typeof this.applications)try{e=JSON.parse(this.applications||"[]")}catch(t){console.error("Invalid applications trl JSON",t),e=[]}else Array.isArray(this.applications)&&(e=this.applications);return e}calculateProgress(e){return Math.ceil(e/9*100)}render(){const e=this.getParsedApplications().map((e=>({Application:e.name,"Current TRL Stage":`TRL ${e.currentTrl}`,Progress:t("div",{class:"w-[200px]"},t("eds-progress-bar",{value:this.calculateProgress(e.currentTrl)}))})));return t("div",{key:"7f2775e107e053cf1e8091f97915e6bc372c3954",class:"container mx-auto px-4 py-8"},t("eds-table",{key:"9576b1c5dc72335ef0f7158fa4eaa44835acd8db","table-data":JSON.stringify(e),config:JSON.stringify({Application:{format:"code"},"Current TRL Stage":{format:"text"}}),"rows-per-page":"2","pagination-enabled":"true","search-enabled":"true","column-size":"default"}))}};export{a as eds_trl}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as r}from"./p-cccacbd3.js";import{c as a}from"./p-5d046674.js";const c=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"8632a351612a4be6e47d4ff483717a2bda99a008",class:this.class,innerHTML:a})}};export{c as eds_icon_chevron_right}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as n,h as t,H as o}from"./p-cccacbd3.js";import{t as r}from"./p-22f9e720.js";function i(e){if(!(this instanceof i))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if("string"!=typeof e&&!c(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(c(e)){const n="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(const t of n)if(!e[t])throw new Error(`The configuration object is missing the required '${t}' property.`)}var n,t,o=this,r=[],s={enable:!0,callbackList:[],interval:5};o.didInitialize=!1;var u=!0,l=U(console.info),f=U(console.warn);function d(){return void 0!==o.authServerUrl?"/"==o.authServerUrl.charAt(o.authServerUrl.length-1)?o.authServerUrl+"realms/"+encodeURIComponent(o.realm):o.authServerUrl+"/realms/"+encodeURIComponent(o.realm):void 0}function p(e,n){var t=e.code,r=e.error,i=e.prompt,a=(new Date).getTime();if(e.kc_action_status&&o.onActionUpdate&&o.onActionUpdate(e.kc_action_status,e.kc_action),r)if("none"!=i)if(e.error_description&&"authentication_expired"===e.error_description)o.login(e.loginOptions);else{var c={error:r,error_description:e.error_description};o.onAuthError&&o.onAuthError(c),n&&n.setError(c)}else n&&n.setSuccess();else if("standard"!=o.flow&&(e.access_token||e.id_token)&&p(e.access_token,null,e.id_token,!0),"implicit"!=o.flow&&t){var s="code="+t+"&grant_type=authorization_code",f=o.endpoints.token(),d=new XMLHttpRequest;d.open("POST",f,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s+="&client_id="+encodeURIComponent(o.clientId),s+="&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(s+="&code_verifier="+e.pkceCodeVerifier),d.withCredentials=!0,d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status){var e=JSON.parse(d.responseText);p(e.access_token,e.refresh_token,e.id_token,"standard"===o.flow),b()}else o.onAuthError&&o.onAuthError(),n&&n.setError()},d.send(s)}function p(t,r,i,c){w(t,r,i,a=(a+(new Date).getTime())/2),u&&o.idTokenParsed&&o.idTokenParsed.nonce!=e.storedNonce?(l("[KEYCLOAK] Invalid nonce, clearing token"),o.clearToken(),n&&n.setError()):c&&(o.onAuthSuccess&&o.onAuthSuccess(),n&&n.setSuccess())}}function h(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function w(e,n,t,r){if(o.tokenTimeoutHandle&&(clearTimeout(o.tokenTimeoutHandle),o.tokenTimeoutHandle=null),n?(o.refreshToken=n,o.refreshTokenParsed=a(n)):(delete o.refreshToken,delete o.refreshTokenParsed),t?(o.idToken=t,o.idTokenParsed=a(t)):(delete o.idToken,delete o.idTokenParsed),e){if(o.token=e,o.tokenParsed=a(e),o.sessionId=o.tokenParsed.sid,o.authenticated=!0,o.subject=o.tokenParsed.sub,o.realmAccess=o.tokenParsed.realm_access,o.resourceAccess=o.tokenParsed.resource_access,r&&(o.timeSkew=Math.floor(r/1e3)-o.tokenParsed.iat),null!=o.timeSkew&&(l("[KEYCLOAK] Estimated time difference between browser and server is "+o.timeSkew+" seconds"),o.onTokenExpired)){var i=1e3*(o.tokenParsed.exp-(new Date).getTime()/1e3+o.timeSkew);l("[KEYCLOAK] Token expires in "+Math.round(i/1e3)+" s"),i<=0?o.onTokenExpired():o.tokenTimeoutHandle=setTimeout(o.onTokenExpired,i)}}else delete o.token,delete o.tokenParsed,delete o.subject,delete o.realmAccess,delete o.resourceAccess,o.authenticated=!1}function v(){if("undefined"==typeof crypto||void 0===crypto.randomUUID)throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function m(e){var n=function(e){var n;switch(o.flow){case"standard":n=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":n=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":n=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"]}n.push("error"),n.push("error_description"),n.push("error_uri");var t,r,i=e.indexOf("?"),a=e.indexOf("#");if("query"===o.responseMode&&-1!==i?(t=e.substring(0,i),""!==(r=y(e.substring(i+1,-1!==a?a:e.length),n)).paramsString&&(t+="?"+r.paramsString),-1!==a&&(t+=e.substring(a))):"fragment"===o.responseMode&&-1!==a&&(t=e.substring(0,a),""!==(r=y(e.substring(a+1),n)).paramsString&&(t+="#"+r.paramsString)),r&&r.oauthParams)if("standard"===o.flow||"hybrid"===o.flow){if((r.oauthParams.code||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}else if("implicit"===o.flow&&(r.oauthParams.access_token||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}(e);if(n){var r=t.get(n.state);return r&&(n.valid=!0,n.redirectUri=r.redirectUri,n.storedNonce=r.nonce,n.prompt=r.prompt,n.pkceCodeVerifier=r.pkceCodeVerifier,n.loginOptions=r.loginOptions),n}}function y(e,n){for(var t=e.split("&"),o={paramsString:"",oauthParams:{}},r=0;r<t.length;r++){var i=t[r].indexOf("="),a=t[r].slice(0,i);-1!==n.indexOf(a)?o.oauthParams[a]=t[r].slice(i+1):(""!==o.paramsString&&(o.paramsString+="&"),o.paramsString+=t[r])}return o}function g(){var e={setSuccess:function(n){e.resolve(n)},setError:function(n){e.reject(n)}};return e.promise=new Promise((function(n,t){e.resolve=n,e.reject=t})),e}function k(){var e=g();if(!s.enable)return e.setSuccess(),e.promise;if(s.iframe)return e.setSuccess(),e.promise;var n=document.createElement("iframe");s.iframe=n,n.onload=function(){var n=o.endpoints.authorize();s.iframeOrigin="/"===n.charAt(0)?window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):n.substring(0,n.indexOf("/",8)),e.setSuccess()};var t=o.endpoints.checkSessionIframe();return n.setAttribute("src",t),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-session-iframe"),n.style.display="none",document.body.appendChild(n),window.addEventListener("message",(function(e){if(e.origin===s.iframeOrigin&&s.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&o.clearToken();for(var n=s.callbackList.splice(0,s.callbackList.length),t=n.length-1;t>=0;--t){var r=n[t];"error"==e.data?r.setError():r.setSuccess("unchanged"==e.data)}}}),!1),e.promise}function b(){s.enable&&o.token&&setTimeout((function(){_().then((function(e){e&&b()}))}),1e3*s.interval)}function _(){var e=g();if(s.iframe&&s.iframeOrigin){var n=o.clientId+" "+(o.sessionId?o.sessionId:"");s.callbackList.push(e),1==s.callbackList.length&&s.iframe.contentWindow.postMessage(n,s.iframeOrigin)}else e.setSuccess();return e.promise}function I(e){if(!e||"default"==e)return{login:async function(e){return window.location.assign(await o.createLoginUrl(e)),g().promise},logout:async function(e){if("GET"===(e?.logoutMethod??o.logoutMethod))return void window.location.replace(o.createLogoutUrl(e));const t=document.createElement("form");t.setAttribute("method","POST"),t.setAttribute("action",o.createLogoutUrl(e)),t.style.display="none";const r={id_token_hint:o.idToken,client_id:o.clientId,post_logout_redirect_uri:n.redirectUri(e,!1)};for(const[e,n]of Object.entries(r)){const o=document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("name",e),o.setAttribute("value",n),t.appendChild(o)}document.body.appendChild(t),t.submit()},register:async function(e){return window.location.assign(await o.createRegisterUrl(e)),g().promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";return window.location.href=e,g().promise},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:location.href}};if("cordova"==e){s.enable=!1;var t=function(e,n,t){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,n,t):window.open(e,n,t)},r=function(e){var n=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(n,t){return n[t]=e.cordovaOptions[t],n}),{}):{}}(e);return n.location="no",e&&"none"==e.prompt&&(n.hidden="yes"),function(e){return Object.keys(e).reduce((function(n,t){return n.push(t+"="+e[t]),n}),[]).join(",")}(n)},i=function(){return o.redirectUri||"http://localhost"};return{login:async function(e){var n=g(),a=r(e),c=await o.createLoginUrl(e),s=t(c,"_blank",a),u=!1,l=!1,f=function(){l=!0,s.close()};return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(p(m(e.url),n),f(),u=!0)})),s.addEventListener("loaderror",(function(e){u||(0==e.url.indexOf(i())?(p(m(e.url),n),f(),u=!0):(n.setError(),f()))})),s.addEventListener("exit",(function(){l||n.setError({reason:"closed_by_user"})})),n.promise},logout:function(e){var n,r=g(),a=o.createLogoutUrl(e),c=t(a,"_blank","location=no,hidden=yes,clearcache=yes");return c.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&c.close()})),c.addEventListener("loaderror",(function(e){0==e.url.indexOf(i())||(n=!0),c.close()})),c.addEventListener("exit",(function(){n?r.setError():(o.clearToken(),r.setSuccess())})),r.promise},register:async function(e){var n=g(),a=await o.createRegisterUrl(),c=r(e),s=t(a,"_blank",c);return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(s.close(),p(m(e.url),n))})),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";var n=t(e,"_blank","location=no");n.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&n.close()}))},redirectUri:function(){return i()}}}if("cordova-native"==e)return s.enable=!1,{login:async function(e){var n=g(),t=await o.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},logout:function(e){var n=g(),t=o.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),o.clearToken(),n.setSuccess()})),window.cordova.plugins.browsertab.openUrl(t),n.promise},register:async function(e){var n=g(),t=await o.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}globalThis.isSecureContext||f("[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\nContinuing to run your application insecurely will lead to unexpected behavior and breakage.\n\nFor more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"),o.init=function(r={}){if(o.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");if(o.didInitialize=!0,o.authenticated=!1,t=function(){try{return new S}catch(e){}return new O}(),n=["default","cordova","cordova-native"].indexOf(r.adapter)>-1?I(r.adapter):"object"==typeof r.adapter?r.adapter:window.Cordova||window.cordova?I("cordova"):I(),void 0!==r.useNonce&&(u=r.useNonce),void 0!==r.checkLoginIframe&&(s.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(s.interval=r.checkLoginIframeInterval),"login-required"===r.onLoad&&(o.loginRequired=!0),r.responseMode){if("query"!==r.responseMode&&"fragment"!==r.responseMode)throw"Invalid value for responseMode";o.responseMode=r.responseMode}if(r.flow){switch(r.flow){case"standard":o.responseType="code";break;case"implicit":o.responseType="id_token token";break;case"hybrid":o.responseType="code id_token token";break;default:throw"Invalid value for flow"}o.flow=r.flow}if(null!=r.timeSkew&&(o.timeSkew=r.timeSkew),r.redirectUri&&(o.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(o.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),o.silentCheckSsoFallback="boolean"!=typeof r.silentCheckSsoFallback||r.silentCheckSsoFallback,void 0!==r.pkceMethod){if("S256"!==r.pkceMethod&&!1!==r.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);o.pkceMethod=r.pkceMethod}else o.pkceMethod="S256";o.enableLogging="boolean"==typeof r.enableLogging&&r.enableLogging,o.logoutMethod="POST"===r.logoutMethod?"POST":"GET","string"==typeof r.scope&&(o.scope=r.scope),"string"==typeof r.acrValues&&(o.acrValues=r.acrValues),o.messageReceiveTimeout="number"==typeof r.messageReceiveTimeout&&r.messageReceiveTimeout>0?r.messageReceiveTimeout:1e4,o.responseMode||(o.responseMode="fragment"),o.responseType||(o.responseType="code",o.flow="standard");var i=g(),a=g();a.promise.then((function(){o.onReady&&o.onReady(o.authenticated),i.setSuccess(o.authenticated)})).catch((function(e){i.setError(e)}));var c=function(){var n,t=g();function r(e){o.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:{authorize:function(){return d()+"/protocol/openid-connect/auth"},token:function(){return d()+"/protocol/openid-connect/token"},logout:function(){return d()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return d()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return d()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return d()+"/protocol/openid-connect/registrations"},userinfo:function(){return d()+"/protocol/openid-connect/userinfo"}}}if("string"==typeof e&&(n=e),n)(a=new XMLHttpRequest).open("GET",n,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status||h(a)){var e=JSON.parse(a.responseText);o.authServerUrl=e["auth-server-url"],o.realm=e.realm,o.clientId=e.resource,r(null),t.setSuccess()}else t.setError()},a.send();else{o.clientId=e.clientId;var i,a,c=e.oidcProvider;c?"string"==typeof c?(i="/"==c.charAt(c.length-1)?c+".well-known/openid-configuration":c+"/.well-known/openid-configuration",(a=new XMLHttpRequest).open("GET",i,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){4==a.readyState&&(200==a.status||h(a)?(r(JSON.parse(a.responseText)),t.setSuccess()):t.setError())},a.send()):(r(c),t.setSuccess()):(o.authServerUrl=e.url,o.realm=e.realm,r(null),t.setSuccess())}return t.promise}();function l(){var e=function(e){e||(t.prompt="none"),r.locale&&(t.locale=r.locale),o.login(t).then((function(){a.setSuccess()})).catch((function(e){a.setError(e)}))},n=async function(){var e=document.createElement("iframe"),n=await o.createLoginUrl({prompt:"none",redirectUri:o.silentCheckSsoRedirectUri});e.setAttribute("src",n),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var t=function(n){n.origin===window.location.origin&&e.contentWindow===n.source&&(p(m(n.data),a),document.body.removeChild(e),window.removeEventListener("message",t))};window.addEventListener("message",t)},t={};switch(r.onLoad){case"check-sso":s.enable?k().then((function(){_().then((function(t){t?a.setSuccess():o.silentCheckSsoRedirectUri?n():e(!1)})).catch((function(e){a.setError(e)}))})):o.silentCheckSsoRedirectUri?n():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function v(){var e=m(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return k().then((function(){p(e,a)})).catch((function(e){a.setError(e)}));r.token&&r.refreshToken?(w(r.token,r.refreshToken,r.idToken),s.enable?k().then((function(){_().then((function(e){e?(o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess(),b()):a.setSuccess()})).catch((function(e){a.setError(e)}))})):o.updateToken(-1).then((function(){o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess()})).catch((function(e){o.onAuthError&&o.onAuthError(),r.onLoad?l():a.setError(e)}))):r.onLoad?l():a.setSuccess()}return c.then((function(){(function(){var e=g();if((s.enable||o.silentCheckSsoRedirectUri)&&"function"==typeof o.endpoints.thirdPartyCookiesIframe){var n=document.createElement("iframe");n.setAttribute("src",o.endpoints.thirdPartyCookiesIframe()),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-3p-check-iframe"),n.style.display="none",document.body.appendChild(n);var t=function(r){n.contentWindow===r.source&&("supported"!==r.data&&"unsupported"!==r.data||("unsupported"===r.data&&(f("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"),s.enable=!1,o.silentCheckSsoFallback&&(o.silentCheckSsoRedirectUri=!1)),document.body.removeChild(n),window.removeEventListener("message",t),e.setSuccess()))};window.addEventListener("message",t,!1)}else e.setSuccess();return function(e,n){var t=null,o=new Promise((function(e,o){t=setTimeout((function(){o({error:"Timeout when waiting for 3rd party check iframe message."})}),n)}));return Promise.race([e,o]).finally((function(){clearTimeout(t)}))}(e.promise,o.messageReceiveTimeout)})().then(v).catch((function(e){i.setError(e)}))})),c.catch((function(e){i.setError(e)})),i.promise},o.login=function(e){return n.login(e)},o.createLoginUrl=async function(e){var r,i=v(),a=v(),c=n.redirectUri(e),s={state:i,nonce:a,redirectUri:encodeURIComponent(c),loginOptions:e};e&&e.prompt&&(s.prompt=e.prompt),r=e&&"register"==e.action?o.endpoints.register():o.endpoints.authorize();var l=e&&e.scope||o.scope;l?-1===l.indexOf("openid")&&(l="openid "+l):l="openid";var f=r+"?client_id="+encodeURIComponent(o.clientId)+"&redirect_uri="+encodeURIComponent(c)+"&state="+encodeURIComponent(i)+"&response_mode="+encodeURIComponent(o.responseMode)+"&response_type="+encodeURIComponent(o.responseType)+"&scope="+encodeURIComponent(l);if(u&&(f=f+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(f+="&prompt="+encodeURIComponent(e.prompt)),e&&"number"==typeof e.maxAge&&(f+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(f+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(f+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(f+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(f+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr){var d=JSON.stringify({id_token:{acr:e.acr}});f+="&claims="+encodeURIComponent(d)}if((e&&e.acrValues||o.acrValues)&&(f+="&acr_values="+encodeURIComponent(e.acrValues||o.acrValues)),o.pkceMethod)try{const e=function(e,n){for(var t=function(e){if("undefined"==typeof crypto||void 0===crypto.getRandomValues)throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(e))}(e),o=new Array(e),r=0;r<e;r++)o[r]=n.charCodeAt(t[r]%62);return String.fromCharCode.apply(null,o)}(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"),n=await async function(e,n){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return function(e){const n=String.fromCodePoint(...e);return btoa(n)}(new Uint8Array(await async function(e){const n=(new TextEncoder).encode(e);if("undefined"==typeof crypto||void 0===crypto.subtle)throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",n)}(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(o.pkceMethod,e);s.pkceCodeVerifier=e,f+="&code_challenge="+n,f+="&code_challenge_method="+o.pkceMethod}catch(e){throw new Error("Failed to generate PKCE challenge.",{cause:e})}return t.add(s),f},o.logout=function(e){return n.logout(e)},o.createLogoutUrl=function(e){if("POST"===(e?.logoutMethod??o.logoutMethod))return o.endpoints.logout();var t=o.endpoints.logout()+"?client_id="+encodeURIComponent(o.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(e,!1));return o.idToken&&(t+="&id_token_hint="+encodeURIComponent(o.idToken)),t},o.register=function(e){return n.register(e)},o.createRegisterUrl=async function(e){return e||(e={}),e.action="register",await o.createLoginUrl(e)},o.createAccountUrl=function(e){var t=d(),r=void 0;return void 0!==t&&(r=t+"/account?referrer="+encodeURIComponent(o.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(e))),r},o.accountManagement=function(){return n.accountManagement()},o.hasRealmRole=function(e){var n=o.realmAccess;return!!n&&n.roles.indexOf(e)>=0},o.hasResourceRole=function(e,n){if(!o.resourceAccess)return!1;var t=o.resourceAccess[n||o.clientId];return!!t&&t.roles.indexOf(e)>=0},o.loadUserProfile=function(){var e=d()+"/account",n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.profile=JSON.parse(n.responseText),t.setSuccess(o.profile)):t.setError())},n.send(),t.promise},o.loadUserInfo=function(){var e=o.endpoints.userinfo(),n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.userInfo=JSON.parse(n.responseText),t.setSuccess(o.userInfo)):t.setError())},n.send(),t.promise},o.isTokenExpired=function(e){if(!o.tokenParsed||!o.refreshToken&&"implicit"!=o.flow)throw"Not authenticated";if(null==o.timeSkew)return l("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var n=o.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+o.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";n-=e}return n<0},o.updateToken=function(e){var n=g();if(!o.refreshToken)return n.setError(),n.promise;e=e||5;var t=function(){var t=!1;if(-1==e?(t=!0,l("[KEYCLOAK] Refreshing token: forced refresh")):o.tokenParsed&&!o.isTokenExpired(e)||(t=!0,l("[KEYCLOAK] Refreshing token: token expired")),t){var i="grant_type=refresh_token&refresh_token="+o.refreshToken,a=o.endpoints.token();if(r.push(n),1==r.length){var c=new XMLHttpRequest;c.open("POST",a,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.withCredentials=!0,i+="&client_id="+encodeURIComponent(o.clientId);var s=(new Date).getTime();c.onreadystatechange=function(){if(4==c.readyState)if(200==c.status){l("[KEYCLOAK] Token refreshed"),s=(s+(new Date).getTime())/2;var e=JSON.parse(c.responseText);w(e.access_token,e.refresh_token,e.id_token,s),o.onAuthRefreshSuccess&&o.onAuthRefreshSuccess();for(var n=r.pop();null!=n;n=r.pop())n.setSuccess(!0)}else for(f("[KEYCLOAK] Failed to refresh token"),400==c.status&&o.clearToken(),o.onAuthRefreshError&&o.onAuthRefreshError(),n=r.pop();null!=n;n=r.pop())n.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")},c.send(i)}}else n.setSuccess(!1)};return s.enable?_().then((function(){t()})).catch((function(e){n.setError(e)})):t(),n.promise},o.clearToken=function(){o.token&&(w(null,null,null),o.onAuthLogout&&o.onAuthLogout(),o.loginRequired&&o.login())};const C="kc-callback-";var S=function(){if(!(this instanceof S))return new S;function e(){const e=Date.now();for(const[o,r]of n()){const n=t(r);(null===n||n<e)&&localStorage.removeItem(o)}}function n(){return Object.entries(localStorage).filter((([e])=>e.startsWith(C)))}function t(e){let n;try{n=JSON.parse(e)}catch(e){return null}return c(n)&&"expires"in n&&"number"==typeof n.expires?n.expires:null}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(n){if(n){var t=C+n,o=localStorage.getItem(t);return o&&(localStorage.removeItem(t),o=JSON.parse(o)),e(),o}},this.add=function(t){e();const o=C+t.state,r=JSON.stringify({...t,expires:Date.now()+36e5});try{localStorage.setItem(o,r)}catch(e){!function(){for(const[e]of n())localStorage.removeItem(e)}(),localStorage.setItem(o,r)}}},O=function(){if(!(this instanceof O))return new O;var e=this;e.get=function(e){if(e){var r=t(C+e);return o(C+e,"",n(-100)),r?JSON.parse(r):void 0}},e.add=function(e){o(C+e.state,JSON.stringify(e),n(60))},e.removeItem=function(e){o(e,"",n(-100))};var n=function(e){var n=new Date;return n.setTime(n.getTime()+60*e*1e3),n},t=function(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){for(var r=t[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(n))return r.substring(n.length,r.length)}return""},o=function(e,n,t){var o=e+"="+n+"; expires="+t.toUTCString()+"; ";document.cookie=o}};function U(e){return function(){o.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}function a(e){const[n,t]=e.split(".");if("string"!=typeof t)throw new Error("Unable to decode token, payload not found.");let o;try{o=function(e){let n=e.replaceAll("-","+").replaceAll("_","/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Input is not of the correct length.")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,n)=>{let t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return atob(n)}}(t)}catch(e){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:e})}try{return JSON.parse(o)}catch(e){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:e})}}function c(e){return"object"==typeof e&&null!==e}let s=null,u=null;const l=class{constructor(t){e(this,t),this.keycloak=n(this,"keycloak",7),this.auth=n(this,"auth",7),this.handleLogin=async()=>{if(!this.authenticated)try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.login()}()}catch(e){r.show(e.message,"error")}},this.handleLogout=async()=>{try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.logout()}()}catch(e){r.show(e.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null,this.serverAvailable=!1}async componentWillLoad(){this.keycloakUrl&&this.keycloakRealm&&this.keycloakClientId?(this.serverAvailable=await async function(e){try{const n=await fetch(e,{method:"HEAD",mode:"no-cors"});return n.ok||"opaque"===n.type}catch(e){return!1}}(`${this.keycloakUrl}/realms/${this.keycloakRealm}`),this.serverAvailable?await this.initAuth():r.show("Keycloak server is unavailable.","error")):console.error("Keycloak configuration props are missing.")}async initAuth(){try{const e=await function(e,n=!0){return u?(console.log("Keycloak already initialized, returning from cache"),u):(s||(s=new i({url:e.url,realm:e.realm,clientId:e.clientId})),u=s.init({onLoad:n?"check-sso":"login-required",checkLoginIframe:!1}).then((e=>e)).catch((e=>(console.error("Failed to initialize Keycloak:",e),!1))),u)}({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0);this.keycloak.emit({init:e}),(null==s?void 0:s.authenticated)&&(this.user=(null==s?void 0:s.authenticated)&&(null==s?void 0:s.idTokenParsed)?{fullname:s.idTokenParsed.name,email:s.idTokenParsed.email,lastname:s.idTokenParsed.family_name,firstname:s.idTokenParsed.given_name,username:s.idTokenParsed.preferred_username,background:"grey",token:s.token,sub:s.idTokenParsed.sub}:{},this.authenticated=!0,this.auth.emit({authenticated:this.authenticated,user:this.user}))}catch(e){r.show(e.message,"error")}}render(){return t("div",{key:"ac10895096f36f2fb3a79622972d5a8c519685eb",class:"block"},!this.authenticated&&t("eds-button",{key:"55aab5ee63214d6a1ccdefc303273df99aa309cf",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}},f=class{constructor(t){e(this,t),this.splash=n(this,"splash",7),this.inverse=!1,this.initPromise=void 0,this.isVisible=!0}componentWillLoad(){this.initPromise&&this.handleInitPromise(this.initPromise)}async watchInitPromise(e){e&&this.handleInitPromise(e)}async handleInitPromise(e){try{await e,this.hideSplash()}catch(e){this.splash.emit({type:"error",message:e.message||"Unknown error"})}}handleHideSplash(){this.hideSplash()}hideSplash(){this.isVisible=!1,this.splash.emit({type:"hidden",message:"Splash screen hidden successfully"})}render(){return this.isVisible?t(o,null,t("div",{class:"splash-overlay",style:{background:this.inverse?"black":"var(--grey-200)"}},t("div",{class:"logo-container"},t("eds-logo",this.inverse?{orientation:"vertical",type:"color-white"}:{orientation:"vertical",type:"color"})),t("div",{class:"content-container"},t("eds-spinner",{size:"1rem",thickness:"3px","border-color":"var(--grey-400)","bottom-color":"var(--grey-900)",background:"none",fullscreen:!1})))):null}static get watchers(){return{initPromise:["watchInitPromise"]}}};f.style=".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}";export{l as eds_login,f as eds_splash_screen}
|
|
1
|
+
import{r as e,c as n,h as t,H as o}from"./p-cccacbd3.js";import{t as r}from"./p-22f9e720.js";function i(e){if(!(this instanceof i))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");if("string"!=typeof e&&!c(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(c(e)){const n="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(const t of n)if(!e[t])throw new Error(`The configuration object is missing the required '${t}' property.`)}var n,t,o=this,r=[],s={enable:!0,callbackList:[],interval:5};o.didInitialize=!1;var u=!0,l=U(console.info),f=U(console.warn);function d(){return void 0!==o.authServerUrl?"/"==o.authServerUrl.charAt(o.authServerUrl.length-1)?o.authServerUrl+"realms/"+encodeURIComponent(o.realm):o.authServerUrl+"/realms/"+encodeURIComponent(o.realm):void 0}function p(e,n){var t=e.code,r=e.error,i=e.prompt,a=(new Date).getTime();if(e.kc_action_status&&o.onActionUpdate&&o.onActionUpdate(e.kc_action_status,e.kc_action),r)if("none"!=i)if(e.error_description&&"authentication_expired"===e.error_description)o.login(e.loginOptions);else{var c={error:r,error_description:e.error_description};o.onAuthError&&o.onAuthError(c),n&&n.setError(c)}else n&&n.setSuccess();else if("standard"!=o.flow&&(e.access_token||e.id_token)&&p(e.access_token,null,e.id_token,!0),"implicit"!=o.flow&&t){var s="code="+t+"&grant_type=authorization_code",f=o.endpoints.token(),d=new XMLHttpRequest;d.open("POST",f,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s+="&client_id="+encodeURIComponent(o.clientId),s+="&redirect_uri="+e.redirectUri,e.pkceCodeVerifier&&(s+="&code_verifier="+e.pkceCodeVerifier),d.withCredentials=!0,d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status){var e=JSON.parse(d.responseText);p(e.access_token,e.refresh_token,e.id_token,"standard"===o.flow),b()}else o.onAuthError&&o.onAuthError(),n&&n.setError()},d.send(s)}function p(t,r,i,c){w(t,r,i,a=(a+(new Date).getTime())/2),u&&o.idTokenParsed&&o.idTokenParsed.nonce!=e.storedNonce?(l("[KEYCLOAK] Invalid nonce, clearing token"),o.clearToken(),n&&n.setError()):c&&(o.onAuthSuccess&&o.onAuthSuccess(),n&&n.setSuccess())}}function h(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function w(e,n,t,r){if(o.tokenTimeoutHandle&&(clearTimeout(o.tokenTimeoutHandle),o.tokenTimeoutHandle=null),n?(o.refreshToken=n,o.refreshTokenParsed=a(n)):(delete o.refreshToken,delete o.refreshTokenParsed),t?(o.idToken=t,o.idTokenParsed=a(t)):(delete o.idToken,delete o.idTokenParsed),e){if(o.token=e,o.tokenParsed=a(e),o.sessionId=o.tokenParsed.sid,o.authenticated=!0,o.subject=o.tokenParsed.sub,o.realmAccess=o.tokenParsed.realm_access,o.resourceAccess=o.tokenParsed.resource_access,r&&(o.timeSkew=Math.floor(r/1e3)-o.tokenParsed.iat),null!=o.timeSkew&&(l("[KEYCLOAK] Estimated time difference between browser and server is "+o.timeSkew+" seconds"),o.onTokenExpired)){var i=1e3*(o.tokenParsed.exp-(new Date).getTime()/1e3+o.timeSkew);l("[KEYCLOAK] Token expires in "+Math.round(i/1e3)+" s"),i<=0?o.onTokenExpired():o.tokenTimeoutHandle=setTimeout(o.onTokenExpired,i)}}else delete o.token,delete o.tokenParsed,delete o.subject,delete o.realmAccess,delete o.resourceAccess,o.authenticated=!1}function v(){if("undefined"==typeof crypto||void 0===crypto.randomUUID)throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}function m(e){var n=function(e){var n;switch(o.flow){case"standard":n=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":n=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":n=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"]}n.push("error"),n.push("error_description"),n.push("error_uri");var t,r,i=e.indexOf("?"),a=e.indexOf("#");if("query"===o.responseMode&&-1!==i?(t=e.substring(0,i),""!==(r=y(e.substring(i+1,-1!==a?a:e.length),n)).paramsString&&(t+="?"+r.paramsString),-1!==a&&(t+=e.substring(a))):"fragment"===o.responseMode&&-1!==a&&(t=e.substring(0,a),""!==(r=y(e.substring(a+1),n)).paramsString&&(t+="#"+r.paramsString)),r&&r.oauthParams)if("standard"===o.flow||"hybrid"===o.flow){if((r.oauthParams.code||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}else if("implicit"===o.flow&&(r.oauthParams.access_token||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=t,r.oauthParams}(e);if(n){var r=t.get(n.state);return r&&(n.valid=!0,n.redirectUri=r.redirectUri,n.storedNonce=r.nonce,n.prompt=r.prompt,n.pkceCodeVerifier=r.pkceCodeVerifier,n.loginOptions=r.loginOptions),n}}function y(e,n){for(var t=e.split("&"),o={paramsString:"",oauthParams:{}},r=0;r<t.length;r++){var i=t[r].indexOf("="),a=t[r].slice(0,i);-1!==n.indexOf(a)?o.oauthParams[a]=t[r].slice(i+1):(""!==o.paramsString&&(o.paramsString+="&"),o.paramsString+=t[r])}return o}function g(){var e={setSuccess:function(n){e.resolve(n)},setError:function(n){e.reject(n)}};return e.promise=new Promise((function(n,t){e.resolve=n,e.reject=t})),e}function k(){var e=g();if(!s.enable)return e.setSuccess(),e.promise;if(s.iframe)return e.setSuccess(),e.promise;var n=document.createElement("iframe");s.iframe=n,n.onload=function(){var n=o.endpoints.authorize();s.iframeOrigin="/"===n.charAt(0)?window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):n.substring(0,n.indexOf("/",8)),e.setSuccess()};var t=o.endpoints.checkSessionIframe();return n.setAttribute("src",t),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-session-iframe"),n.style.display="none",document.body.appendChild(n),window.addEventListener("message",(function(e){if(e.origin===s.iframeOrigin&&s.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&o.clearToken();for(var n=s.callbackList.splice(0,s.callbackList.length),t=n.length-1;t>=0;--t){var r=n[t];"error"==e.data?r.setError():r.setSuccess("unchanged"==e.data)}}}),!1),e.promise}function b(){s.enable&&o.token&&setTimeout((function(){_().then((function(e){e&&b()}))}),1e3*s.interval)}function _(){var e=g();if(s.iframe&&s.iframeOrigin){var n=o.clientId+" "+(o.sessionId?o.sessionId:"");s.callbackList.push(e),1==s.callbackList.length&&s.iframe.contentWindow.postMessage(n,s.iframeOrigin)}else e.setSuccess();return e.promise}function I(e){if(!e||"default"==e)return{login:async function(e){return window.location.assign(await o.createLoginUrl(e)),g().promise},logout:async function(e){if("GET"===(e?.logoutMethod??o.logoutMethod))return void window.location.replace(o.createLogoutUrl(e));const t=document.createElement("form");t.setAttribute("method","POST"),t.setAttribute("action",o.createLogoutUrl(e)),t.style.display="none";const r={id_token_hint:o.idToken,client_id:o.clientId,post_logout_redirect_uri:n.redirectUri(e,!1)};for(const[e,n]of Object.entries(r)){const o=document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("name",e),o.setAttribute("value",n),t.appendChild(o)}document.body.appendChild(t),t.submit()},register:async function(e){return window.location.assign(await o.createRegisterUrl(e)),g().promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";return window.location.href=e,g().promise},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:location.href}};if("cordova"==e){s.enable=!1;var t=function(e,n,t){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,n,t):window.open(e,n,t)},r=function(e){var n=function(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(n,t){return n[t]=e.cordovaOptions[t],n}),{}):{}}(e);return n.location="no",e&&"none"==e.prompt&&(n.hidden="yes"),function(e){return Object.keys(e).reduce((function(n,t){return n.push(t+"="+e[t]),n}),[]).join(",")}(n)},i=function(){return o.redirectUri||"http://localhost"};return{login:async function(e){var n=g(),a=r(e),c=await o.createLoginUrl(e),s=t(c,"_blank",a),u=!1,l=!1,f=function(){l=!0,s.close()};return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(p(m(e.url),n),f(),u=!0)})),s.addEventListener("loaderror",(function(e){u||(0==e.url.indexOf(i())?(p(m(e.url),n),f(),u=!0):(n.setError(),f()))})),s.addEventListener("exit",(function(){l||n.setError({reason:"closed_by_user"})})),n.promise},logout:function(e){var n,r=g(),a=o.createLogoutUrl(e),c=t(a,"_blank","location=no,hidden=yes,clearcache=yes");return c.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&c.close()})),c.addEventListener("loaderror",(function(e){0==e.url.indexOf(i())||(n=!0),c.close()})),c.addEventListener("exit",(function(){n?r.setError():(o.clearToken(),r.setSuccess())})),r.promise},register:async function(e){var n=g(),a=await o.createRegisterUrl(),c=r(e),s=t(a,"_blank",c);return s.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&(s.close(),p(m(e.url),n))})),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";var n=t(e,"_blank","location=no");n.addEventListener("loadstart",(function(e){0==e.url.indexOf(i())&&n.close()}))},redirectUri:function(){return i()}}}if("cordova-native"==e)return s.enable=!1,{login:async function(e){var n=g(),t=await o.createLoginUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},logout:function(e){var n=g(),t=o.createLogoutUrl(e);return universalLinks.subscribe("keycloak",(function(){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),o.clearToken(),n.setSuccess()})),window.cordova.plugins.browsertab.openUrl(t),n.promise},register:async function(e){var n=g(),t=await o.createRegisterUrl(e);return universalLinks.subscribe("keycloak",(function(e){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p(m(e.url),n)})),window.cordova.plugins.browsertab.openUrl(t),n.promise},accountManagement:function(){var e=o.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(e)},redirectUri:function(e){return e&&e.redirectUri?e.redirectUri:o.redirectUri?o.redirectUri:"http://localhost"}};throw"invalid adapter type: "+e}globalThis.isSecureContext||f("[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\nContinuing to run your application insecurely will lead to unexpected behavior and breakage.\n\nFor more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"),o.init=function(r={}){if(o.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");if(o.didInitialize=!0,o.authenticated=!1,t=function(){try{return new S}catch(e){}return new O}(),n=["default","cordova","cordova-native"].indexOf(r.adapter)>-1?I(r.adapter):"object"==typeof r.adapter?r.adapter:window.Cordova||window.cordova?I("cordova"):I(),void 0!==r.useNonce&&(u=r.useNonce),void 0!==r.checkLoginIframe&&(s.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(s.interval=r.checkLoginIframeInterval),"login-required"===r.onLoad&&(o.loginRequired=!0),r.responseMode){if("query"!==r.responseMode&&"fragment"!==r.responseMode)throw"Invalid value for responseMode";o.responseMode=r.responseMode}if(r.flow){switch(r.flow){case"standard":o.responseType="code";break;case"implicit":o.responseType="id_token token";break;case"hybrid":o.responseType="code id_token token";break;default:throw"Invalid value for flow"}o.flow=r.flow}if(null!=r.timeSkew&&(o.timeSkew=r.timeSkew),r.redirectUri&&(o.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(o.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),o.silentCheckSsoFallback="boolean"!=typeof r.silentCheckSsoFallback||r.silentCheckSsoFallback,void 0!==r.pkceMethod){if("S256"!==r.pkceMethod&&!1!==r.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);o.pkceMethod=r.pkceMethod}else o.pkceMethod="S256";o.enableLogging="boolean"==typeof r.enableLogging&&r.enableLogging,o.logoutMethod="POST"===r.logoutMethod?"POST":"GET","string"==typeof r.scope&&(o.scope=r.scope),"string"==typeof r.acrValues&&(o.acrValues=r.acrValues),o.messageReceiveTimeout="number"==typeof r.messageReceiveTimeout&&r.messageReceiveTimeout>0?r.messageReceiveTimeout:1e4,o.responseMode||(o.responseMode="fragment"),o.responseType||(o.responseType="code",o.flow="standard");var i=g(),a=g();a.promise.then((function(){o.onReady&&o.onReady(o.authenticated),i.setSuccess(o.authenticated)})).catch((function(e){i.setError(e)}));var c=function(){var n,t=g();function r(e){o.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint}}:{authorize:function(){return d()+"/protocol/openid-connect/auth"},token:function(){return d()+"/protocol/openid-connect/token"},logout:function(){return d()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){return d()+"/protocol/openid-connect/login-status-iframe.html"},thirdPartyCookiesIframe:function(){return d()+"/protocol/openid-connect/3p-cookies/step1.html"},register:function(){return d()+"/protocol/openid-connect/registrations"},userinfo:function(){return d()+"/protocol/openid-connect/userinfo"}}}if("string"==typeof e&&(n=e),n)(a=new XMLHttpRequest).open("GET",n,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status||h(a)){var e=JSON.parse(a.responseText);o.authServerUrl=e["auth-server-url"],o.realm=e.realm,o.clientId=e.resource,r(null),t.setSuccess()}else t.setError()},a.send();else{o.clientId=e.clientId;var i,a,c=e.oidcProvider;c?"string"==typeof c?(i="/"==c.charAt(c.length-1)?c+".well-known/openid-configuration":c+"/.well-known/openid-configuration",(a=new XMLHttpRequest).open("GET",i,!0),a.setRequestHeader("Accept","application/json"),a.onreadystatechange=function(){4==a.readyState&&(200==a.status||h(a)?(r(JSON.parse(a.responseText)),t.setSuccess()):t.setError())},a.send()):(r(c),t.setSuccess()):(o.authServerUrl=e.url,o.realm=e.realm,r(null),t.setSuccess())}return t.promise}();function l(){var e=function(e){e||(t.prompt="none"),r.locale&&(t.locale=r.locale),o.login(t).then((function(){a.setSuccess()})).catch((function(e){a.setError(e)}))},n=async function(){var e=document.createElement("iframe"),n=await o.createLoginUrl({prompt:"none",redirectUri:o.silentCheckSsoRedirectUri});e.setAttribute("src",n),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);var t=function(n){n.origin===window.location.origin&&e.contentWindow===n.source&&(p(m(n.data),a),document.body.removeChild(e),window.removeEventListener("message",t))};window.addEventListener("message",t)},t={};switch(r.onLoad){case"check-sso":s.enable?k().then((function(){_().then((function(t){t?a.setSuccess():o.silentCheckSsoRedirectUri?n():e(!1)})).catch((function(e){a.setError(e)}))})):o.silentCheckSsoRedirectUri?n():e(!1);break;case"login-required":e(!0);break;default:throw"Invalid value for onLoad"}}function v(){var e=m(window.location.href);if(e&&window.history.replaceState(window.history.state,null,e.newUrl),e&&e.valid)return k().then((function(){p(e,a)})).catch((function(e){a.setError(e)}));r.token&&r.refreshToken?(w(r.token,r.refreshToken,r.idToken),s.enable?k().then((function(){_().then((function(e){e?(o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess(),b()):a.setSuccess()})).catch((function(e){a.setError(e)}))})):o.updateToken(-1).then((function(){o.onAuthSuccess&&o.onAuthSuccess(),a.setSuccess()})).catch((function(e){o.onAuthError&&o.onAuthError(),r.onLoad?l():a.setError(e)}))):r.onLoad?l():a.setSuccess()}return c.then((function(){(function(){var e=g();if((s.enable||o.silentCheckSsoRedirectUri)&&"function"==typeof o.endpoints.thirdPartyCookiesIframe){var n=document.createElement("iframe");n.setAttribute("src",o.endpoints.thirdPartyCookiesIframe()),n.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),n.setAttribute("title","keycloak-3p-check-iframe"),n.style.display="none",document.body.appendChild(n);var t=function(r){n.contentWindow===r.source&&("supported"!==r.data&&"unsupported"!==r.data||("unsupported"===r.data&&(f("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"),s.enable=!1,o.silentCheckSsoFallback&&(o.silentCheckSsoRedirectUri=!1)),document.body.removeChild(n),window.removeEventListener("message",t),e.setSuccess()))};window.addEventListener("message",t,!1)}else e.setSuccess();return function(e,n){var t=null,o=new Promise((function(e,o){t=setTimeout((function(){o({error:"Timeout when waiting for 3rd party check iframe message."})}),n)}));return Promise.race([e,o]).finally((function(){clearTimeout(t)}))}(e.promise,o.messageReceiveTimeout)})().then(v).catch((function(e){i.setError(e)}))})),c.catch((function(e){i.setError(e)})),i.promise},o.login=function(e){return n.login(e)},o.createLoginUrl=async function(e){var r,i=v(),a=v(),c=n.redirectUri(e),s={state:i,nonce:a,redirectUri:encodeURIComponent(c),loginOptions:e};e&&e.prompt&&(s.prompt=e.prompt),r=e&&"register"==e.action?o.endpoints.register():o.endpoints.authorize();var l=e&&e.scope||o.scope;l?-1===l.indexOf("openid")&&(l="openid "+l):l="openid";var f=r+"?client_id="+encodeURIComponent(o.clientId)+"&redirect_uri="+encodeURIComponent(c)+"&state="+encodeURIComponent(i)+"&response_mode="+encodeURIComponent(o.responseMode)+"&response_type="+encodeURIComponent(o.responseType)+"&scope="+encodeURIComponent(l);if(u&&(f=f+"&nonce="+encodeURIComponent(a)),e&&e.prompt&&(f+="&prompt="+encodeURIComponent(e.prompt)),e&&"number"==typeof e.maxAge&&(f+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(f+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(f+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.action&&"register"!=e.action&&(f+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(f+="&ui_locales="+encodeURIComponent(e.locale)),e&&e.acr){var d=JSON.stringify({id_token:{acr:e.acr}});f+="&claims="+encodeURIComponent(d)}if((e&&e.acrValues||o.acrValues)&&(f+="&acr_values="+encodeURIComponent(e.acrValues||o.acrValues)),o.pkceMethod)try{const e=function(e,n){for(var t=function(e){if("undefined"==typeof crypto||void 0===crypto.getRandomValues)throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(e))}(e),o=new Array(e),r=0;r<e;r++)o[r]=n.charCodeAt(t[r]%62);return String.fromCharCode.apply(null,o)}(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"),n=await async function(e,n){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);return function(e){const n=String.fromCodePoint(...e);return btoa(n)}(new Uint8Array(await async function(e){const n=(new TextEncoder).encode(e);if("undefined"==typeof crypto||void 0===crypto.subtle)throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",n)}(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}(o.pkceMethod,e);s.pkceCodeVerifier=e,f+="&code_challenge="+n,f+="&code_challenge_method="+o.pkceMethod}catch(e){throw new Error("Failed to generate PKCE challenge.",{cause:e})}return t.add(s),f},o.logout=function(e){return n.logout(e)},o.createLogoutUrl=function(e){if("POST"===(e?.logoutMethod??o.logoutMethod))return o.endpoints.logout();var t=o.endpoints.logout()+"?client_id="+encodeURIComponent(o.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(e,!1));return o.idToken&&(t+="&id_token_hint="+encodeURIComponent(o.idToken)),t},o.register=function(e){return n.register(e)},o.createRegisterUrl=async function(e){return e||(e={}),e.action="register",await o.createLoginUrl(e)},o.createAccountUrl=function(e){var t=d(),r=void 0;return void 0!==t&&(r=t+"/account?referrer="+encodeURIComponent(o.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(e))),r},o.accountManagement=function(){return n.accountManagement()},o.hasRealmRole=function(e){var n=o.realmAccess;return!!n&&n.roles.indexOf(e)>=0},o.hasResourceRole=function(e,n){if(!o.resourceAccess)return!1;var t=o.resourceAccess[n||o.clientId];return!!t&&t.roles.indexOf(e)>=0},o.loadUserProfile=function(){var e=d()+"/account",n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.profile=JSON.parse(n.responseText),t.setSuccess(o.profile)):t.setError())},n.send(),t.promise},o.loadUserInfo=function(){var e=o.endpoints.userinfo(),n=new XMLHttpRequest;n.open("GET",e,!0),n.setRequestHeader("Accept","application/json"),n.setRequestHeader("Authorization","bearer "+o.token);var t=g();return n.onreadystatechange=function(){4==n.readyState&&(200==n.status?(o.userInfo=JSON.parse(n.responseText),t.setSuccess(o.userInfo)):t.setError())},n.send(),t.promise},o.isTokenExpired=function(e){if(!o.tokenParsed||!o.refreshToken&&"implicit"!=o.flow)throw"Not authenticated";if(null==o.timeSkew)return l("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var n=o.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+o.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";n-=e}return n<0},o.updateToken=function(e){var n=g();if(!o.refreshToken)return n.setError(),n.promise;e=e||5;var t=function(){var t=!1;if(-1==e?(t=!0,l("[KEYCLOAK] Refreshing token: forced refresh")):o.tokenParsed&&!o.isTokenExpired(e)||(t=!0,l("[KEYCLOAK] Refreshing token: token expired")),t){var i="grant_type=refresh_token&refresh_token="+o.refreshToken,a=o.endpoints.token();if(r.push(n),1==r.length){var c=new XMLHttpRequest;c.open("POST",a,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.withCredentials=!0,i+="&client_id="+encodeURIComponent(o.clientId);var s=(new Date).getTime();c.onreadystatechange=function(){if(4==c.readyState)if(200==c.status){l("[KEYCLOAK] Token refreshed"),s=(s+(new Date).getTime())/2;var e=JSON.parse(c.responseText);w(e.access_token,e.refresh_token,e.id_token,s),o.onAuthRefreshSuccess&&o.onAuthRefreshSuccess();for(var n=r.pop();null!=n;n=r.pop())n.setSuccess(!0)}else for(f("[KEYCLOAK] Failed to refresh token"),400==c.status&&o.clearToken(),o.onAuthRefreshError&&o.onAuthRefreshError(),n=r.pop();null!=n;n=r.pop())n.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.")},c.send(i)}}else n.setSuccess(!1)};return s.enable?_().then((function(){t()})).catch((function(e){n.setError(e)})):t(),n.promise},o.clearToken=function(){o.token&&(w(null,null,null),o.onAuthLogout&&o.onAuthLogout(),o.loginRequired&&o.login())};const C="kc-callback-";var S=function(){if(!(this instanceof S))return new S;function e(){const e=Date.now();for(const[o,r]of n()){const n=t(r);(null===n||n<e)&&localStorage.removeItem(o)}}function n(){return Object.entries(localStorage).filter((([e])=>e.startsWith(C)))}function t(e){let n;try{n=JSON.parse(e)}catch(e){return null}return c(n)&&"expires"in n&&"number"==typeof n.expires?n.expires:null}localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test"),this.get=function(n){if(n){var t=C+n,o=localStorage.getItem(t);return o&&(localStorage.removeItem(t),o=JSON.parse(o)),e(),o}},this.add=function(t){e();const o=C+t.state,r=JSON.stringify({...t,expires:Date.now()+36e5});try{localStorage.setItem(o,r)}catch(e){!function(){for(const[e]of n())localStorage.removeItem(e)}(),localStorage.setItem(o,r)}}},O=function(){if(!(this instanceof O))return new O;var e=this;e.get=function(e){if(e){var r=t(C+e);return o(C+e,"",n(-100)),r?JSON.parse(r):void 0}},e.add=function(e){o(C+e.state,JSON.stringify(e),n(60))},e.removeItem=function(e){o(e,"",n(-100))};var n=function(e){var n=new Date;return n.setTime(n.getTime()+60*e*1e3),n},t=function(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){for(var r=t[o];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(n))return r.substring(n.length,r.length)}return""},o=function(e,n,t){var o=e+"="+n+"; expires="+t.toUTCString()+"; ";document.cookie=o}};function U(e){return function(){o.enableLogging&&e.apply(console,Array.prototype.slice.call(arguments))}}}function a(e){const[n,t]=e.split(".");if("string"!=typeof t)throw new Error("Unable to decode token, payload not found.");let o;try{o=function(e){let n=e.replaceAll("-","+").replaceAll("_","/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Input is not of the correct length.")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,n)=>{let t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return atob(n)}}(t)}catch(e){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:e})}try{return JSON.parse(o)}catch(e){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:e})}}function c(e){return"object"==typeof e&&null!==e}let s=null,u=null;const l=class{constructor(t){e(this,t),this.keycloak=n(this,"keycloak",7),this.auth=n(this,"auth",7),this.handleLogin=async()=>{if(!this.authenticated)try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.login()}()}catch(e){r.show(e.message,"error")}},this.handleLogout=async()=>{try{await function(){if(!s)throw new Error("Keycloak is not initialized.");s.logout()}()}catch(e){r.show(e.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null,this.serverAvailable=!1}async componentWillLoad(){this.keycloakUrl&&this.keycloakRealm&&this.keycloakClientId?(this.serverAvailable=await async function(e){try{const n=await fetch(e,{method:"HEAD",mode:"no-cors"});return n.ok||"opaque"===n.type}catch(e){return!1}}(`${this.keycloakUrl}/realms/${this.keycloakRealm}`),this.serverAvailable?await this.initAuth():r.show("Keycloak server is unavailable.","error")):console.error("Keycloak configuration props are missing.")}async initAuth(){try{const e=await function(e,n=!0){return u?(console.log("Keycloak already initialized, returning from cache"),u):(s||(s=new i({url:e.url,realm:e.realm,clientId:e.clientId})),u=s.init({onLoad:n?"check-sso":"login-required",checkLoginIframe:!1}).then((e=>e)).catch((e=>(console.error("Failed to initialize Keycloak:",e),!1))),u)}({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0);this.keycloak.emit({init:e}),(null==s?void 0:s.authenticated)&&(this.user=(null==s?void 0:s.authenticated)&&(null==s?void 0:s.idTokenParsed)?{fullname:s.idTokenParsed.name,email:s.idTokenParsed.email,lastname:s.idTokenParsed.family_name,firstname:s.idTokenParsed.given_name,username:s.idTokenParsed.preferred_username,background:"grey",token:s.token,sub:s.idTokenParsed.sub}:{},this.authenticated=!0,this.auth.emit({authenticated:this.authenticated,user:this.user}))}catch(e){r.show(e.message,"error")}}render(){return t("div",{key:"041846174aaad541acce03588a087793d10daa1e",class:"block"},!this.authenticated&&t("eds-button",{key:"360a84ec79a15c9293e3898b77df649c469d9529",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}},f=class{constructor(t){e(this,t),this.splash=n(this,"splash",7),this.inverse=!1,this.initPromise=void 0,this.isVisible=!0}componentWillLoad(){this.initPromise&&this.handleInitPromise(this.initPromise)}async watchInitPromise(e){e&&this.handleInitPromise(e)}async handleInitPromise(e){try{await e,this.hideSplash()}catch(e){this.splash.emit({type:"error",message:e.message||"Unknown error"})}}handleHideSplash(){this.hideSplash()}hideSplash(){this.isVisible=!1,this.splash.emit({type:"hidden",message:"Splash screen hidden successfully"})}render(){return this.isVisible?t(o,null,t("div",{class:"splash-overlay",style:{background:this.inverse?"black":"var(--grey-200)"}},t("div",{class:"logo-container"},t("eds-logo",this.inverse?{orientation:"vertical",type:"color-white"}:{orientation:"vertical",type:"color"})),t("div",{class:"content-container"},t("eds-spinner",{size:"1rem",thickness:"3px","border-color":"var(--grey-400)","bottom-color":"var(--grey-900)",background:"none",fullscreen:!1})))):null}static get watchers(){return{initPromise:["watchInitPromise"]}}};f.style=".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}";export{l as eds_login,f as eds_splash_screen}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as c}from"./p-cccacbd3.js";import{u as r}from"./p-1b2913c8.js";const o=class{constructor(c){s(this,c),this.class=""}render(){return c("span",{key:"b97da1b406718c7611d1e17d7a9c6b4670600740",class:this.class,innerHTML:r})}};export{o as eds_icon_updown}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as r}from"./p-cccacbd3.js";import{u as c}from"./p-46d0716d.js";const t=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"4322703c9e449819dc30946118893d365fa20124",class:this.class,innerHTML:c})}};export{t as eds_icon_user}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as r}from"./p-cccacbd3.js";import{m as a}from"./p-5ab1d64a.js";const c=class{constructor(r){s(this,r),this.class=""}render(){return r("span",{key:"b998a568e6f0f7811a4984817177c76842127298",class:this.class,innerHTML:a})}};export{c as eds_icon_mastodon}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-cccacbd3.js";const a={"1x1":"1/1","21x9":"21/9","16x9":"16/9","3x2":"3/2","4x3":"4/3","4x5":"4/5"},c=class{constructor(t){e(this,t)}render(){return t("section",{key:"c4348ae18a2c7644f7a191aa5190ac3b98b5ccb9",class:"w-full"},t("eds-section-core",{key:"6f148fc0c0ebbaef05761fa1a773cf026e308517",tag:"div","section-title":"Aspect Ratios","heading-level":"h3"},t("ul",{key:"eb932db069683046fcda8ea950bac277e1387c33",class:"gap-y-8 md:gap-y-12 lg:gap-y-16"},Object.entries(a).map((([e,a])=>t("li",{class:"grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16"},t("div",{class:"container ratio-box flex items-center justify-center text-center border-2 border-soft",style:{aspectRatio:a.replace("/",":"),width:"100%",maxWidth:"300px"}},t("span",{class:"text-default font-bold mr-auto"},"aspect-",e),t("span",{class:"mt-2 text-sm ml-auto"},a))))))))}};export{c as token_ratios}
|
|
@@ -35,7 +35,7 @@ const ColorPrimaryPalette = /*@__PURE__*/ proxyCustomElement(class ColorPrimaryP
|
|
|
35
35
|
];
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h("ul", { key: '
|
|
38
|
+
return (h("ul", { key: 'af0b4133a365f9c2db08ea05eab950de32536950', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
39
39
|
}
|
|
40
40
|
}, [0, "color-primary-palette"]);
|
|
41
41
|
function defineCustomElement() {
|
|
@@ -35,7 +35,7 @@ const GradientPrimaryPalette = /*@__PURE__*/ proxyCustomElement(class GradientPr
|
|
|
35
35
|
];
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h("ul", { key: '
|
|
38
|
+
return (h("ul", { key: 'b77f4fad55c2aa54422fd3b18ef09d4004490014', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
39
39
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
40
40
|
} }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16" }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
41
41
|
}
|
|
@@ -60,7 +60,7 @@ const ColorSecondaryPalette = /*@__PURE__*/ proxyCustomElement(class ColorSecond
|
|
|
60
60
|
this.show = undefined;
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h("ul", { key: '
|
|
63
|
+
return (h("ul", { key: '059dacf5e142b2e4bd61a7977f1bdd79554ddca9', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
64
64
|
}
|
|
65
65
|
}, [0, "color-secondary-palette", {
|
|
66
66
|
"show": [1]
|
|
@@ -60,19 +60,19 @@ const GradientSecondaryPalette = /*@__PURE__*/ proxyCustomElement(class Gradient
|
|
|
60
60
|
];
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h("div", { key: '
|
|
63
|
+
return (h("div", { key: '10c513243cdbc57d018445e4413d4a1940616be1' }, h("ul", { key: 'c28494f2db389b90b82b18663d3ff2cae3528fc7', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '9b93b139f06b5cf2bf40ea9576a16f1f95b47cef', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '32aea8893b8c109ac13bb4fa87f81fdfbb31211c', class: "effect-height flex items-center justify-between p-16", style: {
|
|
64
64
|
background: this.colors[0].background
|
|
65
|
-
} }, h("div", { key: '
|
|
65
|
+
} }, h("div", { key: '0881e06d858eb7ec8681d201abf2d6b19f89052f', class: "grid" }, h("span", { key: '9d94677102fc1ee3720b2d845038968b38143afc', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: 'a11ac3d683540f396dd6a22250773d9bbc6b7c86', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: 'aaf6227e91efb700dee4dd14a99f0f803902a348', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'aefdddab57b6f487a9b9b28bf9931b43924d7fb9', class: "grid" }, h("span", { key: '5ff736d1d6d0a6919899a58970042157970fa9df', class: "f-body-02" }, this.colors[0].pantoneC), h("span", { key: '668f276d932498e064c51637157d34c416a82c35', class: "f-body-02" }, this.colors[0].pantoneU))), h("div", { key: '8797049389313e6627574e97e609572979b16ec0', class: "effect-height flex items-center justify-between p-16", style: {
|
|
66
66
|
background: this.colors[1].background
|
|
67
|
-
} }, h("div", { key: '
|
|
67
|
+
} }, h("div", { key: '44ee397cf746e87daa52979200c270703d1bc55e', class: "grid" }, h("span", { key: '65bc43371dee383f17da6cf366520ca6499db61d', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: '3afcdc449bb40583bec4a64229beb176644c6d86', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: '9356d97b5db02857d89215ea40bd2d17917fb032', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'e4515e8ff06d5da2530754720753562fd12282a2', class: "grid" }, h("span", { key: '208101b85d06b7a9fa5c1a0d0eb470c48c55c8d6', class: "f-body-02" }, this.colors[1].pantoneC), h("span", { key: '73b9ffdae670b0977b71eb5a5540c6ca5cdf850a', class: "f-body-02" }, this.colors[1].pantoneU))))), h("eds-block-break", { key: 'a6b352c935c7c548647ec33f548f5963d3fb2771' }), h("ul", { key: 'b17a428d35de0e5fd34f93b5e5d7eea10bd97c05', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'bf11a3863db3b16410bb33b63e589f08d3ac9f10', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'ab6c9f7addcbcedc3686f95e4955b9e7ab14b6fc', class: "effect-height flex items-center justify-between p-16", style: {
|
|
68
68
|
background: this.colors[2].background
|
|
69
|
-
} }, h("div", { key: '
|
|
69
|
+
} }, h("div", { key: '4a1b5ad1af1f12ecf5d0e3d29af852f8c9a68c8a', class: "grid" }, h("span", { key: '3ce666f09c7de2488d94698a19ae1c51ddecbf7b', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: '10301ea300f2b1a6d827bf56fd8b8e0e0cc858f6', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: '2db903a2fe58581b0e6d7b9adc984f4320dc8a09', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'afe001eb4a52f6a05b38ffcc71d538ec22a98022', class: "grid" }, h("span", { key: '62fc31bde6e3b34327e41cd39fc80cab32faa94d', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: '2ca52fff58fcef2660e80f2a847c45d08438f14e', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: '85e4a7be29033cdaf374b27ceed588c825ace64f', class: "effect-height flex items-center justify-between p-16", style: {
|
|
70
70
|
background: this.colors[3].background
|
|
71
|
-
} }, h("div", { key: '
|
|
71
|
+
} }, h("div", { key: '16193b9db41b2296de12684ac3f9274436aac1fa', class: "grid" }, h("span", { key: '809a4b38fe70a64bdd823093aeb0278b181fd9b8', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: '96bd1f267b3fc2dc280a683d92bbc872ec446f6b', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: '217931cdbd3da0f016253e61ef19e74e4df4f669', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '03b91a07130bc1d4c811759085174f794f66d143', class: "grid" }, h("span", { key: 'bdc570cfb341c90b7e89100af5034496c1b369ee', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: 'cc10a8ba6a2cf4470bbbf16c03f513273411db4b', class: "f-body-02" }, this.colors[3].pantoneU))))), h("eds-block-break", { key: '45e15e96024ba30a44ae8fff1b1484ca036e2d89' }), h("ul", { key: 'a487cf89f96a29775770ba4a5a80019387d179bc', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: '15018fc0724f6b1e62b5b37922dc924ec2fb41d8', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'b2b27ed4e039ab44c9514ddfc3dbe928ce0aa46b', class: "effect-height flex items-center justify-between p-16", style: {
|
|
72
72
|
background: this.colors[4].background
|
|
73
|
-
} }, h("div", { key: '
|
|
73
|
+
} }, h("div", { key: '8714548cc695018bb413d3e72ea8e580cc9bc98f', class: "grid" }, h("span", { key: '28e8f390390f82e5cbad32394e46a4606feeec6b', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: '5b6f7f1ee8484f99e9421af84835ed4bf6765db4', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: '84c6ddd8728a2a39c8863af7a6ad181f321efd7f', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '7ddccbf76753340f715d4fbfcd31bab083bf3725', class: "grid" }, h("span", { key: 'f2a84a9e46d18015b45f052dc8786ac7c1fc3bb3', class: "f-body-02" }, this.colors[4].pantoneC), h("span", { key: '741fd132025aa0c0a1da6d8a88273a1cd19aeae7', class: "f-body-02" }, this.colors[4].pantoneU))), h("div", { key: 'e0d48d68d5487c82149c90cc0e726370f0d25960', class: "effect-height flex items-center justify-between p-16", style: {
|
|
74
74
|
background: this.colors[5].background
|
|
75
|
-
} }, h("div", { key: '
|
|
75
|
+
} }, h("div", { key: '16b56121efc5527b8eb3dad7e119840102d1d390', class: "grid" }, h("span", { key: '5f326a2653de6dcc8c85ad88c5554214519fa1fd', class: "f-body-02" }, this.colors[5].rgb), h("span", { key: '1cb2c712393855e7b01bf1e083444e2c170d7b0b', class: "f-body-02 w-full" }, this.colors[5].cmyk), h("eds-code-block", { key: '6cc534503946d6aee5b562b2b1b713988df963ac', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'd79c852afae4fbe6b360cc319b8d3bf22ce7b194', class: "grid" }, h("span", { key: 'cab85faa9f7cd31c14a15a014f8a95c39b6e631d', class: "f-body-02" }, this.colors[5].pantoneC), h("span", { key: 'ea3a9fafeee11b75663bd753c75b7cbcfdb9c5c1', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
76
76
|
}
|
|
77
77
|
}, [0, "gradient-secondary-palette"]);
|
|
78
78
|
function defineCustomElement() {
|
|
@@ -60,7 +60,7 @@ const ColorSupportPalette = /*@__PURE__*/ proxyCustomElement(class ColorSupportP
|
|
|
60
60
|
return 'text-default';
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h("ul", { key: '
|
|
63
|
+
return (h("ul", { key: '2cadb1ac7f985ba4960eb2a8b8d64c543c07dafa', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
64
64
|
// compute once
|
|
65
65
|
const textClass = this.getTextColor(color.background);
|
|
66
66
|
return (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: `f-body-02 ${textClass}` }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' }, class: textClass })), h("div", { class: "grid" }, h("span", { class: `f-body-02 ${textClass}` }, color.pantoneC), h("span", { class: `f-body-02 ${textClass}` }, color.pantoneU)))));
|
|
@@ -51,11 +51,11 @@ const GradientSupportPalette = /*@__PURE__*/ proxyCustomElement(class GradientSu
|
|
|
51
51
|
];
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h("ul", { key: '
|
|
54
|
+
return (h("ul", { key: '2735f6a59037973febc2ee871464146b3a12e69b', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, h("li", { key: 'a861d0c4ea7545d55b8c324f916e1831e271bb47', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '93a8c04259ed46a2c520c1355efaaa2ecf0c4714', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, h("div", { key: '554964ca9e800dd356fcddfcc82004e7a6131d21', class: "grid" }, h("span", { key: 'e91f746f3ce067afe57835da2996804dba471ce3', class: "f-body-02" }, this.colors[0].rgb), h("span", { key: '41d7dd9aa7ec450f35ae6587b51a5d7c639cb1fa', class: "f-body-02 w-full" }, this.colors[0].cmyk), h("eds-code-block", { key: '4e0d93b261af040d0aa82c8043542a751915786f', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: 'f1c2c77f37d5e80b6574e68c9454cac46cd99c9f', class: "grid" }, h("span", { key: '8e216418f476d026cb59dbbdab802bb4bdf7a4e4', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), h("span", { key: '5b978c9f6206ba4a57645dd5b107ace27be515a9', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), h("li", { key: '232cd30eb6c637d31f80cf8281fb434e9837e9b8', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '61a073ea3b4bc8134ad539b941a6bc1b3a914a11', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, h("div", { key: '22a69e75c01842e67d87126f3d34e9a19ead4ab1', class: "grid" }, h("span", { key: 'b537d9e9cb0429677656c068a0a81499d42cac30', class: "f-body-02" }, this.colors[1].rgb), h("span", { key: 'ab35b28dec337cb81ad50372e7c071c7d8f3b785', class: "f-body-02 w-full" }, this.colors[1].cmyk), h("eds-code-block", { key: 'a0bea555719eacc8f0730300ebab6ae98ea6771a', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '8458087421b893504829ed46b05ba44acb0c5f53', class: "grid" }, h("span", { key: '2ec00ee996a3184afe07c27e45e999c4740b93a1', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), h("span", { key: '7d48ea6d5b12c6a1ced3812fdc4cb39cd3afaed4', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), h("li", { key: 'b2ac623c59d1dc2ab14cc2775c5b95b4d02fc72f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: '6152411685ae903a22bf9b06db18182c35bea246', class: "effect-height flex items-center justify-between p-16", style: {
|
|
55
55
|
background: this.colors[2].background
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: 'fa8fb3b382d53be84413643cb12a58b4a41202ca', class: "grid" }, h("span", { key: '026b5ed6229ef0e89636fce8643264ba47255249', class: "f-body-02" }, this.colors[2].rgb), h("span", { key: 'bc5784f779096d92229abc19c003df07ee7acf1c', class: "f-body-02 w-full" }, this.colors[2].cmyk), h("eds-code-block", { key: '76e8f012cb9d7994906e2d9ce55d7eb47c5cbd0f', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '0410c816d39550853c240894811717c427fa3dee', class: "grid" }, h("span", { key: 'b1f2869cc28a05e0c52f7bd8cec85d170d6250a7', class: "f-body-02" }, this.colors[2].pantoneC), h("span", { key: 'f53078949c7803385c6616325670143e1af08abe', class: "f-body-02" }, this.colors[2].pantoneU))), h("div", { key: '2076894246cdbcdc0557e70ef9ca857f8fb825cf', class: "effect-height flex items-center justify-between p-16", style: {
|
|
57
57
|
background: this.colors[3].background
|
|
58
|
-
} }, h("div", { key: '
|
|
58
|
+
} }, h("div", { key: '5f8b1cf3e3529c9e54185cd6bb8c1aaaa0ebc359', class: "grid" }, h("span", { key: '06f7ef3d3e164a632f2bc9c5e99642a827a79e27', class: "f-body-02" }, this.colors[3].rgb), h("span", { key: '21a313355fa68a829619d9da29000acef0509fba', class: "f-body-02 w-full" }, this.colors[3].cmyk), h("eds-code-block", { key: '859bc066d1756b9ac5f72de7fcd0b4bd3013f8f4', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '5a4ffa55b941478f5f18e764fc54421b4dd33141', class: "grid" }, h("span", { key: 'b42265cfe889bcb45270c21016134fa72ba18e5d', class: "f-body-02" }, this.colors[3].pantoneC), h("span", { key: '6b478b1526fbd5e5175f67dbb5b9e30e21dc56bb', class: "f-body-02" }, this.colors[3].pantoneU)))), h("li", { key: '7a92c596887e9c42c2c79c208ed82810b8f6a714', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { key: 'edcc8539e72b7497a0bb49d442774903116bf916', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, h("div", { key: 'a65cdaa466210da348bf54e36c4e805ae26e36fa', class: "grid" }, h("span", { key: '894bc12a1b61925db0ec12b82f2f938805b71f46', class: "f-body-02" }, this.colors[4].rgb), h("span", { key: '0b7f7cf4c514ccc4bd3c3a1f1bce75f23bbcc2cb', class: "f-body-02 w-full" }, this.colors[4].cmyk), h("eds-code-block", { key: 'bc3b15dd7eb559b10fc64b08fc6c4d7681209d3c', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { key: '57be009b3ec863485042af43ca0dabcceb5a317b', class: "grid" }, h("span", { key: 'f7e10fda97f12f55d4756014f296e710793c38f4', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), h("span", { key: 'e16fc4ac9a8639bda71bb814992bf6416949fd06', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
59
59
|
}
|
|
60
60
|
}, [0, "gradient-support-palette"]);
|
|
61
61
|
function defineCustomElement() {
|
|
@@ -337,7 +337,7 @@ const SvgRepository$1 = /*@__PURE__*/ proxyCustomElement(class SvgRepository ext
|
|
|
337
337
|
icon: { format: 'svg' },
|
|
338
338
|
name: { format: 'bold' }
|
|
339
339
|
};
|
|
340
|
-
return (h("div", { key: '
|
|
340
|
+
return (h("div", { key: '337ffab9c7167da8c4e7300297faf0e7dd5886e0', class: "full-width" }, h("eds-table", { key: '686e28e32060b5b4f72769744569460555466bb9', "table-data": JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true })));
|
|
341
341
|
}
|
|
342
342
|
get hostEl() { return this; }
|
|
343
343
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -243,7 +243,7 @@ const TokenList = /*@__PURE__*/ proxyCustomElement(class TokenList extends HTMLE
|
|
|
243
243
|
render() {
|
|
244
244
|
// Check if `show` prop is provided; if not, display all sections
|
|
245
245
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
246
|
-
return (h("section", { key: '
|
|
246
|
+
return (h("section", { key: '61b0561443787bdc5d1fdf6db0bed0bebe8ba6cb', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
247
247
|
// Only render sections that exist in `colors`
|
|
248
248
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
249
249
|
}
|
|
@@ -17,7 +17,7 @@ const TokenRadii = /*@__PURE__*/ proxyCustomElement(class TokenRadii extends HTM
|
|
|
17
17
|
this.__registerHost();
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("section", { key: '
|
|
20
|
+
return (h("section", { key: 'f6e277d8d84957ad05f027a7a151f2dd0b5c6e21', class: "w-full mt-28" }, h("ul", { key: 'feeef0a573d704dc010b76fc94a5ac9a9a05f0da', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (h("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, h("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, h("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), h("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
21
21
|
}
|
|
22
22
|
}, [0, "token-radii"]);
|
|
23
23
|
function defineCustomElement() {
|