@duetds/components 9.5.2 → 9.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +263 -217
- package/lib/cjs/{a11y-utils-8e2be21b.js → a11y-utils-285b9770.js} +1 -1
- package/lib/cjs/{app-globals-617d939b.js → app-globals-a643282a.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-alert.cjs.entry.js +16 -16
- package/lib/cjs/duet-badge.cjs.entry.js +3 -3
- package/lib/cjs/duet-banner.cjs.entry.js +4 -4
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
- package/lib/cjs/duet-button_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-callout.cjs.entry.js +4 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +30 -13
- package/lib/cjs/duet-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
- package/lib/cjs/duet-chip.cjs.entry.js +3 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +8 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +7 -7
- package/lib/cjs/duet-empty-state.cjs.entry.js +3 -3
- package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +7 -7
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +8 -8
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +9 -3
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
- package/lib/cjs/duet-modal.cjs.entry.js +11 -11
- package/lib/cjs/duet-multiselect.cjs.entry.js +8 -8
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
- package/lib/cjs/duet-pagination_2.cjs.entry.js +15 -15
- package/lib/cjs/duet-phone-input.cjs.entry.js +9 -3
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +23 -14
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +2 -2
- package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
- package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-link.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +10 -10
- package/lib/cjs/duet-slideout.cjs.entry.js +9 -9
- package/lib/cjs/duet-status-icon.cjs.entry.js +8 -8
- package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +4 -4
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-a69cd631.js → errorcodes.utils-ffbb3f35.js} +1 -1
- package/lib/cjs/{focus-utils-2a54eb7a.js → focus-utils-2f1ec06b.js} +1 -1
- package/lib/cjs/{index-206506a2.js → index-850a7759.js} +6 -6
- package/lib/cjs/{language-utils-6754f426.js → language-utils-030e2133.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-aa13b3a0.js → slot-utils-84ad3d6c.js} +1 -1
- package/lib/cjs/{teleport-c6f8391a.js → teleport-c0eede18.js} +2 -2
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.css +72 -27
- package/lib/collection/components/duet-alert/duet-alert.js +37 -16
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.js +3 -3
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.js +10 -10
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +3 -3
- package/lib/collection/components/duet-card/duet-card.js +6 -6
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +7 -7
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +5 -5
- package/lib/collection/components/duet-combobox/duet-combobox.js +8 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
- package/lib/collection/components/duet-divider/duet-divider.js +2 -2
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +3 -3
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +2 -2
- package/lib/collection/components/duet-footer/duet-footer.js +11 -11
- package/lib/collection/components/duet-grid/duet-grid.js +3 -3
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +3 -3
- package/lib/collection/components/duet-hero/duet-hero.js +10 -10
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.js +36 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +6 -6
- package/lib/collection/components/duet-link/duet-link.js +25 -4
- package/lib/collection/components/duet-list/duet-list.js +4 -4
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +2 -2
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +10 -10
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +13 -13
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +32 -4
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +4 -4
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +4 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +30 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.js +3 -3
- package/lib/collection/components/duet-slideout/duet-slideout.js +5 -5
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
- package/lib/collection/components/duet-spinner/duet-spinner.js +3 -3
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +7 -7
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +57 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +56 -9
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
- package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +16 -16
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +4 -4
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/teleport.js +2 -2
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +5 -5
- package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +4 -4
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +6 -6
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +4 -4
- package/lib/dist-custom-elements/duet-collapsible.js +5 -5
- package/lib/dist-custom-elements/duet-combobox.js +20 -16
- package/lib/dist-custom-elements/duet-contact-card.js +10 -10
- package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
- package/lib/dist-custom-elements/duet-date-picker.js +13 -13
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +7 -7
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
- package/lib/dist-custom-elements/duet-footer.js +11 -11
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +14 -14
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +6 -6
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-modal.js +15 -15
- package/lib/dist-custom-elements/duet-multiselect.js +14 -14
- package/lib/dist-custom-elements/duet-nav.js +2 -2
- package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
- package/lib/dist-custom-elements/duet-notification.js +4 -4
- package/lib/dist-custom-elements/duet-number-input.js +11 -11
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +5 -5
- package/lib/dist-custom-elements/duet-pagination.js +24 -24
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-phone-input.js +23 -16
- package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +5 -5
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +6 -6
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +4 -4
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
- package/lib/dist-custom-elements/duet-show-more.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
- package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
- package/lib/dist-custom-elements/duet-slideout.js +8 -8
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-status-icon.js +1 -103
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
- package/lib/dist-custom-elements/duet-tab-group.js +21 -12
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +10 -10
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
- package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar.js +3 -3
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +5 -5
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +42 -36
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-6f36f4f3.js → p-0e2c29a0.js} +5 -5
- package/lib/dist-custom-elements/{p-519df228.js → p-0e3a8465.js} +3 -3
- package/lib/dist-custom-elements/{p-accb4fa9.js → p-1399c239.js} +9 -9
- package/lib/dist-custom-elements/{p-fba92a7b.js → p-17b1f88c.js} +7 -7
- package/lib/dist-custom-elements/{p-79957fa3.js → p-19a2d36f.js} +1 -1
- package/lib/dist-custom-elements/{p-8882b67b.js → p-1ee62209.js} +5 -5
- package/lib/dist-custom-elements/{p-6888c8d6.js → p-246a45c5.js} +3 -3
- package/lib/dist-custom-elements/{p-9f5cc4e3.js → p-24de14ac.js} +3 -3
- package/lib/dist-custom-elements/{p-935c69ca.js → p-2a7b9c7c.js} +4 -4
- package/lib/dist-custom-elements/{p-a317fac9.js → p-2cdc1b0d.js} +2 -2
- package/lib/dist-custom-elements/{p-2bb0877f.js → p-4e00e010.js} +2 -2
- package/lib/dist-custom-elements/{p-a571ab43.js → p-5554d38b.js} +3 -3
- package/lib/dist-custom-elements/{p-495fa25d.js → p-670555eb.js} +1 -1
- package/lib/dist-custom-elements/p-71d24b1e.js +213 -0
- package/lib/dist-custom-elements/{p-d3f39f5e.js → p-744611d2.js} +8 -8
- package/lib/dist-custom-elements/{p-dbea5087.js → p-7a5af4ef.js} +1 -1
- package/lib/dist-custom-elements/{p-9126e8a2.js → p-7da00182.js} +6 -6
- package/lib/dist-custom-elements/p-83dee022.js +108 -0
- package/lib/dist-custom-elements/{p-53b3bd2d.js → p-84a626a1.js} +3 -3
- package/lib/dist-custom-elements/{p-ec26aeea.js → p-859504c9.js} +3 -3
- package/lib/dist-custom-elements/{p-6646e07d.js → p-86431925.js} +2 -2
- package/lib/dist-custom-elements/{p-1cc451fc.js → p-8799d4ad.js} +2 -2
- package/lib/dist-custom-elements/{p-ce7d290f.js → p-88624802.js} +14 -11
- package/lib/dist-custom-elements/{p-6dd74d76.js → p-8aeac44c.js} +2 -2
- package/lib/dist-custom-elements/{p-ca3cb21e.js → p-8cb0e6bd.js} +2 -2
- package/lib/dist-custom-elements/{p-673093b5.js → p-97505489.js} +17 -10
- package/lib/dist-custom-elements/{p-9614cc57.js → p-a202083e.js} +4 -4
- package/lib/dist-custom-elements/{p-b54dea97.js → p-a839bb27.js} +3 -3
- package/lib/dist-custom-elements/{p-69756ccb.js → p-b6a06b4d.js} +1 -1
- package/lib/dist-custom-elements/{p-fd01fff8.js → p-b7e56baf.js} +3 -3
- package/lib/dist-custom-elements/{p-1b7f952f.js → p-c084f5f2.js} +2 -2
- package/lib/dist-custom-elements/{p-320da2a2.js → p-c18fe324.js} +3 -3
- package/lib/dist-custom-elements/{p-1a4430e2.js → p-c45170b0.js} +2 -2
- package/lib/dist-custom-elements/{p-c3d01088.js → p-ca4970b2.js} +15 -15
- package/lib/dist-custom-elements/{p-38cb34bf.js → p-cfa9907a.js} +25 -5
- package/lib/dist-custom-elements/{p-aedaa6be.js → p-dd76e32c.js} +2 -2
- package/lib/dist-custom-elements/{p-136dc3af.js → p-dff748c3.js} +4 -4
- package/lib/dist-custom-elements/{p-ef2dcc5a.js → p-e2468742.js} +4 -4
- package/lib/dist-custom-elements/{p-5a892951.js → p-e88ea44e.js} +12 -12
- package/lib/dist-custom-elements/{p-f7a60dd8.js → p-eff24429.js} +3 -3
- package/lib/dist-custom-elements/{p-1f86efd7.js → p-f22589a4.js} +3 -3
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-8e40c17e.entry.js → p-00213276.entry.js} +1 -1
- package/lib/duet/{p-12b625a8.entry.js → p-01d7ac55.entry.js} +1 -1
- package/lib/duet/{p-1428de02.entry.js → p-023fce1f.entry.js} +1 -1
- package/lib/duet/{p-bf039477.system.entry.js → p-07fed22f.system.entry.js} +1 -1
- package/lib/duet/{p-38487de7.system.entry.js → p-08a47466.system.entry.js} +1 -1
- package/lib/duet/{p-6c6981db.system.entry.js → p-0a11226b.system.entry.js} +1 -1
- package/lib/duet/{p-6d1f93c1.entry.js → p-0a912734.entry.js} +1 -1
- package/lib/duet/{p-70a7f815.entry.js → p-0c5d3a82.entry.js} +1 -1
- package/lib/duet/{p-915e55ec.entry.js → p-0d16c5ae.entry.js} +1 -1
- package/lib/duet/{p-7b5c18ba.system.entry.js → p-0def186e.system.entry.js} +1 -1
- package/lib/duet/{p-9261386e.system.entry.js → p-0e695a6c.system.entry.js} +2 -2
- package/lib/duet/{p-8b353b35.system.entry.js → p-0f087a51.system.entry.js} +2 -2
- package/lib/duet/{p-5c3998b7.entry.js → p-0f568460.entry.js} +1 -1
- package/lib/duet/{p-04dcf198.entry.js → p-13dd00d9.entry.js} +1 -1
- package/lib/duet/{p-4670cbd2.entry.js → p-1585915c.entry.js} +1 -1
- package/lib/duet/{p-5c91da22.entry.js → p-169801e2.entry.js} +1 -1
- package/lib/duet/{p-0c115b39.js → p-1cfacaa0.js} +1 -1
- package/lib/duet/{p-7373389d.entry.js → p-1d1caba8.entry.js} +1 -1
- package/lib/duet/{p-a4650edb.entry.js → p-1df70f01.entry.js} +1 -1
- package/lib/duet/{p-d6f8386e.entry.js → p-1e43f46b.entry.js} +1 -1
- package/lib/duet/{p-31f93fec.system.entry.js → p-1ef91f38.system.entry.js} +1 -1
- package/lib/duet/{p-7c74b0a5.system.entry.js → p-20408f45.system.entry.js} +1 -1
- package/lib/duet/{p-3af95762.system.js → p-225d896f.system.js} +1 -1
- package/lib/duet/{p-ea29ebbb.system.entry.js → p-2686c475.system.entry.js} +1 -1
- package/lib/duet/{p-419bca5b.system.entry.js → p-2724434b.system.entry.js} +1 -1
- package/lib/duet/{p-64542862.entry.js → p-27f623da.entry.js} +1 -1
- package/lib/duet/p-295bc09e.entry.js +4 -0
- package/lib/duet/{p-05e3b483.system.entry.js → p-2b04ef5c.system.entry.js} +1 -1
- package/lib/duet/{p-519297ed.system.entry.js → p-2cee1f9b.system.entry.js} +1 -1
- package/lib/duet/{p-225d100c.entry.js → p-2d7bc4a2.entry.js} +1 -1
- package/lib/duet/p-3051dbbb.entry.js +4 -0
- package/lib/duet/{p-013c9fff.entry.js → p-318bab4d.entry.js} +1 -1
- package/lib/duet/{p-b2a64677.system.entry.js → p-31c2bad0.system.entry.js} +1 -1
- package/lib/duet/{p-8594d015.system.entry.js → p-32234cba.system.entry.js} +1 -1
- package/lib/duet/{p-7e0e5b92.entry.js → p-33ffb428.entry.js} +1 -1
- package/lib/duet/{p-68ab87cc.entry.js → p-36a99082.entry.js} +1 -1
- package/lib/duet/{p-280063be.system.entry.js → p-36afe6cb.system.entry.js} +1 -1
- package/lib/duet/{p-fc4861d9.system.entry.js → p-36de2705.system.entry.js} +1 -1
- package/lib/duet/{p-8bed7caf.entry.js → p-3853498e.entry.js} +1 -1
- package/lib/duet/{p-8c2bc346.system.entry.js → p-3977bdb1.system.entry.js} +1 -1
- package/lib/duet/{p-277c4782.entry.js → p-39c01a70.entry.js} +1 -1
- package/lib/duet/{p-580d4d53.entry.js → p-3b1aa036.entry.js} +1 -1
- package/lib/duet/{p-580978f0.system.entry.js → p-3eae7e96.system.entry.js} +1 -1
- package/lib/duet/{p-8741bd70.entry.js → p-3ec00c51.entry.js} +1 -1
- package/lib/duet/{p-031f13b0.system.entry.js → p-3fbbc8f3.system.entry.js} +1 -1
- package/lib/duet/{p-78b02eb3.system.entry.js → p-409e717a.system.entry.js} +1 -1
- package/lib/duet/{p-53d7ea2c.entry.js → p-40efa103.entry.js} +1 -1
- package/lib/duet/{p-226aa2e9.system.entry.js → p-42a9ae6f.system.entry.js} +1 -1
- package/lib/duet/{p-1370b18f.entry.js → p-433a874a.entry.js} +1 -1
- package/lib/duet/p-447b8180.entry.js +4 -0
- package/lib/duet/{p-43cbc2bf.entry.js → p-464f4b7b.entry.js} +1 -1
- package/lib/duet/{p-430404c6.entry.js → p-488c0e3a.entry.js} +1 -1
- package/lib/duet/{p-cf900c12.system.entry.js → p-4ac80ae7.system.entry.js} +1 -1
- package/lib/duet/{p-94179cd5.system.entry.js → p-5153ffb5.system.entry.js} +1 -1
- package/lib/duet/{p-f3c5e966.system.entry.js → p-520b7deb.system.entry.js} +1 -1
- package/lib/duet/{p-759dca5c.system.entry.js → p-52d47015.system.entry.js} +1 -1
- package/lib/duet/{p-5b86d3c0.entry.js → p-5540127f.entry.js} +1 -1
- package/lib/duet/p-575c30ef.system.js +5 -0
- package/lib/duet/{p-b9231b8e.entry.js → p-584d6a6f.entry.js} +1 -1
- package/lib/duet/{p-07f8adab.entry.js → p-59df0c73.entry.js} +1 -1
- package/lib/duet/{p-f36f2f4b.entry.js → p-5b634ed9.entry.js} +1 -1
- package/lib/duet/{p-72809aec.system.js → p-5b87722f.system.js} +1 -1
- package/lib/duet/p-5b9ead99.entry.js +4 -0
- package/lib/duet/{p-c613e449.system.entry.js → p-5cf8adc4.system.entry.js} +1 -1
- package/lib/duet/{p-d693003b.entry.js → p-5ddbca89.entry.js} +1 -1
- package/lib/duet/p-5e7f679b.system.js +4 -0
- package/lib/duet/{p-6270b097.entry.js → p-5ed3cb90.entry.js} +1 -1
- package/lib/duet/{p-0dcc1a8b.system.entry.js → p-5f96e4e5.system.entry.js} +1 -1
- package/lib/duet/{p-827c2a0d.system.entry.js → p-62190c9b.system.entry.js} +1 -1
- package/lib/duet/{p-8acb2a04.entry.js → p-62641202.entry.js} +1 -1
- package/lib/duet/p-646ef587.entry.js +4 -0
- package/lib/duet/{p-4460ee6c.js → p-64f7e70b.js} +1 -1
- package/lib/duet/{p-318498a5.entry.js → p-66018a44.entry.js} +1 -1
- package/lib/duet/{p-fd7ff8da.system.entry.js → p-66909888.system.entry.js} +1 -1
- package/lib/duet/{p-0b986e9b.entry.js → p-67664a30.entry.js} +1 -1
- package/lib/duet/{p-053ef6d1.system.entry.js → p-676e0083.system.entry.js} +1 -1
- package/lib/duet/{p-cb15af71.entry.js → p-6b88e0e0.entry.js} +1 -1
- package/lib/duet/{p-f248e320.system.entry.js → p-6d945a13.system.entry.js} +1 -1
- package/lib/duet/{p-a9f4cfe4.entry.js → p-6dd4a284.entry.js} +1 -1
- package/lib/duet/{p-b86a869b.entry.js → p-715167d0.entry.js} +1 -1
- package/lib/duet/{p-f91f1fc4.system.entry.js → p-74595c7b.system.entry.js} +1 -1
- package/lib/duet/{p-44e4cc6f.entry.js → p-759159df.entry.js} +1 -1
- package/lib/duet/{p-accd2829.system.entry.js → p-76b521c3.system.entry.js} +1 -1
- package/lib/duet/{p-8beb97fe.system.entry.js → p-76bc7f02.system.entry.js} +1 -1
- package/lib/duet/{p-af55cef5.entry.js → p-78029a8c.entry.js} +1 -1
- package/lib/duet/{p-20b0dacc.system.entry.js → p-78a1c944.system.entry.js} +1 -1
- package/lib/duet/{p-c35a3eb6.system.entry.js → p-7af3685e.system.entry.js} +1 -1
- package/lib/duet/{p-d0edb7b9.system.entry.js → p-7f982bc5.system.entry.js} +1 -1
- package/lib/duet/{p-b4151081.system.entry.js → p-7fafcd70.system.entry.js} +1 -1
- package/lib/duet/{p-35950181.entry.js → p-811e587d.entry.js} +1 -1
- package/lib/duet/{p-3c466cd8.entry.js → p-81ac1fb9.entry.js} +1 -1
- package/lib/duet/{p-32ef55ff.system.entry.js → p-834bb95a.system.entry.js} +2 -2
- package/lib/duet/{p-cb5d825f.system.entry.js → p-8870ff92.system.entry.js} +1 -1
- package/lib/duet/{p-b1db69df.entry.js → p-894af6d5.entry.js} +1 -1
- package/lib/duet/{p-a1c6f370.entry.js → p-898a1eb6.entry.js} +1 -1
- package/lib/duet/{p-0fdf67d6.system.entry.js → p-8c475dea.system.entry.js} +1 -1
- package/lib/duet/p-8cb0e6bd.js +4 -0
- package/lib/duet/{p-7ff034b0.system.entry.js → p-8e1b9c1a.system.entry.js} +2 -2
- package/lib/duet/{p-204e76d3.entry.js → p-8f3d2885.entry.js} +1 -1
- package/lib/duet/p-8fdd5cc7.system.entry.js +4 -0
- package/lib/duet/p-8fde9a1b.js +5 -0
- package/lib/duet/{p-04b258fd.entry.js → p-8fe41782.entry.js} +1 -1
- package/lib/duet/{p-818b5277.entry.js → p-90132584.entry.js} +1 -1
- package/lib/duet/{p-a5fac26c.entry.js → p-908aa11e.entry.js} +1 -1
- package/lib/duet/{p-81e906ff.system.entry.js → p-96415561.system.entry.js} +1 -1
- package/lib/duet/{p-009738f9.entry.js → p-96cb91ac.entry.js} +1 -1
- package/lib/duet/{p-d046f3f0.system.entry.js → p-975e92b7.system.entry.js} +2 -2
- package/lib/duet/{p-d1464455.system.entry.js → p-a112a313.system.entry.js} +1 -1
- package/lib/duet/{p-bd5bc40f.system.entry.js → p-a2f07690.system.entry.js} +1 -1
- package/lib/duet/p-a451ac2a.entry.js +4 -0
- package/lib/duet/p-a4608e97.entry.js +4 -0
- package/lib/duet/{p-42868a02.system.entry.js → p-a5cdb4fb.system.entry.js} +1 -1
- package/lib/duet/{p-f2f75690.entry.js → p-a5d3dd13.entry.js} +1 -1
- package/lib/duet/{p-b92193a6.system.entry.js → p-a62a66ea.system.entry.js} +1 -1
- package/lib/duet/{p-ddd70eeb.system.entry.js → p-a76f07dc.system.entry.js} +1 -1
- package/lib/duet/p-acb77c8b.system.js +4 -0
- package/lib/duet/{p-936b8007.system.entry.js → p-ada4e675.system.entry.js} +2 -2
- package/lib/duet/{p-538e55e5.entry.js → p-ade5c55c.entry.js} +1 -1
- package/lib/duet/p-ae0f8173.system.entry.js +4 -0
- package/lib/duet/p-b1f33063.system.js +4 -0
- package/lib/duet/{p-fb4f24c4.system.entry.js → p-b2f132e7.system.entry.js} +1 -1
- package/lib/duet/{p-12b57efb.entry.js → p-b4bd3b2c.entry.js} +1 -1
- package/lib/duet/{p-5f56c425.system.entry.js → p-b53f51e9.system.entry.js} +1 -1
- package/lib/duet/{p-2100fda2.system.entry.js → p-b5afa22f.system.entry.js} +1 -1
- package/lib/duet/p-b5cf1014.system.entry.js +4 -0
- package/lib/duet/p-b62b1ae8.entry.js +4 -0
- package/lib/duet/p-b87e98f8.system.js +4 -0
- package/lib/duet/p-b88bf0cf.js +4 -0
- package/lib/duet/{p-9936eb61.entry.js → p-b92ebb57.entry.js} +1 -1
- package/lib/duet/{p-ee5c74bc.system.entry.js → p-ba01d549.system.entry.js} +1 -1
- package/lib/duet/{p-d287e564.entry.js → p-ba86d704.entry.js} +1 -1
- package/lib/duet/{p-eab15c94.system.entry.js → p-bc249477.system.entry.js} +1 -1
- package/lib/duet/{p-c46cff2a.system.js → p-bc97e6a8.system.js} +1 -1
- package/lib/duet/{p-d3b2d5de.system.entry.js → p-c00053cb.system.entry.js} +1 -1
- package/lib/duet/{p-b1487aa4.system.entry.js → p-c02998a1.system.entry.js} +1 -1
- package/lib/duet/{p-0d512165.entry.js → p-c3bbb91e.entry.js} +1 -1
- package/lib/duet/{p-24898376.entry.js → p-c5eaf3a1.entry.js} +1 -1
- package/lib/duet/{p-572bf138.entry.js → p-c9459a92.entry.js} +1 -1
- package/lib/duet/{p-d2f008ef.entry.js → p-c9d3f692.entry.js} +1 -1
- package/lib/duet/{p-420817c5.system.entry.js → p-cac48643.system.entry.js} +1 -1
- package/lib/duet/{p-618b1c12.entry.js → p-cb7dccf2.entry.js} +1 -1
- package/lib/duet/p-cbeb7a7f.entry.js +4 -0
- package/lib/duet/{p-6c8361b8.entry.js → p-cda3dd39.entry.js} +1 -1
- package/lib/duet/{p-955ccb5a.system.entry.js → p-cf02b043.system.entry.js} +1 -1
- package/lib/duet/{p-de32ceff.system.entry.js → p-cfa0f78a.system.entry.js} +1 -1
- package/lib/duet/{p-818fd2f6.entry.js → p-d00a1ca7.entry.js} +1 -1
- package/lib/duet/{p-8b2056f0.system.js → p-d1abb9cd.system.js} +1 -1
- package/lib/duet/{p-67ea455b.system.entry.js → p-d55cd34e.system.entry.js} +1 -1
- package/lib/duet/{p-57d70be4.system.entry.js → p-d5df40cf.system.entry.js} +1 -1
- package/lib/duet/{p-679b55fe.entry.js → p-d7ccf5ec.entry.js} +1 -1
- package/lib/duet/{p-426d835f.entry.js → p-d81b6edc.entry.js} +1 -1
- package/lib/duet/{p-caf28e68.system.entry.js → p-db0b77ca.system.entry.js} +1 -1
- package/lib/duet/{p-fb4c1c0a.system.entry.js → p-de2f8904.system.entry.js} +1 -1
- package/lib/duet/{p-fda88cec.system.entry.js → p-de81656a.system.entry.js} +1 -1
- package/lib/duet/p-e1827d9e.system.entry.js +4 -0
- package/lib/duet/{p-591ce092.entry.js → p-e669ce8c.entry.js} +1 -1
- package/lib/duet/{p-aada68bf.entry.js → p-e8b8a3ad.entry.js} +1 -1
- package/lib/duet/{p-74f81150.entry.js → p-e8bc416f.entry.js} +1 -1
- package/lib/duet/{p-dd8cad8a.entry.js → p-e9171ed3.entry.js} +1 -1
- package/lib/duet/{p-c1380dcb.system.entry.js → p-ea790730.system.entry.js} +2 -2
- package/lib/duet/{p-948b038a.system.entry.js → p-ec784e1d.system.entry.js} +1 -1
- package/lib/duet/{p-f57f0b8c.entry.js → p-edbffab0.entry.js} +1 -1
- package/lib/duet/{p-b994aa71.system.entry.js → p-eddd3652.system.entry.js} +1 -1
- package/lib/duet/{p-df82459a.entry.js → p-f1fcaad6.entry.js} +1 -1
- package/lib/duet/{p-4994dbf2.system.entry.js → p-f20ad02b.system.entry.js} +1 -1
- package/lib/duet/p-f27e5ce4.js +4 -0
- package/lib/duet/{p-9db6f107.system.entry.js → p-f2ddfe13.system.entry.js} +1 -1
- package/lib/duet/{p-d98c8e4e.system.entry.js → p-f49a7dd9.system.entry.js} +1 -1
- package/lib/duet/{p-9b702bc1.system.entry.js → p-f583ecaf.system.entry.js} +1 -1
- package/lib/duet/{p-0121cfad.entry.js → p-f6cfa6ea.entry.js} +1 -1
- package/lib/duet/p-f965caf6.entry.js +4 -0
- package/lib/duet/{p-f12a93a9.system.entry.js → p-fa7cdaa4.system.entry.js} +1 -1
- package/lib/duet/{p-5baa6a33.js → p-faed9fef.js} +1 -1
- package/lib/duet/{p-f6c800dd.system.entry.js → p-fb515009.system.entry.js} +1 -1
- package/lib/duet/{p-976918a1.system.entry.js → p-fb574eaf.system.entry.js} +1 -1
- package/lib/duet/{p-530e612b.js → p-fb811193.js} +1 -1
- package/lib/duet/{p-9192b71d.system.entry.js → p-fb98c26d.system.entry.js} +1 -1
- package/lib/duet/{p-82cf9d43.entry.js → p-fba4682d.entry.js} +1 -1
- package/lib/duet/{p-6a689584.system.entry.js → p-fcbcf5d6.system.entry.js} +1 -1
- package/lib/duet/p-fcca7eb3.entry.js +4 -0
- package/lib/duet/{p-6365f418.system.entry.js → p-fd6e9582.system.entry.js} +1 -1
- package/lib/esm/{a11y-utils-d3187c9b.js → a11y-utils-682fc061.js} +1 -1
- package/lib/esm/{app-globals-aa323b86.js → app-globals-5ae3ef64.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +2 -2
- package/lib/esm/duet-alert.entry.js +16 -16
- package/lib/esm/duet-badge.entry.js +3 -3
- package/lib/esm/duet-banner.entry.js +4 -4
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +4 -4
- package/lib/esm/duet-button_2.entry.js +9 -9
- package/lib/esm/duet-callout.entry.js +4 -4
- package/lib/esm/duet-caption_4.entry.js +30 -13
- package/lib/esm/duet-card.entry.js +5 -5
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +3 -3
- package/lib/esm/duet-chip.entry.js +3 -3
- package/lib/esm/duet-choice_2.entry.js +3 -3
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +8 -4
- package/lib/esm/duet-contact-card.entry.js +4 -4
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +4 -4
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +7 -7
- package/lib/esm/duet-empty-state.entry.js +3 -3
- package/lib/esm/duet-fieldset.entry.js +5 -5
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +7 -7
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +8 -8
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +9 -3
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +4 -4
- package/lib/esm/duet-menu-bar-button.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown.entry.js +5 -5
- package/lib/esm/duet-menu-bar-item.entry.js +6 -6
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +4 -4
- package/lib/esm/duet-modal.entry.js +11 -11
- package/lib/esm/duet-multiselect.entry.js +8 -8
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +6 -6
- package/lib/esm/duet-number-input.entry.js +3 -3
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +3 -3
- package/lib/esm/duet-pagination_2.entry.js +15 -15
- package/lib/esm/duet-phone-input.entry.js +9 -3
- package/lib/esm/duet-popup-menu_2.entry.js +8 -8
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-promo-card.entry.js +4 -4
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +23 -14
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +2 -2
- package/lib/esm/duet-shaped-image.entry.js +3 -3
- package/lib/esm/duet-show-more.entry.js +4 -4
- package/lib/esm/duet-slideout-lang.entry.js +3 -3
- package/lib/esm/duet-slideout-link.entry.js +6 -6
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
- package/lib/esm/duet-slideout-panel.entry.js +10 -10
- package/lib/esm/duet-slideout.entry.js +9 -9
- package/lib/esm/duet-status-icon.entry.js +8 -8
- package/lib/esm/duet-step_2.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +6 -6
- package/lib/esm/duet-textarea.entry.js +3 -3
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
- package/lib/esm/duet-toolbar-item.entry.js +7 -7
- package/lib/esm/duet-toolbar-link.entry.js +3 -3
- package/lib/esm/duet-toolbar.entry.js +3 -3
- package/lib/esm/duet-tooltip-button_2.entry.js +7 -7
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +4 -4
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +5 -5
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-2a62c871.js → errorcodes.utils-23d19523.js} +1 -1
- package/lib/esm/{focus-utils-27172227.js → focus-utils-b97d6fb5.js} +1 -1
- package/lib/esm/{index-2ab7ff5a.js → index-9b64dfa3.js} +6 -6
- package/lib/esm/{language-utils-579bbfe7.js → language-utils-87dc6eb1.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-2fa37472.js → slot-utils-b8cbdf64.js} +1 -1
- package/lib/esm/{teleport-546f382d.js → teleport-aa27d5f9.js} +2 -2
- package/lib/esm-es5/{a11y-utils-d3187c9b.js → a11y-utils-682fc061.js} +1 -1
- package/lib/esm-es5/{app-globals-aa323b86.js → app-globals-5ae3ef64.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +2 -2
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +2 -2
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip.entry.js +2 -2
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +2 -2
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-overlay.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
- package/lib/esm-es5/duet-phone-input.entry.js +1 -1
- package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +2 -2
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +2 -2
- package/lib/esm-es5/duet-status-icon.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-2a62c871.js → errorcodes.utils-23d19523.js} +1 -1
- package/lib/esm-es5/{focus-utils-27172227.js → focus-utils-b97d6fb5.js} +1 -1
- package/lib/esm-es5/index-9b64dfa3.js +4 -0
- package/lib/esm-es5/{language-utils-579bbfe7.js → language-utils-87dc6eb1.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-2fa37472.js → slot-utils-b8cbdf64.js} +1 -1
- package/lib/esm-es5/teleport-aa27d5f9.js +4 -0
- package/lib/types/components/duet-alert/duet-alert.d.ts +11 -4
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
- package/lib/types/components/duet-input/duet-input.d.ts +4 -0
- package/lib/types/components/duet-link/duet-link.d.ts +3 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +4 -0
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +5 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +9 -0
- package/lib/types/components.d.ts +54 -6
- package/package.json +4 -4
- package/lib/dist-custom-elements/p-9fda1d1d.js +0 -205
- package/lib/duet/p-0ac49d24.entry.js +0 -4
- package/lib/duet/p-0f99e898.entry.js +0 -4
- package/lib/duet/p-1219c4af.system.js +0 -4
- package/lib/duet/p-14fe190e.system.js +0 -5
- package/lib/duet/p-1a73d27a.entry.js +0 -4
- package/lib/duet/p-1b269e8b.system.entry.js +0 -4
- package/lib/duet/p-2f8ffc2b.system.entry.js +0 -4
- package/lib/duet/p-336da573.entry.js +0 -4
- package/lib/duet/p-38ff8286.js +0 -4
- package/lib/duet/p-3acc8647.system.js +0 -4
- package/lib/duet/p-43f0aaf5.entry.js +0 -4
- package/lib/duet/p-5e0bfce0.entry.js +0 -4
- package/lib/duet/p-5ff9214f.entry.js +0 -4
- package/lib/duet/p-7d396a31.entry.js +0 -4
- package/lib/duet/p-85c02068.entry.js +0 -4
- package/lib/duet/p-88f046a0.entry.js +0 -4
- package/lib/duet/p-897f21a7.system.js +0 -4
- package/lib/duet/p-98012c62.entry.js +0 -4
- package/lib/duet/p-9eeaf2e9.js +0 -4
- package/lib/duet/p-c936b330.system.entry.js +0 -4
- package/lib/duet/p-ca3cb21e.js +0 -4
- package/lib/duet/p-ecb2aca6.js +0 -5
- package/lib/duet/p-ed82b53d.system.entry.js +0 -4
- package/lib/duet/p-f6b21d17.system.js +0 -4
- package/lib/esm-es5/index-2ab7ff5a.js +0 -4
- package/lib/esm-es5/teleport-546f382d.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as t,h as r,H as a,g as i}from"./p-
|
|
4
|
+
import{r as e,c as t,h as r,H as a,g as i}from"./p-8fde9a1b.js";import{i as s,j as d,k as n,l as u}from"./p-1004af75.js";import{i as o}from"./p-aaa7a7bd.js";import{c as g}from"./p-5e59e970.js";import{i as l}from"./p-43b89e38.js";import{s as c,u as h}from"./p-a45e3f8b.js";const b={turva:{active:s,inactive:d},default:{active:n,inactive:u}},p=class{constructor(r){e(this,r),this.duetChange=t(this,"duetChange",3),this.duetInput=t(this,"duetInput",7),this.rangeId=g("DuetRange"),this.onInput=e=>{const t=e.target;t&&(this.value=parseFloat(t.value)||0),this.duetInput.emit({originalEvent:e,value:this.value,component:"duet-range-slider"})},this.onChange=e=>{const t=e.target;t&&(this.value=parseFloat(t.value)||0),clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{this.duetChange.emit({originalEvent:e,value:this.value,component:"duet-range-slider"})}),this.debounce)},this.theme="",this.margin="auto",this.expand=!1,this.identifier=void 0,this.name=void 0,this.required=!1,this.disabled=!1,this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.min=0,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.labelHidden=!1,this.unit="",this.max=100,this.step=1,this.locale="fi-FI",this.value=0,this.debounce=0}componentWillLoad(){o(this)}connectedCallback(){c(this)}disconnectedCallback(){h(this)}async setFocus(e){this.nativeInput.focus(e)}calculatePercentage(){return(this.value-this.min)/(this.max-this.min)*100}render(){const e=this.identifier||this.rangeId,t="turva"===this.theme?"turva":"default",{inactive:i,active:s}=b[t],d=this.calculatePercentage(),n={background:`-webkit-linear-gradient(left,${s} 0%,${s} ${d}%,${i} ${d}%)`};return r(a,{class:{"duet-m-0":"none"===this.margin,"duet-expand":this.expand}},r("div",{class:{"duet-range-container":!0,"duet-label-hidden":this.labelHidden,"duet-theme-turva":"turva"===this.theme,"duet-ie":l(),"duet-range-disabled":this.disabled}},r("duet-label",{theme:t,color:this.labelColor,weight:this.labelWeight,margin:"small",for:e},this.label),r("output",{"aria-hidden":"true",htmlFor:e,class:"duet-output"},this.value.toLocaleString(this.locale),this.unit),r("input",{onInput:this.onInput,onChange:this.onChange,ref:e=>this.nativeInput=e,type:"range",min:this.min,max:this.max,step:this.step,value:this.value,style:n,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.value,"aria-valuetext":`${this.value} ${this.unit}`,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,id:e,name:this.name,disabled:this.disabled,required:this.required,class:"duet-range"})))}get element(){return i(this)}};p.style='*.sc-duet-range-slider,*.sc-duet-range-slider::after,*.sc-duet-range-slider::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-range-slider-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-range-slider-h:last-child,.sc-duet-range-slider-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-range-slider-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-range-slider-h{width:100% !important}}.duet-m-0.sc-duet-range-slider-h{margin:0 !important}.duet-range-container.sc-duet-range-slider{position:relative;width:100%}.duet-output.sc-duet-range-slider{position:absolute;top:12px;right:0;z-index:200;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-theme-turva.sc-duet-range-slider .duet-output.sc-duet-range-slider{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-range-disabled.sc-duet-range-slider .duet-output.sc-duet-range-slider{color:rgb(127, 150, 165)}.duet-range-disabled.duet-theme-turva.sc-duet-range-slider .duet-output.sc-duet-range-slider{color:rgb(143, 147, 158)}.duet-range.sc-duet-range-slider{position:relative;z-index:100;width:100%;height:4px;background:rgb(181, 198, 208);border-radius:4px}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider{background:rgb(199, 202, 207)}.duet-ie.sc-duet-range-slider .duet-range.sc-duet-range-slider{display:block;width:auto;height:26px;background:transparent !important}.duet-range.sc-duet-range-slider::-moz-range-track{height:1px;background:transparent !important;border:0;-moz-appearance:none}.duet-range.sc-duet-range-slider::-ms-track{color:transparent;background:transparent;border:0}.duet-range.sc-duet-range-slider:focus,.duet-range.sc-duet-range-slider:active{outline:0}.user-is-tabbing.sc-duet-range-slider-h .duet-range.sc-duet-range-slider:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(0, 119, 179, 0.75)}.user-is-tabbing.sc-duet-range-slider-h .duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(23, 28, 58, 0.75)}.duet-range.sc-duet-range-slider::-webkit-slider-runnable-track{background:transparent}.duet-range.sc-duet-range-slider::-webkit-slider-thumb{position:relative;width:24px;height:24px;cursor:-webkit-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;transition:box-shadow 300ms ease;-webkit-appearance:none}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-webkit-slider-thumb{border-color:rgb(143, 147, 158)}.duet-range.sc-duet-range-slider:active::-webkit-slider-thumb{cursor:-webkit-grabbing}.duet-range.sc-duet-range-slider::-moz-range-thumb{position:relative;width:24px;height:24px;cursor:-moz-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;appearance:none}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-moz-range-thumb{border-color:rgb(143, 147, 158)}.duet-range.sc-duet-range-slider:active::-moz-range-thumb{cursor:-moz-grabbing}.duet-range.sc-duet-range-slider::-ms-thumb{position:relative;width:24px;height:24px;overflow:visible;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-thumb{border-color:rgb(143, 147, 158)}.duet-range.sc-duet-range-slider:disabled{background:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled{background:rgb(199, 202, 207) !important}.duet-range.sc-duet-range-slider:disabled::-webkit-slider-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-webkit-slider-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range.sc-duet-range-slider:disabled::-moz-range-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-moz-range-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range.sc-duet-range-slider:disabled::-ms-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-ms-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range.sc-duet-range-slider::-ms-fill-lower{height:4px;background:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-fill-lower{background:rgb(198, 12, 48)}.duet-range.sc-duet-range-slider::-ms-fill-upper{height:4px;background:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-fill-upper{background:rgb(199, 202, 207)}.duet-label-hidden.sc-duet-range-slider duet-label.sc-duet-range-slider,.duet-label-hidden.sc-duet-range-slider output.sc-duet-range-slider{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{p as duet_range_slider}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,a,o){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function n(t){try{u(o.next(t))}catch(t){r(t)}}function s(t){try{u(o["throw"](t))}catch(t){r(t)}}function u(t){t.done?a(t.value):i(t.value).then(n,s)}u((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(t){return function(e){return u([t,e])}}function u(s){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(a=0)),a)try{if(o=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;i=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(s[0]===6&&a.label<r[1]){a.label=r[1];r=s;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(s);break}if(r[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];i=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
|
+
/*!
|
|
3
|
+
* Built with Duet Design System
|
|
4
|
+
*/System.register(["./p-575c30ef.system.js","./p-e216bea4.system.js","./p-bc97e6a8.system.js","./p-752fa0fc.system.js","./p-d1abb9cd.system.js","./p-cbbf6d6a.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-ef731dfb.system.js"],(function(t){"use strict";var e,a,o,i,r,n,s,u,l,d,b,c,h,p,f,g,m,v,x,k,w,y;return{setters:[function(t){e=t.r;a=t.h;o=t.H;i=t.g;r=t.c},function(t){n=t.i},function(t){s=t.h;u=t.a},function(t){l=t.s;d=t.u;b=t.o;c=t.p;h=t.d;p=t.b;f=t.a;g=t.c},function(t){m=t.g;v=t.c;x=t.d;k=t.a},function(t){w=t.d},function(t){y=t.c},function(){},function(){}],execute:function(){var z="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{position:relative;display:flex}:host .duet-scrollable-items.buttons .duet-scrollable-button-container{position:relative;flex:0 0 auto;flex-basis:40px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--occluded{flex-basis:0;flex-shrink:1;width:0;padding:10px 0;overflow:hidden;visibility:hidden}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute{position:absolute;top:0;z-index:210;width:auto;height:100%;padding:0 16px;background-color:rgb(255, 255, 255)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.left{left:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.right{right:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button{position:absolute;display:flex;flex:0 0 auto;flex-basis:40px;align-items:center;height:100%;cursor:pointer;transition:transform 300ms ease}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button:active duet-icon{transition:transform 300ms ease;transform:scale(0.8)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--left{left:0;padding:10px 10px 10px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--right{right:0;padding:10px 0 10px 10px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--top{align-items:flex-start}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--bottom{align-items:flex-end}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute{padding:0 7px;border:1px solid rgb(212, 223, 229)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--left{border-radius:8px 0 0 8px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--right{border-radius:0 8px 8px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(0, 119, 179);border-width:2px;}.duet-theme-turva :host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button[hidden]{display:none !important}:host .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;padding-inline:10px;margin-inline:-10px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);-webkit-mask-size:50% 100%, 50% 100%;-webkit-mask-position:left, right;-webkit-mask-repeat:no-repeat;mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);mask-size:50% 100%, 50% 100%;mask-position:left, right;mask-repeat:no-repeat;}:host .duet-scrollable-items .duet-scrollable-list--absolute{padding-right:0;padding-left:2px;margin-inline:0;-webkit-mask:none !important;mask:none !important}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items .duet-scrollable-list.gap-none{gap:0}:host .duet-scrollable-items .duet-scrollable-list.gap-large{gap:20px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--xx-small{padding-top:4px;padding-bottom:4px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--x-small{padding-top:8px;padding-bottom:8px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--small{padding-top:12px;padding-bottom:12px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--medium{padding-top:16px;padding-bottom:16px}:host .duet-scrollable-items .duet-scrollable-list.duet-scrollable-stretch{width:100%}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){flex-shrink:0;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;scroll-snap-align:center}";var _=z;var j=t("duet_scrollable",function(){function t(t){var a=this;e(this,t);this.currentIndex=0;this.scrollPaneElement=undefined;this.hasCollapseButtonLabelSlot=false;this.resizeObserver=new ResizeObserver((function(t){if((t===null||t===void 0?void 0:t.length)===1){var e=a.getOverlayWidth();a.checkScrollingNeeded(t[0].target,e)}}));this.collapsedOnClick=function(){a.collapsed=!a.collapsed};this.scrollPaneAtStart=true;this.needsScrolling=true;this.scrollPaneAtEnd=false;this.childrenData={};this.theme="";this.identifier="";this.collapsed=false;this.buttons=true;this.buttonAlignment="center";this.buttonPosition="relative";this.center=false;this.padding="none";this.gap="large";this.selected=0;this.stretch=false}t.prototype.watchPropHandler=function(t){this.scrollToElement(t,"center")};t.prototype.componentWillLoad=function(){n(this);this.hasCollapseButtonLabelSlot=s(this.element,"collapse-button-label")};t.prototype.componentDidLoad=function(){var t=this;requestAnimationFrame((function(){if(t.scrollPaneElement){var e=t.buttonPosition==="absolute"?0:5;t.checkScrollingNeeded(t.scrollPaneElement,e);t.updateScrollButtons();t.resizeObserver.observe(t.scrollPaneElement)}}))};t.prototype.disconnectedCallback=function(){this.resizeObserver.disconnect()};t.prototype.getScrollPaneElements=function(){return u(this.element)};t.prototype.checkScrollingNeeded=function(t,e){if(t===void 0){t=this.scrollPaneElement}if(e===void 0){e=5}var a;if(!t){return}var o=((a=t.parentElement)===null||a===void 0?void 0:a.getBoundingClientRect().width)||0;var i=t.scrollWidth;var r=this.getOverlayWidth()*2;this.needsScrolling=i-r>o+e;if(!this.needsScrolling){this.scrollPaneAtStart=true;this.scrollPaneAtEnd=true}else{this.updateScrollButtons()}};t.prototype.getLastVisibleElement=function(){var t=this;var e=this.getScrollPaneElements().find((function(e){return e.getBoundingClientRect().x+e.getBoundingClientRect().width-t.scrollPaneElement.getBoundingClientRect().x>t.scrollPaneElement.clientWidth}));var a=this.getScrollPaneElements().indexOf(e);if(e.clientWidth>this.scrollPaneElement.clientWidth){return a}return a-1};t.prototype.getFirstVisibleElement=function(){var t=this;var e=this.getScrollPaneElements();var a=e.find((function(e){return e.getBoundingClientRect().x>t.scrollPaneElement.getBoundingClientRect().x}));var o=!a?e.length:e.indexOf(a);var i=Math.max(o-1,0);if(e[i].clientWidth>this.scrollPaneElement.clientWidth){return i}return o};t.prototype.updateScrollButtons=function(t,e){if(t===void 0){t=null}if(e===void 0){e=this.scrollPaneElement}if(!this.buttons){return}if(t&&t.clientWidth>this.scrollPaneElement.clientWidth){var a=this.getScrollPaneElements().indexOf(t);if(a==0){this.scrollPaneAtStart=true}if(a==this.getScrollPaneElements().length-1){this.scrollPaneAtEnd=true}return}if(e.scrollLeft<=0){this.scrollPaneAtStart=true}else if(e.scrollLeft>0){this.scrollPaneAtStart=false}if(e.clientWidth+e.scrollLeft+this.getOverlayWidth()>=e.scrollWidth){this.scrollPaneAtEnd=true}else if(e.clientWidth+e.scrollLeft+this.getOverlayWidth()<e.scrollWidth){this.scrollPaneAtEnd=false}};t.prototype.scrollToElement=function(t,e){var a=this;if(t===void 0){t=this.currentIndex}var o=this.getScrollPaneElements();if(!o||o.length===0){return}if(t+1>=o.length){t=o.length-1}if(t<0){t=0}var i=o[0].getBoundingClientRect().x;var r=5;var n=function(){if(o[0].getBoundingClientRect().x===i){r--;if(r!==0){window.requestAnimationFrame(n);return}a.updateScrollButtons(o[t])}else{window.requestAnimationFrame(n);i=o[0].getBoundingClientRect().x}};o[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:e});window.requestAnimationFrame(n)};t.prototype.scrollLeft=function(){this.scrollPaneAtEnd=false;var t=this.getFirstVisibleElement();this.scrollToElement(t-1,"center")};t.prototype.scrollRight=function(){this.scrollPaneAtStart=false;var t=this.getLastVisibleElement();this.scrollToElement(t+1,"center")};t.prototype.getOverlayWidth=function(){if(this.buttonPosition==="absolute"){return this.theme==="turva"?1:0}return 10};t.prototype.renderButton=function(t){var e,o;var i=this;var r=this.theme==="turva"?"color-primary-darker-turva":"color-primary";var n=this.theme==="turva"?"color-gray-turva":"color-gray";var s=function(){if(t==="left"){i.scrollLeft()}else{i.scrollRight()}};var u=t==="left"?this.scrollPaneAtStart:this.scrollPaneAtEnd;return a("div",{class:(e={"duet-scrollable-button-container":true},e["".concat(t)]=true,e["duet-scrollable-button-container--occluded"]=!this.needsScrolling,e["duet-scrollable-button-container--".concat(this.buttonPosition)]=true,e),hidden:!this.buttons||this.buttonPosition==="absolute"&&u},a("span",{part:"".concat(this.identifier,"-button-").concat(t),"aria-hidden":"true",class:(o={"duet-scrollable-button":true},o["duet-scrollable-button--".concat(this.buttonPosition)]=true,o["duet-scrollable-button--".concat(this.buttonAlignment)]=true,o["duet-scrollable-button--".concat(t)]=true,o),onClick:function(){s();if(document.activeElement){document.activeElement.blur()}},hidden:!this.buttons||u},a("duet-icon",{color:u?n:r,name:t==="left"?"action-arrow-left":"action-arrow-right",size:this.buttonPosition==="absolute"?"x-small":"small",margin:"none"})))};t.prototype.render=function(){var t;var e=this;return a(o,{key:"a6b6c47b76b51d36baeb7c17ea49d02072804518",class:{"duet-theme-turva":this.theme==="turva","duet-theme-default":this.theme==="default"}},this.hasCollapseButtonLabelSlot&&a("div",{key:"f02b7eb92b641ae95f75c65b1770b70f0f0b4395",class:{collapse:true,hide:!this.needsScrolling&&!this.collapsed}},a("duet-button",{key:"361db712df5cd053b2893967d4197dad92c51ea7",variation:"plain",margin:"none","center-text":true,onClick:function(){return e.collapsedOnClick()}},a("slot",{key:"fab8fa79977d5437808b2ba76887954563f8c83d",name:"collapse-button-label"}))),a("div",{key:"d4a34094350602896f3c3af6f9170d6285cb2af1",class:{"duet-scrollable-items":true,buttons:this.buttons,center:this.center,"duet-theme-turva":this.theme==="turva"}},this.buttons&&this.renderButton("left"),a("div",{key:"06a9edfb77eac6cf1435811b6f1981abbd91adf4",class:(t={"duet-scrollable-list":true},t["duet-scrollable-list--".concat(this.buttonPosition)]=true,t["gap-".concat(this.gap)]=true,t.collapsed=this.collapsed,t["duet-overflow-padding--".concat(this.padding)]=this.padding!=="none",t["duet-scrollable-list--".concat(this.buttonPosition)]=this.buttonPosition==="absolute",t["duet-scrollable-stretch"]=this.stretch,t),onScroll:function(){return e.updateScrollButtons()},ref:function(t){return e.scrollPaneElement=t}},a("slot",{key:"890f6a6957b1e9aaf3cb16fff1cda5f4e3b0da00"})),this.buttons&&this.renderButton("right")))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["watchPropHandler"]}},enumerable:false,configurable:true});return t}());j.style=_;var S=".sc-duet-tab-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab.sc-duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected.sc-duet-tab{display:block}.duet-tab.has-content-id.sc-duet-tab,.duet-tab.has-content-id.selected.sc-duet-tab{display:none}.user-is-tabbing.sc-duet-tab-h .duet-tab.sc-duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-tab-h .duet-tab.duet-theme-turva.sc-duet-tab:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";var I=S;var U=t("duet_tab",function(){function t(t){var a=this;e(this,t);this.setupContentElement=function(){if(a.contentId){a.tabpanelElement=document.getElementById(a.contentId);if(a.tabpanelElement){a.tabpanelElement.setAttribute("role","tabpanel");a.tabpanelElement.setAttribute("tabindex","-1");a.tabpanelElement.removeEventListener("focus",a.tabpanelElementFocusListener);a.tabpanelElement.removeEventListener("blur",a.tabpanelElementBlurListener);a.tabpanelElement.addEventListener("focus",a.tabpanelElementFocusListener);a.tabpanelElement.addEventListener("blur",a.tabpanelElementBlurListener);if(a.accessibleDescription){a.tabpanelElement.setAttribute("aria-description",a.accessibleDescription)}if(a.accessibleLabelledBy){a.tabpanelElement.setAttribute("aria-labelledby",a.accessibleLabelledBy)}if(a.selected){a.tabpanelElement.toggleAttribute("hidden",false)}else{a.tabpanelElement.toggleAttribute("hidden",true)}}}};this.tabpanelElementFocusListener=function(){if(a.element.classList.contains("user-is-tabbing")){a.tabpanelElement.style.outline="0";a.tabpanelElement.style.boxShadow=w(a.theme==="turva"?"focus-turva":"focus")}};this.tabpanelElementBlurListener=function(){a.tabpanelElement.style.outline=null;a.tabpanelElement.style.boxShadow=null};this.theme="";this.label=undefined;this.caption=undefined;this.selected=undefined;this.notificationMark=undefined;this.accessibleDescriptionDefault=null;this.accessibleDescription=this.accessibleDescriptionDefault?m(this.accessibleDescriptionDefault):null;this.accessibleLabelledBy=undefined;this.contentId=undefined}t.prototype.componentWillLoad=function(){n(this)};t.prototype.connectedCallback=function(){v(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"});l(this);this.setupContentElement()};t.prototype.disconnectedCallback=function(){x(this);d(this);if(this.tabpanelElement){this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener.bind(this));this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener.bind(this));this.tabpanelElement=undefined}};t.prototype.setupSelected=function(t,e){if(!!t===!!e){return}this.setupContentElement()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.tabpanelElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return a("div",{ref:function(e){if(!t.contentId){t.tabpanelElement=e}},role:"tabpanel",class:{"duet-theme-turva":this.theme==="turva","duet-tab":true,selected:this.selected,"has-content-id":!!this.contentId},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy,tabindex:"-1"},a("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["setupSelected"]}},enumerable:false,configurable:true});return t}());U.style=I;var C='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(222, 224, 228)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-top:0;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper{}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper{position:relative;width:100%;overflow:hidden;border-radius:8px;}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay{display:contents}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background,.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{position:absolute;width:100%;height:100%;pointer-events:none;border-radius:8px}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background{z-index:100;background:rgb(245, 248, 250)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{position:absolute;top:0;left:0;width:100%;height:100%;margin-block:1px;content:"";border-radius:8px;box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-theme-turva .duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{z-index:206;border:1px solid rgb(212, 223, 229)}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:inline-block;width:auto;padding:20px;margin-left:-2px;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.1;text-align:left;text-decoration:none;cursor:pointer;border-right:2px solid rgb(212, 223, 229);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-tab-group-stretch .duet-tab-button{flex:1 1 0;min-width:fit-content;text-align:center}.duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button:hover{z-index:200;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-tab-button:hover{border-color:rgb(143, 147, 158)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(198, 12, 48);border-color:rgb(222, 224, 228);border-bottom-color:rgb(198, 12, 48)}.duet-tab-button:focus{z-index:205;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-variation-default .duet-tab-button{padding:11px 20px 13px 20px;overflow:hidden;font-size:0.875rem;color:rgb(81, 105, 123);background:rgb(245, 248, 250);border:1px solid rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button.switch-large-at-always{padding:15px 28px 17px 28px;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-default .duet-tab-button.switch-large-at-small{padding:15px 28px 17px 28px;font-size:1rem}}.duet-tab-variation-default .duet-tab-button.selected{color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-tab-variation-default .duet-tab-button.selected::after{position:absolute;right:-1px;bottom:0;z-index:300;display:block;width:calc(100% + 2px);height:2px;content:"";background-color:rgb(0, 119, 179)}.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(45, 64, 81);background:rgb(228, 236, 239)}.duet-tab-variation-default .duet-tab-button:first-child{border-radius:8px 0 0 8px}.duet-tab-variation-default .duet-tab-button:last-child{border-radius:0 8px 8px 0}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button:last-child{border-radius:0}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button.selected::after{height:3px}.duet-theme-turva.duet-tab-variation-default .duet-tab-button{color:rgb(98, 104, 122)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected{color:rgb(51, 5, 20);background:rgb(255, 255, 255)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::after{background-color:rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:not(.selected){z-index:200;box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:hover:not(.selected){z-index:206;color:rgb(45, 52, 79);background:rgb(234, 235, 239)}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding:12px 0;margin-left:0;font-size:0.875rem;color:rgb(98, 121, 138);border-width:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button.switch-large-at-always{padding:20px 0;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-plain .duet-tab-button.switch-large-at-small{padding:20px 0;font-size:1rem}}.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(8, 42, 77)}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button{color:rgb(113, 118, 132)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(51, 5, 20)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(51, 5, 20);border-bottom:2px solid rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(181, 198, 208);border-top:2px solid rgb(181, 198, 208);border-bottom-color:rgb(0, 119, 179);border-left:2px solid rgb(181, 198, 208);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(181, 198, 208);border-bottom-color:rgb(113, 118, 132)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(240, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(113, 118, 132);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(98, 121, 138)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(113, 118, 132)}';var E=C;var A=t("duet_tab_group",function(){function t(t){var a=this;e(this,t);this.duetChange=r(this,"duetChange",3);this.duetTabChange=r(this,"duetTabChange",7);this.duetTabChangeRequested=r(this,"duetTabChangeRequested",7);this.id=y("DuetTabGroup");this.handleKeyDown=function(t){var e;if(h(t)||p(t)){e=t.target.previousElementSibling}else if(f(t)||g(t)){e=t.target.nextElementSibling}if(b(t)&&!c(t)){t.preventDefault();a.element.querySelector(":scope > duet-tab[selected]").setFocus()}if(e){t.preventDefault();e.click();e.focus()}};this.onTabSelect=function(t){if(a.tabChangeConfirm){if(t!==a.selected){var e={value:t,component:"duet-tab-group"};a.duetTabChangeRequested.emit(e)}}else{a.openTab(t)}};this.scrollToActive=function(){setTimeout((function(){var t=a.tabsContainer.querySelector(".selected");if(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}),50)};this.tabs=[];this.selected=undefined;this.theme="";this.scrolls=true;this.collapses=false;this.accessibleLabel=undefined;this.variation="default";this.language=k();this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"};this.label=m(this.labelDefaults,this.language);this.labelHidden=true;this.identifier=this.id;this.margin="auto";this.padding="auto";this.setTabIndex=true;this.tabChangeConfirm=false;this.switchLargeBreakpoint="small";this.fillSpace=false;this.stretch=false}t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:if(typeof MutationObserver!=="undefined"){this.mutationO=new MutationObserver((function(){t.updateTabs()}));this.mutationO.observe(this.element,{attributes:true,attributeFilter:["label"],childList:true,characterData:true,subtree:true})}return[4,this.updateTabs()];case 1:e.sent();l(this);return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}d(this)};t.prototype.componentWillLoad=function(){n(this)};t.prototype.componentDidLoad=function(){var t=this;this.intersectionObserver=new IntersectionObserver((function(e){if(e.length>0&&e[0].isIntersecting){t.scrollToActive();t.intersectionObserver.disconnect()}}),{root:null,threshold:0});this.intersectionObserver.observe(this.element)};t.prototype.openTab=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){if(t>=this.tabs.length){throw new Error("[duet-tabs] Index ".concat(t," is out of bounds of tabs length"))}this.selected=t;this.tabs.forEach((function(e,a){e.selected=a===t}));this.scrollToActive();e={value:t,component:"duet-tab-group"};this.duetChange.emit(e);this.duetTabChange.emit(e);return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.");return[2]}))}))};t.prototype.getTabs=function(){var t=this;var e=Array.from(this.element.querySelectorAll("duet-tab"));var a=e.filter((function(e){return e.closest("duet-tab-group")===t.element}));if(a.length===0){throw new Error("[duet-tabs] Must have at least one tab")}return a};t.prototype.getButtonId=function(t){return"".concat(this.id,"-button-").concat(t)};t.prototype.getTabId=function(t){return"".concat(this.id,"-tab-").concat(t)};t.prototype.getAccessibleDescription=function(t){var e=this.tabs[t].getAttribute("accessible-description")||null;return e};t.prototype.updateTabs=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.selected=undefined;this.tabs=this.getTabs();this.tabs.forEach((function(e,a){e.id=t.getTabId(a);if(e.selected){if(t.selected===undefined){t.selected=a}else{e.selected=false}}}));if(this.selected===undefined){this.selected=0;this.tabs[0].selected=true}return[2]}))}))};t.prototype.isCentered=function(){return window&&window.getComputedStyle(this.element).textAlign=="center"};t.prototype.render=function(){var t;var e=this;var o=this.variation==="plain-scrolling"?"duet-tab-variation-plain":"duet-tab-variation-".concat(this.variation);var i=this.variation==="checked"||this.variation==="plain-scrolling";var r="switch-large-at-".concat(this.switchLargeBreakpoint?this.switchLargeBreakpoint:"small");var n=this.tabs.map((function(t,o){var i;return a("button",{role:"tab",id:e.getButtonId(o),"aria-selected":t.selected?"true":"false","aria-description":e.getAccessibleDescription(o),tabindex:t.selected?"0":"-1",part:"".concat(e.identifier,"-button ").concat(t.selected?"".concat(e.identifier,"-button--selected"):""),type:"button",class:(i={"duet-p-0":e.padding==="none","duet-tab-button":true,"stackable-tab":e.variation==="checked"&&e.tabs.length<=3,selected:t.selected},i["duet-notification-mark-".concat(t.notificationMark)]=!!t.notificationMark,i[r]=["default","plain","plain-scrolling"].includes(e.variation)?true:false,i),onClick:function(){return e.onTabSelect(o)},onKeyDown:function(t){return e.handleKeyDown(t)}},e.variation==="checked"?a("div",{class:{"checked-tab-content":true,"stackable-checked-tab-content":e.tabs.length<=3}},a("div",{class:{"checked-tab-description":true,"stackable-description":e.tabs.length<=3}},a("p",null,t.label),a("p",{class:{"tab-caption":true,selected:t.selected}},t.caption)),a("div",{class:{"stackable-checkmark":e.tabs.length<=3}},a("duet-checkmark",{theme:e.theme,checked:t.selected,type:"radio","presentation-only":true,center:true}))):t.label)}));return a("div",{key:"91c98abed0ba6cb8e204f30a8272f02258b6341f",class:(t={"duet-tab-group":true,"duet-theme-turva":this.theme==="turva"},t[o]=true,t["duet-tab-plain-scrolling"]=this.variation==="plain-scrolling",t["duet-tab-group-scrolls"]=true,t),"aria-label":this.accessibleLabel},a("div",{key:"934ea6b673a31b130e8a2c6f0f4111ab176d46b1",role:"tablist",class:{"duet-m-0":this.margin==="none"||this.variation==="checked","duet-tab-group-tabs":true,"duet-tab-group-hidden":this.tabs.length>3&&!i,"duet-tab-group-fill-space":this.fillSpace&&!this.stretch&&this.variation==="default","duet-tab-group-stretch":this.stretch},ref:function(t){e.tabsContainer=t}},this.variation==="checked"?n:a("div",{class:{"duet-tab-group-scrollable-wrapper":true,"duet-tab-group-fill-space-wrapper":this.fillSpace&&this.variation==="default"}},this.fillSpace&&!this.stretch&&this.variation==="default"&&a("div",{class:"duet-scrollable-stretch-overlay"},a("div",{class:"background"}),a("div",{class:"border"})),a("duet-scrollable",{selected:this.selected,identifier:this.identifier,gap:["default","plain","plain-scrolling"].includes(this.variation)?"none":"large",buttonPosition:this.variation==="default"?"absolute":"relative",center:this.isCentered()?this.isCentered():this.element.style.textAlign=="center",theme:this.theme,stretch:this.stretch},n))),a("div",{key:"75d72de91a5bfb5a4ea4ec860aec4f330aa68729",class:{"duet-tab-group-content":true,"duet-m-0":this.margin==="none","checked-group-content":this.variation==="checked"}},a("slot",{key:"d8183827bbd8150188de28f92dc42aa1a42207ac"})))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());A.style=E}}}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
const t="duet",e={cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.1.14"};var n=Object.defineProperty,l={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},o=new WeakMap,s=t=>o.get(t),i=(t,e)=>o.set(e.t=t,e),r=(t,e)=>e in t,c=(t,e)=>(0,console.error)(t,e),f=new Map,u=new Map,a="s-id",d="c-id",h="slot-fb{display:contents}slot-fb[hidden]{display:none}",$="http://www.w3.org/1999/xlink",p="undefined"!=typeof window?window:{},m=p.document||{head:{}},v={l:0,o:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},y=t=>Promise.resolve(t),b=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),w=!1,g=[],j=[],O=(t,e)=>n=>{t.push(n),w||(w=!0,e&&4&v.l?E(k):v.raf(k))},S=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){c(t)}t.length=0},k=()=>{S(g),S(j),(w=g.length>0)&&v.raf(k)},E=t=>y().then(t),x=O(j,!0),C={},I=t=>"object"==(t=typeof t)||"function"===t;function M(t){var e,n,l;return null!=(l=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,e)=>{for(var l in e)n(t,l,{get:e[l],enumerable:!0})})({},{err:()=>A,map:()=>N,ok:()=>R,unwrap:()=>U,unwrapErr:()=>F});var R=t=>({isOk:!0,isErr:!1,value:t}),A=t=>({isOk:!1,isErr:!0,value:t});function N(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>R(t))):R(n)}if(t.isErr)return A(t.value);throw"should never get here"}var P,T,D,U=t=>{if(t.isOk)return t.value;throw t.value},F=t=>{if(t.isErr)return t.value;throw t.value},H=(t,e,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof t&&!I(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?L(null,l):l),r=i)};if(f(n),e){e.key&&(o=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,W);const u=L(t,null);return u.u=e,c.length>0&&(u.h=c),u.$=o,u.p=s,u},L=(t,e)=>({l:0,m:t,i:e,v:null,h:null,u:null,$:null,p:null}),_={},W={forEach:(t,e)=>t.map(B).forEach(e),map:(t,e)=>t.map(B).map(e).map(V)},B=t=>({vattrs:t.u,vchildren:t.h,vkey:t.$,vname:t.p,vtag:t.m,vtext:t.i}),V=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),H(t.vtag,e,...t.vchildren||[])}const e=L(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.$=t.vkey,e.p=t.vname,e},q=(t,e,n,l,o,s)=>{if(n!==l){let i=r(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=z(n),s=z(l);t["s-si"]&&s.indexOf(t["s-si"])<0&&s.push(t["s-si"]),e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(i||"o"!==e[0]||"n"!==e[1]){const r=I(l);if((i||r&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(f?t.removeAttributeNS($,e):t.removeAttribute(e)):(!i||4&s||o)&&!r&&(l=!0===l?"":l,f?t.setAttributeNS($,e,l):t.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):r(p,c)?c.slice(2):c[2]+e.slice(3),n||l){const o=e.endsWith(J);e=e.replace(K,""),n&&v.rel(t,e,n,o),l&&v.ael(t,e,l,o)}}},G=/\s/,z=t=>t?t.split(G):[],J="Capture",K=RegExp(J+"$"),Q=(t,e,n)=>{const l=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.u||C,s=e.u||C;for(const t of X(Object.keys(o)))t in s||q(l,t,o[t],void 0,n,e.l);for(const t of X(Object.keys(s)))q(l,t,o[t],s[t],n,e.l)};function X(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Y=!1,Z=!1,tt=!1,et=!1,nt=(t,e,n,l)=>{var o;const s=e.h[n];let i,r,c,f=0;if(Y||(tt=!0,"slot"===s.m&&(P&&l.classList.add(P+"-s"),s.l|=s.h?2:1)),null!==s.i)i=s.v=m.createTextNode(s.i);else if(1&s.l)i=s.v=m.createTextNode("");else{if(et||(et="svg"===s.m),i=s.v=m.createElementNS(et?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Y&&2&s.l?"slot-fb":s.m),et&&"foreignObject"===s.m&&(et=!1),Q(null,s,et),!!i.getRootNode().querySelector("body")&&null!=P&&i["s-si"]!==P&&i.classList.add(i["s-si"]=P),vt(i,l),s.h)for(f=0;f<s.h.length;++f)r=nt(t,s,f,i),r&&i.appendChild(r);"svg"===s.m?et=!1:"foreignObject"===i.tagName&&(et=!0)}return i["s-hn"]=D,3&s.l&&(i["s-sr"]=!0,i["s-cr"]=T,i["s-sn"]=s.p||"",i["s-rf"]=null==(o=s.u)?void 0:o.ref,c=t&&t.h&&t.h[n],c&&c.m===s.m&&t.v&<(t.v,!1)),i},lt=(t,e)=>{v.l|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const l=n[t];l["s-hn"]!==D&&l["s-ol"]&&(pt(ct(l),l,rt(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,tt=!0),e&<(l,e)}v.l&=-2},ot=(t,e,n,l,o,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=nt(null,n,o,t),i&&(l[o].v=i,pt(r,i,rt(e))))},st=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.v;$t(e),t&&(Z=!0,t["s-ol"]?t["s-ol"].remove():lt(t,!0),t.remove())}}},it=(t,e,n=!1)=>!(t.m!==e.m||("slot"===t.m?"j"in t&&n&&8!==t.v.nodeType||t.p!==e.p:!n&&t.$!==e.$)),rt=t=>t&&t["s-ol"]||t,ct=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ft=(t,e,n=!1)=>{const l=e.v=t.v,o=t.h,s=e.h,i=e.m,r=e.i;let c;null===r?(et="svg"===i||"foreignObject"!==i&&et,("slot"!==i||Y)&&Q(t,e,et),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=e.length-1,d=e[0],h=e[a],$=l.length-1,p=l[0],m=l[$];for(;r<=a&&c<=$;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==p)p=l[++c];else if(null==m)m=l[--$];else if(it(d,p,o))ft(d,p,o),d=e[++r],p=l[++c];else if(it(h,m,o))ft(h,m,o),h=e[--a],m=l[--$];else if(it(d,m,o))"slot"!==d.m&&"slot"!==m.m||lt(d.v.parentNode,!1),ft(d,m,o),pt(t,d.v,h.v.nextSibling),d=e[++r],m=l[--$];else if(it(h,p,o))"slot"!==d.m&&"slot"!==m.m||lt(h.v.parentNode,!1),ft(h,p,o),pt(t,h.v,d.v),h=e[--a],p=l[++c];else{for(f=-1,u=r;u<=a;++u)if(e[u]&&null!==e[u].$&&e[u].$===p.$){f=u;break}f>=0?(i=e[f],i.m!==p.m?s=nt(e&&e[c],n,f,t):(ft(i,p,o),e[f]=void 0,s=i.v),p=l[++c]):(s=nt(e&&e[c],n,c,t),p=l[++c]),s&&pt(ct(d.v),s,rt(d.v))}r>a?ot(t,null==l[$+1]?null:l[$+1].v,n,l,c,$):c>$&&st(e,r,a)})(l,o,e,s,n):null!==s?(null!==t.i&&(l.textContent=""),ot(l,null,e,s,0,s.length-1)):!n&&null!==o&&st(o,0,o.length-1),et&&"svg"===i&&(et=!1)):(c=l["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(l.data=r)},ut=t=>{const e=t.__childNodes||t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const l of e)if(l!==t)if(l["s-hn"]!==t["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){t.hidden=!0;break}}else if(n===l["s-sn"]&&(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim())){t.hidden=!0;break}}ut(t)}},at=[],dt=t=>{let e,n,l;const o=t.__childNodes||t.childNodes;for(const t of o){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const o=t["s-sn"];for(l=n.length-1;l>=0;l--)if(e=n[l],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(ht(e,o)){let n=at.find((t=>t.O===e));Z=!0,e["s-sn"]=e["s-sn"]||o,n?(n.O["s-sh"]=t["s-hn"],n.S=t):(e["s-sh"]=t["s-hn"],at.push({S:t,O:e})),e["s-sr"]&&at.map((t=>{ht(t.O,e["s-sn"])&&(n=at.find((t=>t.O===e)),n&&!t.S&&(t.S=n.S))}))}else at.some((t=>t.O===e))||at.push({O:e})}1===t.nodeType&&dt(t)}},ht=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,$t=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map($t)},pt=(t,e,n)=>{const l=null==t?void 0:t.insertBefore(e,n);return vt(e,t),l},mt=t=>{const e=[];return t&&e.push(...t["s-scs"]||[],t["s-si"],t["s-sc"],...mt(t.parentElement)),e},vt=(t,e,n=!1)=>{var l;if(t&&e&&1===t.nodeType){const o=new Set(mt(e).filter(Boolean));if(o.size&&(null==(l=t.classList)||l.add(...t["s-scs"]=Array.from(o)),t["s-ol"]||n))for(const e of Array.from(t.__childNodes||t.childNodes))vt(e,t,!0)}},yt=t=>{class e extends Array{item(t){return this[t]}}let n=globalThis.Node&&Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");n||(n=Object.getOwnPropertyDescriptor(t,"childNodes")),n&&Object.defineProperty(t,"__childNodes",n);let l=Object.getOwnPropertyDescriptor(Element.prototype,"children");l||(l=Object.getOwnPropertyDescriptor(t,"children")),l&&Object.defineProperty(t,"__children",l),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),n&&Object.defineProperty(t,"childNodes",{get(){var t,n;if(!v.l||!(null==(t=s(this))?void 0:t.l)||!(1&v.l)&&2&(null==(n=s(this))?void 0:n.l)){const t=new e,n=wt(this.__childNodes);return t.push(...n),t}return e.from(this.__childNodes)}})},bt=(t,e,n,l)=>{let o;if(t["s-ol"]&&t["s-ol"].isConnected?o=t["s-ol"]:(o=document.createTextNode(""),o["s-nr"]=t),!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,i=n?s.__prepend||s.prepend:s.__appendChild||s.appendChild;if(void 0!==l){o["s-oo"]=l;const t=[o];(s.__childNodes||s.childNodes).forEach((e=>{e["s-nr"]&&t.push(e)})),t.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<e["s-oo"]?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),t.forEach((t=>i.call(s,t)))}else i.call(s,o);t["s-ol"]=o,t["s-sh"]=e["s-hn"]},wt=t=>{const e=[];for(let n=0;n<t.length;n++){const l=t[n]["s-nr"];l&&l.isConnected&&e.push(l)}return e},gt=(t,e,n,l,o,s,i,r=[])=>{let c,f,u,a;const h=o["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(d),c&&(f=c.split("."),f[0]===i||"0"===f[0])){u=Ot({l:0,k:f[0],j:f[1],C:f[2],I:f[3],m:s.tagName.toLowerCase(),v:s,u:{class:s.className}}),e.push(u),s.removeAttribute(d),t.h||(t.h=[]);const o=u.v.getAttribute("s-sn");"string"==typeof o&&("slot-fb"===u.m&&St(o,f[2],u,s,t,e,n,l,r),u.v["s-sn"]=o,u.v.removeAttribute("s-sn")),void 0!==u.I&&(t.h[u.I]=u),h&&(s["s-si"]=h),t=u,l&&"0"===u.C&&(l[u.I]=u.v)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)gt(t,e,n,l,o,s.shadowRoot.childNodes[a],i,r);const $=s.__childNodes||s.childNodes;for(a=$.length-1;a>=0;a--)gt(t,e,n,l,o,$[a],i,r)}else if(8===s.nodeType)f=s.nodeValue.split("."),(f[1]===i||"0"===f[1])&&(c=f[0],u=Ot({k:f[1],j:f[2],C:f[3],I:f[4]||"0",v:s,u:null,h:null,$:null,p:null,m:null,i:null}),"t"===c?(u.v=s.nextSibling,u.v&&3===u.v.nodeType&&(u.i=u.v.textContent,e.push(u),s.remove(),i===u.k&&(t.h||(t.h=[]),t.h[u.I]=u),l&&"0"===u.C&&(l[u.I]=u.v))):"c"===c?(u.v=s.nextSibling,u.v&&8===u.v.nodeType&&(e.push(u),s.remove())):u.k===i&&("s"===c?(u.m="slot",St(s["s-sn"]=u.p=f[5]||"",f[2],u,s,t,e,n,l,r)):"r"===c&&(l?s.remove():(o["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.m){const e=L(null,s.textContent);e.v=s,e.I="0",t.h=[e]}return t},jt=(t,e)=>{if(1===t.nodeType){const n=t[a]||t.getAttribute(a);n&&e.set(n,t);let l=0;if(t.shadowRoot)for(;l<t.shadowRoot.childNodes.length;l++)jt(t.shadowRoot.childNodes[l],e);const o=t.__childNodes||t.childNodes;for(l=0;l<o.length;l++)jt(o[l],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Ot=t=>({l:0,k:null,j:null,C:null,I:"0",v:null,u:null,h:null,$:null,p:null,m:null,i:null,...t});function St(t,e,n,l,o,s,i,r,c){l["s-sr"]=!0;const f=(null==o?void 0:o.v)?o.v["s-id"]||o.v.getAttribute("s-id"):"";if(r){const s=n.v=m.createElement(n.m);n.p&&n.v.setAttribute("name",t),f&&f!==n.k?o.v.insertBefore(s,o.v.children[0]):l.parentNode.insertBefore(n.v,l),kt(c,e,t,l,n.k),l.remove(),"0"===n.C&&(r[n.I]=n.v)}else{const i=n.v,r=f&&f!==n.k&&o.v.shadowRoot;kt(c,e,t,l,r?f:n.k),r&&o.v.insertBefore(i,o.v.children[0]),s.push(n)}i.push(n),o.h||(o.h=[]),o.h[n.I]=n}var kt=(t,e,n,l,o)=>{let s=l.nextSibling;for(t[e]=t[e]||[];s&&((s.getAttribute&&s.getAttribute("slot")||s["s-sn"])===n||""===n&&!s["s-sn"]&&(8===s.nodeType&&1!==s.nodeValue.indexOf(".")||3===s.nodeType));)s["s-sn"]=n,t[e].push({slot:l,node:s,hostId:o}),s=s.nextSibling},Et=(t,e)=>null==t||I(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,xt=t=>s(t).$hostElement$,Ct=(t,e,n)=>{const l=xt(t);return{emit:t=>It(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},It=(t,e,n)=>{const l=v.ce(e,n);return t.dispatchEvent(l),l},Mt=new WeakMap,Rt=(t,e)=>{var n;const l=At(e),o=u.get(l);if(t=11===t.nodeType?t:m,o)if("string"==typeof o){let s,i=Mt.get(t=t.head||t);if(i||Mt.set(t,i=new Set),!i.has(l)){if(t.host&&(s=t.querySelector(`[sty-id="${l}"]`)))s.innerHTML=o;else{s=m.createElement("style"),s.innerHTML=o;const l=null!=(n=v.M)?n:M(m);if(null!=l&&s.setAttribute("nonce",l),!(1&e.l))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,n)}else if("host"in t)if(b){const e=new CSSStyleSheet;e.replaceSync(o),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=o+e.innerHTML:t.prepend(s)}else t.append(s);1&e.l&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.l&&(s.innerHTML+=h),i&&i.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l},At=t=>"sc-"+t.R,Nt=(t,e)=>{e&&!t.A&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.A=e)))},Pt=(t,e)=>{if(t.l|=16,!(4&t.l))return Nt(t,t.N),x((()=>Tt(t,e)));t.l|=512},Tt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e&&(t.l|=256,t.P&&(t.P.map((([t,e])=>Wt(n,t,e))),t.P=void 0),l=Wt(n,"componentWillLoad")),l=Dt(l,(()=>Wt(n,"componentWillRender"))),Dt(l,(()=>Ft(t,n,e)))},Dt=(t,e)=>Ut(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Ut=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ft=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.T,n=t.$hostElement$,l=e.l,o=Rt(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(t);Ht(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>Lt(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},Ht=(t,e,n,l)=>{try{e=e.render(),t.l&=-17,t.l|=2,((t,e,n=!1)=>{var l,o,s,i;const r=t.$hostElement$,c=t.T,f=t.D||L(null,null),u=(t=>t&&t.m===_)(e)?e:H(null,null,e);if(D=r.tagName,c.U&&(u.u=u.u||{},c.U.map((([t,e])=>u.u[e]=r[t]))),n&&u.u)for(const t of Object.keys(u.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(u.u[t]=r[t]);if(u.m=null,u.l|=4,t.D=u,u.v=f.v=r.shadowRoot||r,P=r["s-sc"],Y=!!(1&c.l),T=r["s-cr"],Z=!1,ft(f,u,n),v.l|=1,tt){dt(u.v);for(const t of at){const e=t.O;if(!e["s-ol"]){const t=m.createTextNode("");t["s-nr"]=e,pt(e.parentNode,e["s-ol"]=t,e)}}for(const t of at){const e=t.O,r=t.S;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(l=e["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===e["s-sn"]&&t===l.parentNode){for(l=l.nextSibling;l===e||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),pt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}Z&&ut(u.v),v.l&=-2,at.length=0,T=void 0})(t,e,l)}catch(e){c(e,t.$hostElement$)}return null},Lt=t=>{const e=t.$hostElement$,n=t.t,l=t.N;Wt(n,"componentDidRender"),64&t.l?Wt(n,"componentDidUpdate"):(t.l|=64,Bt(e),Wt(n,"componentDidLoad"),t.F(e),l||_t()),t.H(e),t.A&&(t.A(),t.A=void 0),512&t.l&&E((()=>Pt(t,!1))),t.l&=-517},_t=()=>{Bt(m.documentElement),E((()=>It(p,"appload",{detail:{namespace:t}})))},Wt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){c(t)}},Bt=t=>t.classList.add("hydrated"),Vt=(t,e,n,l)=>{const o=s(t);if(!o)throw Error(`Couldn't find host element for "${l.R}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=o.$hostElement$,r=o.L.get(e),f=o.l,u=o.t;if(n=Et(n,l._[e][0]),(!(8&f)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.L.set(e,n),u)){if(l.W&&128&f){const t=l.W[e];t&&t.map((t=>{try{u[t](n,r,e)}catch(t){c(t,i)}}))}2==(18&f)&&Pt(o,!1)}},qt=(t,e,n)=>{var l,o;const i=t.prototype;if(e._||e.W||t.watchers){t.watchers&&!e.W&&(e.W=t.watchers);const r=Object.entries(null!=(l=e._)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&n&&32&l)if(2048&l){if(1&n&&2048&l&&(Object.defineProperty(i,t,{get(){const e=s(this),n=e?e.t:i;if(n)return n[t]},configurable:!0,enumerable:!0}),4096&l)){const n=Object.getOwnPropertyDescriptor(i,t).set;Object.defineProperty(i,t,{set(l){const o=s(this);if(n){const s=o.$hostElement$[t];return!o.L.get(t)&&s&&o.L.set(t,s),n.call(this,Et(l,e._[t][0])),void Vt(this,t,o.$hostElement$[t],e)}if(!o)return;const i=()=>{const n=o.t[t];!o.L.get(t)&&n&&o.L.set(t,n),o.t[t]=Et(l,e._[t][0]),Vt(this,t,o.t[t],e)};o.t?i():o.B.then((()=>i()))}})}}else Object.defineProperty(i,t,{get(){return((t,e)=>s(this).L.get(e))(0,t)},set(n){Vt(this,t,n,e)},configurable:!0,enumerable:!0});else 1&n&&64&l&&Object.defineProperty(i,t,{value(...e){var n;const l=s(this);return null==(n=null==l?void 0:l.V)?void 0:n.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;i.attributeChangedCallback=function(t,l,o){v.jmp((()=>{var r;const c=n.get(t);if(this.hasOwnProperty(c))o=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==o)return;if(null==c){const n=s(this),i=null==n?void 0:n.l;if(i&&!(8&i)&&128&i&&o!==l){const s=n.t,i=null==(r=e.W)?void 0:r[t];null==i||i.forEach((e=>{null!=s[e]&&s[e].call(s,o,l,t)}))}return}}const f=Object.getOwnPropertyDescriptor(i,c);f.get&&!f.set||(this[c]=(null!==o||"boolean"!=typeof this[c])&&o)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=e.W)?o:{}),...r.filter((([t,e])=>15&e[0])).map((([t,l])=>{var o;const s=l[1]||t;return n.set(s,t),512&l[0]&&(null==(o=e.U)||o.push([t,s])),s}))]))}}return t},Gt=t=>{Wt(t,"connectedCallback")},zt=t=>{if(!(1&v.l)){const e=s(t),n=e.T,l=()=>{};if(1&e.l)Yt(t,e,n.q),(null==e?void 0:e.t)?Gt(e.t):(null==e?void 0:e.B)&&e.B.then((()=>Gt(e.t)));else{let l;if(e.l|=1,l=t.getAttribute(a),l){if(1&n.l){const e=Rt(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}else if(2&n.l){const e=At(n);t["s-sc"]=e}((t,e,n,l)=>{const o=t.shadowRoot,s=[],i=[],r=o?[]:null,c=L(e,null);c.v=t,v.G||jt(m.body,v.G=new Map),t[a]=n,t.removeAttribute(a),l.D=gt(c,s,[],r,t,t,n,i);let f=0;const u=s.length;let d;for(;f<u;f++){d=s[f];const n=d.k+"."+d.j,l=v.G.get(n),i=d.v;o||(i["s-hn"]=e.toUpperCase(),"slot"===d.m&&(i["s-cr"]=t["s-cr"])),l&&l.isConnected&&(o&&""===l["s-en"]&&l.parentNode.insertBefore(i,l.nextSibling),l.parentNode.removeChild(l),o||(i["s-oo"]=parseInt(d.j))),v.G.delete(n)}const h=[];let $=0;const p=i.length;let y,b,w,g;for(;$<p;$++)if(y=i[$],y&&y.length)for(w=y.length,b=0;b<w;b++){if(g=y[b],h[g.hostId]||(h[g.hostId]=v.G.get(g.hostId)),!h[g.hostId])continue;const t=h[g.hostId];t.shadowRoot&&o||(g.slot["s-cr"]=t["s-cr"],g.slot["s-cr"]=!g.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0],bt(g.node,g.slot,!1,g.node["s-oo"])),t.shadowRoot&&g.node.parentElement!==t&&t.appendChild(g.node)}if(o){let e=0;const n=r.length;for(;e<n;e++)o.appendChild(r[e]);Array.from(t.childNodes).forEach((t=>{8===t.nodeType&&"string"!=typeof t["s-sn"]&&t.parentNode.removeChild(t)}))}l.$hostElement$=t})(t,n.R,l,e)}l||12&n.l&&Jt(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Nt(e,e.N=n);break}}n._&&Object.entries(n._).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),E((()=>(async(t,e,n)=>{let l;if(!(32&e.l)){if(e.l|=32,n.J){const t=(t=>{const e=t.R.replace(/-/g,"_"),n=t.J;if(!n)return;const l=f.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(f.set(n,t),t[e])),c)
|
|
5
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};l=await t,e()}else l=t;if(!l)throw Error(`Constructor for "${n.R}#${e.K}" was not found`);l.isProxied||(n.W=l.watchers,qt(l,n,2),l.isProxied=!0);const o=()=>{};e.l|=8;try{new l(e)}catch(t){c(t)}e.l&=-9,e.l|=128,o(),Gt(e.t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=At(n);if(!u.has(e)){const l=()=>{};((t,e,n)=>{let l=u.get(t);b&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,u.set(t,l)})(e,t,!!(1&n.l)),l()}}}const o=e.N,s=()=>Pt(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(t,e,n)))}l()}},Jt=t=>{const e=t["s-cr"]=m.createComment("");e["s-cn"]=!0,pt(t,e,t.firstChild)},Kt=t=>{Wt(t,"disconnectedCallback")},Qt=(t,e={})=>{var n;const l=[],i=e.exclude||[],r=p.customElements,c=m.head,f=c.querySelector("meta[charset]"),u=m.createElement("style"),a=[];let d,$=!0;Object.assign(v,e),v.o=new URL(e.resourcesUrl||"./",m.baseURI).href,v.l|=2;let y=!1;if(t.map((t=>{t[1].map((e=>{var n;const c={l:e[0],R:e[1],_:e[2],q:e[3]};4&c.l&&(y=!0),c._=e[2],c.q=e[3],c.U=[],c.W=null!=(n=e[4])?n:{};const f=c.R,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={l:0,$hostElement$:t,T:e,L:new Map};n.V=new Promise((t=>n.H=t)),n.B=new Promise((t=>n.F=t)),t["s-p"]=[],t["s-rc"]=[],o.set(t,n)})(t=this,c),1&c.l)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.R}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open",delegatesFocus:!!(16&c.l)})}connectedCallback(){const t=s(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Yt(this,t,c.q)),d&&(clearTimeout(d),d=null),$?a.push(this):v.jmp((()=>zt(this)))}disconnectedCallback(){v.jmp((()=>(async()=>{if(!(1&v.l)){const t=s(this);t.X&&(t.X.map((t=>t())),t.X=void 0),(null==t?void 0:t.t)?Kt(t.t):(null==t?void 0:t.B)&&t.B.then((()=>Kt(t.t)))}})()))}componentOnReady(){return s(this).B}};yt(u.prototype),c.J=t[0],i.includes(f)||r.get(f)||(l.push(f),r.define(f,qt(u,c,1)))}))})),l.length>0&&(y&&(u.textContent+=h),u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(n=v.M)?n:M(m);null!=t&&u.setAttribute("nonce",t),c.insertBefore(u,f?f.nextSibling:c.firstChild)}$=!1,a.length?a.map((t=>t.connectedCallback())):v.jmp((()=>d=setTimeout(_t,30)))},Xt=(t,e)=>e,Yt=(t,e,n)=>{n&&n.map((([n,l,o])=>{const s=te(t,n),i=Zt(e,o),r=ee(n);v.ael(s,l,i,r),(e.X=e.X||[]).push((()=>v.rel(s,l,i,r)))}))},Zt=(t,e)=>n=>{var l;try{256&t.l?null==(l=t.t)||l[e](n):(t.P=t.P||[]).push([e,n])}catch(t){c(t)}},te=(t,e)=>4&e?m:8&e?p:16&e?m.body:t,ee=t=>({passive:!!(1&t),capture:!!(2&t)}),ne=t=>v.M=t;export{l as B,e as E,Xt as F,_ as H,t as N,Qt as b,Ct as c,m as d,xt as g,H as h,y as p,i as r,ne as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as t,h as i,H as a,g as n}from"./p-
|
|
4
|
+
import{r as e,c as t,h as i,H as a,g as n}from"./p-8fde9a1b.js";import{a as o,c as s}from"./p-f6000a03.js";import{i as r}from"./p-aaa7a7bd.js";import{a as d}from"./p-1cfacaa0.js";import"./p-9c3c64b9.js";const h=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.checkCenterSlot=()=>{const e=this.element.querySelector('[slot="center"]');this.centerSlotUsed=!!e},this.changeLogoSize=()=>{this.checkCenterSlot(),this.logoSize=this.mql[1].matches&&this.centerSlotUsed?"large":"medium"},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.hidden=!1,this.onBottom=!1,this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.centerSlotUsed=!1,this.theme="",this.language=d(),this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.accessibleLabel=void 0,this.hideOnScroll=!1}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hideOnScroll&&(clearTimeout(this.zindexTimer),this.onBottom=!0),this.hidden=!0):window.scrollY<150&&(this.hideOnScroll&&(this.zindexTimer=setTimeout((()=>{this.onBottom=!1}),300)),this.hidden=!1),this.previousYScroll=window.scrollY)}componentWillLoad(){r(this)}connectedCallback(){this.changeLogoSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}this.checkCenterSlot()}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive(),this.checkCenterSlot()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(a,{key:"a67abb8e30e35b641b31a6891850bc4e00679373"},i("nav",{key:"cfe9c209ee35f91942d6a77373656d288ecdaeca",class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},i("div",{key:"c24c3d152b65a65158a379e143114dabb97587a8",class:"top"}),i("div",{key:"e18c2c08b9d890781ab5007ba2a285efdb33c432",class:{container:!0},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",{key:"c020bdd05d9b5c094e7b7894b5be304a80bbf4fa"},i("duet-logo",{key:"ffd006a03dbcb769fb17113c332db7a95e3cff25",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),i("div",{key:"a25c9bf850a71324fec4f6e9cd292ab9f64bb316",class:"list center",role:"list"},i("div",{key:"5d4984061763722ade739b5bbb4bdff333a4ad6b",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{key:"e18128bb7e1c57b19f3c44d8d4bd34f9346ff84d",name:"center"}),i("div",{key:"7197c52ee19932cd617d816ed68d00865ca1f67c",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{key:"417e5c9153bfd3a8cadf27066a787622a8bb521e",class:"list right",role:"list"},i("slot",{key:"97846c76ecffc609c58a37b6bf7fcedab23b8e9a",name:"right"}))),i("div",{key:"80b7d44146a2ac6a4f656e58efc827aefe9800a7",class:"bottom"})))}get element(){return n(this)}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';export{h as duet_menu_bar}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as e,F as a,g as i}from"./p-
|
|
4
|
+
import{r as t,h as e,F as a,g as i}from"./p-8fde9a1b.js";import{s}from"./p-1004af75.js";import{i as r}from"./p-aaa7a7bd.js";import{c as o}from"./p-5e59e970.js";import{s as d,u as n}from"./p-a45e3f8b.js";import{a as p,g as b,c as l,d as c}from"./p-1cfacaa0.js";import"./p-9c3c64b9.js";const h=2*parseFloat(s)*16,u=class{constructor(e){t(this,e),this.isTicking=!1,this.expandableId=o("DuetTray"),this.animationLoop=()=>{this.hiddenState=window.pageYOffset<h,this.isTicking=!1},this.toggleExpandable=t=>{t.preventDefault(),this.expanded=!this.expanded},this.expanded=!1,this.hiddenState=!1,this.language=p(),this.accessibleCloseLabelDefaults={fi:"Sulje",en:"Close",sv:"Stäng"},this.accessibleCloseLabel=b(this.accessibleCloseLabelDefaults,this.language),this.accessibleOpenLabelDefaults={fi:"Avaa",en:"Open",sv:"Öppna"},this.accessibleOpenLabel=b(this.accessibleOpenLabelDefaults,this.language),this.theme="",this.active=!1,this.autoHide=!0,this.responsive=!0}componentWillLoad(){r(this),this.hasAdditionalContent=!!this.element.querySelector("[slot='additional']")}connectedCallback(){l(this,[{prop:"accessibleOpenLabel",defaults:"accessibleOpenLabelDefaults"},{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"}]),d(this)}disconnectedCallback(){c(this),n(this)}getFrame(){!this.isTicking&&this.autoHide&&this.active&&(requestAnimationFrame(this.animationLoop),this.isTicking=!0)}handleBodyClick(t){this.expanded&&(this.expanded=this.element.contains(t.target))}render(){return e("div",{key:"c2508659c69f7e3f5e1b555b0dc37a3188c4f151",class:{"duet-tray":!0,"duet-tray-is-active":this.active,"duet-tray-is-hidden":this.hiddenState,"duet-tray-is-responsive":this.responsive,"duet-theme-turva":"turva"===this.theme,"duet-tray-is-expandable":this.hasAdditionalContent}},e("div",{key:"a3449743f08e5a1495f737b817fefaaa494fa762",class:"duet-tray-default-content",role:"status"},e("slot",{key:"520cb0e7c9b137bae2f835d7af23a51a9ca8b0f8"})),this.hasAdditionalContent&&e(a,{key:"a0de63994ded68047b9d247288cf5484d0d8246b"},e("button",{key:"2f14d184ff8d74aa2f8a59ae10a9148025e85ff3","aria-expanded":this.expanded?"true":"false","aria-controls":this.expandableId,onClick:t=>this.toggleExpandable(t),class:{"duet-tray-button":!0,"duet-tray-is-expanded":this.expanded}},e("duet-icon",{key:"f03b487931227a4845bfe88612bb7c4c28b59305",name:"action-arrow-down",size:"small",color:"currentColor",margin:"none"}),e("duet-visually-hidden",{key:"813046c76b75b6c1178a3ef2d8fe2a562fc88fe0"},this.expanded?this.accessibleCloseLabel:this.accessibleOpenLabel)),e("div",{key:"aa343225a55400505524640d6625101f7ad97f43",id:this.expandableId,class:{"duet-tray-expandable":!0,active:this.expanded}},e("div",{key:"ece52eb12d7070065a572697e7d02d09af685b05",class:"duet-tray-expandable-content"},e("slot",{key:"2ed25ae66ccab231c4fd7a33db4e0e02eaa63e16",name:"additional"})))))}get element(){return i(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tray{position:fixed;top:4rem;right:0;left:0;z-index:399;display:flex;flex-direction:column;max-height:calc(100% - 8rem);padding:16px 20px 16px 24px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);visibility:hidden;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:opacity 600ms ease, visibility 600ms ease, transform 600ms ease;transform:translateY(-4rem)}@media (min-width: 62em){.duet-tray{padding:16px 36px}}@media (min-width: 106.25em){.duet-tray{padding:16px 52px 16px 60px}}.duet-tray:focus{outline:0}:host(.user-is-tabbing) .duet-tray:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-tray.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tray.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-tray.duet-tray-is-active{visibility:visible;opacity:1;transform:translateY(0)}.duet-tray.duet-tray-is-hidden{visibility:hidden;opacity:0;transform:translateY(-4rem)}@media (min-width: 62em){.duet-tray.duet-tray-is-responsive{display:none !important}}.duet-tray.duet-tray-is-expandable{padding-right:66px}@media (min-width: 62em){.duet-tray.duet-tray-is-expandable{padding-right:78px}}@media (min-width: 106.25em){.duet-tray.duet-tray-is-expandable{padding-right:94px}}.duet-tray-expandable{position:relative;z-index:100;width:calc(100% + 46px);max-height:0;overflow-y:auto;visibility:hidden;opacity:0;transition:opacity 600ms ease, visibility 600ms ease, max-height 600ms ease;scrollbar-width:none}.duet-tray-expandable::-webkit-scrollbar{display:none}.duet-tray-expandable.active{max-height:500px;visibility:visible;opacity:1}.duet-tray-expandable-content{width:100%;margin-top:16px;border-top:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-tray-expandable-content{border-color:rgb(222, 224, 228)}.duet-tray-button{-webkit-user-select:none;user-select:none;padding:20px !important;position:absolute;top:-2px;right:0;z-index:200;color:rgb(8, 42, 77);text-align:center;cursor:pointer;border-radius:4px;transition:transform 300ms ease;-webkit-tap-highlight-color:transparent}@media (min-width: 62em){.duet-tray-button{margin-right:16px}}@media (min-width: 106.25em){.duet-tray-button{margin-right:36px}}.duet-theme-turva .duet-tray-button{color:rgb(23, 28, 58)}.duet-tray-button.duet-tray-is-expanded{transform:rotate(-180deg)}.duet-tray-button:focus{outline:0}:host(.user-is-tabbing) .duet-tray-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-tray-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tray-button:active{box-shadow:none;opacity:0.75}';export{u as duet_tray}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as a,h as t,H as i,g as o}from"./p-
|
|
4
|
+
import{r as e,c as a,h as t,H as i,g as o}from"./p-8fde9a1b.js";import{a as l}from"./p-115c79b6.js";import{f as s,t as n}from"./p-f6000a03.js";import{i as r}from"./p-aaa7a7bd.js";import{c}from"./p-5e59e970.js";import{i as d,s as h,u as p}from"./p-a45e3f8b.js";import{h as b}from"./p-fb811193.js";import{s as g}from"./p-9c3c64b9.js";const f=class{constructor(t){e(this,t),this.duetToggle=a(this,"duetToggle",7),this.id=c("DuetCollapsible"),this.handleKeyDown=e=>{d(e)&&this.handleClick(e)},this.getFontSizeFromTokens=(e=this.headingSize)=>{if(e){const a=e.replace(/-/g,"_");return n[`font_size_${a}`]}return s},this.getEquivalentIconSize=(e=this.headingSize)=>{switch(e){case"x-small":case"small":case"medium":default:return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large"}},this.getAccessibleLabel=()=>this.accessibleLabel?this.accessibleLabel:this.heading&&this.caption?`${this.heading}. ${this.caption}`:this.heading||null,this.handleClick=e=>{e.preventDefault(),this.open=!this.open,this.duetToggle.emit({component:"duet-collapsible",originalEvent:e})},this.theme="",this.negative=!1,this.accessibleLabel=void 0,this.heading="",this.caption="",this.headingFullWidth=!1,this.centerHeading=!1,this.headingWeight="semibold",this.headingSize=void 0,this.headingLevel=void 0,this.margin="auto",this.open=!1}componentWillLoad(){r(this),this.hasAfterHeading=b(this.element,"after-heading")}connectedCallback(){h(this)}disconnectedCallback(){p(this)}async setFocus(e){this.nativeButton&&(this.element.classList.add("user-is-tabbing"),this.nativeButton.focus(e))}render(){const e=this.headingLevel?g(this.headingLevel):"div";return t(i,{key:"f3e73e4259a6408e8bfc9b00fb4033c5117ff5bc",class:{"duet-m-0":"none"===this.margin,negative:this.negative}},t(e,{key:"1c6ff194a2634737d39013138a7a45fda32538ca"},t("button",{key:"745c07a149e5cdb0f4ed7931988f16578acc17db",class:{"duet-collapsible-heading":!0,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":"turva"===this.theme,"duet-collapsible-normal-weight":"normal"===this.headingWeight,"has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth,"has-caption":!!this.caption},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:e=>this.nativeButton=e,"aria-label":this.getAccessibleLabel(),"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},t("div",{key:"fd1340099ac09fc9b1179c8847d5e5f982bfec4d",class:"duet-collapsible-heading-wrapper"},t("div",{key:"4b0a86f201322a21f14994d5efab986930847ee9",class:"duet-collapsible-heading-icon"},t("duet-icon",{key:"c87bf63f84215ff8a55a0002991dc0688f6e757b",margin:"none",size:this.getEquivalentIconSize(),icon:l.svg})),t("div",{key:"e6dec579ae41cc0e7aa9452c69a1f3ec80dd5558",class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&t("div",{key:"b518e6dbbaae9c2f84979fcca6cd00fbdf5ab959",part:"duet-collapsible-after-heading"},t("slot",{key:"5ab5b2ab6c41c93250244b1d8c75b4f061ed17aa",name:"after-heading"}))),this.caption&&t("div",{key:"42f4464aa6ef6c275d0357fda56d4b95ad321bdf",class:"duet-collapsible-heading-caption"},t("duet-caption",{key:"fb4c4a5effb018af94f74ef3b37cb02c58704a3a",size:"small",margin:"none"},this.caption)))),t("div",{key:"1eabff6b7f58e648aa65357bf190034158c60b70",id:this.id,class:{"duet-collapsible-content":!0,"duet-theme-turva":"turva"===this.theme},part:"duet-collapsible-content"},t("slot",{key:"c799b44772fa7298fa93b911fc2ebdf2d41b1dd4"})))}get element(){return o(this)}};f.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-heading-centered .duet-collapsible-heading-caption{margin-inline:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading.has-caption{gap:4px}.duet-collapsible-heading.has-caption .duet-collapsible-heading-caption{margin-left:18px;font-weight:inherit}.duet-collapsible-heading .duet-collapsible-heading-wrapper{display:flex;align-items:center;width:inherit;margin:inherit}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(8, 42, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}:host(.negative) .duet-collapsible-heading,:host(.negative) .duet-collapsible-content,:host(.negative) .duet-collapsible-heading-icon{color:rgb(255, 255, 255)}';export{f as duet_collapsible}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-575c30ef.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-d1abb9cd.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,s,o,i,a,n,r,c,h,u,l,d;return{setters:[function(e){t=e.r;s=e.c;o=e.h;i=e.H;a=e.g},function(e){n=e.i},function(e){r=e.c},function(e){c=e.i},function(e){h=e.a;u=e.g;l=e.c;d=e.d},function(){}],execute:function(){var f='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var b=f;var m=e("duet_show_more",function(){function e(e){var o=this;t(this,e);this.duetToggle=s(this,"duetToggle",7);this.contentId=r("DuetShowMore");this.buttonId=r("DuetShowMoreButton");this.handleKeyDown=function(e){if(c(e)){o.handleClick(e)}};this.handleClick=function(e){e.preventDefault();var t=!o.open;o.open=t;if(t){setTimeout((function(){o.contentElement.focus()}),100);setTimeout((function(){o.buttonAriaOpen=t}),500)}else{o.buttonAriaOpen=t}o.duetToggle.emit({component:"duet-show-more",originalEvent:e})};this.buttonAriaOpen=false;this.theme="";this.language=h();this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"};this.showMoreLabel=u(this.showMoreLabelDefaults);this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"};this.showLessLabel=u(this.showLessLabelDefaults);this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"};this.showMoreAccessibleLabel=u(this.showMoreAccessibleLabelDefaults);this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"};this.showLessAccessibleLabel=u(this.showLessAccessibleLabelDefaults);this.margin="auto";this.buttonMargin="auto";this.buttonPadding="auto";this.open=false}e.prototype.componentWillLoad=function(){n(this);this.buttonAriaOpen=this.open};e.prototype.connectedCallback=function(){l(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.render=function(){var e=this;return o(i,{key:"e28180fda5c11db6ef6cd54181bef44dd0850cee"},o("div",{key:"8cc30864a7fb2d071682f10ada5d206fe1444422",class:{"duet-show-more":true,"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none",open:this.open}},o("div",{key:"6ec560dbc2ce8216e0a40d411a200d772dad296b",ref:function(t){return e.contentElement=t},class:{content:true},id:this.contentId,tabindex:this.open?"0":""},o("div",{key:"7fc79e43451f152fbc9926cf02c79ae1b345175f",class:{"slotted-content":true}},o("slot",{key:"24d35d2b69f4bfffeb3118422ba242af5cc0deff"}))),o("duet-button",{key:"5f77eaef9d72966d265b77cb124c6b092d6d8852",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.open,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":true,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:this.theme==="turva"?"turva":"default"},o("span",{key:"fa986b7b5358c050f0fb876fed910c2c4901d7c9"},this.open?this.showLessLabel:this.showMoreLabel))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());m.style=b}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as t,h as a,g as d}from"./p-ecb2aca6.js";import{d as i,e as o}from"./p-8354d1f1.js";import{i as s}from"./p-aaa7a7bd.js";import{a as l}from"./p-beeb12f1.js";import{f as r}from"./p-4460ee6c.js";import{f as n}from"./p-a45e3f8b.js";import{a as m,g as u,c as h,d as p}from"./p-0c115b39.js";import{h as c}from"./p-530e612b.js";import{T as g}from"./p-ca3cb21e.js";import"./p-9c3c64b9.js";const b=class{constructor(a){var d,i;e(this,a),this.duetOpen=t(this,"duetOpen",7),this.duetClose=t(this,"duetClose",7),this.duetCloseComplete=t(this,"duetCloseComplete",7),this.duetBeforeClose=t(this,"duetBeforeClose",7),this.hasStickyHeader=!1,this.isAndroidDevice=(null===(i=null===(d=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===d?void 0:d.toLowerCase())||void 0===i?void 0:i.indexOf("android"))>-1||null,this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.accessibleLoaderAnnouncementDefaults=l,this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"},this.handleAndroidResizeEvents=()=>{"INPUT"==document.activeElement.tagName&&window.setTimeout((function(){var e;try{null===(e=null===document||void 0===document?void 0:document.activeElement)||void 0===e||e.scrollIntoViewIfNeeded(!0)}catch(e){}}),100)},this.open=!1,this.language=m(),this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,this.language),this.accessibleLoaderAnnouncement=u(this.accessibleLoaderAnnouncementDefaults,this.language),this.size="medium",this.accessibleDescribedBy=void 0,this.accessibleLabelledBy=void 0,this.accessibleLabel=void 0,this.accessibleDetails=void 0,this.accessibleDescription=void 0,this.variation="default",this.gutterSize="medium",this.theme="",this.heading="",this.headingLevel="h3",this.headingVisualLevel=void 0,this.icon="",this.color="",this.active=!1,this.closeOnBlur=!1}openChanged(){this.open?(this.modalEl&&this.modalEl.scrollTop&&(this.modalEl.scrollTop=0),this.focusedElBeforeOpen=document.activeElement,i("slide-up"===this.variation?this.modalContentEl:this.modalEl,{reserveScrollBarGap:!0}),this.teleport.makeSiblingsInert(),this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.remove())),setTimeout((()=>{"loader"===this.variation?this.addMessage(this.accessibleLoaderAnnouncement,!1):this.isAndroidDevice?this.modalEl.focus():this.buttonEl.setFocus()}),600),setTimeout((()=>{this.modalEl.classList.add("duet-disable-transitions")}),800),this.isAndroidDevice&&window.addEventListener("resize",this.handleAndroidResizeEvents),this.duetOpen.emit()):(this.modalEl.classList.remove("duet-disable-transitions"),this.modalEl.addEventListener("transitionend",(()=>this.duetCloseComplete.emit()),{once:!0}),o("slide-up"===this.variation?this.modalContentEl:this.modalEl),this.duetClose.emit(),this.teleport.removeInertFromSiblings(),setTimeout((()=>{r(this.focusedElBeforeOpen)}),600),this.isAndroidDevice&&window.removeEventListener("resize",this.handleAndroidResizeEvents))}activeChanged(){this.open=this.active}componentWillLoad(){this.hasStickyHeader=c(this.element,"sticky-header"),s(this)}componentDidLoad(){this.active&&(this.open=!0,this.modalEl.classList.add("duet-disable-transitions"))}connectedCallback(){this.teleport||(this.teleport=new g(this.element)),this.teleport&&this.teleport.activate(),h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])}disconnectedCallback(){p(this),this.modalEl&&o(this.modalEl)}handleKeyUp(e){this.open&&n(e)&&this.closeModal(e)}async show(){this.open=!0}async hide(){this.open=!1}async scrollToTop(e=!0){var t;const a=e?"smooth":"auto";if("slide-up"===this.variation){const e=(null===(t=this.modalEl.querySelector(".duet-modal-sticky-header"))||void 0===t?void 0:t.clientHeight)||0,d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop=`${e+d.value}px`,this.slotContainerEl.scrollIntoView({behavior:a})}else this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:a})}async addMessage(e,t=!0){const a=document.createElement(t?"duet-paragraph":"duet-visually-hidden");a.textContent=e,a.classList.add("duet-loader-message"),t&&setTimeout((()=>{this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.classList.remove("show"))),a.classList.add("show")}),10),this.slotContainerEl.appendChild(a)}closeModal(e){this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"}),e.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var e,t;let d="primary",i="secondary";const o=a("div",{key:"61ef914bff9303ef11afc72d05041d22cfc19a04",class:"duet-modal-close"},a("duet-button",{key:"227e0e9623df005f97018db52488d16b4a86fd86",ref:e=>this.buttonEl=e,variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:i,iconSize:"large",icon:"navigation-close",iconOnly:!0,margin:"none",theme:this.theme,onClick:e=>this.closeModal(e),fixed:!0}));return"turva"===this.theme&&(d="primary-turva",i="secondary-turva"),a("div",{key:"ddbffb7c7059cdea821b6abfe9a16c960ad87c63",ref:e=>this.modalEl=e,"aria-label":null!==(e=this.accessibleLabel)&&void 0!==e?e:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:"loader"===this.variation?"alert":"dialog","aria-modal":!this.isSafariBrowser,tabindex:"-1",class:{"duet-modal-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-modal-active":this.open,"duet-modal-slide-up":"slide-up"===this.variation,"duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"e068a31ef8a49075fb445ad19f9cb14fe41973fa","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),a("div",{key:"be52b3ade6999b2220ec2de88ad64f98fef455e4",ref:e=>this.modalInnerEl=e,class:{"duet-modal-inner":!0,[this.size]:!0,"duet-modal-slide-up":"slide-up"===this.variation},onClick:e=>{this.closeOnBlur&&(e.target||e.srcElement)===this.modalInnerEl&&this.closeModal(e)}},a("div",{key:"d914271dd3812d02f5d0895508f714dc2e3971b7",ref:e=>this.modalContentEl=e,class:{"duet-modal":!0,"duet-modal-has-sticky-header":this.hasStickyHeader,[this.size]:!0,[this.variation]:!0}},"none"!==this.gutterSize&&!this.hasStickyHeader&&a("duet-spacer",{key:"36a424539eacd5d219032cce4e41f6e62f4bec04"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},o,a("slot",{name:"sticky-header"})):o,a("div",{key:"d6e03bc39dfced8515e26c9961b0c6642b513765",class:{"duet-modal-body":!0,"duet-modal-gutter-none":"none"===this.gutterSize,"duet-modal-gutter-small":"small"===this.gutterSize,"duet-modal-gutter-medium":"medium"===this.gutterSize,"duet-modal-gutter-large":"large"===this.gutterSize}},a("div",{key:"27062dca4e25894fbadaf00ed25684f17dda89e2",class:"duet-modal-header"},a("span",{key:"325f53a9eedb05e064ca299f8af40a91c1460b48",class:"duet-modal-inner-slot-top"},a("slot",{key:"aa7a6f9bcf8cec55c7f119bdb8db669ad16f41d3",name:"top"})),this.icon&&a("duet-icon",{key:"b3fa01f0bff2eacf2b7e4c2282de03663f0b1588",name:this.icon,size:"xx-large",color:this.color||d}),this.heading&&a("duet-heading",{key:"a4cecc16bec531dba2bcee42d981d5c904525788","visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),"loader"===this.variation&&a("div",{key:"ea4fd5500130dc5cf2f5f3880f84741111897fce",class:"duet-modal-spinner"},a("duet-spinner",{key:"543b23213d3c91655f561897b99915442c846de9",size:"large",color:"primary"})),a("div",{key:"61e7e623d613ba266a3a12386f7e948e9dac3da0",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},a("slot",{key:"8dc4b475ef016193508053cf0f2c4140001816b9"}))))))}get element(){return d(this)}static get watchers(){return{open:["openChanged"],active:["activeChanged"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:4px 4px 0 0;opacity:1;transition:top 600ms ease}@media (max-width: 35.9375em){.duet-modal.slide-up{border-radius:16px 16px 0 0}}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:4px 4px 0 0}@media (max-width: 35.9375em){.duet-modal-sticky-header{border-radius:16px 16px 0 0}}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:12px;right:12px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}';export{b as duet_modal}
|
|
4
|
+
import{r as e,c as t,h as a,g as d}from"./p-8fde9a1b.js";import{d as i,e as o}from"./p-8354d1f1.js";import{i as s}from"./p-aaa7a7bd.js";import{a as l}from"./p-beeb12f1.js";import{f as r}from"./p-64f7e70b.js";import{f as n}from"./p-a45e3f8b.js";import{a as m,g as u,c as h,d as p}from"./p-1cfacaa0.js";import{h as c}from"./p-fb811193.js";import{T as g}from"./p-8cb0e6bd.js";import"./p-9c3c64b9.js";const b=class{constructor(a){var d,i;e(this,a),this.duetOpen=t(this,"duetOpen",7),this.duetClose=t(this,"duetClose",7),this.duetCloseComplete=t(this,"duetCloseComplete",7),this.duetBeforeClose=t(this,"duetBeforeClose",7),this.hasStickyHeader=!1,this.isAndroidDevice=(null===(i=null===(d=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===d?void 0:d.toLowerCase())||void 0===i?void 0:i.indexOf("android"))>-1||null,this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.accessibleLoaderAnnouncementDefaults=l,this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"},this.handleAndroidResizeEvents=()=>{"INPUT"==document.activeElement.tagName&&window.setTimeout((function(){var e;try{null===(e=null===document||void 0===document?void 0:document.activeElement)||void 0===e||e.scrollIntoViewIfNeeded(!0)}catch(e){}}),100)},this.open=!1,this.language=m(),this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,this.language),this.accessibleLoaderAnnouncement=u(this.accessibleLoaderAnnouncementDefaults,this.language),this.size="medium",this.accessibleDescribedBy=void 0,this.accessibleLabelledBy=void 0,this.accessibleLabel=void 0,this.accessibleDetails=void 0,this.accessibleDescription=void 0,this.variation="default",this.gutterSize="medium",this.theme="",this.heading="",this.headingLevel="h3",this.headingVisualLevel=void 0,this.icon="",this.color="",this.active=!1,this.closeOnBlur=!1}openChanged(){this.open?(this.modalEl&&this.modalEl.scrollTop&&(this.modalEl.scrollTop=0),this.focusedElBeforeOpen=document.activeElement,i("slide-up"===this.variation?this.modalContentEl:this.modalEl,{reserveScrollBarGap:!0}),this.teleport.makeSiblingsInert(),this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.remove())),setTimeout((()=>{"loader"===this.variation?this.addMessage(this.accessibleLoaderAnnouncement,!1):this.isAndroidDevice?this.modalEl.focus():this.buttonEl.setFocus()}),600),setTimeout((()=>{this.modalEl.classList.add("duet-disable-transitions")}),800),this.isAndroidDevice&&window.addEventListener("resize",this.handleAndroidResizeEvents),this.duetOpen.emit()):(this.modalEl.classList.remove("duet-disable-transitions"),this.modalEl.addEventListener("transitionend",(()=>this.duetCloseComplete.emit()),{once:!0}),o("slide-up"===this.variation?this.modalContentEl:this.modalEl),this.duetClose.emit(),this.teleport.removeInertFromSiblings(),setTimeout((()=>{r(this.focusedElBeforeOpen)}),600),this.isAndroidDevice&&window.removeEventListener("resize",this.handleAndroidResizeEvents))}activeChanged(){this.open=this.active}componentWillLoad(){this.hasStickyHeader=c(this.element,"sticky-header"),s(this)}componentDidLoad(){this.active&&(this.open=!0,this.modalEl.classList.add("duet-disable-transitions"))}connectedCallback(){this.teleport||(this.teleport=new g(this.element)),this.teleport&&this.teleport.activate(),h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])}disconnectedCallback(){p(this),this.modalEl&&o(this.modalEl)}handleKeyUp(e){this.open&&n(e)&&this.closeModal(e)}async show(){this.open=!0}async hide(){this.open=!1}async scrollToTop(e=!0){var t;const a=e?"smooth":"auto";if("slide-up"===this.variation){const e=(null===(t=this.modalEl.querySelector(".duet-modal-sticky-header"))||void 0===t?void 0:t.clientHeight)||0,d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop=`${e+d.value}px`,this.slotContainerEl.scrollIntoView({behavior:a})}else this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:a})}async addMessage(e,t=!0){const a=document.createElement(t?"duet-paragraph":"duet-visually-hidden");a.textContent=e,a.classList.add("duet-loader-message"),t&&setTimeout((()=>{this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.classList.remove("show"))),a.classList.add("show")}),10),this.slotContainerEl.appendChild(a)}closeModal(e){this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"}),e.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var e,t;let d="primary",i="secondary";const o=a("div",{key:"faca106e7238b19de6f5fcb56187a4b035ace031",class:"duet-modal-close"},a("duet-button",{key:"4615e465a19c56de94dab9c02284a21c7d90d9a7",ref:e=>this.buttonEl=e,variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:i,iconSize:"large",icon:"navigation-close",iconOnly:!0,margin:"none",theme:this.theme,onClick:e=>this.closeModal(e),fixed:!0}));return"turva"===this.theme&&(d="primary-turva",i="secondary-turva"),a("div",{key:"42183912fedecad806d5b78349ee0d1a5c7bfa0b",ref:e=>this.modalEl=e,"aria-label":null!==(e=this.accessibleLabel)&&void 0!==e?e:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:"loader"===this.variation?"alert":"dialog","aria-modal":!this.isSafariBrowser,tabindex:"-1",class:{"duet-modal-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-modal-active":this.open,"duet-modal-slide-up":"slide-up"===this.variation,"duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"7c3d1310e56471e69c0477395518191691243299","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),a("div",{key:"19cdc99e1bf8d5d55f2579924e0088202d53f28c",ref:e=>this.modalInnerEl=e,class:{"duet-modal-inner":!0,[this.size]:!0,"duet-modal-slide-up":"slide-up"===this.variation},onClick:e=>{this.closeOnBlur&&(e.target||e.srcElement)===this.modalInnerEl&&this.closeModal(e)}},a("div",{key:"90b71acda3d486f8f6be34b7b5c71dfb4bc34085",ref:e=>this.modalContentEl=e,class:{"duet-modal":!0,"duet-modal-has-sticky-header":this.hasStickyHeader,[this.size]:!0,[this.variation]:!0}},"none"!==this.gutterSize&&!this.hasStickyHeader&&a("duet-spacer",{key:"a6187dfa0a89ffbcab949e9ec04f2dbdb7bee73f"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},o,a("slot",{name:"sticky-header"})):o,a("div",{key:"281bc00140765e6a20e9c812b109e1a23c177f1a",class:{"duet-modal-body":!0,"duet-modal-gutter-none":"none"===this.gutterSize,"duet-modal-gutter-small":"small"===this.gutterSize,"duet-modal-gutter-medium":"medium"===this.gutterSize,"duet-modal-gutter-large":"large"===this.gutterSize}},a("div",{key:"d6efd4041e56786ce78c06cadbea621e9f19f5d3",class:"duet-modal-header"},a("span",{key:"49fe986baa9c26a7c8b0c49ab5389e4734677da7",class:"duet-modal-inner-slot-top"},a("slot",{key:"0e664665b83d9dc57facc7345ebce7ba6ba1e353",name:"top"})),this.icon&&a("duet-icon",{key:"524dfbfd9b8e974107f8b6807561b0e044bd72cd",name:this.icon,size:"xx-large",color:this.color||d}),this.heading&&a("duet-heading",{key:"d84fea6190fa4f51c73e2f0cefc09875f81a9a5f","visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),"loader"===this.variation&&a("div",{key:"fd0aaec78ff7dd8af43dc340b8a08de18faced08",class:"duet-modal-spinner"},a("duet-spinner",{key:"1e384296c37cd45422b329e5a2a9c219575ea285",size:"large",color:"primary"})),a("div",{key:"6ee42fba878291347ba61a59ec67647d3d7df843",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},a("slot",{key:"48e57b5c320cf9dabc1ee9b6a3d3c61a4f48b32b"}))))))}get element(){return d(this)}static get watchers(){return{open:["openChanged"],active:["activeChanged"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:4px 4px 0 0;opacity:1;transition:top 600ms ease}@media (max-width: 35.9375em){.duet-modal.slide-up{border-radius:16px 16px 0 0}}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:4px 4px 0 0}@media (max-width: 35.9375em){.duet-modal-sticky-header{border-radius:16px 16px 0 0}}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:12px;right:12px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}';export{b as duet_modal}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function n(t){try{s(r.next(t))}catch(t){a(t)}}function d(t){try{s(r["throw"](t))}catch(t){a(t)}}function s(t){t.done?i(t.value):o(t.value).then(n,d)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,n;return n={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(t){return function(e){return s([t,e])}}function s(d){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,d[0]&&(i=0)),i)try{if(r=1,o&&(a=d[0]&2?o["return"]:d[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;if(o=0,a)d=[d[0]&2,a.value];switch(d[0]){case 0:case 1:a=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;o=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){i.label=d[1];break}if(d[0]===6&&i.label<a[1]){i.label=a[1];a=d;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(d);break}if(a[2])i.ops.pop();i.trys.pop();continue}d=e.call(t,i)}catch(t){d=[6,t];o=0}finally{r=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-14fe190e.system.js","./p-e216bea4.system.js","./p-752fa0fc.system.js","./p-8b2056f0.system.js","./p-0c4bbd65.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,i,r,a,o,n,d,s,u,c,l;return{setters:[function(t){e=t.r;i=t.h;r=t.g},function(t){a=t.i},function(t){o=t.s;n=t.u},function(t){d=t.a;s=t.g;u=t.c;c=t.d},function(t){l=t.a},function(){}],execute:function(){var h="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;padding-bottom:0;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-notification-container{position:relative;display:flex;padding-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{padding:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{padding-bottom:0;border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var f=h;var b=t("duet_notification",function(){function t(t){e(this,t);this.language=d();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=s(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}t.prototype.componentWillLoad=function(){a(this)};t.prototype.connectedCallback=function(){u(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"});o(this)};t.prototype.disconnectedCallback=function(){c(this);n(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.linkElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return i("div",{key:"65f980fd5fa033d52c207f3027dfec0ea997d2d0",role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},i("a",{key:"adab91697700a8b3110bfbbbabb837a736af98e6",ref:function(e){return t.linkElement=e},href:this.url,target:this.external?"_blank":"_self"},i("div",{key:"648733e653d6b00f958a18ce6bbde50d64a82451",class:"duet-notification-container"},i("div",{key:"7c93614d7e7304d955f3d0c065edfe1a1af6ef51",class:"duet-notification-badge-container"},this.highlight&&i("div",{key:"b309bc1656a970bb7369ebaa459b07ad4e94a689",class:"duet-notification-badge"},i("duet-visually-hidden",{key:"71742d3d65a76f6a312a7535780f082c0bae8a86"},this.accessibleLabelUnread,":"))),i("div",{key:"1a13147ea4b28a1798461301b790a106d29a8d1e",class:"duet-notification-content"},i("slot",{key:"c133b1210a46fe45abcc1ac7e59fa84349ec4d16"})),i("div",{key:"aab2501cc3a502365a7e6fa08bcc538502140822",class:"duet-notification-date"},this.date))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());b.style=f;var g='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(8, 42, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);background-color:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 75, 129);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(113, 118, 132);border-color:rgb(245, 247, 250)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';var p=g;var m=27;var w=t("duet_notification_drawer",function(){function t(t){var i=this;e(this,t);this.handleKeyDown=function(t){if(i.isOpen&&t.keyCode===m){i.close()}};this.toggleMenu=function(t){t.stopPropagation();i.isOpen?i.close():i.open()};this.updateNotificationState=function(){i.hasNotifications=i.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=d();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=s(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}t.prototype.componentWillLoad=function(){a(this);this.updateNotificationState()};t.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true});o(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;n(this)};t.prototype.handleClickFocusOutside=function(t){var e=t.target;if(this.isOpen&&!this.element.contains(e)){this.close(false)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.drawerButtonEl.focus(t);return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.element.closest("duet-header");if(t){t.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.isOpen=false;if(t){this.setFocus({preventScroll:true})}return[2]}))}))};t.prototype.render=function(){var t=this;return i("div",{key:"1088af58e8f3c30677e3c6d5baad8515829e9e51",class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},i("button",{key:"ff5fb1a9b2712d7a2308a4b334c1859b32a8668b",ref:function(e){return t.drawerButtonEl=e},type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&i("div",{key:"36ef436ead766298e4c6cd348ca7244afc94ac46",class:"duet-drawer-icon"},i("duet-icon",{key:"5eba9896a452d8940a07fc94605d9779c9cd909d",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&i("div",{key:"cec532d1c1f3ef45c2907cf17efc383305c803e7",class:"duet-drawer-badge"})),i("span",{key:"5c0892ac2e9dfe0a9c463133b839364b7ae78fd1",class:"duet-drawer-label"},this.label),i("div",{key:"db154470e959c8a9032cff5aabbb508de489f66d",class:"duet-drawer-caret"},i("duet-icon",{key:"fe7e0e1907b7467106a121d0dde62f7ff0fa4906",margin:"none",size:"auto",icon:l.svg,color:"currentColor"}))),i("div",{key:"18109bdcfe172351390f705b11481bbcdc72e81a",id:"duet-drawer-content",class:{"duet-drawer-content":true,"duet-drawer-right":this.direction==="right","duet-drawer-left":this.direction==="left","duet-drawer-open":this.isOpen},ref:function(e){return t.drawerContentEl=e}},this.hasNotifications?i("div",{role:"list"},i("slot",null)):i("duet-empty-state",{size:"small"},i("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());w.style=p}}}));
|
|
4
|
+
*/System.register(["./p-575c30ef.system.js","./p-e216bea4.system.js","./p-752fa0fc.system.js","./p-d1abb9cd.system.js","./p-0c4bbd65.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,i,r,o,a,n,d,s,u,c,l;return{setters:[function(t){e=t.r;i=t.h;r=t.g},function(t){o=t.i},function(t){a=t.s;n=t.u},function(t){d=t.a;s=t.g;u=t.c;c=t.d},function(t){l=t.a},function(){}],execute:function(){var h="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;padding-bottom:0;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-notification-container{position:relative;display:flex;padding-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{padding:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{padding-bottom:0;border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var f=h;var b=t("duet_notification",function(){function t(t){e(this,t);this.language=d();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=s(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}t.prototype.componentWillLoad=function(){o(this)};t.prototype.connectedCallback=function(){u(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"});a(this)};t.prototype.disconnectedCallback=function(){c(this);n(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.linkElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return i("div",{key:"0a6935872ea6b2def436c214e63a009104c5e33f",role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},i("a",{key:"214a044c177a97f28fe45d13d6cb3d45a656c99b",ref:function(e){return t.linkElement=e},href:this.url,target:this.external?"_blank":"_self"},i("div",{key:"f8c7ec86f0e5f39028f344162ac5ef29e5ba9d83",class:"duet-notification-container"},i("div",{key:"f4063625f2a583f873c001b58ccced3673b585ac",class:"duet-notification-badge-container"},this.highlight&&i("div",{key:"f8a664b0cb8510e19ebf74b8cce236d571e0505a",class:"duet-notification-badge"},i("duet-visually-hidden",{key:"60cfdf5e0524e9136848940467bd5f965551068c"},this.accessibleLabelUnread,":"))),i("div",{key:"47f79a377b30fa24591067a7d5d7e49d1060920e",class:"duet-notification-content"},i("slot",{key:"0bf0e5a139d41ec456eb89d94057e387e2503275"})),i("div",{key:"08b5589473778f9d3a40be1ae82b58c1c14415f0",class:"duet-notification-date"},this.date))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());b.style=f;var g='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(8, 42, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);background-color:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 75, 129);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(113, 118, 132);border-color:rgb(245, 247, 250)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';var p=g;var m=27;var w=t("duet_notification_drawer",function(){function t(t){var i=this;e(this,t);this.handleKeyDown=function(t){if(i.isOpen&&t.keyCode===m){i.close()}};this.toggleMenu=function(t){t.stopPropagation();i.isOpen?i.close():i.open()};this.updateNotificationState=function(){i.hasNotifications=i.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=d();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=s(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}t.prototype.componentWillLoad=function(){o(this);this.updateNotificationState()};t.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true});a(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;n(this)};t.prototype.handleClickFocusOutside=function(t){var e=t.target;if(this.isOpen&&!this.element.contains(e)){this.close(false)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.drawerButtonEl.focus(t);return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.element.closest("duet-header");if(t){t.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.isOpen=false;if(t){this.setFocus({preventScroll:true})}return[2]}))}))};t.prototype.render=function(){var t=this;return i("div",{key:"d7e36cb19dc0f07adf6840b484828f25b6a7f23d",class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},i("button",{key:"50cacbe00a1d8352566dfe0bc4c93706f668ad09",ref:function(e){return t.drawerButtonEl=e},type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&i("div",{key:"3adf4cc0214c09a85abbd5befd07e5601a0bbc89",class:"duet-drawer-icon"},i("duet-icon",{key:"7bb2900637122b3416444ad1685a83eeb7b5dc2e",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&i("div",{key:"a5f9d3e58ec3590cf00669e9c5a75a62e7b12130",class:"duet-drawer-badge"})),i("span",{key:"759ec6fe88384409fc162f9250a92ccf360d228e",class:"duet-drawer-label"},this.label),i("div",{key:"ffd3f0fcfe7be8bd571ef21f66a261110cf77c79",class:"duet-drawer-caret"},i("duet-icon",{key:"ee4db452ac267ce151011435ee5dca2b950af52b",margin:"none",size:"auto",icon:l.svg,color:"currentColor"}))),i("div",{key:"3d187ecc2cb13857ce722dd60ee23bf7d11f4c7d",id:"duet-drawer-content",class:{"duet-drawer-content":true,"duet-drawer-right":this.direction==="right","duet-drawer-left":this.direction==="left","duet-drawer-open":this.isOpen},ref:function(e){return t.drawerContentEl=e}},this.hasNotifications?i("div",{role:"list"},i("slot",null)):i("duet-empty-state",{size:"small"},i("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());w.style=p}}}));
|