@duetds/components 9.2.6 → 9.2.7
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 +7 -6
- package/lib/cjs/{app-globals-78dc4702.js → app-globals-a1431483.js} +1 -1
- 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 +2 -2
- package/lib/cjs/duet-callout.cjs.entry.js +2 -2
- package/lib/cjs/duet-caption_4.cjs.entry.js +2 -2
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- 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_3.cjs.entry.js +3 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
- 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 +2 -2
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +3 -3
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-hero.cjs.entry.js +3 -3
- 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 +2 -2
- 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 +4 -4
- package/lib/cjs/duet-multiselect.cjs.entry.js +3 -3
- 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-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-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 +1 -1
- 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 +10 -9
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/lib/cjs/{errorcodes.utils-e044ec9a.js → errorcodes.utils-b4cf3ce2.js} +1 -1
- package/lib/cjs/{focus-utils-a25e1b26.js → focus-utils-68fa1c8f.js} +1 -1
- package/lib/cjs/{index-efe7ea48.js → index-7e38df71.js} +1 -1
- package/lib/cjs/{language-utils-041b3463.js → language-utils-beee36ce.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{slot-utils-c1e99a43.js → slot-utils-f309572d.js} +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.css +6 -0
- package/lib/collection/components/duet-slideout/duet-slideout.js +6 -5
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- 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 +4 -4
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- 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 +7 -7
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- 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 +2 -2
- 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 +8 -8
- package/lib/dist-custom-elements/duet-multiselect.js +9 -9
- 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-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-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 +2 -2
- 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 +9 -8
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- 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 +2 -2
- 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 +13 -13
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +10 -10
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-item.js +2 -2
- 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 +19 -19
- 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-d84ba8f5.js → p-026f66e3.js} +2 -2
- package/lib/dist-custom-elements/{p-8636a95c.js → p-02e6b3aa.js} +1 -1
- package/lib/dist-custom-elements/{p-326e709b.js → p-05a0e048.js} +8 -8
- package/lib/dist-custom-elements/{p-c9b46160.js → p-0bd5bcab.js} +2 -2
- package/lib/dist-custom-elements/{p-bfa56fd6.js → p-1a9028fa.js} +6 -6
- package/lib/dist-custom-elements/{p-d84f6aae.js → p-1ae20645.js} +1 -1
- package/lib/dist-custom-elements/{p-c14e6ca4.js → p-1f84f4ac.js} +10 -10
- package/lib/dist-custom-elements/{p-324773e2.js → p-20906875.js} +1 -1
- package/lib/dist-custom-elements/{p-5b74ff74.js → p-23a9891b.js} +2 -2
- package/lib/dist-custom-elements/{p-6fcd56d1.js → p-343f0aa2.js} +2 -2
- package/lib/dist-custom-elements/{p-db58dd65.js → p-358832fc.js} +1 -1
- package/lib/dist-custom-elements/{p-da3148b6.js → p-369da8da.js} +1 -1
- package/lib/dist-custom-elements/{p-dbc0966a.js → p-3844adaa.js} +2 -2
- package/lib/dist-custom-elements/{p-64ab1e7f.js → p-3cf59aa7.js} +1 -1
- package/lib/dist-custom-elements/{p-5096f482.js → p-4b198aee.js} +2 -2
- package/lib/dist-custom-elements/{p-d71e24a5.js → p-4d4d8c03.js} +1 -1
- package/lib/dist-custom-elements/{p-839fb8d6.js → p-5448ad53.js} +1 -1
- package/lib/dist-custom-elements/{p-8778bcdf.js → p-6f149d10.js} +3 -3
- package/lib/dist-custom-elements/{p-b597eea5.js → p-7590e1a9.js} +1 -1
- package/lib/dist-custom-elements/{p-d44fe5d0.js → p-79372cc4.js} +10 -10
- package/lib/dist-custom-elements/{p-16c8b661.js → p-79fb21bb.js} +1 -1
- package/lib/dist-custom-elements/{p-02e8f591.js → p-82cbf2aa.js} +6 -6
- package/lib/dist-custom-elements/{p-5d5b0bf3.js → p-a19d42f7.js} +1 -1
- package/lib/dist-custom-elements/{p-79508a54.js → p-a1c8f31d.js} +1 -1
- package/lib/dist-custom-elements/{p-f6926397.js → p-a4667181.js} +5 -5
- package/lib/dist-custom-elements/{p-a9d05a98.js → p-a6b39855.js} +1 -1
- package/lib/dist-custom-elements/{p-247254f4.js → p-a866db8a.js} +1 -1
- package/lib/dist-custom-elements/{p-ec438ba9.js → p-a8b848a0.js} +2 -2
- package/lib/dist-custom-elements/{p-561b46f4.js → p-aad0e9d5.js} +3 -3
- package/lib/dist-custom-elements/{p-ab4a29e9.js → p-b5b250a2.js} +1 -1
- package/lib/dist-custom-elements/{p-44576862.js → p-d0aaf2cd.js} +1 -1
- package/lib/dist-custom-elements/{p-ab0d3de7.js → p-d5201dfd.js} +5 -5
- package/lib/dist-custom-elements/{p-583817e7.js → p-d58879c8.js} +1 -1
- package/lib/dist-custom-elements/{p-c92b6a37.js → p-dde3f1e6.js} +2 -2
- package/lib/dist-custom-elements/{p-e1289f43.js → p-e6540ffb.js} +1 -1
- package/lib/dist-custom-elements/{p-3100da6e.js → p-e87b21c0.js} +1 -1
- package/lib/dist-custom-elements/{p-58f4ac3e.js → p-ee6f575b.js} +4 -4
- package/lib/dist-custom-elements/{p-60125797.js → p-f3d279c9.js} +1 -1
- package/lib/dist-custom-elements/{p-ddaf17a4.js → p-f66602b0.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-7956df66.entry.js → p-02473a29.entry.js} +1 -1
- package/lib/duet/{p-59f7aa7f.system.entry.js → p-042ce36a.system.entry.js} +1 -1
- package/lib/duet/{p-1fa48eac.system.entry.js → p-0457dff6.system.entry.js} +1 -1
- package/lib/duet/{p-79ccf9ad.system.entry.js → p-05ea29c7.system.entry.js} +1 -1
- package/lib/duet/{p-c41b616b.system.entry.js → p-062b4356.system.entry.js} +1 -1
- package/lib/duet/{p-58c73080.system.entry.js → p-07b9cd1a.system.entry.js} +1 -1
- package/lib/duet/{p-9675e1d5.system.entry.js → p-099daa35.system.entry.js} +1 -1
- package/lib/duet/{p-092ce0f1.entry.js → p-09b2f2cb.entry.js} +1 -1
- package/lib/duet/{p-4ec14860.system.entry.js → p-0b61a372.system.entry.js} +1 -1
- package/lib/duet/p-0cb6800d.entry.js +4 -0
- package/lib/duet/{p-cbcfcf2f.system.entry.js → p-1037271e.system.entry.js} +1 -1
- package/lib/duet/p-14662d84.entry.js +4 -0
- package/lib/duet/{p-377315e2.entry.js → p-14d1fc10.entry.js} +1 -1
- package/lib/duet/{p-5ae47d2b.entry.js → p-15e00afb.entry.js} +1 -1
- package/lib/duet/{p-7f93593e.entry.js → p-180c21a7.entry.js} +1 -1
- package/lib/duet/{p-b575bed5.entry.js → p-197fcd81.entry.js} +1 -1
- package/lib/duet/{p-615a6764.system.js → p-1ce82dfa.system.js} +1 -1
- package/lib/duet/{p-914a0898.system.entry.js → p-1d56f5f8.system.entry.js} +1 -1
- package/lib/duet/{p-6f21adbf.entry.js → p-1de76e0d.entry.js} +1 -1
- package/lib/duet/{p-0adec9cf.system.entry.js → p-2073ff86.system.entry.js} +1 -1
- package/lib/duet/{p-a4164a2d.entry.js → p-20c7ae09.entry.js} +1 -1
- package/lib/duet/p-214444f4.js +4 -0
- package/lib/duet/{p-6bfc098e.system.entry.js → p-238d490e.system.entry.js} +1 -1
- package/lib/duet/{p-f5546613.entry.js → p-24f98450.entry.js} +1 -1
- package/lib/duet/{p-e44f1b3a.entry.js → p-2892f9e4.entry.js} +1 -1
- package/lib/duet/{p-1d1addfe.entry.js → p-2a4032e4.entry.js} +1 -1
- package/lib/duet/{p-854808cd.entry.js → p-2be4521f.entry.js} +1 -1
- package/lib/duet/{p-7fadfb31.system.entry.js → p-2fc1b57e.system.entry.js} +1 -1
- package/lib/duet/{p-ce9ccf2d.system.js → p-3300a0a4.system.js} +1 -1
- package/lib/duet/{p-db17c060.system.entry.js → p-332d0c18.system.entry.js} +1 -1
- package/lib/duet/{p-cb26eeef.entry.js → p-34caafca.entry.js} +1 -1
- package/lib/duet/{p-626efe62.system.entry.js → p-36593090.system.entry.js} +1 -1
- package/lib/duet/{p-266639f9.system.entry.js → p-3c48ca69.system.entry.js} +1 -1
- package/lib/duet/{p-5c1467cf.system.entry.js → p-3cb42e12.system.entry.js} +1 -1
- package/lib/duet/{p-b84965cf.system.entry.js → p-3deacd18.system.entry.js} +1 -1
- package/lib/duet/{p-03b72e84.entry.js → p-3fe02797.entry.js} +1 -1
- package/lib/duet/{p-d4756796.system.entry.js → p-3ffcebff.system.entry.js} +1 -1
- package/lib/duet/{p-e88c356e.system.js → p-406af1f3.system.js} +1 -1
- package/lib/duet/{p-b37f9402.system.entry.js → p-4219eda3.system.entry.js} +1 -1
- package/lib/duet/{p-5d89c45e.system.js → p-42d0aeb0.system.js} +1 -1
- package/lib/duet/{p-0b2b9fa2.entry.js → p-43a86f8a.entry.js} +1 -1
- package/lib/duet/{p-0991986c.entry.js → p-44af6523.entry.js} +1 -1
- package/lib/duet/{p-cb0513ed.system.entry.js → p-45c3a7d2.system.entry.js} +1 -1
- package/lib/duet/{p-e3d448c5.entry.js → p-46753ebc.entry.js} +1 -1
- package/lib/duet/{p-e7e3b445.entry.js → p-4920eb5e.entry.js} +1 -1
- package/lib/duet/{p-42778d18.system.entry.js → p-4c79d2a9.system.entry.js} +1 -1
- package/lib/duet/{p-a81baadd.entry.js → p-4efc484e.entry.js} +1 -1
- package/lib/duet/p-56c887fb.js +4 -0
- package/lib/duet/{p-65de8d51.system.entry.js → p-5763afe7.system.entry.js} +1 -1
- package/lib/duet/{p-b75f0c5b.system.entry.js → p-5786db38.system.entry.js} +1 -1
- package/lib/duet/{p-27480faf.entry.js → p-5ba11951.entry.js} +1 -1
- package/lib/duet/p-5d429d2c.entry.js +4 -0
- package/lib/duet/{p-1e3d71f9.system.entry.js → p-5e12c437.system.entry.js} +1 -1
- package/lib/duet/{p-af35e151.system.entry.js → p-60e1e165.system.entry.js} +1 -1
- package/lib/duet/p-618a822d.system.entry.js +4 -0
- package/lib/duet/{p-520ac4b7.js → p-63a09802.js} +1 -1
- package/lib/duet/{p-a29e4976.entry.js → p-69d18102.entry.js} +1 -1
- package/lib/duet/{p-7ec5ee46.system.entry.js → p-6a4f6469.system.entry.js} +1 -1
- package/lib/duet/{p-30598218.system.entry.js → p-6abb0f77.system.entry.js} +1 -1
- package/lib/duet/{p-e53164d0.system.entry.js → p-6e9ec04c.system.entry.js} +1 -1
- package/lib/duet/p-6f3fd8bf.entry.js +4 -0
- package/lib/duet/{p-0a42e97a.system.entry.js → p-6f5dbc6e.system.entry.js} +1 -1
- package/lib/duet/{p-86a3bc38.entry.js → p-70adc2c4.entry.js} +1 -1
- package/lib/duet/{p-eb5844f6.system.entry.js → p-70fab25f.system.entry.js} +1 -1
- package/lib/duet/{p-bf804ab7.entry.js → p-74025593.entry.js} +1 -1
- package/lib/duet/{p-8ef9cba1.system.entry.js → p-762b831e.system.entry.js} +1 -1
- package/lib/duet/{p-476b2cf2.system.entry.js → p-778e26b4.system.entry.js} +1 -1
- package/lib/duet/{p-29d9ff1e.entry.js → p-7831e011.entry.js} +1 -1
- package/lib/duet/{p-b038b80c.entry.js → p-79c1f08a.entry.js} +1 -1
- package/lib/duet/{p-f4c1b623.system.js → p-7d32c253.system.js} +1 -1
- package/lib/duet/{p-b7a606a0.system.entry.js → p-8136e15e.system.entry.js} +1 -1
- package/lib/duet/{p-6428de74.entry.js → p-8335c1bf.entry.js} +1 -1
- package/lib/duet/{p-d7c2f4d7.entry.js → p-835e6d3b.entry.js} +1 -1
- package/lib/duet/{p-50260da1.system.entry.js → p-836ae3bb.system.entry.js} +1 -1
- package/lib/duet/{p-c42ba43f.system.entry.js → p-8378430a.system.entry.js} +1 -1
- package/lib/duet/{p-83dabfc5.system.entry.js → p-83920005.system.entry.js} +1 -1
- package/lib/duet/{p-421f851f.system.entry.js → p-83c03efa.system.entry.js} +1 -1
- package/lib/duet/{p-d4de8d9f.system.entry.js → p-849ae71a.system.entry.js} +1 -1
- package/lib/duet/{p-a0b111e3.system.entry.js → p-87345e08.system.entry.js} +1 -1
- package/lib/duet/{p-be815d6f.system.entry.js → p-89558e39.system.entry.js} +1 -1
- package/lib/duet/{p-b4e05d38.entry.js → p-8babfd74.entry.js} +1 -1
- package/lib/duet/{p-9aee8a81.system.entry.js → p-8bfbadfc.system.entry.js} +1 -1
- package/lib/duet/{p-b9f092f2.entry.js → p-8c44d3e9.entry.js} +1 -1
- package/lib/duet/{p-ea386f3b.entry.js → p-8d3cb875.entry.js} +1 -1
- package/lib/duet/{p-cb39f212.system.entry.js → p-8df1c0da.system.entry.js} +1 -1
- package/lib/duet/{p-a987ab9d.entry.js → p-8df4a03c.entry.js} +1 -1
- package/lib/duet/{p-d183f34f.entry.js → p-8e672ddb.entry.js} +1 -1
- package/lib/duet/{p-4c2d2ce0.system.entry.js → p-8f66a793.system.entry.js} +1 -1
- package/lib/duet/{p-f35b246d.entry.js → p-911a8711.entry.js} +1 -1
- package/lib/duet/{p-c9fbbebc.system.entry.js → p-919c1794.system.entry.js} +1 -1
- package/lib/duet/{p-de0a78f9.entry.js → p-955c3761.entry.js} +1 -1
- package/lib/duet/{p-20645770.system.entry.js → p-977e9ed4.system.entry.js} +1 -1
- package/lib/duet/{p-2e78b185.system.entry.js → p-9a9505b0.system.entry.js} +1 -1
- package/lib/duet/{p-2aaf03e1.system.entry.js → p-9c0b9de2.system.entry.js} +1 -1
- package/lib/duet/{p-c2626d64.entry.js → p-9c93192b.entry.js} +1 -1
- package/lib/duet/{p-3f3bcada.entry.js → p-9c95fff6.entry.js} +1 -1
- package/lib/duet/{p-73e0f5cf.system.entry.js → p-9c9b25f3.system.entry.js} +1 -1
- package/lib/duet/{p-521d978e.entry.js → p-9eb974d8.entry.js} +1 -1
- package/lib/duet/{p-6bd8fb57.entry.js → p-9eedb975.entry.js} +1 -1
- package/lib/duet/{p-18d7d777.entry.js → p-a2e17a01.entry.js} +1 -1
- package/lib/duet/{p-572652e8.entry.js → p-a37f93eb.entry.js} +1 -1
- package/lib/duet/{p-e10e1117.entry.js → p-a414d7b1.entry.js} +1 -1
- package/lib/duet/{p-2c65fead.entry.js → p-a4914611.entry.js} +1 -1
- package/lib/duet/{p-e1e65613.entry.js → p-a52fb767.entry.js} +1 -1
- package/lib/duet/{p-749267a3.system.entry.js → p-a6f74d7f.system.entry.js} +1 -1
- package/lib/duet/{p-b3a2ecfc.system.entry.js → p-a7c7e6a4.system.entry.js} +1 -1
- package/lib/duet/{p-7478fc5e.entry.js → p-a8333037.entry.js} +1 -1
- package/lib/duet/{p-a1c780b5.entry.js → p-aa61f1da.entry.js} +1 -1
- package/lib/duet/{p-a54ec315.entry.js → p-aa8f18b0.entry.js} +1 -1
- package/lib/duet/{p-94c63013.system.js → p-aad77751.system.js} +1 -1
- package/lib/duet/{p-93ce45ce.system.entry.js → p-ad81986c.system.entry.js} +1 -1
- package/lib/duet/{p-08b2f3dd.system.entry.js → p-ae15b924.system.entry.js} +1 -1
- package/lib/duet/{p-bae3eb9c.entry.js → p-aeb9568f.entry.js} +1 -1
- package/lib/duet/{p-6181c1f5.system.entry.js → p-af0c9fa2.system.entry.js} +1 -1
- package/lib/duet/{p-849ffaec.system.entry.js → p-b0632410.system.entry.js} +1 -1
- package/lib/duet/{p-cb840c6d.entry.js → p-b11c1b81.entry.js} +1 -1
- package/lib/duet/{p-3a8d65e6.entry.js → p-b238bac2.entry.js} +1 -1
- package/lib/duet/{p-dd3427ef.entry.js → p-b6e98c33.entry.js} +1 -1
- package/lib/duet/{p-818bb33d.system.entry.js → p-b7f262fc.system.entry.js} +1 -1
- package/lib/duet/{p-fcc9506a.system.entry.js → p-b7fe31c6.system.entry.js} +1 -1
- package/lib/duet/{p-f3e84569.js → p-b899b000.js} +1 -1
- package/lib/duet/{p-53dee3c7.system.entry.js → p-b8b011df.system.entry.js} +1 -1
- package/lib/duet/{p-1b538c45.system.entry.js → p-bc57459e.system.entry.js} +1 -1
- package/lib/duet/{p-49ca595b.system.entry.js → p-bcd88ac2.system.entry.js} +1 -1
- package/lib/duet/{p-d8097437.entry.js → p-c1c02b47.entry.js} +1 -1
- package/lib/duet/{p-dbcafad8.entry.js → p-c1ef1b6e.entry.js} +1 -1
- package/lib/duet/{p-008e68b4.system.entry.js → p-c2ca6ff0.system.entry.js} +1 -1
- package/lib/duet/p-c552326c.system.entry.js +4 -0
- package/lib/duet/{p-e3e5f427.entry.js → p-c5970ff9.entry.js} +1 -1
- package/lib/duet/{p-8d6dcdb1.system.entry.js → p-c620f77b.system.entry.js} +1 -1
- package/lib/duet/{p-a60f3669.system.entry.js → p-c8896685.system.entry.js} +1 -1
- package/lib/duet/{p-ef65048c.system.entry.js → p-c9d3dd02.system.entry.js} +1 -1
- package/lib/duet/{p-e87b84f3.system.entry.js → p-ccc58d5d.system.entry.js} +1 -1
- package/lib/duet/{p-23aa27b2.system.entry.js → p-cf16818c.system.entry.js} +1 -1
- package/lib/duet/{p-6b3a8a12.entry.js → p-d03accc5.entry.js} +1 -1
- package/lib/duet/{p-73c4bdf7.js → p-d048f25c.js} +1 -1
- package/lib/duet/{p-44156252.entry.js → p-d1dd14a3.entry.js} +1 -1
- package/lib/duet/{p-9b90f38e.system.entry.js → p-d20f0c7d.system.entry.js} +1 -1
- package/lib/duet/{p-8a9fe70c.entry.js → p-d25bbacd.entry.js} +1 -1
- package/lib/duet/{p-5d5f4146.system.entry.js → p-d3f4d98f.system.entry.js} +1 -1
- package/lib/duet/{p-f4be3ed1.system.entry.js → p-d6613fe4.system.entry.js} +1 -1
- package/lib/duet/{p-96714a74.entry.js → p-d6efda2f.entry.js} +1 -1
- package/lib/duet/{p-64027802.system.entry.js → p-d87f8bb5.system.entry.js} +1 -1
- package/lib/duet/{p-e32ff504.system.entry.js → p-d90c1000.system.entry.js} +1 -1
- package/lib/duet/{p-d53821a2.entry.js → p-d9845dc6.entry.js} +1 -1
- package/lib/duet/{p-63c5fd6b.entry.js → p-da5fbdcd.entry.js} +1 -1
- package/lib/duet/{p-8b5976ca.entry.js → p-db3eaaa3.entry.js} +1 -1
- package/lib/duet/p-e238bb61.entry.js +4 -0
- package/lib/duet/{p-f1e02e7b.js → p-e4d4cc92.js} +1 -1
- package/lib/duet/{p-207ea7e9.system.entry.js → p-e6eb1780.system.entry.js} +1 -1
- package/lib/duet/{p-50ac9df8.entry.js → p-e7a6457f.entry.js} +1 -1
- package/lib/duet/{p-6f66ba45.entry.js → p-e84dc0ac.entry.js} +1 -1
- package/lib/duet/{p-b7996eff.system.entry.js → p-e9cecefd.system.entry.js} +1 -1
- package/lib/duet/{p-9432f9ec.entry.js → p-ea692823.entry.js} +1 -1
- package/lib/duet/{p-4efe4a6c.entry.js → p-edaefdfb.entry.js} +1 -1
- package/lib/duet/{p-6decccda.entry.js → p-eeb9da2d.entry.js} +1 -1
- package/lib/duet/{p-11fb9dc4.entry.js → p-f022f85b.entry.js} +1 -1
- package/lib/duet/{p-8d051bf2.system.entry.js → p-f3d88a94.system.entry.js} +1 -1
- package/lib/duet/{p-45bb56a8.entry.js → p-f745dcfb.entry.js} +1 -1
- package/lib/duet/{p-cf99e1f3.entry.js → p-f7f098cb.entry.js} +1 -1
- package/lib/duet/{p-c54aec23.entry.js → p-f84cdfef.entry.js} +1 -1
- package/lib/duet/{p-0ebc6e34.entry.js → p-f86c7315.entry.js} +1 -1
- package/lib/duet/{p-79f305ba.system.entry.js → p-f96c47b4.system.entry.js} +1 -1
- package/lib/duet/{p-c1b9e00b.system.entry.js → p-f9d54f1a.system.entry.js} +1 -1
- package/lib/duet/{p-1eb3f237.entry.js → p-f9d93246.entry.js} +1 -1
- package/lib/duet/{p-3ac94cc4.system.entry.js → p-fa115b76.system.entry.js} +1 -1
- package/lib/duet/{p-a7d46fef.system.entry.js → p-faa44b79.system.entry.js} +1 -1
- package/lib/duet/{p-60a0cb7f.system.js → p-fadcbdae.system.js} +1 -1
- package/lib/duet/{p-f6e819df.entry.js → p-fb083164.entry.js} +1 -1
- package/lib/duet/{p-200ce847.entry.js → p-fea43afb.entry.js} +1 -1
- package/lib/duet/{p-c152f45c.entry.js → p-ff1e3ce2.entry.js} +1 -1
- package/lib/esm/{app-globals-60b4029b.js → app-globals-386e1feb.js} +1 -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 +2 -2
- package/lib/esm/duet-callout.entry.js +2 -2
- package/lib/esm/duet-caption_4.entry.js +2 -2
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-chip_3.entry.js +3 -3
- package/lib/esm/duet-choice_2.entry.js +3 -3
- 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 +2 -2
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +3 -3
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +2 -2
- package/lib/esm/duet-hero.entry.js +3 -3
- 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 +2 -2
- 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 +4 -4
- package/lib/esm/duet-multiselect.entry.js +3 -3
- 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-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-show-more.entry.js +2 -2
- package/lib/esm/duet-slideout-lang.entry.js +2 -2
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- 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 +10 -9
- package/lib/esm/duet-step_2.entry.js +1 -1
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- package/lib/esm/{errorcodes.utils-b639fe8c.js → errorcodes.utils-f2529568.js} +1 -1
- package/lib/esm/{focus-utils-fad21cfb.js → focus-utils-fb393f52.js} +1 -1
- package/lib/esm/{index-4160b620.js → index-4e3ad237.js} +1 -1
- package/lib/esm/{language-utils-afb0d677.js → language-utils-95643489.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{slot-utils-fdd6c75c.js → slot-utils-1be24d72.js} +1 -1
- package/lib/esm-es5/{app-globals-60b4029b.js → app-globals-386e1feb.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 +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +2 -2
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip_3.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +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 +2 -2
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +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 +1 -1
- 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-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-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +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 +2 -2
- 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-b639fe8c.js → errorcodes.utils-f2529568.js} +1 -1
- package/lib/esm-es5/focus-utils-fb393f52.js +4 -0
- package/lib/esm-es5/{index-4160b620.js → index-4e3ad237.js} +1 -1
- package/lib/esm-es5/{language-utils-afb0d677.js → language-utils-95643489.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-fdd6c75c.js → slot-utils-1be24d72.js} +1 -1
- package/lib/types/components/duet-slideout/duet-slideout.d.ts +2 -0
- package/lib/types/components.d.ts +2 -2
- package/package.json +4 -4
- package/lib/duet/p-08eb8156.entry.js +0 -4
- package/lib/duet/p-4b961592.entry.js +0 -4
- package/lib/duet/p-4d8ebbe4.entry.js +0 -4
- package/lib/duet/p-5298f539.system.entry.js +0 -4
- package/lib/duet/p-539938fb.js +0 -4
- package/lib/duet/p-5d3ba53d.system.entry.js +0 -4
- package/lib/duet/p-63fd1f1b.entry.js +0 -4
- package/lib/duet/p-7d0fcdcd.entry.js +0 -4
- package/lib/duet/p-e7c62f85.js +0 -4
- package/lib/esm-es5/focus-utils-fad21cfb.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(r,n)}catch(r){u=[6,r];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","duet");var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:true,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:true,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=r("E",{cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.1.
|
|
4
|
+
*/System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","duet");var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:true,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:true,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=r("E",{cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.1.1"});var f=Object.defineProperty;var u=function(r,e){for(var n in e)f(r,n,{get:e[n],enumerable:true})};var o=r("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var l=new WeakMap;var v=function(r){return l.get(r)};var s=r("r",(function(r,e){return l.set(e.t=r,e)}));var c=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}return l.set(r,n)};var d=function(r,e){return e in r};var h=function(r,e){return(0,console.error)(r,e)};var p=new Map;var m=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r.$;if(!a){return void 0}var f=p.get(a);if(f){return f[i]}
|
|
5
5
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{p.set(a,r)}return r[i]}),h)};var y=new Map;var $="r";var b="o";var w="s";var g="t";var _="c";var S="s-id";var j="sty-id";var O="c-id";var k="slot-fb{display:contents}slot-fb[hidden]{display:none}";var x="http://www.w3.org/1999/xlink";var A=typeof window!=="undefined"?window:{};var C=r("d",A.document||{head:{}});var E={i:0,_:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var T=function(){var r=false;try{C.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var D=r("p",(function(r){return Promise.resolve(r)}));var R=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var L=false;var N=[];var F=[];var M=function(r,e){return function(n){r.push(n);if(!L){L=true;if(e&&E.i&4){U(P)}else{E.raf(P)}}}};var I=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){h(r)}}r.length=0};var P=function(){I(N);{I(F);if(L=N.length>0){E.raf(P)}}};var U=function(r){return D().then(r)};var W=M(F,true);var B={};var H="http://www.w3.org/2000/svg";var V="http://www.w3.org/1999/xhtml";var z=function(r){return r!=null};var G=function(r){r=typeof r;return r==="object"||r==="function"};function Q(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var q={};u(q,{err:function(){return X},map:function(){return J},ok:function(){return K},unwrap:function(){return Y},unwrapErr:function(){return Z}});var K=function(r){return{isOk:true,isErr:false,value:r}};var X=function(r){return{isOk:false,isErr:true,value:r}};function J(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return K(r)}))}else{return K(n)}}if(r.isErr){var t=r.value;return X(t)}throw"should never get here"}var Y=function(r){if(r.isOk){return r.value}else{throw r.value}};var Z=function(r){if(r.isErr){return r.value}else{throw r.value}};var rr=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=null;var u=false;var o=false;var l=[];var v=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!G(i)){i=String(i)}if(u&&o){l[l.length-1].S+=i}else{l.push(u?er(null,i):i)}o=u}}};v(n);if(e){if(e.key){a=e.key}if(e.name){f=e.name}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,l,ir)}var c=er(r,null);c.j=e;if(l.length>0){c.O=l}{c.k=a}{c.A=f}return c}));var er=function(r,e){var n={i:0,C:r,S:e,T:null,O:null};{n.j=null}{n.k=null}{n.A=null}return n};var nr=r("H",{});var tr=function(r){return r&&r.C===nr};var ir={forEach:function(r,e){return r.map(ar).forEach(e)},map:function(r,e){return r.map(ar).map(e).map(fr)}};var ar=function(r){return{vattrs:r.j,vchildren:r.O,vkey:r.k,vname:r.A,vtag:r.C,vtext:r.S}};var fr=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return rr.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=er(r.vtag,r.vtext);n.j=r.vattrs;n.O=r.vchildren;n.k=r.vkey;n.A=r.vname;return n};var ur=function(r,e,n,t,i,a){if(n!==t){var f=d(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=lr(n);var v=lr(t);if(r["s-si"]&&v.indexOf(r["s-si"])<0){v.push(r["s-si"])}o.remove.apply(o,l.filter((function(r){return r&&!v.includes(r)})));o.add.apply(o,v.filter((function(r){return r&&!l.includes(r)})))}else if(e==="style"){{for(var s in n){if(!t||t[s]==null){if(s.includes("-")){r.style.removeProperty(s)}else{r.style[s]=""}}}}for(var s in t){if(!n||t[s]!==n[s]){if(s.includes("-")){r.style.setProperty(s,t[s])}else{r.style[s]=t[s]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(d(A,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var c=e.endsWith(vr);e=e.replace(sr,"");if(n){E.rel(r,e,n,c)}if(t){E.ael(r,e,t,c)}}}else{var h=G(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var p=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=p){if(typeof r.__lookupSetter__(e)==="function"){r[e]=p}else{r.setAttribute(e,p)}}}else{r[e]=t}}catch(r){}}var m=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;m=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(m){r.removeAttributeNS(x,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h){t=t===true?"":t;if(m){r.setAttributeNS(x,e,t)}else{r.setAttribute(e,t)}}}}};var or=/\s/;var lr=function(r){return"object"==typeof r&&"baseVal"in r&&(r=r.baseVal),r?r.split(or):[]};var vr="Capture";var sr=new RegExp(vr+"$");var cr=function(r,e,n){var t=e.T.nodeType===11&&e.T.host?e.T.host:e.T;var i=r&&r.j||B;var a=e.j||B;{for(var f=0,u=dr(Object.keys(i));f<u.length;f++){var o=u[f];if(!(o in a)){ur(t,o,i[o],void 0,n,e.i)}}}for(var l=0,v=dr(Object.keys(a));l<v.length;l++){var o=v[l];ur(t,o,i[o],a[o],n,e.i)}};function dr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var hr;var pr;var mr;var yr=false;var $r=false;var br=false;var wr=false;var gr=function(r,e,n,t){var a;var f=e.O[n];var u=0;var o;var l;var v;if(!yr){br=true;if(f.C==="slot"){if(hr){t.classList.add(hr+"-s")}f.i|=f.O?2:1}}if(f.S!==null){o=f.T=C.createTextNode(f.S)}else if(f.i&1){o=f.T=C.createTextNode("")}else{if(!wr){wr=f.C==="svg"}o=f.T=C.createElementNS(wr?H:V,!yr&&i.slotRelocation&&f.i&2?"slot-fb":f.C);if(wr&&f.C==="foreignObject"){wr=false}{cr(null,f,wr)}var s=o.getRootNode();var c=!s.querySelector("body");if(!c&&i.scoped&&z(hr)&&o["s-si"]!==hr){o.classList.add(o["s-si"]=hr)}{Mr(o,t)}if(f.O){for(u=0;u<f.O.length;++u){l=gr(r,f,u,o);if(l){o.appendChild(l)}}}{if(f.C==="svg"){wr=false}else if(o.tagName==="foreignObject"){wr=true}}}o["s-hn"]=mr;{if(f.i&(2|1)){o["s-sr"]=true;o["s-cr"]=pr;o["s-sn"]=f.A||"";o["s-rf"]=(a=f.j)==null?void 0:a.ref;v=r&&r.O&&r.O[n];if(v&&v.C===f.C&&r.T){{_r(r.T,false)}}}}return o};var _r=function(r,e){E.i|=1;var n=Array.from(r.__childNodes||r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===mr){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==mr&&f["s-ol"]){Nr(Ar(f),f,xr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;br=true}if(e){_r(f,e)}}E.i&=~1};var Sr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===mr){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=gr(null,n,i,r);if(u){t[i].T=u;Nr(f,u,xr(e))}}}};var jr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.T;Lr(i);if(a){{$r=true;if(a["s-ol"]){a["s-ol"].remove()}else{_r(a,true)}}a.remove()}}}};var Or=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(kr(v,d,i)){Cr(v,d,i);v=e[++a];d=t[++f]}else if(kr(s,h,i)){Cr(s,h,i);s=e[--l];h=t[--c]}else if(kr(v,h,i)){if(v.C==="slot"||h.C==="slot"){_r(v.T.parentNode,false)}Cr(v,h,i);Nr(r,v.T,s.T.nextSibling);v=e[++a];h=t[--c]}else if(kr(s,d,i)){if(v.C==="slot"||h.C==="slot"){_r(s.T.parentNode,false)}Cr(s,d,i);Nr(r,s.T,v.T);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].k!==null&&e[o].k===d.k){u=o;break}}}if(u>=0){m=e[u];if(m.C!==d.C){p=gr(e&&e[f],n,u,r)}else{Cr(m,d,i);e[u]=void 0;p=m.T}d=t[++f]}else{p=gr(e&&e[f],n,f,r);d=t[++f]}if(p){{Nr(Ar(v.T),p,xr(v.T))}}}}if(a>l){Sr(r,t[c+1]==null?null:t[c+1].T,n,t,f,c)}else if(f>c){jr(e,a,l)}};var kr=function(r,e,n){if(n===void 0){n=false}if(r.C===e.C){if(r.C==="slot"){if("D"in r&&n&&r.T.nodeType!==8){return false}return r.A===e.A}if(!n){return r.k===e.k}return true}return false};var xr=function(r){return r&&r["s-ol"]||r};var Ar=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var Cr=function(r,e,n){if(n===void 0){n=false}var t=e.T=r.T;var a=r.O;var f=e.O;var u=e.C;var o=e.S;var l;if(o===null){{wr=u==="svg"?true:u==="foreignObject"?false:wr}{if(u==="slot"&&!yr);else{cr(r,e,wr)}}if(a!==null&&f!==null){Or(t,a,e,f,n)}else if(f!==null){if(r.S!==null){t.textContent=""}Sr(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){jr(a,0,a.length-1)}if(wr&&u==="svg"){wr=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.S!==o){t.data=o}};var Er=function(r){var e=r.__childNodes||r.childNodes;for(var n=0,t=e;n<t.length;n++){var i=t[n];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var f=0,u=e;f<u.length;f++){var o=u[f];if(o!==i){if(o["s-hn"]!==i["s-hn"]||a!==""){if(o.nodeType===1&&(a===o.getAttribute("slot")||a===o["s-sn"])||o.nodeType===3&&a===o["s-sn"]){i.hidden=true;break}}else if(a===o["s-sn"]){if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}Er(i)}}};var Tr=[];var Dr=function(r){var e;var n;var t;var a=r.__childNodes||r.childNodes;for(var f=0,u=a;f<u.length;f++){var o=u[f];if(o["s-sr"]&&(e=o["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;var l=o["s-sn"];var v=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==o["s-hn"]&&!i.experimentalSlotFixes){if(Rr(e,l)){var r=Tr.find((function(r){return r.R===e}));$r=true;e["s-sn"]=e["s-sn"]||l;if(r){r.R["s-sh"]=o["s-hn"];r.L=o}else{e["s-sh"]=o["s-hn"];Tr.push({L:o,R:e})}if(e["s-sr"]){Tr.map((function(n){if(Rr(n.R,e["s-sn"])){r=Tr.find((function(r){return r.R===e}));if(r&&!n.L){n.L=r.L}}}))}}else if(!Tr.some((function(r){return r.R===e}))){Tr.push({R:e})}}};for(t=n.length-1;t>=0;t--){v()}}if(o.nodeType===1){Dr(o)}}};var Rr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var Lr=function(r){{r.j&&r.j.ref&&r.j.ref(null);r.O&&r.O.map(Lr)}};var Nr=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);{Mr(e,r)}return t};var Fr=function(r){var e=[];if(r){e.push.apply(e,__spreadArray(__spreadArray(__spreadArray([],r["s-scs"]||[],false),[r["s-si"],r["s-sc"]],false),Fr(r.parentElement),false))}return e};var Mr=function(r,e,n){if(n===void 0){n=false}var t;if(r&&e&&r.nodeType===1){var i=new Set(Fr(e).filter(Boolean));if(i.size){(t=r.classList)==null?void 0:t.add.apply(t,r["s-scs"]=Array.from(i));if(r["s-ol"]||n){for(var a=0,f=Array.from(r.__childNodes||r.childNodes);a<f.length;a++){var u=f[a];Mr(u,r,true)}}}}};var Ir=function(r,e,n){if(n===void 0){n=false}var t,i,a,f;var u=r.$hostElement$;var o=r.u;var l=r.N||er(null,null);var v=tr(e)?e:rr(null,null,e);mr=u.tagName;if(o.F){v.j=v.j||{};o.F.map((function(r){var e=r[0],n=r[1];return v.j[n]=u[e]}))}if(n&&v.j){for(var s=0,c=Object.keys(v.j);s<c.length;s++){var d=c[s];if(u.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){v.j[d]=u[d]}}}v.C=null;v.i|=4;r.N=v;v.T=l.T=u.shadowRoot||u;{hr=u["s-sc"]}yr=(o.i&1)!==0;{pr=u["s-cr"];$r=false}Cr(l,v,n);{E.i|=1;if(br){Dr(v.T);for(var h=0,p=Tr;h<p.length;h++){var m=p[h];var y=m.R;if(!y["s-ol"]){var $=C.createTextNode("");$["s-nr"]=y;Nr(y.parentNode,y["s-ol"]=$,y)}}for(var b=0,w=Tr;b<w.length;b++){var m=w[b];var y=m.R;var g=m.L;if(g){var _=g.parentNode;var S=g.nextSibling;{var $=(t=y["s-ol"])==null?void 0:t.previousSibling;while($){var j=(i=$["s-nr"])!=null?i:null;if(j&&j["s-sn"]===y["s-sn"]&&_===j.parentNode){j=j.nextSibling;while(j===y||(j==null?void 0:j["s-sr"])){j=j==null?void 0:j.nextSibling}if(!j||!j["s-nr"]){S=j;break}}$=$.previousSibling}}if(!S&&_!==y.parentNode||y.nextSibling!==S){if(y!==S){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}Nr(_,y,S);if(y.nodeType===1){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof g["s-rf"]==="function"&&g["s-rf"](y)}else{if(y.nodeType===1){if(n){y["s-ih"]=(f=y.hidden)!=null?f:false}y.hidden=true}}}}if($r){Er(v.T)}E.i&=~1;Tr.length=0}pr=void 0};var Pr=function(r){var e=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.item=function(r){return this[r]};return e}(Array);var n=globalThis.Node&&Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");if(!n){n=Object.getOwnPropertyDescriptor(r,"childNodes")}if(n)Object.defineProperty(r,"__childNodes",n);var t=Object.getOwnPropertyDescriptor(Element.prototype,"children");if(!t){t=Object.getOwnPropertyDescriptor(r,"children")}if(t)Object.defineProperty(r,"__children",t);Object.defineProperty(r,"children",{get:function(){return this.childNodes.filter((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return this.children.length}});if(!n)return;Object.defineProperty(r,"childNodes",{get:function(){var r,n;if(!E.i||!((r=v(this))==null?void 0:r.i)||(E.i&1)===0&&((n=v(this))==null?void 0:n.i)&2){var t=new e;var i=Wr(this.__childNodes);t.push.apply(t,i);return t}return e.from(this.__childNodes)}})};var Ur=function(r,e,n,t){var i;if(r["s-ol"]&&r["s-ol"].isConnected){i=r["s-ol"]}else{i=document.createTextNode("");i["s-nr"]=r}if(!e["s-cr"]||!e["s-cr"].parentNode)return;var a=e["s-cr"].parentNode;var f=n?a.__prepend||a.prepend:a.__appendChild||a.appendChild;if(typeof t!=="undefined"){{i["s-oo"]=t;var u=a.__childNodes||a.childNodes;var o=[i];u.forEach((function(r){if(r["s-nr"])o.push(r)}));o.sort((function(r,e){if(!r["s-oo"]||r["s-oo"]<e["s-oo"])return-1;else if(!e["s-oo"]||e["s-oo"]<r["s-oo"])return 1;return 0}));o.forEach((function(r){return f.call(a,r)}))}}else{f.call(a,i)}r["s-ol"]=i;r["s-sh"]=e["s-hn"]};var Wr=function(r){var e=[];for(var n=0;n<r.length;n++){var t=r[n]["s-nr"];if(t&&t.isConnected){e.push(t)}}return e};var Br=function(r,e){if(e===void 0){e=""}{return function(){return}}};var Hr=function(r,e){{return function(){return}}};var Vr=function(r,e,n,t){var i=Br("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=[];var l=a?[]:null;var v=er(e,null);v.T=r;if(!E.M){Gr(C.body,E.M=new Map)}r[S]=n;r.removeAttribute(S);t.N=zr(v,f,u,l,r,r,n,o);var s=0;var c=f.length;var d;for(s;s<c;s++){d=f[s];var h=d.I+"."+d.D;var p=E.M.get(h);var m=d.T;if(!a){m["s-hn"]=e.toUpperCase();if(d.C==="slot"){m["s-cr"]=r["s-cr"]}}if(p&&p.isConnected){if(a&&p["s-en"]===""){p.parentNode.insertBefore(m,p.nextSibling)}p.parentNode.removeChild(p);if(!a){m["s-oo"]=parseInt(d.D)}}E.M.delete(h)}var y=[];var $=0;var b=o.length;var w;var g;var _;var j;for($;$<b;$++){w=o[$];if(!w||!w.length)continue;_=w.length;g=0;for(g;g<_;g++){j=w[g];if(!y[j.hostId]){y[j.hostId]=E.M.get(j.hostId)}if(!y[j.hostId])continue;var O=y[j.hostId];if(!O.shadowRoot||!a){j.slot["s-cr"]=O["s-cr"];if(!j.slot["s-cr"]&&O.shadowRoot){j.slot["s-cr"]=O}else{var k=O.__childNodes||O.childNodes;j.slot["s-cr"]=k[0]}Ur(j.node,j.slot,false,j.node["s-oo"])}if(O.shadowRoot&&j.node.parentElement!==O){O.appendChild(j.node)}}}if(a){var x=0;var A=l.length;for(x;x<A;x++){a.appendChild(l[x])}Array.from(r.childNodes).forEach((function(r){if(r.nodeType===8&&typeof r["s-sn"]!=="string"){r.parentNode.removeChild(r)}}))}t.$hostElement$=r;i()};var zr=function(r,e,n,t,i,a,f,u){if(u===void 0){u=[]}var o;var l;var v;var s;var c=i["s-sc"];if(a.nodeType===1){o=a.getAttribute(O);if(o){l=o.split(".");if(l[0]===f||l[0]==="0"){v=Qr({i:0,I:l[0],D:l[1],P:l[2],U:l[3],C:a.tagName.toLowerCase(),T:a,j:{class:a.className}});e.push(v);a.removeAttribute(O);if(!r.O){r.O=[]}var d=v.T.getAttribute("s-sn");if(typeof d==="string"){if(v.C==="slot-fb"){qr(d,l[2],v,a,r,e,n,t,u)}v.T["s-sn"]=d;v.T.removeAttribute("s-sn")}if(v.U!==void 0){r.O[v.U]=v}if(c)a["s-si"]=c;r=v;if(t&&v.P==="0"){t[v.U]=v.T}}}if(a.shadowRoot){for(s=a.shadowRoot.childNodes.length-1;s>=0;s--){zr(r,e,n,t,i,a.shadowRoot.childNodes[s],f,u)}}var h=a.__childNodes||a.childNodes;for(s=h.length-1;s>=0;s--){zr(r,e,n,t,i,h[s],f,u)}}else if(a.nodeType===8){l=a.nodeValue.split(".");if(l[1]===f||l[1]==="0"){o=l[0];v=Qr({I:l[1],D:l[2],P:l[3],U:l[4]||"0",T:a,j:null,O:null,k:null,A:null,C:null,S:null});if(o===g){v.T=a.nextSibling;if(v.T&&v.T.nodeType===3){v.S=v.T.textContent;e.push(v);a.remove();if(f===v.I){if(!r.O){r.O=[]}r.O[v.U]=v}if(t&&v.P==="0"){t[v.U]=v.T}}}else if(o===_){v.T=a.nextSibling;if(v.T&&v.T.nodeType===8){e.push(v);a.remove()}}else if(v.I===f){if(o===w){v.C="slot";var d=a["s-sn"]=v.A=l[5]||"";qr(d,l[2],v,a,r,e,n,t,u)}else if(o===$){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.C==="style"){var p=er(null,a.textContent);p.T=a;p.U="0";r.O=[p]}return r};var Gr=function(r,e){if(r.nodeType===1){var n=r[S]||r.getAttribute(S);if(n){e.set(n,r)}var t=0;if(r.shadowRoot){for(;t<r.shadowRoot.childNodes.length;t++){Gr(r.shadowRoot.childNodes[t],e)}}var i=r.__childNodes||r.childNodes;for(t=0;t<i.length;t++){Gr(i[t],e)}}else if(r.nodeType===8){var a=r.nodeValue.split(".");if(a[0]===b){e.set(a[1]+"."+a[2],r);r.nodeValue="";r["s-en"]=a[3]}}};var Qr=function(r){var e={i:0,I:null,D:null,P:null,U:"0",T:null,j:null,O:null,k:null,A:null,C:null,S:null};return __assign(__assign({},e),r)};function qr(r,e,n,t,i,a,f,u,o){t["s-sr"]=true;var l=(i==null?void 0:i.T)?i.T["s-id"]||i.T.getAttribute("s-id"):"";if(u){var v=n.T=C.createElement(n.C);if(n.A){n.T.setAttribute("name",r)}if(l&&l!==n.I){i.T.insertBefore(v,i.T.children[0])}else{t.parentNode.insertBefore(n.T,t)}Kr(o,e,r,t,n.I);t.remove();if(n.P==="0"){u[n.U]=n.T}}else{var v=n.T;var s=l&&l!==n.I&&i.T.shadowRoot;Kr(o,e,r,t,s?l:n.I);if(s){i.T.insertBefore(v,i.T.children[0])}a.push(n)}f.push(n);if(!i.O){i.O=[]}i.O[n.U]=n}var Kr=function(r,e,n,t,i){var a=t.nextSibling;r[e]=r[e]||[];while(a&&((a["getAttribute"]&&a.getAttribute("slot")||a["s-sn"])===n||n===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3))){a["s-sn"]=n;r[e].push({slot:t,node:a,hostId:i});a=a.nextSibling}};var Xr=function(r,e){if(r!=null&&!G(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var Jr=r("g",(function(r){return v(r).$hostElement$}));var Yr=r("c",(function(r,e,n){var t=Jr(r);return{emit:function(r){return Zr(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var Zr=function(r,e,n){var t=E.ce(e,n);r.dispatchEvent(t);return t};var re=new WeakMap;var ee=function(r,e,n){var t=y.get(r);if(R&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}y.set(r,t)};var ne=function(r,e,n){var t;var i=ie(e);var a=y.get(i);r=r.nodeType===11?r:C;if(a){if(typeof a==="string"){r=r.head||r;var f=re.get(r);var u=void 0;if(!f){re.set(r,f=new Set)}if(!f.has(i)){if(r.host&&(u=r.querySelector("[".concat(j,'="').concat(i,'"]')))){u.innerHTML=a}else{u=C.createElement("style");u.innerHTML=a;var o=(t=E.W)!=null?t:Q(C);if(o!=null){u.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var v=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(u,v)}else if("host"in r){if(R){var s=new CSSStyleSheet;s.replaceSync(a);r.adoptedStyleSheets=__spreadArray([s],r.adoptedStyleSheets,true)}else{var c=r.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{r.prepend(u)}}}else{r.append(u)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(u,null)}}if(e.i&4){u.innerHTML+=k}if(f){f.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var te=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=Br("attachStyles",e.m);var a=ne(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h");if(t&2){n.classList.add(a+"-s")}}i()};var ie=function(r,e){return"sc-"+r.m};var ae=function(r,e){if(e&&!r.B&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.B=e})))}};var fe=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}ae(r,r.H);var n=function(){return ue(r,e)};return W(n)};var ue=function(r,e){var n=r.$hostElement$;var t=Br("scheduleUpdate",r.u.m);var i=r.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(e){{r.i|=256;if(r.V){r.V.map((function(r){var e=r[0],n=r[1];return he(i,e,n)}));r.V=void 0}}{a=he(i,"componentWillLoad")}}{a=oe(a,(function(){return he(i,"componentWillRender")}))}t();return oe(a,(function(){return ve(r,i,e)}))};var oe=function(r,e){return le(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var le=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var ve=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=Br("update",r.u.m);f=i["s-rc"];if(t){te(r)}u=Br("render",r.u.m);{se(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return ce(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var se=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{Ir(r,e,t)}}}}catch(e){h(e,r.$hostElement$)}return null};var ce=function(r){var e=r.u.m;var n=r.$hostElement$;var t=Br("postUpdate",e);var i=r.t;var a=r.H;{he(i,"componentDidRender")}if(!(r.i&64)){r.i|=64;{pe(n)}{he(i,"componentDidLoad")}t();{r.p(n);if(!a){de()}}}else{{he(i,"componentDidUpdate")}t()}{r.v(n)}{if(r.B){r.B();r.B=void 0}if(r.i&512){U((function(){return fe(r,false)}))}r.i&=~(4|512)}};var de=function(r){{pe(C.documentElement)}U((function(){return Zr(A,"appload",{detail:{namespace:t}})}))};var he=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){h(r)}}return void 0};var pe=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var me=function(r,e){return v(r).o.get(e)};var ye=function(r,e,n,t){var i=v(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.m,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=i.$hostElement$;var f=i.o.get(e);var u=i.i;var o=i.t;n=Xr(n,t.G[e][0]);var l=Number.isNaN(f)&&Number.isNaN(n);var s=n!==f&&!l;if((!(u&8)||f===void 0)&&s){i.o.set(e,n);if(o){if(t.q&&u&128){var c=t.q[e];if(c){c.map((function(r){try{o[r](n,f,e)}catch(r){h(r,a)}}))}}if((u&(2|16))===2){fe(i,false)}}}};var $e=function(r,e,n){var t,i;var a=r.prototype;if(e.G||(e.q||r.watchers)){if(r.watchers&&!e.q){e.q=r.watchers}var f=Object.entries((t=e.G)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){if((i&2048)===0){Object.defineProperty(a,t,{get:function(){return me(this,t)},set:function(r){ye(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&2048){{Object.defineProperty(a,t,{get:function(){var r=v(this);var e=r?r.t:a;if(!e)return;return e[t]},configurable:true,enumerable:true})}if(i&4096){var f=Object.getOwnPropertyDescriptor(a,t).set;Object.defineProperty(a,t,{set:function(r){var n=this;var i=v(this);if(f){var a=i.$hostElement$[t];if(!i.o.get(t)&&a){i.o.set(t,a)}f.apply(this,[Xr(r,e.G[t][0])]);ye(this,t,i.$hostElement$[t],e);return}if(!i)return;var u=function(){var a=i.t[t];if(!i.o.get(t)&&a){i.o.set(t,a)}i.t[t]=Xr(r,e.G[t][0]);ye(n,t,i.t[t],e)};if(i.t){u()}else{i.h.then((function(){return u()}))}}})}}}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=v(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var e;return(e=i.t)==null?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var u=new Map;a.attributeChangedCallback=function(r,n,t){var i=this;E.jmp((function(){var f;var o=u.get(r);if(i.hasOwnProperty(o)){t=i[o];delete i[o]}else if(a.hasOwnProperty(o)&&typeof i[o]==="number"&&i[o]==t){return}else if(o==null){var l=v(i);var s=l==null?void 0:l.i;if(s&&!(s&8)&&s&128&&t!==n){var c=l.t;var d=(f=e.q)==null?void 0:f[r];d==null?void 0:d.forEach((function(e){if(c[e]!=null){c[e].call(c,t,n,r)}}))}return}var h=Object.getOwnPropertyDescriptor(a,o);if(!h.get||!!h.set){i[o]=t===null&&typeof i[o]==="boolean"?false:t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=e.q)!=null?i:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;u.set(a,n);if(t[0]&512){(i=e.F)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var be=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,v,s,c,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.$;if(!i)return[3,4];a=m(t);if(!(a&&"then"in a))return[3,2];f=Hr();return[4,a];case 1:n=p.sent();f();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(e.K,'" was not found'))}if(!n.isProxied){{t.q=n.watchers}$e(n,t,2);n.isProxied=true}u=Br("createInstance",t.m);{e.i|=8}try{new n(e)}catch(r){h(r)}{e.i&=~8}{e.i|=128}u();we(e.t);return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}v=ie(t);if(!y.has(v)){s=Br("registerStyles",t.m);ee(v,l,!!(t.i&1));s()}}p.label=6;case 6:c=e.H;d=function(){return fe(e,true)};if(c&&c["s-rc"]){c["s-rc"].push(d)}else{d()}return[2]}}))}))};var we=function(r){{he(r,"connectedCallback")}};var ge=function(r){if((E.i&1)===0){var e=v(r);var n=e.u;var t=Br("connectedCallback",n.m);if(!(e.i&1)){e.i|=1;var i=void 0;{i=r.getAttribute(S);if(i){if(n.i&1){var a=ne(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}else if(n.i&2){var a=ie(n);r["s-sc"]=a}Vr(r,n.m,i,e)}}if(!i){if(n.i&(4|8)){_e(r)}}{var f=r;while(f=f.parentNode||f.host){if(f.nodeType===1&&f.hasAttribute("s-id")&&f["s-p"]||f["s-p"]){ae(e,e.H=f);break}}}if(n.G){Object.entries(n.G).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{U((function(){return be(r,e,n)}))}}else{xe(r,e,n.X);if(e==null?void 0:e.t){we(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return we(e.t)}))}}t()}};var _e=function(r){var e=r["s-cr"]=C.createComment("");e["s-cn"]=true;Nr(r,e,r.firstChild)};var Se=function(r){{he(r,"disconnectedCallback")}};var je=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((E.i&1)===0){e=v(r);{if(e.J){e.J.map((function(r){return r()}));e.J=void 0}}if(e==null?void 0:e.t){Se(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return Se(e.t)}))}}return[2]}))}))};var Oe=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=Br();var i=[];var a=e.exclude||[];var f=A.customElements;var u=C.head;var o=u.querySelector("meta[charset]");var l=C.createElement("style");var s=[];var d;var h=true;Object.assign(E,e);E._=new URL(e.resourcesUrl||"./",C.baseURI).href;{E.i|=2}var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],m:e[1],G:e[2],X:e[3]};if(t.i&4){p=true}{t.G=e[2]}{t.X=e[3]}{t.F=[]}{t.q=(n=e[4])!=null?n:{}}var u=t.m;var o=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;c(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open",delegatesFocus:!!(t.i&16)})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.m,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=v(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;xe(this,e,t.X)}if(d){clearTimeout(d);d=null}if(h){s.push(this)}else{E.jmp((function(){return ge(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;E.jmp((function(){return je(r)}))};e.prototype.componentOnReady=function(){return v(this).h};return e}(HTMLElement);{{Pr(o.prototype)}}t.$=r[0];if(!a.includes(u)&&!f.get(u)){i.push(u);f.define(u,$e(o,t,1))}}))}));if(i.length>0){if(p){l.textContent+=k}if(l.innerHTML.length){l.setAttribute("data-styles","");var m=(n=E.W)!=null?n:Q(C);if(m!=null){l.setAttribute("nonce",m)}u.insertBefore(l,o?o.nextSibling:u.firstChild)}}h=false;if(s.length){s.map((function(r){return r.connectedCallback()}))}else{{E.jmp((function(){return d=setTimeout(de,30)}))}}t()}));var ke=r("F",(function(r,e){return e}));var xe=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=Ce(r,t);var u=Ae(e,a);var o=Ee(t);E.ael(f,i,u,o);(e.J=e.J||[]).push((function(){return E.rel(f,i,u,o)}))}))}};var Ae=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.V=r.V||[]).push([e,n])}}}catch(r){h(r)}}};var Ce=function(r,e){if(e&4)return C;if(e&8)return A;if(e&16)return C.body;return r};var Ee=function(r){return T?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Te=r("s",(function(r){return E.W=r}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function d(t){try{l(a.next(t))}catch(t){r(t)}}function o(t){try{l(a["throw"](t))}catch(t){r(t)}}function l(t){t.done?i(t.value):n(t.value).then(d,o)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,d;return d={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(t){return function(e){return l([t,e])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(i=0)),i)try{if(a=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];n=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var a=0,n=e.length,r;a<n;a++){if(r||!(a in e)){if(!r)r=Array.prototype.slice.call(e,0,a);r[a]=e[a]}}return t.concat(r||Array.prototype.slice.call(e))};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-f4c1b623.system.js","./p-e216bea4.system.js","./p-41982d26.system.js","./p-34d7dd10.system.js","./p-ce9ccf2d.system.js","./p-ef731dfb.system.js","./p-cbbf6d6a.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-5d89c45e.system.js"],(function(t){"use strict";var e,i,a,n,r,d,o,l,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;i=t.r;a=t.c;n=t.H;r=t.g;d=t.F},function(t){o=t.i},function(t){l=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,i){var a=t.data,n=t.groupId,r=t.alignment;var d="duet-editable-table duet-editable-table-content-".concat(n);if(typeof a==="string"){return e("td",{innerHTML:a,class:d,part:"".concat(n,"content"),style:{verticalAlign:r}})}else{return e("td",{class:d,part:"".concat(n,"content"),style:{verticalAlign:r}},a)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;i(this,t);this.duetTableToggle=a(this,"duetTableToggle",7);this.duetMenuClick=a(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,i){i.preventDefault();var a=t.sort_order,n=t.direction,r=t.index,d=t.key;e.duetTableToggle.emit({sort_order:a,index:r,direction:n,key:d,component:"duet-editable-table",originalEvent:i})};this.handleKeyDown=function(t,i){if(u(i)){e.toggleColumn(t,i)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){o(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var i=this;var a=t.sort_order,n=t.direction,r=t.index,d=t.label;var o=c(d);if(!this.sortable){return o}var l=function(){if(!!a&&n===1){return"action-arrow-down-small"}else if(!!a&&n===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":r},e("duet-button",{size:"small",icon:l(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return i.toggleColumn(t,e)},onKeyDown:function(e){return i.handleKeyDown(t,e)}},o))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(l(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(l(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var i=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},i.map((function(i){if(i.display!==false){var a=t.createLabel(i);return a!==""?e("th",{scope:"col"},a):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,i){var a=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(n){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:i}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:n.name,theme:a.theme,iconName:n.icon,iconColor:n.color,iconSize:n.size,background:n.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(n.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var i=this.getSortedColumns();var a=this.getRowSortOrder();var n=__spreadArray([],this.rows,true).sort(l(a));return n.map((function(a,n){var r;return e("tr",{class:(r={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},r["duet-editable-table-row-".concat(t.groupId)]=true,r),"data-meta":JSON.stringify(a.meta)},i.map((function(i){var n=a[i.key]?a[i.key]:a.item;if(i.display!==false){return e(T,{data:n,groupId:t.groupId})}})),t.actions&&t.renderActions(a,n))}))};t.prototype.render=function(){var t;return e(n,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{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;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;i(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var i=this;if(t!==e){setTimeout((function(){return i.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){o(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var i=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(i[e]){var a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){a===null||a===void 0?void 0:a.remove();var n=document.createElement("span");n.textContent=i[e];n.classList.add("duet-table-cell-heading");n.setAttribute("aria-hidden","true");n.inert=true;t.prepend(n)}}}))}))};t.prototype.render=function(){var t;return e(n,{key:"d456405a2d68a4f177b88081425e960ba63045b9",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"4f00b379d883a78ed082245fb9b6b8096e52ab94"}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var i=t.label,a=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},a&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)),e("duet-heading",{class:{"filename-header":true,"no-category":!a},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)))};var C=function(t,e){if(!e){return true}var i=t.split(".");var a=e.split(",");var n=i[i.length-1];return a.includes(n)};var P=function(t,e){if(!e||!t){return true}var i=e.split(",");var a=false;i.forEach((function(e){var i=e.split("/");var n=t.split("/");if(i[0]===n[0]&&(i[1]===n[1]||i[1]==="*")){a=true}}));return a};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,i){var a=e.allowedMimetypes,n=e.allowedExtensions,r=e.maxBytes;var d=false;var o=k("default",i);if(t){var l=t.name,s=t.type,u=t.size;var h=P(s,a);var f=n==="all"||n===""||n===" "||n===undefined?true:C(l.toLowerCase(),n);var b=I(u,r);if(!h){o=k("duet-upload-101",i)}if(!f){o=k("duet-upload-100",i)}if(!b){o=k("duet-upload-201",i)}d=h&&f&&b}else{d=false}return{valid:d,errorMessage:d?undefined:c(o.message),errorSystem:d?undefined:o.system_message,errorType:d?undefined:o.type}};var W=function(t,e){var i=0;if(e){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));if(i>=e){return true}}return false};var R=function(t,e){var i=0;if(e){t.forEach((function(t){if(t.valid){i++}}));if(i>=e){return true}}return false};var N=function(t,e,i){if(t+e>i){return true}return false};var Y=function(t,e,i){var a=0;if(i){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));e.forEach((function(t){if(t.size){a+=t.size}}));if(a>=i){return true}}return false};var q=function(t){var e=t.payload,i=t.options,a=t.onFailure,n=t.onSuccess,r=t.onProgress;var d=i.type,o=d===void 0?"POST":d,l=i.xhr,s=i.uri,u=i.argument,h=u===void 0?null:u,f=i.headers,b=f===void 0?null:f;l.open(o,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){l.setRequestHeader(t,b[t])}))}if(o==="POST"){l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300){n(l,p,l.status)}if(l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999){a(l,p,l.status)}};r(p)}l.send(c);return l};var B="*,*::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}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var n=this;i(this,t);this.duetChange=a(this,"duetChange",3);this.duetBlur=a(this,"duetBlur",7);this.duetFocus=a(this,"duetFocus",7);this.duetReady=a(this,"duetReady",7);this.duetDone=a(this,"duetDone",3);this.duetState=a(this,"duetState",3);this.duetDelete=a(this,"duetDelete",3);this.duetCancel=a(this,"duetCancel",3);this.duetProgress=a(this,"duetProgress",3);this.duetUpload=a(this,"duetUpload",3);this.linkClick=a(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){n.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){n.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var i=e.action,a=e.id,r=e.originalEvent;switch(i){case"delete":n.onDelete(a,r);break;case"cancel":n.onCancel(a,r);break}}))};this.verifyValidity=function(){var t=n.getFilesAsArray(),e=t.invalid,i=t.valid;var a=n.valid;n.valid=e.length===0&&i.length!==0;if(n.valid!==a){n.duetState.emit({originalEvent:undefined,data:{valid:n.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return n.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return n.DefaultGroups.inprogress}else if(!t.valid){return n.DefaultGroups.failure}else if(t.pending){return n.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,i,a,r){if(i===n.DefaultGroups.success){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"success",data:t,showLinks:n.showLinks,linkClickEvent:n.emitEvent?n.linkClick:undefined,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(i===n.DefaultGroups.inprogress){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"inprogress",data:t,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(i===n.DefaultGroups.pending){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"pending",data:t,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(i===n.DefaultGroups.failure){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"failure",data:t,showLinks:n.showLinks,errorCodes:n.errorCodes,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,i,a){if(a===void 0){a=true}try{var r=n.files.get(t);r[e]=i;n.files.set(t,r);if(n.external&&e!=="url"){n.trackProgress(t,e==="uploaded")}}catch(t){}if(a){n.kick()}};this.updateProgress=function(t,e){var i=function(i){n.updateValueInMap(e,"progress",i);n.onProgress(e,i,t)};if(t.lengthComputable){var a=t.loaded/t.total*100;i(a)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){n.filesInProgress.delete(t)}else{n.filesInProgress.set(t,"inprogress")}if(n.filesInProgress.size===0){n.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];n.files.forEach((function(i){if(i.valid&&!i.deleted){t.push(i)}else if(!i.valid&&!i.deleted){e.push(i)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){n.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var i=1;i<arguments.length;i++){e[i-1]=arguments[i]}return __awaiter(n,__spreadArray([t],e,true),void 0,(function(t,e){var i,a,n;if(e===void 0){e=undefined}return __generator(this,(function(r){i=this.validateTotals(),a=i.bytesMaxReached,n=i.fileMaxReached;if(a||n){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){n.updateValueInMap(t,"progress",100,false);n.trackProgress(t,true)};this.transferDone=function(t,e,i){n.updateValueInMap(e,"status",i,false);n.updateValueInMap(e,"uploaded",true,false);try{var a=JSON.parse(t.response);n.updateValueInMap(e,"url",a.url)}catch(t){n.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,i){try{var a=JSON.parse(t.response).error;n.updateValueInMap(e,"error",{message:a.message,type:a.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");n.updateValueInMap(e,"error",{type:i},false)}n.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){n.updateValueInMap(t,"error",_("duet-upload-001",n.errorCodes))};this.transferCanceled=function(t){n.files.delete(t);n.validateTotals(t);n.kick()};this.validateTotals=function(t){var e=W(n.files,n.maxBytesTotal);var i=R(n.files,n.maxFiles);if(e&&t){n.updateValueInMap(t,"error",_("duet-upload-202",n.errorCodes),false)}if(i&&t){n.updateValueInMap(t,"error",_("duet-upload-301",n.errorCodes),false)}n.bytesMaxReached=e;n.fileMaxReached=i;return{bytesMaxReached:e,fileMaxReached:i}};this.uploadFile=function(t){var e=[];for(var i=1;i<arguments.length;i++){e[i-1]=arguments[i]}return __awaiter(n,__spreadArray([t],e,true),void 0,(function(t,e,i){var a,n,r;if(e===void 0){e=false}return __generator(this,(function(d){switch(d.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}d.label=1;case 1:d.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];a=new FormData;a.append("file",t.item);if(i){a.append("key",i)}a.append("uid",t.uid);a.append("name",t.item.name);a.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));n=t;return[4,this.makeXHRPostRequest(a)];case 2:n.xhr=d.sent();d.label=3;case 3:return[3,5];case 4:r=d.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(n.files.entries());t<e.length;t++){var i=e[t],a=i[0],r=i[1];if(r.group==="pending"&&r.pending===true){n.uploadFile(r,true,a)}}};this.getItemFromUID=function(t){for(var e=0,i=Array.from(n.files.entries());e<i.length;e++){var a=i[e],r=a[0],d=a[1];if(d.uid===t){return{value:d,key:r}}}return null};this.handleExternalUploadButton=function(t,e){if(n.externalUploadButton){if(t||e){n.externalUploadButton.disabled=true}else{n.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var i=n.getItemFromUID(t);var a=i.key;var r=n.files.get(a);n.files.delete(a);var d=n.validateTotals(),o=d.bytesMaxReached,l=d.fileMaxReached;n.handleExternalUploadButton(o,l);n.kick();n.duetDelete.emit({originalEvent:e,data:{deletion:r},component:"duet-upload"});if(!n.external&&!r.pending){n.makeXHRDeleteRequest(r)}n.resetFormFields()};this.onCancel=function(t,e){var i=n.getItemFromUID(t).key;var a=n.files.get(i);n.files.delete(i);var r=n.validateTotals(),d=r.bytesMaxReached,o=r.fileMaxReached;n.handleExternalUploadButton(d,o);if(!n.external){var l=a.xhr;if(l){l.abort()}}n.kick();n.resetFormFields();n.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})};this.onUpload=function(t,e){n.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){n.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,i){n.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){n.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){n.duetReady.emit({component:"duet-upload"})};this.onDone=function(){n.duetDone.emit({component:"duet-upload",data:{files:n.files}})};this.filterMap=function(){var t=Array.from(n.files.values());var e=[];var i=[];var a=[];var r=[];var d=false;t.forEach((function(t){var o=n.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){d=true}if(o===n.DefaultGroups.success){r.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.pending){a.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.failure){i.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:a,failure:i,success:r,inprogress:e,hasCategory:d}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){n.itemRefs.clear();var t=n.filterMap();var i=t.hasCategory;var a=n.hideCancelButton?n.actions.filter((function(t){return t.name!=="cancel"})):n.actions;var r=n.groups.map((function(r){var o=t[r.id];if(!(o===null||o===void 0?void 0:o.length)){return}return e(d,null,!n.hideGroups&&e(D,{categoryLabel:i?n.categoryLabel:undefined,label:r.label}),o.map((function(t){return n.mapFilesToUploadItems(t.data,r.id,i,a)})))}));return e(d,null,n.showUploadedItemsHeader&&e(D,{categoryLabel:i?n.categoryLabel:undefined,label:n.uploadedItemsHeaderLabel}),r)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}o(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,a;if(t===void 0){t=undefined}return __generator(this,(function(n){e=this.validateTotals(),i=e.bytesMaxReached,a=e.fileMaxReached;if(i||a){this.handleExternalUploadButton(i,a);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.updateValueInMap(t,e,i);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:i.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var i=this.identifier||this.uploadId;var a=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var r=Math.round(this.maxBytes/1024/1024);var o=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());o=o.replace(/{maxbytes}/g,"".concat(r.toString()," MB"));o=o.replace(/{maxbytestotal}/g,"".concat(a.toString()," MB"));o=o.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(o)}return e(n,{key:"44b4a9f8f0e99182d1db74ed7e2fb3237d90ed71",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"2231a57d1b606059e90c7406f24258d4b844cbe0","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"bb0e091ee3d4c96715018d1fc836d6cd5f938c75",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"d988bc2f8b6a4efc418a65b3ee575095b97ae06a",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"b274a3b81132a5119c47bd365bbdd77f08280c17",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"5a2377d31360af5cbdae90130677853613899ec5",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"6fe002a8a312e6e067321c07e0b50ed786fd8dc3",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"730c164e68660c49ce18f8fec5d8f184a640bcd9",name:"filefooter"}),e("slot",{key:"303c2be9f728196dc157cd29a39a926ca9951a88",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"d0e088aa37d8b789b3dc4efa9e070c74746877d0",margin:"none",size:"small"},e("div",{key:"e3ab58aaacb792a297bcc56154073c9289dd1c32",class:"upload-bottom-caption"},o)),e("slot",{key:"5a6d988ce4deff649f20207813758e023eb3d817",name:"afterfooter"}),!this.hideButton&&e(d,{key:"86a890e223fb900e2420ea45564f8c4c484ddc8a"},e("duet-spacer",{key:"fdf03610301bb1368fb28db909a35e10320df054",size:"large"}),e("duet-button",{key:"be03dc2d96b961dc22d63bf0bf4e1128e4c813d4",id:this.buttonId,onClick:this.startUpload,"accessible-controls":i,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(o),"accessible-owns":i,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(d,{key:"86937ba57803f4ca6379dcab097cf0d08d0962d7"},e("duet-spacer",{key:"64e72354abfe4dad9e6c1d430e89900b38c50dec",size:"medium"}),e("duet-alert",{key:"02be9578a9bf4afdcda8ff3a9d280525a39e430c",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"619dec515fc6147867da776c79f883d54a2ba9d3","aria-hidden":"true"},e("input",{key:"8e13ce6903fa6218b0e56035416dcddd154317a2",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var i=new XMLHttpRequest;var a=t.get("name");i.upload.addEventListener("progress",(function(t){e.updateProgress(t,a)}));i.upload.addEventListener("load",(function(){e.transferComplete(a)}));i.upload.addEventListener("error",(function(){e.transferFailed(a)}));i.upload.addEventListener("abort",(function(){e.transferCanceled(a)}));var n={payload:{data:t,name:a},options:{type:"POST",uri:this.uri,xhr:i,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,i=t.item;var a=new XMLHttpRequest;var n={"x-fileuid":e,"x-filename":i.name};var r={payload:{data:null,name:name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(i.name),headers:n},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){r=this.middleware(r)}return q(r)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var i=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var a=Array.from(this.files.entries()).map((function(t){var e=t[0],i=t[1];return e})).filter((function(a){return i.test(a)||a==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(a===t){return"".concat(t," (1).").concat(e)}var n=parseInt(a.split("(").pop().slice(0,-1));return"".concat(t," (").concat(n+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var i=t.name.split(".");var a=i.pop();var n=i.join(".");var r=e.getRenamedFileName(n,a);return new File([t],r,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,a,n,r,d,o,l,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:i=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,i.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,i,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!i)return[3,6];if(this.renameDuplicates){i=this.renameFiles(i)}a=0,n=i;b.label=1;case 1:if(!(a<n.length))return[3,6];r=n[a];d=O(r,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),o=d.valid,l=d.errorMessage,s=d.errorType,u=d.errorSystem;h=this.genHashName();f={uid:h,item:r,size:r.size,meta:this.metaData,uploaded:false,valid:o,error:{type:o?undefined:s,message:o?undefined:l,system_message:o?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(r.name,f);if(!(o&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(o&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!o){this.updateValueInMap(r.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:a++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
|
|
4
|
+
*/System.register(["./p-7d32c253.system.js","./p-e216bea4.system.js","./p-41982d26.system.js","./p-34d7dd10.system.js","./p-3300a0a4.system.js","./p-ef731dfb.system.js","./p-cbbf6d6a.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-42d0aeb0.system.js"],(function(t){"use strict";var e,i,a,n,r,d,o,l,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;i=t.r;a=t.c;n=t.H;r=t.g;d=t.F},function(t){o=t.i},function(t){l=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,i){var a=t.data,n=t.groupId,r=t.alignment;var d="duet-editable-table duet-editable-table-content-".concat(n);if(typeof a==="string"){return e("td",{innerHTML:a,class:d,part:"".concat(n,"content"),style:{verticalAlign:r}})}else{return e("td",{class:d,part:"".concat(n,"content"),style:{verticalAlign:r}},a)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;i(this,t);this.duetTableToggle=a(this,"duetTableToggle",7);this.duetMenuClick=a(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,i){i.preventDefault();var a=t.sort_order,n=t.direction,r=t.index,d=t.key;e.duetTableToggle.emit({sort_order:a,index:r,direction:n,key:d,component:"duet-editable-table",originalEvent:i})};this.handleKeyDown=function(t,i){if(u(i)){e.toggleColumn(t,i)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){o(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var i=this;var a=t.sort_order,n=t.direction,r=t.index,d=t.label;var o=c(d);if(!this.sortable){return o}var l=function(){if(!!a&&n===1){return"action-arrow-down-small"}else if(!!a&&n===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":r},e("duet-button",{size:"small",icon:l(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return i.toggleColumn(t,e)},onKeyDown:function(e){return i.handleKeyDown(t,e)}},o))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(l(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(l(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var i=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},i.map((function(i){if(i.display!==false){var a=t.createLabel(i);return a!==""?e("th",{scope:"col"},a):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,i){var a=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(n){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:i}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:n.name,theme:a.theme,iconName:n.icon,iconColor:n.color,iconSize:n.size,background:n.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(n.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var i=this.getSortedColumns();var a=this.getRowSortOrder();var n=__spreadArray([],this.rows,true).sort(l(a));return n.map((function(a,n){var r;return e("tr",{class:(r={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},r["duet-editable-table-row-".concat(t.groupId)]=true,r),"data-meta":JSON.stringify(a.meta)},i.map((function(i){var n=a[i.key]?a[i.key]:a.item;if(i.display!==false){return e(T,{data:n,groupId:t.groupId})}})),t.actions&&t.renderActions(a,n))}))};t.prototype.render=function(){var t;return e(n,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{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;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;i(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var i=this;if(t!==e){setTimeout((function(){return i.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){o(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var i=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(i[e]){var a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){a===null||a===void 0?void 0:a.remove();var n=document.createElement("span");n.textContent=i[e];n.classList.add("duet-table-cell-heading");n.setAttribute("aria-hidden","true");n.inert=true;t.prepend(n)}}}))}))};t.prototype.render=function(){var t;return e(n,{key:"d456405a2d68a4f177b88081425e960ba63045b9",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"4f00b379d883a78ed082245fb9b6b8096e52ab94"}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var i=t.label,a=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},a&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)),e("duet-heading",{class:{"filename-header":true,"no-category":!a},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)))};var C=function(t,e){if(!e){return true}var i=t.split(".");var a=e.split(",");var n=i[i.length-1];return a.includes(n)};var P=function(t,e){if(!e||!t){return true}var i=e.split(",");var a=false;i.forEach((function(e){var i=e.split("/");var n=t.split("/");if(i[0]===n[0]&&(i[1]===n[1]||i[1]==="*")){a=true}}));return a};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,i){var a=e.allowedMimetypes,n=e.allowedExtensions,r=e.maxBytes;var d=false;var o=k("default",i);if(t){var l=t.name,s=t.type,u=t.size;var h=P(s,a);var f=n==="all"||n===""||n===" "||n===undefined?true:C(l.toLowerCase(),n);var b=I(u,r);if(!h){o=k("duet-upload-101",i)}if(!f){o=k("duet-upload-100",i)}if(!b){o=k("duet-upload-201",i)}d=h&&f&&b}else{d=false}return{valid:d,errorMessage:d?undefined:c(o.message),errorSystem:d?undefined:o.system_message,errorType:d?undefined:o.type}};var W=function(t,e){var i=0;if(e){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));if(i>=e){return true}}return false};var R=function(t,e){var i=0;if(e){t.forEach((function(t){if(t.valid){i++}}));if(i>=e){return true}}return false};var N=function(t,e,i){if(t+e>i){return true}return false};var Y=function(t,e,i){var a=0;if(i){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));e.forEach((function(t){if(t.size){a+=t.size}}));if(a>=i){return true}}return false};var q=function(t){var e=t.payload,i=t.options,a=t.onFailure,n=t.onSuccess,r=t.onProgress;var d=i.type,o=d===void 0?"POST":d,l=i.xhr,s=i.uri,u=i.argument,h=u===void 0?null:u,f=i.headers,b=f===void 0?null:f;l.open(o,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){l.setRequestHeader(t,b[t])}))}if(o==="POST"){l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300){n(l,p,l.status)}if(l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999){a(l,p,l.status)}};r(p)}l.send(c);return l};var B="*,*::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}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var n=this;i(this,t);this.duetChange=a(this,"duetChange",3);this.duetBlur=a(this,"duetBlur",7);this.duetFocus=a(this,"duetFocus",7);this.duetReady=a(this,"duetReady",7);this.duetDone=a(this,"duetDone",3);this.duetState=a(this,"duetState",3);this.duetDelete=a(this,"duetDelete",3);this.duetCancel=a(this,"duetCancel",3);this.duetProgress=a(this,"duetProgress",3);this.duetUpload=a(this,"duetUpload",3);this.linkClick=a(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){n.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){n.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var i=e.action,a=e.id,r=e.originalEvent;switch(i){case"delete":n.onDelete(a,r);break;case"cancel":n.onCancel(a,r);break}}))};this.verifyValidity=function(){var t=n.getFilesAsArray(),e=t.invalid,i=t.valid;var a=n.valid;n.valid=e.length===0&&i.length!==0;if(n.valid!==a){n.duetState.emit({originalEvent:undefined,data:{valid:n.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return n.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return n.DefaultGroups.inprogress}else if(!t.valid){return n.DefaultGroups.failure}else if(t.pending){return n.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,i,a,r){if(i===n.DefaultGroups.success){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"success",data:t,showLinks:n.showLinks,linkClickEvent:n.emitEvent?n.linkClick:undefined,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(i===n.DefaultGroups.inprogress){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"inprogress",data:t,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(i===n.DefaultGroups.pending){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"pending",data:t,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(i===n.DefaultGroups.failure){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(i,r),type:"failure",data:t,showLinks:n.showLinks,errorCodes:n.errorCodes,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,i,a){if(a===void 0){a=true}try{var r=n.files.get(t);r[e]=i;n.files.set(t,r);if(n.external&&e!=="url"){n.trackProgress(t,e==="uploaded")}}catch(t){}if(a){n.kick()}};this.updateProgress=function(t,e){var i=function(i){n.updateValueInMap(e,"progress",i);n.onProgress(e,i,t)};if(t.lengthComputable){var a=t.loaded/t.total*100;i(a)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){n.filesInProgress.delete(t)}else{n.filesInProgress.set(t,"inprogress")}if(n.filesInProgress.size===0){n.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];n.files.forEach((function(i){if(i.valid&&!i.deleted){t.push(i)}else if(!i.valid&&!i.deleted){e.push(i)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){n.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var i=1;i<arguments.length;i++){e[i-1]=arguments[i]}return __awaiter(n,__spreadArray([t],e,true),void 0,(function(t,e){var i,a,n;if(e===void 0){e=undefined}return __generator(this,(function(r){i=this.validateTotals(),a=i.bytesMaxReached,n=i.fileMaxReached;if(a||n){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){n.updateValueInMap(t,"progress",100,false);n.trackProgress(t,true)};this.transferDone=function(t,e,i){n.updateValueInMap(e,"status",i,false);n.updateValueInMap(e,"uploaded",true,false);try{var a=JSON.parse(t.response);n.updateValueInMap(e,"url",a.url)}catch(t){n.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,i){try{var a=JSON.parse(t.response).error;n.updateValueInMap(e,"error",{message:a.message,type:a.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");n.updateValueInMap(e,"error",{type:i},false)}n.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){n.updateValueInMap(t,"error",_("duet-upload-001",n.errorCodes))};this.transferCanceled=function(t){n.files.delete(t);n.validateTotals(t);n.kick()};this.validateTotals=function(t){var e=W(n.files,n.maxBytesTotal);var i=R(n.files,n.maxFiles);if(e&&t){n.updateValueInMap(t,"error",_("duet-upload-202",n.errorCodes),false)}if(i&&t){n.updateValueInMap(t,"error",_("duet-upload-301",n.errorCodes),false)}n.bytesMaxReached=e;n.fileMaxReached=i;return{bytesMaxReached:e,fileMaxReached:i}};this.uploadFile=function(t){var e=[];for(var i=1;i<arguments.length;i++){e[i-1]=arguments[i]}return __awaiter(n,__spreadArray([t],e,true),void 0,(function(t,e,i){var a,n,r;if(e===void 0){e=false}return __generator(this,(function(d){switch(d.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}d.label=1;case 1:d.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];a=new FormData;a.append("file",t.item);if(i){a.append("key",i)}a.append("uid",t.uid);a.append("name",t.item.name);a.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));n=t;return[4,this.makeXHRPostRequest(a)];case 2:n.xhr=d.sent();d.label=3;case 3:return[3,5];case 4:r=d.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(n.files.entries());t<e.length;t++){var i=e[t],a=i[0],r=i[1];if(r.group==="pending"&&r.pending===true){n.uploadFile(r,true,a)}}};this.getItemFromUID=function(t){for(var e=0,i=Array.from(n.files.entries());e<i.length;e++){var a=i[e],r=a[0],d=a[1];if(d.uid===t){return{value:d,key:r}}}return null};this.handleExternalUploadButton=function(t,e){if(n.externalUploadButton){if(t||e){n.externalUploadButton.disabled=true}else{n.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var i=n.getItemFromUID(t);var a=i.key;var r=n.files.get(a);n.files.delete(a);var d=n.validateTotals(),o=d.bytesMaxReached,l=d.fileMaxReached;n.handleExternalUploadButton(o,l);n.kick();n.duetDelete.emit({originalEvent:e,data:{deletion:r},component:"duet-upload"});if(!n.external&&!r.pending){n.makeXHRDeleteRequest(r)}n.resetFormFields()};this.onCancel=function(t,e){var i=n.getItemFromUID(t).key;var a=n.files.get(i);n.files.delete(i);var r=n.validateTotals(),d=r.bytesMaxReached,o=r.fileMaxReached;n.handleExternalUploadButton(d,o);if(!n.external){var l=a.xhr;if(l){l.abort()}}n.kick();n.resetFormFields();n.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})};this.onUpload=function(t,e){n.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){n.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,i){n.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){n.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){n.duetReady.emit({component:"duet-upload"})};this.onDone=function(){n.duetDone.emit({component:"duet-upload",data:{files:n.files}})};this.filterMap=function(){var t=Array.from(n.files.values());var e=[];var i=[];var a=[];var r=[];var d=false;t.forEach((function(t){var o=n.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){d=true}if(o===n.DefaultGroups.success){r.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.pending){a.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.failure){i.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:a,failure:i,success:r,inprogress:e,hasCategory:d}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){n.itemRefs.clear();var t=n.filterMap();var i=t.hasCategory;var a=n.hideCancelButton?n.actions.filter((function(t){return t.name!=="cancel"})):n.actions;var r=n.groups.map((function(r){var o=t[r.id];if(!(o===null||o===void 0?void 0:o.length)){return}return e(d,null,!n.hideGroups&&e(D,{categoryLabel:i?n.categoryLabel:undefined,label:r.label}),o.map((function(t){return n.mapFilesToUploadItems(t.data,r.id,i,a)})))}));return e(d,null,n.showUploadedItemsHeader&&e(D,{categoryLabel:i?n.categoryLabel:undefined,label:n.uploadedItemsHeaderLabel}),r)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}o(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,a;if(t===void 0){t=undefined}return __generator(this,(function(n){e=this.validateTotals(),i=e.bytesMaxReached,a=e.fileMaxReached;if(i||a){this.handleExternalUploadButton(i,a);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.updateValueInMap(t,e,i);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:i.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var i=this.identifier||this.uploadId;var a=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var r=Math.round(this.maxBytes/1024/1024);var o=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());o=o.replace(/{maxbytes}/g,"".concat(r.toString()," MB"));o=o.replace(/{maxbytestotal}/g,"".concat(a.toString()," MB"));o=o.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(o)}return e(n,{key:"44b4a9f8f0e99182d1db74ed7e2fb3237d90ed71",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"2231a57d1b606059e90c7406f24258d4b844cbe0","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"bb0e091ee3d4c96715018d1fc836d6cd5f938c75",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"d988bc2f8b6a4efc418a65b3ee575095b97ae06a",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"b274a3b81132a5119c47bd365bbdd77f08280c17",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"5a2377d31360af5cbdae90130677853613899ec5",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"6fe002a8a312e6e067321c07e0b50ed786fd8dc3",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"730c164e68660c49ce18f8fec5d8f184a640bcd9",name:"filefooter"}),e("slot",{key:"303c2be9f728196dc157cd29a39a926ca9951a88",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"d0e088aa37d8b789b3dc4efa9e070c74746877d0",margin:"none",size:"small"},e("div",{key:"e3ab58aaacb792a297bcc56154073c9289dd1c32",class:"upload-bottom-caption"},o)),e("slot",{key:"5a6d988ce4deff649f20207813758e023eb3d817",name:"afterfooter"}),!this.hideButton&&e(d,{key:"86a890e223fb900e2420ea45564f8c4c484ddc8a"},e("duet-spacer",{key:"fdf03610301bb1368fb28db909a35e10320df054",size:"large"}),e("duet-button",{key:"be03dc2d96b961dc22d63bf0bf4e1128e4c813d4",id:this.buttonId,onClick:this.startUpload,"accessible-controls":i,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(o),"accessible-owns":i,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(d,{key:"86937ba57803f4ca6379dcab097cf0d08d0962d7"},e("duet-spacer",{key:"64e72354abfe4dad9e6c1d430e89900b38c50dec",size:"medium"}),e("duet-alert",{key:"02be9578a9bf4afdcda8ff3a9d280525a39e430c",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"619dec515fc6147867da776c79f883d54a2ba9d3","aria-hidden":"true"},e("input",{key:"8e13ce6903fa6218b0e56035416dcddd154317a2",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var i=new XMLHttpRequest;var a=t.get("name");i.upload.addEventListener("progress",(function(t){e.updateProgress(t,a)}));i.upload.addEventListener("load",(function(){e.transferComplete(a)}));i.upload.addEventListener("error",(function(){e.transferFailed(a)}));i.upload.addEventListener("abort",(function(){e.transferCanceled(a)}));var n={payload:{data:t,name:a},options:{type:"POST",uri:this.uri,xhr:i,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,i=t.item;var a=new XMLHttpRequest;var n={"x-fileuid":e,"x-filename":i.name};var r={payload:{data:null,name:name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(i.name),headers:n},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){r=this.middleware(r)}return q(r)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var i=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var a=Array.from(this.files.entries()).map((function(t){var e=t[0],i=t[1];return e})).filter((function(a){return i.test(a)||a==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(a===t){return"".concat(t," (1).").concat(e)}var n=parseInt(a.split("(").pop().slice(0,-1));return"".concat(t," (").concat(n+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var i=t.name.split(".");var a=i.pop();var n=i.join(".");var r=e.getRenamedFileName(n,a);return new File([t],r,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,a,n,r,d,o,l,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:i=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,i.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,i,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!i)return[3,6];if(this.renameDuplicates){i=this.renameFiles(i)}a=0,n=i;b.label=1;case 1:if(!(a<n.length))return[3,6];r=n[a];d=O(r,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),o=d.valid,l=d.errorMessage,s=d.errorType,u=d.errorSystem;h=this.genHashName();f={uid:h,item:r,size:r.size,meta:this.metaData,uploaded:false,valid:o,error:{type:o?undefined:s,message:o?undefined:l,system_message:o?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(r.name,f);if(!(o&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(o&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!o){this.updateValueInMap(r.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:a++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,H as a,g as i}from"./p-f3e84569.js";import{i as s}from"./p-aaa7a7bd.js";import{e as o,d as l}from"./p-fc09c464.js";import{F as n}from"./p-539938fb.js";import{a as d,c as r,d as c,g as p}from"./p-f1e02e7b.js";import{h as u}from"./p-520ac4b7.js";import{g as h}from"./p-10c530d1.js";import"./p-9c3c64b9.js";import"./p-1004af75.js";const b=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;o(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest",this.badge=!1}componentWillLoad(){s(this),this.updateLabel(),this.hasStickyHeaderSlot=u(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,o(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){c(this),this.dialog&&(o(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),o(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:h("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},i=p(this.exitLangObject),s=p(this.backLangObject);return t(a,{key:"10b414a1d813be3e7f5ef8070b2c1d984c25ac44"},t("div",{key:"50ee38592ea290018fefaf87e3c8625579636ed9",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"4222c80ec11e0f6acb4eeaebf216968e42537c70",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"ef87af453a36ae15d81ed98b882798092522610c",class:"duet-slideout-icon"},t("duet-icon",{key:"540a8e1f36285104c675438d0a053ce5a8aeaa38",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&t("div",{key:"a90b2189e9b0fe8325b12db27faa55955a5aaa0b",class:"duet-slideout-badge"})),t("span",{key:"9f266762f46f74d6c627098e57315df106bf9dfe",class:"label"},t("span",{key:"60a41c1094f9ba9b51cd6e29666af8f601b8a8d2",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"4160b184173ed8e9e3e93cee11cb8b797911c350",name:"label"})),t("duet-icon",{key:"1572389c79f37ff516d2462ec7dfc9e6e740c6c8",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"fc738196e7f3d69ca2cc01db8fcbf5a7be3c39f1",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"00a3795728a3374280aaa5f2b6b97f67bac388c6",moveFocusTo:this.closeButton}),t("div",{key:"84e8cf7f05aedd1fd6df3f08cd06b66abbd1ef17",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"a462d45d835fe35e6ce1e64e9527aeae033c192f",class:"top"},t("button",{key:"5b4eb5d8985437d6701987273dbe10d55185c0cf",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${s}`,type:"button",class:{back:!0},onClick:this.onClick},t("duet-icon",{key:"b17a49853ca91e459db693d0c1dcbe861f9ee663",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"033f64eb9236b0a1cc28214b0393f3c7e62d62f2"},this.label.innerHTML),t("button",{key:"005c6e62887ae4effd15bc19266a4b72d45f11bc",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"0934dfbccb73be3827e684b1414f2a76c080b0fb",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"984c15369f3cd4a09dfd02efe5aa65effb2f453c",class:"sticky-header"},t("slot",{key:"28aea810fee655e0039f9412a5a0e979d4e0991e",name:"sticky-header"}))),t("div",{key:"d0fed891a8cd1320d5edd35d4461d1df9f1bec7d",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"859c0b8b029620561483192901482f2d7ac69fd8"})),t(n,{key:"5676e24c74f3223c83eaa6cf67d05cc93c8ea339",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';export{b as duet_slideout_panel}
|
|
4
|
+
import{r as e,h as t,H as a,g as i}from"./p-b899b000.js";import{i as s}from"./p-aaa7a7bd.js";import{e as o,d as l}from"./p-fc09c464.js";import{F as n}from"./p-214444f4.js";import{a as d,c as r,d as c,g as p}from"./p-e4d4cc92.js";import{h as u}from"./p-63a09802.js";import{g as h}from"./p-10c530d1.js";import"./p-9c3c64b9.js";import"./p-1004af75.js";const b=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;o(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest",this.badge=!1}componentWillLoad(){s(this),this.updateLabel(),this.hasStickyHeaderSlot=u(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,o(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){c(this),this.dialog&&(o(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),o(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:h("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},i=p(this.exitLangObject),s=p(this.backLangObject);return t(a,{key:"10b414a1d813be3e7f5ef8070b2c1d984c25ac44"},t("div",{key:"50ee38592ea290018fefaf87e3c8625579636ed9",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"4222c80ec11e0f6acb4eeaebf216968e42537c70",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"ef87af453a36ae15d81ed98b882798092522610c",class:"duet-slideout-icon"},t("duet-icon",{key:"540a8e1f36285104c675438d0a053ce5a8aeaa38",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&t("div",{key:"a90b2189e9b0fe8325b12db27faa55955a5aaa0b",class:"duet-slideout-badge"})),t("span",{key:"9f266762f46f74d6c627098e57315df106bf9dfe",class:"label"},t("span",{key:"60a41c1094f9ba9b51cd6e29666af8f601b8a8d2",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"4160b184173ed8e9e3e93cee11cb8b797911c350",name:"label"})),t("duet-icon",{key:"1572389c79f37ff516d2462ec7dfc9e6e740c6c8",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"fc738196e7f3d69ca2cc01db8fcbf5a7be3c39f1",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"00a3795728a3374280aaa5f2b6b97f67bac388c6",moveFocusTo:this.closeButton}),t("div",{key:"84e8cf7f05aedd1fd6df3f08cd06b66abbd1ef17",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"a462d45d835fe35e6ce1e64e9527aeae033c192f",class:"top"},t("button",{key:"5b4eb5d8985437d6701987273dbe10d55185c0cf",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${s}`,type:"button",class:{back:!0},onClick:this.onClick},t("duet-icon",{key:"b17a49853ca91e459db693d0c1dcbe861f9ee663",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"033f64eb9236b0a1cc28214b0393f3c7e62d62f2"},this.label.innerHTML),t("button",{key:"005c6e62887ae4effd15bc19266a4b72d45f11bc",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"0934dfbccb73be3827e684b1414f2a76c080b0fb",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"984c15369f3cd4a09dfd02efe5aa65effb2f453c",class:"sticky-header"},t("slot",{key:"28aea810fee655e0039f9412a5a0e979d4e0991e",name:"sticky-header"}))),t("div",{key:"d0fed891a8cd1320d5edd35d4461d1df9f1bec7d",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"859c0b8b029620561483192901482f2d7ac69fd8"})),t(n,{key:"5676e24c74f3223c83eaa6cf67d05cc93c8ea339",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';export{b as duet_slideout_panel}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as t,h as i,g as r,H as o}from"./p-f3e84569.js";import{i as a}from"./p-aaa7a7bd.js";import{c as s}from"./p-5e59e970.js";import{i as n,s as d,u as p}from"./p-a1b7f2a0.js";const u=class{constructor(i){e(this,i),this.duetStepClick=t(this,"duetStepClick",7),this.buttonId=s("DuetStepButton"),this.contentId=s("DuetStepContent"),this.handleKeyDown=e=>{this.isClickDisabled()||n(e)&&(e.preventDefault(),this.handleStepClick(e))},this.handleClick=e=>{this.isClickDisabled()||this.handleStepClick(e)},this.theme="",this.heading=void 0,this.headingLevel=void 0,this.stepIndex=void 0,this.state=void 0,this.roundedTop=!1,this.roundedBottom=!1}handleStepClick(e){this.duetStepClick.emit({originalEvent:e,component:"duet-step",stepIndex:this.stepIndex})}componentWillLoad(){a(this)}connectedCallback(){d(this)}disconnectedCallback(){p(this)}async setFocus(e={preventScroll:!0}){this.buttonElement.focus(e)}isClickDisabled(){return"complete"!==this.state}headingColor(){return"incomplete"!==this.state?"":"turva"!==this.theme?"gray-darker":"gray-dark-turva"}renderStepCounter(){return"complete"===this.state||"disabled"===this.state?i("div",{class:"duet-step-icon"},i("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'})):`${this.stepIndex+1} `}render(){return i("div",{class:{"duet-step":!0,[`is-${this.state}`]:!0,"rounded-top":this.roundedTop,"rounded-bottom":this.roundedBottom,"duet-theme-turva":"turva"===this.theme}},i("div",{class:"duet-step-heading",id:this.buttonId,role:"current"!==this.state?"button":"region","aria-current":"current"===this.state?"step":void 0,tabindex:"current"!==this.state?"0":void 0,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":("current"===this.state).toString(),"aria-controls":this.contentId,"aria-selected":("current"===this.state).toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:e=>this.buttonElement=e},i("div",{"aria-hidden":"true"},i("div",{class:"duet-step-counter"},this.renderStepCounter())),i("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),i("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),i("div",null,i("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),i("duet-spacer",{direction:"horizontal",size:"large"}),i("div",{class:"duet-step-heading-slot"},i("slot",{name:"heading-content"}))),i("div",{class:"duet-step-content-wrapper"},i("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},i("slot",null))))}get element(){return r(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-step{padding:20px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.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";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false]{cursor:pointer}.duet-step-heading:focus{outline:0}.duet-step-heading:active{opacity:0.75}:host(.user-is-tabbing) .duet-step-heading:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-step-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete .duet-step-heading:hover .duet-step-counter,.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#005f8f}.duet-theme-turva.is-complete .duet-step-heading:hover .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#9e0a26}.is-current .duet-step-heading{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading{margin-top:8px;margin-bottom:8px !important}:host(:first-of-type) .duet-step-heading{margin-top:0}:host(:last-of-type) .duet-step-heading{margin-bottom:0 !important}}.duet-step-counter{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter{width:40px;height:40px;line-height:40px}}.is-complete .duet-step-counter,.is-current .duet-step-counter,.is-disabled .duet-step-counter{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete .duet-step-counter,.duet-theme-turva.is-current .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-counter{background-color:rgb(198, 12, 48)}.is-incomplete .duet-step-counter{background-color:rgb(98, 121, 138)}.duet-theme-turva.is-incomplete .duet-step-counter{background-color:rgb(143, 147, 158)}.duet-step-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon{width:20px;height:20px}}.duet-step-icon duet-icon{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon duet-icon{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(212, 223, 229)}.duet-theme-turva .duet-step-content-wrapper{border-color:rgb(222, 224, 228)}:host(:last-of-type) .duet-step-content-wrapper{min-height:0;border:transparent}}.duet-step-content{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content{padding-bottom:28px}}.is-current .duet-step-content{display:block}.duet-step-heading-slot{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot{display:block}}';const c=class{constructor(i){e(this,i),this.duetStepChange=t(this,"duetStepChange",7),this.theme="",this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.",this.margin="auto",this.backDisabled=!1,this.selected=0}currentStepChanged(e){if(isNaN(e))throw new Error(`step must be a number. got: ${e}`);if(e<0)throw new Error(`step must be not be less than zero. got: ${e}`);if(e>this.getSteps().length)throw new Error("step must not exceed total number of steps");this.updateStepState(),setTimeout((()=>this.setStepFocus()),50)}currentStepInvokedDisable(){this.updateStepState()}onDuetStepClick(e){this.duetStepChange.emit({fromStep:this.selected,toStep:e.detail.stepIndex,component:"duet-stepper"})}componentWillLoad(){a(this)}async connectedCallback(){this.updateStepState()}getSteps(){return Array.from(this.element.querySelectorAll("duet-step"))}setStepFocus(){this.getSteps()[this.selected].setFocus()}updateStepState(){const e=this.getSteps();e.forEach(((e,t)=>{let i;i=t<this.selected?this.backDisabled?"disabled":"complete":t>this.selected?"incomplete":"current",e.theme=this.theme,e.state=i,e.stepIndex=t}));const t=function(e,t){const i={};return t.forEach((e=>{const t=e.state;i[t]||(i[t]=[]),i[t].push(e)})),i}(0,e);Object.values(t).forEach((e=>{e.forEach(((t,i)=>{t.roundedTop=0===i,t.roundedBottom=i===e.length-1}))}))}formatAnnouncement(){const e=this.getSteps(),t=(this.selected+1).toString(10),i=e.length.toString(10);return this.accessibleLive.replace("{current}",t).replace("{total}",i)}render(){return i(o,{key:"9cd2e878ee57bb71fe5fbd410f88af372dc31cde",class:{"duet-m-0":"none"===this.margin}},i("div",{key:"f97a9e7f94f0968bb70ed9def756541279783bc7",class:{"duet-stepper":!0,"duet-theme-turva":"turva"===this.theme}},i("duet-visually-hidden",{key:"c6bc42ab6164ea260b6860c4c8350f8fecc83a2f","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),i("slot",{key:"fa2a987f757693d3f287fc0707466d751d7fb8ba"})))}get element(){return r(this)}static get watchers(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}}};c.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";export{u as duet_step,c as duet_stepper}
|
|
4
|
+
import{r as e,c as t,h as i,g as r,H as o}from"./p-b899b000.js";import{i as a}from"./p-aaa7a7bd.js";import{c as s}from"./p-5e59e970.js";import{i as n,s as d,u as p}from"./p-a1b7f2a0.js";const u=class{constructor(i){e(this,i),this.duetStepClick=t(this,"duetStepClick",7),this.buttonId=s("DuetStepButton"),this.contentId=s("DuetStepContent"),this.handleKeyDown=e=>{this.isClickDisabled()||n(e)&&(e.preventDefault(),this.handleStepClick(e))},this.handleClick=e=>{this.isClickDisabled()||this.handleStepClick(e)},this.theme="",this.heading=void 0,this.headingLevel=void 0,this.stepIndex=void 0,this.state=void 0,this.roundedTop=!1,this.roundedBottom=!1}handleStepClick(e){this.duetStepClick.emit({originalEvent:e,component:"duet-step",stepIndex:this.stepIndex})}componentWillLoad(){a(this)}connectedCallback(){d(this)}disconnectedCallback(){p(this)}async setFocus(e={preventScroll:!0}){this.buttonElement.focus(e)}isClickDisabled(){return"complete"!==this.state}headingColor(){return"incomplete"!==this.state?"":"turva"!==this.theme?"gray-darker":"gray-dark-turva"}renderStepCounter(){return"complete"===this.state||"disabled"===this.state?i("div",{class:"duet-step-icon"},i("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'})):`${this.stepIndex+1} `}render(){return i("div",{class:{"duet-step":!0,[`is-${this.state}`]:!0,"rounded-top":this.roundedTop,"rounded-bottom":this.roundedBottom,"duet-theme-turva":"turva"===this.theme}},i("div",{class:"duet-step-heading",id:this.buttonId,role:"current"!==this.state?"button":"region","aria-current":"current"===this.state?"step":void 0,tabindex:"current"!==this.state?"0":void 0,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":("current"===this.state).toString(),"aria-controls":this.contentId,"aria-selected":("current"===this.state).toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:e=>this.buttonElement=e},i("div",{"aria-hidden":"true"},i("div",{class:"duet-step-counter"},this.renderStepCounter())),i("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),i("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),i("div",null,i("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),i("duet-spacer",{direction:"horizontal",size:"large"}),i("div",{class:"duet-step-heading-slot"},i("slot",{name:"heading-content"}))),i("div",{class:"duet-step-content-wrapper"},i("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},i("slot",null))))}get element(){return r(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-step{padding:20px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.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";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false]{cursor:pointer}.duet-step-heading:focus{outline:0}.duet-step-heading:active{opacity:0.75}:host(.user-is-tabbing) .duet-step-heading:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-step-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete .duet-step-heading:hover .duet-step-counter,.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#005f8f}.duet-theme-turva.is-complete .duet-step-heading:hover .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#9e0a26}.is-current .duet-step-heading{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading{margin-top:8px;margin-bottom:8px !important}:host(:first-of-type) .duet-step-heading{margin-top:0}:host(:last-of-type) .duet-step-heading{margin-bottom:0 !important}}.duet-step-counter{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter{width:40px;height:40px;line-height:40px}}.is-complete .duet-step-counter,.is-current .duet-step-counter,.is-disabled .duet-step-counter{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete .duet-step-counter,.duet-theme-turva.is-current .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-counter{background-color:rgb(198, 12, 48)}.is-incomplete .duet-step-counter{background-color:rgb(98, 121, 138)}.duet-theme-turva.is-incomplete .duet-step-counter{background-color:rgb(143, 147, 158)}.duet-step-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon{width:20px;height:20px}}.duet-step-icon duet-icon{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon duet-icon{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(212, 223, 229)}.duet-theme-turva .duet-step-content-wrapper{border-color:rgb(222, 224, 228)}:host(:last-of-type) .duet-step-content-wrapper{min-height:0;border:transparent}}.duet-step-content{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content{padding-bottom:28px}}.is-current .duet-step-content{display:block}.duet-step-heading-slot{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot{display:block}}';const c=class{constructor(i){e(this,i),this.duetStepChange=t(this,"duetStepChange",7),this.theme="",this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.",this.margin="auto",this.backDisabled=!1,this.selected=0}currentStepChanged(e){if(isNaN(e))throw new Error(`step must be a number. got: ${e}`);if(e<0)throw new Error(`step must be not be less than zero. got: ${e}`);if(e>this.getSteps().length)throw new Error("step must not exceed total number of steps");this.updateStepState(),setTimeout((()=>this.setStepFocus()),50)}currentStepInvokedDisable(){this.updateStepState()}onDuetStepClick(e){this.duetStepChange.emit({fromStep:this.selected,toStep:e.detail.stepIndex,component:"duet-stepper"})}componentWillLoad(){a(this)}async connectedCallback(){this.updateStepState()}getSteps(){return Array.from(this.element.querySelectorAll("duet-step"))}setStepFocus(){this.getSteps()[this.selected].setFocus()}updateStepState(){const e=this.getSteps();e.forEach(((e,t)=>{let i;i=t<this.selected?this.backDisabled?"disabled":"complete":t>this.selected?"incomplete":"current",e.theme=this.theme,e.state=i,e.stepIndex=t}));const t=function(e,t){const i={};return t.forEach((e=>{const t=e.state;i[t]||(i[t]=[]),i[t].push(e)})),i}(0,e);Object.values(t).forEach((e=>{e.forEach(((t,i)=>{t.roundedTop=0===i,t.roundedBottom=i===e.length-1}))}))}formatAnnouncement(){const e=this.getSteps(),t=(this.selected+1).toString(10),i=e.length.toString(10);return this.accessibleLive.replace("{current}",t).replace("{total}",i)}render(){return i(o,{key:"9cd2e878ee57bb71fe5fbd410f88af372dc31cde",class:{"duet-m-0":"none"===this.margin}},i("div",{key:"f97a9e7f94f0968bb70ed9def756541279783bc7",class:{"duet-stepper":!0,"duet-theme-turva":"turva"===this.theme}},i("duet-visually-hidden",{key:"c6bc42ab6164ea260b6860c4c8350f8fecc83a2f","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),i("slot",{key:"fa2a987f757693d3f287fc0707466d751d7fb8ba"})))}get element(){return r(this)}static get watchers(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}}};c.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";export{u as duet_step,c as duet_stepper}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-7d32c253.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,o,n,a,i,r,s,c;return{setters:[function(e){t=e.r;o=e.c;n=e.h;a=e.H;i=e.g},function(e){r=e.i},function(e){s=e.s;c=e.u}],execute:function(){var d='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;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;color:rgb(255, 255, 255) !important;background-color:rgba(4, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(4, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.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-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var u=d;var b=e("duet_cookie_consent",function(){function e(e){var n=this;t(this,e);this.duetCookieConsent=o(this,"duetCookieConsent",7);this.handleClick=function(e){e.preventDefault();n.duetCookieConsent.emit({component:"duet-cookie-consent"})};this.accessibleLabel="Hyväksyn evästeiden käytön";this.theme=""}e.prototype.handleFocusIn=function(e){var t=e.composedPath();var o=t[0];if(o!==this.element){this.element.classList.add("descendant-focused")}};e.prototype.handleFocusOut=function(){this.element.classList.remove("descendant-focused")};e.prototype.componentWillLoad=function(){r(this)};e.prototype.connectedCallback=function(){s(this)};e.prototype.disconnectedCallback=function(){c(this)};e.prototype.render=function(){return n(a,{key:"b6200017500c61af5823af477a967f1b0eb4c3e8",tabindex:"0",class:{"duet-theme-turva":this.theme==="turva"}},n("div",{key:"2a24f576b5c8d4afa80ebbd1efb1535d39057fc9",class:{"duet-cookie-consent":true,"duet-theme-turva":this.theme==="turva"}},n("div",{key:"dfce32c2435aff2e90e5ef68bf2058635c0bebba",class:"duet-cookie-consent-content"},n("div",{key:"426215741b6ae8be77620bee45f34cafcb2b0a9b",class:"expand"},n("slot",{key:"29dc8d4183c2ec992e44bb8ef38a492daefc0393"})),n("duet-spacer",{key:"aef61de5d2b9b12dec6ebac9d0b0b2f3a9709d97",size:"large",direction:"horizontal"}),n("div",{key:"660dc857d3ba6115beb552745416929a22a4d6b3"},n("duet-button",{key:"24b68101280c3a953653256d9660309efee09194",variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());b.style=u}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-7d32c253.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,o,a,r,n;return{setters:[function(e){t=e.r;o=e.h;a=e.H;r=e.g},function(e){n=e.i}],execute:function(){var i='*,*::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;height:100%}.duet-toolbar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 16px;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(0, 75, 129);text-align:center;text-decoration:none;white-space:nowrap}.duet-toolbar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-toolbar-link:focus,.duet-toolbar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-link.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.negative duet-icon{color:rgb(198, 225, 238)}.duet-toolbar-link.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-toolbar-link.duet-theme-turva.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.duet-theme-turva.negative duet-icon{color:rgb(255, 185, 190)}.duet-toolbar-link:hover{color:rgb(8, 42, 77);background:rgb(240, 247, 250)}.duet-toolbar-link:hover.negative{color:rgb(255, 255, 255);background:rgba(8, 42, 77, 0.2)}.duet-toolbar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 247, 250)}.duet-toolbar-link:hover.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active{color:rgb(8, 42, 77)}.duet-toolbar-link.active.negative{font-weight:600;color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active.negative::after{display:none}.duet-toolbar-link.active::after{position:absolute;top:auto;bottom:1px;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-toolbar-link.active::after.duet-theme-turva{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva{color:rgb(23, 28, 58)}.duet-toolbar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}';var l=i;var b=e("duet_toolbar_link",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.active=false;this.href="#";this.icon=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){n(this)};e.prototype.render=function(){var e;var t=this.variation==="negative"?"negative":"white";return o(a,{key:"f8e4c9503e468b1d2912a6c633f8eebc7118176b",role:"listitem"},o("a",{key:"9319a32f6d0731c1f473dbffd23b9f21c2d5103f",class:(e={"duet-toolbar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[t]=true,e),href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&o("duet-icon",{key:"bca12006695c45a33577fe1821081f3c07a0bb53",size:"x-small",name:this.icon,margin:"none",theme:this.theme,color:"currentColor"}),o("slot",{key:"3bfc36ea53b227990d0ab7a26ae2ea0b9caa13c7"})))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());b.style=l}}}));
|