@duetds/components 9.9.0 → 9.10.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 +85 -62
- package/lib/cjs/{a11y-utils-050310c7.js → a11y-utils-8d6392a1.js} +1 -1
- package/lib/cjs/{app-globals-f4faf11d.js → app-globals-1fed75c2.js} +1 -1
- package/lib/cjs/{common-strings-2984301e.js → common-strings-a54bbf77.js} +6 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-alert.cjs.entry.js +3 -3
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-banner.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
- package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-callout.cjs.entry.js +2 -2
- package/lib/cjs/duet-caption_4.cjs.entry.js +9 -8
- package/lib/cjs/duet-card.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-chip.cjs.entry.js +2 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +3 -3
- package/lib/cjs/duet-contact-card.cjs.entry.js +2 -2
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +3 -3
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +32 -3
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +4 -4
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-layout.cjs.entry.js +2 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +5 -5
- package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
- package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-phone-input.cjs.entry.js +3 -3
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +9 -6
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- package/lib/cjs/duet-promo-card.cjs.entry.js +2 -2
- 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 +3 -3
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +2 -2
- package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-share-chart.cjs.entry.js +2 -2
- package/lib/cjs/duet-show-more.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout.cjs.entry.js +4 -4
- package/lib/cjs/duet-status-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +17 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-item.cjs.entry.js +3 -3
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-6917a13a.js → errorcodes.utils-70dc1564.js} +1 -1
- package/lib/cjs/{floating-ui.dom.esm-bdde8521.js → floating-ui.dom.esm-806e7c53.js} +27 -50
- package/lib/cjs/{focus-utils-17b92876.js → focus-utils-bd12eea6.js} +1 -1
- package/lib/cjs/{index-45354cdd.js → index-2cabe082.js} +1 -1
- package/lib/cjs/{language-utils-5a4f4a41.js → language-utils-1f1602eb.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-4e1bb28c.js → slot-utils-19838006.js} +1 -1
- package/lib/collection/common-strings.js +5 -0
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-banner/duet-banner.js +1 -1
- package/lib/collection/components/duet-button/duet-button.js +5 -5
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +6 -6
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +1 -1
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.js +34 -5
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +1 -1
- package/lib/collection/components/duet-link/duet-link.css +52 -0
- package/lib/collection/components/duet-link/duet-link.js +4 -3
- package/lib/collection/components/duet-list/duet-list.js +3 -3
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
- package/lib/collection/components/duet-modal/duet-modal.js +4 -4
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +7 -7
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +4 -4
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +7 -4
- 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 +1 -1
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
- package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +24 -6
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
- package/lib/collection/components/duet-textarea/duet-textarea.js +5 -5
- package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +14 -14
- package/lib/collection/components/duet-upload-item/duet-upload-item.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 +3 -3
- package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
- package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +2 -2
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- 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 +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +3 -3
- package/lib/dist-custom-elements/duet-combobox.js +15 -15
- package/lib/dist-custom-elements/duet-contact-card.js +8 -8
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- 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 +2 -2
- package/lib/dist-custom-elements/duet-footer.js +8 -8
- 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 +9 -9
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +10 -10
- 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 +1 -1
- 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 +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +9 -9
- package/lib/dist-custom-elements/duet-multiselect.js +10 -10
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- 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 +3 -3
- package/lib/dist-custom-elements/duet-pagination.js +13 -13
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-phone-input.js +16 -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 +3 -3
- 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 +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
- package/lib/dist-custom-elements/duet-share-chart-item.js +1 -1
- package/lib/dist-custom-elements/duet-share-chart.js +2 -2
- package/lib/dist-custom-elements/duet-show-more.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-link.js +3 -3
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
- package/lib/dist-custom-elements/duet-slideout.js +3 -3
- 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 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +19 -5
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
- package/lib/dist-custom-elements/duet-tab-group.js +7 -7
- 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 +11 -11
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-item.js +3 -3
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- 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 +3 -3
- 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 +20 -20
- 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-238a3868.js → p-069c0fe6.js} +8 -8
- package/lib/dist-custom-elements/{p-56cd0edf.js → p-11e985ad.js} +32 -55
- package/lib/dist-custom-elements/{p-7947d2cd.js → p-198def8a.js} +12 -12
- package/lib/dist-custom-elements/{p-2e0d729f.js → p-25f05029.js} +1 -1
- package/lib/dist-custom-elements/{p-f2b72f2d.js → p-27fb3377.js} +1 -1
- package/lib/dist-custom-elements/{p-79480384.js → p-2e20762b.js} +2 -2
- package/lib/dist-custom-elements/{p-b8c6f396.js → p-33764e75.js} +5 -5
- package/lib/dist-custom-elements/{p-813debec.js → p-4a11f35f.js} +2 -2
- package/lib/dist-custom-elements/{p-bd7dd1f2.js → p-4ed4b660.js} +1 -1
- package/lib/dist-custom-elements/{p-9d462464.js → p-4f90efab.js} +1 -1
- package/lib/dist-custom-elements/{p-fee53217.js → p-53b5cfe0.js} +1 -1
- package/lib/dist-custom-elements/{p-b5c0ae56.js → p-5763ed84.js} +3 -3
- package/lib/dist-custom-elements/{p-b388715c.js → p-5e2338eb.js} +5 -5
- package/lib/dist-custom-elements/{p-175fc551.js → p-63aa9cea.js} +32 -3
- package/lib/dist-custom-elements/{p-1eb29b1c.js → p-677fcb67.js} +10 -10
- package/lib/dist-custom-elements/{p-761fd588.js → p-712cc0fe.js} +2 -2
- package/lib/dist-custom-elements/{p-cda5f601.js → p-7cadfedf.js} +1 -1
- package/lib/dist-custom-elements/{p-bec2501d.js → p-7dea8a97.js} +2 -2
- package/lib/dist-custom-elements/{p-86746543.js → p-7e67ae98.js} +3 -3
- package/lib/dist-custom-elements/{p-1f610268.js → p-8d4e4d69.js} +1 -1
- package/lib/dist-custom-elements/{p-85b61ebc.js → p-946e5932.js} +1 -1
- package/lib/dist-custom-elements/{p-9df4cfa4.js → p-9b044291.js} +6 -1
- package/lib/dist-custom-elements/{p-b7bf60cf.js → p-9de33ddc.js} +1 -1
- package/lib/dist-custom-elements/{p-42b1e9d0.js → p-b0dff124.js} +1 -1
- package/lib/dist-custom-elements/{p-df8428db.js → p-b32d48da.js} +1 -1
- package/lib/dist-custom-elements/{p-fd3dd124.js → p-bb5d976b.js} +1 -1
- package/lib/dist-custom-elements/{p-7a37b78a.js → p-bd5fd00c.js} +1 -1
- package/lib/dist-custom-elements/{p-4d6e3fcc.js → p-c438143f.js} +7 -4
- package/lib/dist-custom-elements/{p-dca657f2.js → p-c54248bf.js} +5 -5
- package/lib/dist-custom-elements/{p-2a0aefe4.js → p-c6b8e67d.js} +1 -1
- package/lib/dist-custom-elements/{p-1c4fcb41.js → p-c7712328.js} +2 -2
- package/lib/dist-custom-elements/{p-b1717bf1.js → p-cccc3195.js} +1 -1
- package/lib/dist-custom-elements/{p-647c78a8.js → p-d5edc293.js} +3 -3
- package/lib/dist-custom-elements/{p-57a0b5df.js → p-e31e739d.js} +1 -1
- package/lib/dist-custom-elements/{p-49773f56.js → p-e6685574.js} +7 -7
- package/lib/dist-custom-elements/{p-bc7aeee0.js → p-ed78992c.js} +1 -1
- package/lib/dist-custom-elements/{p-3acb66c0.js → p-f3d8c18f.js} +7 -6
- package/lib/dist-custom-elements/{p-06c403d9.js → p-f581a504.js} +1 -1
- package/lib/dist-custom-elements/{p-132b261a.js → p-f5be092d.js} +10 -10
- package/lib/dist-custom-elements/{p-dcd7d6d2.js → p-fea27a32.js} +2 -2
- package/lib/dist-custom-elements/{p-42eebb86.js → p-ff095cab.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-12a12f9c.entry.js → p-01348e9f.entry.js} +1 -1
- package/lib/duet/{p-b6ba7e61.system.entry.js → p-03030951.system.entry.js} +1 -1
- package/lib/duet/p-0360c2f6.entry.js +4 -0
- package/lib/duet/{p-0936d659.entry.js → p-05792935.entry.js} +1 -1
- package/lib/duet/{p-de9a637d.entry.js → p-0aa281bb.entry.js} +1 -1
- package/lib/duet/{p-7e257f15.system.entry.js → p-0cf9503e.system.entry.js} +1 -1
- package/lib/duet/{p-0a9b1b0b.entry.js → p-0d217cea.entry.js} +1 -1
- package/lib/duet/{p-70ae6f2c.system.entry.js → p-0d371a54.system.entry.js} +1 -1
- package/lib/duet/p-0dc9089b.system.js +4 -0
- package/lib/duet/{p-48bd046c.system.entry.js → p-0e99e5b6.system.entry.js} +1 -1
- package/lib/duet/{p-a5c6603f.system.entry.js → p-0f1573cd.system.entry.js} +1 -1
- package/lib/duet/{p-af5d05c3.system.js → p-105bf1f9.system.js} +1 -1
- package/lib/duet/{p-89fb266e.system.entry.js → p-10bf6ea1.system.entry.js} +1 -1
- package/lib/duet/{p-0773901d.js → p-10fac679.js} +1 -1
- package/lib/duet/{p-c9f780bb.system.entry.js → p-110fa6e9.system.entry.js} +1 -1
- package/lib/duet/{p-44d6dc12.entry.js → p-12449975.entry.js} +1 -1
- package/lib/duet/p-15517973.js +4 -0
- package/lib/duet/{p-5373b8ad.system.entry.js → p-15c59101.system.entry.js} +1 -1
- package/lib/duet/{p-a487e706.system.entry.js → p-1609d3c9.system.entry.js} +1 -1
- package/lib/duet/{p-8aeb58ba.entry.js → p-181a535c.entry.js} +1 -1
- package/lib/duet/{p-94a34398.system.entry.js → p-1c51d7fe.system.entry.js} +1 -1
- package/lib/duet/{p-5e0962cd.entry.js → p-2031c589.entry.js} +1 -1
- package/lib/duet/{p-cff0ecb0.entry.js → p-227794ab.entry.js} +1 -1
- package/lib/duet/{p-793f3625.system.entry.js → p-22ec82df.system.entry.js} +1 -1
- package/lib/duet/{p-bb19eb2d.entry.js → p-23dce278.entry.js} +1 -1
- package/lib/duet/{p-ea8bc817.entry.js → p-256f0f81.entry.js} +1 -1
- package/lib/duet/{p-67b4c262.system.entry.js → p-26f06c40.system.entry.js} +1 -1
- package/lib/duet/{p-ad694b62.system.js → p-292026db.system.js} +1 -1
- package/lib/duet/{p-bfa81195.entry.js → p-29c4602c.entry.js} +1 -1
- package/lib/duet/{p-321b7867.system.entry.js → p-2b5cb07f.system.entry.js} +1 -1
- package/lib/duet/{p-9c39ff09.system.entry.js → p-2c404946.system.entry.js} +1 -1
- package/lib/duet/{p-f189d547.entry.js → p-2dd01837.entry.js} +1 -1
- package/lib/duet/p-30294ab6.entry.js +4 -0
- package/lib/duet/{p-ac5d2bcc.entry.js → p-30bb744d.entry.js} +1 -1
- package/lib/duet/{p-aa59a64b.system.entry.js → p-34885521.system.entry.js} +2 -2
- package/lib/duet/{p-06479d57.system.entry.js → p-34996284.system.entry.js} +1 -1
- package/lib/duet/{p-116c7db8.system.entry.js → p-35cfdff0.system.entry.js} +1 -1
- package/lib/duet/{p-d45de9cb.entry.js → p-35e0c423.entry.js} +1 -1
- package/lib/duet/{p-d64d72d6.system.entry.js → p-36a8f8f4.system.entry.js} +1 -1
- package/lib/duet/{p-1921b16d.entry.js → p-3831d96f.entry.js} +1 -1
- package/lib/duet/{p-dadd8c19.system.entry.js → p-3f505e48.system.entry.js} +1 -1
- package/lib/duet/{p-f6099430.system.entry.js → p-42f4c0d3.system.entry.js} +1 -1
- package/lib/duet/{p-b1fb2829.entry.js → p-4352aaf0.entry.js} +1 -1
- package/lib/duet/{p-d286a412.system.entry.js → p-48ceea40.system.entry.js} +1 -1
- package/lib/duet/{p-ff06b22b.entry.js → p-491d6e7b.entry.js} +1 -1
- package/lib/duet/{p-d440f795.system.entry.js → p-49aa0899.system.entry.js} +1 -1
- package/lib/duet/{p-184e698a.system.entry.js → p-4baf6865.system.entry.js} +1 -1
- package/lib/duet/p-503054f4.entry.js +4 -0
- package/lib/duet/{p-74941bed.system.entry.js → p-52946b3c.system.entry.js} +1 -1
- package/lib/duet/{p-682e6943.system.entry.js → p-53f4c672.system.entry.js} +1 -1
- package/lib/duet/{p-636a177b.entry.js → p-560bd847.entry.js} +1 -1
- package/lib/duet/{p-912efbb2.system.entry.js → p-56310ace.system.entry.js} +1 -1
- package/lib/duet/{p-0484d391.system.entry.js → p-565eaedb.system.entry.js} +1 -1
- package/lib/duet/{p-151fb80c.system.entry.js → p-57fdf264.system.entry.js} +1 -1
- package/lib/duet/{p-e5606a0f.system.entry.js → p-59b74bd6.system.entry.js} +1 -1
- package/lib/duet/{p-67fc5d1c.entry.js → p-5b8909b1.entry.js} +1 -1
- package/lib/duet/{p-8763fcda.system.entry.js → p-5bc6745e.system.entry.js} +1 -1
- package/lib/duet/{p-00f58c81.entry.js → p-5e7305c3.entry.js} +1 -1
- package/lib/duet/{p-e52a6209.entry.js → p-5ebe409e.entry.js} +1 -1
- package/lib/duet/{p-d535f442.entry.js → p-5f6b4df5.entry.js} +1 -1
- package/lib/duet/{p-94e4f977.system.js → p-5fd14a22.system.js} +1 -1
- package/lib/duet/{p-b4676151.system.entry.js → p-623f2c56.system.entry.js} +1 -1
- package/lib/duet/{p-60162940.entry.js → p-62d07347.entry.js} +1 -1
- package/lib/duet/{p-7bf8f183.system.entry.js → p-632c96a5.system.entry.js} +1 -1
- package/lib/duet/{p-baa4658c.system.entry.js → p-660bc17d.system.entry.js} +1 -1
- package/lib/duet/{p-953ec2bf.entry.js → p-6b170f41.entry.js} +1 -1
- package/lib/duet/{p-062c814d.system.entry.js → p-6c38e525.system.entry.js} +1 -1
- package/lib/duet/{p-9a04c2b1.entry.js → p-6c5e01fd.entry.js} +1 -1
- package/lib/duet/{p-fa05d75c.entry.js → p-6dbdbf9e.entry.js} +1 -1
- package/lib/duet/p-6f0631c1.entry.js +4 -0
- package/lib/duet/{p-c9bed1f1.entry.js → p-70421809.entry.js} +1 -1
- package/lib/duet/{p-6bbac3f9.system.js → p-71707f01.system.js} +1 -1
- package/lib/duet/{p-725c2a9e.system.entry.js → p-735538d4.system.entry.js} +1 -1
- package/lib/duet/{p-86a187a0.system.entry.js → p-73637076.system.entry.js} +1 -1
- package/lib/duet/{p-20611247.entry.js → p-746258dd.entry.js} +1 -1
- package/lib/duet/{p-9bdb177a.system.entry.js → p-75da1794.system.entry.js} +1 -1
- package/lib/duet/{p-7a33d0be.entry.js → p-7624dfa6.entry.js} +1 -1
- package/lib/duet/p-76332920.system.js +4 -0
- package/lib/duet/{p-ae0c29d6.system.entry.js → p-772b7ce4.system.entry.js} +1 -1
- package/lib/duet/{p-a0cc3a57.system.entry.js → p-77a675de.system.entry.js} +1 -1
- package/lib/duet/{p-4b3b6db2.entry.js → p-781fd796.entry.js} +1 -1
- package/lib/duet/{p-c03f1b5c.system.entry.js → p-7a541100.system.entry.js} +1 -1
- package/lib/duet/{p-eb4ce4cc.entry.js → p-7ba1239e.entry.js} +1 -1
- package/lib/duet/{p-938f9b3e.system.entry.js → p-7cdb6d46.system.entry.js} +1 -1
- package/lib/duet/{p-56cef695.system.entry.js → p-8069a1d0.system.entry.js} +1 -1
- package/lib/duet/{p-e0880953.system.entry.js → p-80dcb50b.system.entry.js} +1 -1
- package/lib/duet/p-81287261.js +4 -0
- package/lib/duet/{p-0fe8704c.entry.js → p-83d690fa.entry.js} +1 -1
- package/lib/duet/p-8484d6b9.entry.js +4 -0
- package/lib/duet/{p-dbe6cf3c.entry.js → p-848856d3.entry.js} +1 -1
- package/lib/duet/{p-2b2a0e6f.system.entry.js → p-84a505ae.system.entry.js} +1 -1
- package/lib/duet/p-87f45793.entry.js +4 -0
- package/lib/duet/{p-2b4f458d.system.entry.js → p-8873a340.system.entry.js} +1 -1
- package/lib/duet/{p-3964bb3b.entry.js → p-8abf565d.entry.js} +1 -1
- package/lib/duet/p-8afd07f1.entry.js +4 -0
- package/lib/duet/{p-1f337fe3.system.entry.js → p-8b9b609d.system.entry.js} +1 -1
- package/lib/duet/{p-d0ba77fe.entry.js → p-8c171e30.entry.js} +1 -1
- package/lib/duet/{p-a7e0505e.system.entry.js → p-8d098836.system.entry.js} +1 -1
- package/lib/duet/{p-442222ef.system.entry.js → p-8d7ba2b4.system.entry.js} +1 -1
- package/lib/duet/{p-0128eef9.system.entry.js → p-8deb4d8a.system.entry.js} +1 -1
- package/lib/duet/{p-1c107ee6.system.entry.js → p-8e12c0ce.system.entry.js} +1 -1
- package/lib/duet/{p-efeb6892.system.entry.js → p-8e8e1939.system.entry.js} +1 -1
- package/lib/duet/{p-d45702f5.system.entry.js → p-8fbdfdf2.system.entry.js} +1 -1
- package/lib/duet/p-931af035.system.entry.js +4 -0
- package/lib/duet/{p-3e7f5733.entry.js → p-960dadab.entry.js} +1 -1
- package/lib/duet/{p-ad3f1daf.system.entry.js → p-971ba868.system.entry.js} +1 -1
- package/lib/duet/{p-f5d1a11c.entry.js → p-9a4e23d0.entry.js} +1 -1
- package/lib/duet/{p-ae924d35.js → p-9c3a6e95.js} +1 -1
- package/lib/duet/{p-74184074.system.entry.js → p-9c45f20e.system.entry.js} +1 -1
- package/lib/duet/{p-8da50ca3.entry.js → p-9da042c5.entry.js} +1 -1
- package/lib/duet/p-a02ce43d.entry.js +4 -0
- package/lib/duet/{p-393c06a4.system.entry.js → p-a1b8b34b.system.entry.js} +2 -2
- package/lib/duet/{p-3f35573d.system.entry.js → p-a21d58a6.system.entry.js} +1 -1
- package/lib/duet/{p-55a8a353.entry.js → p-a6bd55da.entry.js} +1 -1
- package/lib/duet/{p-c708fd70.system.entry.js → p-a6c71c24.system.entry.js} +1 -1
- package/lib/duet/p-aa94134c.js +4 -0
- package/lib/duet/{p-303a9f45.entry.js → p-ab836d90.entry.js} +1 -1
- package/lib/duet/{p-7c0e1242.system.entry.js → p-abfadcdb.system.entry.js} +1 -1
- package/lib/duet/{p-407dcb6c.system.entry.js → p-ac25657f.system.entry.js} +1 -1
- package/lib/duet/{p-b8a0329d.entry.js → p-add8dca5.entry.js} +1 -1
- package/lib/duet/{p-16997663.entry.js → p-ae212566.entry.js} +1 -1
- package/lib/duet/{p-0a5a0f9f.system.entry.js → p-aed9ad99.system.entry.js} +1 -1
- package/lib/duet/{p-c07e462d.entry.js → p-afbfff41.entry.js} +1 -1
- package/lib/duet/{p-1fe573fb.system.entry.js → p-b06a4da0.system.entry.js} +1 -1
- package/lib/duet/{p-6d16043c.entry.js → p-b0ef9b4d.entry.js} +1 -1
- package/lib/duet/p-b24d3435.js +4 -0
- package/lib/duet/{p-b1ab0652.entry.js → p-b2593361.entry.js} +1 -1
- package/lib/duet/{p-00c275a8.system.entry.js → p-b431845b.system.entry.js} +1 -1
- package/lib/duet/{p-a1105b5c.system.js → p-b55d39ac.system.js} +1 -1
- package/lib/duet/p-b65350dc.entry.js +4 -0
- package/lib/duet/p-b6f48f4d.entry.js +4 -0
- package/lib/duet/{p-42f8f330.system.entry.js → p-b756baa9.system.entry.js} +1 -1
- package/lib/duet/{p-015b7bce.system.entry.js → p-b7803656.system.entry.js} +1 -1
- package/lib/duet/{p-34afb5ae.system.entry.js → p-b7ed82f4.system.entry.js} +1 -1
- package/lib/duet/{p-5b908466.entry.js → p-b8185220.entry.js} +1 -1
- package/lib/duet/{p-02f8661f.entry.js → p-b896491f.entry.js} +1 -1
- package/lib/duet/{p-4d7b963e.entry.js → p-bc359337.entry.js} +1 -1
- package/lib/duet/{p-c45f948b.system.entry.js → p-bca2ccb3.system.entry.js} +1 -1
- package/lib/duet/{p-238fa831.entry.js → p-bddfed11.entry.js} +1 -1
- package/lib/duet/{p-e2bf5465.entry.js → p-be503b8d.entry.js} +1 -1
- package/lib/duet/{p-4393178b.system.entry.js → p-c18cb1b4.system.entry.js} +1 -1
- package/lib/duet/{p-9e736904.entry.js → p-c20f85ec.entry.js} +1 -1
- package/lib/duet/{p-85bd737a.js → p-c379d3f3.js} +1 -1
- package/lib/duet/{p-eaf430ed.entry.js → p-c4d14a4a.entry.js} +1 -1
- package/lib/duet/{p-2afae3ba.system.entry.js → p-c4d6fd64.system.entry.js} +1 -1
- package/lib/duet/{p-cb66bf76.system.entry.js → p-c5d06c1b.system.entry.js} +1 -1
- package/lib/duet/{p-d13e3716.system.entry.js → p-c5d8d5c5.system.entry.js} +1 -1
- package/lib/duet/{p-c6ad88ca.system.entry.js → p-c5eac926.system.entry.js} +1 -1
- package/lib/duet/p-c73528d2.entry.js +4 -0
- package/lib/duet/{p-0c27b62a.system.entry.js → p-c9099a4c.system.entry.js} +1 -1
- package/lib/duet/p-c999bd81.system.js +4 -0
- package/lib/duet/{p-fe66eee6.entry.js → p-c9e7e6ba.entry.js} +1 -1
- package/lib/duet/p-cc531319.js +4 -0
- package/lib/duet/{p-c378ccdd.system.js → p-cc605f5d.system.js} +1 -1
- package/lib/duet/{p-793b2147.entry.js → p-cda10bf2.entry.js} +1 -1
- package/lib/duet/{p-ed0179f9.js → p-cf9767ff.js} +1 -1
- package/lib/duet/{p-e57748ed.entry.js → p-d057a6d8.entry.js} +1 -1
- package/lib/duet/{p-ac8c8a39.system.entry.js → p-d0c8f7e6.system.entry.js} +1 -1
- package/lib/duet/{p-5844d557.entry.js → p-d2341beb.entry.js} +1 -1
- package/lib/duet/{p-89aebeb3.entry.js → p-d40db25d.entry.js} +1 -1
- package/lib/duet/{p-599ce571.system.entry.js → p-d4f9cffa.system.entry.js} +1 -1
- package/lib/duet/{p-ce092918.entry.js → p-d521e905.entry.js} +1 -1
- package/lib/duet/{p-e6236342.entry.js → p-d5fa54d8.entry.js} +1 -1
- package/lib/duet/{p-88f1717c.entry.js → p-d63e0c73.entry.js} +1 -1
- package/lib/duet/{p-00a1eee5.entry.js → p-d784f598.entry.js} +1 -1
- package/lib/duet/{p-afa617d4.system.entry.js → p-dd65ad86.system.entry.js} +1 -1
- package/lib/duet/{p-ef2872f7.entry.js → p-df6e744f.entry.js} +1 -1
- package/lib/duet/{p-b1ba3c6a.entry.js → p-dfb3f974.entry.js} +1 -1
- package/lib/duet/{p-2e51ccc4.entry.js → p-e009bc05.entry.js} +1 -1
- package/lib/duet/{p-e91e9697.system.entry.js → p-e22cf329.system.entry.js} +1 -1
- package/lib/duet/{p-16a2b903.entry.js → p-e63c7eb8.entry.js} +1 -1
- package/lib/duet/{p-e9c354e0.entry.js → p-e6a41ac2.entry.js} +1 -1
- package/lib/duet/{p-c4538952.system.entry.js → p-e8916361.system.entry.js} +1 -1
- package/lib/duet/{p-55865968.entry.js → p-ea88f789.entry.js} +1 -1
- package/lib/duet/{p-74f7b2c7.entry.js → p-eb11a1ef.entry.js} +1 -1
- package/lib/duet/{p-15aaf279.system.entry.js → p-ece81418.system.entry.js} +1 -1
- package/lib/duet/{p-1de43ba1.system.entry.js → p-ee19a820.system.entry.js} +1 -1
- package/lib/duet/{p-96c232c1.entry.js → p-f048548e.entry.js} +1 -1
- package/lib/duet/{p-9240897c.system.entry.js → p-f0f5dccd.system.entry.js} +1 -1
- package/lib/duet/{p-65e8cb09.entry.js → p-f0f695e9.entry.js} +1 -1
- package/lib/duet/{p-c2509427.entry.js → p-f1473cb8.entry.js} +1 -1
- package/lib/duet/{p-28b88f1b.entry.js → p-f24b12de.entry.js} +1 -1
- package/lib/duet/p-f40d3751.entry.js +4 -0
- package/lib/duet/{p-dfc8cb16.system.entry.js → p-f81ed60a.system.entry.js} +1 -1
- package/lib/duet/{p-7df350f6.system.js → p-fa2b069d.system.js} +1 -1
- package/lib/duet/{p-24c9714a.system.entry.js → p-fcd4b8c6.system.entry.js} +1 -1
- package/lib/duet/{p-e79cba3f.system.entry.js → p-ff1ead2c.system.entry.js} +2 -2
- package/lib/esm/{a11y-utils-ba8ce43e.js → a11y-utils-d1cc06c2.js} +1 -1
- package/lib/esm/{app-globals-90a110af.js → app-globals-47aea494.js} +1 -1
- package/lib/esm/{common-strings-af765cad.js → common-strings-a48b3fba.js} +6 -1
- package/lib/esm/duet-action-button.entry.js +2 -2
- package/lib/esm/duet-alert.entry.js +3 -3
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-banner.entry.js +2 -2
- package/lib/esm/duet-breadcrumb.entry.js +2 -2
- package/lib/esm/duet-breadcrumbs.entry.js +2 -2
- package/lib/esm/duet-button_2.entry.js +3 -3
- package/lib/esm/duet-callout.entry.js +2 -2
- package/lib/esm/duet-caption_4.entry.js +9 -8
- package/lib/esm/duet-card.entry.js +2 -2
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-chip.entry.js +2 -2
- package/lib/esm/duet-choice_2.entry.js +4 -4
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +3 -3
- package/lib/esm/duet-contact-card.entry.js +2 -2
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +4 -4
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +3 -3
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +3 -3
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +32 -3
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +4 -4
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +3 -3
- package/lib/esm/duet-layout.entry.js +2 -2
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-item.entry.js +5 -5
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +2 -2
- package/lib/esm/duet-modal.entry.js +5 -5
- package/lib/esm/duet-multiselect.entry.js +4 -4
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +2 -2
- package/lib/esm/duet-number-input.entry.js +3 -3
- package/lib/esm/duet-overlay.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +2 -2
- package/lib/esm/duet-phone-input.entry.js +3 -3
- package/lib/esm/duet-popup-menu_2.entry.js +9 -6
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-promo-card.entry.js +2 -2
- 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 +3 -3
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +2 -2
- package/lib/esm/duet-shaped-image.entry.js +1 -1
- package/lib/esm/duet-share-chart-item.entry.js +1 -1
- package/lib/esm/duet-share-chart.entry.js +2 -2
- package/lib/esm/duet-show-more.entry.js +2 -2
- package/lib/esm/duet-slideout-lang.entry.js +2 -2
- package/lib/esm/duet-slideout-link.entry.js +5 -5
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +4 -4
- package/lib/esm/duet-slideout.entry.js +4 -4
- package/lib/esm/duet-status-icon.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +17 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +4 -4
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-item.entry.js +5 -5
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
- package/lib/esm/duet-tooltip.entry.js +3 -3
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.entry.js +3 -3
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-755952c8.js → errorcodes.utils-304f8760.js} +1 -1
- package/lib/esm/{floating-ui.dom.esm-ef361ca5.js → floating-ui.dom.esm-ebc91b33.js} +27 -50
- package/lib/esm/{focus-utils-a8518a11.js → focus-utils-2858c284.js} +1 -1
- package/lib/esm/{index-56e364b1.js → index-b3c02ed1.js} +1 -1
- package/lib/esm/{language-utils-abee49de.js → language-utils-bd203b69.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-2d133bd0.js → slot-utils-ddf92cbc.js} +1 -1
- package/lib/esm-es5/{a11y-utils-ba8ce43e.js → a11y-utils-d1cc06c2.js} +1 -1
- package/lib/esm-es5/{app-globals-90a110af.js → app-globals-47aea494.js} +1 -1
- package/lib/esm-es5/{common-strings-af765cad.js → common-strings-a48b3fba.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- 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 +1 -1
- 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 +2 -2
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- 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 +2 -2
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +1 -1
- 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 +1 -1
- 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-share-chart-item.entry.js +1 -1
- package/lib/esm-es5/duet-share-chart.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 +1 -1
- package/lib/esm-es5/duet-status-icon.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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-755952c8.js → errorcodes.utils-304f8760.js} +1 -1
- package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +4 -0
- package/lib/esm-es5/{focus-utils-a8518a11.js → focus-utils-2858c284.js} +1 -1
- package/lib/esm-es5/{index-56e364b1.js → index-b3c02ed1.js} +1 -1
- package/lib/esm-es5/{language-utils-abee49de.js → language-utils-bd203b69.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-2d133bd0.js → slot-utils-ddf92cbc.js} +1 -1
- package/lib/types/common-strings.d.ts +1 -0
- package/lib/types/common-types.d.ts +1 -1
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
- package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
- package/lib/types/components.d.ts +2 -2
- package/package.json +4 -4
- package/lib/duet/p-0dd3a7c9.entry.js +0 -4
- package/lib/duet/p-17aa4bbe.system.entry.js +0 -4
- package/lib/duet/p-1b7ac0a5.entry.js +0 -4
- package/lib/duet/p-2b30e991.entry.js +0 -4
- package/lib/duet/p-31bb5751.js +0 -4
- package/lib/duet/p-3c6da86e.entry.js +0 -4
- package/lib/duet/p-437d2bb6.entry.js +0 -4
- package/lib/duet/p-5a9197a4.entry.js +0 -4
- package/lib/duet/p-64d39db4.js +0 -4
- package/lib/duet/p-68eb7faa.entry.js +0 -4
- package/lib/duet/p-737130d0.js +0 -4
- package/lib/duet/p-7930b999.system.js +0 -4
- package/lib/duet/p-ab6757f6.entry.js +0 -4
- package/lib/duet/p-adaf3f59.entry.js +0 -4
- package/lib/duet/p-b84219f5.entry.js +0 -4
- package/lib/duet/p-beeb12f1.js +0 -4
- package/lib/duet/p-cc5e6288.system.js +0 -4
- package/lib/duet/p-d7f543fb.js +0 -4
- package/lib/duet/p-d8861775.system.js +0 -4
- package/lib/duet/p-dcd70e16.entry.js +0 -4
- package/lib/duet/p-f0939f30.entry.js +0 -4
- package/lib/esm-es5/floating-ui.dom.esm-ef361ca5.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,h as i,H as n,g as e}from"./p-ed0179f9.js";import{i as d}from"./p-2e417433.js";const r=class{constructor(i){t(this,i),this.responsive=!1,this.breakpoint="small",this.direction="horizontal",this.rowReverse=!1,this.alignment="top",this.distribution="default",this.mobile="",this.gridTemplate=null}outerHeight(t){const i=t.offsetHeight,n=window.getComputedStyle(t);return["top","bottom"].map((t=>parseInt(n[`margin-${t}`]))).reduce(((t,i)=>t+i),i)}debounceWindowResizeHandler(){}async connectedCallback(){this.childObserver=new MutationObserver(this.updateGridItems.bind(this)),this.childObserver.observe(this.element,{childList:!0}),"form_distribute"===this.alignment&&(this.formDistributeObserver=new MutationObserver(this.updateGridItemsWithInputFields.bind(this)),this.formDistributeObserver.observe(this.element,{subtree:!0,childList:!0,characterData:!0}),window.addEventListener("resize",this.debounceWindowResizeHandler),this.updateGridItemsWithInputFields()),this.updateGridItems()}disconnectedCallback(){this.childObserver&&(this.childObserver.disconnect(),this.childObserver=void 0),this.formDistributeObserver&&(this.formDistributeObserver.disconnect(),this.formDistributeObserver=void 0),window.removeEventListener("resize",this.debounceWindowResizeHandler)}getDirectChildren(){return Array.from(this.element.querySelectorAll(":scope > *"))}async updateGridItems(){this.getDirectChildren().filter((t=>"duet-grid-item"===t.tagName.toLowerCase())).forEach((t=>{t.responsive=this.responsive,t.breakpoint=this.breakpoint,t.direction=this.direction,t.rowReverse=this.rowReverse}))}async updateGridItemsWithInputFields(){const t=["duet-button","duet-checkbox","duet-choice","duet-choice-group","duet-combobox","duet-date-picker","duet-fieldset","duet-grid-item","duet-input","duet-multiselect","duet-number-input","duet-phone-input","duet-radio","duet-radio-group","duet-range-slider","duet-select","duet-textarea","duet-toggle"],i=this.getDirectChildren().filter((i=>!!i.querySelector(t.join(","))||t.includes(i.tagName.toLowerCase()))),n=!!window&&"column"===window.getComputedStyle(this.element).flexDirection;let e=0;const d=[];i.forEach((t=>{const i=t.querySelector("span.duet-input-error"),n=i?this.outerHeight(i):0;d.push(n)})),e=Math.max(...d),i.forEach((t=>{const i=t.querySelector("span.duet-input-error"),d=i?this.outerHeight(i):0;d<e&&!n?t.setAttribute("style",`padding-bottom: ${e-d}px;`):(d===e||n)&&t.setAttribute("style","padding-bottom: 0px;")}))}render(){return i(n,{class:{"duet-grid":!0,"duet-no-stacking":!this.responsive,"duet-grid-align-top":"top"===this.alignment,"duet-grid-align-bottom":"bottom"===this.alignment||"form_distribute"===this.alignment,"duet-grid-align-center":"center"===this.alignment,"duet-grid-align-stretch":"stretch"===this.alignment,"duet-grid-align-baseline":"baseline"===this.alignment,"duet-grid-distribution-left":"left"===this.distribution,"duet-grid-distribution-right":"right"===this.distribution,"duet-grid-distribution-center":"center"===this.distribution,"duet-grid-distribution-between":"space-between"===this.distribution,"duet-grid-distribution-around":"space-around"===this.distribution,"duet-grid-distribution-evenly":"space-evenly"===this.distribution,"duet-grid-mobile-left":"left"===this.mobile,"duet-grid-mobile-center":"center"===this.mobile,"duet-grid-mobile-right":"right"===this.mobile,"duet-grid-direction-horizontal":"horizontal"===this.direction,"duet-grid-direction-vertical":"vertical"===this.direction,"duet-grid-breakpoint-x-small":"x-small"===this.breakpoint,"duet-grid-breakpoint-small":"small"===this.breakpoint,"duet-grid-breakpoint-medium":"medium"===this.breakpoint,"duet-grid-breakpoint-large":"large"===this.breakpoint,"duet-grid-breakpoint-x-large":"x-large"===this.breakpoint,"duet-grid-row-reverse":this.rowReverse,["duet-grid-variation-"+(this.gridTemplate?"grid":"flex")]:!0,[`duet-grid-template-${this.gridTemplate}`]:!0}},i("slot",null))}get element(){return e(this)}static get watchers(){return{responsive:["updateGridItems"],breakpoint:["updateGridItems"],direction:["updateGridItems"]}}};r.style=":host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n}\n\n:host(.duet-grid-variation-flex) {\n display: flex !important;\n flex-direction: column !important;\n align-items: flex-start !important;\n justify-content: flex-start !important;\n width: 100%;\n max-width: 100%;\n height: auto;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small) {\n flex-direction: row !important;\n}\n@media (max-width: 22.5em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-small) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-small.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-medium) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-medium.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-large) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-large.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-large) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-large.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-wrap) {\n flex-wrap: wrap !important;\n}\n\n:host(.duet-grid-variation-flex.duet-no-stacking) {\n flex-direction: row !important;\n}\n\n:host(.duet-grid-variation-flex.duet-no-stacking.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n}\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small) {\n flex-direction: column !important;\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium) {\n flex-direction: column !important;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large) {\n flex-direction: column !important;\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large) {\n flex-direction: column !important;\n}\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-top.duet-no-stacking) {\n align-items: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-no-stacking) {\n align-items: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-center.duet-no-stacking) {\n align-items: center !important;\n}\n\n.duet-grid-align-stretch.duet-no-stacking {\n align-items: stretch !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-no-stacking) {\n align-items: baseline !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-small) {\n align-items: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-small) {\n align-items: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-small) {\n align-items: center !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-small) {\n align-items: stretch !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-small) {\n align-items: baseline !important;\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-small) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-small) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-small) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-small) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-small) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-medium) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-medium) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-medium) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-medium) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-medium) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-large) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-large) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-large) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-large) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-large) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-large) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-large) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-large) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-large) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-large) {\n align-items: baseline !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-left) {\n justify-content: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-right) {\n justify-content: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-center) {\n justify-content: center !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-between) {\n justify-content: space-between !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-around) {\n justify-content: space-around !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-evenly) {\n justify-content: space-evenly !important;\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-left) {\n align-items: flex-start !important;\n justify-content: flex-start !important;\n text-align: left !important;\n }\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-center) {\n align-items: center !important;\n justify-content: center !important;\n text-align: center !important;\n }\n :host(.duet-grid-variation-flex.duet-grid-mobile-center) * {\n text-align: center !important;\n }\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-right) {\n align-items: flex-end !important;\n justify-content: flex-end !important;\n text-align: right !important;\n }\n :host(.duet-grid-variation-flex.duet-grid-mobile-right) * {\n text-align: right !important;\n }\n}\n\n:host(.duet-grid-variation-grid) {\n display: grid;\n grid-template-rows: repeat(1, 1fr);\n grid-template-columns: repeat(4, minmax(0, 1fr));\n gap: 16px;\n align-items: flex-start;\n justify-content: center;\n padding: 0 20px;\n container-type: inline-size;\n overflow-x: clip;\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-grid) {\n gap: 24px;\n padding: 0 40px;\n }\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(8, 55px);\n gap: 24px 32px;\n padding: 0;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(12, minmax(0, 1fr));\n padding: 0 64px;\n }\n}\n@media (min-width: 76.25em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(12, 55px);\n gap: 40px;\n padding: 0;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 3/span 8;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 2/span 10;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 12;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 9/span 4;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 5/span 8;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 6;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 5/span 4;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 7/span 6;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 5/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 9/span 4;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n grid-template-columns: minmax(0, 1fr);\n gap: 12px;\n padding: 0;\n /* stylelint-disable */\n /* stylelint-disable */\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n gap: 16px;\n }\n}\n@container (min-width: 664px) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n /* stylelint-enable */\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n@container (min-width: 1100px) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n /* stylelint-enable */\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n}";const a=class{constructor(i){t(this,i),this.fill=!1,this.maxWidth=void 0,this.minWidth=void 0,this.theme="",this.margin="auto",this.responsive=!1,this.direction="horizontal",this.breakpoint="small",this.rowReverse=!1}componentWillLoad(){d(this)}render(){return i(n,{style:{"min-width":this.minWidth,"max-width":this.maxWidth},class:{"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-grid-item":!0,"duet-grid-item-fill":this.fill,"duet-grid-item-responsive":this.responsive,"duet-grid-item-row-reverse":this.rowReverse,"duet-grid-direction-horizontal":"horizontal"===this.direction,"duet-grid-direction-vertical":"vertical"===this.direction,"duet-grid-item-br-x-small":"x-small"===this.breakpoint,"duet-grid-item-br-small":"small"===this.breakpoint,"duet-grid-item-br-medium":"medium"===this.breakpoint,"duet-grid-item-br-large":"large"===this.breakpoint,"duet-grid-item-br-x-large":"x-large"===this.breakpoint}},i("slot",null))}};a.style=':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;min-width:0;max-width:100%;flex:0 0 auto;padding-right:8px;padding-left: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-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77)}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-child){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-of-type){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-child){padding-right:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-child){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-child){padding-left:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-of-type){padding-left:0}@media (max-width: 35.9375em){:host(.duet-grid-item-responsive){width:100% !important;min-width:0 !important;max-width:100% !important;padding-right:0;padding-left:0}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-br-medium){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-responsive.duet-grid-item-br-medium){padding-right:0;padding-left:0}}@media screen and (max-width: 64em){:host(.duet-grid-item-br-x-large){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 64em){:host(.duet-grid-item-responsive.duet-grid-item-br-x-large){padding-right:0;padding-left:0}}:host(.duet-grid-item-fill){flex:1 1 auto;width:100%}: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){padding:0 !important;margin:0 !important}';export{r as duet_grid,a as duet_grid_item}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as o,F as i,g as r}from"./p-ed0179f9.js";import{a}from"./p-f11208c3.js";import{D as d}from"./p-beeb12f1.js";import{i as n}from"./p-2e417433.js";import{s,u as l}from"./p-a45e3f8b.js";import{a as p,g as f,c as m,d as u}from"./p-0773901d.js";import{h}from"./p-ae924d35.js";import{p as c}from"./p-9c3c64b9.js";const g={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}},b=(e,t)=>({component:"duet-footer",data:t,originalEvent:e}),x=class{constructor(o){e(this,o),this.duetChange=t(this,"duetChange",3),this.duetLogoClick=t(this,"duetLogoClick",7),this.duetMenuClick=t(this,"duetMenuClick",7),this.duetItemClick=t(this,"duetItemClick",7),this.duetAnalytics=t(this,"duetAnalytics",7),this.duetEvent=t(this,"duetEvent",7),this.handleClick=e=>{e.data.analyticsId&&this.duetAnalytics.emit({component:"duet-footer",analyticsId:e.data.analyticsId}),this.duetChange.emit(e)},this.handleLogoClick=e=>{const t=b(e,{href:this.logoHref,label:"logo"});this.duetLogoClick.emit(t),this.handleClick(t)},this.handleMenuClick=(e,t)=>{const o=b(e,t);this.handleClick(o),this.duetMenuClick.emit(o)},this.handleItemClick=(e,t)=>{const o=b(e,t);this.handleClick(o),this.duetItemClick.emit(o)},this.emitDuetEvent=(e,t)=>{this.duetEvent.emit({component:"duet-footer",data:t,originalEvent:e})},this.setDataAttributes=(e,t)=>{if(t.data)for(const o in t.data)e.dataset[o]=t.data[o]},this.processedMainItem=null,this.processedItems=null,this.processedMenu=null,this.theme="",this.variation="default",this.margin="auto",this.logoHref="/",this.language=p(),this.items=void 0,this.accessibleLabel=void 0,this.accessibleLabelExternalDefaults=d,this.accessibleLabelExternal=f(this.accessibleLabelExternalDefaults),this.menu=void 0}componentWillLoad(){n(this),this.refresh(),this.hasInfoSlot=h(this.element,"info")}connectedCallback(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"}),s(this)}disconnectedCallback(){u(this),l(this)}async refresh(){this.processedItems=c(this.items),this.processedMenu=c(this.menu)}render(){const e=f(g,this.language),t="turva"===this.theme?e.turva:e.lahi;return o("footer",{key:"2f5358cae2af364591436b923621558a7db0b892",class:{"duet-footer":!0,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-footer-simple":"simple"===this.variation},"aria-label":this.accessibleLabel},o("div",{key:"55bd20ce5008bacebb5258d6abb3060f79055cc8",class:"duet-footer-wrapper"},"simple"!==this.variation&&o("div",{key:"439a668cb7bf800d15a16e04cb65c0db890821f1",class:{"duet-footer-top":!0,"duet-has-info":this.hasInfoSlot},part:"top"},o("div",{key:"a050517126f6e7b7387a40d4780f31fd8c61df96",class:"footer-top-logo"},o("duet-logo",{key:"a3d3dfd589b1a6a2c28942b7bbf06146e2117a2b",href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:!0,language:this.language,theme:this.theme})),o("div",{key:"464c8146c94cf0d301777700924b7fb446b86526",class:"footer-top-right-container"},o("slot",{key:"15486e3da1f50b0b42875f81c92739bb47ee0988",name:"info"}),o("div",{key:"6f6addf850f9abf70a3bec2d7fb990c6ee8bc79d",class:"footer-top-items"},this.processedItems&&this.processedItems.map(((e,t)=>{var r,a,d,n,s,l;return o(i,null,t>0&&o("duet-spacer",{size:"x-large",direction:"horizontal"}),o("duet-button",{ref:t=>this.setDataAttributes(t,e),theme:this.theme,id:e.id,class:"duet-footer-link",variation:"plain",margin:"none",fixed:!0,negative:!0,url:e.href,external:e.external,icon:(null===(r=e.href)||void 0===r?void 0:r.startsWith("tel:"))?"form-tel":(null===(a=e.href)||void 0===a?void 0:a.startsWith("mailto:"))?"navigation-message":"navigation-arrow-right","icon-right":!(null===(d=e.href)||void 0===d?void 0:d.startsWith("tel:"))&&!(null===(n=e.href)||void 0===n?void 0:n.startsWith("mailto:")),"icon-size":(null===(s=e.href)||void 0===s?void 0:s.startsWith("tel:"))||(null===(l=e.href)||void 0===l?void 0:l.startsWith("mailto:"))?"medium":"medium-small",onClick:t=>this.handleItemClick(t,e),onMouseEnter:t=>this.emitDuetEvent(t,e),onTouchStart:t=>this.emitDuetEvent(t,e)},e.label))}))))),o("slot",{key:"9abeaa9ef15e10aa69f0c481f8cd3b1b65ab4273",name:"extra"}),o("p",{key:"9266f09430c4ab355227d765ebb47019453cd175",class:"duet-footer-menu",part:"menu"},o("span",{key:"0b9db71f2534e447db290320c03af61e719c2d20",class:"duet-footer-copyright"},`${t} ${(new Date).getFullYear()}`),o("span",{key:"5d989664700ee20c32bc3debcfc71fa167976514",class:"duet-footer-menu-links"},this.processedMenu&&o(i,{key:"c38f8fa4d356c5f83159e94c445bf6779b357c8b"},this.processedMenu.map((e=>o("a",{ref:t=>this.setDataAttributes(t,e),href:e.href,id:e.id,target:e.external?"_blank":"_self",onClick:t=>this.handleMenuClick(t,e),onMouseEnter:t=>this.emitDuetEvent(t,e),onTouchStart:t=>this.emitDuetEvent(t,e)},e.label,e.external&&o(i,null,o("duet-visually-hidden",null,", ",this.accessibleLabelExternal),o("span",{class:"duet-footer-external"},o("duet-icon",{icon:a.svg,size:"xx-small",margin:"none",color:"currentColor"}))),o("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))))))),o("p",{key:"c9a5926823a901f267f0369a97a244bc2596b6f8",class:"duet-footer-copyright duet-footer-copyright-mobile"},`${t} ${(new Date).getFullYear()}`)))}get element(){return r(this)}static get watchers(){return{menu:["refresh"],items:["refresh"]}}};x.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;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:0;margin-bottom:16px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin-top:calc(20px - 0.5em);margin-bottom:0}}.duet-footer{display:block;width:100%;padding-top:24px;padding-bottom:16px;margin-top:48px;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(255, 255, 255);text-align:left;background:rgb(8, 42, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.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";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a: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 a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center}.duet-footer-top.duet-has-info{align-items:flex-start}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1}@media (min-width: 62em){.duet-footer-top .footer-top-right-container{text-align:right}}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:28px}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row;justify-content:flex-end}}duet-logo{margin-bottom:24px;margin-left:16px !important}@media (min-width: 62em){duet-logo{margin-bottom:0;margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;padding-left:28px !important;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-right:0 !important;padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;overflow-wrap:break-word}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{display:block;flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:28px;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(8, 42, 77);background:transparent !important;border-top:1px solid rgb(212, 223, 229)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(8, 42, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}';export{x as duet_footer}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as e,h as a,H as r,g as i}from"./p-ed0179f9.js";import{i as s}from"./p-2e417433.js";import{c as o}from"./p-5e59e970.js";import{c as d}from"./p-df7874f9.js";import{g as u,c as h,d as l}from"./p-0773901d.js";import{c as n}from"./p-ae924d35.js";import"./p-9c3c64b9.js";const c=({value:t,maxlength:e,label:r,theme:i})=>{if(null==e)return;const s=t.length,o=Math.max(e-s,0);return a("div",{class:"duet-character-count"},a("duet-caption",{margin:"none",theme:i,size:"small"},a("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},o/e<=.1&&`${o} ${r}`),a("span",{"aria-hidden":"true"},s,"/",e)))},p=class{constructor(a){t(this,a),this.duetInput=e(this,"duetInput",7),this.duetChange=e(this,"duetChange",7),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.textareaId=o("DuetTextarea"),this.topCaptionId=o("DuetCaptionTop"),this.topCaptionPlaceholderId=o("DuetCaptionPlaceholderTop"),this.labelId=o("DuetLabel"),this.errorId=o("DuetError"),this.characterCountId=o("DuetCharacterCount"),this.disallowPatternRegex=null,this.counterLabelDefaults={fi:"merkkiä jäljellä",en:"characters remaining",sv:"tecken kvar"},this.handleInput=t=>{this.disallowPatternRegex&&d(this.nativeInput,this.disallowPatternRegex),this.value=this.nativeInput.value,this.isCaptionVisible=!!this.caption,this.duetInput.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleChange=t=>{this.value=this.nativeInput.value,this.duetChange.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleBlur=t=>{this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleFocus=t=>{this.counter&&(this.hiddenCounterLabel.textContent=`${Math.max(this.maxlength-this.value.length,0)}/${this.maxlength} ${this.counterLabel}`),this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.getDescribedBy=()=>{const t=[];return this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.error&&t.push(this.errorId),this.counter&&t.push(this.characterCountId),t.length>0?t.join(" "):null},this.margin="auto",this.accessibleActiveDescendant=void 0,this.accessibleAutocomplete=void 0,this.accessibleControls=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveError="polite",this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.theme="",this.expand=!1,this.disabled=!1,this.identifier=void 0,this.required=!1,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.labelHidden=!1,this.name=void 0,this.placeholder=void 0,this.caption=void 0,this.echoPlaceholder=!1,this.maxlength=void 0,this.minlength=void 0,this.error="",this.role=void 0,this.tooltip="",this.tooltipDirection="auto",this.value="",this.disallowPattern=null,this.counter=!1,this.counterLabel=u(this.counterLabelDefaults)}disallowedPatternChange(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null}componentWillLoad(){s(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption,n(this.element,"tooltip","duet-tooltip",1,!0),this.counter&&null==this.maxlength&&console.warn("[DUET WARNING]: counter will only take effect if maxlength is set")}connectedCallback(){h(this,{prop:"counterLabel",defaults:"counterLabelDefaults"})}disconnectedCallback(){l(this)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.textareaId;return a(r,{class:{"duet-m-0":"none"===this.margin,"duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},a("div",{class:{"duet-textarea-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},a("duet-label",{theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:t},this.label),this.tooltip&&a("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:"turva"===this.theme?"turva":"default"},this.tooltip),a("slot",{name:"tooltip"}),this.caption&&a("duet-caption",{id:this.topCaptionId,size:"medium",theme:"turva"===this.theme?"turva":"default"},this.caption),a("div",{class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&a("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),a("textarea",{onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:t=>this.nativeInput=t,class:{"duet-textarea":!0,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?`${this.labelId} ${this.accessibleLabelledBy}`:this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:t})),a("duet-grid",{alignment:"stretch"},a("duet-grid-item",{margin:"none",fill:!0},a("div",{class:"duet-textarea-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&a("span",null,this.error))),a("duet-grid-item",{margin:"none",class:"duet-character-count-caption"},this.counter&&a(c,{theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&a("duet-visually-hidden",{class:"duet-visually-hidden",id:this.characterCountId,ref:t=>{this.hiddenCounterLabel=t}})))}get element(){return i(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"]}}};p.style='*.sc-duet-textarea,*.sc-duet-textarea::after,*.sc-duet-textarea::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-textarea-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:block;width:100%;max-width:100%;text-align:left}.sc-duet-textarea-h:last-child,.sc-duet-textarea-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-textarea-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-textarea-h{width:100% !important}}.duet-m-0.sc-duet-textarea-h{margin:0 !important}duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:relative;top:4px;right:auto}}.duet-textarea-container.sc-duet-textarea{position:relative;width:100%;height:100%}.duet-textarea-container.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:none}.duet-textarea-container.duet-input-top-caption-shown.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:flex !important}.duet-textarea-wrapper.sc-duet-textarea{position:relative}.duet-textarea-placeholder.sc-duet-textarea{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea.sc-duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;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:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{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);border-color:rgb(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea[disabled].sc-duet-textarea{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important}.duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(8, 42, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(8, 42, 77)}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #909599}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #747475}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-textarea.sc-duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px #e55039}.duet-textarea.sc-duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help.sc-duet-textarea{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;line-height:1.25}.duet-textarea-help.sc-duet-textarea span.sc-duet-textarea{display:block;margin-top:8px}.duet-theme-turva.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{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(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-textarea duet-label.sc-duet-textarea{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-character-count.sc-duet-textarea{display:block;margin:8px 0 0 auto}';export{p as duet_textarea}
|
package/lib/duet/p-beeb12f1.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
const n={fi:"Linkki tallennetaan laitteellesi",sv:"Nedladdningslänk",en:"Download link"},a={fi:"Avautuu uuteen ikkunaan",sv:"Öppnas i nytt fönster",en:"Opens in a new window"},e={fi:"Ladataan",sv:"Laddas",en:"Loading…"},i={fi:"Odota, ole hyvä.",sv:"Vänligen vänta.",en:"Please wait."};export{a as D,i as a,e as b,n as c}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
System.register([],(function(n){"use strict";return{execute:function(){var a=n("c",{fi:"Linkki tallennetaan laitteellesi",sv:"Nedladdningslänk",en:"Download link"});var e=n("D",{fi:"Avautuu uuteen ikkunaan",sv:"Öppnas i nytt fönster",en:"Opens in a new window"});var i=n("b",{fi:"Ladataan",sv:"Laddas",en:"Loading…"});var t=n("a",{fi:"Odota, ole hyvä.",sv:"Vänligen vänta.",en:"Please wait."})}}}));
|
package/lib/duet/p-d7f543fb.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
const t=Math.min,n=Math.max,e={left:"right",right:"left",bottom:"top",top:"bottom"},o={start:"end",end:"start"};function r(e,o,r){return n(e,t(o,r))}function i(t,n){return"function"==typeof t?t(n):t}function a(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function c(t){return"x"===t?"y":"x"}function s(t){return"y"===t?"height":"width"}const u=new Set(["top","bottom"]);function f(t){return u.has(a(t))?"y":"x"}function d(t){return c(f(t))}function y(t){return t.replace(/start|end/g,(t=>o[t]))}const m=["left","right"],p=["right","left"],h=["top","bottom"],x=["bottom","top"];function g(t){return t.replace(/left|right|bottom|top/g,(t=>e[t]))}function w(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function v(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function b(t,n,e){let{reference:o,floating:r}=t;const i=f(n),c=d(n),u=s(c),y=a(n),m="y"===i,p=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,x=o[u]/2-r[u]/2;let g;switch(y){case"top":g={x:p,y:o.y-r.height};break;case"bottom":g={x:p,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(l(n)){case"start":g[c]-=x*(e&&m?-1:1);break;case"end":g[c]+=x*(e&&m?-1:1)}return g}async function A(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:a,rects:l,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:y=!1,padding:m=0}=i(n,t),p=w(m),h=c[y?"floating"===d?"reference":"floating":d],x=v(await a.getClippingRect({element:null==(e=await(null==a.isElement?void 0:a.isElement(h)))||e?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:s})),g="floating"===d?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),A=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},S=v(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:g,offsetParent:b,strategy:s}):g);return{top:(x.top-S.top+p.top)/A.y,bottom:(S.bottom-x.bottom+p.bottom)/A.y,left:(x.left-S.left+p.left)/A.x,right:(S.right-x.right+p.right)/A.x}}const S=n=>({name:"arrow",options:n,async fn(e){const{x:o,y:a,placement:c,rects:u,platform:f,elements:y,middlewareData:m}=e,{element:p,padding:h=0}=i(n,e)||{};if(null==p)return{};const x=w(h),g={x:o,y:a},v=d(c),b=s(v),A=await f.getDimensions(p),S="y"===v,k=S?"top":"left",R=S?"bottom":"right",F=S?"clientHeight":"clientWidth",D=u.reference[b]+u.reference[v]-g[v]-u.floating[b],P=g[v]-u.reference[v],C=await(null==f.getOffsetParent?void 0:f.getOffsetParent(p));let M=C?C[F]:0;M&&await(null==f.isElement?void 0:f.isElement(C))||(M=y.floating[F]||u.floating[b]);const T=D/2-P/2,z=M/2-A[b]/2-1,B=t(x[k],z),L=t(x[R],z),O=B,E=M-A[b]-L,N=M/2-A[b]/2+T,V=r(O,N,E),j=!m.arrow&&null!=l(c)&&N!==V&&u.reference[b]/2-(N<O?B:L)-A[b]/2<0,q=j?N<O?N-O:N-E:0;return{[v]:g[v]+q,data:{[v]:V,centerOffset:N-V-q,...j&&{alignmentOffset:q}},reset:j}}}),k=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:c,rects:u,initialPlacement:w,platform:v,elements:b}=n,{mainAxis:S=!0,crossAxis:k=!0,fallbackPlacements:R,fallbackStrategy:F="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:P=!0,...C}=i(t,n);if(null!=(e=c.arrow)&&e.alignmentOffset)return{};const M=a(r),T=f(w),z=a(w)===w,B=await(null==v.isRTL?void 0:v.isRTL(b.floating)),L=R||(z||!P?[g(w)]:function(t){const n=g(t);return[y(t),n,y(n)]}(w)),O="none"!==D;!R&&O&&L.push(...function(t,n,e,o){const r=l(t);let i=function(t,n,e){switch(t){case"top":case"bottom":return e?n?p:m:n?m:p;case"left":case"right":return n?h:x;default:return[]}}(a(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(y)))),i}(w,P,D,B));const E=[w,...L],N=await A(n,C),V=[];let j=(null==(o=c.flip)?void 0:o.overflows)||[];if(S&&V.push(N[M]),k){const t=function(t,n,e){void 0===e&&(e=!1);const o=l(t),r=d(t),i=s(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=g(a)),[a,g(a)]}(r,u,B);V.push(N[t[0]],N[t[1]])}if(j=[...j,{placement:r,overflows:V}],!V.every((t=>t<=0))){var q,H;const t=((null==(q=c.flip)?void 0:q.index)||0)+1,n=E[t];if(n&&("alignment"!==k||T===f(n)||j.every((t=>f(t.placement)!==T||t.overflows[0]>0))))return{data:{index:t,overflows:j},reset:{placement:n}};let e=null==(H=j.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:H.placement;if(!e)switch(F){case"bestFit":{var W;const t=null==(W=j.filter((t=>{if(O){const n=f(t.placement);return n===T||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:W[0];t&&(e=t);break}case"initialPlacement":e=w}if(r!==e)return{reset:{placement:e}}}return{}}}},R=new Set(["left","top"]),F=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:c,placement:s,middlewareData:u}=n,d=await async function(t,n){const{placement:e,platform:o,elements:r}=t,c=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=a(e),u=l(e),d="y"===f(e),y=R.has(s)?-1:1,m=c&&d?-1:1,p=i(n,t);let{mainAxis:h,crossAxis:x,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof g&&(x="end"===u?-1*g:g),d?{x:x*m,y:h*y}:{x:h*y,y:x*m}}(n,t);return s===(null==(e=u.offset)?void 0:e.placement)&&null!=(o=u.arrow)&&o.alignmentOffset?{}:{x:r+d.x,y:c+d.y,data:{...d,placement:s}}}}},D=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:l}=n,{mainAxis:s=!0,crossAxis:u=!1,limiter:d={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...y}=i(t,n),m={x:e,y:o},p=await A(n,y),h=f(a(l)),x=c(h);let g=m[x],w=m[h];s&&(g=r(g+p["y"===x?"top":"left"],g,g-p["y"===x?"bottom":"right"])),u&&(w=r(w+p["y"===h?"top":"left"],w,w-p["y"===h?"bottom":"right"]));const v=d.fn({...n,[x]:g,[h]:w});return{...v,data:{x:v.x-e,y:v.y-o,enabled:{[x]:s,[h]:u}}}}}};function P(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function C(t){return P(t).getComputedStyle(t)}function M(t){return t instanceof P(t).Node}function T(t){return M(t)?(t.nodeName||"").toLowerCase():""}function z(t){return t instanceof P(t).HTMLElement}function B(t){return t instanceof P(t).Element}function L(t){return"undefined"!=typeof ShadowRoot&&(t instanceof P(t).ShadowRoot||t instanceof ShadowRoot)}function O(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=C(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function E(t){return["table","td","th"].includes(T(t))}function N(t){const n=V(),e=C(t);return"none"!==e.transform||"none"!==e.perspective||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function V(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function j(t){return["html","body","#document"].includes(T(t))}const q=Math.min,H=Math.max,W=Math.round;function X(t){const n=C(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=z(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=W(e)!==i||W(o)!==a;return l&&(e=i,o=a),{width:e,height:o,fallback:l}}function Y(t){return B(t)?t:t.contextElement}const _={x:1,y:1};function G(t){const n=Y(t);if(!z(n))return _;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=X(n);let a=(i?W(e.width):e.width)/o,l=(i?W(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const I={x:0,y:0};function J(t,n,e){var o,r;if(void 0===n&&(n=!0),!V())return I;const i=t?P(t):window;return!e||n&&e!==i?I:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function K(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=Y(t);let a=_;n&&(o?B(o)&&(a=G(o)):a=G(t));const l=J(i,e,o);let c=(r.left+l.x)/a.x,s=(r.top+l.y)/a.y,u=r.width/a.x,f=r.height/a.y;if(i){const t=P(i),n=o&&B(o)?P(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=G(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,c*=t.x,s*=t.y,u*=t.x,f*=t.y,c+=n.x,s+=n.y,e=P(e).frameElement}}return v({width:u,height:f,x:c,y:s})}function Q(t){return((M(t)?t.ownerDocument:t.document)||window.document).documentElement}function U(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(t){return K(Q(t)).left+U(t).scrollLeft}function $(t){if("html"===T(t))return t;const n=t.assignedSlot||t.parentNode||L(t)&&t.host||Q(t);return L(n)?n.host:n}function tt(t){const n=$(t);return j(n)?n.ownerDocument.body:z(n)&&O(n)?n:tt(n)}function nt(t,n){var e;void 0===n&&(n=[]);const o=tt(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=P(o);return r?n.concat(i,i.visualViewport||[],O(o)?o:[]):n.concat(o,nt(o))}function et(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=P(t),o=Q(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=V();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=Q(t),e=U(t),o=t.ownerDocument.body,r=H(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=H(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+Z(t);const l=-e.scrollTop;return"rtl"===C(o).direction&&(a+=H(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(Q(t));else if(B(n))o=function(t,n){const e=K(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=z(t)?G(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=J(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return v(o)}function ot(t,n){const e=$(t);return!(e===n||!B(e)||j(e))&&("fixed"===C(e).position||ot(e,n))}function rt(t,n){return z(t)&&"fixed"!==C(t).position?n?n(t):t.offsetParent:null}function it(t,n){const e=P(t);if(!z(t))return e;let o=rt(t,n);for(;o&&E(o)&&"static"===C(o).position;)o=rt(o,n);return o&&("html"===T(o)||"body"===T(o)&&"static"===C(o).position&&!N(o))?e:o||function(t){let n=$(t);for(;z(n)&&!j(n);){if(N(n))return n;n=$(n)}return null}(t)||e}function at(t,n,e){const o=z(n),r=Q(n),i="fixed"===e,a=K(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if(("body"!==T(n)||O(r))&&(l=U(n)),z(n)){const t=K(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=Z(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}const lt={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=nt(t).filter((t=>B(t)&&"body"!==T(t))),r=null;const i="fixed"===C(t).position;let a=i?$(t):t;for(;B(a)&&!j(a);){const n=C(a),e=N(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||O(a)&&!e&&ot(t,a))?o=o.filter((t=>t!==a)):r=n,a=$(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=et(n,e,r);return t.top=H(o.top,t.top),t.right=q(o.right,t.right),t.bottom=q(o.bottom,t.bottom),t.left=H(o.left,t.left),t}),et(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=z(e),i=Q(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==T(e)||O(i))&&(a=U(e)),z(e))){const t=K(e);l=G(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}},isElement:B,getDimensions:function(t){return X(t)},getOffsetParent:it,getDocumentElement:Q,getScale:G,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||it,i=this.getDimensions;return{reference:at(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===C(t).direction};function ct(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=o,c=r||i?[...B(t)?nt(t):t.contextElement?nt(t.contextElement):[],...nt(n)]:[];c.forEach((t=>{const n=!B(t)&&t.toString().includes("V");!r||l&&!n||t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));let s,u=null;a&&(u=new ResizeObserver((()=>{e()})),B(t)&&!l&&u.observe(t),B(t)||!t.contextElement||l||u.observe(t.contextElement),u.observe(n));let f=l?K(t):null;return l&&function n(){const o=K(t);!f||o.x===f.x&&o.y===f.y&&o.width===f.width&&o.height===f.height||e(),f=o,s=requestAnimationFrame(n)}(),e(),()=>{var t;c.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(s)}}const st=(t,n,e)=>{const o=new Map,r={platform:lt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=b(s,o,c),d=o,y={},m=0;for(let e=0;e<l.length;e++){const{name:i,fn:p}=l[e],{x:h,y:x,data:g,reset:w}=await p({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:s,platform:a,elements:{reference:t,floating:n}});u=null!=h?h:u,f=null!=x?x:f,y={...y,[i]:{...y[i],...g}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):w.rects),({x:u,y:f}=b(s,d,c))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{S as a,ct as b,st as c,k as f,F as o,D as s}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var t,n=1,e=arguments.length;n<e;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))r[i]=t[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,t,n,e){function i(r){return r instanceof n?r:new n((function(t){t(r)}))}return new(n||(n=Promise))((function(n,a){function u(r){try{f(e.next(r))}catch(r){a(r)}}function o(r){try{f(e["throw"](r))}catch(r){a(r)}}function f(r){r.done?n(r.value):i(r.value).then(u,o)}f((e=e.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(r){return function(t){return f([r,t])}}function f(o){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(n=0)),n)try{if(e=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(r,n)}catch(r){o=[6,r];i=0}finally{e=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(r,t){var n={};for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0)n[e]=r[e];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,e=Object.getOwnPropertySymbols(r);i<e.length;i++){if(t.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i]))n[e[i]]=r[e[i]]}return n};var __spreadArray=this&&this.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var e=0,i=t.length,a;e<i;e++){if(a||!(e in t)){if(!a)a=Array.prototype.slice.call(t,0,e);a[e]=t[e]}}return r.concat(a||Array.prototype.slice.call(t))};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register([],(function(r){"use strict";return{execute:function(){var t=this;r("b",Sr);var n=Math.min;var e=Math.max;var i={left:"right",right:"left",bottom:"top",top:"bottom"};var a={start:"end",end:"start"};function u(r,t,i){return e(r,n(t,i))}function o(r,t){return typeof r==="function"?r(t):r}function f(r){return r.split("-")[0]}function c(r){return r.split("-")[1]}function s(r){return r==="x"?"y":"x"}function v(r){return r==="y"?"height":"width"}var l=new Set(["top","bottom"]);function d(r){return l.has(f(r))?"y":"x"}function h(r){return s(d(r))}function _(r,t,n){if(n===void 0){n=false}var e=c(r);var i=h(r);var a=v(i);var u=i==="x"?e===(n?"end":"start")?"right":"left":e==="start"?"bottom":"top";if(t.reference[a]>t.floating[a]){u=k(u)}return[u,k(u)]}function g(r){var t=k(r);return[y(r),t,y(t)]}function y(r){return r.replace(/start|end/g,(function(r){return a[r]}))}var p=["left","right"];var m=["right","left"];var w=["top","bottom"];var b=["bottom","top"];function x(r,t,n){switch(r){case"top":case"bottom":if(n)return t?m:p;return t?p:m;case"left":case"right":return t?w:b;default:return[]}}function A(r,t,n,e){var i=c(r);var a=x(f(r),n==="start",e);if(i){a=a.map((function(r){return r+"-"+i}));if(t){a=a.concat(a.map(y))}}return a}function k(r){return r.replace(/left|right|bottom|top/g,(function(r){return i[r]}))}function S(r){return __assign({top:0,right:0,bottom:0,left:0},r)}function R(r){return typeof r!=="number"?S(r):{top:r,right:r,bottom:r,left:r}}function O(r){var t=r.x,n=r.y,e=r.width,i=r.height;return{width:e,height:i,top:n,left:t,right:t+e,bottom:n+i,x:t,y:n}}function F(r,t,n){var e=r.reference,i=r.floating;var a=d(t);var u=h(t);var o=v(u);var s=f(t);var l=a==="y";var _=e.x+e.width/2-i.width/2;var g=e.y+e.height/2-i.height/2;var y=e[o]/2-i[o]/2;var p;switch(s){case"top":p={x:_,y:e.y-i.height};break;case"bottom":p={x:_,y:e.y+e.height};break;case"right":p={x:e.x+e.width,y:g};break;case"left":p={x:e.x-i.width,y:g};break;default:p={x:e.x,y:e.y}}switch(c(t)){case"start":p[u]-=y*(n&&l?-1:1);break;case"end":p[u]+=y*(n&&l?-1:1);break}return p}var j=function(r,n,e){return __awaiter(t,void 0,void 0,(function(){var t,i,a,u,o,f,c,s,v,l,d,h,_,g,y,p,m,w,b,x,A,k,S,R,O,j;var P,T;return __generator(this,(function(C){switch(C.label){case 0:t=e.placement,i=t===void 0?"bottom":t,a=e.strategy,u=a===void 0?"absolute":a,o=e.middleware,f=o===void 0?[]:o,c=e.platform;s=f.filter(Boolean);return[4,c.isRTL==null?void 0:c.isRTL(n)];case 1:v=C.sent();return[4,c.getElementRects({reference:r,floating:n,strategy:u})];case 2:l=C.sent();d=F(l,i,v),h=d.x,_=d.y;g=i;y={};p=0;m=0;C.label=3;case 3:if(!(m<s.length))return[3,11];w=s[m],b=w.name,x=w.fn;return[4,x({x:h,y:_,initialPlacement:i,placement:g,strategy:u,middlewareData:y,rects:l,platform:c,elements:{reference:r,floating:n}})];case 4:A=C.sent(),k=A.x,S=A.y,R=A.data,O=A.reset;h=k!=null?k:h;_=S!=null?S:_;y=__assign(__assign({},y),(P={},P[b]=__assign(__assign({},y[b]),R),P));if(!(O&&p<=50))return[3,10];p++;if(!(typeof O==="object"))return[3,9];if(O.placement){g=O.placement}if(!O.rects)return[3,8];if(!(O.rects===true))return[3,6];return[4,c.getElementRects({reference:r,floating:n,strategy:u})];case 5:j=C.sent();return[3,7];case 6:j=O.rects;C.label=7;case 7:l=j;C.label=8;case 8:T=F(l,g,v),h=T.x,_=T.y;C.label=9;case 9:m=-1;C.label=10;case 10:m++;return[3,3];case 11:return[2,{x:h,y:_,placement:g,strategy:u,middlewareData:y}]}}))}))};function P(r,t){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,f,c,s,v,l,d,h,_,g,y,p,m,w,b,x,A,k,S,F,j,P,T,C,M,D,L,E,z,N;var V;return __generator(this,(function(q){switch(q.label){case 0:if(t===void 0){t={}}e=r.x,i=r.y,a=r.platform,u=r.rects,f=r.elements,c=r.strategy;s=o(t,r),v=s.boundary,l=v===void 0?"clippingAncestors":v,d=s.rootBoundary,h=d===void 0?"viewport":d,_=s.elementContext,g=_===void 0?"floating":_,y=s.altBoundary,p=y===void 0?false:y,m=s.padding,w=m===void 0?0:m;b=R(w);x=g==="floating"?"reference":"floating";A=f[p?x:g];S=O;j=(F=a).getClippingRect;V={};return[4,a.isElement==null?void 0:a.isElement(A)];case 1:if(!((n=q.sent())!=null?n:true))return[3,2];P=A;return[3,5];case 2:T=A.contextElement;if(T)return[3,4];return[4,a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)];case 3:T=q.sent();q.label=4;case 4:P=T;q.label=5;case 5:return[4,j.apply(F,[(V.element=P,V.boundary=l,V.rootBoundary=h,V.strategy=c,V)])];case 6:k=S.apply(void 0,[q.sent()]);C=g==="floating"?{x:e,y:i,width:u.floating.width,height:u.floating.height}:u.reference;return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)];case 7:M=q.sent();return[4,a.isElement==null?void 0:a.isElement(M)];case 8:if(!q.sent())return[3,10];return[4,a.getScale==null?void 0:a.getScale(M)];case 9:L=q.sent()||{x:1,y:1};return[3,11];case 10:L={x:1,y:1};q.label=11;case 11:D=L;z=O;if(!a.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:C,offsetParent:M,strategy:c})];case 12:N=q.sent();return[3,14];case 13:N=C;q.label=14;case 14:E=z.apply(void 0,[N]);return[2,{top:(k.top-E.top+b.top)/D.y,bottom:(E.bottom-k.bottom+b.bottom)/D.y,left:(k.left-E.left+b.left)/D.x,right:(E.right-k.right+b.right)/D.x}]}}))}))}var T=r("a",(function(r){return{name:"arrow",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,a,f,s,l,d,_,g,y,p,m,w,b,x,A,k,S,O,F,j,P,T,C,M,D,L,E,z,N,V,q,B,G,H;var W,I;return __generator(this,(function(J){switch(J.label){case 0:e=t.x,i=t.y,a=t.placement,f=t.rects,s=t.platform,l=t.elements,d=t.middlewareData;_=o(r,t)||{},g=_.element,y=_.padding,p=y===void 0?0:y;if(g==null){return[2,{}]}m=R(p);w={x:e,y:i};b=h(a);x=v(b);return[4,s.getDimensions(g)];case 1:A=J.sent();k=b==="y";S=k?"top":"left";O=k?"bottom":"right";F=k?"clientHeight":"clientWidth";j=f.reference[x]+f.reference[b]-w[b]-f.floating[x];P=w[b]-f.reference[b];return[4,s.getOffsetParent==null?void 0:s.getOffsetParent(g)];case 2:T=J.sent();C=T?T[F]:0;M=!C;if(M)return[3,4];return[4,s.isElement==null?void 0:s.isElement(T)];case 3:M=!J.sent();J.label=4;case 4:if(M){C=l.floating[F]||f.floating[x]}D=j/2-P/2;L=C/2-A[x]/2-1;E=n(m[S],L);z=n(m[O],L);N=E;V=C-A[x]-z;q=C/2-A[x]/2+D;B=u(N,q,V);G=!d.arrow&&c(a)!=null&&q!==B&&f.reference[x]/2-(q<N?E:z)-A[x]/2<0;H=G?q<N?q-N:q-V:0;return[2,(W={},W[b]=w[b]+H,W.data=__assign((I={},I[b]=B,I.centerOffset=q-B-H,I),G&&{alignmentOffset:H}),W.reset=G,W)]}}))}))}}}));var C=r("f",(function(r){if(r===void 0){r={}}return{name:"flip",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,c,s,v,l,h,y,p,m,w,b,x,S,R,O,F,j,T,C,M,D,L,E,z,N,V,q,B,G,H,W,I,J,K,Q,U;return __generator(this,(function(X){switch(X.label){case 0:i=t.placement,a=t.middlewareData,u=t.rects,c=t.initialPlacement,s=t.platform,v=t.elements;l=o(r,t),h=l.mainAxis,y=h===void 0?true:h,p=l.crossAxis,m=p===void 0?true:p,w=l.fallbackPlacements,b=l.fallbackStrategy,x=b===void 0?"bestFit":b,S=l.fallbackAxisSideDirection,R=S===void 0?"none":S,O=l.flipAlignment,F=O===void 0?true:O,j=__rest(l,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=a.arrow)!=null&&n.alignmentOffset){return[2,{}]}T=f(i);C=d(c);M=f(c)===c;return[4,s.isRTL==null?void 0:s.isRTL(v.floating)];case 1:D=X.sent();L=w||(M||!F?[k(c)]:g(c));E=R!=="none";if(!w&&E){L.push.apply(L,A(c,F,R,D))}z=__spreadArray([c],L,true);return[4,P(t,j)];case 2:N=X.sent();V=[];q=((e=a.flip)==null?void 0:e.overflows)||[];if(y){V.push(N[T])}if(m){B=_(i,u,D);V.push(N[B[0]],N[B[1]])}q=__spreadArray(__spreadArray([],q,true),[{placement:i,overflows:V}],false);if(!V.every((function(r){return r<=0}))){W=(((G=a.flip)==null?void 0:G.index)||0)+1;I=z[W];if(I){J=m==="alignment"?C!==d(I):false;if(!J||q.every((function(r){return d(r.placement)===C?r.overflows[0]>0:true}))){return[2,{data:{index:W,overflows:q},reset:{placement:I}}]}}K=(H=q.filter((function(r){return r.overflows[0]<=0})).sort((function(r,t){return r.overflows[1]-t.overflows[1]}))[0])==null?void 0:H.placement;if(!K){switch(x){case"bestFit":{U=(Q=q.filter((function(r){if(E){var t=d(r.placement);return t===C||t==="y"}return true})).map((function(r){return[r.placement,r.overflows.filter((function(r){return r>0})).reduce((function(r,t){return r+t}),0)]})).sort((function(r,t){return r[1]-t[1]}))[0])==null?void 0:Q[0];if(U){K=U}break}case"initialPlacement":K=c;break}}if(i!==K){return[2,{reset:{placement:K}}]}}return[2,{}]}}))}))}}}));var M=new Set(["left","top"]);function D(r,t){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,s,v,l,h,_,g,y,p,m;return __generator(this,(function(w){switch(w.label){case 0:n=r.placement,e=r.platform,i=r.elements;return[4,e.isRTL==null?void 0:e.isRTL(i.floating)];case 1:a=w.sent();u=f(n);s=c(n);v=d(n)==="y";l=M.has(u)?-1:1;h=a&&v?-1:1;_=o(t,r);g=typeof _==="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis},y=g.mainAxis,p=g.crossAxis,m=g.alignmentAxis;if(s&&typeof m==="number"){p=s==="end"?m*-1:m}return[2,v?{x:p*h,y:y*l}:{x:y*l,y:p*h}]}}))}))}var L=r("o",(function(r){if(r===void 0){r=0}return{name:"offset",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,u,o,f;return __generator(this,(function(c){switch(c.label){case 0:i=t.x,a=t.y,u=t.placement,o=t.middlewareData;return[4,D(t,r)];case 1:f=c.sent();if(u===((n=o.offset)==null?void 0:n.placement)&&(e=o.arrow)!=null&&e.alignmentOffset){return[2,{}]}return[2,{x:i+f.x,y:a+f.y,data:__assign(__assign({},f),{placement:u})}]}}))}))}}}));var E=r("s",(function(r){if(r===void 0){r={}}return{name:"shift",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,e,i,a,c,v,l,h,_,g,y,p,m,w,b,x,A,k,S,R,O,k,S,F,j,T;var C,M;return __generator(this,(function(D){switch(D.label){case 0:n=t.x,e=t.y,i=t.placement;a=o(r,t),c=a.mainAxis,v=c===void 0?true:c,l=a.crossAxis,h=l===void 0?false:l,_=a.limiter,g=_===void 0?{fn:function(r){var t=r.x,n=r.y;return{x:t,y:n}}}:_,y=__rest(a,["mainAxis","crossAxis","limiter"]);p={x:n,y:e};return[4,P(t,y)];case 1:m=D.sent();w=d(f(i));b=s(w);x=p[b];A=p[w];if(v){k=b==="y"?"top":"left";S=b==="y"?"bottom":"right";R=x+m[k];O=x-m[S];x=u(R,x,O)}if(h){k=w==="y"?"top":"left";S=w==="y"?"bottom":"right";F=A+m[k];j=A-m[S];A=u(F,A,j)}T=g.fn(__assign(__assign({},t),(C={},C[b]=x,C[w]=A,C)));return[2,__assign(__assign({},T),{data:{x:T.x-n,y:T.y-e,enabled:(M={},M[b]=v,M[w]=h,M)}})]}}))}))}}}));function z(r){var t;return((t=r.ownerDocument)==null?void 0:t.defaultView)||window}function N(r){return z(r).getComputedStyle(r)}function V(r){return r instanceof z(r).Node}function q(r){return V(r)?(r.nodeName||"").toLowerCase():""}function B(r){return r instanceof z(r).HTMLElement}function G(r){return r instanceof z(r).Element}function H(r){if(typeof ShadowRoot==="undefined"){return false}var t=z(r).ShadowRoot;return r instanceof t||r instanceof ShadowRoot}function W(r){var t=N(r),n=t.overflow,e=t.overflowX,i=t.overflowY,a=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(a)}function I(r){return["table","td","th"].includes(q(r))}function J(r){var t=K();var n=N(r);return n.transform!=="none"||n.perspective!=="none"||!t&&(n.backdropFilter?n.backdropFilter!=="none":false)||!t&&(n.filter?n.filter!=="none":false)||["transform","perspective","filter"].some((function(r){return(n.willChange||"").includes(r)}))||["paint","layout","strict","content"].some((function(r){return(n.contain||"").includes(r)}))}function K(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function Q(r){return["html","body","#document"].includes(q(r))}var U=Math.min;var X=Math.max;var Y=Math.round;function Z(r){var t=N(r);var n=parseFloat(t.width)||0;var e=parseFloat(t.height)||0;var i=B(r);var a=i?r.offsetWidth:n;var u=i?r.offsetHeight:e;var o=Y(n)!==a||Y(e)!==u;if(o){n=a;e=u}return{width:n,height:e,fallback:o}}function $(r){return!G(r)?r.contextElement:r}var rr={x:1,y:1};function tr(r){var t=$(r);if(!B(t)){return rr}var n=t.getBoundingClientRect();var e=Z(t),i=e.width,a=e.height,u=e.fallback;var o=(u?Y(n.width):n.width)/i;var f=(u?Y(n.height):n.height)/a;if(!o||!Number.isFinite(o)){o=1}if(!f||!Number.isFinite(f)){f=1}return{x:o,y:f}}var nr={x:0,y:0};function er(r,t,n){var e,i;if(t===void 0){t=true}if(!K()){return nr}var a=r?z(r):window;if(!n||t&&n!==a){return nr}return{x:((e=a.visualViewport)==null?void 0:e.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function ir(r,t,n,e){if(t===void 0){t=false}if(n===void 0){n=false}var i=r.getBoundingClientRect();var a=$(r);var u=rr;if(t){if(e){if(G(e)){u=tr(e)}}else{u=tr(r)}}var o=er(a,n,e);var f=(i.left+o.x)/u.x;var c=(i.top+o.y)/u.y;var s=i.width/u.x;var v=i.height/u.y;if(a){var l=z(a);var d=e&&G(e)?z(e):e;var h=l.frameElement;while(h&&e&&d!==l){var _=tr(h);var g=h.getBoundingClientRect();var y=getComputedStyle(h);g.x+=(h.clientLeft+parseFloat(y.paddingLeft))*_.x;g.y+=(h.clientTop+parseFloat(y.paddingTop))*_.y;f*=_.x;c*=_.y;s*=_.x;v*=_.y;f+=g.x;c+=g.y;h=z(h).frameElement}}return O({width:s,height:v,x:f,y:c})}function ar(r){return((V(r)?r.ownerDocument:r.document)||window.document).documentElement}function ur(r){if(G(r)){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}return{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function or(r){var t=r.rect,n=r.offsetParent,e=r.strategy;var i=B(n);var a=ar(n);if(n===a){return t}var u={scrollLeft:0,scrollTop:0};var o={x:1,y:1};var f={x:0,y:0};if(i||!i&&e!=="fixed"){if(q(n)!=="body"||W(a)){u=ur(n)}if(B(n)){var c=ir(n);o=tr(n);f.x=c.x+n.clientLeft;f.y=c.y+n.clientTop}}return{width:t.width*o.x,height:t.height*o.y,x:t.x*o.x-u.scrollLeft*o.x+f.x,y:t.y*o.y-u.scrollTop*o.y+f.y}}function fr(r){return ir(ar(r)).left+ur(r).scrollLeft}function cr(r){var t=ar(r);var n=ur(r);var e=r.ownerDocument.body;var i=X(t.scrollWidth,t.clientWidth,e.scrollWidth,e.clientWidth);var a=X(t.scrollHeight,t.clientHeight,e.scrollHeight,e.clientHeight);var u=-n.scrollLeft+fr(r);var o=-n.scrollTop;if(N(e).direction==="rtl"){u+=X(t.clientWidth,e.clientWidth)-i}return{width:i,height:a,x:u,y:o}}function sr(r){if(q(r)==="html"){return r}var t=r.assignedSlot||r.parentNode||H(r)&&r.host||ar(r);return H(t)?t.host:t}function vr(r){var t=sr(r);if(Q(t)){return t.ownerDocument.body}if(B(t)&&W(t)){return t}return vr(t)}function lr(r,t){var n;if(t===void 0){t=[]}var e=vr(r);var i=e===((n=r.ownerDocument)==null?void 0:n.body);var a=z(e);if(i){return t.concat(a,a.visualViewport||[],W(e)?e:[])}return t.concat(e,lr(e))}function dr(r,t){var n=z(r);var e=ar(r);var i=n.visualViewport;var a=e.clientWidth;var u=e.clientHeight;var o=0;var f=0;if(i){a=i.width;u=i.height;var c=K();if(!c||c&&t==="fixed"){o=i.offsetLeft;f=i.offsetTop}}return{width:a,height:u,x:o,y:f}}function hr(r,t){var n=ir(r,true,t==="fixed");var e=n.top+r.clientTop;var i=n.left+r.clientLeft;var a=B(r)?tr(r):{x:1,y:1};var u=r.clientWidth*a.x;var o=r.clientHeight*a.y;var f=i*a.x;var c=e*a.y;return{width:u,height:o,x:f,y:c}}function _r(r,t,n){var e;if(t==="viewport"){e=dr(r,n)}else if(t==="document"){e=cr(ar(r))}else if(G(t)){e=hr(t,n)}else{var i=er(r);e=__assign(__assign({},t),{x:t.x-i.x,y:t.y-i.y})}return O(e)}function gr(r,t){var n=sr(r);if(n===t||!G(n)||Q(n)){return false}return N(n).position==="fixed"||gr(n,t)}function yr(r,t){var n=t.get(r);if(n){return n}var e=lr(r).filter((function(r){return G(r)&&q(r)!=="body"}));var i=null;var a=N(r).position==="fixed";var u=a?sr(r):r;while(G(u)&&!Q(u)){var o=N(u);var f=J(u);if(!f&&o.position==="fixed"){i=null}var c=a?!f&&!i:!f&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||W(u)&&!f&&gr(r,u);if(c){e=e.filter((function(r){return r!==u}))}else{i=o}u=sr(u)}t.set(r,e);return e}function pr(r){var t=r.element,n=r.boundary,e=r.rootBoundary,i=r.strategy;var a=n==="clippingAncestors"?yr(t,this._c):[].concat(n);var u=__spreadArray(__spreadArray([],a,true),[e],false);var o=u[0];var f=u.reduce((function(r,n){var e=_r(t,n,i);r.top=X(e.top,r.top);r.right=U(e.right,r.right);r.bottom=U(e.bottom,r.bottom);r.left=X(e.left,r.left);return r}),_r(t,o,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function mr(r){return Z(r)}function wr(r,t){if(!B(r)||N(r).position==="fixed"){return null}if(t){return t(r)}return r.offsetParent}function br(r){var t=sr(r);while(B(t)&&!Q(t)){if(J(t)){return t}else{t=sr(t)}}return null}function xr(r,t){var n=z(r);if(!B(r)){return n}var e=wr(r,t);while(e&&I(e)&&N(e).position==="static"){e=wr(e,t)}if(e&&(q(e)==="html"||q(e)==="body"&&N(e).position==="static"&&!J(e))){return n}return e||br(r)||n}function Ar(r,t,n){var e=B(t);var i=ar(t);var a=n==="fixed";var u=ir(r,true,a,t);var o={scrollLeft:0,scrollTop:0};var f={x:0,y:0};if(e||!e&&!a){if(q(t)!=="body"||W(i)){o=ur(t)}if(B(t)){var c=ir(t,true,a,t);f.x=c.x+t.clientLeft;f.y=c.y+t.clientTop}else if(i){f.x=fr(i)}}return{x:u.left+o.scrollLeft-f.x,y:u.top+o.scrollTop-f.y,width:u.width,height:u.height}}var kr={getClippingRect:pr,convertOffsetParentRelativeRectToViewportRelativeRect:or,isElement:G,getDimensions:mr,getOffsetParent:xr,getDocumentElement:ar,getScale:tr,getElementRects:function(r){return __awaiter(this,void 0,void 0,(function(){var t,n,e,i,a,u,o,f;var c;return __generator(this,(function(s){switch(s.label){case 0:t=r.reference,n=r.floating,e=r.strategy;i=this.getOffsetParent||xr;a=this.getDimensions;c={};u=Ar;o=[t];return[4,i(n)];case 1:c.reference=u.apply(void 0,o.concat([s.sent(),e]));f=[{x:0,y:0}];return[4,a(n)];case 2:return[2,(c.floating=__assign.apply(void 0,f.concat([s.sent()])),c)]}}))}))},getClientRects:function(r){return Array.from(r.getClientRects())},isRTL:function(r){return N(r).direction==="rtl"}};function Sr(r,t,n,e){if(e===void 0){e={}}var i=e.ancestorScroll,a=i===void 0?true:i,u=e.ancestorResize,o=u===void 0?true:u,f=e.elementResize,c=f===void 0?true:f,s=e.animationFrame,v=s===void 0?false:s;var l=a||o?__spreadArray(__spreadArray([],G(r)?lr(r):r.contextElement?lr(r.contextElement):[],true),lr(t),true):[];l.forEach((function(r){var t=!G(r)&&r.toString().includes("V");if(a&&(v?t:true)){r.addEventListener("scroll",n,{passive:true})}o&&r.addEventListener("resize",n)}));var d=null;if(c){d=new ResizeObserver((function(){n()}));G(r)&&!v&&d.observe(r);if(!G(r)&&r.contextElement&&!v){d.observe(r.contextElement)}d.observe(t)}var h;var _=v?ir(r):null;if(v){g()}function g(){var t=ir(r);if(_&&(t.x!==_.x||t.y!==_.y||t.width!==_.width||t.height!==_.height)){n()}_=t;h=requestAnimationFrame(g)}n();return function(){var r;l.forEach((function(r){a&&r.removeEventListener("scroll",n);o&&r.removeEventListener("resize",n)}));(r=d)==null?void 0:r.disconnect();d=null;if(v){cancelAnimationFrame(h)}}}var Rr=r("c",(function(r,t,n){var e=new Map;var i=__assign({platform:kr},n);var a=__assign(__assign({},i.platform),{_c:e});return j(r,t,__assign(__assign({},i),{platform:a}))}))}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as a,g as i}from"./p-ed0179f9.js";import{a as r}from"./p-f11208c3.js";import{D as o}from"./p-beeb12f1.js";import{i as s}from"./p-2e417433.js";import{g as n}from"./p-85bd737a.js";import{f as u}from"./p-a45e3f8b.js";import{g as b,c as d,d as c}from"./p-0773901d.js";import"./p-ae924d35.js";import"./p-9c3c64b9.js";const m=class{constructor(t){e(this,t),this.theme="",this.active=!1,this.url=void 0,this.leadingIcon=void 0,this.trailingIcon=void 0,this.accessibleLabel=void 0,this.accessibleExpanded=void 0,this.accessiblePopup="false",this.accessibleLabelExternalDefaults=o,this.accessibleLabelExternal=b(this.accessibleLabelExternalDefaults),this.external=!1}componentWillLoad(){s(this)}connectedCallback(){d(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){c(this)}handleEscape(e){if(u(e)){const e=this.element.closest("duet-submenu-bar");e.open=!1,e.setFocus()}}async setFocus(e){setTimeout((()=>this.itemElement.focus(e)),200)}render(){const e=this.url?"link":"button";return t(a,{key:"286d31e43175b586e05d660dcae91f2ba0176f8d",role:"listitem"},t(this.url?"a":"button",{key:"ff2ee974d9ee8340c3c53e24c07eb4793f6f9bec",target:this.url?this.external?"_blank":"_self":null,ref:e=>this.itemElement=e,class:{"duet-submenu-bar-item":!0,"duet-theme-turva":"turva"===this.theme,active:this.active},href:this.url,onKeyUp:e=>this.handleEscape(e),"aria-current":this.active?"true":"false","aria-label":this.url&&n(this)||this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded?this.accessibleExpanded.toString():void 0,"aria-haspopup":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0,role:e,rel:this.external?"noopener":void 0},this.leadingIcon&&t("duet-icon",{key:"8ad8924d66e2bc49aa1605f59ae9c96b06c91ddc",class:"leading-icon",theme:this.theme,name:this.leadingIcon,size:"auto",margin:"none",color:"currentColor"}),t("div",{key:"3433ef2e595da4391f05927fab8deb99304887bc",class:"label"},t("span",{key:"df2750c809a744a98e41624478d8ff5616ba496c",class:"label-text"},t("slot",{key:"83fb30a29389e5e2f5caebb04b99be1d480fdc3c"})),(this.trailingIcon||this.external)&&t("duet-icon",{key:"b00f95d9b7f5c0ad824c25fc32936964cc5d9e69",class:{"trailing-icon":!!this.trailingIcon,"trailing-icon-arrow":"action-arrow-down-small"===this.trailingIcon,"external-icon":!!this.external,rotate:"action-arrow-down-small"===this.trailingIcon&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon?this.trailingIcon:this.external?r.title:"",margin:"none",size:"auto",color:"currentColor"}))))}get element(){return i(this)}};m.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;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-item{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;height:100%;padding:12px 1.5rem;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:600;line-height:1.25;color:rgb(0, 75, 129);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-submenu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-item:focus,.duet-submenu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-item .label{display:flex;gap:5px;align-items:center;justify-content:center}.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:16px;height:16px}}.duet-submenu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-submenu-bar-item .external-icon{width:10px;height:10px}.duet-submenu-bar-item .trailing-icon{position:absolute;right:12px}.duet-submenu-bar-item[aria-expanded=true]{background:rgb(228, 241, 247)}.duet-submenu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-submenu-bar-item.active{color:rgb(0, 119, 179)}.duet-submenu-bar-item.active.duet-theme-turva{color:rgb(126, 2, 35)}.duet-submenu-bar-item.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-submenu-bar-item.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-submenu-bar-item.duet-theme-turva.active .label::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item.duet-theme-turva.active::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-item:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(222, 224, 228)}.duet-submenu-bar-item:hover.duet-theme-turva.active{color:rgb(126, 2, 35)}';export{m as duet_submenu_bar_item}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as e,h as i,H as o,g as s}from"./p-ed0179f9.js";import{i as l}from"./p-2e417433.js";import{c as a}from"./p-5e59e970.js";import{f as r,o as c,j as d,d as u,b as n,a as h,c as m}from"./p-a45e3f8b.js";import{a as b,c as p,d as g}from"./p-0773901d.js";import{c as f}from"./p-ae924d35.js";import{p as x}from"./p-9c3c64b9.js";const v=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.errorId=a("DuetError"),this.labelId=a("DuetLabel"),this.topCaptionId=a("DuetCaptionTop"),this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"},this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"},this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"},this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"},this.onChange=t=>{this.duetChange.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onMultiselectKeyDown=t=>{(r(t)||c(t))&&this.checkboxesVisible&&(this.checkboxesVisible=!1,this.multiselectElement.focus(),t.preventDefault())},this.onMultiselectInputKeyDown=t=>{d(t)&&(t.preventDefault(),this.toggleCheckboxes(),setTimeout((()=>{if(this.checkboxesVisible){const t=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(this.allControls?-2:0)}`);t&&t.focus()}}),200))},this.onCheckboxKeyDown=(t,e)=>{let i;u(t)||n(t)?i=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(e-1)}`):(h(t)||m(t))&&(i=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(e+1)}`)),i&&(i.focus(),t.preventDefault(),this.activeDescendant=i.id)},this.toggleCheckboxes=()=>{this.checkboxesVisible=!this.checkboxesVisible},this.toggleCheckbox=(t,e)=>{this.value=function(t,e){return t.includes(e)?t.filter((t=>t!==e)):[...t,e]}(this.value,e),this.onChange(t)},this.handleSelectAllClick=t=>{this.value=this.processedItems,this.onChange(t)},this.handleClearAllClick=t=>{this.value=[],this.onChange(t)},this.getOptionIdentifier=t=>`${this.identifier}-option-${t}`,this.getDescribedBy=()=>{const t=[];return this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.error&&t.push(this.errorId),t.length>0?t.join(" "):null},this.processedItems=[],this.processedGroups=[],this.checkboxesVisible=!1,this.activeDescendant="",this.language=b(),this.margin="auto",this.error="",this.accessibleLiveError="polite",this.expand=!1,this.value=[],this.theme="",this.labelHidden=!1,this.identifier=a("DuetMultiselect"),this.allControls=!1,this.placeholder="",this.caption=void 0,this.items=void 0,this.disabled=!1,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.accessibleDescribedBy=void 0,this.tooltip="",this.tooltipDirection="auto"}handleFocus(t){t.composedPath().every((t=>t!==this.element))&&(this.checkboxesVisible=!1)}componentWillLoad(){l(this),this.isCaptionVisible=!!this.caption,f(this.element,"tooltip","duet-tooltip",1,!0),this.refresh()}connectedCallback(){p(this)}disconnectedCallback(){g(this)}async setFocus(t){this.multiselectElement&&this.multiselectElement.focus(t)}async selectWithValues(t){const e=this.processedItems.filter((e=>t.includes(e.value)));this.value=Array.from(new Set([...this.value,...e]))}async refresh(){const t=x(this.items);this.processedItems=[],this.processedGroups=[],t&&0!==t.length&&(this.processedGroups=void 0!==t[0].items?t:[{label:"",items:t}],this.processedGroups.forEach((t=>t.items.forEach((t=>this.processedItems.push(t))))))}render(){var t;return i(o,{key:"12170f8be275e60b4d5ddeb08290e9d6b2ae382d",class:{"duet-m-0":"none"===this.margin,"duet-expand":this.expand}},i("div",{key:"c1cf56cc0dbea83bc0dc8bd51b04c65e3a4a62da",class:{"duet-multiselect-container":!0,"duet-label-hidden":this.labelHidden,"duet-theme-turva":"turva"===this.theme,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:t=>this.onMultiselectKeyDown(t)},i("duet-label",{key:"6effc20be696697551ca552dc2c08e89c1991d33",theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&i("duet-tooltip",{key:"8847e95c055d431271613d959357b4eff10a0a85",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),i("slot",{key:"c39db470cb4e12aae320718e5fda0dfa9c6af37b",name:"tooltip"}),this.caption&&i("duet-caption",{key:"66615cbbb7c28be30c42e3c62d0f9021d7e69acb",id:this.topCaptionId,size:"medium"},this.caption),i("div",{key:"c820a692595b614996842c8053be2a3f1e49fce0",class:"duet-multiselect-wrapper"},i("button",{key:"36a79be02186955c4ab72fa75b9e6cb386dda866",id:this.identifier,ref:t=>this.multiselectElement=t,class:{"duet-multiselect":!0,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:()=>this.toggleCheckboxes(),onFocus:t=>this.onFocus(t),onBlur:t=>this.onBlur(t),role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":`${this.identifier}-checkboxes`,onKeyDown:t=>this.onMultiselectInputKeyDown(t),disabled:this.disabled},i("span",{key:"357672ff8738ba4131b01fa16f82280f91b6edc9",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":`${this.identifier}-checkboxes`,"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&i("span",{key:"9b9435791f8d06644948cd64c00180f6f50d1495",class:"duet-multiselect-badge"},this.value.length,i("duet-visually-hidden",{key:"f89f17cf73ebff720a1f903643f21858c6ed96b5"},this.selectedLangObject[this.language],", ",this.value.map((t=>t.label)).join(", "))),i("svg",{key:"737cbc3a387b07a9728ea6e5d47cfa949312f3ad",class:{"duet-multiselect-icon":!0,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"ccadad6740d38fe5b128a708ddb9ae24699a4502",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),i("div",{key:"60c40e1702ee751fda1fed334809896f56411a6f",id:`${this.identifier}-checkboxes`,role:"listbox",class:{"duet-multiselect-checkboxes":!0,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},(null===(t=this.processedItems)||void 0===t?void 0:t.length)&&this.allControls&&i("div",{key:"e56b2012308e8950adb1ee3276c2b5153309431e",class:"duet-multiselect-all-control-buttons"},i("button",{key:"b53465b5f581e60b218dc7e1a50860042489bfcc",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:t=>this.onCheckboxKeyDown(t,-2)},this.selectAllLabel[this.language]),i("button",{key:"127953e8ffd8b0002380092bb7929bb2fe1f2790",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:t=>this.onCheckboxKeyDown(t,-1)},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((t=>i("fieldset",null,t.label&&i("legend",null,t.label),t.items.map(((t,e)=>{var o,s;return i("duet-checkbox",{identifier:this.getOptionIdentifier(e),role:"option",label:t.label,value:t.value,key:t.value,checked:null===(o=this.value)||void 0===o?void 0:o.includes(t),"accessible-selected":(null===(s=this.value)||void 0===s?void 0:s.includes(t))?"true":void 0,disabled:!this.checkboxesVisible||t.disabled,onDuetChange:e=>this.toggleCheckbox(e,t),onKeyDown:t=>this.onCheckboxKeyDown(t,e),theme:this.theme})}))))))),i("span",{key:"a14ad0ccd012ac5577347b0063a8aea18ef0f173",class:"duet-multiselect-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"95982728671a531c3173eecda1f6f7961629fdce"},this.error))))}get element(){return s(this)}static get watchers(){return{items:["refresh"]}}};v.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;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{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.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;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:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;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.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{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);border-color:rgb(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 0;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:600;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons 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(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{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:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{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(143, 147, 158)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{v as duet_multiselect}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/var min$1=Math.min;var max$1=Math.max;var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(e,t,n){return max$1(e,min$1(t,n))}function evaluate(e,t){return typeof e==="function"?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return e==="x"?"y":"x"}function getAxisLength(e){return e==="y"?"height":"width"}var yAxisSides=new Set(["top","bottom"]);function getSideAxis(e){return yAxisSides.has(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){if(n===void 0){n=false}var r=getAlignment(e);var i=getAlignmentAxis(e);var o=getAxisLength(i);var a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";if(t.reference[o]>t.floating[o]){a=getOppositePlacement(a)}return[a,getOppositePlacement(a)]}function getExpandedPlacements(e){var t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,(function(e){return oppositeAlignmentMap[e]}))}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(e,t,n){switch(e){case"top":case"bottom":if(n)return t?rlPlacement:lrPlacement;return t?lrPlacement:rlPlacement;case"left":case"right":return t?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(e,t,n,r){var i=getAlignment(e);var o=getSideList(getSide(e),n==="start",r);if(i){o=o.map((function(e){return e+"-"+i}));if(t){o=o.concat(o.map(getOppositeAlignmentPlacement))}}return o}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return oppositeSideMap[e]}))}function expandPaddingObject(e){return __assign({top:0,right:0,bottom:0,left:0},e)}function getPaddingObject(e){return typeof e!=="number"?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){var t=e.x,n=e.y,r=e.width,i=e.height;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){var r=e.reference,i=e.floating;var o=getSideAxis(t);var a=getAlignmentAxis(t);var s=getAxisLength(a);var u=getSide(t);var l=o==="y";var c=r.x+r.width/2-i.width/2;var f=r.y+r.height/2-i.height/2;var g=r[s]/2-i[s]/2;var v;switch(u){case"top":v={x:c,y:r.y-i.height};break;case"bottom":v={x:c,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-i.width,y:f};break;default:v={x:r.x,y:r.y}}switch(getAlignment(t)){case"start":v[a]-=g*(n&&l?-1:1);break;case"end":v[a]+=g*(n&&l?-1:1);break}return v}var computePosition$1=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,i,o,a,s,u,l,c,f,g,v,d,m,p,h,w,_,y,x,A,S,b,C,O,P,E;var R,N;return __generator(this,(function(T){switch(T.label){case 0:r=n.placement,i=r===void 0?"bottom":r,o=n.strategy,a=o===void 0?"absolute":o,s=n.middleware,u=s===void 0?[]:s,l=n.platform;c=u.filter(Boolean);return[4,l.isRTL==null?void 0:l.isRTL(t)];case 1:f=T.sent();return[4,l.getElementRects({reference:e,floating:t,strategy:a})];case 2:g=T.sent();v=computeCoordsFromPlacement(g,i,f),d=v.x,m=v.y;p=i;h={};w=0;_=0;T.label=3;case 3:if(!(_<c.length))return[3,11];y=c[_],x=y.name,A=y.fn;return[4,A({x:d,y:m,initialPlacement:i,placement:p,strategy:a,middlewareData:h,rects:g,platform:l,elements:{reference:e,floating:t}})];case 4:S=T.sent(),b=S.x,C=S.y,O=S.data,P=S.reset;d=b!=null?b:d;m=C!=null?C:m;h=__assign(__assign({},h),(R={},R[x]=__assign(__assign({},h[x]),O),R));if(!(P&&w<=50))return[3,10];w++;if(!(typeof P==="object"))return[3,9];if(P.placement){p=P.placement}if(!P.rects)return[3,8];if(!(P.rects===true))return[3,6];return[4,l.getElementRects({reference:e,floating:t,strategy:a})];case 5:E=T.sent();return[3,7];case 6:E=P.rects;T.label=7;case 7:g=E;T.label=8;case 8:N=computeCoordsFromPlacement(g,p,f),d=N.x,m=N.y;T.label=9;case 9:_=-1;T.label=10;case 10:_++;return[3,3];case 11:return[2,{x:d,y:m,placement:p,strategy:a,middlewareData:h}]}}))}))};function detectOverflow(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,c,f,g,v,d,m,p,h,w,_,y,x,A,S,b,C,O,P,E,R,N,T,L,k,B,M;var D;return __generator(this,(function(F){switch(F.label){case 0:if(t===void 0){t={}}r=e.x,i=e.y,o=e.platform,a=e.rects,s=e.elements,u=e.strategy;l=evaluate(t,e),c=l.boundary,f=c===void 0?"clippingAncestors":c,g=l.rootBoundary,v=g===void 0?"viewport":g,d=l.elementContext,m=d===void 0?"floating":d,p=l.altBoundary,h=p===void 0?false:p,w=l.padding,_=w===void 0?0:w;y=getPaddingObject(_);x=m==="floating"?"reference":"floating";A=s[h?x:m];b=rectToClientRect;O=(C=o).getClippingRect;D={};return[4,o.isElement==null?void 0:o.isElement(A)];case 1:if(!((n=F.sent())!=null?n:true))return[3,2];P=A;return[3,5];case 2:E=A.contextElement;if(E)return[3,4];return[4,o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)];case 3:E=F.sent();F.label=4;case 4:P=E;F.label=5;case 5:return[4,O.apply(C,[(D.element=P,D.boundary=f,D.rootBoundary=v,D.strategy=u,D)])];case 6:S=b.apply(void 0,[F.sent()]);R=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference;return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)];case 7:N=F.sent();return[4,o.isElement==null?void 0:o.isElement(N)];case 8:if(!F.sent())return[3,10];return[4,o.getScale==null?void 0:o.getScale(N)];case 9:L=F.sent()||{x:1,y:1};return[3,11];case 10:L={x:1,y:1};F.label=11;case 11:T=L;B=rectToClientRect;if(!o.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:R,offsetParent:N,strategy:u})];case 12:M=F.sent();return[3,14];case 13:M=R;F.label=14;case 14:k=B.apply(void 0,[M]);return[2,{top:(S.top-k.top+y.top)/T.y,bottom:(k.bottom-S.bottom+y.bottom)/T.y,left:(S.left-k.left+y.left)/T.x,right:(k.right-S.right+y.right)/T.x}]}}))}))}var arrow=function(e){return{name:"arrow",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,c,f,g,v,d,m,p,h,w,_,y,x,A,S,b,C,O,P,E,R,N,T,L,k,B,M,D;var F,$;return __generator(this,(function(W){switch(W.label){case 0:n=t.x,r=t.y,i=t.placement,o=t.rects,a=t.platform,s=t.elements,u=t.middlewareData;l=evaluate(e,t)||{},c=l.element,f=l.padding,g=f===void 0?0:f;if(c==null){return[2,{}]}v=getPaddingObject(g);d={x:n,y:r};m=getAlignmentAxis(i);p=getAxisLength(m);return[4,a.getDimensions(c)];case 1:h=W.sent();w=m==="y";_=w?"top":"left";y=w?"bottom":"right";x=w?"clientHeight":"clientWidth";A=o.reference[p]+o.reference[m]-d[m]-o.floating[p];S=d[m]-o.reference[m];return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(c)];case 2:b=W.sent();C=b?b[x]:0;O=!C;if(O)return[3,4];return[4,a.isElement==null?void 0:a.isElement(b)];case 3:O=!W.sent();W.label=4;case 4:if(O){C=s.floating[x]||o.floating[p]}P=A/2-S/2;E=C/2-h[p]/2-1;R=min$1(v[_],E);N=min$1(v[y],E);T=R;L=C-h[p]-N;k=C/2-h[p]/2+P;B=clamp(T,k,L);M=!u.arrow&&getAlignment(i)!=null&&k!==B&&o.reference[p]/2-(k<T?R:N)-h[p]/2<0;D=M?k<T?k-T:k-L:0;return[2,(F={},F[m]=d[m]+D,F.data=__assign(($={},$[m]=B,$.centerOffset=k-B-D,$),M&&{alignmentOffset:D}),F.reset=M,F)]}}))}))}}};var flip=function(e){if(e===void 0){e={}}return{name:"flip",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,c,f,g,v,d,m,p,h,w,_,y,x,A,S,b,C,O,P,E,R,N,T,L,k,B,M,D,F,$,W,H,j;return __generator(this,(function(V){switch(V.label){case 0:i=t.placement,o=t.middlewareData,a=t.rects,s=t.initialPlacement,u=t.platform,l=t.elements;c=evaluate(e,t),f=c.mainAxis,g=f===void 0?true:f,v=c.crossAxis,d=v===void 0?true:v,m=c.fallbackPlacements,p=c.fallbackStrategy,h=p===void 0?"bestFit":p,w=c.fallbackAxisSideDirection,_=w===void 0?"none":w,y=c.flipAlignment,x=y===void 0?true:y,A=__rest(c,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=o.arrow)!=null&&n.alignmentOffset){return[2,{}]}S=getSide(i);b=getSideAxis(s);C=getSide(s)===s;return[4,u.isRTL==null?void 0:u.isRTL(l.floating)];case 1:O=V.sent();P=m||(C||!x?[getOppositePlacement(s)]:getExpandedPlacements(s));E=_!=="none";if(!m&&E){P.push.apply(P,getOppositeAxisPlacements(s,x,_,O))}R=__spreadArray([s],P,true);return[4,detectOverflow(t,A)];case 2:N=V.sent();T=[];L=((r=o.flip)==null?void 0:r.overflows)||[];if(g){T.push(N[S])}if(d){k=getAlignmentSides(i,a,O);T.push(N[k[0]],N[k[1]])}L=__spreadArray(__spreadArray([],L,true),[{placement:i,overflows:T}],false);if(!T.every((function(e){return e<=0}))){D=(((B=o.flip)==null?void 0:B.index)||0)+1;F=R[D];if(F){$=d==="alignment"?b!==getSideAxis(F):false;if(!$||L.every((function(e){return getSideAxis(e.placement)===b?e.overflows[0]>0:true}))){return[2,{data:{index:D,overflows:L},reset:{placement:F}}]}}W=(M=L.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])==null?void 0:M.placement;if(!W){switch(h){case"bestFit":{j=(H=L.filter((function(e){if(E){var t=getSideAxis(e.placement);return t===b||t==="y"}return true})).map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])==null?void 0:H[0];if(j){W=j}break}case"initialPlacement":W=s;break}}if(i!==W){return[2,{reset:{placement:W}}]}}return[2,{}]}}))}))}}};var originSides=new Set(["left","top"]);function convertValueToCoords(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,c,f,g,v,d,m;return __generator(this,(function(p){switch(p.label){case 0:n=e.placement,r=e.platform,i=e.elements;return[4,r.isRTL==null?void 0:r.isRTL(i.floating)];case 1:o=p.sent();a=getSide(n);s=getAlignment(n);u=getSideAxis(n)==="y";l=originSides.has(a)?-1:1;c=o&&u?-1:1;f=evaluate(t,e);g=typeof f==="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis},v=g.mainAxis,d=g.crossAxis,m=g.alignmentAxis;if(s&&typeof m==="number"){d=s==="end"?m*-1:m}return[2,u?{x:d*c,y:v*l}:{x:v*l,y:d*c}]}}))}))}var offset=function(e){if(e===void 0){e=0}return{name:"offset",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return __generator(this,(function(l){switch(l.label){case 0:i=t.x,o=t.y,a=t.placement,s=t.middlewareData;return[4,convertValueToCoords(t,e)];case 1:u=l.sent();if(a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset){return[2,{}]}return[2,{x:i+u.x,y:o+u.y,data:__assign(__assign({},u),{placement:a})}]}}))}))}}};var shift=function(e){if(e===void 0){e={}}return{name:"shift",options:e,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,c,f,g,v,d,m,p,h,w,_,y,x,A,_,y,S,b,C;var O,P;return __generator(this,(function(E){switch(E.label){case 0:n=t.x,r=t.y,i=t.placement;o=evaluate(e,t),a=o.mainAxis,s=a===void 0?true:a,u=o.crossAxis,l=u===void 0?false:u,c=o.limiter,f=c===void 0?{fn:function(e){var t=e.x,n=e.y;return{x:t,y:n}}}:c,g=__rest(o,["mainAxis","crossAxis","limiter"]);v={x:n,y:r};return[4,detectOverflow(t,g)];case 1:d=E.sent();m=getSideAxis(getSide(i));p=getOppositeAxis(m);h=v[p];w=v[m];if(s){_=p==="y"?"top":"left";y=p==="y"?"bottom":"right";x=h+d[_];A=h-d[y];h=clamp(x,h,A)}if(l){_=m==="y"?"top":"left";y=m==="y"?"bottom":"right";S=w+d[_];b=w-d[y];w=clamp(S,w,b)}C=f.fn(__assign(__assign({},t),(O={},O[p]=h,O[m]=w,O)));return[2,__assign(__assign({},C),{data:{x:C.x-n,y:C.y-r,enabled:(P={},P[p]=s,P[m]=l,P)}})]}}))}))}}};function getWindow(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function isNode(e){return e instanceof getWindow(e).Node}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():""}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement}function isElement(e){return e instanceof getWindow(e).Element}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function isOverflowElement(e){var t=getComputedStyle$1(e),n=t.overflow,r=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){var t=isSafari();var n=getComputedStyle$1(e);return n.transform!=="none"||n.perspective!=="none"||!t&&(n.backdropFilter?n.backdropFilter!=="none":false)||!t&&(n.filter?n.filter!=="none":false)||["transform","perspective","filter"].some((function(e){return(n.willChange||"").includes(e)}))||["paint","layout","strict","content"].some((function(e){return(n.contain||"").includes(e)}))}function isSafari(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}var min=Math.min;var max=Math.max;var round=Math.round;function getCssDimensions(e){var t=getComputedStyle$1(e);var n=parseFloat(t.width)||0;var r=parseFloat(t.height)||0;var i=isHTMLElement(e);var o=i?e.offsetWidth:n;var a=i?e.offsetHeight:r;var s=round(n)!==o||round(r)!==a;if(s){n=o;r=a}return{width:n,height:r,fallback:s}}function unwrapElement(e){return!isElement(e)?e.contextElement:e}var FALLBACK_SCALE={x:1,y:1};function getScale(e){var t=unwrapElement(e);if(!isHTMLElement(t)){return FALLBACK_SCALE}var n=t.getBoundingClientRect();var r=getCssDimensions(t),i=r.width,o=r.height,a=r.fallback;var s=(a?round(n.width):n.width)/i;var u=(a?round(n.height):n.height)/o;if(!s||!Number.isFinite(s)){s=1}if(!u||!Number.isFinite(u)){u=1}return{x:s,y:u}}var noOffsets={x:0,y:0};function getVisualOffsets(e,t,n){var r,i;if(t===void 0){t=true}if(!isSafari()){return noOffsets}var o=e?getWindow(e):window;if(!n||t&&n!==o){return noOffsets}return{x:((r=o.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=o.visualViewport)==null?void 0:i.offsetTop)||0}}function getBoundingClientRect(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=false}var i=e.getBoundingClientRect();var o=unwrapElement(e);var a=FALLBACK_SCALE;if(t){if(r){if(isElement(r)){a=getScale(r)}}else{a=getScale(e)}}var s=getVisualOffsets(o,n,r);var u=(i.left+s.x)/a.x;var l=(i.top+s.y)/a.y;var c=i.width/a.x;var f=i.height/a.y;if(o){var g=getWindow(o);var v=r&&isElement(r)?getWindow(r):r;var d=g.frameElement;while(d&&r&&v!==g){var m=getScale(d);var p=d.getBoundingClientRect();var h=getComputedStyle(d);p.x+=(d.clientLeft+parseFloat(h.paddingLeft))*m.x;p.y+=(d.clientTop+parseFloat(h.paddingTop))*m.y;u*=m.x;l*=m.y;c*=m.x;f*=m.y;u+=p.x;l+=p.y;d=getWindow(d).frameElement}}return rectToClientRect({width:c,height:f,x:u,y:l})}function getDocumentElement(e){return((isNode(e)?e.ownerDocument:e.document)||window.document).documentElement}function getNodeScroll(e){if(isElement(e)){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){var t=e.rect,n=e.offsetParent,r=e.strategy;var i=isHTMLElement(n);var o=getDocumentElement(n);if(n===o){return t}var a={scrollLeft:0,scrollTop:0};var s={x:1,y:1};var u={x:0,y:0};if(i||!i&&r!=="fixed"){if(getNodeName(n)!=="body"||isOverflowElement(o)){a=getNodeScroll(n)}if(isHTMLElement(n)){var l=getBoundingClientRect(n);s=getScale(n);u.x=l.x+n.clientLeft;u.y=l.y+n.clientTop}}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+u.x,y:t.y*s.y-a.scrollTop*s.y+u.y}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getNodeScroll(e).scrollLeft}function getDocumentRect(e){var t=getDocumentElement(e);var n=getNodeScroll(e);var r=e.ownerDocument.body;var i=max(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth);var o=max(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);var a=-n.scrollLeft+getWindowScrollBarX(e);var s=-n.scrollTop;if(getComputedStyle$1(r).direction==="rtl"){a+=max(t.clientWidth,r.clientWidth)-i}return{width:i,height:o,x:a,y:s}}function getParentNode(e){if(getNodeName(e)==="html"){return e}var t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){var t=getParentNode(e);if(isLastTraversableNode(t)){return t.ownerDocument.body}if(isHTMLElement(t)&&isOverflowElement(t)){return t}return getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t){var n;if(t===void 0){t=[]}var r=getNearestOverflowAncestor(e);var i=r===((n=e.ownerDocument)==null?void 0:n.body);var o=getWindow(r);if(i){return t.concat(o,o.visualViewport||[],isOverflowElement(r)?r:[])}return t.concat(r,getOverflowAncestors(r))}function getViewportRect(e,t){var n=getWindow(e);var r=getDocumentElement(e);var i=n.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var s=0;var u=0;if(i){o=i.width;a=i.height;var l=isSafari();if(!l||l&&t==="fixed"){s=i.offsetLeft;u=i.offsetTop}}return{width:o,height:a,x:s,y:u}}function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect(e,true,t==="fixed");var r=n.top+e.clientTop;var i=n.left+e.clientLeft;var o=isHTMLElement(e)?getScale(e):{x:1,y:1};var a=e.clientWidth*o.x;var s=e.clientHeight*o.y;var u=i*o.x;var l=r*o.y;return{width:a,height:s,x:u,y:l}}function getClientRectFromClippingAncestor(e,t,n){var r;if(t==="viewport"){r=getViewportRect(e,n)}else if(t==="document"){r=getDocumentRect(getDocumentElement(e))}else if(isElement(t)){r=getInnerBoundingClientRect(t,n)}else{var i=getVisualOffsets(e);r=__assign(__assign({},t),{x:t.x-i.x,y:t.y-i.y})}return rectToClientRect(r)}function hasFixedPositionAncestor(e,t){var n=getParentNode(e);if(n===t||!isElement(n)||isLastTraversableNode(n)){return false}return getComputedStyle$1(n).position==="fixed"||hasFixedPositionAncestor(n,t)}function getClippingElementAncestors(e,t){var n=t.get(e);if(n){return n}var r=getOverflowAncestors(e).filter((function(e){return isElement(e)&&getNodeName(e)!=="body"}));var i=null;var o=getComputedStyle$1(e).position==="fixed";var a=o?getParentNode(e):e;while(isElement(a)&&!isLastTraversableNode(a)){var s=getComputedStyle$1(a);var u=isContainingBlock(a);if(!u&&s.position==="fixed"){i=null}var l=o?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||isOverflowElement(a)&&!u&&hasFixedPositionAncestor(e,a);if(l){r=r.filter((function(e){return e!==a}))}else{i=s}a=getParentNode(a)}t.set(e,r);return r}function getClippingRect(e){var t=e.element,n=e.boundary,r=e.rootBoundary,i=e.strategy;var o=n==="clippingAncestors"?getClippingElementAncestors(t,this._c):[].concat(n);var a=__spreadArray(__spreadArray([],o,true),[r],false);var s=a[0];var u=a.reduce((function(e,n){var r=getClientRectFromClippingAncestor(t,n,i);e.top=max(r.top,e.top);e.right=min(r.right,e.right);e.bottom=min(r.bottom,e.bottom);e.left=max(r.left,e.left);return e}),getClientRectFromClippingAncestor(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function getDimensions(e){return getCssDimensions(e)}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||getComputedStyle$1(e).position==="fixed"){return null}if(t){return t(e)}return e.offsetParent}function getContainingBlock(e){var t=getParentNode(e);while(isHTMLElement(t)&&!isLastTraversableNode(t)){if(isContainingBlock(t)){return t}else{t=getParentNode(t)}}return null}function getOffsetParent(e,t){var n=getWindow(e);if(!isHTMLElement(e)){return n}var r=getTrueOffsetParent(e,t);while(r&&isTableElement(r)&&getComputedStyle$1(r).position==="static"){r=getTrueOffsetParent(r,t)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle$1(r).position==="static"&&!isContainingBlock(r))){return n}return r||getContainingBlock(e)||n}function getRectRelativeToOffsetParent(e,t,n){var r=isHTMLElement(t);var i=getDocumentElement(t);var o=n==="fixed";var a=getBoundingClientRect(e,true,o,t);var s={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(r||!r&&!o){if(getNodeName(t)!=="body"||isOverflowElement(i)){s=getNodeScroll(t)}if(isHTMLElement(t)){var l=getBoundingClientRect(t,true,o,t);u.x=l.x+t.clientLeft;u.y=l.y+t.clientTop}else if(i){u.x=getWindowScrollBarX(i)}}return{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}var platform={getClippingRect:getClippingRect,convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,isElement:isElement,getDimensions:getDimensions,getOffsetParent:getOffsetParent,getDocumentElement:getDocumentElement,getScale:getScale,getElementRects:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u;var l;return __generator(this,(function(c){switch(c.label){case 0:t=e.reference,n=e.floating,r=e.strategy;i=this.getOffsetParent||getOffsetParent;o=this.getDimensions;l={};a=getRectRelativeToOffsetParent;s=[t];return[4,i(n)];case 1:l.reference=a.apply(void 0,s.concat([c.sent(),r]));u=[{x:0,y:0}];return[4,o(n)];case 2:return[2,(l.floating=__assign.apply(void 0,u.concat([c.sent()])),l)]}}))}))},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return getComputedStyle$1(e).direction==="rtl"}};function autoUpdate(e,t,n,r){if(r===void 0){r={}}var i=r.ancestorScroll,o=i===void 0?true:i,a=r.ancestorResize,s=a===void 0?true:a,u=r.elementResize,l=u===void 0?true:u,c=r.animationFrame,f=c===void 0?false:c;var g=o||s?__spreadArray(__spreadArray([],isElement(e)?getOverflowAncestors(e):e.contextElement?getOverflowAncestors(e.contextElement):[],true),getOverflowAncestors(t),true):[];g.forEach((function(e){var t=!isElement(e)&&e.toString().includes("V");if(o&&(f?t:true)){e.addEventListener("scroll",n,{passive:true})}s&&e.addEventListener("resize",n)}));var v=null;if(l){v=new ResizeObserver((function(){n()}));isElement(e)&&!f&&v.observe(e);if(!isElement(e)&&e.contextElement&&!f){v.observe(e.contextElement)}v.observe(t)}var d;var m=f?getBoundingClientRect(e):null;if(f){p()}function p(){var t=getBoundingClientRect(e);if(m&&(t.x!==m.x||t.y!==m.y||t.width!==m.width||t.height!==m.height)){n()}m=t;d=requestAnimationFrame(p)}n();return function(){var e;g.forEach((function(e){o&&e.removeEventListener("scroll",n);s&&e.removeEventListener("resize",n)}));(e=v)==null?void 0:e.disconnect();v=null;if(f){cancelAnimationFrame(d)}}}var computePosition=function(e,t,n){var r=new Map;var i=__assign({platform:platform},n);var o=__assign(__assign({},i.platform),{_c:r});return computePosition$1(e,t,__assign(__assign({},i),{platform:o}))};export{arrow as a,autoUpdate as b,computePosition as c,flip as f,offset as o,shift as s};
|