@oiz/stzh-components 2.11.0-beta1 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-5b6fc14f.js → app-globals-909813e1.js} +2 -2
- package/dist/cjs/{app-globals-5b6fc14f.js.map → app-globals-909813e1.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actionset_4.cjs.entry.js +3 -3
- package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +4 -3
- package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cell.cjs.entry.js +4 -4
- package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js +8 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact.cjs.entry.js +7 -4
- package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/{stzh-ratio.cjs.entry.js → stzh-figure_2.cjs.entry.js} +33 -1
- package/dist/cjs/stzh-figure_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-footer.cjs.entry.js +22 -6
- package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js +9733 -0
- package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-ghettobox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +3 -6
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-hspace.cjs.entry.js → stzh-hspace_2.cjs.entry.js} +41 -6
- package/dist/cjs/stzh-hspace_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js +0 -2
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-logo.cjs.entry.js +671 -0
- package/dist/cjs/stzh-logo.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-panorama.cjs.entry.js +3 -2
- package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
- package/dist/cjs/stzh-print.cjs.entry.js +1 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-row.cjs.entry.js +4 -4
- package/dist/cjs/stzh-row.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-share.cjs.entry.js +1 -1
- package/dist/cjs/stzh-space.cjs.entry.js +5 -5
- package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +166 -15
- package/dist/cjs/stzh-sticky.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-table.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toast.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +5 -5
- package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
- package/dist/cjs/{utils-77bc0ea1.js → utils-01c0bbdd.js} +25 -1
- package/dist/cjs/utils-01c0bbdd.js.map +1 -0
- package/dist/collection/assets/i18n/de.json +19 -10
- package/dist/collection/assets/i18n/en.json +19 -10
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/stzh-button/stzh-button.css +4 -0
- package/dist/collection/components/stzh-button/stzh-button.js +3 -3
- package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +1 -0
- package/dist/collection/components/stzh-card-list/stzh-card-list.css +27 -38
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +2 -1
- package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
- package/dist/collection/components/stzh-cell/stzh-cell.js +9 -13
- package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
- package/dist/collection/components/stzh-clamp/stzh-clamp.js +9 -2
- package/dist/collection/components/stzh-clamp/stzh-clamp.js.map +1 -1
- package/dist/collection/components/stzh-contact/stzh-contact.js +25 -3
- package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +5 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
- package/dist/collection/components/stzh-figure/stzh-figure.css +5 -0
- package/dist/collection/components/stzh-footer/stzh-footer.css +1 -7
- package/dist/collection/components/stzh-footer/stzh-footer.js +21 -5
- package/dist/collection/components/stzh-footer/stzh-footer.js.map +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +2 -2
- package/dist/collection/components/stzh-gallery/assets/angle-left.svg +3 -0
- package/dist/collection/components/stzh-gallery/assets/angle-right.svg +3 -0
- package/dist/collection/components/stzh-gallery/assets/close.svg +3 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.css +839 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js +22 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.js +410 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js +2 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +163 -0
- package/dist/collection/components/stzh-header/stzh-header.css +19 -1
- package/dist/collection/components/stzh-header/stzh-header.js +1 -4
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-header/stzh-header.stories.js +5 -3
- package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +13 -18
- package/dist/collection/components/stzh-hspace/stzh-hspace.js.map +1 -1
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +0 -38
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
- package/dist/collection/components/stzh-logo/assets/aoz.svg +15 -0
- package/dist/collection/components/stzh-logo/assets/pkzh.svg +207 -0
- package/dist/collection/components/stzh-logo/assets/stzh-default.svg +166 -0
- package/dist/collection/components/stzh-logo/assets/uvz.svg +85 -0
- package/dist/collection/components/stzh-logo/assets/vbz.svg +147 -0
- package/dist/collection/components/stzh-logo/stzh-logo.css +134 -0
- package/dist/collection/components/stzh-logo/stzh-logo.e2e.js +19 -0
- package/dist/collection/components/stzh-logo/stzh-logo.e2e.js.map +1 -0
- package/dist/collection/components/stzh-logo/stzh-logo.js +72 -0
- package/dist/collection/components/stzh-logo/stzh-logo.js.map +1 -0
- package/dist/collection/components/stzh-logo/stzh-logo.stories.js +51 -0
- package/dist/collection/components/stzh-panorama/stzh-panorama.js +21 -2
- package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +3 -2
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
- package/dist/collection/components/stzh-row/stzh-row.js +9 -13
- package/dist/collection/components/stzh-row/stzh-row.js.map +1 -1
- package/dist/collection/components/stzh-show/stzh-show.js +5 -5
- package/dist/collection/components/stzh-show/stzh-show.js.map +1 -1
- package/dist/collection/components/stzh-space/stzh-space.js +13 -18
- package/dist/collection/components/stzh-space/stzh-space.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +28 -17
- package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js +1 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +186 -14
- package/dist/collection/components/stzh-sticky/stzh-sticky.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +88 -44
- package/dist/collection/components/stzh-text/stzh-text.css +19 -0
- package/dist/collection/components/stzh-text/stzh-text.js +1 -1
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +13 -18
- package/dist/collection/components/stzh-vspace/stzh-vspace.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/patterns/media/media.e2e.js +3 -1
- package/dist/collection/patterns/media/media.e2e.js.map +1 -1
- package/dist/collection/patterns/subpages/subpages.e2e.js +1 -0
- package/dist/collection/patterns/subpages/subpages.e2e.js.map +1 -1
- package/dist/collection/utils/utils.js +22 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-button2.js +2 -2
- package/dist/components/stzh-button2.js.map +1 -1
- package/dist/components/stzh-card-list2.js +1 -1
- package/dist/components/stzh-card-list2.js.map +1 -1
- package/dist/components/stzh-card2.js +1 -1
- package/dist/components/stzh-card2.js.map +1 -1
- package/dist/components/stzh-carousel2.js +3 -2
- package/dist/components/stzh-carousel2.js.map +1 -1
- package/dist/components/stzh-cell.js +9 -9
- package/dist/components/stzh-cell.js.map +1 -1
- package/dist/components/stzh-clamp2.js +8 -1
- package/dist/components/stzh-clamp2.js.map +1 -1
- package/dist/components/stzh-contact.js +7 -3
- package/dist/components/stzh-contact.js.map +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-figure2.js +1 -1
- package/dist/components/stzh-figure2.js.map +1 -1
- package/dist/components/stzh-footer.js +21 -5
- package/dist/components/stzh-footer.js.map +1 -1
- package/dist/components/stzh-gallery.d.ts +11 -0
- package/dist/components/stzh-gallery.js +9808 -0
- package/dist/components/stzh-gallery.js.map +1 -0
- package/dist/components/stzh-header.js +2 -5
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-hspace.js +1 -57
- package/dist/components/stzh-hspace.js.map +1 -1
- package/dist/{esm/stzh-hspace.entry.js → components/stzh-hspace2.js} +41 -13
- package/dist/components/stzh-hspace2.js.map +1 -0
- package/dist/components/stzh-imagecomparison.js +0 -4
- package/dist/components/stzh-imagecomparison.js.map +1 -1
- package/dist/components/stzh-logo.d.ts +11 -0
- package/dist/components/stzh-logo.js +687 -0
- package/dist/components/stzh-logo.js.map +1 -0
- package/dist/components/stzh-panorama.js +4 -2
- package/dist/components/stzh-panorama.js.map +1 -1
- package/dist/components/stzh-progressbar-item2.js +2 -1
- package/dist/components/stzh-progressbar-item2.js.map +1 -1
- package/dist/components/stzh-row.js +9 -9
- package/dist/components/stzh-row.js.map +1 -1
- package/dist/components/stzh-show.js +1 -59
- package/dist/components/stzh-show.js.map +1 -1
- package/dist/{esm/stzh-show.entry.js → components/stzh-show2.js} +34 -10
- package/dist/components/stzh-show2.js.map +1 -0
- package/dist/components/stzh-space.js +13 -13
- package/dist/components/stzh-space.js.map +1 -1
- package/dist/components/stzh-sticky.js +171 -17
- package/dist/components/stzh-sticky.js.map +1 -1
- package/dist/components/stzh-text2.js +1 -1
- package/dist/components/stzh-text2.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vspace.js +13 -13
- package/dist/components/stzh-vspace.js.map +1 -1
- package/dist/components/utils.js +23 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
- package/dist/esm/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-actionset_4.entry.js +3 -3
- package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +3 -3
- package/dist/esm/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm/stzh-carousel.entry.js +4 -3
- package/dist/esm/stzh-carousel.entry.js.map +1 -1
- package/dist/esm/stzh-cell.entry.js +4 -4
- package/dist/esm/stzh-cell.entry.js.map +1 -1
- package/dist/esm/stzh-checkbox.entry.js +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm/stzh-chip_2.entry.js +8 -1
- package/dist/esm/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact.entry.js +7 -4
- package/dist/esm/stzh-contact.entry.js.map +1 -1
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/{stzh-ratio.entry.js → stzh-figure_2.entry.js} +33 -2
- package/dist/esm/stzh-figure_2.entry.js.map +1 -0
- package/dist/esm/stzh-footer.entry.js +22 -6
- package/dist/esm/stzh-footer.entry.js.map +1 -1
- package/dist/esm/stzh-gallery.entry.js +9729 -0
- package/dist/esm/stzh-gallery.entry.js.map +1 -0
- package/dist/esm/stzh-ghettobox.entry.js +1 -1
- package/dist/esm/stzh-header.entry.js +3 -6
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-hspace_2.entry.js +67 -0
- package/dist/esm/stzh-hspace_2.entry.js.map +1 -0
- package/dist/esm/stzh-imagecomparison.entry.js +0 -2
- package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +1 -1
- package/dist/esm/stzh-logo.entry.js +667 -0
- package/dist/esm/stzh-logo.entry.js.map +1 -0
- package/dist/esm/stzh-menu_2.entry.js +1 -1
- package/dist/esm/stzh-pagebottom.entry.js +1 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-panorama.entry.js +3 -2
- package/dist/esm/stzh-panorama.entry.js.map +1 -1
- package/dist/esm/stzh-popover.entry.js +1 -1
- package/dist/esm/stzh-print.entry.js +1 -1
- package/dist/esm/stzh-progressbar-item.entry.js +2 -1
- package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-row.entry.js +4 -4
- package/dist/esm/stzh-row.entry.js.map +1 -1
- package/dist/esm/stzh-scrollup.entry.js +1 -1
- package/dist/esm/stzh-share.entry.js +1 -1
- package/dist/esm/stzh-space.entry.js +5 -5
- package/dist/esm/stzh-space.entry.js.map +1 -1
- package/dist/esm/stzh-sticky.entry.js +166 -15
- package/dist/esm/stzh-sticky.entry.js.map +1 -1
- package/dist/esm/stzh-table.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js.map +1 -1
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-timeline-item.entry.js +1 -1
- package/dist/esm/stzh-toast.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +1 -1
- package/dist/esm/stzh-tooltip.entry.js +1 -1
- package/dist/esm/stzh-upload.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +5 -5
- package/dist/esm/stzh-vspace.entry.js.map +1 -1
- package/dist/esm/{utils-107fad0f.js → utils-8bb4c3c6.js} +24 -2
- package/dist/esm/utils-8bb4c3c6.js.map +1 -0
- package/dist/esm-es5/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
- package/dist/esm-es5/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset_4.entry.js +2 -2
- package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-audio.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/esm-es5/stzh-contact.entry.js +1 -1
- package/dist/esm-es5/stzh-contact.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-details.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-figure_2.entry.js +2 -0
- package/dist/esm-es5/stzh-figure_2.entry.js.map +1 -0
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
- package/dist/esm-es5/stzh-gallery.entry.js +10 -0
- package/dist/esm-es5/stzh-gallery.entry.js.map +1 -0
- package/dist/esm-es5/stzh-ghettobox.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js.map +1 -1
- package/dist/esm-es5/stzh-hspace_2.entry.js +2 -0
- package/dist/esm-es5/stzh-hspace_2.entry.js.map +1 -0
- package/dist/esm-es5/stzh-imagecomparison.entry.js +1 -1
- package/dist/esm-es5/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-logo.entry.js +2 -0
- package/dist/esm-es5/stzh-logo.entry.js.map +1 -0
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-panorama.entry.js +1 -1
- package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-print.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js.map +1 -1
- package/dist/esm-es5/stzh-scrollup.entry.js +1 -1
- package/dist/esm-es5/stzh-share.entry.js +1 -1
- package/dist/esm-es5/stzh-space.entry.js +1 -1
- package/dist/esm-es5/stzh-space.entry.js.map +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js.map +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-text.entry.js +1 -1
- package/dist/esm-es5/stzh-text.entry.js.map +1 -1
- package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
- package/dist/esm-es5/stzh-timeline-item.entry.js +1 -1
- package/dist/esm-es5/stzh-toast.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
- package/dist/esm-es5/utils-8bb4c3c6.js +2 -0
- package/dist/esm-es5/utils-8bb4c3c6.js.map +1 -0
- package/dist/stzh-components/assets/i18n/de.json +19 -10
- package/dist/stzh-components/assets/i18n/en.json +19 -10
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-a509436d.entry.js → p-0164f9d1.entry.js} +2 -2
- package/dist/stzh-components/p-0164f9d1.entry.js.map +1 -0
- package/dist/stzh-components/{p-1f1910e4.system.entry.js → p-0684cfac.system.entry.js} +2 -2
- package/dist/stzh-components/{p-1f1910e4.system.entry.js.map → p-0684cfac.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-07819ba5.entry.js +2 -0
- package/dist/stzh-components/p-07819ba5.entry.js.map +1 -0
- package/dist/stzh-components/{p-6b9365fe.system.entry.js → p-0b4cba00.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b1fbe1d1.system.entry.js → p-0b8a15cc.system.entry.js} +2 -2
- package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
- package/dist/stzh-components/p-0c049996.system.entry.js +2 -0
- package/dist/stzh-components/p-0c049996.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-9bd8613c.system.entry.js → p-0c2381f6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-1e7376c9.system.js → p-0c972915.system.js} +2 -2
- package/dist/stzh-components/{p-1e7376c9.system.js.map → p-0c972915.system.js.map} +1 -1
- package/dist/stzh-components/p-0d9aa70c.entry.js +2 -0
- package/dist/stzh-components/p-0d9aa70c.entry.js.map +1 -0
- package/dist/stzh-components/{p-55a00af2.entry.js → p-10361297.entry.js} +2 -2
- package/dist/stzh-components/p-1095d872.system.entry.js +2 -0
- package/dist/stzh-components/p-1095d872.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-26f37848.entry.js → p-11031613.entry.js} +2 -2
- package/dist/stzh-components/{p-062360a4.system.entry.js → p-153f8f3f.system.entry.js} +2 -2
- package/dist/stzh-components/p-15980af0.entry.js +10 -0
- package/dist/stzh-components/p-15980af0.entry.js.map +1 -0
- package/dist/stzh-components/{p-fbf4ee43.system.entry.js → p-1834deba.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c1fa2872.system.entry.js → p-188dd49d.system.entry.js} +2 -2
- package/dist/stzh-components/{p-68e15c10.system.entry.js → p-1a49012e.system.entry.js} +2 -2
- package/dist/stzh-components/{p-2565c905.entry.js → p-1c9eee3d.entry.js} +2 -2
- package/dist/stzh-components/{p-badd636f.system.entry.js → p-24c0e33a.system.entry.js} +2 -2
- package/dist/stzh-components/{p-badd636f.system.entry.js.map → p-24c0e33a.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-2547ec12.system.entry.js +2 -0
- package/dist/stzh-components/p-2547ec12.system.entry.js.map +1 -0
- package/dist/stzh-components/p-287edde1.system.entry.js +2 -0
- package/dist/stzh-components/p-287edde1.system.entry.js.map +1 -0
- package/dist/stzh-components/p-2a3fdd90.system.entry.js +2 -0
- package/dist/stzh-components/p-2a3fdd90.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-af5151b6.entry.js → p-2abcca01.entry.js} +2 -2
- package/dist/stzh-components/p-2abcca01.entry.js.map +1 -0
- package/dist/stzh-components/{p-97b0b868.system.entry.js → p-2ff7c5db.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e0e5d06f.system.entry.js → p-3154e4da.system.entry.js} +2 -2
- package/dist/stzh-components/{p-754f37ee.entry.js → p-34add4af.entry.js} +2 -2
- package/dist/stzh-components/{p-b28e5fd4.system.entry.js → p-34ff6606.system.entry.js} +2 -2
- package/dist/stzh-components/{p-46ccadd5.system.entry.js → p-3ab3a5a7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-dd43141d.system.entry.js → p-3ceef7dd.system.entry.js} +2 -2
- package/dist/stzh-components/p-3df3f45c.entry.js +2 -0
- package/dist/stzh-components/p-3df3f45c.entry.js.map +1 -0
- package/dist/stzh-components/p-428eacce.system.js +2 -0
- package/dist/stzh-components/{p-044b80d8.system.js.map → p-428eacce.system.js.map} +1 -1
- package/dist/stzh-components/{p-e42dbd26.system.entry.js → p-42e25ae1.system.entry.js} +3 -3
- package/dist/stzh-components/p-42e25ae1.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-38ebb72d.system.entry.js → p-42f483f6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-508f6d3d.entry.js → p-488c5c8a.entry.js} +2 -2
- package/dist/stzh-components/{p-a5b55401.entry.js → p-4ad49ece.entry.js} +2 -2
- package/dist/stzh-components/{p-f8b5c7a8.entry.js → p-4c091b1b.entry.js} +2 -2
- package/dist/stzh-components/{p-66965853.entry.js → p-4cb041d5.entry.js} +2 -2
- package/dist/stzh-components/{p-9a22e78f.system.entry.js → p-509f90d0.system.entry.js} +2 -2
- package/dist/stzh-components/p-509f90d0.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-ff2029b6.entry.js → p-5342d3ae.entry.js} +2 -2
- package/dist/stzh-components/{p-ff2029b6.entry.js.map → p-5342d3ae.entry.js.map} +1 -1
- package/dist/stzh-components/{p-243f3d8c.system.entry.js → p-54a1fdcc.system.entry.js} +2 -2
- package/dist/stzh-components/p-54dbcd0e.system.entry.js +11 -0
- package/dist/stzh-components/p-54dbcd0e.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-1f6fe9f1.entry.js → p-5cea16ad.entry.js} +2 -2
- package/dist/stzh-components/{p-1f6fe9f1.entry.js.map → p-5cea16ad.entry.js.map} +1 -1
- package/dist/stzh-components/{p-b218ae94.system.entry.js → p-5d02c5e0.system.entry.js} +2 -2
- package/dist/stzh-components/{p-01436630.system.entry.js → p-5e861cb6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-45e98de0.entry.js → p-64845b66.entry.js} +2 -2
- package/dist/stzh-components/{p-45e98de0.entry.js.map → p-64845b66.entry.js.map} +1 -1
- package/dist/stzh-components/{p-95e4bc28.entry.js → p-68feffea.entry.js} +2 -2
- package/dist/stzh-components/{p-a6938665.entry.js → p-6a91ac35.entry.js} +2 -2
- package/dist/stzh-components/p-6a91ac35.entry.js.map +1 -0
- package/dist/stzh-components/{p-93c73a62.entry.js → p-6b9b037a.entry.js} +2 -2
- package/dist/stzh-components/{p-93c73a62.entry.js.map → p-6b9b037a.entry.js.map} +1 -1
- package/dist/stzh-components/{p-98357b67.system.entry.js → p-6e979c9c.system.entry.js} +2 -2
- package/dist/stzh-components/{p-98357b67.system.entry.js.map → p-6e979c9c.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-d5b2327f.system.entry.js → p-709514fc.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c9f0cf53.entry.js → p-73442cf1.entry.js} +2 -2
- package/dist/stzh-components/{p-fd41d303.entry.js → p-7873a639.entry.js} +2 -2
- package/dist/stzh-components/p-7c2aa5e8.entry.js +2 -0
- package/dist/stzh-components/{p-41b2f989.entry.js.map → p-7c2aa5e8.entry.js.map} +1 -1
- package/dist/stzh-components/{p-a7ef9c99.entry.js → p-80851e3d.entry.js} +2 -2
- package/dist/stzh-components/p-80f1f324.system.entry.js +2 -0
- package/dist/stzh-components/p-80f1f324.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-e1bada00.entry.js → p-83a216d7.entry.js} +2 -2
- package/dist/stzh-components/{p-bd5b6832.system.entry.js → p-88adaf4b.system.entry.js} +2 -2
- package/dist/stzh-components/{p-34a359dd.entry.js → p-88e6248e.entry.js} +2 -2
- package/dist/stzh-components/{p-e4e8b73a.system.entry.js → p-8c1c75a7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e4e8b73a.system.entry.js.map → p-8c1c75a7.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-7e76c84a.entry.js → p-91e7dae0.entry.js} +2 -2
- package/dist/stzh-components/{p-a8c669b2.system.entry.js → p-97704eb0.system.entry.js} +2 -2
- package/dist/stzh-components/p-9d0fedfe.system.entry.js +2 -0
- package/dist/stzh-components/{p-8de3379f.system.entry.js.map → p-9d0fedfe.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-67a483cf.system.entry.js → p-a0b350c2.system.entry.js} +2 -2
- package/dist/stzh-components/{p-a4c5ef8d.entry.js → p-a312a505.entry.js} +2 -2
- package/dist/stzh-components/p-a60e85c8.system.entry.js +2 -0
- package/dist/stzh-components/p-a60e85c8.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-99ec62a5.entry.js → p-a94dd79b.entry.js} +2 -2
- package/dist/stzh-components/{p-99ec62a5.entry.js.map → p-a94dd79b.entry.js.map} +1 -1
- package/dist/stzh-components/p-aa337ae2.entry.js +2 -0
- package/dist/stzh-components/p-aa337ae2.entry.js.map +1 -0
- package/dist/stzh-components/{p-80e08833.entry.js → p-abbcda3b.entry.js} +2 -2
- package/dist/stzh-components/p-ae8eaf99.entry.js +2 -0
- package/dist/stzh-components/p-ae8eaf99.entry.js.map +1 -0
- package/dist/stzh-components/{p-793a530d.entry.js → p-af33b013.entry.js} +2 -2
- package/dist/stzh-components/{p-19b7b131.entry.js → p-afb2885a.entry.js} +2 -2
- package/dist/stzh-components/p-b305ec22.entry.js +2 -0
- package/dist/stzh-components/p-b305ec22.entry.js.map +1 -0
- package/dist/stzh-components/p-b6fed7ff.entry.js +2 -0
- package/dist/stzh-components/p-b6fed7ff.entry.js.map +1 -0
- package/dist/stzh-components/{p-cc10a5c5.system.entry.js → p-bb2fe16f.system.entry.js} +2 -2
- package/dist/stzh-components/p-bb2fe16f.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-7a7eb40f.system.entry.js → p-c143a3f0.system.entry.js} +2 -2
- package/dist/stzh-components/{p-0a57145c.system.entry.js → p-c1ab5b6a.system.entry.js} +2 -2
- package/dist/stzh-components/p-c1ab5b6a.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-fb70c624.system.entry.js → p-c41d9fa7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-ebd47e41.entry.js → p-c5a4865c.entry.js} +2 -2
- package/dist/stzh-components/{p-7007044a.entry.js → p-c7a068ee.entry.js} +2 -2
- package/dist/stzh-components/{p-a00db16c.js → p-ca32a687.js} +2 -2
- package/dist/stzh-components/{p-a00db16c.js.map → p-ca32a687.js.map} +1 -1
- package/dist/stzh-components/{p-ae44fab0.entry.js → p-cb906ad4.entry.js} +2 -2
- package/dist/stzh-components/{p-70461b7e.entry.js → p-cc260e20.entry.js} +2 -2
- package/dist/stzh-components/p-cc260e20.entry.js.map +1 -0
- package/dist/stzh-components/p-cfd1eed9.system.entry.js +2 -0
- package/dist/stzh-components/p-cfd1eed9.system.entry.js.map +1 -0
- package/dist/stzh-components/p-cfdb06e4.js +2 -0
- package/dist/stzh-components/p-cfdb06e4.js.map +1 -0
- package/dist/stzh-components/{p-54c0340b.entry.js → p-d0678cbb.entry.js} +2 -2
- package/dist/stzh-components/p-d22fbf2e.system.entry.js +2 -0
- package/dist/stzh-components/p-d22fbf2e.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-42138c55.entry.js → p-d362dc3a.entry.js} +2 -2
- package/dist/stzh-components/{p-3ac03d9a.entry.js → p-ded183e7.entry.js} +2 -2
- package/dist/stzh-components/{p-58a6ed19.system.entry.js → p-df322682.system.entry.js} +2 -2
- package/dist/stzh-components/{p-d50495d5.entry.js → p-e24cfa3e.entry.js} +2 -2
- package/dist/stzh-components/{p-ffe3fbab.entry.js → p-e3cd443b.entry.js} +2 -2
- package/dist/stzh-components/{p-e58d6819.system.entry.js → p-e61f6afc.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e58d6819.system.entry.js.map → p-e61f6afc.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-f16e40f8.system.entry.js → p-e670eba0.system.entry.js} +2 -2
- package/dist/stzh-components/p-ed2896cd.entry.js +2 -0
- package/dist/stzh-components/p-ed2896cd.entry.js.map +1 -0
- package/dist/stzh-components/{p-3ccf5529.system.entry.js → p-f159a561.system.entry.js} +2 -2
- package/dist/stzh-components/p-f6662aa5.entry.js +2 -0
- package/dist/stzh-components/p-f6662aa5.entry.js.map +1 -0
- package/dist/stzh-components/p-f73af272.entry.js +8 -0
- package/dist/stzh-components/p-f73af272.entry.js.map +1 -0
- package/dist/stzh-components/{p-75beb9f8.system.entry.js → p-f8511c39.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b1851b3e.entry.js → p-f91187c8.entry.js} +2 -2
- package/dist/stzh-components/p-f9cb0fcd.system.js +2 -0
- package/dist/stzh-components/p-f9cb0fcd.system.js.map +1 -0
- package/dist/stzh-components/{p-4e32ee7a.system.entry.js → p-ff1d24e2.system.entry.js} +2 -2
- package/dist/stzh-components/{p-61589824.system.entry.js → p-ff356dc8.system.entry.js} +2 -2
- package/dist/stzh-components/{p-9145f8d9.system.entry.js → p-ff9a0645.system.entry.js} +2 -2
- package/dist/stzh-components/p-ff9a0645.system.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-gallery/stzh-gallery.localization.d.ts +10 -0
- package/dist/types/components.d.ts +101 -24
- package/dist/types/utils/utils.d.ts +5 -0
- package/dist/vscode-data.json +102 -13
- package/package.json +2 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +0 -40
- package/dist/cjs/stzh-figure.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-show.cjs.entry.js +0 -43
- package/dist/cjs/stzh-show.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-77bc0ea1.js.map +0 -1
- package/dist/esm/stzh-figure.entry.js +0 -36
- package/dist/esm/stzh-figure.entry.js.map +0 -1
- package/dist/esm/stzh-hspace.entry.js.map +0 -1
- package/dist/esm/stzh-ratio.entry.js.map +0 -1
- package/dist/esm/stzh-show.entry.js.map +0 -1
- package/dist/esm/utils-107fad0f.js.map +0 -1
- package/dist/esm-es5/stzh-figure.entry.js +0 -2
- package/dist/esm-es5/stzh-figure.entry.js.map +0 -1
- package/dist/esm-es5/stzh-hspace.entry.js +0 -2
- package/dist/esm-es5/stzh-hspace.entry.js.map +0 -1
- package/dist/esm-es5/stzh-ratio.entry.js +0 -2
- package/dist/esm-es5/stzh-ratio.entry.js.map +0 -1
- package/dist/esm-es5/stzh-show.entry.js +0 -2
- package/dist/esm-es5/stzh-show.entry.js.map +0 -1
- package/dist/esm-es5/utils-107fad0f.js +0 -2
- package/dist/esm-es5/utils-107fad0f.js.map +0 -1
- package/dist/stzh-components/p-004b3030.system.entry.js +0 -2
- package/dist/stzh-components/p-004b3030.system.entry.js.map +0 -1
- package/dist/stzh-components/p-044b80d8.system.js +0 -2
- package/dist/stzh-components/p-0a57145c.system.entry.js.map +0 -1
- package/dist/stzh-components/p-0c8d651e.entry.js +0 -2
- package/dist/stzh-components/p-0c8d651e.entry.js.map +0 -1
- package/dist/stzh-components/p-0e5d39e2.system.entry.js +0 -2
- package/dist/stzh-components/p-0e5d39e2.system.entry.js.map +0 -1
- package/dist/stzh-components/p-0ed6eafb.system.entry.js +0 -2
- package/dist/stzh-components/p-0ed6eafb.system.entry.js.map +0 -1
- package/dist/stzh-components/p-168f0faa.entry.js +0 -8
- package/dist/stzh-components/p-168f0faa.entry.js.map +0 -1
- package/dist/stzh-components/p-18bf2b21.system.entry.js +0 -2
- package/dist/stzh-components/p-18bf2b21.system.entry.js.map +0 -1
- package/dist/stzh-components/p-2452dd71.system.entry.js +0 -2
- package/dist/stzh-components/p-2452dd71.system.entry.js.map +0 -1
- package/dist/stzh-components/p-330bdf15.system.entry.js +0 -2
- package/dist/stzh-components/p-330bdf15.system.entry.js.map +0 -1
- package/dist/stzh-components/p-341c1c6c.entry.js +0 -2
- package/dist/stzh-components/p-341c1c6c.entry.js.map +0 -1
- package/dist/stzh-components/p-41b2f989.entry.js +0 -2
- package/dist/stzh-components/p-52e9dbe5.entry.js +0 -2
- package/dist/stzh-components/p-52e9dbe5.entry.js.map +0 -1
- package/dist/stzh-components/p-53e44e89.system.js +0 -2
- package/dist/stzh-components/p-53e44e89.system.js.map +0 -1
- package/dist/stzh-components/p-645bbb42.entry.js +0 -2
- package/dist/stzh-components/p-645bbb42.entry.js.map +0 -1
- package/dist/stzh-components/p-70461b7e.entry.js.map +0 -1
- package/dist/stzh-components/p-74e07267.entry.js +0 -2
- package/dist/stzh-components/p-74e07267.entry.js.map +0 -1
- package/dist/stzh-components/p-7b044a55.entry.js +0 -2
- package/dist/stzh-components/p-7b044a55.entry.js.map +0 -1
- package/dist/stzh-components/p-7eaed674.system.entry.js +0 -2
- package/dist/stzh-components/p-7eaed674.system.entry.js.map +0 -1
- package/dist/stzh-components/p-8de3379f.system.entry.js +0 -2
- package/dist/stzh-components/p-9145f8d9.system.entry.js.map +0 -1
- package/dist/stzh-components/p-9a22e78f.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a27c6c02.system.entry.js +0 -2
- package/dist/stzh-components/p-a27c6c02.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a509436d.entry.js.map +0 -1
- package/dist/stzh-components/p-a6938665.entry.js.map +0 -1
- package/dist/stzh-components/p-a999bb48.entry.js +0 -2
- package/dist/stzh-components/p-a999bb48.entry.js.map +0 -1
- package/dist/stzh-components/p-af5151b6.entry.js.map +0 -1
- package/dist/stzh-components/p-ba8c574b.js +0 -2
- package/dist/stzh-components/p-ba8c574b.js.map +0 -1
- package/dist/stzh-components/p-c2fcd668.entry.js +0 -2
- package/dist/stzh-components/p-c2fcd668.entry.js.map +0 -1
- package/dist/stzh-components/p-cc10a5c5.system.entry.js.map +0 -1
- package/dist/stzh-components/p-d18665b6.system.entry.js +0 -2
- package/dist/stzh-components/p-d18665b6.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e42dbd26.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e6f1bae9.system.entry.js +0 -2
- package/dist/stzh-components/p-e6f1bae9.system.entry.js.map +0 -1
- package/dist/stzh-components/p-ebaf8f26.entry.js +0 -2
- package/dist/stzh-components/p-ebaf8f26.entry.js.map +0 -1
- package/dist/stzh-components/p-ef274d0c.entry.js +0 -2
- package/dist/stzh-components/p-ef274d0c.entry.js.map +0 -1
- /package/dist/stzh-components/{p-6b9365fe.system.entry.js.map → p-0b4cba00.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1fbe1d1.system.entry.js.map → p-0b8a15cc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9bd8613c.system.entry.js.map → p-0c2381f6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-55a00af2.entry.js.map → p-10361297.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-26f37848.entry.js.map → p-11031613.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-062360a4.system.entry.js.map → p-153f8f3f.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fbf4ee43.system.entry.js.map → p-1834deba.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c1fa2872.system.entry.js.map → p-188dd49d.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-68e15c10.system.entry.js.map → p-1a49012e.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2565c905.entry.js.map → p-1c9eee3d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-97b0b868.system.entry.js.map → p-2ff7c5db.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e0e5d06f.system.entry.js.map → p-3154e4da.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-754f37ee.entry.js.map → p-34add4af.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b28e5fd4.system.entry.js.map → p-34ff6606.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-46ccadd5.system.entry.js.map → p-3ab3a5a7.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dd43141d.system.entry.js.map → p-3ceef7dd.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-38ebb72d.system.entry.js.map → p-42f483f6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-508f6d3d.entry.js.map → p-488c5c8a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a5b55401.entry.js.map → p-4ad49ece.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f8b5c7a8.entry.js.map → p-4c091b1b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-66965853.entry.js.map → p-4cb041d5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-243f3d8c.system.entry.js.map → p-54a1fdcc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b218ae94.system.entry.js.map → p-5d02c5e0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-01436630.system.entry.js.map → p-5e861cb6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-95e4bc28.entry.js.map → p-68feffea.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d5b2327f.system.entry.js.map → p-709514fc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c9f0cf53.entry.js.map → p-73442cf1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fd41d303.entry.js.map → p-7873a639.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a7ef9c99.entry.js.map → p-80851e3d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e1bada00.entry.js.map → p-83a216d7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bd5b6832.system.entry.js.map → p-88adaf4b.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-34a359dd.entry.js.map → p-88e6248e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7e76c84a.entry.js.map → p-91e7dae0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a8c669b2.system.entry.js.map → p-97704eb0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-67a483cf.system.entry.js.map → p-a0b350c2.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a4c5ef8d.entry.js.map → p-a312a505.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-80e08833.entry.js.map → p-abbcda3b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-793a530d.entry.js.map → p-af33b013.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-19b7b131.entry.js.map → p-afb2885a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7a7eb40f.system.entry.js.map → p-c143a3f0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fb70c624.system.entry.js.map → p-c41d9fa7.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ebd47e41.entry.js.map → p-c5a4865c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7007044a.entry.js.map → p-c7a068ee.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ae44fab0.entry.js.map → p-cb906ad4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-54c0340b.entry.js.map → p-d0678cbb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-42138c55.entry.js.map → p-d362dc3a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3ac03d9a.entry.js.map → p-ded183e7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-58a6ed19.system.entry.js.map → p-df322682.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d50495d5.entry.js.map → p-e24cfa3e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ffe3fbab.entry.js.map → p-e3cd443b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f16e40f8.system.entry.js.map → p-e670eba0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3ccf5529.system.entry.js.map → p-f159a561.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-75beb9f8.system.entry.js.map → p-f8511c39.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1851b3e.entry.js.map → p-f91187c8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4e32ee7a.system.entry.js.map → p-ff1d24e2.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-61589824.system.entry.js.map → p-ff356dc8.system.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n["throw"](t))}catch(t){s(t)}}function l(t){t.done?i(t.value):o(t.value).then(r,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(i=0)),i)try{if(n=1,o&&(s=a[0]&2?o["return"]:a[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,a[1])).done)return s;if(o=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];o=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-290fcb28.system.js","./p-5b63a767.system.js","./p-cc9e64a4.system.js","./p-53e44e89.system.js","./p-774595ba.system.js"],(function(t){"use strict";var e,i,n,o,s,r,a,l,h,m;return{setters:[function(t){e=t.r;i=t.c;n=t.h;o=t.a;s=t.g},function(t){r=t.w},function(t){a=t.s;l=t.a;h=t.b},function(t){m=t.h},function(){}],execute:function(){var c=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}:host{--trigger-size:1.125rem;--icon-size:var(--stzh-icon-size-xsmall)}:host ::slotted(stzh-timeline){margin-left:calc(var(--stzh-space-xxxlarge) / -1);margin-right:calc(var(--stzh-space-xxxlarge) / -1);margin-top:calc(var(--stzh-space-xlarge) / -1 + var(--stzh-space-medium));margin-bottom:calc(var(--stzh-space-xlarge) / -1)}@media screen and (min-width: 1024px){:host ::slotted(stzh-timeline){margin-top:calc(var(--stzh-space-xxlarge) / -1 + var(--stzh-space-medium));margin-bottom:calc(var(--stzh-space-xxlarge) / -1)}}@media screen and (min-width: 1260px){:host ::slotted(stzh-timeline){margin-top:calc(var(--stzh-space-xxxlarge) / -1 + var(--stzh-space-medium));margin-bottom:calc(var(--stzh-space-xxxlarge) / -1)}}:host ::slotted(stzh-icon),.stzh-timeline-item__bullet-icon{--size:var(--icon-size)}.stzh-timeline-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;}.stzh-timeline-item__heading{position:relative;margin:0;padding-top:var(--stzh-space-xxsmall)}.stzh-timeline-item__button{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-heading-line-height, var(--stzh-font-milli-heading-line-height));letter-spacing:var(--stzh-font-curve-p1-default-heading-letter-spacing);font-family:inherit;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;padding:0;border:none;display:-ms-flexbox;display:flex;color:var(--stzh-base-lead-color);text-align:left;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:default}@media screen and (min-width: 1024px){.stzh-timeline-item__button{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-heading-letter-spacing)}}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__button{-webkit-transition:none;transition:none}}.stzh-timeline-item__button,.stzh-timeline-item__content-inner{padding-left:var(--stzh-space-xxxlarge)}.stzh-timeline-item__button-text{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);-ms-flex-positive:1;flex-grow:1}.stzh-timeline-item__button-icon{position:relative;display:block;width:var(--trigger-size);height:var(--trigger-size);margin-top:var(--stzh-space-xxsmall);margin-left:var(--stzh-space-medium)}.stzh-timeline-item__button-icon::before,.stzh-timeline-item__button-icon::after{position:absolute;top:50%;left:50%;content:"";display:block;width:var(--trigger-size);height:0.0625rem;-webkit-transition:-webkit-transform 0.5s;transition:-webkit-transform 0.5s;transition:transform 0.5s;transition:transform 0.5s, -webkit-transform 0.5s;-webkit-transform-origin:top left;transform-origin:top left;background-color:currentColor}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item__button-icon::before,.stzh-timeline-item__button-icon::after{background-color:CanvasText}}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__button-icon::before,.stzh-timeline-item__button-icon::after{-webkit-transition:none;transition:none}}.stzh-timeline-item__button-icon::before{-webkit-transform:rotate(180deg) translate(-50%, -50%);transform:rotate(180deg) translate(-50%, -50%)}.stzh-timeline-item__button-icon::after{-webkit-transform:rotate(90deg) translate(-50%, -50%);transform:rotate(90deg) translate(-50%, -50%)}.stzh-timeline-item__bullet{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-heading-line-height);letter-spacing:var(--stzh-font-nano-heading-letter-spacing);position:absolute;top:0;left:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:2rem;height:2rem;border-radius:50%;color:var(--stzh-base-color);background-color:var(--stzh-color-white);-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed)}.stzh-timeline-item__bullet::before{z-index:0;content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background-color:var(--stzh-color-white);border:0.0625rem solid var(--stzh-base-border-color);-webkit-transition-property:border-color, background-color;transition-property:border-color, background-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed)}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__bullet{-webkit-transition:none;transition:none}}.stzh-timeline-item__bullet-text,.stzh-timeline-item__bullet-icon-wrapper{z-index:1;position:relative}.stzh-timeline-item__bullet-icon-wrapper{display:-ms-flexbox;display:flex}.stzh-timeline-item__content{overflow:hidden}.stzh-timeline-item__content-inner{padding-right:var(--stzh-space-xxxlarge);padding-top:var(--stzh-space-xlarge);padding-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-timeline-item__content-inner{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-timeline-item__content-inner{padding-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-timeline-item__content-inner{padding-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-timeline-item__content-inner{padding-bottom:var(--stzh-space-xxxlarge)}}.stzh-timeline-item__badge{position:absolute;right:-0.3125rem;top:-0.375rem}.stzh-timeline-item__description{font-size:var(--stzh-font-curve-caption-default-font-size, var(--stzh-font-nano-font-size));line-height:var(--stzh-font-curve-caption-default-text-line-height, var(--stzh-font-nano-text-line-height));color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}@media screen and (min-width: 1024px){.stzh-timeline-item__description{font-size:var(--stzh-font-curve-caption-medium-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-caption-medium-text-line-height, var(--stzh-font-micro-text-line-height))}}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__description{-webkit-transition:none;transition:none}}.stzh-timeline-item__heading{margin-bottom:var(--stzh-space-medium);-webkit-transition:margin-bottom var(--stzh-base-transition-animation-speed);transition:margin-bottom var(--stzh-base-transition-animation-speed)}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__heading{-webkit-transition:none;transition:none}}.stzh-timeline-item__heading-text,.stzh-timeline-item__description{display:block}.stzh-timeline-item--is-foldable .stzh-timeline-item__button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue));cursor:pointer}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable .stzh-timeline-item__button{color:Highlight}}.stzh-timeline-item--is-foldable .stzh-timeline-item__button:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable .stzh-timeline-item__button:hover{color:Highlight}}.stzh-timeline-item--is-foldable .stzh-timeline-item__bullet{color:inherit}.stzh-timeline-item--is-foldable .stzh-timeline-item__button:hover .stzh-timeline-item__bullet::before{background-color:var(--stzh-color-primary8);border-color:var(--stzh-color-primary32)}.stzh-timeline-item--is-open .stzh-timeline-item__heading{margin-bottom:0}.stzh-timeline-item--is-open .stzh-timeline-item__button-icon::before,.stzh-timeline-item--is-open .stzh-timeline-item__button-icon::after{-webkit-transform:rotate(0) translate(-50%, -50%);transform:rotate(0) translate(-50%, -50%)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button{color:SelectedItem}}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button:hover{color:SelectedItem}}.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__bullet{color:var(--stzh-color-white)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__bullet{color:SelectedItem}}.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__bullet::before{background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button:hover .stzh-timeline-item__bullet{color:SelectedItem}}.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button:hover .stzh-timeline-item__bullet::before{background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-timeline-item--is-disabled .stzh-timeline-item__button{cursor:not-allowed;color:var(--stzh-color-grey61);border-color:transparent;background-color:var(--stzh-color-black8)}';var d={keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"linear"}};var f={keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"linear"}};var u=0;var p=t("stzh_timeline_item",function(){function t(t){var n=this;e(this,t);this.stzhOpen=i(this,"stzhOpen",7);this.stzhOpened=i(this,"stzhOpened",7);this.stzhClose=i(this,"stzhClose",7);this.stzhClosed=i(this,"stzhClosed",7);this.stzhFocus=i(this,"stzhFocus",7);this.stzhBlur=i(this,"stzhBlur",7);this.toggledByMethod=false;this.handleFoldableChange=function(t){n.foldableWatcher(n.foldable)};this.handleHeaderClick=function(){if(typeof n.collapsible!=="undefined"){if(n.collapsible){n.toggle()}else if(!n.open){n.show()}}else if(!n.timeline||n.timeline.collapsible){n.toggle()}else if(!n.open){n.show()}};this.onFocus=function(t){n.stzhFocus.emit({component:"stzh-timeline-item",originalEvent:t})};this.onBlur=function(t){n.stzhBlur.emit({component:"stzh-timeline-item",originalEvent:t})};this.onButtonKeydown=function(t){var e=null;if(t.key==="ArrowDown"){e="next"}else if(t.key==="ArrowUp"){e="prev"}else if(t.key==="Home"){e="first"}else if(t.key==="End"){e="last"}else if(t.key==="PageDown"&&t.ctrlKey){e="next"}else if(t.key==="PageUp"&&t.ctrlKey){e="prev"}if(e){t.preventDefault();n.timeline.setItemFocus(n.element,e)}};this.onContentKeydown=function(t){if(!t.ctrlKey){return}var e=null;if(t.key==="PageDown"){e="next"}else if(t.key==="PageUp"){e="prev"}if(e){t.preventDefault();n.timeline.setItemFocus(n.element,e)}};this.foldable=undefined;this.collapsible=undefined;this.open=false;this.disabled=false;this.heading="";this.description="";this.step=1;this.icon="";this.badge="";this.badgeEmpty=false;this.badgeType="default";this.headingLevel="3";this.analyticsId=undefined;this._foldable=false}t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open||this.disabled||!this._foldable){return[2]}this.toggledByMethod=true;this.open=true;return[2,r(this.element,"stzhOpened")]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open||this.disabled||!this._foldable){return[2]}this.toggledByMethod=true;this.open=false;return[2,r(this.element,"stzhClosed")]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.open)return[3,2];return[4,this.hide()];case 1:return[2,t.sent()];case 2:return[4,this.show()];case 3:return[2,t.sent()]}}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.buttonElement.focus();return[2]}))}))};t.prototype.openWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.bodyElement){return[2]}if(!t)return[3,3];if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-timeline-item"})}return[4,a(this.bodyElement)];case 1:e.sent();this.bodyElement.hidden=false;return[4,l(this.bodyElement,h(d.keyframes,{height:this.bodyElement.scrollHeight}),d.options)];case 2:e.sent();this.bodyElement.style.height="auto";this.bodyElement.style.overflow="visible";if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-timeline-item"})}return[3,6];case 3:if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-timeline-item"})}return[4,a(this.bodyElement)];case 4:e.sent();this.bodyElement.style.overflow="hidden";return[4,l(this.bodyElement,h(f.keyframes,{height:this.bodyElement.scrollHeight}),f.options)];case 5:e.sent();this.bodyElement.hidden=true;this.bodyElement.style.height="0px";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-timeline-item"})}e.label=6;case 6:this.toggledByMethod=false;return[2]}}))}))};t.prototype.foldableWatcher=function(t){if(typeof t!=="undefined"){this._foldable=t}else if(this.timeline){this._foldable=this.timeline.foldable}if(!this._foldable){this.open=true}};t.prototype.componentWillLoad=function(){this.timelineItemId="stzh-timeline-item-".concat(u++)};t.prototype.componentDidLoad=function(){this.bodyElement.hidden=!this.open;this.bodyElement.style.height=this.open?"auto":"0px";this.bodyElement.style.overflow=this.open?"visible":"hidden"};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.timeline=this.element.closest("stzh-timeline");if(this.timeline){this.timeline.addEventListener("stzhFoldableChange",this.handleFoldableChange)}this.foldableWatcher(this.foldable);return[2]}))}))};t.prototype.disconnectedCallback=function(){if(this.timeline){this.timeline.removeEventListener("stzhFoldableChange",this.handleFoldableChange);this.timeline=null}};t.prototype.render=function(){var t=this;var e="h".concat(this.headingLevel);var i=!!this.icon||m(this.element,"icon");var s={"stzh-timeline-item":true,"stzh-timeline-item--has-description":!!this.description,"stzh-timeline-item--is-open":this.open,"stzh-timeline-item--is-disabled":this.disabled,"stzh-timeline-item--is-foldable":this._foldable};return n(o,{role:"listitem","is-foldable":this._foldable},n("stzh-icon-sprite",null),n("div",{class:s},n(e,{id:"".concat(this.timelineItemId,"-header"),class:"stzh-timeline-item__heading",onClick:this.handleHeaderClick},n("button",{ref:function(e){return t.buttonElement=e},class:"stzh-timeline-item__button","aria-controls":"".concat(this.timelineItemId,"-content"),"aria-expanded":"".concat(this.open?"true":"false"),"aria-disabled":!this._foldable?"true":"false",disabled:this.disabled,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onButtonKeydown,type:"button","s-object-id":this.analyticsId||this.heading},n("span",{class:"stzh-timeline-item__bullet"},i?n("span",{class:"stzh-timeline-item__bullet-icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-timeline-item__bullet-icon",name:this.icon}):n("slot",{name:"icon"})):n("span",{class:"stzh-timeline-item__bullet-text"},this.step),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-timeline-item__badge",label:this.badge,type:this.badgeType})),n("span",{class:"stzh-timeline-item__button-text"},n("span",{class:"stzh-timeline-item__heading-text"},this.heading),n("span",{class:"stzh-timeline-item__description"},this.description)),this._foldable&&n("span",{class:"stzh-timeline-item__button-icon"}))),n("div",{id:"".concat(this.timelineItemId,"-content"),ref:function(e){return t.bodyElement=e},class:"stzh-timeline-item__content","aria-labelledby":"".concat(this.timelineItemId,"-header"),role:"region",onKeyDown:this.onContentKeydown},n("div",{class:"stzh-timeline-item__content-inner"},n("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openWatcher"],foldable:["foldableWatcher"]}},enumerable:false,configurable:true});return t}());p.style=c}}}));
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n["throw"](t))}catch(t){s(t)}}function l(t){t.done?i(t.value):o(t.value).then(r,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(i=0)),i)try{if(n=1,o&&(s=a[0]&2?o["return"]:a[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,a[1])).done)return s;if(o=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];o=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-290fcb28.system.js","./p-5b63a767.system.js","./p-cc9e64a4.system.js","./p-f9cb0fcd.system.js","./p-774595ba.system.js"],(function(t){"use strict";var e,i,n,o,s,r,a,l,h,m;return{setters:[function(t){e=t.r;i=t.c;n=t.h;o=t.a;s=t.g},function(t){r=t.w},function(t){a=t.s;l=t.a;h=t.b},function(t){m=t.h},function(){}],execute:function(){var c=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host .has-focus{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}:host .stzh-fylingfocus-focused{outline-style:none !important}:host .stzh-fylingfocus-focused::-moz-focus-inner{border:0 !important}:host{--trigger-size:1.125rem;--icon-size:var(--stzh-icon-size-xsmall)}:host ::slotted(stzh-timeline){margin-left:calc(var(--stzh-space-xxxlarge) / -1);margin-right:calc(var(--stzh-space-xxxlarge) / -1);margin-top:calc(var(--stzh-space-xlarge) / -1 + var(--stzh-space-medium));margin-bottom:calc(var(--stzh-space-xlarge) / -1)}@media screen and (min-width: 1024px){:host ::slotted(stzh-timeline){margin-top:calc(var(--stzh-space-xxlarge) / -1 + var(--stzh-space-medium));margin-bottom:calc(var(--stzh-space-xxlarge) / -1)}}@media screen and (min-width: 1260px){:host ::slotted(stzh-timeline){margin-top:calc(var(--stzh-space-xxxlarge) / -1 + var(--stzh-space-medium));margin-bottom:calc(var(--stzh-space-xxxlarge) / -1)}}:host ::slotted(stzh-icon),.stzh-timeline-item__bullet-icon{--size:var(--icon-size)}.stzh-timeline-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;}.stzh-timeline-item__heading{position:relative;margin:0;padding-top:var(--stzh-space-xxsmall)}.stzh-timeline-item__button{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-heading-line-height, var(--stzh-font-milli-heading-line-height));letter-spacing:var(--stzh-font-curve-p1-default-heading-letter-spacing);font-family:inherit;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;padding:0;border:none;display:-ms-flexbox;display:flex;color:var(--stzh-base-lead-color);text-align:left;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:default}@media screen and (min-width: 1024px){.stzh-timeline-item__button{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-heading-letter-spacing)}}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__button{-webkit-transition:none;transition:none}}.stzh-timeline-item__button,.stzh-timeline-item__content-inner{padding-left:var(--stzh-space-xxxlarge)}.stzh-timeline-item__button-text{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);-ms-flex-positive:1;flex-grow:1}.stzh-timeline-item__button-icon{position:relative;display:block;width:var(--trigger-size);height:var(--trigger-size);margin-top:var(--stzh-space-xxsmall);margin-left:var(--stzh-space-medium)}.stzh-timeline-item__button-icon::before,.stzh-timeline-item__button-icon::after{position:absolute;top:50%;left:50%;content:"";display:block;width:var(--trigger-size);height:0.0625rem;-webkit-transition:-webkit-transform 0.5s;transition:-webkit-transform 0.5s;transition:transform 0.5s;transition:transform 0.5s, -webkit-transform 0.5s;-webkit-transform-origin:top left;transform-origin:top left;background-color:currentColor}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item__button-icon::before,.stzh-timeline-item__button-icon::after{background-color:CanvasText}}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__button-icon::before,.stzh-timeline-item__button-icon::after{-webkit-transition:none;transition:none}}.stzh-timeline-item__button-icon::before{-webkit-transform:rotate(180deg) translate(-50%, -50%);transform:rotate(180deg) translate(-50%, -50%)}.stzh-timeline-item__button-icon::after{-webkit-transform:rotate(90deg) translate(-50%, -50%);transform:rotate(90deg) translate(-50%, -50%)}.stzh-timeline-item__bullet{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-heading-line-height);letter-spacing:var(--stzh-font-nano-heading-letter-spacing);position:absolute;top:0;left:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:2rem;height:2rem;border-radius:50%;color:var(--stzh-base-color);background-color:var(--stzh-color-white);-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed)}.stzh-timeline-item__bullet::before{z-index:0;content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background-color:var(--stzh-color-white);border:0.0625rem solid var(--stzh-base-border-color);-webkit-transition-property:border-color, background-color;transition-property:border-color, background-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed)}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__bullet{-webkit-transition:none;transition:none}}.stzh-timeline-item__bullet-text,.stzh-timeline-item__bullet-icon-wrapper{z-index:1;position:relative}.stzh-timeline-item__bullet-icon-wrapper{display:-ms-flexbox;display:flex}.stzh-timeline-item__content{overflow:hidden}.stzh-timeline-item__content-inner{padding-right:var(--stzh-space-xxxlarge);padding-top:var(--stzh-space-xlarge);padding-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-timeline-item__content-inner{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-timeline-item__content-inner{padding-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-timeline-item__content-inner{padding-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-timeline-item__content-inner{padding-bottom:var(--stzh-space-xxxlarge)}}.stzh-timeline-item__badge{position:absolute;right:-0.3125rem;top:-0.375rem}.stzh-timeline-item__description{font-size:var(--stzh-font-curve-caption-default-font-size, var(--stzh-font-nano-font-size));line-height:var(--stzh-font-curve-caption-default-text-line-height, var(--stzh-font-nano-text-line-height));color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}@media screen and (min-width: 1024px){.stzh-timeline-item__description{font-size:var(--stzh-font-curve-caption-medium-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-caption-medium-text-line-height, var(--stzh-font-micro-text-line-height))}}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__description{-webkit-transition:none;transition:none}}.stzh-timeline-item__heading{margin-bottom:var(--stzh-space-medium);-webkit-transition:margin-bottom var(--stzh-base-transition-animation-speed);transition:margin-bottom var(--stzh-base-transition-animation-speed)}@media (prefers-reduced-motion: reduce){.stzh-timeline-item__heading{-webkit-transition:none;transition:none}}.stzh-timeline-item__heading-text,.stzh-timeline-item__description{display:block}.stzh-timeline-item--is-foldable .stzh-timeline-item__button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue));cursor:pointer}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable .stzh-timeline-item__button{color:Highlight}}.stzh-timeline-item--is-foldable .stzh-timeline-item__button:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable .stzh-timeline-item__button:hover{color:Highlight}}.stzh-timeline-item--is-foldable .stzh-timeline-item__bullet{color:inherit}.stzh-timeline-item--is-foldable .stzh-timeline-item__button:hover .stzh-timeline-item__bullet::before{background-color:var(--stzh-color-primary8);border-color:var(--stzh-color-primary32)}.stzh-timeline-item--is-open .stzh-timeline-item__heading{margin-bottom:0}.stzh-timeline-item--is-open .stzh-timeline-item__button-icon::before,.stzh-timeline-item--is-open .stzh-timeline-item__button-icon::after{-webkit-transform:rotate(0) translate(-50%, -50%);transform:rotate(0) translate(-50%, -50%)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button{color:SelectedItem}}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button:hover{color:SelectedItem}}.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__bullet{color:var(--stzh-color-white)}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__bullet{color:SelectedItem}}.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__bullet::before{background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button:hover .stzh-timeline-item__bullet{color:SelectedItem}}.stzh-timeline-item--is-foldable.stzh-timeline-item--is-open .stzh-timeline-item__button:hover .stzh-timeline-item__bullet::before{background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-timeline-item--is-disabled .stzh-timeline-item__button{cursor:not-allowed;color:var(--stzh-color-grey61);border-color:transparent;background-color:var(--stzh-color-black8)}';var d={keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"linear"}};var f={keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"linear"}};var u=0;var p=t("stzh_timeline_item",function(){function t(t){var n=this;e(this,t);this.stzhOpen=i(this,"stzhOpen",7);this.stzhOpened=i(this,"stzhOpened",7);this.stzhClose=i(this,"stzhClose",7);this.stzhClosed=i(this,"stzhClosed",7);this.stzhFocus=i(this,"stzhFocus",7);this.stzhBlur=i(this,"stzhBlur",7);this.toggledByMethod=false;this.handleFoldableChange=function(t){n.foldableWatcher(n.foldable)};this.handleHeaderClick=function(){if(typeof n.collapsible!=="undefined"){if(n.collapsible){n.toggle()}else if(!n.open){n.show()}}else if(!n.timeline||n.timeline.collapsible){n.toggle()}else if(!n.open){n.show()}};this.onFocus=function(t){n.stzhFocus.emit({component:"stzh-timeline-item",originalEvent:t})};this.onBlur=function(t){n.stzhBlur.emit({component:"stzh-timeline-item",originalEvent:t})};this.onButtonKeydown=function(t){var e=null;if(t.key==="ArrowDown"){e="next"}else if(t.key==="ArrowUp"){e="prev"}else if(t.key==="Home"){e="first"}else if(t.key==="End"){e="last"}else if(t.key==="PageDown"&&t.ctrlKey){e="next"}else if(t.key==="PageUp"&&t.ctrlKey){e="prev"}if(e){t.preventDefault();n.timeline.setItemFocus(n.element,e)}};this.onContentKeydown=function(t){if(!t.ctrlKey){return}var e=null;if(t.key==="PageDown"){e="next"}else if(t.key==="PageUp"){e="prev"}if(e){t.preventDefault();n.timeline.setItemFocus(n.element,e)}};this.foldable=undefined;this.collapsible=undefined;this.open=false;this.disabled=false;this.heading="";this.description="";this.step=1;this.icon="";this.badge="";this.badgeEmpty=false;this.badgeType="default";this.headingLevel="3";this.analyticsId=undefined;this._foldable=false}t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open||this.disabled||!this._foldable){return[2]}this.toggledByMethod=true;this.open=true;return[2,r(this.element,"stzhOpened")]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open||this.disabled||!this._foldable){return[2]}this.toggledByMethod=true;this.open=false;return[2,r(this.element,"stzhClosed")]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.open)return[3,2];return[4,this.hide()];case 1:return[2,t.sent()];case 2:return[4,this.show()];case 3:return[2,t.sent()]}}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.buttonElement.focus();return[2]}))}))};t.prototype.openWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.bodyElement){return[2]}if(!t)return[3,3];if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-timeline-item"})}return[4,a(this.bodyElement)];case 1:e.sent();this.bodyElement.hidden=false;return[4,l(this.bodyElement,h(d.keyframes,{height:this.bodyElement.scrollHeight}),d.options)];case 2:e.sent();this.bodyElement.style.height="auto";this.bodyElement.style.overflow="visible";if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-timeline-item"})}return[3,6];case 3:if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-timeline-item"})}return[4,a(this.bodyElement)];case 4:e.sent();this.bodyElement.style.overflow="hidden";return[4,l(this.bodyElement,h(f.keyframes,{height:this.bodyElement.scrollHeight}),f.options)];case 5:e.sent();this.bodyElement.hidden=true;this.bodyElement.style.height="0px";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-timeline-item"})}e.label=6;case 6:this.toggledByMethod=false;return[2]}}))}))};t.prototype.foldableWatcher=function(t){if(typeof t!=="undefined"){this._foldable=t}else if(this.timeline){this._foldable=this.timeline.foldable}if(!this._foldable){this.open=true}};t.prototype.componentWillLoad=function(){this.timelineItemId="stzh-timeline-item-".concat(u++)};t.prototype.componentDidLoad=function(){this.bodyElement.hidden=!this.open;this.bodyElement.style.height=this.open?"auto":"0px";this.bodyElement.style.overflow=this.open?"visible":"hidden"};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.timeline=this.element.closest("stzh-timeline");if(this.timeline){this.timeline.addEventListener("stzhFoldableChange",this.handleFoldableChange)}this.foldableWatcher(this.foldable);return[2]}))}))};t.prototype.disconnectedCallback=function(){if(this.timeline){this.timeline.removeEventListener("stzhFoldableChange",this.handleFoldableChange);this.timeline=null}};t.prototype.render=function(){var t=this;var e="h".concat(this.headingLevel);var i=!!this.icon||m(this.element,"icon");var s={"stzh-timeline-item":true,"stzh-timeline-item--has-description":!!this.description,"stzh-timeline-item--is-open":this.open,"stzh-timeline-item--is-disabled":this.disabled,"stzh-timeline-item--is-foldable":this._foldable};return n(o,{role:"listitem","is-foldable":this._foldable},n("stzh-icon-sprite",null),n("div",{class:s},n(e,{id:"".concat(this.timelineItemId,"-header"),class:"stzh-timeline-item__heading",onClick:this.handleHeaderClick},n("button",{ref:function(e){return t.buttonElement=e},class:"stzh-timeline-item__button","aria-controls":"".concat(this.timelineItemId,"-content"),"aria-expanded":"".concat(this.open?"true":"false"),"aria-disabled":!this._foldable?"true":"false",disabled:this.disabled,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onButtonKeydown,type:"button","s-object-id":this.analyticsId||this.heading},n("span",{class:"stzh-timeline-item__bullet"},i?n("span",{class:"stzh-timeline-item__bullet-icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-timeline-item__bullet-icon",name:this.icon}):n("slot",{name:"icon"})):n("span",{class:"stzh-timeline-item__bullet-text"},this.step),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-timeline-item__badge",label:this.badge,type:this.badgeType})),n("span",{class:"stzh-timeline-item__button-text"},n("span",{class:"stzh-timeline-item__heading-text"},this.heading),n("span",{class:"stzh-timeline-item__description"},this.description)),this._foldable&&n("span",{class:"stzh-timeline-item__button-icon"}))),n("div",{id:"".concat(this.timelineItemId,"-content"),ref:function(e){return t.bodyElement=e},class:"stzh-timeline-item__content","aria-labelledby":"".concat(this.timelineItemId,"-header"),role:"region",onKeyDown:this.onContentKeydown},n("div",{class:"stzh-timeline-item__content-inner"},n("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openWatcher"],foldable:["foldableWatcher"]}},enumerable:false,configurable:true});return t}());p.style=c}}}));
|
|
2
|
+
//# sourceMappingURL=p-34ff6606.system.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,l){function o(t){try{r(n.next(t))}catch(t){l(t)}}function a(t){try{r(n["throw"](t))}catch(t){l(t)}}function r(t){t.done?e(t.value):s(t.value).then(o,a)}r((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,s,l,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(i){return r([t,i])}}function r(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(e=0)),e)try{if(n=1,s&&(l=a[0]&2?s["return"]:a[0]?s["throw"]||((l=s["return"])&&l.call(s),0):s.next)&&!(l=l.call(s,a[1])).done)return l;if(s=0,l)a=[a[0]&2,l.value];switch(a[0]){case 0:case 1:l=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;s=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(l=e.trys,l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){e.label=a[1];break}if(a[0]===6&&e.label<l[1]){e.label=l[1];l=a;break}if(l&&e.label<l[2]){e.label=l[2];e.ops.push(a);break}if(l[2])e.ops.pop();e.trys.pop();continue}a=i.call(t,e)}catch(t){a=[6,t];s=0}finally{n=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-290fcb28.system.js","./p-53e44e89.system.js","./p-774595ba.system.js"],(function(t){"use strict";var i,e,n,s,l,o,a;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.F;l=t.a;o=t.g},function(t){a=t.h},function(){}],execute:function(){var r='@charset "UTF-8";.sc-stzh-link-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-link-h{display:none}.sc-stzh-link-h *.sc-stzh-link,.sc-stzh-link-h *.sc-stzh-link::before,.sc-stzh-link-h *.sc-stzh-link::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-link-h .has-focus.sc-stzh-link{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-link-h .stzh-fylingfocus-focused.sc-stzh-link{outline-style:none !important}.sc-stzh-link-h .stzh-fylingfocus-focused.sc-stzh-link::-moz-focus-inner{border:0 !important}.sc-stzh-link-h{--color:var(--stzh-link-color);--text-decoration-line:underline;--icon-size:var(--stzh-icon-size-medium);--icon-wrapper-height:var(--stzh-link-icon-wrapper-height);--hover-color:var(--stzh-link-hover-color);--hover-text-decoration-line:underline;color:var(--color);display:inline-block}.sc-stzh-link-h .sc-stzh-link-s>stzh-text{--color:initial}[fullwidth].sc-stzh-link-h:not([fullwidth=false]){width:100%;display:block}[size=small].sc-stzh-link-h{--icon-size:var(--stzh-icon-size-small)}[variant=secondary].sc-stzh-link-h{--color:var(--stzh-base-color)}[active].sc-stzh-link-h:not([active=false]){--color:var(--hover-color)}[disabled].sc-stzh-link-h:not([disabled=false]){--color:var(--stzh-color-grey25);--hover-color:var(--stzh-color-grey25)}.sc-stzh-link-h .sc-stzh-link-s>stzh-icon,.stzh-link__icon.sc-stzh-link{--size:var(--icon-size)}.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);font-family:inherit;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);cursor:pointer;width:100%;-webkit-text-decoration-line:none;text-decoration-line:none;background-color:transparent;padding:0;border-radius:var(--stzh-button-border-radius);text-align:left}@media screen and (min-width: 1024px){.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-link.sc-stzh-link:hover{color:var(--hover-color)}.stzh-link.sc-stzh-link:hover .stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--hover-text-decoration-line);text-decoration-line:var(--hover-text-decoration-line)}.stzh-link__vhidden.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link__inner.sc-stzh-link{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}.stzh-link__icon-wrapper.sc-stzh-link{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:var(--icon-wrapper-height)}.stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--text-decoration-line);text-decoration-line:var(--text-decoration-line)}.stzh-link__icon-wrapper.sc-stzh-link:not(:empty)+.stzh-link__text.sc-stzh-link:not(:empty),.stzh-link__text.sc-stzh-link:not(:empty)+.stzh-link__icon-wrapper.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-xxsmall)}.stzh-link__badge.sc-stzh-link{position:absolute;z-index:1;top:0;right:0}.stzh-link--has-icon-only.sc-stzh-link .stzh-link__text.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link--badge-position-link.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:static}.stzh-link__badge.sc-stzh-link,.stzh-link--badge-position-link.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xxsmall) * -1);right:calc(var(--stzh-space-large) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:relative}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link+.stzh-link__text.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-small)}.stzh-link--size-small.sc-stzh-link{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-link--size-inherit.sc-stzh-link{font-size:inherit;line-height:inherit;letter-spacing:inherit}.stzh-link--align-left.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:start;justify-content:flex-start}.stzh-link--align-right.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:end;justify-content:flex-end}.stzh-link--align-center.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:center;justify-content:center}.stzh-link--align-space-between.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:justify;justify-content:space-between}.stzh-link--is-disabled.sc-stzh-link{cursor:not-allowed}';var h=t("stzh_link",function(){function t(t){var n=this;i(this,t);this.stzhFocus=e(this,"stzhFocus",7);this.stzhBlur=e(this,"stzhBlur",7);this.focusedByInput=false;this.onRootFocus=function(){if(!n.focusedByInput){n.setFocus()}n.focusedByInput=false};this.onFocus=function(t){n.focusedByInput=true;var i=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhFocus.emit({component:"stzh-link",originalEvent:t})};this.onBlur=function(t){var i=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhBlur.emit({component:"stzh-link",originalEvent:t})};this.localization=undefined;this.icon="";this.iconPosition="left";this.size="default";this.href="";this.rel=undefined;this.target="";this.download=undefined;this.type="button";this.variant="default";this.fullwidth=false;this.textAlign="default";this.badge="";this.badgeType="default";this.badgeEmpty=false;this.badgePosition="icon";this.disabled=false;this.active=false;this.iconOnly=false;this.label="";this.linkAccesskey=undefined;this.a11yLabel=undefined;this.a11yDescribedby="";this.a11yExpanded=undefined;this.a11yDisabled=undefined;this.a11yControls=undefined;this.a11yTabindex=undefined;this.analyticsId=undefined}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.link.focus();return[2]}))}))};t.prototype.renderIcon=function(){return n("div",{class:"stzh-link__icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-link__icon",name:this.icon}):n("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.renderContent=function(){var t=this;return n("div",{class:"stzh-link__text"},this.rel&&this.rel.includes("external")&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.externalLinkLabel),this.download&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.downloadLinkLabel),n("div",{ref:function(i){return t.text=i}},this.label?this.label:n("slot",null)))};t.prototype.renderInner=function(t){return n(s,null,n("div",{class:"stzh-link__inner"},this.iconPosition==="left"&&this.renderIcon(),this.renderContent(),this.iconPosition==="right"&&this.renderIcon()),(this.badge||this.badgeEmpty)&&!t&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"link")];case 1:t.localization=i.sent();i.label=2;case 2:return[2]}}))}))};t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){t.link.setAttribute("s-object-id",t.analyticsId||t.text.innerText)}))};t.prototype.render=function(){var t;var i=this;var e=a(this.element,"icon")||!!this.icon;var s=(t={"stzh-link":true,"stzh-link--has-icon":e,"stzh-link--has-icon-only":this.iconOnly,"stzh-link--has-badge":!!this.badge,"stzh-link--is-fullwidth":this.fullwidth,"stzh-link--is-disabled":this.disabled,"stzh-link--is-active":this.active},t["stzh-link--badge-position-".concat(this.badgePosition)]=!!this.badgePosition,t["stzh-link--align-".concat(this.textAlign)]=!!this.textAlign,t["stzh-link--size-".concat(this.size)]=!!this.size,t["stzh-link--".concat(this.variant)]=!!this.variant,t);return n(l,{tabindex:this.disabled?null:"-1",onFocus:this.onRootFocus},this.href?n("a",{ref:function(t){return i.link=t},href:this.disabled?null:this.href,download:this.download,rel:this.rel,target:this.target,class:s,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel||null,"aria-describedby":this.a11yDescribedby||null,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls||null,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)):n("button",{ref:function(t){return i.link=t},class:s,type:this.type,disabled:this.disabled,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel||null,"aria-describedby":this.a11yDescribedby||null,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls||null,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());h.style=r}}}));
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,l){function o(t){try{r(n.next(t))}catch(t){l(t)}}function a(t){try{r(n["throw"](t))}catch(t){l(t)}}function r(t){t.done?e(t.value):s(t.value).then(o,a)}r((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,s,l,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(i){return r([t,i])}}function r(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(e=0)),e)try{if(n=1,s&&(l=a[0]&2?s["return"]:a[0]?s["throw"]||((l=s["return"])&&l.call(s),0):s.next)&&!(l=l.call(s,a[1])).done)return l;if(s=0,l)a=[a[0]&2,l.value];switch(a[0]){case 0:case 1:l=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;s=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(l=e.trys,l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){e.label=a[1];break}if(a[0]===6&&e.label<l[1]){e.label=l[1];l=a;break}if(l&&e.label<l[2]){e.label=l[2];e.ops.push(a);break}if(l[2])e.ops.pop();e.trys.pop();continue}a=i.call(t,e)}catch(t){a=[6,t];s=0}finally{n=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-290fcb28.system.js","./p-f9cb0fcd.system.js","./p-774595ba.system.js"],(function(t){"use strict";var i,e,n,s,l,o,a;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.F;l=t.a;o=t.g},function(t){a=t.h},function(){}],execute:function(){var r='@charset "UTF-8";.sc-stzh-link-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-link-h{display:none}.sc-stzh-link-h *.sc-stzh-link,.sc-stzh-link-h *.sc-stzh-link::before,.sc-stzh-link-h *.sc-stzh-link::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-link-h .has-focus.sc-stzh-link{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-link-h .stzh-fylingfocus-focused.sc-stzh-link{outline-style:none !important}.sc-stzh-link-h .stzh-fylingfocus-focused.sc-stzh-link::-moz-focus-inner{border:0 !important}.sc-stzh-link-h{--color:var(--stzh-link-color);--text-decoration-line:underline;--icon-size:var(--stzh-icon-size-medium);--icon-wrapper-height:var(--stzh-link-icon-wrapper-height);--hover-color:var(--stzh-link-hover-color);--hover-text-decoration-line:underline;color:var(--color);display:inline-block}.sc-stzh-link-h .sc-stzh-link-s>stzh-text{--color:initial}[fullwidth].sc-stzh-link-h:not([fullwidth=false]){width:100%;display:block}[size=small].sc-stzh-link-h{--icon-size:var(--stzh-icon-size-small)}[variant=secondary].sc-stzh-link-h{--color:var(--stzh-base-color)}[active].sc-stzh-link-h:not([active=false]){--color:var(--hover-color)}[disabled].sc-stzh-link-h:not([disabled=false]){--color:var(--stzh-color-grey25);--hover-color:var(--stzh-color-grey25)}.sc-stzh-link-h .sc-stzh-link-s>stzh-icon,.stzh-link__icon.sc-stzh-link{--size:var(--icon-size)}.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);font-family:inherit;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);cursor:pointer;width:100%;-webkit-text-decoration-line:none;text-decoration-line:none;background-color:transparent;padding:0;border-radius:var(--stzh-button-border-radius);text-align:left}@media screen and (min-width: 1024px){.stzh-link.sc-stzh-link{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-link.sc-stzh-link:hover{color:var(--hover-color)}.stzh-link.sc-stzh-link:hover .stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--hover-text-decoration-line);text-decoration-line:var(--hover-text-decoration-line)}.stzh-link__vhidden.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link__inner.sc-stzh-link{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}.stzh-link__icon-wrapper.sc-stzh-link{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:var(--icon-wrapper-height)}.stzh-link__text.sc-stzh-link{-webkit-text-decoration-line:var(--text-decoration-line);text-decoration-line:var(--text-decoration-line)}.stzh-link__icon-wrapper.sc-stzh-link:not(:empty)+.stzh-link__text.sc-stzh-link:not(:empty),.stzh-link__text.sc-stzh-link:not(:empty)+.stzh-link__icon-wrapper.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-xxsmall)}.stzh-link__badge.sc-stzh-link{position:absolute;z-index:1;top:0;right:0}.stzh-link--has-icon-only.sc-stzh-link .stzh-link__text.sc-stzh-link{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-link--badge-position-link.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:static}.stzh-link__badge.sc-stzh-link,.stzh-link--badge-position-link.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xxsmall) * -1);right:calc(var(--stzh-space-large) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link{position:relative}.stzh-link--badge-position-icon.stzh-link--has-icon.sc-stzh-link .stzh-link__badge.sc-stzh-link{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-link--badge-position-icon.stzh-link--has-icon.stzh-link--has-badge.sc-stzh-link .stzh-link__icon-wrapper.sc-stzh-link+.stzh-link__text.sc-stzh-link:not(:empty){margin-left:var(--stzh-space-small)}.stzh-link--size-small.sc-stzh-link{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-link--size-inherit.sc-stzh-link{font-size:inherit;line-height:inherit;letter-spacing:inherit}.stzh-link--align-left.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:start;justify-content:flex-start}.stzh-link--align-right.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:end;justify-content:flex-end}.stzh-link--align-center.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:center;justify-content:center}.stzh-link--align-space-between.sc-stzh-link .stzh-link__inner.sc-stzh-link{-ms-flex-pack:justify;justify-content:space-between}.stzh-link--is-disabled.sc-stzh-link{cursor:not-allowed}';var h=t("stzh_link",function(){function t(t){var n=this;i(this,t);this.stzhFocus=e(this,"stzhFocus",7);this.stzhBlur=e(this,"stzhBlur",7);this.focusedByInput=false;this.onRootFocus=function(){if(!n.focusedByInput){n.setFocus()}n.focusedByInput=false};this.onFocus=function(t){n.focusedByInput=true;var i=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhFocus.emit({component:"stzh-link",originalEvent:t})};this.onBlur=function(t){var i=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(i);n.stzhBlur.emit({component:"stzh-link",originalEvent:t})};this.localization=undefined;this.icon="";this.iconPosition="left";this.size="default";this.href="";this.rel=undefined;this.target="";this.download=undefined;this.type="button";this.variant="default";this.fullwidth=false;this.textAlign="default";this.badge="";this.badgeType="default";this.badgeEmpty=false;this.badgePosition="icon";this.disabled=false;this.active=false;this.iconOnly=false;this.label="";this.linkAccesskey=undefined;this.a11yLabel=undefined;this.a11yDescribedby="";this.a11yExpanded=undefined;this.a11yDisabled=undefined;this.a11yControls=undefined;this.a11yTabindex=undefined;this.analyticsId=undefined}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.link.focus();return[2]}))}))};t.prototype.renderIcon=function(){return n("div",{class:"stzh-link__icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-link__icon",name:this.icon}):n("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.renderContent=function(){var t=this;return n("div",{class:"stzh-link__text"},this.rel&&this.rel.includes("external")&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.externalLinkLabel),this.download&&n("div",{class:"stzh-link__vhidden"},this.localization.$globals.downloadLinkLabel),n("div",{ref:function(i){return t.text=i}},this.label?this.label:n("slot",null)))};t.prototype.renderInner=function(t){return n(s,null,n("div",{class:"stzh-link__inner"},this.iconPosition==="left"&&this.renderIcon(),this.renderContent(),this.iconPosition==="right"&&this.renderIcon()),(this.badge||this.badgeEmpty)&&!t&&n("stzh-badge",{class:"stzh-link__badge",label:this.badge,type:this.badgeType}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"link")];case 1:t.localization=i.sent();i.label=2;case 2:return[2]}}))}))};t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){t.link.setAttribute("s-object-id",t.analyticsId||t.text.innerText)}))};t.prototype.render=function(){var t;var i=this;var e=a(this.element,"icon")||!!this.icon;var s=(t={"stzh-link":true,"stzh-link--has-icon":e,"stzh-link--has-icon-only":this.iconOnly,"stzh-link--has-badge":!!this.badge,"stzh-link--is-fullwidth":this.fullwidth,"stzh-link--is-disabled":this.disabled,"stzh-link--is-active":this.active},t["stzh-link--badge-position-".concat(this.badgePosition)]=!!this.badgePosition,t["stzh-link--align-".concat(this.textAlign)]=!!this.textAlign,t["stzh-link--size-".concat(this.size)]=!!this.size,t["stzh-link--".concat(this.variant)]=!!this.variant,t);return n(l,{tabindex:this.disabled?null:"-1",onFocus:this.onRootFocus},this.href?n("a",{ref:function(t){return i.link=t},href:this.disabled?null:this.href,download:this.download,rel:this.rel,target:this.target,class:s,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel||null,"aria-describedby":this.a11yDescribedby||null,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls||null,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)):n("button",{ref:function(t){return i.link=t},class:s,type:this.type,disabled:this.disabled,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,"aria-label":this.a11yLabel||null,"aria-describedby":this.a11yDescribedby||null,"aria-disabled":typeof this.a11yDisabled!=="undefined"?this.a11yDisabled?"true":"false":null,"aria-expanded":typeof this.a11yExpanded!=="undefined"?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls||null,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(e)))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());h.style=r}}}));
|
|
2
|
+
//# sourceMappingURL=p-3ab3a5a7.system.entry.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};return e(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?i(e.value):r(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(e,t){var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)i[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++){if(t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r]))i[n[r]]=e[n[r]]}return i};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,o;n<r;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-290fcb28.system.js","./p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};return e(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?i(e.value):r(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(e,t){var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)i[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++){if(t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r]))i[n[r]]=e[n[r]]}return i};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,o;n<r;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-290fcb28.system.js","./p-f9cb0fcd.system.js","./p-774595ba.system.js"],(function(e){"use strict";var t,i,n,r,o,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.a;o=e.g},function(e){s=e.h},function(){}],execute:function(){var a,u;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -29,4 +29,4 @@ var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setP
|
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/function li(e){return ui(__assign(__assign({},e),{state:!0}))}var di=Symbol("@vidstack/media-provider-discovery");var ci=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t._disconnectDisposal=new J;t._logger=void 0;t.loading="visible";t._attemptingAutoplay=false;t.controllerQueue=new Ge;t._store=Ot();t._state=at(t._store);t.connectedQueue=Ye(t);t.mediaQueue=new Ge;t.screenOrientationController=new Xe(t);t.fullscreenController=new Ne(t,t.screenOrientationController);Pe(t,"vds-media-provider-connect",{register:di});var i=Qe(t,{target:t,threshold:0},(function(e){var n;if(!/(visible|lazy)/.test(t.loading)){i.hostDisconnected();return}if((n=e[0])===null||n===void 0?void 0:n.isIntersecting){t.startLoadingMedia();i.hostDisconnected()}}));return t}t.prototype.connectedCallback=function(){var t=this;e.prototype.connectedCallback.call(this);this._logMediaEvents();window.requestAnimationFrame((function(){if(pe(t.canLoadPoster)){t.canLoadPoster=true}}))};t.prototype.firstUpdated=function(t){var i=this;e.prototype.firstUpdated.call(this,t);this.dispatchEvent(te("vds-fullscreen-support-change",{detail:this.canFullscreen}));if(this.canLoad||this.loading==="eager"){window===null||window===void 0?void 0:window.requestAnimationFrame((function(){i.startLoadingMedia()}))}else if(this.loading==="idle"){vt((function(){i.startLoadingMedia()}))}};t.prototype.render=function(){return x(__makeTemplateObject(['<slot @slotchange="','"></slot>'],['<slot @slotchange="','"></slot>']),this.handleDefaultSlotChange)};t.prototype.disconnectedCallback=function(){var t=this;this._updateMediaStoreOnDisconnect(this._store);this.mediaQueue.destroy();this._disconnectDisposal.empty();e.prototype.disconnectedCallback.call(this);lt((function(){lt((function(){if(!t.isConnected)t.destroy()}))}))};t.prototype._updateMediaStoreOnDisconnect=function(e){e.paused.set(true);e.playing.set(false);e.seeking.set(false);e.waiting.set(false);e.fullscreen.set(false)};t.prototype.destroy=function(){if(this.isConnected)this.disconnectedCallback();this.dispatchEvent(te("vds-destroy"))};t.prototype._logMediaEvents=function(){};Object.defineProperty(t.prototype,"volume",{get:function(){return this._getVolume()},set:function(e){var t=this;this.mediaQueue.queue("volume",(function(){var i=t.volume;var n=Ie(0,e,1);if(i!==n){t._setVolume(n);t.requestUpdate("volume",i)}}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"paused",{get:function(){return this._getPaused()},set:function(e){var t=this;this.mediaQueue.queue("paused",(function(){var i;if(t.paused===e)return;try{if(!e){t.play()}else{t.pause()}t.requestUpdate("paused",!e)}catch(e){(i=t._logger)===null||i===void 0?void 0:i.error("paused-change-fail",e)}}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._getCurrentTime()},set:function(e){var t=this;this.mediaQueue.queue("current-time",(function(){var i=t.currentTime;if(i!==e){t._setCurrentTime(e);t.requestUpdate("currentTime",i)}}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"muted",{get:function(){return this._getMuted()},set:function(e){var t=this;this.mediaQueue.queue("muted",(function(){var i=t.muted;if(i!==e){t._setMuted(e);t.requestUpdate("muted",i)}}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"poster",{get:function(){return this.state.poster},set:function(e){var t=this.poster;if(t!==e){this.dispatchEvent(te("vds-poster-change",{detail:e}));this.requestUpdate("poster",t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"loop",{get:function(){return this.state.loop},set:function(e){var t=this.loop;if(t!==e){this.dispatchEvent(te("vds-loop-change",{detail:e}));this.requestUpdate("loop",t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"controls",{get:function(){return this.state.controls},set:function(e){var t=this.controls;if(t!==e){this.dispatchEvent(te("vds-controls-change",{detail:e}));this.requestUpdate("controls",t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"canLoad",{get:function(){return this.state.canLoad},enumerable:false,configurable:true});t.prototype.startLoadingMedia=function(){if(this.state.canPlay)return;this.dispatchEvent(te("vds-can-load"))};t.prototype._throwIfNotReadyForPlayback=function(){if(!this.state.canPlay){throw Error("Media is not ready - wait for `vds-can-play` event.")}};t.prototype._resetPlaybackIfEnded=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.state.ended||this.state.currentTime===0)return[2];return[2,this._setCurrentTime(0)]}))}))};t.prototype._throwIfNotVideoView=function(){if(this.state.viewType!=="video"){throw Error("Player is currently not in a video view.")}};t.prototype._handleMediaReady=function(e){var t=e.event,i=e.duration;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.state.canPlay)return[2];this.dispatchEvent(te("vds-can-play",{triggerEvent:t,detail:{duration:i}}));this.mediaQueue.start();return[4,this._attemptAutoplay()];case 1:e.sent();return[2]}}))}))};t.prototype._handleCurrentSrcChange=function(e,t){if(this.state.currentSrc===e)return;this.mediaQueue.stop();this.dispatchEvent(te("vds-current-src-change",{detail:e,triggerEvent:t}))};Object.defineProperty(t.prototype,"autoplay",{get:function(){return this.state.autoplay},set:function(e){if(this.autoplay!==e){this.dispatchEvent(te("vds-autoplay-change",{detail:e}));this.requestUpdate("autoplay",!e)}this._attemptAutoplay()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"_canAttemptAutoplay",{get:function(){return this.state.canPlay&&this.state.autoplay&&!this.state.started},enumerable:false,configurable:true});t.prototype._attemptAutoplay=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this._canAttemptAutoplay)return[2];this._attemptingAutoplay=true;t.label=1;case 1:t.trys.push([1,3,,4]);return[4,this.play()];case 2:t.sent();this.dispatchEvent(te("vds-autoplay",{detail:{muted:this.muted}}));return[3,4];case 3:e=t.sent();this.dispatchEvent(te("vds-autoplay-fail",{detail:{muted:this.muted,error:e}}));this.requestUpdate();return[3,4];case 4:this._attemptingAutoplay=false;return[2]}}))}))};Object.defineProperty(t.prototype,"controller",{get:function(){return this._controller},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"logLevel",{get:function(){var e,t;return(t=(e=this._controller)===null||e===void 0?void 0:e.logLevel)!==null&&t!==void 0?t:"silent"},set:function(e){},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"idleDelay",{get:function(){var e,t;return(t=(e=this._controller)===null||e===void 0?void 0:e.idleDelay)!==null&&t!==void 0?t:0},set:function(e){var t=this;this.controllerQueue.queue("idle-delay",(function(){t._controller.idleDelay=e}))},enumerable:false,configurable:true});t.prototype.attachMediaController=function(e,t){var i=this;this._controller=e;this._store=e._store;this._state=e.state;this.controllerQueue.start();t((function(){i.controllerQueue.destroy();i._store=Ot();i._state=at(i._store);if(i._controller){st(i._controller._store,i._store);i._updateMediaStoreOnDisconnect(i._controller._store)}i._controller=void 0}))};t.prototype.dispatchEvent=function(t){var i=this;if(!this._controller&&t.type.startsWith("vds-")&&t.type!=="vds-destroy"){this.controllerQueue.queue(t.type,(function(){e.prototype.dispatchEvent.call(i,t)}));return false}return e.prototype.dispatchEvent.call(this,t)};t.prototype.store=function(){return this._store};Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"canFullscreen",{get:function(){return this.fullscreenController.isSupported},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fullscreen",{get:function(){return this.fullscreenController.isFullscreen},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fullscreenOrientation",{get:function(){return this.fullscreenController.screenOrientationLock},set:function(e){var t=this.fullscreenController.screenOrientationLock;if(t!==e){this.fullscreenController.screenOrientationLock=e;this.requestUpdate("fullscreen-orientation",t)}},enumerable:false,configurable:true});t.prototype.enterFullscreen=function(){return this.fullscreenController.enterFullscreen()};t.prototype.exitFullscreen=function(){return this.fullscreenController.exitFullscreen()};return t}(oi);jt([ui({type:Number})],ci.prototype,"volume",1);jt([ui({type:Boolean})],ci.prototype,"paused",1);jt([ui({type:Number})],ci.prototype,"currentTime",1);jt([ui({type:Boolean})],ci.prototype,"muted",1);jt([ui()],ci.prototype,"poster",1);jt([ui({type:Boolean})],ci.prototype,"loop",1);jt([ui({type:Boolean})],ci.prototype,"controls",1);jt([li()],ci.prototype,"canLoadPoster",2);jt([ui({attribute:"loading"})],ci.prototype,"loading",2);jt([ui({type:Boolean})],ci.prototype,"autoplay",1);jt([ui({attribute:"log-level"})],ci.prototype,"logLevel",1);jt([ui({attribute:"idle-delay",type:Number})],ci.prototype,"idleDelay",1);jt([ui({attribute:"fullscreen-orientation"})],ci.prototype,"fullscreenOrientation",1);var hi=function(){function e(e,t){this._host=e;this._mediaStore=t;this._idle=false;this._mediaPaused=false;this._idlingPaused=false;this._disposal=new J;this.delay=2e3;e.addController(this)}Object.defineProperty(e.prototype,"paused",{get:function(){return this._idlingPaused||this._mediaPaused},set:function(e){this._idlingPaused=e;this._handleIdleChange()},enumerable:false,configurable:true});e.prototype.hostConnected=function(){var e=this;this._disposal.add(this._mediaStore.paused.subscribe((function(t){e._mediaPaused=t;e._handleIdleChange()})));var t=["pointerdown","pointermove","focus","keydown"];t.forEach((function(t){var i=X(e._host,t,e._handleIdleChange.bind(e));e._disposal.add(i)}))};e.prototype.hostDisconnected=function(){this._disposal.empty();this._stopIdleTimer()};e.prototype._handleIdleChange=function(){if(this.paused){this._stopIdleTimer()}else{this._startIdleTimer()}};e.prototype._startIdleTimer=function(){var e=this;this._stopIdleTimer();this._idleTimeout=window.setTimeout((function(){e._dispatchIdleChange(!e.paused)}),this.delay)};e.prototype._stopIdleTimer=function(){window.clearTimeout(this._idleTimeout);this._dispatchIdleChange(false)};e.prototype._dispatchIdleChange=function(e){if(this._idle!==e){this._host.dispatchEvent(te("vds-user-idle-change",{detail:e}));this._idle=e}};return e}();var pi=function(){function e(e){var t=this;this._host=e;this._disconnectDisposal=new J;this.providerQueue=new Ge;this.providerDisposal=new J;this._logController=void 0;this._logger=void 0;this._providerContext=Pt.provide(this._host);this._mediaStoreProvider=Rt.provide(this._host);this.state=at(this._store);this._userIdleController=new hi(this._host,this._store);this._handleIdleChange=Z(this._host,"vds-user-idle-change",(function(e){t._store.userIdle.set(e.detail);t._satisfyMediaRequest("userIdle",e)}));this._pendingMediaRequests={loading:[],play:[],pause:[],volume:[],fullscreen:[],seeked:[],seeking:[],userIdle:[]};this._handleStartLoadingRequest=Z(this._host,"vds-start-loading",this._createMediaRequestHandler("loading",(function(e){if(t.state.canLoad)return;t._pendingMediaRequests.loading.push(e);t._provider.startLoadingMedia()})));this._handleMuteRequest=Z(this._host,"vds-mute-request",this._createMediaRequestHandler("muted",(function(e){if(t.state.muted)return;t._pendingMediaRequests.volume.push(e);t.provider.muted=true})));this._handleUnmuteRequest=Z(this._host,"vds-unmute-request",this._createMediaRequestHandler("muted",(function(e){if(!t.state.muted)return;t._pendingMediaRequests.volume.push(e);t.provider.muted=false;if(t.state.volume===0){t._pendingMediaRequests.volume.push(e);t.provider.volume=.25}})));this._handlePlayRequest=Z(this._host,"vds-play-request",this._createMediaRequestHandler("paused",(function(e){if(!t.state.paused)return;t._pendingMediaRequests.play.push(e);t.provider.paused=false})));this._handlePauseRequest=Z(this._host,"vds-pause-request",this._createMediaRequestHandler("paused",(function(e){if(t.state.paused)return;t._pendingMediaRequests.pause.push(e);t.provider.paused=true})));this._isSeekingRequestPending=false;this._handleSeekingRequest=Z(this._host,"vds-seeking-request",this._createMediaRequestHandler("seeking",(function(e){t._stopWaiting();t._pendingMediaRequests.seeking.push(e);t._isSeekingRequestPending=true;t._store.seeking.set(true)})));this._handleSeekRequest=Z(this._host,"vds-seek-request",this._createMediaRequestHandler("seeking",(function(e){if(t.store.ended){t._isReplay=true}t._pendingMediaRequests.seeked.push(e);t._isSeekingRequestPending=false;var i=e.detail;if(t.state.duration-e.detail<.25){i=t.state.duration}t.provider.currentTime=i})));this._handleVolumeChangeRequest=Z(this._host,"vds-volume-change-request",this._createMediaRequestHandler("volume",(function(e){var i=e.detail;if(t.state.volume===i)return;t._pendingMediaRequests.volume.push(e);t.provider.volume=i;if(i>0&&t.state.muted){t._pendingMediaRequests.volume.push(e);t.provider.muted=false}})));this._handleEnterFullscreenRequest=Z(this._host,"vds-enter-fullscreen-request",this._createMediaRequestHandler("fullscreen",(function(e){return __awaiter(t,void 0,void 0,(function(){var t;var i,n,r;return __generator(this,(function(o){switch(o.label){case 0:if(this.state.fullscreen)return[2];t=(i=e.detail)!==null&&i!==void 0?i:"media";if(!(t==="media"&&this._host.canFullscreen))return[3,2];this._pendingMediaRequests.fullscreen.push(e);return[4,(r=(n=this._host).enterFullscreen)===null||r===void 0?void 0:r.call(n)];case 1:o.sent();return[3,4];case 2:if(!this.provider)return[3,4];this._pendingMediaRequests.fullscreen.push(e);return[4,this.provider.enterFullscreen()];case 3:o.sent();o.label=4;case 4:return[2]}}))}))})));this._handleExitFullscreenRequest=Z(this._host,"vds-exit-fullscreen-request",this._createMediaRequestHandler("fullscreen",(function(e){return __awaiter(t,void 0,void 0,(function(){var t;var i,n,r;return __generator(this,(function(o){switch(o.label){case 0:if(!this.state.fullscreen)return[2];t=(i=e.detail)!==null&&i!==void 0?i:"media";if(!(t==="media"&&this._host.canFullscreen))return[3,2];this._pendingMediaRequests.fullscreen.push(e);return[4,(r=(n=this._host).exitFullscreen)===null||r===void 0?void 0:r.call(n)];case 1:o.sent();return[3,4];case 2:if(!this.provider)return[3,4];this._pendingMediaRequests.fullscreen.push(e);return[4,this.provider.exitFullscreen()];case 3:o.sent();o.label=4;case 4:return[2]}}))}))})));this._handleResumeIdlingRequest=Z(this._host,"vds-resume-user-idle-request",(function(e){if(!t._mediaRequestEventGateway(e))return;t._pendingMediaRequests.userIdle.push(e);t._userIdleController.paused=false}));this._handlePauseIdlingRequest=Z(this._host,"vds-pause-user-idle-request",(function(e){if(!t._mediaRequestEventGateway(e))return;t._pendingMediaRequests.userIdle.push(e);t._userIdleController.paused=true}));this._handleShowPosterRequest=Z(this._host,"vds-show-poster-request",this._createMediaRequestHandler("poster",(function(){t._provider.canLoadPoster=true})));this._handleHidePosterRequest=Z(this._host,"vds-hide-poster-request",this._createMediaRequestHandler("poster",(function(){t._provider.canLoadPoster=false})));this._handleLoopRequest=this._createMediaRequestHandler("loop",(function(){window.requestAnimationFrame((function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);this._isLooping=true;this._isReplay=true;return[4,this._provider.play()];case 1:t.sent();return[3,3];case 2:e=t.sent();this._isReplay=false;this._isLooping=false;return[3,3];case 3:return[2]}}))}))}))}));this._handleFullscreenChange=Z(this._host,"vds-fullscreen-change",(function(e){var i;t._store.fullscreen.set(e.detail);if(e.target!==t._host)return;t._satisfyMediaRequest("fullscreen",e);(i=t._provider)===null||i===void 0?void 0:i.dispatchEvent(te("vds-fullscreen-change",{detail:e.detail,triggerEvent:e}))}));this._handleFullscreenError=Z(this._host,"vds-fullscreen-error",(function(e){var i;if(e.target!==t._host)return;t._satisfyMediaRequest("fullscreen",e);(i=t._provider)===null||i===void 0?void 0:i.dispatchEvent(te("vds-fullscreen-error",{detail:e.detail,triggerEvent:e}))}));this._isReplay=false;this._isLooping=false;this._firingWaiting=false;this._mediaEvents=[];this._handleSeeking=G((function(e){t._mediaEvents.push(e);t._store.seeking.set(true);t._store.currentTime.set(e.detail);t._satisfyMediaRequest("seeking",e)}),150,{leading:true});this._fireWaiting=Q((function(){var e;if(!t._originalWaitingEvent)return;t._firingWaiting=true;var i=te("vds-waiting",t._originalWaitingEvent);t._mediaEvents.push(i);t._store.waiting.set(true);t._store.playing.set(false);(e=t._provider)===null||e===void 0?void 0:e.dispatchEvent(i);t._originalWaitingEvent=void 0;t._firingWaiting=false}),300);this._skipInitialSrcChange=true;Ce(e,di,(function(e,i){t.attachMediaProvider(e,i)}));e.addController({hostConnected:function(){if(!t.state.canPlay){t._host.setAttribute("aria-busy","true")}},hostDisconnected:function(){t._clearMediaStateTracking();t._clearPendingMediaRequests();t.providerQueue.destroy();t.providerDisposal.empty();t._skipInitialSrcChange=true;t._disconnectDisposal.empty()}})}Object.defineProperty(e.prototype,"logLevel",{get:function(){var e,t;return(t=(e=this._logController)===null||e===void 0?void 0:e.logLevel)!==null&&t!==void 0?t:"silent"},set:function(e){},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"provider",{get:function(){return this._provider},enumerable:false,configurable:true});e.prototype.attachMediaProvider=function(e,t){var i=this;if(!fe(this.provider)||this.provider===e)return;this._handleMediaProviderDisconnect();this._provider=e;this._providerContext.value.set(e);st(this._provider._store,this._store);this._attachMediaEventListeners();e.attachMediaController(this,(function(e){return i._disconnectDisposal.add(e)}));this._flushMediaProviderConnectedQueue();t(this._handleMediaProviderDisconnect.bind(this))};e.prototype._handleMediaProviderDisconnect=function(){if(fe(this.provider))return;this._stopWaiting();this.providerQueue.destroy();this.providerDisposal.empty();this._provider=void 0;this._providerContext.value.set(void 0);Tt(this._store);this._store.viewType.set("unknown")};e.prototype._flushMediaProviderConnectedQueue=function(){var e=this;this.providerQueue.start();this.providerDisposal.add((function(){e.providerQueue.stop()}))};Object.defineProperty(e.prototype,"store",{get:function(){return this._mediaStoreProvider.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_store",{get:function(){return this._mediaStoreProvider.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"idleDelay",{get:function(){return this._userIdleController.delay},set:function(e){this._userIdleController.delay=e},enumerable:false,configurable:true});e.prototype._clearPendingMediaRequests=function(){var e=this;Je(this._pendingMediaRequests).forEach((function(t){e._pendingMediaRequests[t]=[]}))};e.prototype._satisfyMediaRequest=function(e,t){var i=this._pendingMediaRequests[e].shift();if(i){t.requestEvent=i;ne(t,i)}};e.prototype._mediaRequestEventGateway=function(e){e.stopPropagation();return true};e.prototype._createMediaRequestHandler=function(e,t){var i=this;return function(n){if(!i._mediaRequestEventGateway(n))return;if(i._provider){t(n);return}i.providerQueue.queue(e,(function(){t(n)}))}};e.prototype._attachMediaEventListeners=function(){if(!this._provider)return;var e={"vds-can-load":this._handleCanLoad,"vds-load-start":this._handleLoadStart,"vds-loaded-data":this._handleLoadedData,"vds-loaded-metadata":this._handleLoadedMetadata,"vds-can-play":this._handleCanPlay,"vds-can-play-through":this._handleCanPlayThrough,"vds-current-src-change":this._handleCurrentSrcChange,"vds-autoplay":this._handleAutoplay,"vds-autoplay-fail":this._handleAutoplayFail,"vds-loop-request":this._handleLoopRequest,"vds-play":this._handlePlay,"vds-play-fail":this._handlePlayFail,"vds-playing":this._handlePlaying,"vds-pause":this._handlePause,"vds-time-update":this._handleTimeUpdate,"vds-volume-change":this._handleVolumeChange,"vds-seeking":this._handleSeeking,"vds-seeked":this._handleSeeked,"vds-waiting":this._handleWaiting,"vds-ended":this._handleEnded,"vds-autoplay-change":this._handleAutoplayChange,"vds-error":this._handleError,"vds-fullscreen-support-change":this._handleFullscreenSupportChange,"vds-poster-change":this._handlePosterChange,"vds-loop-change":this._handleLoopChange,"vds-playsinline-change":this._handlePlaysinlineChange,"vds-controls-change":this._handleControlsChange,"vds-media-type-change":this._handleMediaTypeChange,"vds-view-type-change":this._handleViewTypeChange,"vds-duration-change":this._handleDurationChange,"vds-progress":this._handleProgress,"vds-src-change":this._handleSrcChange};for(var t=0,i=Je(e);t<i.length;t++){var n=i[t];var r=e[n].bind(this);this.providerDisposal.add(X(this._provider,n,r))}};e.prototype._clearMediaStateTracking=function(){this._isReplay=false;this._isLooping=false;this._firingWaiting=false;this._originalWaitingEvent=void 0;this._mediaEvents=[]};e.prototype._findLastMediaEvent=function(e){return this._mediaEvents[this._mediaEvents.map((function(e){return e.type})).lastIndexOf(e)]};e.prototype._handleCanLoad=function(e){this._store.canLoad.set(true);this._mediaEvents.push(e);this._satisfyMediaRequest("loading",e)};e.prototype._updateMetadata=function(e){this._store.currentSrc.set(e.currentSrc);this._store.mediaType.set(e.mediaType);this._store.viewType.set(e.viewType)};e.prototype._handleLoadStart=function(e){this._updateMetadata(e.detail);this._mediaEvents.push(e);ne(e,this._findLastMediaEvent("vds-src-change"));ne(e,this._findLastMediaEvent("vds-can-load"))};e.prototype._handleLoadedData=function(e){this._mediaEvents.push(e);ne(e,this._findLastMediaEvent("vds-load-start"))};e.prototype._handleLoadedMetadata=function(e){this._updateMetadata(e.detail);this._mediaEvents.push(e);ne(e,this._findLastMediaEvent("vds-load-start"))};e.prototype._handleCanPlay=function(e){var t;this._mediaEvents.push(e);if(((t=e.triggerEvent)===null||t===void 0?void 0:t.type)!=="loadedmetadata"){ne(e,this._findLastMediaEvent("vds-loaded-metadata"))}this._store.canPlay.set(true);this._store.duration.set(e.detail.duration);this._host.setAttribute("aria-busy","false")};e.prototype._handleCanPlayThrough=function(e){this._store.canPlay.set(true);this._store.duration.set(e.detail.duration);ne(e,this._findLastMediaEvent("vds-can-play"))};e.prototype._handleAutoplay=function(e){this._mediaEvents.push(e);ne(e,this._findLastMediaEvent("vds-play"));ne(e,this._findLastMediaEvent("vds-can-play"));this._store.autoplayError.set(void 0)};e.prototype._handleAutoplayFail=function(e){ne(e,this._findLastMediaEvent("vds-play-fail"));ne(e,this._findLastMediaEvent("vds-can-play"));this._store.autoplayError.set(e.detail);this._clearMediaStateTracking()};e.prototype._handlePlay=function(e){var t;if(this._isLooping||!this.state.paused){e.stopImmediatePropagation();return}this._mediaEvents.push(e);ne(e,this._findLastMediaEvent("vds-waiting"));this._satisfyMediaRequest("play",e);this._store.paused.set(false);this._store.autoplayError.set(void 0);if(this.state.ended||this._isReplay){this._isReplay=false;this._store.ended.set(false);var i=te("vds-replay",{triggerEvent:e});(t=this._provider)===null||t===void 0?void 0:t.dispatchEvent(i)}};e.prototype._handlePlayFail=function(e){this._mediaEvents.push(e);this._stopWaiting();ne(e,this._findLastMediaEvent("vds-play"));this._store.paused.set(true);this._store.playing.set(false);this._satisfyMediaRequest("play",e);this._clearMediaStateTracking()};e.prototype._handlePlaying=function(e){var t;this._mediaEvents.push(e);var i=this._findLastMediaEvent("vds-play");if(i){ne(e,this._findLastMediaEvent("vds-waiting"));ne(e,i)}else{ne(e,this._findLastMediaEvent("vds-seeked"))}this._stopWaiting();this._clearMediaStateTracking();this._store.paused.set(false);this._store.playing.set(true);this._store.seeking.set(false);this._store.ended.set(false);if(this._isLooping){e.stopImmediatePropagation();this._isLooping=false;return}if(!this.state.started){this._store.started.set(true);(t=this._provider)===null||t===void 0?void 0:t.dispatchEvent(te("vds-started",{triggerEvent:e}))}};e.prototype._handlePause=function(e){if(this._isLooping){e.stopImmediatePropagation();return}ne(e,this._findLastMediaEvent("vds-seeked"));this._satisfyMediaRequest("pause",e);this._store.paused.set(true);this._store.playing.set(false);this._store.seeking.set(false);this._stopWaiting();this._clearMediaStateTracking()};e.prototype._handleTimeUpdate=function(e){var t=e.detail,i=t.currentTime,n=t.played;this._store.currentTime.set(i);this._store.played.set(n);this._store.waiting.set(false)};e.prototype._handleVolumeChange=function(e){this._store.volume.set(e.detail.volume);this._store.muted.set(e.detail.muted||e.detail.volume===0);this._satisfyMediaRequest("volume",e)};e.prototype._handleSeeked=function(e){if(this._isSeekingRequestPending){this._store.seeking.set(true);e.stopImmediatePropagation()}else if(this.state.seeking){this._mediaEvents.push(e);ne(e,this._findLastMediaEvent("vds-waiting"));ne(e,this._findLastMediaEvent("vds-seeking"));if(this.state.paused){this._stopWaiting()}this._store.seeking.set(false);if(e.detail!==this.state.duration){this._store.ended.set(false)}this._store.currentTime.set(e.detail);this._satisfyMediaRequest("seeked",e)}};e.prototype._stopWaiting=function(){this._fireWaiting.cancel();this._store.waiting.set(false)};e.prototype._handleWaiting=function(e){if(this._firingWaiting)return;e.stopImmediatePropagation();this._originalWaitingEvent=e;this._fireWaiting()};e.prototype._handleEnded=function(e){if(this._isLooping){e.stopImmediatePropagation();return}this._stopWaiting();this._store.paused.set(true);this._store.playing.set(false);this._store.seeking.set(false);this._store.ended.set(true);this._clearMediaStateTracking()};e.prototype._handleAutoplayChange=function(e){this._store.autoplay.set(e.detail)};e.prototype._handleCurrentSrcChange=function(e){this._store.currentSrc.set(e.detail);if(this._skipInitialSrcChange){this._skipInitialSrcChange=false;return}this._clearMediaStateTracking();qt(this._store);this._host.setAttribute("aria-busy","true")};e.prototype._handleError=function(e){this._store.error.set(e.detail)};e.prototype._handleFullscreenSupportChange=function(e){this._store.canFullscreen.set(e.detail)};e.prototype._handlePosterChange=function(e){this._store.poster.set(e.detail)};e.prototype._handleLoopChange=function(e){this._store.loop.set(e.detail)};e.prototype._handlePlaysinlineChange=function(e){this._store.playsinline.set(e.detail)};e.prototype._handleControlsChange=function(e){this._store.controls.set(e.detail)};e.prototype._handleMediaTypeChange=function(e){this._store.mediaType.set(e.detail)};e.prototype._handleDurationChange=function(e){var t=e.detail;this._store.duration.set(!isNaN(t)?t:0)};e.prototype._handleProgress=function(e){var t=e.detail,i=t.buffered,n=t.seekable;var r=i.length===0?0:i.end(i.length-1);var o=n.length===0?0:n.end(n.length-1);this._store.buffered.set(i);this._store.bufferedAmount.set(r);this._store.seekable.set(n);this._store.seekableAmount.set(o)};e.prototype._handleSrcChange=function(e){this._store.src.set(e.detail)};e.prototype._handleViewTypeChange=function(e){this._store.viewType.set(e.detail)};return e}();var fi=function(){function e(e,t,i){this._host=e;this._store=t;this._mediaProps=i;this._disposal=new J;this._host.addController({hostConnected:this._hostConnected.bind(this),hostDisconnected:this._hostDisconnected.bind(this)})}e.prototype._hostConnected=function(){var e=this;vt((function(){var t=function(t){var i=e._store[t];if(i){var n=e._getMediaAttrName(t);var r=i.subscribe((function(i){window===null||window===void 0?void 0:window.requestAnimationFrame((function(){e._handleValueChange(t,n,i)}))}));e._disposal.add(r)}};for(var i=0,n=e._mediaProps;i<n.length;i++){var r=n[i];t(r)}}))};e.prototype._hostDisconnected=function(){for(var e=0,t=this._mediaProps;e<t.length;e++){var i=t[e];this._handleDisconnect(i,this._getMediaAttrName(i))}this._disposal.empty()};e.prototype._getMediaAttrName=function(e){return yt(e)};return e}();var vi=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._handleValueChange=function(e,t,i){var n=this;window.requestAnimationFrame((function(){ct(n._host,t,_e(i)||ve(i)?String(i):!!i)}))};t.prototype._handleDisconnect=function(e,t){this._host.removeAttribute(t)};return t}(fi);function _i(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(vi.bind.apply(vi,__spreadArray([void 0],e,false)))}var gi=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._handleValueChange=function(e,t,i){var n=this;window.requestAnimationFrame((function(){n._host.style.setProperty(n._getCssPropName(t),_e(i)||ve(i)?String(i):null)}))};t.prototype._getCssPropName=function(e){return"--vds-".concat(e)};t.prototype._handleDisconnect=function(e,t){this._host.style.setProperty(this._getCssPropName(t),null)};return t}(fi);function yi(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(gi.bind.apply(gi,__spreadArray([void 0],e,false)))}var mi=Symbol("@vidstack/media-discovery");var bi=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.controller=new pi(t);t.__mediaFullscreen=false;t.__mediaIsVideoView=false;t.__mediaPlaysinline=false;t.screenOrientationController=new Xe(t);t.fullscreenController=new Ne(t,t.screenOrientationController);Pe(t,"vds-media-connect",{register:mi});$t(t,"fullscreen",(function(e){t.__mediaFullscreen=e}));$t(t,"viewType",(function(e){t.__mediaIsVideoView=e==="video"}));$t(t,"playsinline",(function(e){t.__mediaPlaysinline=e}));t._bindMediaAttributes();t._bindMediaCSSProperties();return t}Object.defineProperty(t,"styles",{get:function(){return[Wt(__makeTemplateObject([":host{display:inline-block;position:relative;contain:content}:host([hidden]){display:none}"],[":host{display:inline-block;position:relative;contain:content}:host([hidden]){display:none}"]))]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"provider",{get:function(){return this.controller.provider},enumerable:false,configurable:true});t.prototype.update=function(t){ct(this,"hide-ui",this._shouldHideMediaUI());e.prototype.update.call(this,t)};t.prototype.render=function(){return x(__makeTemplateObject(["<slot></slot>"],["<slot></slot>"]))};Object.defineProperty(t.prototype,"canFullscreen",{get:function(){return this.fullscreenController.isSupported},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fullscreen",{get:function(){return this.fullscreenController.isFullscreen},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fullscreenOrientation",{get:function(){return this.fullscreenController.screenOrientationLock},set:function(e){var t=this.fullscreenController.screenOrientationLock;if(t!==e){this.fullscreenController.screenOrientationLock=e;this.requestUpdate("fullscreen-orientation",t)}},enumerable:false,configurable:true});t.prototype.enterFullscreen=function(){return this.fullscreenController.enterFullscreen()};t.prototype.exitFullscreen=function(){return this.fullscreenController.exitFullscreen()};t.prototype._bindMediaAttributes=function(){_i(this,this.controller.store,["autoplay","autoplayError","canLoad","canPlay","canFullscreen","ended","error","fullscreen","userIdle","loop","mediaType","muted","paused","playing","playsinline","seeking","started","viewType","waiting"])};t.prototype._bindMediaCSSProperties=function(){yi(this,this.controller.store,["bufferedAmount","currentTime","duration","seekableAmount"])};t.prototype._shouldHideMediaUI=function(){return Se&&this.__mediaIsVideoView&&(!this.__mediaPlaysinline||this.__mediaFullscreen)};return t}(oi);jt([li()],bi.prototype,"__mediaFullscreen",2);jt([li()],bi.prototype,"__mediaIsVideoView",2);jt([li()],bi.prototype,"__mediaPlaysinline",2);jt([ui({attribute:"fullscreen-orientation"})],bi.prototype,"fullscreenOrientation",1);dt("vds-media",bi);var wi=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;var Ei=/\.(mp4|og[gv]|webm|mov|m4v|avi)($|\?)/i;function Ci(e){if(wi.test(e))return"audio";if(Ei.test(e))return"video";return"unknown"}var Pi=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.preload="metadata";t._timeRAF=void 0;t._hasMediaElementConnected=false;t._mediaElementDisposal=new J;t._isMediaWaiting=false;t._ignoreNextAbortEvent=false;t._ignoreNextEmptiedEvent=false;return t}Object.defineProperty(t.prototype,"mediaElement",{get:function(){return this._mediaElement},enumerable:false,configurable:true});t.prototype.disconnectedCallback=function(){this._isMediaWaiting=false;e.prototype.disconnectedCallback.call(this);this._cancelTimeUpdates()};t.prototype.destroy=function(){if(this.mediaElement){this.mediaElement.pause();this.mediaElement.src="";this.mediaElement.innerHTML="";this.mediaElement.load()}e.prototype.destroy.call(this)};t.prototype._cancelTimeUpdates=function(){if(ve(this._timeRAF))window.cancelAnimationFrame(this._timeRAF);this._timeRAF=void 0};t.prototype._requestTimeUpdates=function(){if(!pe(this._timeRAF))return;this._requestTimeUpdate()};t.prototype._requestTimeUpdate=function(){var e=this;var t,i;var n=(i=(t=this.mediaElement)===null||t===void 0?void 0:t.currentTime)!==null&&i!==void 0?i:0;if(this.state.currentTime!==n){this._updateCurrentTime(n)}this._timeRAF=window.requestAnimationFrame((function(){if(pe(e._timeRAF))return;e._requestTimeUpdate()}))};t.prototype._updateCurrentTime=function(e,t){var i,n;this.dispatchEvent(te("vds-time-update",{detail:{currentTime:Math.min(e,(n=(i=this.mediaElement)===null||i===void 0?void 0:i.duration)!==null&&n!==void 0?n:0),played:this.mediaElement.played},triggerEvent:t}))};t.prototype.handleDefaultSlotChange=function(){this._handleMediaElementDisconnect();this._handleMediaElementConnect()};Object.defineProperty(t.prototype,"_canMediaElementConnect",{get:function(){return this.canLoad&&!fe(this.mediaElement)&&!this._hasMediaElementConnected},enumerable:false,configurable:true});t.prototype._findSlottedMediaElement=function(){var e;var t=ft(this)[0];var i=(e=t===null||t===void 0?void 0:t.tagName)!==null&&e!==void 0?e:"";if(!/^(audio|video)$/i.test(i));this._mediaElement=t!==null&&t!==void 0?t:void 0};t.prototype._handleMediaElementConnect=function(){var e=this;window.requestAnimationFrame((function(){e._findSlottedMediaElement();if(!e._canMediaElementConnect)return;var t=e.mediaElement;if(t.hasAttribute("loop")){e.loop=true}t.removeAttribute("loop");t.removeAttribute("poster");ct(t,"controls",e.controls);if(!e.state.canFullscreen&&e.fullscreenController.isSupported){e.dispatchEvent(te("vds-fullscreen-support-change",{detail:e.canFullscreen}))}e._attachMediaEventListeners();e._observePlaysinline();e._observeMediaSources();if(e.canLoadPoster&&e.poster.length>0&&t.getAttribute("poster")!==e.poster){t.setAttribute("poster",e.poster)}e._startPreloadingMedia();e._hasMediaElementConnected=true;e._disconnectDisposal.add(e._handleMediaElementDisconnect.bind(e))}))};t.prototype._handleMediaElementDisconnect=function(){var e=this;var t;this._cancelTimeUpdates();window.requestAnimationFrame((function(){e._mediaElementDisposal.empty();e._mediaElement=void 0}));if(this._hasMediaElementConnected&&false){(t=this._logger)===null||t===void 0?void 0:t.infoGroup("Media element disconnected").labelledLog("Media Element",this.mediaElement).dispatch()}this._hasMediaElementConnected=false};t.prototype.startLoadingMedia=function(){e.prototype.startLoadingMedia.call(this);this._handleMediaElementConnect()};t.prototype._startPreloadingMedia=function(){var e=this;if(this.state.canPlay)return;this.mediaElement.setAttribute("preload",this.preload);var t=this.mediaElement.networkState>=1;this._ignoreNextAbortEvent=t;this._ignoreNextEmptiedEvent=t;this.mediaElement.load();setTimeout((function(){e._ignoreNextAbortEvent=false;e._ignoreNextEmptiedEvent=false}),0)};t.prototype._observePlaysinline=function(){var e=this;var t=function(){return e.mediaElement.hasAttribute("playsinline")};this._handlePlaysinlineChange(t());var i=new MutationObserver((function(){return e._handlePlaysinlineChange(t())}));i.observe(this.mediaElement,{attributeFilter:["playsinline"]});this._mediaElementDisposal.add((function(){return i.disconnect()}))};t.prototype._handlePlaysinlineChange=function(e){this.dispatchEvent(te("vds-playsinline-change",{detail:e}))};t.prototype._observeMediaSources=function(){var e=this;this._handleSrcChange(this._getMediaSources());var t=new MutationObserver((function(){return e._handleSrcChange(e._getMediaSources())}));t.observe(this.mediaElement,{attributeFilter:["src"],subtree:true});this._mediaElementDisposal.add((function(){return t.disconnect()}))};t.prototype._handleSrcChange=function(e){var t=this.state.src;if(!ut(t,e)){this.dispatchEvent(te("vds-src-change",{detail:e}))}};t.prototype._getMediaSources=function(){var e,t,i;var n=__spreadArray([(e=this.mediaElement)===null||e===void 0?void 0:e.src],Array.from((i=(t=this.mediaElement)===null||t===void 0?void 0:t.querySelectorAll("source"))!==null&&i!==void 0?i:[]).map((function(e){return e.src})),true).filter(Boolean);return Array.from(new Set(n))};t.prototype._getMediaMetadata=function(){return{src:this.state.src,currentSrc:this.mediaElement.currentSrc,duration:this.mediaElement.duration||0,poster:this.mediaElement.poster,mediaType:this._getMediaType(),viewType:this.state.viewType}};t.prototype._attachMediaEventListeners=function(){var e=this;if(fe(this.mediaElement))return;var t={abort:this._handleAbort,canplay:this._handleCanPlay,canplaythrough:this._handleCanPlayThrough,durationchange:this._handleDurationChange,emptied:this._handleEmptied,ended:this._handleEnded,error:this._handleError,loadeddata:this._handleLoadedData,loadedmetadata:this._handleLoadedMetadata,loadstart:this._handleLoadStart,pause:this._handlePause,play:this._handlePlay,playing:this._handlePlaying,progress:this._handleProgress,ratechange:this._handleRateChange,seeked:this._handleSeeked,seeking:this._handleSeeking,stalled:this._handleStalled,suspend:this._handleSuspend,volumechange:this._handleVolumeChange,waiting:this._handleWaiting};Je(t).forEach((function(i){var n=t[i].bind(e);var r=X(e.mediaElement,i,(function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,n(t)];case 1:e.sent();return[2]}}))}))}));e._mediaElementDisposal.add(r)}))};t.prototype._handleAbort=function(e){if(this._ignoreNextAbortEvent)return;this.dispatchEvent(te("vds-abort",{triggerEvent:e}));this._handleCurrentSrcChange("",e)};t.prototype._handleCanPlay=function(e){this._handleMediaReady({event:e,duration:this.mediaElement.duration})};t.prototype._handleCanPlayThrough=function(e){if(this.state.started)return;this.dispatchEvent(te("vds-can-play-through",{triggerEvent:e,detail:{duration:this.mediaElement.duration}}))};t.prototype._handleLoadStart=function(e){this._handleCurrentSrcChange(this.mediaElement.currentSrc,e);if(this.mediaElement.currentSrc===""){this._handleAbort();return}this.dispatchEvent(te("vds-load-start",{triggerEvent:e,detail:this._getMediaMetadata()}))};t.prototype._handleEmptied=function(e){if(this._ignoreNextEmptiedEvent)return;this.dispatchEvent(te("vds-emptied",{triggerEvent:e}))};t.prototype._handleLoadedData=function(e){this.dispatchEvent(te("vds-loaded-data",{triggerEvent:e}))};t.prototype._handleLoadedMetadata=function(e){this.dispatchEvent(te("vds-volume-change",{detail:{volume:this.mediaElement.volume,muted:this.mediaElement.muted}}));this.dispatchEvent(te("vds-loaded-metadata",{triggerEvent:e,detail:this._getMediaMetadata()}))};t.prototype._determineMediaType=function(e){this.dispatchEvent(te("vds-media-type-change",{detail:this._getMediaType(),triggerEvent:e}))};t.prototype._handlePlay=function(e){var t=te("vds-play",{triggerEvent:e});t.autoplay=this._attemptingAutoplay;this.dispatchEvent(t)};t.prototype._handlePause=function(e){if(this.mediaElement.readyState===1&&!this._isMediaWaiting){return}this._isMediaWaiting=false;this._cancelTimeUpdates();this.dispatchEvent(te("vds-pause",{triggerEvent:e}))};t.prototype._handlePlaying=function(e){this._isMediaWaiting=false;var t=te("vds-playing",{triggerEvent:e});this.dispatchEvent(t);this._requestTimeUpdates()};t.prototype._handleDurationChange=function(e){if(this.mediaElement.ended){this._updateCurrentTime(this.mediaElement.duration,e)}this.dispatchEvent(te("vds-duration-change",{detail:this.mediaElement.duration,triggerEvent:e}))};t.prototype._handleProgress=function(e){this.dispatchEvent(te("vds-progress",{triggerEvent:e,detail:{buffered:this.mediaElement.buffered,seekable:this.mediaElement.seekable}}))};t.prototype._handleRateChange=function(e){throw Error("Not implemented")};t.prototype._handleSeeking=function(e){this.dispatchEvent(te("vds-seeking",{detail:this.mediaElement.currentTime,triggerEvent:e}))};t.prototype._handleSeeked=function(e){var t=te("vds-seeked",{detail:this.mediaElement.currentTime,triggerEvent:e});this.dispatchEvent(t);var i=this.mediaElement.currentTime;if(Math.trunc(i)===Math.trunc(this.mediaElement.duration)&&Ue(this.mediaElement.duration)>Ue(i)){this._updateCurrentTime(this.mediaElement.duration,e);if(!this.mediaElement.ended){try{this.play()}catch(e){}}}};t.prototype._handleStalled=function(e){this.dispatchEvent(te("vds-stalled",{triggerEvent:e}));if(this.mediaElement.readyState<3){this._isMediaWaiting=true;this.dispatchEvent(te("vds-waiting",{triggerEvent:e}))}};t.prototype._handleVolumeChange=function(e){this.dispatchEvent(te("vds-volume-change",{detail:{volume:this.mediaElement.volume,muted:this.mediaElement.muted},triggerEvent:e}))};t.prototype._handleWaiting=function(e){if(this.mediaElement.readyState<3){this._isMediaWaiting=true;this.dispatchEvent(te("vds-waiting",{triggerEvent:e}))}};t.prototype._handleSuspend=function(e){var t=te("vds-suspend",{triggerEvent:e});this.dispatchEvent(t)};t.prototype._handleEnded=function(e){this._cancelTimeUpdates();this._updateCurrentTime(this.mediaElement.duration,e);var t=te("vds-end",{triggerEvent:e});this.dispatchEvent(t);if(this.state.loop){this._handleLoop()}else{this.dispatchEvent(te("vds-ended",{triggerEvent:e}))}};t.prototype._handleLoop=function(){var e=fe(this.controls);if(e){this.mediaElement.controls=false}this.dispatchEvent(te("vds-loop-request"))};t.prototype._handleError=function(e){var t=this.mediaElement.error;if(!t)return;this.dispatchEvent(te("vds-error",{detail:{message:t.message,code:t.code,mediaError:t},triggerEvent:e}))};t.prototype._getPaused=function(){var e,t;return(t=(e=this.mediaElement)===null||e===void 0?void 0:e.paused)!==null&&t!==void 0?t:true};t.prototype._getVolume=function(){var e,t;return(t=(e=this.mediaElement)===null||e===void 0?void 0:e.volume)!==null&&t!==void 0?t:1};t.prototype._setVolume=function(e){this.mediaElement.volume=e};t.prototype._getCurrentTime=function(){var e,t;return(t=(e=this.mediaElement)===null||e===void 0?void 0:e.currentTime)!==null&&t!==void 0?t:0};t.prototype._setCurrentTime=function(e){if(this.mediaElement.currentTime!==e){this.mediaElement.currentTime=e}};t.prototype._getMuted=function(){var e,t;return(t=(e=this.mediaElement)===null||e===void 0?void 0:e.muted)!==null&&t!==void 0?t:false};t.prototype._setMuted=function(e){this.mediaElement.muted=e};t.prototype.play=function(){var e;return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);this._throwIfNotReadyForPlayback();return[4,this._resetPlaybackIfEnded()];case 1:n.sent();return[2,(e=this.mediaElement)===null||e===void 0?void 0:e.play()];case 2:t=n.sent();i=te("vds-play-fail");i.autoplay=this._attemptingAutoplay;i.error=t;throw t;case 3:return[2]}}))}))};t.prototype.pause=function(){var e;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,(e=this.mediaElement)===null||e===void 0?void 0:e.pause()]}))}))};t.prototype._getMediaType=function(){return Ci(this.state.currentSrc)};return t}(ci);jt([ui()],Pi.prototype,"preload",2);var ki=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t,"styles",{get:function(){return[Wt(__makeTemplateObject([":host{display:inline-block}:host([hidden]){display:none}"],[":host{display:inline-block}:host([hidden]){display:none}"]))]},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);this.dispatchEvent(te("vds-view-type-change",{detail:"audio"}))};return t}(Pi);dt("vds-audio",ki);var zi=Wt(__makeTemplateObject([":host{display:table;contain:content;user-select:none;cursor:pointer;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}"],[":host{display:table;contain:content;user-select:none;cursor:pointer;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}"]));var Si=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.pressed=false;t.disabled=false;t._handleButtonClickCapture=Z(t,"click",(function(e){if(t.disabled){e.preventDefault();e.stopImmediatePropagation()}}),{capture:true});We(t);["pointerup","keydown"].forEach((function(e){Z(t,e,(function(e){if(t.disabled||_t(e)&&!gt(e)){return}t._handleButtonClick(e)}))}));return t}Object.defineProperty(t,"styles",{get:function(){return[zi]},enumerable:false,configurable:true});Object.defineProperty(t,"parts",{get:function(){return[]},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);ht(this,"tabindex","0");ht(this,"role","button");this._updateAriaPressedAttr()};t.prototype.updated=function(e){if(e.has("pressed")){this._updateAriaPressedAttr()}};t.prototype._updateAriaPressedAttr=function(){ct(this,"aria-pressed",this.pressed?"true":"false")};t.prototype.render=function(){return this._renderDefaultSlot()};t.prototype._renderDefaultSlot=function(){return x(__makeTemplateObject(["<slot></slot>"],["<slot></slot>"]))};t.prototype._handleButtonClick=function(e){this.pressed=!this.pressed};return t}(oi);jt([ui({type:Boolean})],Si.prototype,"pressed",2);jt([ui({type:Boolean,reflect:true})],Si.prototype,"disabled",2);var Ai=function(){function e(e){if(e){this._target=e;this._createLogger(e);this._requests=Ye(e)}else{this._requests=new Ge}}e.prototype.startLoading=function(e){this._dispatchRequest("vds-start-loading",{triggerEvent:e})};e.prototype.play=function(e){this._dispatchRequest("vds-play-request",{triggerEvent:e})};e.prototype.pause=function(e){this._dispatchRequest("vds-pause-request",{triggerEvent:e})};e.prototype.mute=function(e){this._dispatchRequest("vds-mute-request",{triggerEvent:e})};e.prototype.unmute=function(e){this._dispatchRequest("vds-unmute-request",{triggerEvent:e})};e.prototype.enterFullscreen=function(e,t){this._dispatchRequest("vds-enter-fullscreen-request",{triggerEvent:t,detail:e})};e.prototype.exitFullscreen=function(e,t){this._dispatchRequest("vds-exit-fullscreen-request",{triggerEvent:t,detail:e})};e.prototype.seeking=function(e,t){this._dispatchRequest("vds-seeking-request",{detail:e,triggerEvent:t})};e.prototype.seek=function(e,t){this._dispatchRequest("vds-seek-request",{detail:e,triggerEvent:t})};e.prototype.changeVolume=function(e,t){this._dispatchRequest("vds-volume-change-request",{detail:e,triggerEvent:t})};e.prototype.resumeUserIdle=function(e){this._dispatchRequest("vds-resume-user-idle-request",{triggerEvent:e})};e.prototype.pauseUserIdle=function(e){this._dispatchRequest("vds-pause-user-idle-request",{triggerEvent:e})};e.prototype.showPoster=function(e){this._dispatchRequest("vds-show-poster-request",{triggerEvent:e})};e.prototype.hidePoster=function(e){this._dispatchRequest("vds-hide-poster-request",{triggerEvent:e})};e.prototype.setTarget=function(e){if(this._target===e)return;this._target=e;if(e){this._createLogger(e);this._requests.start()}else{this._requests.stop()}};e.prototype._dispatchRequest=function(e,t){var i=this;this._requests.queue(e,(function(){var n;var r=te(e,__assign(__assign({},t),{bubbles:true,composed:true}));(n=i._target)===null||n===void 0?void 0:n.dispatchEvent(r)}))};e.prototype._createLogger=function(e){};return e}();var xi=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t._mediaRemote=new Ai(t);$t(t,"paused",(function(e){t.pressed=!e;ct(t,"paused",e)}));return t}t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);ht(this,"aria-label","Play")};t.prototype._handleButtonClick=function(e){if(this.disabled)return;if(this.pressed){this._mediaRemote.pause(e)}else{this._mediaRemote.play(e)}};return t}(Si);dt("vds-play-button",xi);var Oi=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t._mediaRemote=new Ai(t);t._volume=1;t._muted=false;$t(t,"volume",(function(e){t._volume=e;t._handleMutedChange()}));$t(t,"muted",(function(e){t._muted=e;t._handleMutedChange()}));return t}t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);ht(this,"aria-label","Mute")};t.prototype._handleMutedChange=function(){var e=this._muted||this._volume===0;this.pressed=e;ct(this,"muted",e)};t.prototype._handleButtonClick=function(e){if(this.disabled)return;if(this.pressed){this._mediaRemote.unmute(e)}else{this._mediaRemote.mute(e)}};return t}(Si);dt("vds-mute-button",Oi);function Mi(){var e=it(false);var t=it(false);return{value:it(50),pointerValue:it(0),min:it(0),max:it(100),dragging:e,pointing:t,interactive:nt([e,t],(function(e){var t=e[0],i=e[1];return t||i}))}}var qi=ue(Mi);var Ti=Wt(__makeTemplateObject(["*{box-sizing:border-box;touch-action:none}:host{display:block;contain:layout;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}"],["*{box-sizing:border-box;touch-action:none}:host{display:block;contain:layout;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}"]));var Ri=function(e){e[e["Left"]=-1]="Left";e[e["ArrowLeft"]=-1]="ArrowLeft";e[e["Up"]=-1]="Up";e[e["ArrowUp"]=-1]="ArrowUp";e[e["Right"]=1]="Right";e[e["ArrowRight"]=1]="ArrowRight";e[e["Down"]=1]="Down";e[e["ArrowDown"]=1]="ArrowDown";return e}(Ri||{});var $i=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t._sliderStoreProvider=qi.provide(t);t.disabled=false;t.value=50;t._step=1;t._keyboardStep=1;t.shiftKeyMultiplier=5;t.customValueText=false;t._mediaRemote=new Ai(t);t._disconnectDisposal=new J;t._handlePointerEnter=Z(t,"pointerenter",(function(){if(t.disabled)return;t.setAttribute("pointing","");t.store.pointing.set(true)}));t._handlePointerMove=Z(t,"pointermove",(function(e){if(t.disabled||t.isDragging)return;var i=t._getValueBasedOnThumbPosition(e);t.store.pointerValue.set(i);t._dispatchPointerValueChange(e)}));t._handlePointerLeave=Z(t,"pointerleave",(function(){if(t.disabled)return;t.removeAttribute("pointing");t.store.pointing.set(false)}));t._handlePointerDown=Z(t,"pointerdown",(function(e){if(t.disabled)return;t._startDragging(e);t._onDrag(e)}));t._handleKeydown=Z(t,"keydown",(function(e){if(t.disabled)return;var i=e.key,n=e.shiftKey;var r=Object.keys(Ri).includes(i);if(!r)return;var o=!n?t.keyboardStep:t.keyboardStep*t.shiftKeyMultiplier;var s=Number(Ri[i]);var a=o*s;var u=(t.value+a)/t.step;var l=t.step*u;t.value=t._getClampedValue(l);t._dispatchValueChange(e)}));t._handleFillValueChange=Z(t,"vds-slider-value-change",t._updateFillCSSProps.bind(t));t._handlePointerValueChange=Z(t,"vds-slider-pointer-value-change",t._updatePointerCSSProps.bind(t));t._onDrag=Ct((function(e){if(t.disabled||!t.isDragging)return;var i=t._getValueBasedOnThumbPosition(e);t.store.pointerValue.set(i);t._dispatchPointerValueChange(e)}));t._handleDocumentPointerUp=Z(t,"pointerup",(function(e){if(t.disabled||!t.isDragging)return;t._stopDragging(e)}),{target:document});t._handleDocumentTouchMove=Z(t,"touchmove",(function(e){if(t.disabled||!t.isDragging)return;e.preventDefault()}),{target:document,passive:false});t._handleDocumentPointerMove=Z(t,"pointermove",(function(e){if(t.disabled||!t.isDragging)return;t._onDrag(e)}),{target:document});t._lastDispatchedValue=t.value;t._dispatchValueChange=Ct((function(e){if(t.value===t._lastDispatchedValue)return;t.dispatchEvent(te("vds-slider-value-change",{detail:t.value,triggerEvent:e}));t._lastDispatchedValue=t.value}));t._lastDispatchedPointerValue=t.pointerValue;t._dispatchPointerValueChange=Ct((function(e){if(t.pointerValue===t._lastDispatchedPointerValue)return;var i=["vds-slider-pointer-value-change",t.isDragging&&"vds-slider-drag-value-change"];i.forEach((function(i){if(i){t.dispatchEvent(te(i,{detail:t.pointerValue,triggerEvent:e}))}}));t._lastDispatchedPointerValue=t.pointerValue}));We(t);return t}Object.defineProperty(t,"styles",{get:function(){return[Ti]},enumerable:false,configurable:true});Object.defineProperty(t,"parts",{get:function(){return[]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"store",{get:function(){return this._sliderStoreProvider.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"min",{get:function(){return rt(this.store.min)},set:function(e){this.store.min.set(e)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"max",{get:function(){return rt(this.store.max)},set:function(e){this.store.max.set(e)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"step",{get:function(){return this._step},set:function(e){this._step=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"keyboardStep",{get:function(){return this._keyboardStep},set:function(e){this._keyboardStep=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isDragging",{get:function(){return rt(this.store.dragging)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fillRate",{get:function(){var e=this.max-this.min,t=this.value-this.min;return e>0?t/e:0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fillPercent",{get:function(){return this.fillRate*100},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pointerValue",{get:function(){return rt(this.store.pointerValue)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pointerRate",{get:function(){var e=this.max-this.min,t=this.pointerValue-this.min;return e>0?t/e:0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pointerPercent",{get:function(){return this.pointerRate*100},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){var t=this;e.prototype.connectedCallback.call(this);this._setupAriaAttrs();this._updateFillCSSProps();this._updatePointerCSSProps();this._disconnectDisposal.add(this.store.interactive.subscribe((function(e){ct(t,"interactive",e)})))};t.prototype.willUpdate=function(t){if(t.has("value")||t.has("min")||t.has("max")){this.value=this._getClampedValue(this.value);this.store.value.set(this.value);this._updateFillCSSProps();this._dispatchValueChange()}if(t.has("disabled")&&this.disabled){this.store.dragging.set(false);this.store.pointing.set(false);this.removeAttribute("dragging");this.removeAttribute("pointing");this.removeAttribute("interactive");ct(this,"aria-disabled",this.disabled)}if(!this.customValueText){this._updateAriaValueAttrs()}e.prototype.willUpdate.call(this,t)};t.prototype.disconnectedCallback=function(){this._onDrag.cancel();this._disconnectDisposal.empty();e.prototype.disconnectedCallback.call(this)};t.prototype._updateFillCSSProps=function(){pt(this,"fill-value","".concat(this.value));pt(this,"fill-rate","".concat(this.fillRate));pt(this,"fill-percent","".concat(this.fillPercent,"%"))};t.prototype._updatePointerCSSProps=function(){pt(this,"pointer-value","".concat(this.pointerValue));pt(this,"pointer-rate","".concat(this.pointerRate));pt(this,"pointer-percent","".concat(this.pointerPercent,"%"))};t.prototype.render=function(){return this._renderSlider()};t.prototype._renderSlider=function(){return x(__makeTemplateObject(["",""],["",""]),this._renderDefaultSlot())};t.prototype._renderDefaultSlot=function(){return x(__makeTemplateObject(["<slot></slot>"],["<slot></slot>"]))};t.prototype._setupAriaAttrs=function(){ht(this,"role","slider");ht(this,"tabindex","0");ht(this,"aria-orientation","horizontal");ht(this,"autocomplete","off")};t.prototype._updateAriaValueAttrs=function(){this.setAttribute("aria-valuemin",this._getValueMin());this.setAttribute("aria-valuenow",this._getValueNow());this.setAttribute("aria-valuemax",this._getValueMax());this.setAttribute("aria-valuetext",this._getValueText())};t.prototype._getValueMin=function(){return String(this.min)};t.prototype._getValueNow=function(){return String(this.value)};t.prototype._getValueMax=function(){return String(this.max)};t.prototype._getValueText=function(){return"".concat(Ve(this.value/this.max*100,2),"%")};t.prototype._startDragging=function(e){if(this.isDragging)return;this.store.dragging.set(true);this.setAttribute("dragging","");var t=this._getValueBasedOnThumbPosition(e);this.store.pointerValue.set(t);this._dispatchPointerValueChange(e);this.dispatchEvent(te("vds-slider-drag-start",{triggerEvent:e,detail:this.value}));this._mediaRemote.pauseUserIdle(e)};t.prototype._stopDragging=function(e){if(!this.isDragging)return;this.store.dragging.set(false);this._dispatchValueChange.cancel();this.removeAttribute("dragging");var t=this._getValueBasedOnThumbPosition(e);this.value=t;this.store.pointerValue.set(t);this._dispatchValueChange(e);this._dispatchPointerValueChange(e);this.dispatchEvent(te("vds-slider-drag-end",{triggerEvent:e,detail:this.value}));this._mediaRemote.resumeUserIdle(e)};t.prototype._getClampedValue=function(e){return Ie(this.min,Ve(e,Ue(this.step)),this.max)};t.prototype._getValueFromRate=function(e){var t=Ie(0,e,1);var i=this.max-this.min;var n=i*t;var r=Math.round(n/this.step);var o=this.step*r;return this.min+o};t.prototype._getValueBasedOnThumbPosition=function(e){var t=e.clientX;var i=this.getBoundingClientRect(),n=i.left,r=i.width;var o=(t-n)/r;return this._getValueFromRate(o)};return t}(oi);jt([ui({type:Number})],$i.prototype,"min",1);jt([ui({type:Number})],$i.prototype,"max",1);jt([ui({reflect:true,type:Boolean})],$i.prototype,"disabled",2);jt([ui({type:Number})],$i.prototype,"value",2);jt([ui({type:Number})],$i.prototype,"step",1);jt([ui({attribute:"keyboard-step",type:Number})],$i.prototype,"keyboardStep",1);jt([ui({attribute:"shift-key-multiplier",type:Number})],$i.prototype,"shiftKeyMultiplier",2);jt([ui({type:Boolean,attribute:"custom-value-text"})],$i.prototype,"customValueText",2);var Di=Wt(__makeTemplateObject([""],[""]));var Li=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t._step=.1;t.value=0;t.valueText="{currentTime} out of {duration}";t.pauseWhileDragging=false;t.seekingRequestThrottle=100;t.__mediaDuration=0;t.__mediaPaused=true;t._handleSliderDragStart=Z(t,"vds-slider-drag-start",(function(e){t._togglePlaybackWhileDragging(e)}));t._handleSliderValueChange=Z(t,"vds-slider-value-change",(function(e){if(_t(e.originEvent)){t._dispatchSeekingRequest.cancel();t._mediaRemote.seek(t.value,e)}}));t._handleSliderDragValueChange=Z(t,"vds-slider-drag-value-change",(function(e){t._dispatchSeekingRequest(e)}));t._handleSliderDragEnd=Z(t,"vds-slider-drag-end",(function(e){t._dispatchSeekingRequest.cancel();t._mediaRemote.seek(t.value,e);t._togglePlaybackWhileDragging(e)}));t._dispatchSeekingRequest=G((function(e){t._mediaRemote.seeking(t.value,e)}),t.seekingRequestThrottle);t._wasPlayingBeforeDragStart=false;$t(t,"currentTime",(function(e){t.value=e}));$t(t,"duration",(function(e){t.__mediaDuration=e;t.requestUpdate("max")}));$t(t,"paused",(function(e){t.__mediaPaused=e}));return t}Object.defineProperty(t,"styles",{get:function(){return[e.styles,Di]},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);ht(this,"aria-label","Media time")};Object.defineProperty(t.prototype,"min",{get:function(){return 0},set:function(e){},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"max",{get:function(){return this.__mediaDuration},set:function(e){},enumerable:false,configurable:true});t.prototype.update=function(t){if(t.has("disabled")&&this.disabled){this._dispatchSeekingRequest.cancel()}e.prototype.update.call(this,t)};t.prototype.disconnectedCallback=function(){this._dispatchSeekingRequest.cancel();e.prototype.disconnectedCallback.call(this)};t.prototype._getValueMin=function(){return"0%"};t.prototype._getValueNow=function(){return"".concat(Math.round(this.fillPercent),"%")};t.prototype._getValueText=function(){return this.valueText.replace("{currentTime}",Et(this.value)).replace("{duration}",Et(this.__mediaDuration))};t.prototype._getValueMax=function(){return"100%"};t.prototype._togglePlaybackWhileDragging=function(e){if(!this.pauseWhileDragging)return;if(this.isDragging&&!this.__mediaPaused){this._wasPlayingBeforeDragStart=true;this._mediaRemote.pause(e)}else if(this._wasPlayingBeforeDragStart&&!this.isDragging&&this.__mediaPaused){this._wasPlayingBeforeDragStart=false;this._mediaRemote.play(e)}};return t}($i);jt([ui({attribute:false,state:true})],Li.prototype,"value",2);jt([ui({attribute:false})],Li.prototype,"min",1);jt([ui({attribute:false})],Li.prototype,"max",1);jt([ui({attribute:"value-text"})],Li.prototype,"valueText",2);jt([ui({attribute:"pause-while-dragging",type:Boolean})],Li.prototype,"pauseWhileDragging",2);jt([ui({attribute:"seeking-request-throttle",type:Number})],Li.prototype,"seekingRequestThrottle",2);jt([li()],Li.prototype,"__mediaDuration",2);jt([li()],Li.prototype,"__mediaPaused",2);dt("vds-time-slider",Li);var ji=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.value=100;t._handleSliderValueChange=Z(t,"vds-slider-value-change",t._changeVolume.bind(t));t._handleSliderDragValueChange=Z(t,"vds-slider-drag-value-change",t._changeVolume.bind(t));$t(t,"volume",(function(e){t.value=e*100}));return t}t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);ht(this,"aria-label","Media volume")};Object.defineProperty(t.prototype,"min",{get:function(){return 0},set:function(e){},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"max",{get:function(){return 100},set:function(e){},enumerable:false,configurable:true});t.prototype._changeVolume=function(e){var t=e.detail;var i=Ve(t/100,3);this._mediaRemote.changeVolume(i,e)};return t}($i);jt([ui({attribute:false})],ji.prototype,"min",1);jt([ui({attribute:false})],ji.prototype,"max",1);jt([ui({attribute:false,state:true})],ji.prototype,"value",2);dt("vds-volume-slider",ji);var Fi=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._disposal=new J;t._sliderStoreConsumer=qi.consume(t);t.__value=0;t.type="current";t.showHours=false;t.padHours=false;t.decimalPlaces=2;return t}Object.defineProperty(t,"styles",{get:function(){return[Wt(__makeTemplateObject([":host{display:inline-block;contain:content}:host([hidden]){display:none}"],[":host{display:inline-block;contain:content}:host([hidden]){display:none}"]))]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"_sliderStore",{get:function(){return this._sliderStoreConsumer.value},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);this._handleTypeChange()};t.prototype.update=function(t){if(t.has("type")||t.has("format")){this._handleTypeChange()}e.prototype.update.call(this,t)};t.prototype.disconnectedCallback=function(){this._disposal.empty();e.prototype.disconnectedCallback.call(this)};t.prototype.render=function(){return x(__makeTemplateObject(["",""],["",""]),this._getValueText())};t.prototype._handleTypeChange=function(){var e=this;this._disposal.empty();var t=this._sliderStore[this.type==="current"?"value":"pointerValue"];var i=this.format==="percent"?this._createPercentStore(t):t;var n=i.subscribe((function(t){e.__value=t}));this._disposal.add(n)};t.prototype._createPercentStore=function(e){return nt([e,this._sliderStore.min,this._sliderStore.max],(function(e){var t=e[0],i=e[1],n=e[2];var r=n-i;return t/r*100}))};t.prototype._getValueText=function(){switch(this.format){case"percent":return this._getPercentFormat();case"time":return this._getTimeFormat();default:return"".concat(this.__value)}};t.prototype._getPercentFormat=function(){return"".concat(Ve(this.__value,this.decimalPlaces),"%")};t.prototype._getTimeFormat=function(){return wt(this.__value,this.padHours,this.showHours)};return t}(oi);jt([li()],Fi.prototype,"__value",2);jt([ui()],Fi.prototype,"type",2);jt([ui()],Fi.prototype,"format",2);jt([ui({attribute:"show-hours",type:Boolean})],Fi.prototype,"showHours",2);jt([ui({attribute:"pad-hours",type:Boolean})],Fi.prototype,"padHours",2);jt([ui({attribute:"decimal-places",type:Number})],Fi.prototype,"decimalPlaces",2);dt("vds-slider-value-text",Fi);var Vi=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._disposal=new J;t._mediaStoreConsumer=Rt.consume(t);t.__seconds=0;t.type="current";t.showHours=false;t.padHours=false;t.remainder=false;return t}Object.defineProperty(t,"styles",{get:function(){return[Wt(__makeTemplateObject([":host{display:inline-block;contain:content}:host([hidden]){display:none}"],[":host{display:inline-block;contain:content}:host([hidden]){display:none}"]))]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"_mediaStore",{get:function(){return this._mediaStoreConsumer.value},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this);this._handleTypeChange()};t.prototype.update=function(t){if(t.has("type")||t.has("remainder")){this._handleTypeChange()}e.prototype.update.call(this,t)};t.prototype.disconnectedCallback=function(){this._disposal.empty();e.prototype.disconnectedCallback.call(this)};t.prototype.render=function(){return x(__makeTemplateObject(["",""],["",""]),this._getFormattedTime())};t.prototype._handleTypeChange=function(){var e=this;this._disposal.empty();var t=this._getTypeStore();var i=(this.remainder?this._createRemainderStore(t):t).subscribe((function(t){e.__seconds=t}));this._disposal.add(i)};t.prototype._getTypeStore=function(){switch(this.type){case"buffered":return this._mediaStore.bufferedAmount;case"seekable":return this._mediaStore.seekableAmount;case"duration":return this._mediaStore.duration;default:return this._mediaStore.currentTime}};t.prototype._createRemainderStore=function(e){return nt([e,this._mediaStore.duration],(function(e){var t=e[0],i=e[1];return Math.max(0,i-t)}))};t.prototype._getFormattedTime=function(){return wt(this.__seconds,this.padHours,this.showHours)};return t}(oi);jt([li()],Vi.prototype,"__seconds",2);jt([ui()],Vi.prototype,"type",2);jt([ui({attribute:"show-hours",type:Boolean})],Vi.prototype,"showHours",2);jt([ui({attribute:"pad-hours",type:Boolean})],Vi.prototype,"padHours",2);jt([ui({type:Boolean})],Vi.prototype,"remainder",2);dt("vds-time",Vi);var Ii=".sc-stzh-audio-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-audio-h{display:none}.sc-stzh-audio-h *.sc-stzh-audio,.sc-stzh-audio-h *.sc-stzh-audio::before,.sc-stzh-audio-h *.sc-stzh-audio::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-audio-h .has-focus.sc-stzh-audio{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-audio-h .stzh-fylingfocus-focused.sc-stzh-audio{outline-style:none !important}.sc-stzh-audio-h .stzh-fylingfocus-focused.sc-stzh-audio::-moz-focus-inner{border:0 !important}.stzh-audio.sc-stzh-audio{display:block;contain:none}.stzh-audio__audio.sc-stzh-audio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-audio__controls.sc-stzh-audio{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-audio__controls-top.sc-stzh-audio{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--stzh-space-small)}.stzh-audio__controls-bottom.sc-stzh-audio{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-audio__controls.sc-stzh-audio,.stzh-audio__transcript.sc-stzh-audio{border:0.0625rem solid var(--stzh-base-border-color);padding:var(--stzh-space-medium) var(--stzh-space-xlarge)}.stzh-audio__controls.sc-stzh-audio{padding-bottom:var(--stzh-space-xsmall)}.stzh-audio__button.sc-stzh-audio{width:2.5rem;height:2.5rem;display:grid;place-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:var(--stzh-button-border-radius);-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);-webkit-transition-property:color, background-color;transition-property:color, background-color;color:var(--stzh-color-grey55)}.stzh-audio__button.is-play.sc-stzh-audio,.stzh-audio__button.is-mute.sc-stzh-audio,.stzh-audio__button.is-transcript.sc-stzh-audio{margin-right:var(--stzh-space-xsmall)}.stzh-audio__button.is-active.sc-stzh-audio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-audio__button.sc-stzh-audio:hover{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-audio__transcript.sc-stzh-audio{border-top:none}.stzh-audio__loader-overlay.sc-stzh-audio{display:grid;place-items:center;position:absolute;z-index:3;top:0;left:0;width:100%;height:100%;background-color:var(--stzh-color-white);opacity:0;visibility:hidden}.stzh-audio__time.sc-stzh-audio{font-size:var(--stzh-font-curve-p2-default-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-p2-default-text-line-height, var(--stzh-font-micro-text-line-height));display:-ms-inline-flexbox;display:inline-flex;margin-right:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-audio__time.sc-stzh-audio{font-size:var(--stzh-font-curve-p2-medium-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p2-medium-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p2-medium-text-letter-spacing)}}@media screen and (max-width: 599px){.stzh-audio__time.sc-stzh-audio{margin-right:auto}}.stzh-audio__time-separator.sc-stzh-audio{margin:0 var(--stzh-space-xxsmall)}.stzh-audio__slider.sc-stzh-audio{--height:1.1875rem;--thumb-width:0.8125rem;--track-height:0.3125rem;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:var(--height);border-radius:var(--stzh-button-border-radius)}.stzh-audio__slider.is-time.sc-stzh-audio{-ms-flex-positive:1;flex-grow:1}.stzh-audio__slider.is-volume.sc-stzh-audio{width:20%;min-width:5rem;max-width:6.875rem;display:none}@media screen and (min-width: 600px){.stzh-audio__slider.is-volume.sc-stzh-audio{display:-ms-flexbox;display:flex;margin-right:auto}}.stzh-audio__slider-track.sc-stzh-audio{width:100%;height:var(--track-height);position:absolute;top:50%;left:0;z-index:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);border-radius:0.25rem;background-color:var(--stzh-color-grey25)}.stzh-audio__slider-track.is-fill.sc-stzh-audio{background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transform-origin:left center;transform-origin:left center;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:calc(var(--vds-fill-rate) * 100%);z-index:1}.stzh-audio__slider-thumb-container.sc-stzh-audio{position:absolute;top:0;left:var(--vds-fill-percent);width:var(--thumb-width);height:100%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:2}.stzh-audio__slider[dragging].sc-stzh-audio .stzh-audio__slider-thumb-container.sc-stzh-audio{left:var(--vds-pointer-percent)}.stzh-audio__slider-thumb.sc-stzh-audio{position:absolute;top:50%;left:0;width:var(--thumb-width);height:var(--thumb-width);border-radius:50%;background-color:var(--stzh-color-white);-webkit-box-shadow:0 0 0 0.0625rem rgba(0, 0, 0, 0.25);box-shadow:0 0 0 0.0625rem rgba(0, 0, 0, 0.25);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.stzh-audio__media-preview-container.sc-stzh-audio{--width:2.625rem;--width-half:calc(var(--width) / 2);--top:-1.5rem;--left-clamp:max(var(--width-half), var(--vds-pointer-percent));--right-clamp:calc(100% - var(--width-half));--left:min(var(--left-clamp), var(--right-clamp));display:grid;place-items:center;position:absolute;width:var(--width);top:var(--top);left:var(--left);width:var(--width);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-tooltip-border-radius);background-color:var(--stzh-color-white)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-audio__media-preview-container.sc-stzh-audio{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-audio__slider[pointing].sc-stzh-audio .stzh-audio__media-preview-container.sc-stzh-audio{opacity:1}.stzh-audio__slider-text.sc-stzh-audio{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-audio[hide-ui].sc-stzh-audio .stzh-audio__controls.sc-stzh-audio{opacity:0;visibility:hidden}.stzh-audio[autoplay-error].sc-stzh-audio .stzh-audio__controls.sc-stzh-audio{opacity:1}.stzh-audio.sc-stzh-audio:not([can-play]) .stzh-audio__loader-overlay.sc-stzh-audio,.stzh-audio[waiting].sc-stzh-audio .stzh-audio__loader-overlay.sc-stzh-audio{opacity:0.8;visibility:visible}.stzh-audio[paused].sc-stzh-audio .stzh-audio__paused.sc-stzh-audio{display:none}.stzh-audio.sc-stzh-audio:not([paused]) .stzh-audio__played.sc-stzh-audio{display:none}.stzh-audio[muted].sc-stzh-audio .stzh-audio__muted.sc-stzh-audio{display:none}.stzh-audio.sc-stzh-audio:not([muted]) .stzh-audio__unmuted.sc-stzh-audio{display:none}";var Ui=e("stzh_audio",function(){function e(e){t(this,e);this.stzhPlay=i(this,"stzhPlay",7);this.stzhPlaying=i(this,"stzhPlaying",7);this.stzhPause=i(this,"stzhPause",7);this.stzhReplay=i(this,"stzhReplay",7);this.stzhEnd=i(this,"stzhEnd",7);this.stzhEnded=i(this,"stzhEnded",7);this.stzhError=i(this,"stzhError",7);this.localization=undefined;this.src="";this.preload="none";this.transcript="";this.transcriptShown=false;this.downloadAnalyticsId=undefined;this.transcriptAnalyticsId=undefined}e.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.vsdAudioElement.play();return[2]}))}))};e.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.vsdAudioElement.pause();return[2]}))}))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!!this.localization)return[3,2];e=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"audio")];case 1:e.localization=t.sent();t.label=2;case 2:return[2]}}))}))};e.prototype.render=function(){var e=this;var t=!!this.transcript||s(this.element,"transcript");var i={"stzh-audio":true};return n(r,null,n("vds-media",{class:i},n("vds-audio",{class:"stzh-audio__audio",ref:function(t){return e.vsdAudioElement=t},"onVds-play":function(){e.stzhPlay.emit({component:"stzh-audio"})},"onVds-playing":function(){e.stzhPlaying.emit({component:"stzh-audio"})},"onVds-end":function(){e.stzhEnd.emit({component:"stzh-audio"})},"onVds-ended":function(){e.stzhEnded.emit({component:"stzh-audio"})},"onVds-replay":function(){e.stzhReplay.emit({component:"stzh-audio"})},"onVds-error":function(t){e.stzhError.emit({component:"stzh-audio",originalEvent:t})}},n("audio",{preload:this.preload,src:this.src},n("slot",null))),n("div",{class:"stzh-audio__controls"},n("div",{class:"stzh-audio__loader-overlay"},n("stzh-loader",{class:"stzh-audio__loader",label:this.localization.loading,"hide-label":true})),n("div",{class:"stzh-audio__controls-top"},n("vds-time-slider",{class:"stzh-audio__slider is-time"},n("div",{class:"stzh-audio__slider-track"}),n("div",{class:"stzh-audio__slider-track is-fill"}),n("div",{class:"stzh-audio__slider-thumb-container"},n("div",{class:"stzh-audio__slider-thumb"})),n("div",{class:"stzh-audio__media-preview-container"},n("vds-slider-value-text",{class:"stzh-audio__slider-text",type:"pointer",format:"time"})))),n("div",{class:"stzh-audio__controls-bottom"},n("stzh-tooltip",null,n("vds-play-button",{class:"stzh-audio__button is-play"},n("stzh-icon",{class:"stzh-audio__played",name:"play-filled"}),n("stzh-icon",{class:"stzh-audio__paused",name:"pause-filled"})),n("span",{slot:"content"},n("span",{class:"stzh-audio__played"},this.localization.play),n("span",{class:"stzh-audio__paused"},this.localization.pause))),n("div",{class:"stzh-audio__time"},n("vds-time",{type:"current"}),n("span",{class:"stzh-audio__time-separator"},"/"),n("vds-time",{type:"duration"})),n("stzh-tooltip",null,n("vds-mute-button",{class:"stzh-audio__button is-mute"},n("stzh-icon",{class:"stzh-audio__muted",name:"volume-medium"}),n("stzh-icon",{class:"stzh-audio__unmuted",name:"silent-mode"})),n("span",{slot:"content"},n("span",{class:"stzh-audio__muted"},this.localization.mute),n("span",{class:"stzh-audio__unmuted"},this.localization.unmute))),n("vds-volume-slider",{class:"stzh-audio__slider is-volume"},n("div",{class:"stzh-audio__slider-track"}),n("div",{class:"stzh-audio__slider-track is-fill"}),n("div",{class:"stzh-audio__slider-thumb-container"},n("div",{class:"stzh-audio__slider-thumb"})),n("div",{class:"stzh-audio__media-preview-container"},n("vds-slider-value-text",{class:"stzh-audio__slider-text",type:"pointer",format:"percent"}))),t&&n("stzh-tooltip",{content:this.transcriptShown?this.localization.hideTranscript:this.localization.showTranscript},n("button",{class:{"stzh-audio__button is-transcript":true,"is-active":this.transcriptShown},onClick:function(){return e.transcriptShown=!e.transcriptShown},"s-object-id":this.transcriptAnalyticsId||(this.transcriptShown?this.localization.hideTranscript:this.localization.showTranscript)},n("stzh-icon",{name:"transcript"}))),n("stzh-tooltip",{content:this.localization.download},n("a",{class:"stzh-audio__button is-download",href:this.src,download:"","s-object-id":this.downloadAnalyticsId||this.localization.download},n("stzh-icon",{name:"download"}))))),n("div",{class:"stzh-audio__transcript",hidden:!this.transcriptShown},n("stzh-text",null,this.transcript?this.transcript:n("slot",{name:"transcript"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());Ui.style=Ii}}}));
|
|
32
|
-
//# sourceMappingURL=p-
|
|
32
|
+
//# sourceMappingURL=p-3ceef7dd.system.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as s,c as t,h as i,a as e,g as h}from"./p-c92165bd.js";import{i as a}from"./p-cfdb06e4.js";import{a as r,r as o,m as l}from"./p-cc8c83a8.js";import"./p-9b063923.js";const c=".sc-stzh-carousel-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-carousel-h{display:none}.sc-stzh-carousel-h *.sc-stzh-carousel,.sc-stzh-carousel-h *.sc-stzh-carousel::before,.sc-stzh-carousel-h *.sc-stzh-carousel::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-carousel-h .has-focus.sc-stzh-carousel{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-carousel-h .stzh-fylingfocus-focused.sc-stzh-carousel{outline-style:none !important}.sc-stzh-carousel-h .stzh-fylingfocus-focused.sc-stzh-carousel::-moz-focus-inner{border:0 !important}.sc-stzh-carousel-h{--peek:calc(var(--peek-in, 0px) + var(--peek-out, 0px));--peek-out:1.25rem;--padding-top:0px;--padding-bottom:0px;--gutter:var(--stzh-space-xxxsmall);--snap-stop:always;--slides:1;--slide-size:calc((100% - (var(--slides) - 1) * var(--gutter)) / var(--slides))}@media screen and (min-width: 600px){.sc-stzh-carousel-h{--peek-out:2rem}}@media screen and (min-width: 1024px){.sc-stzh-carousel-h{--peek-out:0px}}.sc-stzh-carousel-h .sc-stzh-carousel-s>*{width:100%;height:100%;-ms-flex-negative:0;flex-shrink:0;scroll-snap-align:start;scroll-snap-stop:var(--snap-stop)}.sc-stzh-carousel-h .sc-stzh-carousel-s>*:where(stzh-figure[inert]){--caption-opacity:0}.sc-stzh-carousel-h .sc-stzh-carousel-s img{-webkit-user-drag:none;user-drag:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions]{position:absolute;top:0;left:0;z-index:1;pointer-events:none;padding:0 var(--peek)}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-text{width:auto}.sc-stzh-carousel-h .sc-stzh-carousel-s>[slot=actions] stzh-button{pointer-events:all}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-space,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-hspace,.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions] stzh-vspace{padding:var(--stzh-space-xsmall)}.sc-stzh-carousel-h .sc-stzh-carousel-s>stzh-ratio[slot=actions]{--background-color:transparent}[variant=cards].sc-stzh-carousel-h{--padding-top:0.25rem;--padding-bottom:0.25rem;--gutter:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){[variant=cards].sc-stzh-carousel-h{--peek-out:2.5rem;--gutter:var(--stzh-space-small)}}@media screen and (min-width: 1260px){[variant=cards].sc-stzh-carousel-h{--peek-out:5.5rem;--gutter:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){[variant=cards].sc-stzh-carousel-h{--peek-out:calc((100vw - 78.75rem - var(--stzh-scrollbar-width, 0px)) / 2)}}.sc-stzh-carousel-h[variant=cards] .sc-stzh-carousel-s>[slot=actions]{position:relative;-ms-flex-order:1;order:1;margin-top:calc(var(--stzh-space-medium) - var(--padding-bottom))}[no-peek].sc-stzh-carousel-h:not([no-peek=false]){--peek-out:0px;--peek-in:0px}.stzh-carousel.sc-stzh-carousel{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:calc(100% + var(--peek-out) * 2);margin-left:calc(var(--peek-out) / -1);margin-right:calc(var(--peek-out) / -1)}.stzh-carousel__vhidden.sc-stzh-carousel{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-carousel__scroll.sc-stzh-carousel{position:relative;grid-area:slides;display:grid;width:100%;height:100%;place-items:center;overflow-x:auto;overflow-y:visible;grid-auto-flow:column;grid-auto-columns:var(--slide-size);grid-auto-rows:100%;-moz-column-gap:var(--gutter);-webkit-column-gap:var(--gutter);column-gap:var(--gutter);-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scroll-padding:0 var(--peek);padding:var(--padding-top) var(--peek) var(--padding-bottom)}@media (prefers-reduced-motion: reduce){.stzh-carousel__scroll.sc-stzh-carousel{scroll-behavior:auto}}.stzh-carousel__scroll.sc-stzh-carousel::-webkit-scrollbar{display:none}.stzh-carousel--is-draggable.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grab;cursor:grab}.stzh-carousel--is-dragging.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:-webkit-grabbing;cursor:grabbing}.stzh-carousel--is-disabled.sc-stzh-carousel .stzh-carousel__scroll.sc-stzh-carousel{cursor:not-allowed;overflow:hidden}.stzh-carousel--is-non-interactive.sc-stzh-carousel{pointer-events:none;-ms-touch-action:none;touch-action:none}";const n=window.matchMedia("(prefers-reduced-motion: reduce)");let u=0;const d=class{constructor(i){s(this,i);this.stzhSlideStart=t(this,"stzhSlideStart",7);this.stzhSlidePassed=t(this,"stzhSlidePassed",7);this.stzhSlideEnd=t(this,"stzhSlideEnd",7);this.slideScrollLeft=0;this.scrolledByAutoplay=false;this.scrollTimeoutId=null;this.lastX=null;this.startX=null;this.startScrollLeft=null;this.disableTimeoutId=null;this.stoppedDragging=false;this.onReducedMotionMediaChange=()=>{this.autoplayDisabledByMotionMedia=n.matches};this.onMouseenter=()=>{if(!this.preventAutoplayPause){this.autoplayDisabledByMouse=true}};this.onMouseleave=()=>{this.autoplayDisabledByMouse=false};this.onFocusin=()=>{if(!this.preventAutoplayPause){this.autoplayDisabledByFocus=true}};this.onFocusout=()=>{this.autoplayDisabledByFocus=false};this.onPreviousClick=()=>{this.scrollToPreviousSnapPoint()};this.onNextClick=()=>{this.scrollToNextSnapPoint()};this.onSlideResize=()=>{if(this.scrollElement){this.itemSize=this.sizingMethod()}};this.onMutation=()=>{if(!this.scrollElement){return}this.slideElements=Array.from(this.scrollElement.children);this.slideElements.forEach(((s,t)=>{s.setAttribute("role","group");s.setAttribute("aria-roledescription","slide");s.setAttribute("aria-label",this.localization.slideLabel.replace(/\{current\}/gi,(t+1).toString()).replace(/\{total\}/gi,this.slideElements.length.toString()))}));this.previousElements=Array.from(this.element.querySelectorAll("[data-stzh-carousel-previous]"));this.nextElements=Array.from(this.element.querySelectorAll("[data-stzh-carousel-next]"));this.navigationTextElements=Array.from(this.element.querySelectorAll("[data-stzh-carousel-navigation-text]"))};this.onScroll=()=>{if(this.scrollTimeoutId===null){const s=this.scrollElement.scrollLeft>this.slideScrollLeft?1:-1;this.scrolling=true;if(!this.scrolledByAutoplay){if(this.preventAutoplayStop){this.autoplayDisabledByScroll=true}else{this.autoplay=false}}this.stzhSlideStart.emit({component:"stzh-carousel",index:this.slide+s})}if(this.slide!==this.calculateSlide()){this.update();this.stzhSlidePassed.emit({component:"stzh-carousel",index:this.slide})}this.scrollTimeoutId&&window.clearTimeout(this.scrollTimeoutId);this.scrollTimeoutId=window.setTimeout(this.onScrollEnd,this.scrollTimeout)};this.onScrollEnd=()=>{this.scrollTimeoutId=null;this.update();this.scrolling=false;this.scrolledByAutoplay=false;this.autoplayDisabledByScroll=false;if(this.stoppedDragging){this.stoppedDragging=false;this.scrollElement.style.removeProperty("scroll-behavior");this.scrollElement.style.removeProperty("scroll-snap-type")}if(this.tabThrough||this.variant==="cards"){this.ariaLive=""}else{this.ariaLive=(this.currentSlides>1?this.localization.slidesLabel:this.localization.slideLabel).replace(/\{(current|from)\}/gi,(this.slide+1).toString()).replace(/\{to\}/gi,(this.slide+this.currentSlides).toString()).replace(/\{total\}/gi,this.slideElements.length.toString())}this.stzhSlideEnd.emit({component:"stzh-carousel",index:this.slide})};this.onMediaChange=()=>{const s=l("ultra").matches;const t=l("large").matches;const i=l("medium").matches;const e=l("small").matches;if(s&&this.slidesUltra!==0){this.currentSlides=this.slidesUltra}else if(t&&this.slidesLarge!==0){this.currentSlides=this.slidesLarge}else if(i&&this.slidesMedium!==0){this.currentSlides=this.slidesMedium}else if(e&&this.slidesSmall!==0){this.currentSlides=this.slidesSmall}else{this.currentSlides=this.slides}this.currentSwipeSlides=this.currentSlides};this.mouseMove=s=>{const t=this.lastX-s.clientX;this.lastX=s.clientX;this.scrollElement.scrollLeft+=t};this.startDragging=s=>{s.preventDefault();this.disableTimeoutId&&window.clearTimeout(this.disableTimeoutId);this.disableTimeoutId=null;this.startX=this.lastX=s.clientX;this.startScrollLeft=this.scrollElement.scrollLeft;this.scrollElement.style.setProperty("scroll-behavior","auto");this.scrollElement.style.setProperty("scroll-snap-type","unset");this.dragging=true;if(this.preventAutoplayStop){this.autoplayDisabledByDrag=true}else{this.autoplay=false}window.addEventListener("mousemove",this.mouseMove);window.addEventListener("mouseup",this.stopDragging,{capture:true});window.addEventListener("click",this.checkClick,{capture:true})};this.stopDragging=s=>{s.preventDefault();const t=Math.abs(this.startX-this.lastX);const i=t>this.distanceQuickSwipe;const e=this.lastX>this.startX?1:-1;this.dragging=false;this.autoplayDisabledByDrag=false;const h=this.scrollElement.scrollLeft;this.scrollElement.style.removeProperty("scroll-snap-type");const a=this.scrollElement.scrollLeft;this.scrollElement.style.setProperty("scroll-snap-type","unset");this.scrollElement.scrollTo({left:h,behavior:"auto"});if(a!==this.startScrollLeft||!i){this.scrollElement.scrollTo({left:a,behavior:n.matches?"auto":"smooth"})}else if(e===1){this.slideToPrevious()}else{this.slideToNext()}window.removeEventListener("mousemove",this.mouseMove);window.removeEventListener("mouseup",this.stopDragging,{capture:true});this.stoppedDragging=true};this.checkClick=s=>{const t=Math.abs(this.startX-this.lastX);const i=t>this.distancePreventClick;if(i){s.preventDefault();s.stopPropagation()}this.lastX=null;window.removeEventListener("click",this.checkClick,{capture:true})};this.autoplayInterval=()=>{this.scrolledByAutoplay=true;if(this.hasReachedLastSlide()){this.slideTo(0)}else{this.slideToNext()}};this.localization=undefined;this.variant="default";this.disabled=false;this.noPeek=false;this.slides=1;this.slidesSmall=0;this.slidesMedium=0;this.slidesLarge=0;this.slidesUltra=0;this.slide=0;this.autoplay=false;this.autoplayTimeout=3e3;this.nonInteractive=false;this.preventMouseDrag=false;this.preventAutoplayPause=false;this.preventAutoplayStop=false;this.tabThrough=false;this.scrollTimeout=100;this.distanceQuickSwipe=40;this.distancePreventClick=6;this.autoplayRunning=false;this.autoplayDisabledByMotionMedia=false;this.autoplayDisabledByMouse=false;this.autoplayDisabledByFocus=false;this.autoplayDisabledByScroll=false;this.autoplayDisabledByDrag=false;this.dragging=false;this.scrolling=false;this.ariaLive="";this.currentSlides=1;this.currentSwipeSlides=1;this.slideElements=[];this.previousElements=[];this.nextElements=[];this.navigationTextElements=[]}async slideTo(s,t="smooth"){this.scrollToSlide(s,t)}async slideToPrevious(s="smooth"){this.scrollToPreviousSnapPoint(s)}async slideToNext(s="smooth"){this.scrollToNextSnapPoint(s)}disabledWatcher(){if(this.disabled){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this.onScroll);this.scrollTimeoutId&&window.clearTimeout(this.scrollTimeoutId);this.scrollTimeoutId=null;this.element.removeEventListener("mouseenter",this.onMouseenter);this.element.removeEventListener("mouseleave",this.onMouseleave);this.element.removeEventListener("focusin",this.onFocusin);this.element.removeEventListener("focusout",this.onFocusout);this.onReducedMotionMediaChange();n&&n.removeEventListener("change",this.onReducedMotionMediaChange)}else{this.scrollElement&&this.scrollElement.addEventListener("scroll",this.onScroll,{passive:true});this.element.addEventListener("mouseenter",this.onMouseenter);this.element.addEventListener("mouseleave",this.onMouseleave);this.element.addEventListener("focusin",this.onFocusin);this.element.addEventListener("focusout",this.onFocusout);n&&n.addEventListener("change",this.onReducedMotionMediaChange)}}preventMouseDragWatcher(){if(this.preventMouseDrag||this.disabled){this.disableTimeoutId&&window.clearTimeout(this.disableTimeoutId);this.disableTimeoutId=null;this.scrollElement&&this.scrollElement.removeEventListener("mousedown",this.startDragging);this.lastX=null}else{this.scrollElement&&this.scrollElement.addEventListener("mousedown",this.startDragging)}}autoplayRunningWatcher(){if(!this.autoplay||this.disabled||this.autoplayDisabledByMotionMedia||this.autoplayDisabledByMouse||this.autoplayDisabledByFocus||this.autoplayDisabledByScroll||this.autoplayDisabledByDrag){this.autoplayIntervalId&&window.clearInterval(this.autoplayIntervalId);this.autoplayIntervalId=null;this.autoplayRunning=false}else{this.autoplayIntervalId&&window.clearInterval(this.autoplayIntervalId);this.autoplayIntervalId=window.setInterval(this.autoplayInterval,this.autoplayTimeout);this.autoplayRunning=true}}snapAlignWatcher(){this.slideElements.forEach(((s,t)=>{const i=(t-this.currentSwipeSlides)%this.currentSwipeSlides===0;if(i){s.style.removeProperty("scroll-snap-align")}else{s.style.setProperty("scroll-snap-align","none")}}))}inertWatcher(){this.slideElements.forEach(((s,t)=>{const i=this.tabThrough||this.variant==="cards"||t>=this.slide&&t<this.slide+this.currentSlides;s.inert=!i;if(i){s.removeAttribute("aria-hidden")}else{s.setAttribute("aria-hidden",i?"false":"true")}}))}prevNextNavigationWatcher(){const s=this.tabThrough||this.variant==="cards";const t=t=>{const i=a(t);if(s){t.setAttribute("aria-hidden","true");t.setAttribute(i?"a11y-tabindex":"tabindex","-1")}else{t.removeAttribute("aria-hidden");t.removeAttribute(i?"a11y-tabindex":"tabindex")}};this.nextElements.forEach(t);this.previousElements.forEach(t)}prevNextHiddenWatcher(){const s=this.slideElements.length<=this.currentSlides;const t=t=>{if(s){t.setAttribute("hidden","")}else{t.removeAttribute("hidden")}};this.navigationTextElements.forEach(t);this.nextElements.forEach(t);this.previousElements.forEach(t)}nextPrevDisabledWatcher(){if(!this.scrollElement){return}const s=this.slide===0;const t=this.hasReachedLastSlide();this.nextElements.forEach((s=>{const i=a(s);s.setAttribute(i?"a11y-disabled":"aria-disabled",t?"true":"false")}));this.previousElements.forEach((t=>{const i=a(t);t.setAttribute(i?"a11y-disabled":"aria-disabled",s?"true":"false")}))}nextElementsWatcher(){this.nextElements.forEach((s=>{const t=a(s);s.addEventListener("click",this.onNextClick);s.setAttribute(t?"a11y-controls":"aria-controls",`${this.carouselId}-scroll`)}))}previousElementsWatcher(){this.previousElements.forEach((s=>{const t=a(s);s.addEventListener("click",this.onPreviousClick);s.setAttribute(t?"a11y-controls":"aria-controls",`${this.carouselId}-scroll`)}))}scrollToSlide(s,t="smooth"){if(this.disabled){return}this.scrollElement.scrollTo({left:s*this.itemSize,behavior:n.matches?"auto":t})}sizingMethod(){const s=window.getComputedStyle(this.scrollElement);return(this.scrollElement.firstElementChild||this.scrollElement).offsetWidth+parseInt(s.getPropertyValue("column-gap"),10)}calculateSlide(){return Math.round(this.scrollElement.scrollLeft/this.itemSize)}scrollToPreviousSnapPoint(s="smooth"){if(this.disabled){return}let t=this.slide;let i=false;while(!i&&t>0){t=t-1;i=(t-this.currentSwipeSlides)%this.currentSwipeSlides===0}this.slideTo(t,s)}scrollToNextSnapPoint(s="smooth"){if(this.disabled){return}this.slideTo(this.slide+this.currentSwipeSlides,s)}update(){this.slide=this.calculateSlide();this.slideScrollLeft=this.slide*this.itemSize;this.onMutation()}hasReachedLastSlide(){const{scrollLeft:s,offsetWidth:t,scrollWidth:i}=this.scrollElement;return Math.ceil(s+t)>=i}async componentWillLoad(){this.carouselId=`stzh-carousel-${u++}`;this.onMediaChange();if(!this.localization){this.localization=await window.stzhComponents.utils.fetchTranslations(this.element,"carousel")}}componentDidLoad(){this.itemSize=this.sizingMethod();this.update();this.disabledWatcher();this.preventMouseDragWatcher();this.autoplayRunningWatcher()}connectedCallback(){r(this.onMediaChange);this.resizeObserver=new ResizeObserver(this.onSlideResize);this.resizeObserver.observe(this.element);this.mutationObserver=new MutationObserver(this.onMutation);this.mutationObserver.observe(this.element,{childList:true,subtree:true})}disconnectedCallback(){this.scrollTimeoutId&&window.clearTimeout(this.scrollTimeoutId);this.scrollTimeoutId=null;this.disabled=true;o(this.onMediaChange);if(this.resizeObserver){this.resizeObserver.disconnect()}if(this.mutationObserver){this.mutationObserver.disconnect()}}render(){const s={"stzh-carousel":true,"stzh-carousel--is-disabled":this.disabled,"stzh-carousel--is-draggable":!this.preventMouseDrag,"stzh-carousel--is-non-interactive":this.nonInteractive,"stzh-carousel--is-dragging":this.dragging,"stzh-carousel--is-scrolling":this.scrolling,"stzh-carousel--has-autoplay":this.autoplay,"stzh-carousel--is-autoplay-running":this.autoplayRunning};return i(e,{"aria-roledescription":"carousel",style:{"--slides":this.currentSlides.toString()}},i("div",{class:s},i("slot",{name:"actions"}),i("div",{class:"stzh-carousel__vhidden","aria-live":this.autoplayDisabledByFocus||this.autoplayDisabledByMouse?"polite":"off"},this.ariaLive),i("div",{ref:s=>this.scrollElement=s,id:`${this.carouselId}-scroll`,class:"stzh-carousel__scroll"},i("slot",null))))}get element(){return h(this)}static get watchers(){return{disabled:["disabledWatcher","preventMouseDragWatcher","autoplayRunningWatcher"],preventMouseDrag:["preventMouseDragWatcher"],autoplay:["autoplayRunningWatcher"],autoplayDisabledByMotionMedia:["autoplayRunningWatcher"],autoplayDisabledByMouse:["autoplayRunningWatcher"],autoplayDisabledByFocus:["autoplayRunningWatcher"],autoplayDisabledByScroll:["autoplayRunningWatcher"],autoplayDisabledByDrag:["autoplayRunningWatcher"],autoplayTimeout:["autoplayRunningWatcher"],slideElements:["snapAlignWatcher","inertWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher"],currentSwipeSlides:["snapAlignWatcher"],slide:["inertWatcher","nextPrevDisabledWatcher"],variant:["inertWatcher","prevNextNavigationWatcher"],currentSlides:["inertWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher"],tabThrough:["inertWatcher","prevNextNavigationWatcher"],nextElements:["prevNextNavigationWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher","nextElementsWatcher"],previousElements:["prevNextNavigationWatcher","prevNextHiddenWatcher","nextPrevDisabledWatcher","previousElementsWatcher"],navigationTextElements:["prevNextHiddenWatcher"]}}};d.style=c;export{d as stzh_carousel};
|
|
2
|
+
//# sourceMappingURL=p-3df3f45c.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stzhCarouselCss","reducedMotionMedia","window","matchMedia","carouselCounter","StzhCarousel","this","slideScrollLeft","scrolledByAutoplay","scrollTimeoutId","lastX","startX","startScrollLeft","disableTimeoutId","stoppedDragging","onReducedMotionMediaChange","autoplayDisabledByMotionMedia","matches","onMouseenter","preventAutoplayPause","autoplayDisabledByMouse","onMouseleave","onFocusin","autoplayDisabledByFocus","onFocusout","onPreviousClick","scrollToPreviousSnapPoint","onNextClick","scrollToNextSnapPoint","onSlideResize","scrollElement","itemSize","sizingMethod","onMutation","slideElements","Array","from","children","forEach","slide","index","setAttribute","localization","slideLabel","replace","toString","length","previousElements","element","querySelectorAll","nextElements","navigationTextElements","onScroll","direction","scrollLeft","scrolling","preventAutoplayStop","autoplayDisabledByScroll","autoplay","stzhSlideStart","emit","component","calculateSlide","update","stzhSlidePassed","clearTimeout","setTimeout","onScrollEnd","scrollTimeout","style","removeProperty","tabThrough","variant","ariaLive","currentSlides","slidesLabel","stzhSlideEnd","onMediaChange","ultra","media","large","medium","small","slidesUltra","slidesLarge","slidesMedium","slidesSmall","slides","currentSwipeSlides","mouseMove","event","distance","clientX","startDragging","preventDefault","setProperty","dragging","autoplayDisabledByDrag","addEventListener","stopDragging","capture","checkClick","Math","abs","minimumReached","distanceQuickSwipe","endDraddingLeft","finalLeft","scrollTo","left","behavior","slideToPrevious","slideToNext","removeEventListener","distancePreventClick","stopPropagation","autoplayInterval","hasReachedLastSlide","slideTo","behaviour","scrollToSlide","disabledWatcher","disabled","passive","preventMouseDragWatcher","preventMouseDrag","autoplayRunningWatcher","autoplayIntervalId","clearInterval","autoplayRunning","setInterval","autoplayTimeout","snapAlignWatcher","shouldSnap","inertWatcher","isActive","inert","removeAttribute","prevNextNavigationWatcher","setAriaAttributes","isStzh","isStzhElement","prevNextHiddenWatcher","hideElements","setHiddenAttribute","nextPrevDisabledWatcher","reachedFirstSlide","reachedLastSlide","nextElementsWatcher","nextElement","carouselId","previousElementsWatcher","previousElement","css","getComputedStyle","firstElementChild","offsetWidth","parseInt","getPropertyValue","round","previousIndex","canSnap","scrollWidth","ceil","componentWillLoad","stzhComponents","utils","fetchTranslations","componentDidLoad","connectedCallback","addMediaChangeListener","resizeObserver","ResizeObserver","observe","mutationObserver","MutationObserver","childList","subtree","disconnectedCallback","removeMediaChangeListener","disconnect","render","classes","nonInteractive","h","Host","class","name","ref","el","id"],"sources":["src/components/stzh-carousel/stzh-carousel.scss?tag=stzh-carousel&encapsulation=scoped","src/components/stzh-carousel/stzh-carousel.tsx"],"sourcesContent":["/**\n * @prop --padding-top: Padding Top of scroll container\n * @prop --padding-bottom: Padding Bottom of scroll container\n * @prop --peek-in: Peek size (inside container) showing the next/previous slides\n * @prop --peek-out: Negative peek size (breakout of container) showing the next/previous slides\n * @prop --gutter: Space between the slides\n * @prop --snap-stop: Snap stop of scroll container\n */\n\n:host {\n --peek: calc(var(--peek-in, 0px) + var(--peek-out, 0px));\n --peek-out: #{$containerMargin};\n --padding-top: 0px;\n --padding-bottom: 0px;\n --gutter: #{space('xxxsmall')};\n --snap-stop: always;\n --slides: 1;\n --slide-size: calc((100% - (var(--slides) - 1) * var(--gutter)) / var(--slides));\n\n @include mq($from: small) {\n --peek-out: #{$containerMarginSmall};\n }\n\n @include mq($from: medium) {\n --peek-out: 0px;\n }\n\n ::slotted(*) {\n width: 100%;\n height: 100%;\n flex-shrink: 0;\n scroll-snap-align: start;\n scroll-snap-stop: var(--snap-stop);\n\n &:where(stzh-figure[inert]) {\n --caption-opacity: 0;\n }\n\n img {\n -webkit-user-drag: none;\n user-drag: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n }\n\n ::slotted([slot=\"actions\"]) {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n pointer-events: none;\n padding: 0 var(--peek);\n\n stzh-text {\n width: auto;\n }\n\n stzh-button {\n pointer-events: all;\n }\n }\n\n ::slotted(stzh-ratio[slot=\"actions\"]) {\n stzh-space,\n stzh-hspace,\n stzh-vspace {\n padding: space('xsmall');\n }\n }\n\n ::slotted(stzh-ratio[slot=\"actions\"]) {\n --background-color: transparent;\n }\n\n /* Card */\n\n &[variant=\"cards\"] {\n --padding-top: 4px;\n --padding-bottom: 4px;\n\n --gutter: #{spaceCurveValue('tiny')};\n\n @include mq($from: medium) {\n --peek-out: #{$containerMarginMedium};\n --gutter: #{spaceCurveValue('tiny', 'medium')};\n }\n\n @include mq($from: large) {\n --peek-out: #{$containerMarginLarge};\n --gutter: #{spaceCurveValue('tiny', 'large')};\n }\n\n @include mq($from: ultra) {\n --peek-out: calc((100vw - #{$containerMaxWidth} - var(--stzh-scrollbar-width, 0px)) / 2);\n }\n }\n\n &[variant=\"cards\"] ::slotted([slot=\"actions\"]) {\n position: relative;\n order: 1;\n margin-top: calc(#{space('medium')} - var(--padding-bottom));\n }\n\n /* No peek */\n\n &[no-peek]:not([no-peek=\"false\"]) {\n --peek-out: 0px;\n --peek-in: 0px;\n }\n}\n\n.stzh-carousel {\n position: relative;\n display: flex;\n flex-direction: column;\n width: calc(100% + var(--peek-out) * 2);\n margin-left: calc(var(--peek-out) / -1);\n margin-right: calc(var(--peek-out) / -1);\n\n &__vhidden {\n @include visuallyhidden;\n }\n\n &__scroll {\n position: relative;\n grid-area: slides;\n display: grid;\n width: 100%;\n height: 100%;\n place-items: center;\n overflow-x: auto;\n overflow-y: visible;\n grid-auto-flow: column;\n grid-auto-columns: var(--slide-size);\n grid-auto-rows: 100%;\n column-gap: var(--gutter);\n -webkit-overflow-scrolling: touch;\n scrollbar-width: none;\n -ms-overflow-style: none;\n scroll-behavior: smooth;\n overscroll-behavior-x: contain;\n scroll-snap-type: x mandatory;\n scroll-padding: 0 var(--peek);\n padding: var(--padding-top) var(--peek) var(--padding-bottom);\n\n @media (prefers-reduced-motion: reduce) {\n scroll-behavior: auto;\n }\n\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n &--is-draggable &__scroll {\n cursor: grab;\n }\n\n &--is-dragging &__scroll {\n cursor: grabbing;\n }\n\n &--is-disabled &__scroll {\n cursor: not-allowed;\n overflow: hidden;\n }\n\n &--is-non-interactive {\n pointer-events: none;\n touch-action: none;\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Method,\n Event,\n EventEmitter,\n Watch,\n State\n} from \"@stencil/core\";\n\nimport {\n StzhCarouselSlideStartEvent,\n StzhCarouselSlidePassedEvent,\n StzhCarouselSlideEndEvent\n} from \"../../index\";\n\nimport { isStzhElement } from \"../../utils/utils\";\nimport { StzhCarouselLocalizedText } from \"./stzh-carousel.localization\"\n\nimport {\n media,\n addMediaChangeListener,\n removeMediaChangeListener\n} from '../../utils/media-utils';\n\nconst reducedMotionMedia = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n\nlet carouselCounter = 0;\n\n/*\n* Inspired by:\n*\n* - https://github.com/barthy-koeln/scroll-snap-slider\n* - https://tannerhodges.github.io/snap-slider/\n* - https://www.w3.org/WAI/ARIA/apg/patterns/carousel/examples/carousel-1-prev-next/\n* - https://dev.to/jasonwebb/how-to-build-a-more-accessible-carousel-or-slider-35lp\n* - http://web-accessibility.carnegiemuseums.org/code/carousels/\n*/\n\n/**\n * @slot - Slot any element\n * @slot actions - Slot for `stzh-actions` element\n */\n@Component({\n tag: \"stzh-carousel\",\n styleUrl: \"stzh-carousel.scss\",\n scoped: true\n})\nexport class StzhCarousel {\n /** Translation strings */\n @Prop() localization: StzhCarouselLocalizedText;\n\n /** Carousel variant */\n @Prop({ reflect: true }) variant: \"default\" | \"cards\" = \"default\";\n\n /** Whether carousel is disabled */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Whether to remove inside/outside peek. */\n @Prop({ reflect: true }) noPeek: boolean = false;\n\n /** Slides number */\n @Prop() slides: number = 1;\n /** Slides number above small breakpoint */\n @Prop() slidesSmall: number = 0;\n /** Slides number above medium breakpoint */\n @Prop() slidesMedium: number = 0;\n /** Slides number above large breakpoint */\n @Prop() slidesLarge: number = 0;\n /** Slides number above ultra breakpoint */\n @Prop() slidesUltra: number = 0;\n\n // /** How many slides per swipe */\n // @Prop() swipeSlides: number = 1;\n // /** How many slides per swipe above small breakpoint */\n // @Prop() swipeSlidesSmall: number = 0;\n // /** How many slides per swipe above medium breakpoint */\n // @Prop() swipeSlidesMedium: number = 0;\n // /** How many slides per swipe above large breakpoint */\n // @Prop() swipeSlidesLarge: number = 0;\n // /** How many slides per swipe above ultra breakpoint */\n // @Prop() swipeSlidesUltra: number = 0;\n\n /** Active slide (readonly) */\n @Prop() slide: number = 0;\n\n /**\n * Whether autoplay is enabled.\n * Gets paused, when user has focus inside carousel element or hovers over it.\n * Also when reduced motion media query is active or carousel is set disabled.\n * Gets disabled permanently, when user interacts with carousel manually (clicks prev/next, scrolls or drags)\n */\n @Prop({ mutable: true }) autoplay: boolean = false;\n\n /** Timeout delay in milliseconds used for autoplay */\n @Prop() autoplayTimeout: number = 3000;\n\n /** Whether scrolling & dragging should be disabled */\n @Prop() nonInteractive: boolean = false;\n\n /** Whether drag with mouse should be disabled (still will be able to scroll with wheeling or arrow keys) */\n @Prop() preventMouseDrag: boolean = false;\n\n /** Whether autoplay pause should be prevented when user hovers/focuses carousel */\n @Prop() preventAutoplayPause: boolean = false;\n\n /** Whether autoplay stop should be prevented when user scroll or drags carousel */\n @Prop() preventAutoplayStop: boolean = false;\n\n /**\n * Enable all slides to be tabbable (will disable prev/next arrows from being tabbable).\n * By default only the visible slides will be tabbable and the prev/next can be used to change slides\n * (enabled when `variant` is set to `cards`).\n */\n @Prop() tabThrough: boolean = false;\n\n\n /** Timeout delay in milliseconds used to catch the end of scroll events */\n @State() scrollTimeout: number = 100;\n\n /** Minimum drag distance that needs to be reached to swipe to next/previous slide(s). */\n @State() distanceQuickSwipe: number = 40;\n\n /** Minimum drag distance that neeeds to be reached to prevent click on slide elements. */\n @State() distancePreventClick: number = 6;\n\n @Element() element: HTMLStzhCarouselElement;\n\n /** Slide start event */\n @Event() stzhSlideStart: EventEmitter<StzhCarouselSlideStartEvent>;\n\n /** Slide passed event */\n @Event() stzhSlidePassed: EventEmitter<StzhCarouselSlidePassedEvent>;\n\n /** Slide end event */\n @Event() stzhSlideEnd: EventEmitter<StzhCarouselSlideEndEvent>;\n\n /** Scroll to a slide by index */\n @Method()\n async slideTo(index, behaviour: \"auto\" | \"smooth\" = \"smooth\") {\n this.scrollToSlide(index, behaviour);\n }\n\n /** Scroll to previous snap point */\n @Method()\n async slideToPrevious(behaviour: \"auto\" | \"smooth\" = \"smooth\") {\n this.scrollToPreviousSnapPoint(behaviour);\n }\n\n /** Scroll to next snap point */\n @Method()\n async slideToNext(behaviour: \"auto\" | \"smooth\" = \"smooth\") {\n this.scrollToNextSnapPoint(behaviour);\n }\n\n @Watch(\"disabled\")\n disabledWatcher() {\n if (this.disabled) {\n this.scrollElement && this.scrollElement.removeEventListener(\"scroll\", this.onScroll);\n this.scrollTimeoutId && window.clearTimeout(this.scrollTimeoutId);\n this.scrollTimeoutId = null;\n this.element.removeEventListener(\"mouseenter\", this.onMouseenter);\n this.element.removeEventListener(\"mouseleave\", this.onMouseleave);\n this.element.removeEventListener(\"focusin\", this.onFocusin);\n this.element.removeEventListener(\"focusout\", this.onFocusout);\n this.onReducedMotionMediaChange();\n reducedMotionMedia && reducedMotionMedia.removeEventListener(\"change\", this.onReducedMotionMediaChange);\n } else {\n this.scrollElement && this.scrollElement.addEventListener(\"scroll\", this.onScroll, { passive: true });\n this.element.addEventListener(\"mouseenter\", this.onMouseenter);\n this.element.addEventListener(\"mouseleave\", this.onMouseleave);\n this.element.addEventListener(\"focusin\", this.onFocusin);\n this.element.addEventListener(\"focusout\", this.onFocusout);\n reducedMotionMedia && reducedMotionMedia.addEventListener(\"change\", this.onReducedMotionMediaChange);\n }\n }\n\n @Watch(\"disabled\")\n @Watch(\"preventMouseDrag\")\n preventMouseDragWatcher() {\n if (this.preventMouseDrag || this.disabled) {\n this.disableTimeoutId && window.clearTimeout(this.disableTimeoutId);\n this.disableTimeoutId = null;\n this.scrollElement && this.scrollElement.removeEventListener(\"mousedown\", this.startDragging);\n this.lastX = null;\n } else {\n this.scrollElement && this.scrollElement.addEventListener(\"mousedown\", this.startDragging);\n }\n }\n\n @Watch(\"autoplay\")\n @Watch(\"autoplayDisabledByMotionMedia\")\n @Watch(\"autoplayDisabledByMouse\")\n @Watch(\"autoplayDisabledByFocus\")\n @Watch(\"autoplayDisabledByScroll\")\n @Watch(\"autoplayDisabledByDrag\")\n @Watch(\"autoplayTimeout\")\n @Watch(\"disabled\")\n autoplayRunningWatcher() {\n if (\n !this.autoplay\n || this.disabled\n || this.autoplayDisabledByMotionMedia\n || this.autoplayDisabledByMouse\n || this.autoplayDisabledByFocus\n || this.autoplayDisabledByScroll\n || this.autoplayDisabledByDrag\n ) {\n this.autoplayIntervalId && window.clearInterval(this.autoplayIntervalId);\n this.autoplayIntervalId = null;\n this.autoplayRunning = false;\n } else {\n this.autoplayIntervalId && window.clearInterval(this.autoplayIntervalId);\n this.autoplayIntervalId = window.setInterval(this.autoplayInterval, this.autoplayTimeout);\n this.autoplayRunning = true;\n }\n }\n\n @Watch(\"slideElements\")\n @Watch(\"currentSwipeSlides\")\n snapAlignWatcher() {\n this.slideElements.forEach((slide, index) => {\n const shouldSnap = (index - this.currentSwipeSlides) % this.currentSwipeSlides === 0;\n\n if (shouldSnap) {\n slide.style.removeProperty(\"scroll-snap-align\");\n } else {\n slide.style.setProperty(\"scroll-snap-align\", \"none\");\n }\n });\n }\n\n @Watch(\"slide\")\n @Watch(\"variant\")\n @Watch(\"slideElements\")\n @Watch(\"currentSlides\")\n @Watch(\"tabThrough\")\n inertWatcher() {\n this.slideElements.forEach((slide, index) => {\n const isActive = this.tabThrough\n || this.variant === \"cards\"\n || index >= this.slide && index < this.slide + this.currentSlides;\n\n slide.inert = !isActive;\n\n if (isActive) {\n slide.removeAttribute(\"aria-hidden\");\n } else {\n slide.setAttribute(\"aria-hidden\", isActive ? \"false\" : \"true\");\n }\n });\n }\n\n @Watch(\"variant\")\n @Watch(\"tabThrough\")\n @Watch(\"nextElements\")\n @Watch(\"previousElements\")\n prevNextNavigationWatcher() {\n const tabThrough = this.tabThrough || this.variant === \"cards\";\n\n const setAriaAttributes = (element) => {\n const isStzh = isStzhElement(element);\n\n if (tabThrough) {\n element.setAttribute(\"aria-hidden\", \"true\");\n element.setAttribute(isStzh ? \"a11y-tabindex\" : \"tabindex\", \"-1\");\n } else {\n element.removeAttribute(\"aria-hidden\");\n element.removeAttribute(isStzh ? \"a11y-tabindex\" : \"tabindex\");\n }\n }\n\n this.nextElements.forEach(setAriaAttributes);\n this.previousElements.forEach(setAriaAttributes);\n }\n\n @Watch(\"currentSlides\")\n @Watch(\"slideElements\")\n @Watch(\"nextElements\")\n @Watch(\"previousElements\")\n @Watch(\"navigationTextElements\")\n prevNextHiddenWatcher() {\n const hideElements = this.slideElements.length <= this.currentSlides;\n\n const setHiddenAttribute = (element) => {\n if (hideElements) {\n element.setAttribute(\"hidden\", \"\");\n } else {\n element.removeAttribute(\"hidden\");\n }\n };\n\n this.navigationTextElements.forEach(setHiddenAttribute);\n this.nextElements.forEach(setHiddenAttribute);\n this.previousElements.forEach(setHiddenAttribute);\n }\n\n @Watch(\"slide\")\n @Watch(\"currentSlides\")\n @Watch(\"slideElements\")\n @Watch(\"nextElements\")\n @Watch(\"previousElements\")\n nextPrevDisabledWatcher() {\n if (!this.scrollElement) {\n return;\n }\n\n const reachedFirstSlide = this.slide === 0;\n const reachedLastSlide = this.hasReachedLastSlide();\n\n this.nextElements.forEach((element) => {\n const isStzh = isStzhElement(element);\n element.setAttribute(isStzh ? \"a11y-disabled\" : \"aria-disabled\", reachedLastSlide ? \"true\" : \"false\");\n });\n\n this.previousElements.forEach((element) => {\n const isStzh = isStzhElement(element);\n element.setAttribute(isStzh ? \"a11y-disabled\" : \"aria-disabled\", reachedFirstSlide ? \"true\" : \"false\");\n });\n }\n\n @Watch(\"nextElements\")\n nextElementsWatcher() {\n this.nextElements.forEach((nextElement) => {\n const isStzh = isStzhElement(nextElement);\n\n nextElement.addEventListener(\"click\", this.onNextClick);\n nextElement.setAttribute(isStzh ? \"a11y-controls\" : \"aria-controls\", `${this.carouselId}-scroll`);\n });\n }\n\n @Watch(\"previousElements\")\n previousElementsWatcher() {\n this.previousElements.forEach((previousElement) => {\n const isStzh = isStzhElement(previousElement);\n\n previousElement.addEventListener(\"click\", this.onPreviousClick);\n previousElement.setAttribute(isStzh ? \"a11y-controls\" : \"aria-controls\", `${this.carouselId}-scroll`);\n });\n }\n\n /** Whether autoplay is currently running */\n @State() autoplayRunning: boolean = false;\n\n /** Whether autoplay is currently disabled by reduced motion media */\n @State() autoplayDisabledByMotionMedia: boolean = false;\n\n /** Whether autoplay is currently disabled by mouse */\n @State() autoplayDisabledByMouse: boolean = false;\n\n /** Whether autoplay is currently disabled by focus */\n @State() autoplayDisabledByFocus: boolean = false;\n\n /** Whether autoplay is currently disabled by scroll */\n @State() autoplayDisabledByScroll: boolean = false;\n\n /** Whether autoplay is currently disabled by drag */\n @State() autoplayDisabledByDrag: boolean = false;\n\n /** Whether user is currently dragging with mouse */\n @State() dragging: boolean = false;\n\n /** Whether user is currently scrolling */\n @State() scrolling: boolean = false;\n\n /** Aria live text */\n @State() ariaLive: string = \"\";\n\n /** Currently shown slides */\n @State() currentSlides: number = 1;\n\n /** How many slides should be moved currently */\n @State() currentSwipeSlides: number = 1;\n\n /** Slide elements */\n @State() slideElements: HTMLElement[] = [];\n\n /** Previous elements */\n @State() previousElements: HTMLElement[] = [];\n\n /** Next elements */\n @State() nextElements: HTMLElement[] = [];\n\n /** Navigation text elements */\n @State() navigationTextElements: HTMLElement[] = [];\n\n private scrollElement: HTMLElement;\n\n /** Unique generated id */\n private carouselId: string;\n\n /** Current scroll position */\n private slideScrollLeft: number = 0;\n\n /** Flag whether scrolling was done by user or not */\n private scrolledByAutoplay: boolean = false;\n\n /** Timeout ID used to catch the end of scroll events */\n private scrollTimeoutId: number = null;\n\n /** Interval ID for autoplay */\n private autoplayIntervalId: number;\n\n /** Last drag event position */\n private lastX: number = null;\n\n /** Where the dragging started */\n private startX: number = null;\n\n /** Where the dragging started scroll position */\n private startScrollLeft: number = null;\n\n /** Timeout ID for a smooth drag release */\n private disableTimeoutId: number = null;\n\n /** Calculated size of a single item */\n private itemSize: number;\n\n /** Resize observer used to update item size */\n private resizeObserver: ResizeObserver;\n\n /** Mutation observer used to keep track of slides */\n private mutationObserver: MutationObserver;\n\n /** Whether user has just stopped dragging */\n private stoppedDragging: boolean = false;\n\n private scrollToSlide(index, behaviour: \"auto\" | \"smooth\" = \"smooth\") {\n if (this.disabled) {\n return;\n }\n\n this.scrollElement.scrollTo({\n left: index * this.itemSize,\n behavior: reducedMotionMedia.matches ? \"auto\" : behaviour\n });\n }\n\n /** Width of a slide */\n private sizingMethod() {\n const css = window.getComputedStyle(this.scrollElement);\n\n return ((this.scrollElement.firstElementChild as HTMLElement) || this.scrollElement).offsetWidth\n + parseInt(css.getPropertyValue(\"column-gap\"), 10);\n }\n\n /**\n * Calculates the active slide.\n * The scroll-snap-type property makes sure that the container snaps perfectly to integer multiples.\n */\n private calculateSlide() {\n // Math.round: Dispatch 'stzhSlidePassed' events around the center of each slide\n // Math.ceil: Dispatch 'stzhSlidePassed' events as soon as the next one is visible\n // Math.floor: Dispatch 'stzhSlidePassed' events only when the next one is fully visible\n return Math.round(this.scrollElement.scrollLeft / this.itemSize);\n }\n\n private scrollToPreviousSnapPoint(behaviour: \"auto\" | \"smooth\" = \"smooth\") {\n if (this.disabled) {\n return;\n }\n\n let previousIndex = this.slide;\n let canSnap = false;\n\n while (!canSnap && previousIndex > 0) {\n previousIndex = previousIndex - 1;\n canSnap = (previousIndex - this.currentSwipeSlides) % this.currentSwipeSlides === 0;\n }\n\n this.slideTo(previousIndex, behaviour);\n }\n\n private scrollToNextSnapPoint(behaviour: \"auto\" | \"smooth\" = \"smooth\") {\n if (this.disabled) {\n return;\n }\n\n this.slideTo(this.slide + this.currentSwipeSlides, behaviour);\n }\n\n private update() {\n this.slide = this.calculateSlide();\n this.slideScrollLeft = this.slide * this.itemSize;\n\n this.onMutation();\n }\n\n private hasReachedLastSlide() {\n const { scrollLeft, offsetWidth, scrollWidth } = this.scrollElement;\n return Math.ceil(scrollLeft + offsetWidth) >= scrollWidth;\n }\n\n private onReducedMotionMediaChange = () => {\n this.autoplayDisabledByMotionMedia = reducedMotionMedia.matches;\n }\n\n private onMouseenter = () => {\n if (!this.preventAutoplayPause) {\n this.autoplayDisabledByMouse = true;\n }\n }\n\n private onMouseleave = () => {\n this.autoplayDisabledByMouse = false;\n }\n\n private onFocusin = () => {\n if (!this.preventAutoplayPause) {\n this.autoplayDisabledByFocus = true;\n }\n }\n\n private onFocusout = () => {\n this.autoplayDisabledByFocus = false;\n }\n\n private onPreviousClick = () => {\n this.scrollToPreviousSnapPoint();\n }\n\n private onNextClick = () => {\n this.scrollToNextSnapPoint();\n }\n\n private onSlideResize = () => {\n if (this.scrollElement) {\n this.itemSize = this.sizingMethod();\n }\n }\n\n private onMutation = () => {\n if (!this.scrollElement) {\n return;\n }\n\n this.slideElements = Array.from(this.scrollElement.children) as HTMLElement[];\n\n this.slideElements.forEach((slide, index) => {\n slide.setAttribute(\"role\", \"group\");\n slide.setAttribute(\"aria-roledescription\", \"slide\");\n slide.setAttribute(\"aria-label\", this.localization.slideLabel\n .replace(/\\{current\\}/gi, (index + 1).toString())\n .replace(/\\{total\\}/gi, this.slideElements.length.toString())\n );\n });\n\n this.previousElements = Array.from(this.element.querySelectorAll(\"[data-stzh-carousel-previous]\"));\n this.nextElements = Array.from(this.element.querySelectorAll(\"[data-stzh-carousel-next]\"));\n this.navigationTextElements = Array.from(this.element.querySelectorAll(\"[data-stzh-carousel-navigation-text]\"));\n }\n\n private onScroll = () => {\n if (this.scrollTimeoutId === null) {\n const direction = (this.scrollElement.scrollLeft > this.slideScrollLeft) ? 1 : -1;\n\n this.scrolling = true;\n\n if (!this.scrolledByAutoplay) {\n if (this.preventAutoplayStop) {\n this.autoplayDisabledByScroll = true;\n } else {\n this.autoplay = false;\n }\n }\n\n this.stzhSlideStart.emit({\n component: \"stzh-carousel\",\n index: this.slide + direction\n });\n }\n\n if (this.slide !== this.calculateSlide()) {\n this.update();\n this.stzhSlidePassed.emit({\n component: \"stzh-carousel\",\n index: this.slide\n });\n }\n\n this.scrollTimeoutId && window.clearTimeout(this.scrollTimeoutId);\n this.scrollTimeoutId = window.setTimeout(this.onScrollEnd, this.scrollTimeout);\n }\n\n private onScrollEnd = () => {\n this.scrollTimeoutId = null;\n this.update();\n\n this.scrolling = false;\n this.scrolledByAutoplay = false;\n this.autoplayDisabledByScroll = false;\n\n if (this.stoppedDragging) {\n this.stoppedDragging = false;\n this.scrollElement.style.removeProperty(\"scroll-behavior\");\n this.scrollElement.style.removeProperty(\"scroll-snap-type\");\n }\n\n if (this.tabThrough || this.variant === \"cards\") {\n this.ariaLive = \"\";\n } else {\n this.ariaLive = (this.currentSlides > 1 ? this.localization.slidesLabel : this.localization.slideLabel)\n .replace(/\\{(current|from)\\}/gi, (this.slide + 1).toString())\n .replace(/\\{to\\}/gi, (this.slide + this.currentSlides).toString())\n .replace(/\\{total\\}/gi, this.slideElements.length.toString());\n }\n\n this.stzhSlideEnd.emit({\n component: \"stzh-carousel\",\n index: this.slide\n });\n }\n\n private onMediaChange = () => {\n const ultra = media(\"ultra\").matches;\n const large = media(\"large\").matches;\n const medium = media(\"medium\").matches;\n const small = media(\"small\").matches;\n\n if (ultra && this.slidesUltra !== 0) {\n this.currentSlides = this.slidesUltra;\n } else if (large && this.slidesLarge !== 0) {\n this.currentSlides = this.slidesLarge;\n } else if (medium && this.slidesMedium !== 0) {\n this.currentSlides = this.slidesMedium;\n } else if (small && this.slidesSmall !== 0) {\n this.currentSlides = this.slidesSmall;\n } else {\n this.currentSlides = this.slides;\n }\n\n // if (ultra && this.swipeSlidesUltra !== 0) {\n // this.currentSwipeSlides = this.swipeSlidesUltra;\n // } else if (large && this.swipeSlidesLarge !== 0) {\n // this.currentSwipeSlides = this.swipeSlidesLarge;\n // } else if (medium && this.swipeSlidesMedium !== 0) {\n // this.currentSwipeSlides = this.swipeSlidesMedium;\n // } else if (small && this.swipeSlidesSmall !== 0) {\n // this.currentSwipeSlides = this.swipeSlidesSmall;\n // } else {\n // this.currentSwipeSlides = this.swipeSlides;\n // }\n\n this.currentSwipeSlides = this.currentSlides;\n }\n\n /** Scroll the slider the appropriate amount of pixels and update the last event position */\n private mouseMove = (event: MouseEvent) => {\n const distance = this.lastX - event.clientX;\n this.lastX = event.clientX;\n\n this.scrollElement.scrollLeft += distance;\n }\n\n /** Clear disable timeout, set up variables and styles and attach the listener. */\n private startDragging = (event: MouseEvent) => {\n event.preventDefault();\n\n this.disableTimeoutId && window.clearTimeout(this.disableTimeoutId);\n this.disableTimeoutId = null;\n\n this.startX = this.lastX = event.clientX;\n this.startScrollLeft = this.scrollElement.scrollLeft;\n this.scrollElement.style.setProperty(\"scroll-behavior\", \"auto\");\n this.scrollElement.style.setProperty(\"scroll-snap-type\", \"unset\");\n\n this.dragging = true;\n\n if (this.preventAutoplayStop) {\n this.autoplayDisabledByDrag = true;\n } else {\n this.autoplay = false;\n }\n\n window.addEventListener(\"mousemove\", this.mouseMove);\n window.addEventListener(\"mouseup\", this.stopDragging, { capture: true });\n window.addEventListener(\"click\", this.checkClick, { capture: true });\n }\n\n /** User stopped dragging */\n private stopDragging = (event: MouseEvent) => {\n event.preventDefault();\n\n const distance = Math.abs(this.startX - this.lastX);\n const minimumReached = distance > this.distanceQuickSwipe;\n const direction = (this.lastX > this.startX) ? 1 : -1;\n\n this.dragging = false;\n this.autoplayDisabledByDrag = false;\n\n const endDraddingLeft = this.scrollElement.scrollLeft;\n\n this.scrollElement.style.removeProperty(\"scroll-snap-type\");\n const finalLeft = this.scrollElement.scrollLeft;\n\n this.scrollElement.style.setProperty(\"scroll-snap-type\", \"unset\");\n this.scrollElement.scrollTo({ left: endDraddingLeft, behavior: \"auto\" });\n\n if (finalLeft !== this.startScrollLeft || !minimumReached) {\n this.scrollElement.scrollTo({ left: finalLeft, behavior: reducedMotionMedia.matches ? \"auto\" : \"smooth\" });\n } else if (direction === 1) {\n this.slideToPrevious();\n } else {\n this.slideToNext();\n }\n\n window.removeEventListener(\"mousemove\", this.mouseMove);\n window.removeEventListener(\"mouseup\", this.stopDragging, { capture: true });\n\n this.stoppedDragging = true;\n }\n\n private checkClick = (event: MouseEvent) => {\n const distance = Math.abs(this.startX - this.lastX);\n const minimumReached = distance > this.distancePreventClick;\n\n if (minimumReached) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n this.lastX = null;\n\n window.removeEventListener(\"click\", this.checkClick, { capture: true });\n }\n\n private autoplayInterval = () => {\n this.scrolledByAutoplay = true;\n\n if (this.hasReachedLastSlide()) {\n this.slideTo(0);\n } else {\n this.slideToNext();\n }\n }\n\n async componentWillLoad() {\n this.carouselId = `stzh-carousel-${carouselCounter++}`;\n this.onMediaChange();\n\n if (!this.localization) {\n this.localization = await window.stzhComponents.utils.fetchTranslations(this.element, \"carousel\");\n }\n }\n\n componentDidLoad() {\n this.itemSize = this.sizingMethod();\n this.update();\n\n this.disabledWatcher();\n this.preventMouseDragWatcher();\n this.autoplayRunningWatcher();\n }\n\n connectedCallback() {\n addMediaChangeListener(this.onMediaChange);\n\n this.resizeObserver = new ResizeObserver(this.onSlideResize)\n this.resizeObserver.observe(this.element)\n\n this.mutationObserver = new MutationObserver(this.onMutation);\n this.mutationObserver.observe(this.element, {\n childList: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n this.scrollTimeoutId && window.clearTimeout(this.scrollTimeoutId);\n this.scrollTimeoutId = null;\n this.disabled = true;\n\n removeMediaChangeListener(this.onMediaChange);\n\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n\n if (this.mutationObserver) {\n this.mutationObserver.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-carousel\": true,\n \"stzh-carousel--is-disabled\": this.disabled,\n \"stzh-carousel--is-draggable\": !this.preventMouseDrag,\n \"stzh-carousel--is-non-interactive\": this.nonInteractive,\n \"stzh-carousel--is-dragging\": this.dragging,\n \"stzh-carousel--is-scrolling\": this.scrolling,\n \"stzh-carousel--has-autoplay\": this.autoplay,\n \"stzh-carousel--is-autoplay-running\": this.autoplayRunning,\n };\n\n return (\n <Host\n aria-roledescription=\"carousel\"\n style={{\n '--slides': this.currentSlides.toString()\n }}\n >\n <div class={classes}>\n <slot name=\"actions\"></slot>\n <div\n class=\"stzh-carousel__vhidden\"\n aria-live={this.autoplayDisabledByFocus || this.autoplayDisabledByMouse ? \"polite\" : \"off\"}\n >\n {this.ariaLive}\n </div>\n <div\n ref={(el) => (this.scrollElement = el as HTMLDivElement)}\n id={`${this.carouselId}-scroll`}\n class=\"stzh-carousel__scroll\"\n >\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"8KAAA,MAAMA,EAAkB,+0JC4BxB,MAAMC,EAAqBC,OAAOC,WAAW,oCAE7C,IAAIC,EAAkB,E,MAqBTC,EAAY,M,oKAwVfC,KAAAC,gBAA0B,EAG1BD,KAAAE,mBAA8B,MAG9BF,KAAAG,gBAA0B,KAM1BH,KAAAI,MAAgB,KAGhBJ,KAAAK,OAAiB,KAGjBL,KAAAM,gBAA0B,KAG1BN,KAAAO,iBAA2B,KAY3BP,KAAAQ,gBAA2B,MAoE3BR,KAAAS,2BAA6B,KACnCT,KAAKU,8BAAgCf,EAAmBgB,OAAO,EAGzDX,KAAAY,aAAe,KACrB,IAAKZ,KAAKa,qBAAsB,CAC9Bb,KAAKc,wBAA0B,I,GAI3Bd,KAAAe,aAAe,KACrBf,KAAKc,wBAA0B,KAAK,EAG9Bd,KAAAgB,UAAY,KAClB,IAAKhB,KAAKa,qBAAsB,CAC9Bb,KAAKiB,wBAA0B,I,GAI3BjB,KAAAkB,WAAa,KACnBlB,KAAKiB,wBAA0B,KAAK,EAG9BjB,KAAAmB,gBAAkB,KACxBnB,KAAKoB,2BAA2B,EAG1BpB,KAAAqB,YAAc,KACpBrB,KAAKsB,uBAAuB,EAGtBtB,KAAAuB,cAAgB,KACtB,GAAIvB,KAAKwB,cAAe,CACtBxB,KAAKyB,SAAWzB,KAAK0B,c,GAIjB1B,KAAA2B,WAAa,KACnB,IAAK3B,KAAKwB,cAAe,CACvB,M,CAGFxB,KAAK4B,cAAgBC,MAAMC,KAAK9B,KAAKwB,cAAcO,UAEnD/B,KAAK4B,cAAcI,SAAQ,CAACC,EAAOC,KACjCD,EAAME,aAAa,OAAQ,SAC3BF,EAAME,aAAa,uBAAwB,SAC3CF,EAAME,aAAa,aAAcnC,KAAKoC,aAAaC,WAChDC,QAAQ,iBAAkBJ,EAAQ,GAAGK,YACrCD,QAAQ,cAAetC,KAAK4B,cAAcY,OAAOD,YACnD,IAGHvC,KAAKyC,iBAAmBZ,MAAMC,KAAK9B,KAAK0C,QAAQC,iBAAiB,kCACjE3C,KAAK4C,aAAef,MAAMC,KAAK9B,KAAK0C,QAAQC,iBAAiB,8BAC7D3C,KAAK6C,uBAAyBhB,MAAMC,KAAK9B,KAAK0C,QAAQC,iBAAiB,wCAAwC,EAGzG3C,KAAA8C,SAAW,KACjB,GAAI9C,KAAKG,kBAAoB,KAAM,CACjC,MAAM4C,EAAa/C,KAAKwB,cAAcwB,WAAahD,KAAKC,gBAAmB,GAAK,EAEhFD,KAAKiD,UAAY,KAEjB,IAAKjD,KAAKE,mBAAoB,CAC5B,GAAIF,KAAKkD,oBAAqB,CAC5BlD,KAAKmD,yBAA2B,I,KAC3B,CACLnD,KAAKoD,SAAW,K,EAIpBpD,KAAKqD,eAAeC,KAAK,CACvBC,UAAW,gBACXrB,MAAOlC,KAAKiC,MAAQc,G,CAIxB,GAAI/C,KAAKiC,QAAUjC,KAAKwD,iBAAkB,CACxCxD,KAAKyD,SACLzD,KAAK0D,gBAAgBJ,KAAK,CACxBC,UAAW,gBACXrB,MAAOlC,KAAKiC,O,CAIhBjC,KAAKG,iBAAmBP,OAAO+D,aAAa3D,KAAKG,iBACjDH,KAAKG,gBAAkBP,OAAOgE,WAAW5D,KAAK6D,YAAa7D,KAAK8D,cAAc,EAGxE9D,KAAA6D,YAAc,KACpB7D,KAAKG,gBAAkB,KACvBH,KAAKyD,SAELzD,KAAKiD,UAAY,MACjBjD,KAAKE,mBAAqB,MAC1BF,KAAKmD,yBAA2B,MAEhC,GAAInD,KAAKQ,gBAAiB,CACxBR,KAAKQ,gBAAkB,MACvBR,KAAKwB,cAAcuC,MAAMC,eAAe,mBACxChE,KAAKwB,cAAcuC,MAAMC,eAAe,mB,CAG1C,GAAIhE,KAAKiE,YAAcjE,KAAKkE,UAAY,QAAS,CAC/ClE,KAAKmE,SAAW,E,KACX,CACLnE,KAAKmE,UAAYnE,KAAKoE,cAAgB,EAAIpE,KAAKoC,aAAaiC,YAAcrE,KAAKoC,aAAaC,YACzFC,QAAQ,wBAAyBtC,KAAKiC,MAAQ,GAAGM,YACjDD,QAAQ,YAAatC,KAAKiC,MAAQjC,KAAKoE,eAAe7B,YACtDD,QAAQ,cAAetC,KAAK4B,cAAcY,OAAOD,W,CAGtDvC,KAAKsE,aAAahB,KAAK,CACrBC,UAAW,gBACXrB,MAAOlC,KAAKiC,OACZ,EAGIjC,KAAAuE,cAAgB,KACtB,MAAMC,EAAQC,EAAM,SAAS9D,QAC7B,MAAM+D,EAAQD,EAAM,SAAS9D,QAC7B,MAAMgE,EAASF,EAAM,UAAU9D,QAC/B,MAAMiE,EAAQH,EAAM,SAAS9D,QAE7B,GAAI6D,GAASxE,KAAK6E,cAAgB,EAAG,CACnC7E,KAAKoE,cAAgBpE,KAAK6E,W,MACrB,GAAIH,GAAS1E,KAAK8E,cAAgB,EAAG,CAC1C9E,KAAKoE,cAAgBpE,KAAK8E,W,MACrB,GAAIH,GAAU3E,KAAK+E,eAAiB,EAAG,CAC5C/E,KAAKoE,cAAgBpE,KAAK+E,Y,MACrB,GAAIH,GAAS5E,KAAKgF,cAAgB,EAAG,CAC1ChF,KAAKoE,cAAgBpE,KAAKgF,W,KACrB,CACLhF,KAAKoE,cAAgBpE,KAAKiF,M,CAe5BjF,KAAKkF,mBAAqBlF,KAAKoE,aAAa,EAItCpE,KAAAmF,UAAaC,IACnB,MAAMC,EAAWrF,KAAKI,MAAQgF,EAAME,QACpCtF,KAAKI,MAAQgF,EAAME,QAEnBtF,KAAKwB,cAAcwB,YAAcqC,CAAQ,EAInCrF,KAAAuF,cAAiBH,IACvBA,EAAMI,iBAENxF,KAAKO,kBAAoBX,OAAO+D,aAAa3D,KAAKO,kBAClDP,KAAKO,iBAAmB,KAExBP,KAAKK,OAASL,KAAKI,MAAQgF,EAAME,QACjCtF,KAAKM,gBAAkBN,KAAKwB,cAAcwB,WAC1ChD,KAAKwB,cAAcuC,MAAM0B,YAAY,kBAAmB,QACxDzF,KAAKwB,cAAcuC,MAAM0B,YAAY,mBAAoB,SAEzDzF,KAAK0F,SAAW,KAEhB,GAAI1F,KAAKkD,oBAAqB,CAC5BlD,KAAK2F,uBAAyB,I,KACzB,CACL3F,KAAKoD,SAAW,K,CAGlBxD,OAAOgG,iBAAiB,YAAa5F,KAAKmF,WAC1CvF,OAAOgG,iBAAiB,UAAW5F,KAAK6F,aAAc,CAAEC,QAAS,OACjElG,OAAOgG,iBAAiB,QAAS5F,KAAK+F,WAAY,CAAED,QAAS,MAAO,EAI9D9F,KAAA6F,aAAgBT,IACtBA,EAAMI,iBAEN,MAAMH,EAAWW,KAAKC,IAAIjG,KAAKK,OAASL,KAAKI,OAC7C,MAAM8F,EAAiBb,EAAWrF,KAAKmG,mBACvC,MAAMpD,EAAa/C,KAAKI,MAAQJ,KAAKK,OAAU,GAAK,EAEpDL,KAAK0F,SAAW,MAChB1F,KAAK2F,uBAAyB,MAE9B,MAAMS,EAAkBpG,KAAKwB,cAAcwB,WAE3ChD,KAAKwB,cAAcuC,MAAMC,eAAe,oBACxC,MAAMqC,EAAYrG,KAAKwB,cAAcwB,WAErChD,KAAKwB,cAAcuC,MAAM0B,YAAY,mBAAoB,SACzDzF,KAAKwB,cAAc8E,SAAS,CAAEC,KAAMH,EAAiBI,SAAU,SAE/D,GAAIH,IAAcrG,KAAKM,kBAAoB4F,EAAgB,CACzDlG,KAAKwB,cAAc8E,SAAS,CAAEC,KAAMF,EAAWG,SAAU7G,EAAmBgB,QAAU,OAAS,U,MAC1F,GAAIoC,IAAc,EAAG,CAC1B/C,KAAKyG,iB,KACA,CACLzG,KAAK0G,a,CAGP9G,OAAO+G,oBAAoB,YAAa3G,KAAKmF,WAC7CvF,OAAO+G,oBAAoB,UAAW3G,KAAK6F,aAAc,CAAEC,QAAS,OAEpE9F,KAAKQ,gBAAkB,IAAI,EAGrBR,KAAA+F,WAAcX,IACpB,MAAMC,EAAWW,KAAKC,IAAIjG,KAAKK,OAASL,KAAKI,OAC7C,MAAM8F,EAAiBb,EAAWrF,KAAK4G,qBAEvC,GAAIV,EAAgB,CAClBd,EAAMI,iBACNJ,EAAMyB,iB,CAGR7G,KAAKI,MAAQ,KAEbR,OAAO+G,oBAAoB,QAAS3G,KAAK+F,WAAY,CAAED,QAAS,MAAO,EAGjE9F,KAAA8G,iBAAmB,KACzB9G,KAAKE,mBAAqB,KAE1B,GAAIF,KAAK+G,sBAAuB,CAC9B/G,KAAKgH,QAAQ,E,KACR,CACLhH,KAAK0G,a,4CAvqB+C,U,cAGX,M,YAGF,M,YAGlB,E,iBAEK,E,kBAEC,E,iBAED,E,iBAEA,E,WAcN,E,cAQqB,M,qBAGX,I,oBAGA,M,sBAGE,M,0BAGI,M,yBAGD,M,gBAOT,M,mBAIG,I,wBAGK,G,0BAGE,E,qBA0NJ,M,mCAGc,M,6BAGN,M,6BAGA,M,8BAGC,M,4BAGF,M,cAGd,M,eAGC,M,cAGF,G,mBAGK,E,wBAGK,E,mBAGE,G,sBAGG,G,kBAGJ,G,4BAGU,E,CArPjD,aAAMM,CAAQ9E,EAAO+E,EAA+B,UAClDjH,KAAKkH,cAAchF,EAAO+E,E,CAK5B,qBAAMR,CAAgBQ,EAA+B,UACnDjH,KAAKoB,0BAA0B6F,E,CAKjC,iBAAMP,CAAYO,EAA+B,UAC/CjH,KAAKsB,sBAAsB2F,E,CAI7B,eAAAE,GACE,GAAInH,KAAKoH,SAAU,CACjBpH,KAAKwB,eAAiBxB,KAAKwB,cAAcmF,oBAAoB,SAAU3G,KAAK8C,UAC5E9C,KAAKG,iBAAmBP,OAAO+D,aAAa3D,KAAKG,iBACjDH,KAAKG,gBAAkB,KACvBH,KAAK0C,QAAQiE,oBAAoB,aAAc3G,KAAKY,cACpDZ,KAAK0C,QAAQiE,oBAAoB,aAAc3G,KAAKe,cACpDf,KAAK0C,QAAQiE,oBAAoB,UAAW3G,KAAKgB,WACjDhB,KAAK0C,QAAQiE,oBAAoB,WAAY3G,KAAKkB,YAClDlB,KAAKS,6BACLd,GAAsBA,EAAmBgH,oBAAoB,SAAU3G,KAAKS,2B,KACvE,CACLT,KAAKwB,eAAiBxB,KAAKwB,cAAcoE,iBAAiB,SAAU5F,KAAK8C,SAAU,CAAEuE,QAAS,OAC9FrH,KAAK0C,QAAQkD,iBAAiB,aAAc5F,KAAKY,cACjDZ,KAAK0C,QAAQkD,iBAAiB,aAAc5F,KAAKe,cACjDf,KAAK0C,QAAQkD,iBAAiB,UAAW5F,KAAKgB,WAC9ChB,KAAK0C,QAAQkD,iBAAiB,WAAY5F,KAAKkB,YAC/CvB,GAAsBA,EAAmBiG,iBAAiB,SAAU5F,KAAKS,2B,EAM7E,uBAAA6G,GACE,GAAItH,KAAKuH,kBAAoBvH,KAAKoH,SAAU,CAC1CpH,KAAKO,kBAAoBX,OAAO+D,aAAa3D,KAAKO,kBAClDP,KAAKO,iBAAmB,KACxBP,KAAKwB,eAAiBxB,KAAKwB,cAAcmF,oBAAoB,YAAa3G,KAAKuF,eAC/EvF,KAAKI,MAAQ,I,KACR,CACLJ,KAAKwB,eAAiBxB,KAAKwB,cAAcoE,iBAAiB,YAAa5F,KAAKuF,c,EAYhF,sBAAAiC,GACE,IACGxH,KAAKoD,UACHpD,KAAKoH,UACLpH,KAAKU,+BACLV,KAAKc,yBACLd,KAAKiB,yBACLjB,KAAKmD,0BACLnD,KAAK2F,uBACR,CACA3F,KAAKyH,oBAAsB7H,OAAO8H,cAAc1H,KAAKyH,oBACrDzH,KAAKyH,mBAAqB,KAC1BzH,KAAK2H,gBAAkB,K,KAClB,CACL3H,KAAKyH,oBAAsB7H,OAAO8H,cAAc1H,KAAKyH,oBACrDzH,KAAKyH,mBAAqB7H,OAAOgI,YAAY5H,KAAK8G,iBAAkB9G,KAAK6H,iBACzE7H,KAAK2H,gBAAkB,I,EAM3B,gBAAAG,GACE9H,KAAK4B,cAAcI,SAAQ,CAACC,EAAOC,KACjC,MAAM6F,GAAc7F,EAAQlC,KAAKkF,oBAAsBlF,KAAKkF,qBAAuB,EAEnF,GAAI6C,EAAY,CACd9F,EAAM8B,MAAMC,eAAe,oB,KACtB,CACL/B,EAAM8B,MAAM0B,YAAY,oBAAqB,O,KAUnD,YAAAuC,GACEhI,KAAK4B,cAAcI,SAAQ,CAACC,EAAOC,KACjC,MAAM+F,EAAWjI,KAAKiE,YACjBjE,KAAKkE,UAAY,SACjBhC,GAASlC,KAAKiC,OAASC,EAAQlC,KAAKiC,MAAQjC,KAAKoE,cAEtDnC,EAAMiG,OAASD,EAEf,GAAIA,EAAU,CACZhG,EAAMkG,gBAAgB,c,KACjB,CACLlG,EAAME,aAAa,cAAe8F,EAAW,QAAU,O,KAS7D,yBAAAG,GACE,MAAMnE,EAAajE,KAAKiE,YAAcjE,KAAKkE,UAAY,QAEvD,MAAMmE,EAAqB3F,IACzB,MAAM4F,EAASC,EAAc7F,GAE7B,GAAIuB,EAAY,CACdvB,EAAQP,aAAa,cAAe,QACpCO,EAAQP,aAAamG,EAAS,gBAAkB,WAAY,K,KACvD,CACL5F,EAAQyF,gBAAgB,eACxBzF,EAAQyF,gBAAgBG,EAAS,gBAAkB,W,GAIvDtI,KAAK4C,aAAaZ,QAAQqG,GAC1BrI,KAAKyC,iBAAiBT,QAAQqG,E,CAQhC,qBAAAG,GACE,MAAMC,EAAezI,KAAK4B,cAAcY,QAAUxC,KAAKoE,cAEvD,MAAMsE,EAAsBhG,IAC1B,GAAI+F,EAAc,CAChB/F,EAAQP,aAAa,SAAU,G,KAC1B,CACLO,EAAQyF,gBAAgB,S,GAI5BnI,KAAK6C,uBAAuBb,QAAQ0G,GACpC1I,KAAK4C,aAAaZ,QAAQ0G,GAC1B1I,KAAKyC,iBAAiBT,QAAQ0G,E,CAQhC,uBAAAC,GACE,IAAK3I,KAAKwB,cAAe,CACvB,M,CAGF,MAAMoH,EAAoB5I,KAAKiC,QAAU,EACzC,MAAM4G,EAAmB7I,KAAK+G,sBAE9B/G,KAAK4C,aAAaZ,SAASU,IACzB,MAAM4F,EAASC,EAAc7F,GAC7BA,EAAQP,aAAamG,EAAS,gBAAkB,gBAAiBO,EAAmB,OAAS,QAAQ,IAGvG7I,KAAKyC,iBAAiBT,SAASU,IAC7B,MAAM4F,EAASC,EAAc7F,GAC7BA,EAAQP,aAAamG,EAAS,gBAAkB,gBAAiBM,EAAoB,OAAS,QAAQ,G,CAK1G,mBAAAE,GACE9I,KAAK4C,aAAaZ,SAAS+G,IACzB,MAAMT,EAASC,EAAcQ,GAE7BA,EAAYnD,iBAAiB,QAAS5F,KAAKqB,aAC3C0H,EAAY5G,aAAamG,EAAS,gBAAkB,gBAAiB,GAAGtI,KAAKgJ,oBAAoB,G,CAKrG,uBAAAC,GACEjJ,KAAKyC,iBAAiBT,SAASkH,IAC7B,MAAMZ,EAASC,EAAcW,GAE7BA,EAAgBtD,iBAAiB,QAAS5F,KAAKmB,iBAC/C+H,EAAgB/G,aAAamG,EAAS,gBAAkB,gBAAiB,GAAGtI,KAAKgJ,oBAAoB,G,CA0FjG,aAAA9B,CAAchF,EAAO+E,EAA+B,UAC1D,GAAIjH,KAAKoH,SAAU,CACjB,M,CAGFpH,KAAKwB,cAAc8E,SAAS,CAC1BC,KAAMrE,EAAQlC,KAAKyB,SACnB+E,SAAU7G,EAAmBgB,QAAU,OAASsG,G,CAK5C,YAAAvF,GACN,MAAMyH,EAAMvJ,OAAOwJ,iBAAiBpJ,KAAKwB,eAEzC,OAASxB,KAAKwB,cAAc6H,mBAAqCrJ,KAAKwB,eAAe8H,YACjFC,SAASJ,EAAIK,iBAAiB,cAAe,G,CAO3C,cAAAhG,GAIN,OAAOwC,KAAKyD,MAAMzJ,KAAKwB,cAAcwB,WAAahD,KAAKyB,S,CAGjD,yBAAAL,CAA0B6F,EAA+B,UAC/D,GAAIjH,KAAKoH,SAAU,CACjB,M,CAGF,IAAIsC,EAAgB1J,KAAKiC,MACzB,IAAI0H,EAAU,MAEd,OAAQA,GAAWD,EAAgB,EAAG,CACpCA,EAAgBA,EAAgB,EAChCC,GAAWD,EAAgB1J,KAAKkF,oBAAsBlF,KAAKkF,qBAAuB,C,CAGpFlF,KAAKgH,QAAQ0C,EAAezC,E,CAGtB,qBAAA3F,CAAsB2F,EAA+B,UAC3D,GAAIjH,KAAKoH,SAAU,CACjB,M,CAGFpH,KAAKgH,QAAQhH,KAAKiC,MAAQjC,KAAKkF,mBAAoB+B,E,CAG7C,MAAAxD,GACNzD,KAAKiC,MAAQjC,KAAKwD,iBAClBxD,KAAKC,gBAAkBD,KAAKiC,MAAQjC,KAAKyB,SAEzCzB,KAAK2B,Y,CAGC,mBAAAoF,GACN,MAAM/D,WAAEA,EAAUsG,YAAEA,EAAWM,YAAEA,GAAgB5J,KAAKwB,cACtD,OAAOwE,KAAK6D,KAAK7G,EAAasG,IAAgBM,C,CAsPhD,uBAAME,GACJ9J,KAAKgJ,WAAa,iBAAiBlJ,MACnCE,KAAKuE,gBAEL,IAAKvE,KAAKoC,aAAc,CACtBpC,KAAKoC,mBAAqBxC,OAAOmK,eAAeC,MAAMC,kBAAkBjK,KAAK0C,QAAS,W,EAI1F,gBAAAwH,GACElK,KAAKyB,SAAWzB,KAAK0B,eACrB1B,KAAKyD,SAELzD,KAAKmH,kBACLnH,KAAKsH,0BACLtH,KAAKwH,wB,CAGP,iBAAA2C,GACEC,EAAuBpK,KAAKuE,eAE5BvE,KAAKqK,eAAiB,IAAIC,eAAetK,KAAKuB,eAC9CvB,KAAKqK,eAAeE,QAAQvK,KAAK0C,SAEjC1C,KAAKwK,iBAAmB,IAAIC,iBAAiBzK,KAAK2B,YAClD3B,KAAKwK,iBAAiBD,QAAQvK,KAAK0C,QAAS,CAC1CgI,UAAW,KACXC,QAAS,M,CAIb,oBAAAC,GACE5K,KAAKG,iBAAmBP,OAAO+D,aAAa3D,KAAKG,iBACjDH,KAAKG,gBAAkB,KACvBH,KAAKoH,SAAW,KAEhByD,EAA0B7K,KAAKuE,eAE/B,GAAIvE,KAAKqK,eAAgB,CACvBrK,KAAKqK,eAAeS,Y,CAGtB,GAAI9K,KAAKwK,iBAAkB,CACzBxK,KAAKwK,iBAAiBM,Y,EAI1B,MAAAC,GACE,MAAMC,EAAU,CACd,gBAAiB,KACjB,6BAA8BhL,KAAKoH,SACnC,+BAAgCpH,KAAKuH,iBACrC,oCAAqCvH,KAAKiL,eAC1C,6BAA8BjL,KAAK0F,SACnC,8BAA+B1F,KAAKiD,UACpC,8BAA+BjD,KAAKoD,SACpC,qCAAsCpD,KAAK2H,iBAG7C,OACEuD,EAACC,EAAI,wBACkB,WACrBpH,MAAO,CACL,WAAY/D,KAAKoE,cAAc7B,aAGjC2I,EAAA,OAAKE,MAAOJ,GACVE,EAAA,QAAMG,KAAK,YACXH,EAAA,OACEE,MAAM,yBAAwB,YACnBpL,KAAKiB,yBAA2BjB,KAAKc,wBAA0B,SAAW,OAEpFd,KAAKmE,UAER+G,EAAA,OACEI,IAAMC,GAAQvL,KAAKwB,cAAgB+J,EACnCC,GAAI,GAAGxL,KAAKgJ,oBACZoC,MAAM,yBAENF,EAAA,e"}
|