@swisspost/internet-header 10.1.0 → 10.3.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/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-E6EPRPpB.js → package-Bk3UBVSc.js} +3 -2
- package/dist/cjs/{package-MGiZpKVI.js → package-uiAqYqcY.js} +1 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/post-autocomplete.cjs.entry.js +11 -2
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/post-closebutton.cjs.entry.js +1 -1
- package/dist/cjs/post-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/post-footer.cjs.entry.js +31 -13
- package/dist/cjs/post-header.cjs.entry.js +13 -4
- package/dist/cjs/post-icon.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-language-menu.cjs.entry.js +1 -1
- package/dist/cjs/post-linkarea.cjs.entry.js +1 -1
- package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox.cjs.entry.js +3 -3
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown.cjs.entry.js +8 -8
- package/dist/cjs/post-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +76 -26
- package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +87 -3
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/components/internal/Link.js +1 -1
- package/dist/collection/components/post-internet-header/post-internet-header.js +26 -3
- package/dist/collection/data/store.js +1 -0
- package/dist/collection/services/alternate-link.service.js +61 -0
- package/dist/components/package.js +1 -1
- package/dist/components/package2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-footer2.js +1 -1
- package/dist/components/post-header2.js +1 -1
- package/dist/components/post-language-menu-item2.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-mainnavigation2.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/swisspost-internet-header.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-jK9tFtoG.js → package-D9jUbrFT.js} +1 -1
- package/dist/esm/{package-ClQfdhMK.js → package-Dheuk3S-.js} +3 -2
- package/dist/esm/post-accordion_4.entry.js +1 -1
- package/dist/esm/post-autocomplete.entry.js +11 -2
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +1 -1
- package/dist/esm/post-banner.entry.js +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +2 -2
- package/dist/esm/post-breadcrumbs.entry.js +1 -1
- package/dist/esm/post-closebutton.entry.js +1 -1
- package/dist/esm/post-date-picker.entry.js +1 -1
- package/dist/esm/post-footer.entry.js +31 -13
- package/dist/esm/post-header.entry.js +13 -4
- package/dist/esm/post-icon.entry.js +1 -1
- package/dist/esm/post-language-menu-item.entry.js +2 -2
- package/dist/esm/post-language-menu.entry.js +1 -1
- package/dist/esm/post-linkarea.entry.js +1 -1
- package/dist/esm/post-listbox-option.entry.js +3 -3
- package/dist/esm/post-listbox.entry.js +3 -3
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +2 -2
- package/dist/esm/post-megadropdown-trigger.entry.js +2 -2
- package/dist/esm/post-megadropdown.entry.js +8 -8
- package/dist/esm/post-menu-item.entry.js +1 -1
- package/dist/esm/post-menu_2.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +76 -26
- package/dist/esm/post-popover-trigger.entry.js +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/post-progressbar.entry.js +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
- package/dist/esm/post-side-navigation.entry.js +2 -2
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +2 -2
- package/dist/esm/post-tab-item.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-togglebutton.entry.js +2 -2
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/esm/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +87 -3
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/package-D9jUbrFT.js +1 -0
- package/dist/esm-es5/{package-ClQfdhMK.js → package-Dheuk3S-.js} +1 -1
- package/dist/esm-es5/post-accordion_4.entry.js +1 -1
- package/dist/esm-es5/post-autocomplete.entry.js +1 -1
- package/dist/esm-es5/post-avatar.entry.js +1 -1
- package/dist/esm-es5/post-back-to-top.entry.js +1 -1
- package/dist/esm-es5/post-banner.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
- package/dist/esm-es5/post-closebutton.entry.js +1 -1
- package/dist/esm-es5/post-date-picker.entry.js +1 -1
- package/dist/esm-es5/post-footer.entry.js +1 -1
- package/dist/esm-es5/post-header.entry.js +1 -1
- package/dist/esm-es5/post-icon.entry.js +1 -1
- package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-language-menu.entry.js +1 -1
- package/dist/esm-es5/post-linkarea.entry.js +1 -1
- package/dist/esm-es5/post-listbox-option.entry.js +1 -1
- package/dist/esm-es5/post-listbox.entry.js +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown.entry.js +1 -1
- package/dist/esm-es5/post-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-menu_2.entry.js +1 -1
- package/dist/esm-es5/post-number-input.entry.js +1 -1
- package/dist/esm-es5/post-pagination.entry.js +1 -1
- package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
- package/dist/esm-es5/post-popover.entry.js +1 -1
- package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
- package/dist/esm-es5/post-progressbar.entry.js +1 -1
- package/dist/esm-es5/post-rating.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation.entry.js +1 -1
- package/dist/esm-es5/post-stepper-item.entry.js +1 -1
- package/dist/esm-es5/post-stepper.entry.js +1 -1
- package/dist/esm-es5/post-tab-item.entry.js +1 -1
- package/dist/esm-es5/post-tab-panel.entry.js +1 -1
- package/dist/esm-es5/post-tabs.entry.js +1 -1
- package/dist/esm-es5/post-togglebutton.entry.js +1 -1
- package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
- package/dist/esm-es5/post-tooltip.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-ef183dab.entry.js → p-043b0295.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0708d2ae.entry.js +1 -0
- package/dist/swisspost-internet-header/p-091d408b.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fe6a6a22.entry.js → p-0a1276dc.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ec3c17b7.system.entry.js → p-0a3325bd.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0e3b3739.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-1b9a5275.system.entry.js → p-0fdc3e18.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a5705a24.entry.js → p-10dbaad3.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-13bae547.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-67889b8a.system.entry.js → p-145e9419.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45af06c6.entry.js → p-15564bd8.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d2599e7b.entry.js → p-1ad88e06.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4107bc25.system.entry.js → p-2069109d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45d5a353.entry.js → p-20ded6e8.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-23fa3342.entry.js → p-26e94f0f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d42d1570.entry.js → p-26f99143.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-27b2a48e.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fcf9631e.entry.js → p-2affed30.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bebf0896.entry.js → p-2bbec1fa.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-31b363d3.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-779e1686.entry.js → p-324bb578.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ca000634.system.entry.js → p-324f6a1d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-cd2583f5.entry.js → p-32d8756e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4f70afb5.system.entry.js → p-38b3e48b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3b5b5f43.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-9776463e.entry.js → p-3ce5350e.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3e0d2f8e.entry.js +1 -0
- package/dist/swisspost-internet-header/p-3fb06291.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-2d1355fa.system.entry.js → p-4615095e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-468c06f1.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-b94bcb65.system.entry.js → p-48b9d8af.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-c6e57a0c.system.entry.js → p-51c1b282.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f606f337.system.entry.js → p-522b6a34.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f986d587.entry.js → p-53627d54.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9c5c32af.system.entry.js → p-56b1fbff.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d604cf73.system.entry.js → p-5937df91.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-97eaecab.entry.js → p-5c73925e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1386d1d4.system.entry.js → p-62e15c37.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ad91f6c0.system.entry.js → p-6dd426a3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fc6ef72b.system.entry.js → p-6df1fef1.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-77199d61.system.entry.js → p-701461bc.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ea8c458a.entry.js → p-715fd00a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-da88d37e.system.entry.js → p-77075637.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2a8e1e33.entry.js → p-77955468.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7f0d52e1.entry.js → p-7a4d48c8.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-7e85acba.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-89dbe69c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-786e11c5.entry.js → p-8a3118d3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1c40acd2.entry.js → p-8aec6b71.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6427c6b0.system.entry.js → p-8f560878.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-806b3bb9.entry.js → p-9119d1d2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ad77e312.entry.js → p-941c9d63.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-9482fbdf.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-aa4ed181.entry.js → p-9510033c.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-15820529.system.entry.js → p-9bead48d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-20a0a7e7.system.entry.js → p-9dbc65e6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-BEtiMUfS.system.js → p-B2xXTEH5.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-CNZqHwmo.js → p-B86vJMfc.js} +1 -1
- package/dist/swisspost-internet-header/{p-tBnwOTPV.system.js → p-CUgd8XDw.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-CDL0cxX6.system.js → p-CVe9fdUw.system.js} +1 -1
- package/dist/swisspost-internet-header/p-D9jUbrFT.js +1 -0
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/{p-cccfd211.entry.js → p-a2b590f1.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-a3640c54.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a5c32bd3.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a79db979.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e9ae044e.entry.js → p-abd1654a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9d0b4493.entry.js → p-b266f922.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dc287805.system.entry.js → p-b67b88ee.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6b19deb1.system.entry.js → p-b6f7469f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f074310f.entry.js → p-b98bd035.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d4f8cba4.entry.js → p-b9e4f3a1.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-ba60d0f6.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a1b94999.entry.js → p-c792d22e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-18a84bc1.system.entry.js → p-ce4549eb.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-ce5265e7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-64428c96.system.entry.js → p-d102dd8f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d586b0b6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c16adcb7.entry.js → p-dbe1d696.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-faca91f3.system.entry.js → p-e053e1b5.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4d49c5ef.system.entry.js → p-e4b30e68.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-68dcd52c.system.entry.js → p-e711377e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5329e0b0.system.entry.js → p-e9c6db2d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0bf25ebc.system.entry.js → p-ea3a2c74.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d2fa80e5.entry.js → p-f5bc81a7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-73d21f06.system.entry.js → p-f917f79a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5daa12df.entry.js → p-fc839150.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-fcf9da41.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e655c88c.system.entry.js → p-fde0e9e3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dfbe1d02.entry.js → p-ff4b3e95.entry.js} +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/components/post-internet-header/post-internet-header.d.ts +9 -0
- package/dist/types/data/store.d.ts +1 -0
- package/dist/types/services/alternate-link.service.d.ts +13 -0
- package/package.json +4 -4
- package/dist/esm-es5/package-jK9tFtoG.js +0 -1
- package/dist/swisspost-internet-header/p-01f39bb3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-05cab026.entry.js +0 -1
- package/dist/swisspost-internet-header/p-10bdbca2.entry.js +0 -1
- package/dist/swisspost-internet-header/p-200dc938.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3028df9f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-50d3eb3c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-520d3f06.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-5ae377df.entry.js +0 -1
- package/dist/swisspost-internet-header/p-63b15be9.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-72187f34.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7cdf89dc.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8bd09f9e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8f06d58d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-99c19dd2.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b5665fc8.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ba63e3e0.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-bff2014b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d558b697.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e25b4f0b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fec8e79e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-jK9tFtoG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as o,H as n,g as r}from"./p-h3opCZqH.js";import{v as s}from"./p-jK9tFtoG.js";import{O as i}from"./p-Drxf8XVU.js";import{P as a}from"./p-DRiVosES.js";import{T as p}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=Math.min,l=Math.max,f=Math.round,u=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function v(t,e,o){return l(t,c(e,o))}function m(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function y(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function S(t){return w(y(t))}function k(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const T=["left","right"],E=["right","left"],M=["top","bottom"],A=["bottom","top"];function O(t){const e=g(t);return d[e]+t.slice(e.length)}function H(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function L(t){const{x:e,y:o,width:n,height:r}=t;return{width:n,height:r,top:o,left:e,right:e+n,bottom:o+r,x:e,y:o}}function $(t,e,o){let{reference:n,floating:r}=t;const s=y(e),i=S(e),a=b(i),p=g(e),c="y"===s,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,u=n[a]/2-r[a]/2;let h;switch(p){case"top":h={x:l,y:n.y-r.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-r.width,y:f};break;default:h={x:n.x,y:n.y}}switch(x(e)){case"start":h[i]-=u*(o&&c?-1:1);break;case"end":h[i]+=u*(o&&c?-1:1)}return h}async function D(t,e){var o;void 0===e&&(e={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:p}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=m(e,t),d=H(h),v=a[u?"floating"===f?"reference":"floating":f],g=L(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(v)))||o?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:p})),x="floating"===f?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},y=L(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:p}):x);return{top:(g.top-y.top+d.top)/b.y,bottom:(y.bottom-g.bottom+d.bottom)/b.y,left:(g.left-y.left+d.left)/b.x,right:(y.right-g.right+d.right)/b.x}}function j(t){const e=c(...t.map((t=>t.left))),o=c(...t.map((t=>t.top)));return{x:e,y:o,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-o}}const R=new Set(["left","top"]);function z(){return"undefined"!=typeof window}function F(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function P(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!z()&&(t instanceof Node||t instanceof C(t).Node)}function B(t){return!!z()&&(t instanceof Element||t instanceof C(t).Element)}function q(t){return!!z()&&(t instanceof HTMLElement||t instanceof C(t).HTMLElement)}function I(t){return!(!z()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function N(t){const{overflow:e,overflowX:o,overflowY:n,display:r}=Q(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&"inline"!==r&&"contents"!==r}function G(t){return/^(table|td|th)$/.test(F(t))}function V(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const U=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Z=t=>!!t&&"none"!==t;let _;function K(t){const e=B(t)?Q(t):t;return Z(e.transform)||Z(e.translate)||Z(e.scale)||Z(e.rotate)||Z(e.perspective)||!Y()&&(Z(e.backdropFilter)||Z(e.filter))||U.test(e.willChange||"")||X.test(e.contain||"")}function Y(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function J(t){return/^(html|body|#document)$/.test(F(t))}function Q(t){return C(t).getComputedStyle(t)}function tt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||P(t);return I(e)?e.host:e}function ot(t){const e=et(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&N(e)?e:ot(e)}function nt(t,e,o){var n;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=ot(t),s=r===(null==(n=t.ownerDocument)?void 0:n.body),i=C(r);if(s){const t=rt(i);return e.concat(i,i.visualViewport||[],N(r)?r:[],t&&o?nt(t):[])}return e.concat(r,nt(r,[],o))}function rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=Q(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=q(t),s=r?t.offsetWidth:o,i=r?t.offsetHeight:n,a=f(o)!==s||f(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function it(t){return B(t)?t:t.contextElement}function at(t){const e=it(t);if(!q(e))return h(1);const o=e.getBoundingClientRect(),{width:n,height:r,$:s}=st(e);let i=(s?f(o.width):o.width)/n,a=(s?f(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const pt=h(0);function ct(t){const e=C(t);return Y()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:pt}function lt(t,e,o,n){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=it(t);let i=h(1);e&&(n?B(n)&&(i=at(n)):i=at(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==C(t))&&e}(s,o,n)?ct(s):h(0);let p=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,l=r.width/i.x,f=r.height/i.y;if(s){const t=C(s),e=n&&B(n)?C(n):n;let o=t,r=rt(o);for(;r&&n&&e!==o;){const t=at(r),e=r.getBoundingClientRect(),n=Q(r),s=e.left+(r.clientLeft+parseFloat(n.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(n.paddingTop))*t.y;p*=t.x,c*=t.y,l*=t.x,f*=t.y,p+=s,c+=i,o=C(r),r=rt(o)}}return L({width:l,height:f,x:p,y:c})}function ft(t,e){const o=tt(t).scrollLeft;return e?e.left+o:lt(P(t)).left+o}function ut(t,e){const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-ft(t,o),y:o.top+e.scrollTop}}function ht(t,e,o){let n;if("viewport"===e)n=function(t,e){const o=C(t),n=P(t),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,p=0;if(r){s=r.width,i=r.height;const t=Y();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,p=r.offsetTop)}const c=ft(n);if(c<=0){const t=n.ownerDocument,e=t.body,o=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-e.clientWidth-r);i<=25&&(s-=i)}else c<=25&&(s+=c);return{width:s,height:i,x:a,y:p}}(t,o);else if("document"===e)n=function(t){const e=P(t),o=tt(t),n=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=l(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+ft(t);const a=-o.scrollTop;return"rtl"===Q(n).direction&&(i+=l(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}(P(t));else if(B(e))n=function(t,e){const o=lt(t,!0,"fixed"===e),n=o.top+t.clientTop,r=o.left+t.clientLeft,s=q(t)?at(t):h(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:n*s.y}}(e,o);else{const o=ct(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return L(n)}function dt(t,e){const o=et(t);return!(o===e||!B(o)||J(o))&&("fixed"===Q(o).position||dt(o,e))}function vt(t,e,o){const n=q(e),r=P(e),s="fixed"===o,i=lt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const p=h(0);function c(){p.x=ft(r)}if(n||!n&&!s)if(("body"!==F(e)||N(r))&&(a=tt(e)),n){const t=lt(e,!0,s,e);p.x=t.x+e.clientLeft,p.y=t.y+e.clientTop}else r&&c();s&&!n&&r&&c();const l=!r||n||s?h(0):ut(r,a);return{x:i.left+a.scrollLeft-p.x-l.x,y:i.top+a.scrollTop-p.y-l.y,width:i.width,height:i.height}}function mt(t){return"static"===Q(t).position}function gt(t,e){if(!q(t)||"fixed"===Q(t).position)return null;if(e)return e(t);let o=t.offsetParent;return P(t)===o&&(o=o.ownerDocument.body),o}function xt(t,e){const o=C(t);if(V(t))return o;if(!q(t)){let e=et(t);for(;e&&!J(e);){if(B(e)&&!mt(e))return e;e=et(e)}return o}let n=gt(t,e);for(;n&&G(n)&&mt(n);)n=gt(n,e);return n&&J(n)&&mt(n)&&!K(n)?o:n||function(t){let e=et(t);for(;q(e)&&!J(e);){if(K(e))return e;if(V(e))return null;e=et(e)}return null}(t)||o}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:n,strategy:r}=t;const s="fixed"===r,i=P(n),a=!!e&&V(e.floating);if(n===i||a&&s)return o;let p={scrollLeft:0,scrollTop:0},c=h(1);const l=h(0),f=q(n);if((f||!f&&!s)&&(("body"!==F(n)||N(i))&&(p=tt(n)),f)){const t=lt(n);c=at(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}const u=!i||f||s?h(0):ut(i,p);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-p.scrollLeft*c.x+l.x+u.x,y:o.y*c.y-p.scrollTop*c.y+l.y+u.y}},getDocumentElement:P,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:n,strategy:r}=t;const s=[..."clippingAncestors"===o?V(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let n=nt(t,[],!1).filter((t=>B(t)&&"body"!==F(t))),r=null;const s="fixed"===Q(t).position;let i=s?et(t):t;for(;B(i)&&!J(i);){const e=Q(i),o=K(i);o||"fixed"!==e.position||(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||N(i)&&!o&&dt(t,i))?n=n.filter((t=>t!==i)):r=e,i=et(i)}return e.set(t,n),n}(e,this._c):[].concat(o),n],i=ht(e,s[0],r);let a=i.top,p=i.right,f=i.bottom,u=i.left;for(let t=1;t<s.length;t++){const o=ht(e,s[t],r);a=l(o.top,a),p=c(o.right,p),f=c(o.bottom,f),u=l(o.left,u)}return{width:p-u,height:f-a,x:u,y:a}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,o=this.getDimensions,n=await o(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=st(t);return{width:e,height:o}},getScale:at,isElement:B,isRTL:function(t){return"rtl"===Q(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const yt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=e,p=await async function(t,e){const{placement:o,platform:n,elements:r}=t,s=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=g(o),a=x(o),p="y"===y(o),c=R.has(i)?-1:1,l=s&&p?-1:1,f=m(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),p?{x:h*l,y:u*c}:{x:u*c,y:h*l}}(e,t);return i===(null==(o=a.offset)?void 0:o.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+p.x,y:s+p.y,data:{...p,placement:i}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:p,elements:c}=e,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=m(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const H=g(r),L=y(a),$=g(a)===a,D=await(null==p.isRTL?void 0:p.isRTL(c.floating)),j=u||($||!v?[O(a)]:function(t){const e=O(t);return[k(t),e,k(e)]}(a)),R="none"!==d;!u&&R&&j.push(...function(t,e,o,n){const r=x(t);let s=function(t,e,o){switch(t){case"top":case"bottom":return o?e?E:T:e?T:E;case"left":case"right":return e?M:A;default:return[]}}(g(t),"start"===o,n);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(k)))),s}(a,v,d,D));const z=[a,...j],F=await p.detectOverflow(e,w),C=[];let P=(null==(n=s.flip)?void 0:n.overflows)||[];if(l&&C.push(F[H]),f){const t=function(t,e,o){void 0===o&&(o=!1);const n=x(t),r=S(t),s=b(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=O(i)),[i,O(i)]}(r,i,D);C.push(F[t[0]],F[t[1]])}if(P=[...P,{placement:r,overflows:C}],!C.every((t=>t<=0))){var W,B;const t=((null==(W=s.flip)?void 0:W.index)||0)+1,e=z[t];if(e&&("alignment"!==f||L===y(e)||P.every((t=>y(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:P},reset:{placement:e}};let o=null==(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!o)switch(h){case"bestFit":{var q;const t=null==(q=P.filter((t=>{if(R){const e=y(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:r,rects:s,platform:i,elements:a}=e,{apply:p=()=>{},...f}=m(t,e),u=await i.detectOverflow(e,f),h=g(r),d=x(r),v="y"===y(r),{width:w,height:b}=s.floating;let S,k;"top"===h||"bottom"===h?(S=h,k=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(k=h,S="end"===d?"top":"bottom");const T=b-u.top-u.bottom,E=w-u.left-u.right;let M=c(b-u[S],T),A=c(w-u[k],E);if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(A=E),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=l(u.left,0),e=l(u.right,0),o=l(u.top,0),n=l(u.bottom,0);v?A=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):M=b-2*(0!==o||0!==n?o+n:l(u.top,u.bottom))}await p({...e,availableWidth:A,availableHeight:M});const O=await i.getDimensions(a.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},Tt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:n,rects:r,platform:s,strategy:i}=e,{padding:a=2,x:p,y:f}=m(t,e),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(n.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let n=null;for(let t=0;t<e.length;t++){const r=e[t];!n||r.y-n.y>n.height/2?o.push([r]):o[o.length-1].push(r),n=r}return o.map((t=>L(j(t))))}(u),d=L(j(u)),v=H(a),x=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=p&&null!=f)return h.find((t=>p>t.left-v.left&&p<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||d;if(h.length>=2){if("y"===y(o)){const t=h[0],e=h[h.length-1],n="top"===g(o),r=t.top,s=e.bottom,i=n?t.left:e.left,a=n?t.right:e.right;return{top:r,bottom:s,left:i,right:a,width:a-i,height:s-r,x:i,y:r}}const t="left"===g(o),e=l(...h.map((t=>t.right))),n=c(...h.map((t=>t.left))),r=h.filter((o=>t?o.left===n:o.right===e)),s=r[0].top,i=r[r.length-1].bottom;return{top:s,bottom:i,left:n,right:e,width:e-n,height:i-s,x:n,y:s}}return d}},floating:n.floating,strategy:i});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};var Et=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(o||"")}},Mt=new WeakMap;function At(t,e,o){Mt.set(t,setTimeout((()=>{Mt.has(t)&&t.dispatchEvent(new Et("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var Ot=globalThis.ShadowRoot||function(){},Ht=globalThis.HTMLDialogElement||function(){},Lt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,jt=new WeakMap;function Rt(t){return jt.get(t)||"hidden"}var zt=new WeakMap;function Ft(t){return[...t].pop()}function Ct(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Rt(t)||!e&&"hidden"!==Rt(t)||t instanceof Ht&&t.hasAttribute("open")||document.fullscreenElement===t)}function Pt(t){if(!t)return 0;const e=$t.get(document)||new Set,o=Dt.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Wt(t){let e;const o=Dt.get(t)||new Set,n=$t.get(t)||new Set,r=o.size>0?o:n.size>0?n:null;return r?(e=Ft(r),e.isConnected?e:(r.delete(e),Wt(t))):null}function Bt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function qt(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?qt(t.parentNode):t}function It(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===jt.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}function Nt(t,e){const o=new Map;let n=0;for(const t of e||[])o.set(t,n),n+=1;o.set(t,n),n+=1;let r=null;return function(e){if(!e)return;let n=!1,s=null,i=null;for(;!n;){if(s=It(e)||null,null===s)return;if(!o.has(s))return;"hint"!==t.popover&&"auto"!==s.popover||(n=!0),n||(e=s.parentElement)}i=o.get(s),(null===r||o.get(r)<i)&&(r=s)}(t.parentElement||qt(t)),r}function Gt(t){return!(t.hidden||t instanceof Ot||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Vt=new WeakMap;function Ut(t){if(!Ct(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new Et("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Ct(t,!1))return;let o=!1;const n=t.popover;let r=null;const s=Nt(t,$t.get(e)||new Set),i=Nt(t,Dt.get(e)||new Set);if("auto"===n&&(Zt(Dt.get(e)||new Set,o,!0),Kt(s||e,o,!0),r="auto"),"hint"===n&&(i?(Kt(i,o,!0),r="hint"):(Zt(Dt.get(e)||new Set,o,!0),s?(Kt(s,o,!0),r="auto"):r="hint")),"auto"===n||"hint"===n){if(n!==t.popover||!Ct(t,!1))return;Wt(e)||(o=!0),"auto"===r?($t.has(e)||$t.set(e,new Set),$t.get(e).add(t)):"hint"===r&&(Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t))}Vt.delete(t);const a=e.activeElement;var p;t.classList.add(":popover-open"),jt.set(t,"showing"),Lt.has(e)||Lt.set(e,new Set),Lt.get(e).add(t),te(zt.get(t),!0),p=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(Gt(r))return r;r=n.nextNode()}}(p)?.focus(),o&&a&&"auto"===t.popover&&Vt.set(t,a),At(t,"closed","open")}function Xt(t,e=!1,o=!1){if(!Ct(t,!0))return;const n=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Kt(t,e,o),!Ct(t,!0)))return;const r=$t.get(n)||new Set,s=r.has(t)&&Ft(r)===t;if(te(zt.get(t),!1),zt.delete(t),o&&(t.dispatchEvent(new Et("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ft(r)!==t&&Kt(t,e,o),!Ct(t,!0)))return;Lt.get(n)?.delete(t),r.delete(t),Dt.get(n)?.delete(t),t.classList.remove(":popover-open"),jt.set(t,"hidden"),o&&At(t,"open","closed");const i=Vt.get(t);i&&(Vt.delete(t),e&&i.focus())}function Zt(t,e=!1,o=!1){let n=Bt(t);for(;n;)Xt(n,e,o),n=Bt(t)}function _t(t,e,o,n){let r=!1,s=!1;for(;r||!s;){s=!0;let i=null,a=!1;for(const o of e)if(o===t)a=!0;else if(a){i=o;break}if(!i)return;for(;"showing"===Rt(i)&&e.size;)Xt(Ft(e),o,n);e.has(t)&&Ft(e)!==t&&(r=!0),r&&(n=!1)}}function Kt(t,e,o){const n=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let n=Wt(t);for(;n;)Xt(n,e,o),n=Wt(t)}(n,e,o);Dt.get(n)?.has(t)?_t(t,Dt.get(n),e,o):(Zt(Dt.get(n)||new Set,e,o),$t.get(n)?.has(t)&&_t(t,$t.get(n),e,o))}var Yt=new WeakMap;function Jt(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!Wt(o))return;const n=function(t){const e=It(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}(t);return Pt(e)>Pt(o)?e:o}(e);if(n&&"pointerdown"===t.type)Yt.set(o,n);else if("pointerup"===t.type){const t=Yt.get(o)===n;Yt.delete(o),t&&Kt(n||o,!1,!0)}}var Qt=new WeakMap;function te(t,e=!1){if(!t)return;Qt.has(t)||Qt.set(t,t.getAttribute("aria-expanded"));const o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{const e=Qt.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var ee=globalThis.ShadowRoot||function(){};function oe(t,e,o){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,o(t))}})}var ne=/(^|[^\\]):popover-open\b/g;var re=null;function se(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===re)try{(re=new CSSStyleSheet).replaceSync(e)}catch{re=!1}if(!1===re){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[re,...t.adoptedStyleSheets]}var ie=function(t,e,o,n){var r,s=arguments.length,i=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(s<3?r(i):s>3?r(e,o,i):r(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i};const ae={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},pe=class{constructor(o){t(this,o),this.postBeforeShow=e(this,"postBeforeShow"),this.postShow=e(this,"postShow"),this.postHide=e(this,"postHide"),this.postBeforeToggle=e(this,"postBeforeToggle"),this.postToggle=e(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ne,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Et,oe(Document.prototype,"querySelector",t),oe(Document.prototype,"querySelectorAll",t),oe(Element.prototype,"querySelector",t),oe(Element.prototype,"querySelectorAll",t),oe(Element.prototype,"matches",t),oe(Element.prototype,"closest",t),oe(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Ut(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Xt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===jt.get(this)&&void 0===t.force||!1===t.force?Xt(this,!0,!0):void 0!==t.force&&!0!==t.force||Ut(this),"showing"===jt.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const o=e.call(this,t);return se(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=o.call(this);return t.shadowRoot&&se(t.shadowRoot),t}}});const n=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=qt(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof ee)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var s;r(HTMLButtonElement),r(HTMLInputElement),(s=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const n=qt(o);if(!(n instanceof ee||n instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const o=Rt(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Xt(e,!0,!0):Ct(e,!1)&&(zt.set(e,t),Ut(e)))}(r),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||Kt(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",Jt),s.addEventListener("pointerup",Jt),se(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){!this.toggleTimeoutId&&t&&(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const o=this.host.matches(":where(:popover-open, .popover-open)");return!0!==e&&(void 0!==e||o)||t?(this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")):o}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ae[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let o;try{if(o=t(e),!o)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=o,"running"===o.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await o.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===o&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=it(t),h=r||s?[...f?nt(f):[],...e?nt(e):[]]:[];h.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const d=f&&a?function(t,e){let o,n=null;const r=P(t);function s(){var t;clearTimeout(o),null==(t=n)||t.disconnect(),n=null}return function i(a,p){void 0===a&&(a=!1),void 0===p&&(p=1),s();const f=t.getBoundingClientRect(),{left:h,top:d,width:v,height:m}=f;if(a||e(),!v||!m)return;const g={rootMargin:-u(d)+"px "+-u(r.clientWidth-(h+v))+"px "+-u(r.clientHeight-(d+m))+"px "+-u(h)+"px",threshold:l(0,c(1,p))||1};let x=!0;function w(e){const n=e[0].intersectionRatio;if(n!==p){if(!x)return i();n?i(!1,n):o=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==n||bt(f,t.getBoundingClientRect())||i(),x=!1}try{n=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){n=new IntersectionObserver(w,g)}n.observe(t)}(!0),s}(f,o):null;let v,m=-1,g=null;i&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===f&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),o()})),f&&!p&&g.observe(f),e&&g.observe(e));let x=p?lt(t):null;return p&&function e(){const n=lt(t);x&&!bt(x,n)&&o(),x=n,v=requestAnimationFrame(e)}(),o(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=g)||t.disconnect(),g=null,p&&cancelAnimationFrame(v)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:t,y:e,middlewareData:o,placement:n}=await this.computeMainPosition(),r=n.split("-")[0];if(this.dynamicPlacement=r,this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&o.arrow){const{x:t,y:e}=o.arrow,n=pe.STATIC_SIDES[r],s=-.5*this.arrowRef.offsetWidth;n&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[n]:`${s}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),o=St({padding:this.getHeaderHeight(),crossAxis:!1}),n=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:p={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=m(t,e),l={x:o,y:n},f=await s.detectOverflow(e,c),u=y(g(r)),h=w(u);let d=l[h],x=l[u];i&&(d=v(d+f["y"===h?"top":"left"],d,d-f["y"===h?"bottom":"right"])),a&&(x=v(x+f["y"===u?"top":"left"],x,x-f["y"===u?"bottom":"right"]));const b=p.fn({...e,[h]:d,[u]:x});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[h]:i,[u]:a}}}}}}({padding:t,limiter:(s={offset:32},void 0===s&&(s={}),{options:s,fn(t){const{x:e,y:o,placement:n,rects:r,middlewareData:i}=t,{offset:a=0,mainAxis:p=!0,crossAxis:c=!0}=m(s,t),l={x:e,y:o},f=y(n),u=w(f);let h=l[u],d=l[f];const v=m(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const t="y"===u?"height":"width",e=r.reference[u]-r.floating[t]+x.mainAxis,o=r.reference[u]+r.reference[t]-x.mainAxis;h<e?h=e:h>o&&(h=o)}if(c){var b,S;const t="y"===u?"width":"height",e=R.has(g(n)),o=r.reference[f]-r.floating[t]+(e&&(null==(b=i.offset)?void 0:b[f])||0)+(e?0:x.crossAxis),s=r.reference[f]+r.reference[t]+(e?0:(null==(S=i.offset)?void 0:S[f])||0)-(e?x.crossAxis:0);d<o?d=o:d>s&&(d=s)}return{[u]:h,[f]:d}}})}),r=[yt(this.offset??(this.arrow?t+4:t)),Tt(),...e?[o,n]:[n,o],kt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}})];var s;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:p}=e,{element:l,padding:f=0}=m(t,e)||{};if(null==l)return{};const u=H(f),h={x:o,y:n},d=S(r),g=b(d),w=await i.getDimensions(l),y="y"===d,k=y?"top":"left",T=y?"bottom":"right",E=y?"clientHeight":"clientWidth",M=s.reference[g]+s.reference[d]-h[d]-s.floating[g],A=h[d]-s.reference[d],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let L=O?O[E]:0;L&&await(null==i.isElement?void 0:i.isElement(O))||(L=a.floating[E]||s.floating[g]);const $=M/2-A/2,D=L/2-w[g]/2-1,j=c(u[k],D),R=c(u[T],D),z=j,F=L-w[g]-R,C=L/2-w[g]/2+$,P=v(z,C,F),W=!p.arrow&&null!=x(r)&&C!==P&&s.reference[g]/2-(C<z?j:R)-w[g]/2<0,B=W?C<z?C-z:C-F:0;return{[d]:h[d]+B,data:{[d]:P,centerOffset:C-P-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,o)=>{const n=new Map,r={platform:wt,...o},s={...r.platform,_c:n};return(async(t,e,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:D},p=await(null==i.isRTL?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:f}=$(c,n,p),u=n,h=0;const d={};for(let o=0;o<s.length;o++){const v=s[o];if(!v)continue;const{name:m,fn:g}=v,{x,y:w,data:b,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});l=null!=x?x:l,f=null!=w?w:f,d[m]={...d[m],...b},y&&h<50&&(h++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:l,y:f}=$(c,u,p))),o=-1)}return{x:l,y:f,placement:u,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),o="top"===t||"bottom"===t,n=((t,e,o)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?o.top:o.bottom,xStart:o.left,xEnd:o.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?o.left:o.right,yStart:o.top,yEnd:o.bottom}})(t,this.host.getBoundingClientRect(),e);pe.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${n.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${n.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${n.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${n.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${n.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${n.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${n.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${n.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${n.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${n.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${n.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${n.trigger.yEnd}px`))}render(){return o(n,{key:"ef1853c057a7c44af1b3e9247f6690f7d3b38b4a","data-version":s,popover:"auto"},o("div",{key:"66da2a4abe897e9619891078dbff25737aa9dd2a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"183416754cb5f9fdf3d1301186325535aabc2c96","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("span",{key:"6742ebb4ef07a3ab3b25f71dabd3a8252f654b6b",part:"post-popovercontainer-border-mask"}),o("slot",{key:"00cd0fc4bd4f20ac3abc23b0f5a69de51e4ab292"})))}get host(){return r(this)}};pe.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},pe.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ie([i(a)],pe.prototype,"placement",void 0),ie([p("number")],pe.prototype,"edgeGap",void 0),ie([i(["triangle","trapezoid"])],pe.prototype,"safeSpace",void 0),pe.style='@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{-webkit-clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)));clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{-webkit-clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)));clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}';export{pe as post_popovercontainer}
|
|
1
|
+
import{r as t,c as e,h as o,H as n,g as r}from"./p-h3opCZqH.js";import{v as s}from"./p-D9jUbrFT.js";import{O as i}from"./p-Drxf8XVU.js";import{P as a}from"./p-DRiVosES.js";import{T as p}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const c=Math.min,l=Math.max,f=Math.round,u=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function v(t,e,o){return l(t,c(e,o))}function m(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function x(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function b(t){return"y"===t?"height":"width"}function y(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function S(t){return w(y(t))}function k(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const T=["left","right"],E=["right","left"],M=["top","bottom"],A=["bottom","top"];function O(t){const e=g(t);return d[e]+t.slice(e.length)}function H(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function L(t){const{x:e,y:o,width:n,height:r}=t;return{width:n,height:r,top:o,left:e,right:e+n,bottom:o+r,x:e,y:o}}function $(t,e,o){let{reference:n,floating:r}=t;const s=y(e),i=S(e),a=b(i),p=g(e),c="y"===s,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,u=n[a]/2-r[a]/2;let h;switch(p){case"top":h={x:l,y:n.y-r.height};break;case"bottom":h={x:l,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-r.width,y:f};break;default:h={x:n.x,y:n.y}}switch(x(e)){case"start":h[i]-=u*(o&&c?-1:1);break;case"end":h[i]+=u*(o&&c?-1:1)}return h}async function D(t,e){var o;void 0===e&&(e={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:p}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=m(e,t),d=H(h),v=a[u?"floating"===f?"reference":"floating":f],g=L(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(v)))||o?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:p})),x="floating"===f?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},y=L(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:p}):x);return{top:(g.top-y.top+d.top)/b.y,bottom:(y.bottom-g.bottom+d.bottom)/b.y,left:(g.left-y.left+d.left)/b.x,right:(y.right-g.right+d.right)/b.x}}function j(t){const e=c(...t.map((t=>t.left))),o=c(...t.map((t=>t.top)));return{x:e,y:o,width:l(...t.map((t=>t.right)))-e,height:l(...t.map((t=>t.bottom)))-o}}const R=new Set(["left","top"]);function z(){return"undefined"!=typeof window}function F(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function P(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!z()&&(t instanceof Node||t instanceof C(t).Node)}function B(t){return!!z()&&(t instanceof Element||t instanceof C(t).Element)}function q(t){return!!z()&&(t instanceof HTMLElement||t instanceof C(t).HTMLElement)}function I(t){return!(!z()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof C(t).ShadowRoot)}function N(t){const{overflow:e,overflowX:o,overflowY:n,display:r}=Q(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&"inline"!==r&&"contents"!==r}function U(t){return/^(table|td|th)$/.test(F(t))}function V(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const G=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Z=t=>!!t&&"none"!==t;let _;function Y(t){const e=B(t)?Q(t):t;return Z(e.transform)||Z(e.translate)||Z(e.scale)||Z(e.rotate)||Z(e.perspective)||!J()&&(Z(e.backdropFilter)||Z(e.filter))||G.test(e.willChange||"")||X.test(e.contain||"")}function J(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function K(t){return/^(html|body|#document)$/.test(F(t))}function Q(t){return C(t).getComputedStyle(t)}function tt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function et(t){if("html"===F(t))return t;const e=t.assignedSlot||t.parentNode||I(t)&&t.host||P(t);return I(e)?e.host:e}function ot(t){const e=et(t);return K(e)?t.ownerDocument?t.ownerDocument.body:t.body:q(e)&&N(e)?e:ot(e)}function nt(t,e,o){var n;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=ot(t),s=r===(null==(n=t.ownerDocument)?void 0:n.body),i=C(r);if(s){const t=rt(i);return e.concat(i,i.visualViewport||[],N(r)?r:[],t&&o?nt(t):[])}return e.concat(r,nt(r,[],o))}function rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function st(t){const e=Q(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=q(t),s=r?t.offsetWidth:o,i=r?t.offsetHeight:n,a=f(o)!==s||f(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function it(t){return B(t)?t:t.contextElement}function at(t){const e=it(t);if(!q(e))return h(1);const o=e.getBoundingClientRect(),{width:n,height:r,$:s}=st(e);let i=(s?f(o.width):o.width)/n,a=(s?f(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const pt=h(0);function ct(t){const e=C(t);return J()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:pt}function lt(t,e,o,n){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=it(t);let i=h(1);e&&(n?B(n)&&(i=at(n)):i=at(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==C(t))&&e}(s,o,n)?ct(s):h(0);let p=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,l=r.width/i.x,f=r.height/i.y;if(s){const t=C(s),e=n&&B(n)?C(n):n;let o=t,r=rt(o);for(;r&&n&&e!==o;){const t=at(r),e=r.getBoundingClientRect(),n=Q(r),s=e.left+(r.clientLeft+parseFloat(n.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(n.paddingTop))*t.y;p*=t.x,c*=t.y,l*=t.x,f*=t.y,p+=s,c+=i,o=C(r),r=rt(o)}}return L({width:l,height:f,x:p,y:c})}function ft(t,e){const o=tt(t).scrollLeft;return e?e.left+o:lt(P(t)).left+o}function ut(t,e){const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-ft(t,o),y:o.top+e.scrollTop}}function ht(t,e,o){let n;if("viewport"===e)n=function(t,e){const o=C(t),n=P(t),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,p=0;if(r){s=r.width,i=r.height;const t=J();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,p=r.offsetTop)}const c=ft(n);if(c<=0){const t=n.ownerDocument,e=t.body,o=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,i=Math.abs(n.clientWidth-e.clientWidth-r);i<=25&&(s-=i)}else c<=25&&(s+=c);return{width:s,height:i,x:a,y:p}}(t,o);else if("document"===e)n=function(t){const e=P(t),o=tt(t),n=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=l(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+ft(t);const a=-o.scrollTop;return"rtl"===Q(n).direction&&(i+=l(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}(P(t));else if(B(e))n=function(t,e){const o=lt(t,!0,"fixed"===e),n=o.top+t.clientTop,r=o.left+t.clientLeft,s=q(t)?at(t):h(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:n*s.y}}(e,o);else{const o=ct(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return L(n)}function dt(t,e){const o=et(t);return!(o===e||!B(o)||K(o))&&("fixed"===Q(o).position||dt(o,e))}function vt(t,e,o){const n=q(e),r=P(e),s="fixed"===o,i=lt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const p=h(0);function c(){p.x=ft(r)}if(n||!n&&!s)if(("body"!==F(e)||N(r))&&(a=tt(e)),n){const t=lt(e,!0,s,e);p.x=t.x+e.clientLeft,p.y=t.y+e.clientTop}else r&&c();s&&!n&&r&&c();const l=!r||n||s?h(0):ut(r,a);return{x:i.left+a.scrollLeft-p.x-l.x,y:i.top+a.scrollTop-p.y-l.y,width:i.width,height:i.height}}function mt(t){return"static"===Q(t).position}function gt(t,e){if(!q(t)||"fixed"===Q(t).position)return null;if(e)return e(t);let o=t.offsetParent;return P(t)===o&&(o=o.ownerDocument.body),o}function xt(t,e){const o=C(t);if(V(t))return o;if(!q(t)){let e=et(t);for(;e&&!K(e);){if(B(e)&&!mt(e))return e;e=et(e)}return o}let n=gt(t,e);for(;n&&U(n)&&mt(n);)n=gt(n,e);return n&&K(n)&&mt(n)&&!Y(n)?o:n||function(t){let e=et(t);for(;q(e)&&!K(e);){if(Y(e))return e;if(V(e))return null;e=et(e)}return null}(t)||o}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:n,strategy:r}=t;const s="fixed"===r,i=P(n),a=!!e&&V(e.floating);if(n===i||a&&s)return o;let p={scrollLeft:0,scrollTop:0},c=h(1);const l=h(0),f=q(n);if((f||!f&&!s)&&(("body"!==F(n)||N(i))&&(p=tt(n)),f)){const t=lt(n);c=at(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}const u=!i||f||s?h(0):ut(i,p);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-p.scrollLeft*c.x+l.x+u.x,y:o.y*c.y-p.scrollTop*c.y+l.y+u.y}},getDocumentElement:P,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:n,strategy:r}=t;const s=[..."clippingAncestors"===o?V(e)?[]:function(t,e){const o=e.get(t);if(o)return o;let n=nt(t,[],!1).filter((t=>B(t)&&"body"!==F(t))),r=null;const s="fixed"===Q(t).position;let i=s?et(t):t;for(;B(i)&&!K(i);){const e=Q(i),o=Y(i);o||"fixed"!==e.position||(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||N(i)&&!o&&dt(t,i))?n=n.filter((t=>t!==i)):r=e,i=et(i)}return e.set(t,n),n}(e,this._c):[].concat(o),n],i=ht(e,s[0],r);let a=i.top,p=i.right,f=i.bottom,u=i.left;for(let t=1;t<s.length;t++){const o=ht(e,s[t],r);a=l(o.top,a),p=c(o.right,p),f=c(o.bottom,f),u=l(o.left,u)}return{width:p-u,height:f-a,x:u,y:a}},getOffsetParent:xt,getElementRects:async function(t){const e=this.getOffsetParent||xt,o=this.getDimensions,n=await o(t.floating);return{reference:vt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=st(t);return{width:e,height:o}},getScale:at,isElement:B,isRTL:function(t){return"rtl"===Q(t).direction}};function bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const yt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=e,p=await async function(t,e){const{placement:o,platform:n,elements:r}=t,s=await(null==n.isRTL?void 0:n.isRTL(r.floating)),i=g(o),a=x(o),p="y"===y(o),c=R.has(i)?-1:1,l=s&&p?-1:1,f=m(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof d&&(h="end"===a?-1*d:d),p?{x:h*l,y:u*c}:{x:u*c,y:h*l}}(e,t);return i===(null==(o=a.offset)?void 0:o.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+p.x,y:s+p.y,data:{...p,placement:i}}}}},St=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:p,elements:c}=e,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...w}=m(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const H=g(r),L=y(a),$=g(a)===a,D=await(null==p.isRTL?void 0:p.isRTL(c.floating)),j=u||($||!v?[O(a)]:function(t){const e=O(t);return[k(t),e,k(e)]}(a)),R="none"!==d;!u&&R&&j.push(...function(t,e,o,n){const r=x(t);let s=function(t,e,o){switch(t){case"top":case"bottom":return o?e?E:T:e?T:E;case"left":case"right":return e?M:A;default:return[]}}(g(t),"start"===o,n);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(k)))),s}(a,v,d,D));const z=[a,...j],F=await p.detectOverflow(e,w),C=[];let P=(null==(n=s.flip)?void 0:n.overflows)||[];if(l&&C.push(F[H]),f){const t=function(t,e,o){void 0===o&&(o=!1);const n=x(t),r=S(t),s=b(r);let i="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=O(i)),[i,O(i)]}(r,i,D);C.push(F[t[0]],F[t[1]])}if(P=[...P,{placement:r,overflows:C}],!C.every((t=>t<=0))){var W,B;const t=((null==(W=s.flip)?void 0:W.index)||0)+1,e=z[t];if(e&&("alignment"!==f||L===y(e)||P.every((t=>y(t.placement)!==L||t.overflows[0]>0))))return{data:{index:t,overflows:P},reset:{placement:e}};let o=null==(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:B.placement;if(!o)switch(h){case"bestFit":{var q;const t=null==(q=P.filter((t=>{if(R){const e=y(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:q[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}},kt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:r,rects:s,platform:i,elements:a}=e,{apply:p=()=>{},...f}=m(t,e),u=await i.detectOverflow(e,f),h=g(r),d=x(r),v="y"===y(r),{width:w,height:b}=s.floating;let S,k;"top"===h||"bottom"===h?(S=h,k=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(k=h,S="end"===d?"top":"bottom");const T=b-u.top-u.bottom,E=w-u.left-u.right;let M=c(b-u[S],T),A=c(w-u[k],E);if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(A=E),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(M=T),!e.middlewareData.shift&&!d){const t=l(u.left,0),e=l(u.right,0),o=l(u.top,0),n=l(u.bottom,0);v?A=w-2*(0!==t||0!==e?t+e:l(u.left,u.right)):M=b-2*(0!==o||0!==n?o+n:l(u.top,u.bottom))}await p({...e,availableWidth:A,availableHeight:M});const O=await i.getDimensions(a.floating);return w!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},Tt=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:n,rects:r,platform:s,strategy:i}=e,{padding:a=2,x:p,y:f}=m(t,e),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(n.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),o=[];let n=null;for(let t=0;t<e.length;t++){const r=e[t];!n||r.y-n.y>n.height/2?o.push([r]):o[o.length-1].push(r),n=r}return o.map((t=>L(j(t))))}(u),d=L(j(u)),v=H(a),x=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=p&&null!=f)return h.find((t=>p>t.left-v.left&&p<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||d;if(h.length>=2){if("y"===y(o)){const t=h[0],e=h[h.length-1],n="top"===g(o),r=t.top,s=e.bottom,i=n?t.left:e.left,a=n?t.right:e.right;return{top:r,bottom:s,left:i,right:a,width:a-i,height:s-r,x:i,y:r}}const t="left"===g(o),e=l(...h.map((t=>t.right))),n=c(...h.map((t=>t.left))),r=h.filter((o=>t?o.left===n:o.right===e)),s=r[0].top,i=r[r.length-1].bottom;return{top:s,bottom:i,left:n,right:e,width:e-n,height:i-s,x:n,y:s}}return d}},floating:n.floating,strategy:i});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};var Et=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:o="",...n}={}){super(t,n),this.oldState=String(e||""),this.newState=String(o||"")}},Mt=new WeakMap;function At(t,e,o){Mt.set(t,setTimeout((()=>{Mt.has(t)&&t.dispatchEvent(new Et("toggle",{cancelable:!1,oldState:e,newState:o}))}),0))}var Ot=globalThis.ShadowRoot||function(){},Ht=globalThis.HTMLDialogElement||function(){},Lt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,jt=new WeakMap;function Rt(t){return jt.get(t)||"hidden"}var zt=new WeakMap;function Ft(t){return[...t].pop()}function Ct(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Rt(t)||!e&&"hidden"!==Rt(t)||t instanceof Ht&&t.hasAttribute("open")||document.fullscreenElement===t)}function Pt(t){if(!t)return 0;const e=$t.get(document)||new Set,o=Dt.get(document)||new Set;return o.has(t)?[...o].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function Wt(t){let e;const o=Dt.get(t)||new Set,n=$t.get(t)||new Set,r=o.size>0?o:n.size>0?n:null;return r?(e=Ft(r),e.isConnected?e:(r.delete(e),Wt(t))):null}function Bt(t){for(const e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function qt(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?qt(t.parentNode):t}function It(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===jt.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}function Nt(t,e){const o=new Map;let n=0;for(const t of e||[])o.set(t,n),n+=1;o.set(t,n),n+=1;let r=null;return function(e){if(!e)return;let n=!1,s=null,i=null;for(;!n;){if(s=It(e)||null,null===s)return;if(!o.has(s))return;"hint"!==t.popover&&"auto"!==s.popover||(n=!0),n||(e=s.parentElement)}i=o.get(s),(null===r||o.get(r)<i)&&(r=s)}(t.parentElement||qt(t)),r}function Ut(t){return!(t.hidden||t instanceof Ot||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href||"number"!=typeof t.tabIndex||-1===t.tabIndex)}var Vt=new WeakMap;function Gt(t){if(!Ct(t,!1))return;const e=t.ownerDocument;if(!t.dispatchEvent(new Et("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Ct(t,!1))return;let o=!1;const n=t.popover;let r=null;const s=Nt(t,$t.get(e)||new Set),i=Nt(t,Dt.get(e)||new Set);if("auto"===n&&(Zt(Dt.get(e)||new Set,o,!0),Yt(s||e,o,!0),r="auto"),"hint"===n&&(i?(Yt(i,o,!0),r="hint"):(Zt(Dt.get(e)||new Set,o,!0),s?(Yt(s,o,!0),r="auto"):r="hint")),"auto"===n||"hint"===n){if(n!==t.popover||!Ct(t,!1))return;Wt(e)||(o=!0),"auto"===r?($t.has(e)||$t.set(e,new Set),$t.get(e).add(t)):"hint"===r&&(Dt.has(e)||Dt.set(e,new Set),Dt.get(e).add(t))}Vt.delete(t);const a=e.activeElement;var p;t.classList.add(":popover-open"),jt.set(t,"showing"),Lt.has(e)||Lt.set(e,new Set),Lt.get(e).add(t),te(zt.get(t),!0),p=t,function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let o=e.querySelector("[autofocus]");if(o)return o;{const t=e.querySelectorAll("slot");for(const e of t){const t=e.assignedElements({flatten:!0});for(const e of t){if(e.hasAttribute("autofocus"))return e;if(o=e.querySelector("[autofocus]"),o)return o}}}const n=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){if(Ut(r))return r;r=n.nextNode()}}(p)?.focus(),o&&a&&"auto"===t.popover&&Vt.set(t,a),At(t,"closed","open")}function Xt(t,e=!1,o=!1){if(!Ct(t,!0))return;const n=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(Yt(t,e,o),!Ct(t,!0)))return;const r=$t.get(n)||new Set,s=r.has(t)&&Ft(r)===t;if(te(zt.get(t),!1),zt.delete(t),o&&(t.dispatchEvent(new Et("beforetoggle",{oldState:"open",newState:"closed"})),s&&Ft(r)!==t&&Yt(t,e,o),!Ct(t,!0)))return;Lt.get(n)?.delete(t),r.delete(t),Dt.get(n)?.delete(t),t.classList.remove(":popover-open"),jt.set(t,"hidden"),o&&At(t,"open","closed");const i=Vt.get(t);i&&(Vt.delete(t),e&&i.focus())}function Zt(t,e=!1,o=!1){let n=Bt(t);for(;n;)Xt(n,e,o),n=Bt(t)}function _t(t,e,o,n){let r=!1,s=!1;for(;r||!s;){s=!0;let i=null,a=!1;for(const o of e)if(o===t)a=!0;else if(a){i=o;break}if(!i)return;for(;"showing"===Rt(i)&&e.size;)Xt(Ft(e),o,n);e.has(t)&&Ft(e)!==t&&(r=!0),r&&(n=!1)}}function Yt(t,e,o){const n=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,o=!1){let n=Wt(t);for(;n;)Xt(n,e,o),n=Wt(t)}(n,e,o);Dt.get(n)?.has(t)?_t(t,Dt.get(n),e,o):(Zt(Dt.get(n)||new Set,e,o),$t.get(n)?.has(t)&&_t(t,$t.get(n),e,o))}var Jt=new WeakMap;function Kt(t){if(!t.isTrusted)return;const e=t.composedPath()[0];if(!e)return;const o=e.ownerDocument;if(!Wt(o))return;const n=function(t){const e=It(t),o=function(t){for(;t;){const e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||qt(t))instanceof Ot&&(t=t.host),t instanceof Document)return}}(t);return Pt(e)>Pt(o)?e:o}(e);if(n&&"pointerdown"===t.type)Jt.set(o,n);else if("pointerup"===t.type){const t=Jt.get(o)===n;Jt.delete(o),t&&Yt(n||o,!1,!0)}}var Qt=new WeakMap;function te(t,e=!1){if(!t)return;Qt.has(t)||Qt.set(t,t.getAttribute("aria-expanded"));const o=t.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)t.setAttribute("aria-expanded",String(e));else{const e=Qt.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var ee=globalThis.ShadowRoot||function(){};function oe(t,e,o){const n=t[e];Object.defineProperty(t,e,{value(t){return n.call(this,o(t))}})}var ne=/(^|[^\\]):popover-open\b/g;var re=null;function se(t){const e=function(){const t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===re)try{(re=new CSSStyleSheet).replaceSync(e)}catch{re=!1}if(!1===re){const o=document.createElement("style");o.textContent=e,t instanceof Document?t.head.prepend(o):t.prepend(o)}else t.adoptedStyleSheets=[re,...t.adoptedStyleSheets]}var ie=function(t,e,o,n){var r,s=arguments.length,i=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(s<3?r(i):s>3?r(e,o,i):r(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i};const ae={"pop-in":function(t){if(t)return t.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:250,easing:"ease-out",fill:"forwards"})}},pe=class{constructor(o){t(this,o),this.postBeforeShow=e(this,"postBeforeShow"),this.postShow=e(this,"postShow"),this.postHide=e(this,"postHide"),this.postBeforeToggle=e(this,"postBeforeToggle"),this.postToggle=e(this,"postToggle"),this.toggleTimeoutId=null,this.hasOpenedOnce=!0,this.placement="top",this.edgeGap=8,this.arrow=!1,this.animation="pop-in",this.currentAnimation=null,this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}connectedCallback(){"undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if("undefined"==typeof window)return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(ne,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Et,oe(Document.prototype,"querySelector",t),oe(Document.prototype,"querySelectorAll",t),oe(Element.prototype,"querySelector",t),oe(Element.prototype,"querySelectorAll",t),oe(Element.prototype,"matches",t),oe(Element.prototype,"closest",t),oe(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Gt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Xt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===jt.get(this)&&void 0===t.force||!1===t.force?Xt(this,!0,!0):void 0!==t.force&&!0!==t.force||Gt(this),"showing"===jt.get(this)}}});const e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){const o=e.call(this,t);return se(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const t=o.call(this);return t.shadowRoot&&se(t.shadowRoot),t}}});const n=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;const e=qt(this),o=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof ee)&&o&&e.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}var s;r(HTMLButtonElement),r(HTMLInputElement),(s=document).addEventListener("click",(t=>{const e=t.composedPath(),o=e[0];if(!(o instanceof Element)||o?.shadowRoot)return;const n=qt(o);if(!(n instanceof ee||n instanceof Document))return;const r=e.find((t=>t.matches?.("[popovertargetaction],[popovertarget]")));return r?(function(t){const e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;const o=Rt(e);"show"===t.popoverTargetAction&&"showing"===o||"hide"===t.popoverTargetAction&&"hidden"===o||("showing"===o?Xt(e,!0,!0):Ct(e,!1)&&(zt.set(e,t),Gt(e)))}(r),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{const e=t.key,o=t.target;t.defaultPrevented||!o||"Escape"!==e&&"Esc"!==e||Yt(o.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",Kt),s.addEventListener("pointerup",Kt),se(document)}()}componentDidLoad(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){!this.toggleTimeoutId&&t&&(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover(),this.postHide.emit())}async toggle(t,e){const o=this.host.matches(":where(:popover-open, .popover-open)");return!0!==e&&(void 0!==e||o)||t?(this.eventTarget=t,this.toggleTimeoutId||(this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")):o}open(){const t=this.host.shadowRoot?.querySelector(".popover-content");if(this.startAutoupdates(),t){const e=ae[this.animation];"function"==typeof e?this.runOpenAnimation(e,t):(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce&&(this.hasOpenedOnce=!1))}this.safeSpace&&globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}close(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler),this.currentAnimation&&(this.currentAnimation.cancel(),this.currentAnimation=null),this.postBeforeToggle.emit({willOpen:!1}),this.postToggle.emit({isOpen:!1}),this.postHide.emit()}async runOpenAnimation(t,e){let o;try{if(o=t(e),!o)return this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!0}),void this.postShow.emit({first:this.hasOpenedOnce});this.currentAnimation=o,"running"===o.playState&&(this.postBeforeToggle.emit({willOpen:!0}),this.postBeforeShow.emit({first:this.hasOpenedOnce})),await o.finished,this.postToggle.emit({isOpen:!0}),this.postShow.emit({first:this.hasOpenedOnce}),this.hasOpenedOnce=!0}catch(t){console.warn("Animation failed or was interrupted:",t),this.postBeforeToggle.emit({willOpen:!1}),this.postBeforeShow.emit({first:this.hasOpenedOnce}),this.postToggle.emit({isOpen:!1})}finally{this.currentAnimation===o&&(this.currentAnimation=null)}}handleToggle(t){this.toggleTimeoutId=globalThis.setTimeout((()=>this.toggleTimeoutId=null),10),"open"===t.newState?this.open():this.close()}startAutoupdates(){this.eventTarget&&this.host&&(this.clearAutoUpdate=function(t,e,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=it(t),h=r||s?[...f?nt(f):[],...e?nt(e):[]]:[];h.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const d=f&&a?function(t,e){let o,n=null;const r=P(t);function s(){var t;clearTimeout(o),null==(t=n)||t.disconnect(),n=null}return function i(a,p){void 0===a&&(a=!1),void 0===p&&(p=1),s();const f=t.getBoundingClientRect(),{left:h,top:d,width:v,height:m}=f;if(a||e(),!v||!m)return;const g={rootMargin:-u(d)+"px "+-u(r.clientWidth-(h+v))+"px "+-u(r.clientHeight-(d+m))+"px "+-u(h)+"px",threshold:l(0,c(1,p))||1};let x=!0;function w(e){const n=e[0].intersectionRatio;if(n!==p){if(!x)return i();n?i(!1,n):o=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==n||bt(f,t.getBoundingClientRect())||i(),x=!1}try{n=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){n=new IntersectionObserver(w,g)}n.observe(t)}(!0),s}(f,o):null;let v,m=-1,g=null;i&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===f&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),o()})),f&&!p&&g.observe(f),e&&g.observe(e));let x=p?lt(t):null;return p&&function e(){const n=lt(t);x&&!bt(x,n)&&o(),x=n,v=requestAnimationFrame(e)}(),o(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=g)||t.disconnect(),g=null,p&&cancelAnimationFrame(v)}}(this.eventTarget,this.host,this.calculatePosition.bind(this)))}getHeaderHeight(){const t=document.querySelector("post-header");return t?Number.parseFloat(getComputedStyle(t).height):0}async calculatePosition(){const{x:t,y:e,middlewareData:o,placement:n}=await this.computeMainPosition(),r=n.split("-")[0];if(this.dynamicPlacement=r,this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&o.arrow){const{x:t,y:e}=o.arrow,n=pe.STATIC_SIDES[r],s=-.5*this.arrowRef.offsetWidth;n&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[n]:`${s}px`})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=(this.placement||"top").includes("-"),o=St({padding:this.getHeaderHeight(),crossAxis:!1}),n=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:p={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=m(t,e),l={x:o,y:n},f=await s.detectOverflow(e,c),u=y(g(r)),h=w(u);let d=l[h],x=l[u];i&&(d=v(d+f["y"===h?"top":"left"],d,d-f["y"===h?"bottom":"right"])),a&&(x=v(x+f["y"===u?"top":"left"],x,x-f["y"===u?"bottom":"right"]));const b=p.fn({...e,[h]:d,[u]:x});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[h]:i,[u]:a}}}}}}({padding:t,limiter:(s={offset:32},void 0===s&&(s={}),{options:s,fn(t){const{x:e,y:o,placement:n,rects:r,middlewareData:i}=t,{offset:a=0,mainAxis:p=!0,crossAxis:c=!0}=m(s,t),l={x:e,y:o},f=y(n),u=w(f);let h=l[u],d=l[f];const v=m(a,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const t="y"===u?"height":"width",e=r.reference[u]-r.floating[t]+x.mainAxis,o=r.reference[u]+r.reference[t]-x.mainAxis;h<e?h=e:h>o&&(h=o)}if(c){var b,S;const t="y"===u?"width":"height",e=R.has(g(n)),o=r.reference[f]-r.floating[t]+(e&&(null==(b=i.offset)?void 0:b[f])||0)+(e?0:x.crossAxis),s=r.reference[f]+r.reference[t]+(e?0:(null==(S=i.offset)?void 0:S[f])||0)-(e?x.crossAxis:0);d<o?d=o:d>s&&(d=s)}return{[u]:h,[f]:d}}})}),r=[yt(this.offset??(this.arrow?t+4:t)),Tt(),...e?[o,n]:[n,o],kt({apply({availableWidth:e,elements:o}){Object.assign(o.floating.style,{maxWidth:e-2*t+"px"})}})];var s;return this.arrow&&r.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:p}=e,{element:l,padding:f=0}=m(t,e)||{};if(null==l)return{};const u=H(f),h={x:o,y:n},d=S(r),g=b(d),w=await i.getDimensions(l),y="y"===d,k=y?"top":"left",T=y?"bottom":"right",E=y?"clientHeight":"clientWidth",M=s.reference[g]+s.reference[d]-h[d]-s.floating[g],A=h[d]-s.reference[d],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let L=O?O[E]:0;L&&await(null==i.isElement?void 0:i.isElement(O))||(L=a.floating[E]||s.floating[g]);const $=M/2-A/2,D=L/2-w[g]/2-1,j=c(u[k],D),R=c(u[T],D),z=j,F=L-w[g]-R,C=L/2-w[g]/2+$,P=v(z,C,F),W=!p.arrow&&null!=x(r)&&C!==P&&s.reference[g]/2-(C<z?j:R)-w[g]/2<0,B=W?C<z?C-z:C-F:0;return{[d]:h[d]+B,data:{[d]:P,centerOffset:C-P-B,...W&&{alignmentOffset:B}},reset:W}}}))({element:this.arrowRef,padding:t})),((t,e,o)=>{const n=new Map,r={platform:wt,...o},s={...r.platform,_c:n};return(async(t,e,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:D},p=await(null==i.isRTL?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:f}=$(c,n,p),u=n,h=0;const d={};for(let o=0;o<s.length;o++){const v=s[o];if(!v)continue;const{name:m,fn:g}=v,{x,y:w,data:b,reset:y}=await g({x:l,y:f,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});l=null!=x?x:l,f=null!=w?w:f,d[m]={...d[m],...b},y&&h<50&&(h++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:l,y:f}=$(c,u,p))),o=-1)}return{x:l,y:f,placement:u,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:r})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),o="top"===t||"bottom"===t,n=((t,e,o)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?o.top:o.bottom,xStart:o.left,xEnd:o.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?o.left:o.right,yStart:o.top,yEnd:o.bottom}})(t,this.host.getBoundingClientRect(),e);pe.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),o?(this.host.style.setProperty("--post-safe-space-popover-y",`${n.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${n.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${n.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${n.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${n.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${n.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${n.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${n.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${n.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${n.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${n.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${n.trigger.yEnd}px`))}render(){return o(n,{key:"be9f32a35f247f5b2cb54599b96e715ce1a5a1f1","data-version":s,popover:"auto"},o("div",{key:"ad2616c15dfec83e1e53ad14cb145aee2d625c9a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&o("span",{key:"293ba9d1ba2a7b57297cd4aa716ba1369b2f8988","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:t=>{this.arrowRef=t}}),o("span",{key:"7b9d47b53a4d4a672490eccdc88a7eb0552b5574",part:"post-popovercontainer-border-mask"}),o("slot",{key:"4b4249d6ebe1c247634bbb76b08ec01e73dc7d4b"})))}get host(){return r(this)}};pe.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},pe.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ie([i(a)],pe.prototype,"placement",void 0),ie([p("number")],pe.prototype,"edgeGap",void 0),ie([i(["triangle","trapezoid"])],pe.prototype,"safeSpace",void 0),pe.style='@layer polyfill{@supports not selector(:popover-open){:host([popover]:not(.\\:popover-open)){display:none}}}:host{background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:host>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;color:var(--post-current-fg);background-color:var(--post-current-bg);border-radius:4px;position:relative}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host>div{border:2px solid rgba(0,0,0,0)}}:host [part=post-popovercontainer-border-mask]{display:none;position:absolute;inset:0;border-radius:4px;pointer-events:none}:host .arrow{--post-popovercontainer-arrow-border: var(--post-popovercontainer-arrow-border-width, 0px) solid var(--post-popovercontainer-arrow-border-color, transparent);position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:host .arrow[dynamic-placement=top]{border-bottom-right-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=right]{border-bottom-left-radius:2px;border-bottom:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=bottom]{border-top-left-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-left:var(--post-popovercontainer-arrow-border)}:host .arrow[dynamic-placement=left]{border-top-right-radius:2px;border-top:var(--post-popovercontainer-arrow-border);border-right:var(--post-popovercontainer-arrow-border)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .arrow[dynamic-placement=top]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);bottom:-0.3796735336rem !important}:host .arrow[dynamic-placement=left]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0);right:-0.3796735336rem !important}:host .arrow[dynamic-placement=right]{-webkit-border-after:2px solid rgba(0,0,0,0);border-block-end:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);left:-0.3796735336rem !important}:host .arrow[dynamic-placement=bottom]{-webkit-border-before:2px solid rgba(0,0,0,0);border-block-start:2px solid rgba(0,0,0,0);-webkit-border-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0);top:-0.3796735336rem !important}}:host([tooltip]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:host([safe-space])::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:host([safe-space=triangle])::after{-webkit-clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)));clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:host([safe-space=trapezoid])::after{-webkit-clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)));clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:host(:not(:has(.arrow)))>div{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}:host(:has(.arrow))>div{-webkit-filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=top]))>div{-webkit-filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=left]))>div{-webkit-filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:host(:has(.arrow[dynamic-placement=right]))>div{-webkit-filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15));filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}';export{pe as post_popovercontainer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as o,g as s}from"./p-h3opCZqH.js";import{v as r}from"./p-D9jUbrFT.js";import{n as a}from"./p-8LXe8Zt_.js";import{R as p}from"./p-DvaRK2lz.js";import{T as d}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const f=class{constructor(e){t(this,e)}componentWillLoad(){this.panelId=`panel-${this.host.id||a(6)}`}render(){return e(o,{key:"07d93ddaa69253a956ed50cd9ecd6ed039fbc6e2","data-version":r,id:this.panelId,role:"tabpanel",slot:"panels",style:void 0},e("slot",{key:"d6887db4e0e4dc22f8f8fdf098d6068ef4bd1a91"}))}get host(){return s(this)}};(function(t,e,o,s){var r,a=arguments.length,p=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,e,o,s);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(p=(a<3?r(p):a>3?r(e,o,p):r(e,o))||p);a>3&&p&&Object.defineProperty(e,o,p)})([p(),d("string")],f.prototype,"for",void 0),f.style=":host{display:none}";export{f as post_tab_panel}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as o,g as n}from"./p-h3opCZqH.js";import{v as r}from"./p-D9jUbrFT.js";import{d as a}from"./p-C9hMpmsD.js";import{n as s}from"./p-8LXe8Zt_.js";import{T as c}from"./p-DZMUeI8H.js";import{R as l}from"./p-DvaRK2lz.js";import"./p-vAzHgwTd.js";var d=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const p=class{constructor(i){t(this,i),this.postChange=e(this,"postChange"),this.maxVisiblePages=3,this.items=[],this.page=1,this.lastWindowWidth=window.innerWidth,this.loaded=!1,this.debouncedResize=a(this.handleResizeInternal.bind(this),150),this.measurementTimeoutId=null}handlePropsChange(){this.updatePagesWithValidation()}componentWillLoad(){this.paginationId=`pagination-${this.host.id||s(6)}`,this.updatePagesWithValidation()}connectedCallback(){window.addEventListener("resize",this.debouncedResize)}componentDidLoad(){this.loaded=!0,this.scheduleMeasurement()}disconnectedCallback(){this.loaded=!1,window.removeEventListener("resize",this.debouncedResize),null!==this.measurementTimeoutId&&(clearTimeout(this.measurementTimeoutId),this.measurementTimeoutId=null)}scheduleMeasurement(){this.loaded&&(this.measurementTimeoutId=globalThis.setTimeout((()=>{this.navRef?.clientWidth>0&&this.hiddenItemsRef?this.measureAndCalculateVisiblePages():this.scheduleMeasurement()}),50))}handleResizeInternal(){this.loaded&&window.innerWidth!==this.lastWindowWidth&&(this.lastWindowWidth=window.innerWidth,this.measureAndCalculateVisiblePages())}calculateGap(t,e){const i=t.getBoundingClientRect();return e.getBoundingClientRect().left-i.right}measureAndCalculateVisiblePages(){if(!this.navRef||!this.hiddenItemsRef||!this.loaded)return;const t=this.getTotalPages();if(t<=1)return;const e=this.getPaginationPadding(),i=this.getAvailableWidth()-e,o=this.hiddenItemsRef.querySelector(".hidden-page-button"),n=this.hiddenItemsRef.querySelector(".hidden-ellipsis");if(!o)return;const r=o.getBoundingClientRect().width,a=o&&n?this.calculateGap(o,n):0,s=this.getControlButtonsWidth(a),c=Math.floor((i-s+a)/(r+a)),l=Math.max(3,Math.min(c,t));this.maxVisiblePages=l,this.updatePagesWithValidation()}getControlButtonsWidth(t){return this.hiddenItemsRef?Array.from(this.hiddenItemsRef.querySelectorAll(".hidden-control-button")).reduce(((e,i)=>{const o=Number.parseFloat(globalThis.getComputedStyle(i).marginInlineStart),n=Number.parseFloat(globalThis.getComputedStyle(i).marginInlineEnd);return e+i.getBoundingClientRect().width+o+n+t}),0):0}getPaginationPadding(){if(!this.navRef)return 0;const t=globalThis.getComputedStyle(this.navRef);return(Number.parseFloat(t.paddingLeft)||0)+(Number.parseFloat(t.paddingRight)||0)}getAvailableWidth(){return this.navRef?this.host.parentElement?.clientWidth??window.innerWidth:0}get invalidSize(){return 0===this.collectionSize||0===this.pageSize}clampPageToValidRange(t){const e=0===t||this.invalidSize||Number.isNaN(t),i=!this.page||this.page<1||Number.isNaN(this.page);return e||i?1:this.page>t?t:this.page}updatePagesWithValidation(){const t=this.getTotalPages();this.page=this.clampPageToValidRange(t),this.generateItems(t)}getTotalPages(){return this.invalidSize?1:Math.ceil(this.collectionSize/this.pageSize)}sectionForGap(t){return t<=1?"none":2===t?"page":"ellipsis"}getSections(t,e,i){const o=t-1,n=i-e;return{leftSection:this.sectionForGap(o),rightSection:this.sectionForGap(n),leftGap:o,rightGap:n}}computeTotalItems(t,e,i){const{leftSection:o,rightSection:n}=this.getSections(t,e,i);return 2+("none"===o?0:1)+("none"===n?0:1)+Math.max(0,e-t+1)}buildAllPages(t){const e=[];for(let i=1;i<=t;i++)e.push({type:"page",page:i});return e}adjustForGapTwo(t,e,i,o){const n={startPage:t,endPage:e};return 2==i-e&&(n.endPage=i-1,n.startPage=Math.max(2,n.endPage-o+1)),2==n.startPage-1&&(n.startPage=2,n.endPage=Math.min(i-1,n.startPage+o-1)),n}ensureMiddleSlots(t,e,i,o){const n={startPage:t,endPage:e},r=e-t+1;return r<o&&e<i-1&&(n.endPage=Math.min(i-1,t+o-1)),r<o&&t>2&&(n.startPage=Math.max(2,e-o+1)),n}trimExcessItems(t,e,i,o,n){const r={startPage:t,endPage:e};let a=this.computeTotalItems(r.startPage,r.endPage,i);for(;a>o;){if(r.endPage-n>=n-r.startPage&&r.endPage>r.startPage)r.endPage=Math.max(r.startPage-1,r.endPage-1);else{if(!(r.startPage<r.endPage))break;r.startPage=Math.min(r.endPage+1,r.startPage+1)}const t=this.computeTotalItems(r.startPage,r.endPage,i);if(t===a)break;a=t}return r}expandToFillSlots(t,e,i,o){const n={startPage:t,endPage:e};let r=this.computeTotalItems(n.startPage,n.endPage,i);for(;r<o;){const t=n.endPage<i-1;if(n.startPage>2)n.startPage=Math.max(2,n.startPage-1);else{if(!t)break;n.endPage=Math.min(i-1,n.endPage+1)}const e=this.computeTotalItems(n.startPage,n.endPage,i);if(e===r)break;r=e}return n}balanceTotalItems(t,e,i,o,n){const r=this.trimExcessItems(t,e,i,o,n);return this.expandToFillSlots(r.startPage,r.endPage,i,o)}calculatePageRange(t,e,i){const o=Math.max(0,i-2-2);if(o<=0)return{startPage:2,endPage:1};let n=t-Math.floor(o/2),r=n+o-1;n<2&&(n=2,r=n+o-1),r>e-1&&(r=e-1,n=r-o+1),n=Math.max(2,n),r=Math.min(e-1,r);const a=this.adjustForGapTwo(n,r,e,o),s=this.ensureMiddleSlots(a.startPage,a.endPage,e,o);return this.balanceTotalItems(s.startPage,s.endPage,e,i,t)}buildPaginationItems(t,e,i){const o=[],n=t<=e;if(o.push({type:"page",page:1}),n){const{leftSection:n,rightSection:r}=this.getSections(t,e,i);"page"===n?o.push({type:"page",page:2}):"ellipsis"===n&&o.push({type:"ellipsis"});for(let i=t;i<=e;i++)o.push({type:"page",page:i});return"page"===r?o.push({type:"page",page:i-1}):"ellipsis"===r&&o.push({type:"ellipsis"}),o.push({type:"page",page:i}),o}}generateSmallPagination(t,e){return 1===t||t===e?[{type:"page",page:1},{type:"ellipsis"},{type:"page",page:e}]:[{type:"ellipsis"},{type:"page",page:t},{type:"ellipsis"}]}generatePages(t,e,i){if(t<=e)return this.buildAllPages(t);if(e<=4)return this.generateSmallPagination(i,t);const{startPage:o,endPage:n}=this.calculatePageRange(i,t,e);return this.buildPaginationItems(o,n,t)}generateItems(t){const e=this.page;this.items=[{type:"control",action:"previous",disabled:e<=1},...this.generatePages(t,this.maxVisiblePages,e),{type:"control",action:"next",disabled:e>=t}]}emitPageChange(t){this.page=t,requestAnimationFrame((()=>this.measureAndCalculateVisiblePages())),this.postChange.emit(t)}handlePageClick(t){t!==this.page&&this.emitPageChange(t)}handlePrevious(){this.page<=1||this.emitPageChange(this.page-1)}handleNext(){const t=this.getTotalPages();this.page>=t||this.emitPageChange(this.page+1)}handleKeyDown(t,e){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())}buildPageLabel(t){const e=this.getTotalPages();return 1===t?`${this.textFirst}, ${this.textPage} ${t}`:t===e?`${this.textLast}, ${this.textPage} ${t}`:`${this.textPage} ${t}`}buildControlAttributes(t){switch(t){case"previous":return{key:"prev",icon:"chevronleftwide",label:this.textPrevious,className:"prev-button",onClick:()=>this.handlePrevious()};case"next":return{key:"next",icon:"chevronrightwide",label:this.textNext,className:"next-button",onClick:()=>this.handleNext()}}}renderEllipsis(t){return i("li",{class:"pagination-item pagination-ellipsis",key:`ellipsis-${t}`,"aria-hidden":"true"},i("span",{class:"pagination-ellipsis-content"},"..."))}renderPageButton(t){const e=t===this.page;return i("li",{class:"pagination-item",key:`page-${t}`},i("button",{type:"button",class:{"pagination-link":!0,"pagination-link-active":e},"aria-label":this.buildPageLabel(t),"aria-current":e?"page":void 0,onClick:()=>this.handlePageClick(t),onKeyDown:e=>this.handleKeyDown(e,(()=>this.handlePageClick(t))),tabIndex:0},i("span",{"aria-hidden":"true"},t)))}renderControlButton(t,e){const o=this.buildControlAttributes(t);return i("li",{class:"pagination-item pagination-control",key:o.key},i("button",{type:"button",class:`pagination-control-button btn btn-icon btn-secondary ${o.className}`,"aria-label":o.label,onClick:o.onClick,onKeyDown:t=>this.handleKeyDown(t,o.onClick),tabIndex:e?-1:0,disabled:e},i("post-icon",{name:o.icon,"aria-hidden":"true"}),i("span",{class:"visually-hidden"},o.label)))}renderItem(t,e){switch(t.type){case"page":return this.renderPageButton(t.page);case"control":return this.renderControlButton(t.action,t.disabled);case"ellipsis":return this.renderEllipsis(e)}}renderHiddenControlButton(t){const e=this.buildControlAttributes(t);return i("button",{key:`hidden-${e.key}`,class:"pagination-link pagination-control-button hidden-control-button",disabled:!0},i("post-icon",{name:e.icon,"aria-hidden":"true"}))}renderHiddenItems(t){const e=this.items.at(0),o=this.items.at(-1);return["control"===e?.type&&this.renderHiddenControlButton(e.action),i("button",{key:"hidden-page",class:"pagination-link pagination-control-button hidden-page-button","aria-label":this.buildPageLabel(t),disabled:!0},i("span",{"aria-hidden":"true"},t)),i("span",{key:"hidden-ellipsis",class:"pagination-ellipsis-content hidden-ellipsis","aria-hidden":"true"},"..."),"control"===o?.type&&this.renderHiddenControlButton(o.action)]}render(){const t=this.getTotalPages();return t<=1?null:i(o,{slot:"post-pagination","data-version":r},i("nav",{class:"pagination","aria-label":this.label,id:this.paginationId,ref:t=>this.navRef=t},i("ul",{class:"pagination-list",role:"list"},this.items.map(((t,e)=>this.renderItem(t,e)))),i("div",{class:"hidden-items","aria-hidden":"true",ref:t=>this.hiddenItemsRef=t},this.renderHiddenItems(t))))}get host(){return n(this)}static get watchers(){return{page:[{handlePropsChange:0}],pageSize:[{handlePropsChange:0}],collectionSize:[{handlePropsChange:0}]}}};d([c("number")],p.prototype,"page",void 0),d([l(),c("number")],p.prototype,"pageSize",void 0),d([l(),c("number")],p.prototype,"collectionSize",void 0),d([l(),c("string")],p.prototype,"label",void 0),d([l(),c("string")],p.prototype,"textPrevious",void 0),d([l(),c("string")],p.prototype,"textNext",void 0),d([l(),c("string")],p.prototype,"textPage",void 0),d([l(),c("string")],p.prototype,"textFirst",void 0),d([l(),c("string")],p.prototype,"textLast",void 0),p.style=".btn{display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:not(:disabled):hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);color:var(--post-scheme-color-interactive-button-primary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}.btn-default{-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-secondary{-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:0;min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){border-radius:var(--post-device-border-radius-focus)}@supports not selector(:has(:focus-visible)){.btn-link:is(:focus-visible,:focus-within,.pretend-focus){border-radius:var(--post-device-border-radius-focus)}}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.pagination{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;max-width:100%;padding:var(--post-device-spacing-padding-15);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.pagination-list{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--post-device-spacing-gap-inline-4);min-width:0;max-width:100%;margin:0;padding:0;list-style:none;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.pagination-list .pagination-control:first-child{-webkit-margin-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-list .pagination-control:last-child{-webkit-margin-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0;padding:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.pagination-ellipsis,.pagination-link,.pagination-ellipsis-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.pagination-link,.pagination-ellipsis-content{width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-width:var(--post-device-sizing-interactive-button-height-1);font-size:var(--post-device-font-size-6);color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-weight:var(--post-device-font-weight-bold)}.pagination-link{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0;font-weight:var(--post-device-font-weight-bold);text-decoration:none;background-color:var(--post-scheme-color-interactive-primary-enabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke5);border-radius:var(--post-device-border-radius-round);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.pagination-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.pagination-link:active:not(.pagination-link-active),.pagination-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);background-color:var(--post-scheme-color-interactive-primary-hover-bg5);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.pagination-link.pagination-link-active{color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1);cursor:default}.pagination-ellipsis{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.pagination-ellipsis-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hidden-items{position:absolute;display:-ms-flexbox;display:flex;gap:var(--post-device-spacing-gap-inline-4);height:0;overflow:hidden;white-space:nowrap;visibility:hidden;pointer-events:none}.hidden-items .pagination-control-button:not(.hidden-page-button):first-child{-webkit-margin-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.hidden-items .pagination-control-button:not(.hidden-page-button):last-child{-webkit-margin-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{p as post_pagination}
|
package/dist/swisspost-internet-header/{p-2d1355fa.system.entry.js → p-4615095e.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-DoVr7uzg.system.js","./p-BMZcKRx0.system.js","./p-Bzy18UgU.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,n,s,o,r,u;return{setters:[function(t){i=t.r;e=t.h;n=t.H;s=t.g},function(t){o=t.v},function(t){r=t.i},function(t){u=t.T},null,null],execute:function(){var h=function(){return":host{cursor:pointer}"};var c=undefined&&undefined.__decorate||function(t,i,e,n){var s=arguments.length,o=s<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,i,e,n);else for(var u=t.length-1;u>=0;u--)if(r=t[u])o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o;return s>3&&o&&Object.defineProperty(i,e,o),o};var f=t("post_popover_trigger",function(){function t(t){var e=this;i(this,t);this.ariaExpanded=false;this.popoverOpen=false;this.handleKeyDown=function(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();e.handleToggle()}};this.boundHandleToggle=this.handleToggle.bind(this);this.boundHandleKeyDown=this.handleKeyDown.bind(this);this.boundHandlePostToggle=function(t){e.popoverOpen=t.detail.isOpen;e.focusTrigger()}}t.prototype.syncAriaExpanded=function(t){this.ariaExpanded=t;if(this.trigger){this.trigger.setAttribute("aria-expanded",String(t))}};t.prototype.hasAriaControlsElements=function(t){return"ariaControlsElements"in t};Object.defineProperty(t.prototype,"popover",{get:function(){var t;var i=(t=this.host.querySelector("post-popover"))!==null&&t!==void 0?t:document.getElementById(this.for);if(!i){var e=this.for?"with ID: ".concat(this.for):"inside the <post-popover-trigger>";console.error("No post-popover found ".concat(e,"."));return null}return(i===null||i===void 0?void 0:i.localName)==="post-popover"?i:null},enumerable:false,configurable:true});t.prototype.setupTrigger=function(){var t,i;var e=this.popover;this.trigger=this.host.querySelector("*");if(!this.trigger){console.error("No content found in the post-popover-trigger slot. Please insert a focusable element or content that can receive focus.");return}if(!r(this.trigger)){this.trigger.setAttribute("tabindex","0");this.trigger.setAttribute("role","button")}if(!e)return;this.trigger.setAttribute("aria-expanded",this.ariaExpanded.toString());this.trigger.setAttribute("aria-haspopup","true");if(this.for){this.trigger.setAttribute("aria-controls",this.for)}else{if(this.hasAriaControlsElements(this.trigger)){this.trigger.ariaControlsElements=[e]}else{e.id||(e.id="popover-".concat(crypto.randomUUID()));this.trigger.setAttribute("aria-controls",e.id)}}(t=this.trigger)===null||t===void 0?void 0:t.addEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.addEventListener("keydown",this.boundHandleKeyDown)};t.prototype.handleToggle=function(){var t;(t=this.popover)===null||t===void 0?void 0:t.toggle(this.trigger);this.focusTrigger()};t.prototype.focusTrigger=function(){if(!this.popoverOpen&&this.trigger){this.trigger.focus()}};t.prototype.componentDidLoad=function(){var t;this.setupTrigger();(t=this.popover)===null||t===void 0?void 0:t.addEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.disconnectedCallback=function(){var t,i,e;(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("click",this.boundHandleToggle);(i=this.trigger)===null||i===void 0?void 0:i.removeEventListener("keydown",this.boundHandleKeyDown);(e=this.popover)===null||e===void 0?void 0:e.removeEventListener("postToggle",this.boundHandlePostToggle)};t.prototype.render=function(){var t=this;return e(n,{key:"009495ba354321f2b0162c4a0c4fcb1e165074e7","data-version":o},e("slot",{key:"f0e5ef7851b4bc9916382b0910d9500db52668d4",onSlotchange:function(){return t.setupTrigger()}}))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{popoverOpen:[{syncAriaExpanded:0}]}},enumerable:false,configurable:true});return t}());c([u("string")],f.prototype,"for",void 0);f.style=h()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,o=e.length,r;n<o;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-DIiKaF8J.system.js","./p-Bwi1IyPf.system.js","./p-BMZcKRx0.system.js","./p-D4wq7hIE.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,n,o,r,a,s,c,l,d;return{setters:[function(t){e=t.r;i=t.c;n=t.h;o=t.H;r=t.g},function(t){a=t.v},function(t){s=t.d},function(t){c=t.n},function(t){l=t.T},function(t){d=t.R},null],execute:function(){var v=function(){return".btn{display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}.btn:not(:disabled):hover{text-decoration:none}.btn:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.btn{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.btn:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.btn:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.btn>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-primary{-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}.btn-primary:disabled{border-color:var(--post-scheme-color-interactive-button-primary-disabled-stroke);color:var(--post-scheme-color-interactive-button-primary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-disabled-bg)}.btn-primary:not(:disabled):hover,.btn-primary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}.btn-default{-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-default:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-default:not(:disabled):hover,.btn-default.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-secondary{-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg)}.btn-secondary:disabled{border-color:var(--post-scheme-color-interactive-button-secondary-disabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-disabled-bg)}.btn-secondary:not(:disabled):hover,.btn-secondary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}.btn-tertiary{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}.btn-tertiary:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-disabled-bg)}.btn-tertiary:not(:disabled):hover,.btn-tertiary.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}.btn-link{border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.btn-link:disabled{border-color:var(--post-scheme-color-interactive-button-tertiary-disabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.btn-link:not(:disabled):hover,.btn-link.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.btn-sm{min-height:var(--post-device-sizing-interactive-button-height-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7)}.btn-sm>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-lg{min-height:var(--post-device-sizing-interactive-button-height-2);gap:var(--post-device-spacing-gap-inline-1);padding:0 var(--post-device-spacing-padding-inline-5)}.btn-lg>post-icon{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-link{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border:0 none;border-radius:0;min-height:0;font-size:inherit;font-weight:inherit;padding:0}.btn-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){border-radius:var(--post-device-border-radius-focus)}@supports not selector(:has(:focus-visible)){.btn-link:is(:focus-visible,:focus-within,.pretend-focus){border-radius:var(--post-device-border-radius-focus)}}.btn-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.btn-icon{padding:0;width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-height:0;vertical-align:text-bottom}.btn-icon.btn-link{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}.btn-icon.btn-sm{padding:0;width:var(--post-device-sizing-interactive-button-height-4);height:var(--post-device-sizing-interactive-button-height-4);min-height:0;vertical-align:text-bottom}.btn-icon.btn-sm.btn-link{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-sm>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.btn-icon.btn-lg{padding:0;width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);min-height:0;vertical-align:text-bottom}.btn-icon.btn-lg.btn-link{width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.btn-icon.btn-lg>post-icon{display:block;width:var(--post-device-sizing-interactive-button-icon-3);height:var(--post-device-sizing-interactive-button-icon-3)}.pagination{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;max-width:100%;padding:var(--post-device-spacing-padding-15);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.pagination-list{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--post-device-spacing-gap-inline-4);min-width:0;max-width:100%;margin:0;padding:0;list-style:none;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.pagination-list .pagination-control:first-child{-webkit-margin-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-list .pagination-control:last-child{-webkit-margin-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.pagination-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0;padding:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.pagination-ellipsis,.pagination-link,.pagination-ellipsis-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.pagination-link,.pagination-ellipsis-content{width:var(--post-device-sizing-interactive-button-height-1);height:var(--post-device-sizing-interactive-button-height-1);min-width:var(--post-device-sizing-interactive-button-height-1);font-size:var(--post-device-font-size-6);color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-weight:var(--post-device-font-weight-bold)}.pagination-link{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0;font-weight:var(--post-device-font-weight-bold);text-decoration:none;background-color:var(--post-scheme-color-interactive-primary-enabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke5);border-radius:var(--post-device-border-radius-round);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.pagination-link{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.pagination-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.pagination-link:active:not(.pagination-link-active),.pagination-link:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);background-color:var(--post-scheme-color-interactive-primary-hover-bg5);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.pagination-link.pagination-link-active{color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1);cursor:default}.pagination-ellipsis{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.pagination-ellipsis-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hidden-items{position:absolute;display:-ms-flexbox;display:flex;gap:var(--post-device-spacing-gap-inline-4);height:0;overflow:hidden;white-space:nowrap;visibility:hidden;pointer-events:none}.hidden-items .pagination-control-button:not(.hidden-page-button):first-child{-webkit-margin-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.hidden-items .pagination-control-button:not(.hidden-page-button):last-child{-webkit-margin-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4));margin-inline-start:calc(var(--post-device-spacing-gap-11) - var(--post-device-spacing-gap-inline-4))}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"};var p=undefined&&undefined.__decorate||function(t,e,i,n){var o=arguments.length,r=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)if(a=t[s])r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r;return o>3&&r&&Object.defineProperty(e,i,r),r};var h="...";var b=50;var u=150;var g=3;var f=2;var m=2;var y=2;var k=2;var w=t("post_pagination",function(){function t(t){e(this,t);this.postChange=i(this,"postChange");this.maxVisiblePages=3;this.items=[];this.page=1;this.lastWindowWidth=window.innerWidth;this.loaded=false;this.debouncedResize=s(this.handleResizeInternal.bind(this),u);this.measurementTimeoutId=null}t.prototype.handlePropsChange=function(){this.updatePagesWithValidation()};t.prototype.componentWillLoad=function(){this.paginationId="pagination-".concat(this.host.id||c(6));this.updatePagesWithValidation()};t.prototype.connectedCallback=function(){window.addEventListener("resize",this.debouncedResize)};t.prototype.componentDidLoad=function(){this.loaded=true;this.scheduleMeasurement()};t.prototype.disconnectedCallback=function(){this.loaded=false;window.removeEventListener("resize",this.debouncedResize);if(this.measurementTimeoutId!==null){clearTimeout(this.measurementTimeoutId);this.measurementTimeoutId=null}};t.prototype.scheduleMeasurement=function(){var t=this;if(!this.loaded)return;this.measurementTimeoutId=globalThis.setTimeout((function(){var e;var i=((e=t.navRef)===null||e===void 0?void 0:e.clientWidth)>0&&t.hiddenItemsRef;if(i){t.measureAndCalculateVisiblePages()}else{t.scheduleMeasurement()}}),b)};t.prototype.handleResizeInternal=function(){if(!this.loaded)return;if(window.innerWidth===this.lastWindowWidth)return;this.lastWindowWidth=window.innerWidth;this.measureAndCalculateVisiblePages()};t.prototype.calculateGap=function(t,e){var i=t.getBoundingClientRect();var n=e.getBoundingClientRect();return n.left-i.right};t.prototype.measureAndCalculateVisiblePages=function(){if(!this.navRef||!this.hiddenItemsRef||!this.loaded)return;var t=this.getTotalPages();if(t<=1)return;var e=this.getPaginationPadding();var i=this.getAvailableWidth();var n=i-e;var o=this.hiddenItemsRef.querySelector(".hidden-page-button");var r=this.hiddenItemsRef.querySelector(".hidden-ellipsis");if(!o)return;var a=o.getBoundingClientRect().width;var s=o&&r?this.calculateGap(o,r):0;var c=this.getControlButtonsWidth(s);var l=n-c;var d=Math.floor((l+s)/(a+s));var v=Math.max(g,Math.min(d,t));this.maxVisiblePages=v;this.updatePagesWithValidation()};t.prototype.getControlButtonsWidth=function(t){if(!this.hiddenItemsRef)return 0;var e=Array.from(this.hiddenItemsRef.querySelectorAll(".hidden-control-button"));var i=e.reduce((function(e,i){var n=Number.parseFloat(globalThis.getComputedStyle(i).marginInlineStart);var o=Number.parseFloat(globalThis.getComputedStyle(i).marginInlineEnd);return e+i.getBoundingClientRect().width+n+o+t}),0);return i};t.prototype.getPaginationPadding=function(){if(!this.navRef)return 0;var t=globalThis.getComputedStyle(this.navRef);var e=Number.parseFloat(t.paddingLeft)||0;var i=Number.parseFloat(t.paddingRight)||0;return e+i};t.prototype.getAvailableWidth=function(){var t,e;if(!this.navRef)return 0;return(e=(t=this.host.parentElement)===null||t===void 0?void 0:t.clientWidth)!==null&&e!==void 0?e:window.innerWidth};Object.defineProperty(t.prototype,"invalidSize",{get:function(){return this.collectionSize===0||this.pageSize===0},enumerable:false,configurable:true});t.prototype.clampPageToValidRange=function(t){var e=t===0||this.invalidSize||Number.isNaN(t);var i=!this.page||this.page<1||Number.isNaN(this.page);var n=this.page>t;if(e||i){return 1}else if(n){return t}else{return this.page}};t.prototype.updatePagesWithValidation=function(){var t=this.getTotalPages();this.page=this.clampPageToValidRange(t);this.generateItems(t)};t.prototype.getTotalPages=function(){if(this.invalidSize)return 1;return Math.ceil(this.collectionSize/this.pageSize)};t.prototype.sectionForGap=function(t){if(t<=1)return"none";return t===y?"page":"ellipsis"};t.prototype.getSections=function(t,e,i){var n=t-1;var o=i-e;return{leftSection:this.sectionForGap(n),rightSection:this.sectionForGap(o),leftGap:n,rightGap:o}};t.prototype.computeTotalItems=function(t,e,i){var n=this.getSections(t,e,i),o=n.leftSection,r=n.rightSection;var a=Math.max(0,e-t+1);var s=o==="none"?0:1;var c=r==="none"?0:1;return f+s+c+a};t.prototype.buildAllPages=function(t){var e=[];for(var i=1;i<=t;i++){e.push({type:"page",page:i})}return e};t.prototype.adjustForGapTwo=function(t,e,i,n){var o={startPage:t,endPage:e};var r=i-e;if(r===y){o.endPage=i-1;o.startPage=Math.max(k,o.endPage-n+1)}var a=o.startPage-1;if(a===y){o.startPage=k;o.endPage=Math.min(i-1,o.startPage+n-1)}return o};t.prototype.ensureMiddleSlots=function(t,e,i,n){var o={startPage:t,endPage:e};var r=e-t+1;if(r<n&&e<i-1){o.endPage=Math.min(i-1,t+n-1)}if(r<n&&t>k){o.startPage=Math.max(k,e-n+1)}return o};t.prototype.trimExcessItems=function(t,e,i,n,o){var r={startPage:t,endPage:e};var a=this.computeTotalItems(r.startPage,r.endPage,i);while(a>n){var s=o-r.startPage;var c=r.endPage-o;if(c>=s&&r.endPage>r.startPage){r.endPage=Math.max(r.startPage-1,r.endPage-1)}else if(r.startPage<r.endPage){r.startPage=Math.min(r.endPage+1,r.startPage+1)}else{break}var l=this.computeTotalItems(r.startPage,r.endPage,i);if(l===a)break;a=l}return r};t.prototype.expandToFillSlots=function(t,e,i,n){var o={startPage:t,endPage:e};var r=this.computeTotalItems(o.startPage,o.endPage,i);while(r<n){var a=o.startPage>k;var s=o.endPage<i-1;if(a){o.startPage=Math.max(k,o.startPage-1)}else if(s){o.endPage=Math.min(i-1,o.endPage+1)}else{break}var c=this.computeTotalItems(o.startPage,o.endPage,i);if(c===r)break;r=c}return o};t.prototype.balanceTotalItems=function(t,e,i,n,o){var r=this.trimExcessItems(t,e,i,n,o);return this.expandToFillSlots(r.startPage,r.endPage,i,n)};t.prototype.calculatePageRange=function(t,e,i){var n=Math.max(0,i-f-m);if(n<=0){return{startPage:k,endPage:1}}var o=Math.floor(n/2);var r=t-o;var a=r+n-1;if(r<k){r=k;a=r+n-1}if(a>e-1){a=e-1;r=a-n+1}r=Math.max(k,r);a=Math.min(e-1,a);var s=this.adjustForGapTwo(r,a,e,n);var c=this.ensureMiddleSlots(s.startPage,s.endPage,e,n);return this.balanceTotalItems(c.startPage,c.endPage,e,i,t)};t.prototype.buildPaginationItems=function(t,e,i){var n=[];var o=t<=e;n.push({type:"page",page:1});if(o){var r=this.getSections(t,e,i),a=r.leftSection,s=r.rightSection;if(a==="page"){n.push({type:"page",page:2})}else if(a==="ellipsis"){n.push({type:"ellipsis"})}for(var c=t;c<=e;c++){n.push({type:"page",page:c})}if(s==="page"){n.push({type:"page",page:i-1})}else if(s==="ellipsis"){n.push({type:"ellipsis"})}n.push({type:"page",page:i});return n}};t.prototype.generateSmallPagination=function(t,e){if(t===1||t===e){return[{type:"page",page:1},{type:"ellipsis"},{type:"page",page:e}]}return[{type:"ellipsis"},{type:"page",page:t},{type:"ellipsis"}]};t.prototype.generatePages=function(t,e,i){if(t<=e){return this.buildAllPages(t)}if(e<=4){return this.generateSmallPagination(i,t)}var n=this.calculatePageRange(i,t,e),o=n.startPage,r=n.endPage;return this.buildPaginationItems(o,r,t)};t.prototype.generateItems=function(t){var e=this.maxVisiblePages;var i=this.page;this.items=__spreadArray(__spreadArray([{type:"control",action:"previous",disabled:i<=1}],this.generatePages(t,e,i),true),[{type:"control",action:"next",disabled:i>=t}],false)};t.prototype.emitPageChange=function(t){var e=this;this.page=t;requestAnimationFrame((function(){return e.measureAndCalculateVisiblePages()}));this.postChange.emit(t)};t.prototype.handlePageClick=function(t){if(t===this.page)return;this.emitPageChange(t)};t.prototype.handlePrevious=function(){if(this.page<=1)return;this.emitPageChange(this.page-1)};t.prototype.handleNext=function(){var t=this.getTotalPages();if(this.page>=t)return;this.emitPageChange(this.page+1)};t.prototype.handleKeyDown=function(t,e){if(t.key==="Enter"||t.key===" "){t.preventDefault();e()}};t.prototype.buildPageLabel=function(t){var e=this.getTotalPages();if(t===1){return"".concat(this.textFirst,", ").concat(this.textPage," ").concat(t)}if(t===e){return"".concat(this.textLast,", ").concat(this.textPage," ").concat(t)}return"".concat(this.textPage," ").concat(t)};t.prototype.buildControlAttributes=function(t){var e=this;switch(t){case"previous":return{key:"prev",icon:"chevronleftwide",label:this.textPrevious,className:"prev-button",onClick:function(){return e.handlePrevious()}};case"next":return{key:"next",icon:"chevronrightwide",label:this.textNext,className:"next-button",onClick:function(){return e.handleNext()}}}};t.prototype.renderEllipsis=function(t){return n("li",{class:"pagination-item pagination-ellipsis",key:"ellipsis-".concat(t),"aria-hidden":"true"},n("span",{class:"pagination-ellipsis-content"},h))};t.prototype.renderPageButton=function(t){var e=this;var i=t===this.page;return n("li",{class:"pagination-item",key:"page-".concat(t)},n("button",{type:"button",class:{"pagination-link":true,"pagination-link-active":i},"aria-label":this.buildPageLabel(t),"aria-current":i?"page":undefined,onClick:function(){return e.handlePageClick(t)},onKeyDown:function(i){return e.handleKeyDown(i,(function(){return e.handlePageClick(t)}))},tabIndex:0},n("span",{"aria-hidden":"true"},t)))};t.prototype.renderControlButton=function(t,e){var i=this;var o=this.buildControlAttributes(t);return n("li",{class:"pagination-item pagination-control",key:o.key},n("button",{type:"button",class:"pagination-control-button btn btn-icon btn-secondary ".concat(o.className),"aria-label":o.label,onClick:o.onClick,onKeyDown:function(t){return i.handleKeyDown(t,o.onClick)},tabIndex:e?-1:0,disabled:e},n("post-icon",{name:o.icon,"aria-hidden":"true"}),n("span",{class:"visually-hidden"},o.label)))};t.prototype.renderItem=function(t,e){switch(t.type){case"page":return this.renderPageButton(t.page);case"control":return this.renderControlButton(t.action,t.disabled);case"ellipsis":return this.renderEllipsis(e)}};t.prototype.renderHiddenControlButton=function(t){var e=this.buildControlAttributes(t);return n("button",{key:"hidden-".concat(e.key),class:"pagination-link pagination-control-button hidden-control-button",disabled:true},n("post-icon",{name:e.icon,"aria-hidden":"true"}))};t.prototype.renderHiddenItems=function(t){var e=this.items.at(0);var i=this.items.at(-1);return[(e===null||e===void 0?void 0:e.type)==="control"&&this.renderHiddenControlButton(e.action),n("button",{key:"hidden-page",class:"pagination-link pagination-control-button hidden-page-button","aria-label":this.buildPageLabel(t),disabled:true},n("span",{"aria-hidden":"true"},t)),n("span",{key:"hidden-ellipsis",class:"pagination-ellipsis-content hidden-ellipsis","aria-hidden":"true"},h),(i===null||i===void 0?void 0:i.type)==="control"&&this.renderHiddenControlButton(i.action)]};t.prototype.render=function(){var t=this;var e=this.getTotalPages();if(e<=1){return null}return n(o,{slot:"post-pagination","data-version":a},n("nav",{class:"pagination","aria-label":this.label,id:this.paginationId,ref:function(e){return t.navRef=e}},n("ul",{class:"pagination-list",role:"list"},this.items.map((function(e,i){return t.renderItem(e,i)}))),n("div",{class:"hidden-items","aria-hidden":"true",ref:function(e){return t.hiddenItemsRef=e}},this.renderHiddenItems(e))))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{page:[{handlePropsChange:0}],pageSize:[{handlePropsChange:0}],collectionSize:[{handlePropsChange:0}]}},enumerable:false,configurable:true});return t}());p([l("number")],w.prototype,"page",void 0);p([d(),l("number")],w.prototype,"pageSize",void 0);p([d(),l("number")],w.prototype,"collectionSize",void 0);p([d(),l("string")],w.prototype,"label",void 0);p([d(),l("string")],w.prototype,"textPrevious",void 0);p([d(),l("string")],w.prototype,"textNext",void 0);p([d(),l("string")],w.prototype,"textPage",void 0);p([d(),l("string")],w.prototype,"textFirst",void 0);p([d(),l("string")],w.prototype,"textLast",void 0);w.style=v()}}}));
|
package/dist/swisspost-internet-header/{p-b94bcb65.system.entry.js → p-48b9d8af.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-CN_0KCBp.system.js","./p-CDL0cxX6.system.js","./p-CDvD7acy.system.js","./p-Bwi1IyPf.system.js","./p-C6zfwDtv.system.js","./p-D4wq7hIE.system.js","./p-qZj3hjL-.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,o,s,r,n,a,c,d,u,l;return{setters:[function(t){i=t.r;e=t.h;o=t.H;s=t.g},function(t){r=t.v},function(t){n=t.t},function(t){a=t.n},function(t){c=t.c},function(t){d=t.R},function(t){u=t.U},function(t){l=t.T},null],execute:function(){var b=function(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{--post-breadcrumb-item-wrap:nowrap;visibility:hidden;overflow:hidden;position:absolute;inset:0;padding-inline:1px}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:16px;width:16px;margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:calc((16px + 2 * var(--post-device-spacing-padding-35) - var(--post-core-dimension-24))/2)}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var m=undefined&&undefined.__decorate||function(t,i,e,o){var s=arguments.length,r=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,e):o,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)if(n=t[a])r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r;return s>3&&r&&Object.defineProperty(i,e,r),r};var g=t("post_breadcrumbs",function(){function t(t){i(this,t);this.shouldRenderMenu=false}t.prototype.componentWillLoad=function(){this.id=this.host.id||"b".concat(a(6))};t.prototype.componentDidLoad=function(){this.createMutationObserver();this.createResizeObserver()};t.prototype.disconnectedCallback=function(){var t,i;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(i=this.resizeObserver)===null||i===void 0?void 0:i.disconnect()};t.prototype.createMutationObserver=function(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this));this.mutationObserver.observe(this.host,{childList:true,characterData:true,subtree:true});this.duplicateNavElement()};t.prototype.createResizeObserver=function(){this.resizeObserver=new ResizeObserver(n(50,this.checkOverflow.bind(this)));this.resizeObserver.observe(document.body)};t.prototype.duplicateNavElement=function(){var t=this;var i;var e=this.host.shadowRoot;var o=e===null||e===void 0?void 0:e.querySelector("nav");if(!e||!o)return;this.prepareBreadcrumbItemsForClone();var s=o.cloneNode(true);s.classList.add("invisible");(i=e.querySelector("nav.invisible"))===null||i===void 0?void 0:i.remove();e.append(s);requestAnimationFrame((function(){t.duplicateSlottedElements(s,"slot:not([name])");t.duplicateSlottedElements(s,'slot[name="selected"]');t.checkOverflow()}))};t.prototype.duplicateSlottedElements=function(t,i){var e;var o=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelector(i);var s=t.querySelector(i);if(!o||!s)return;o.assignedElements().forEach((function(t){s.insertAdjacentElement("beforebegin",t.cloneNode(true))}));s.remove()};t.prototype.checkOverflow=function(){var t=this;var i;var e=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("nav.invisible");if(!e)return;var o=Array.from(e.querySelectorAll("post-breadcrumb-item"));Promise.all(o.map((function(t){return c(t)}))).then((function(){t.shouldRenderMenu=e.scrollWidth>e.clientWidth;t.updateBreadcrumbItemProps()}))};t.prototype.prepareBreadcrumbItemsForClone=function(){this.shouldRenderMenu=false;this.updateBreadcrumbItemProps()};t.prototype.updateBreadcrumbItemProps=function(){var t=this;var i=this.host.querySelectorAll("post-breadcrumb-item");i.forEach((function(e,o){e.setAttribute("variant",t.shouldRenderMenu?"menuitem":"listitem");e.setAttribute("selected",String(o===i.length-1))}))};t.prototype.renderMenu=function(){var t="".concat(this.id,"-menu");return e("div",{role:"listitem"},e("div",{class:"breadcrumb-item"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"...")))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},e("slot",null)))};t.prototype.render=function(){return e(o,{key:"b6ac788d29127c030f4b1955c41a7d6e2ac8a346","data-version":r},e("nav",{key:"a7c081b3b4d991cdab30b2ca424c47b7231484cd","aria-label":this.textBreadcrumbs},e("div",{key:"c51606af26b874e66376afa2b7855b400368af85",role:"list"},e("div",{key:"88a33d5554b807252b1d89ef6ce3a611dd7e5014",class:"breadcrumb-item home",role:"listitem"},e("a",{key:"f0fdbff28d44944d18497bf1be12bd22a1281778",href:this.homeUrl},e("span",{key:"4d16bbe0565dfdd1764027db43cf4c61849f9159",class:"visually-hidden"},this.textHome),e("post-icon",{key:"86611c819469da07c965c29db3510843e685e449","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():e("slot",null),e("slot",{key:"cb4a22117596bc8f3f9df72e62564b48c1d88975",name:"selected"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());m([d(),u()],g.prototype,"homeUrl",void 0);m([d(),l("string")],g.prototype,"textHome",void 0);m([d(),l("string")],g.prototype,"textBreadcrumbs",void 0);m([d(),l("string")],g.prototype,"textMoreItems",void 0);g.style=b()}}}));
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-CDvD7acy.system.js","./p-Bwi1IyPf.system.js","./p-C6zfwDtv.system.js","./p-D4wq7hIE.system.js","./p-qZj3hjL-.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var i,e,o,s,r,n,a,c,d,u,l;return{setters:[function(t){i=t.r;e=t.h;o=t.H;s=t.g},function(t){r=t.v},function(t){n=t.t},function(t){a=t.n},function(t){c=t.c},function(t){d=t.R},function(t){u=t.U},function(t){l=t.T},null],execute:function(){var b=function(){return':host{display:block;position:relative}nav{max-width:100%}nav.invisible{--post-breadcrumb-item-wrap:nowrap;visibility:hidden;overflow:hidden;position:absolute;inset:0;padding-inline:1px}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.breadcrumb-item :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:16px;width:16px;margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:calc((16px + 2 * var(--post-device-spacing-padding-35) - var(--post-core-dimension-24))/2)}.home::before{content:unset}.home post-icon{font-size:var(--post-core-dimension-24)}@media screen and (min-width: 0)and (max-width: 599.98px){.home post-icon{font-size:20px}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var m=undefined&&undefined.__decorate||function(t,i,e,o){var s=arguments.length,r=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,e):o,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)if(n=t[a])r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r;return s>3&&r&&Object.defineProperty(i,e,r),r};var g=t("post_breadcrumbs",function(){function t(t){i(this,t);this.shouldRenderMenu=false}t.prototype.componentWillLoad=function(){this.id=this.host.id||"b".concat(a(6))};t.prototype.componentDidLoad=function(){this.createMutationObserver();this.createResizeObserver()};t.prototype.disconnectedCallback=function(){var t,i;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(i=this.resizeObserver)===null||i===void 0?void 0:i.disconnect()};t.prototype.createMutationObserver=function(){this.mutationObserver=new MutationObserver(this.duplicateNavElement.bind(this));this.mutationObserver.observe(this.host,{childList:true,characterData:true,subtree:true});this.duplicateNavElement()};t.prototype.createResizeObserver=function(){this.resizeObserver=new ResizeObserver(n(50,this.checkOverflow.bind(this)));this.resizeObserver.observe(document.body)};t.prototype.duplicateNavElement=function(){var t=this;var i;var e=this.host.shadowRoot;var o=e===null||e===void 0?void 0:e.querySelector("nav");if(!e||!o)return;this.prepareBreadcrumbItemsForClone();var s=o.cloneNode(true);s.classList.add("invisible");(i=e.querySelector("nav.invisible"))===null||i===void 0?void 0:i.remove();e.append(s);requestAnimationFrame((function(){t.duplicateSlottedElements(s,"slot:not([name])");t.duplicateSlottedElements(s,'slot[name="selected"]');t.checkOverflow()}))};t.prototype.duplicateSlottedElements=function(t,i){var e;var o=(e=this.host.shadowRoot)===null||e===void 0?void 0:e.querySelector(i);var s=t.querySelector(i);if(!o||!s)return;o.assignedElements().forEach((function(t){s.insertAdjacentElement("beforebegin",t.cloneNode(true))}));s.remove()};t.prototype.checkOverflow=function(){var t=this;var i;var e=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("nav.invisible");if(!e)return;var o=Array.from(e.querySelectorAll("post-breadcrumb-item"));Promise.all(o.map((function(t){return c(t)}))).then((function(){t.shouldRenderMenu=e.scrollWidth>e.clientWidth;t.updateBreadcrumbItemProps()}))};t.prototype.prepareBreadcrumbItemsForClone=function(){this.shouldRenderMenu=false;this.updateBreadcrumbItemProps()};t.prototype.updateBreadcrumbItemProps=function(){var t=this;var i=this.host.querySelectorAll("post-breadcrumb-item");i.forEach((function(e,o){e.setAttribute("variant",t.shouldRenderMenu?"menuitem":"listitem");e.setAttribute("selected",String(o===i.length-1))}))};t.prototype.renderMenu=function(){var t="".concat(this.id,"-menu");return e("div",{role:"listitem"},e("div",{class:"breadcrumb-item"},e("post-menu-trigger",{for:t},e("button",null,e("span",{class:"visually-hidden"},this.textMoreItems),e("span",{"aria-hidden":"true"},"...")))),e("post-menu",{id:t,label:this.textMoreItems,placement:"bottom-start"},e("slot",null)))};t.prototype.render=function(){return e(o,{key:"b6ac788d29127c030f4b1955c41a7d6e2ac8a346","data-version":r},e("nav",{key:"a7c081b3b4d991cdab30b2ca424c47b7231484cd","aria-label":this.textBreadcrumbs},e("div",{key:"c51606af26b874e66376afa2b7855b400368af85",role:"list"},e("div",{key:"88a33d5554b807252b1d89ef6ce3a611dd7e5014",class:"breadcrumb-item home",role:"listitem"},e("a",{key:"f0fdbff28d44944d18497bf1be12bd22a1281778",href:this.homeUrl},e("span",{key:"4d16bbe0565dfdd1764027db43cf4c61849f9159",class:"visually-hidden"},this.textHome),e("post-icon",{key:"86611c819469da07c965c29db3510843e685e449","aria-hidden":"true",name:"home"}))),this.shouldRenderMenu?this.renderMenu():e("slot",null),e("slot",{key:"cb4a22117596bc8f3f9df72e62564b48c1d88975",name:"selected"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());m([d(),u()],g.prototype,"homeUrl",void 0);m([d(),l("string")],g.prototype,"textHome",void 0);m([d(),l("string")],g.prototype,"textBreadcrumbs",void 0);m([d(),l("string")],g.prototype,"textMoreItems",void 0);g.style=b()}}}));
|
package/dist/swisspost-internet-header/{p-c6e57a0c.system.entry.js → p-51c1b282.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,o){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function c(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o["throw"](e))}catch(e){r(e)}}function a(e){e.done?i(e.value):n(e.value).then(c,s)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=s(0),c["throw"]=s(1),c["return"]=s(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(t){return a([e,t])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(i=0)),i)try{if(o=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];n=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-CHIhqOmO.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-BCAukqif.system.js","./p-DaxAbTyB.system.js"],(function(e){"use strict";var t,i,o,n,r,c,s,a,f;return{setters:[function(e){t=e.r;i=e.c;o=e.h;n=e.H;r=e.g},function(e){c=e.v},function(e){s=e.f},function(e){a=e.O},function(e){f=e.E},null,null],execute:function(){var d=["success","warning","error","info"];var l=function(){return':host{position:relative;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-auto-flow:row;min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));padding:var(--post-device-spacing-padding-10);-webkit-padding-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );padding-inline-start:calc( var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6) );color:var(--post-current-fg);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);border-radius:var(--post-device-border-radius-2);-webkit-box-shadow:var(--post-device-elevation-100);box-shadow:var(--post-device-elevation-100);background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host::before{content:"";display:block;position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);inset-block-start:var(--post-device-spacing-padding-10);inset-inline-start:var(--post-device-spacing-padding-10);background-image:var(--post-signal-icon-info)}:host([type=info]){background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke)}:host([type=info])::before{background-image:var(--post-signal-icon-info)}:host([type=success]){background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke)}:host([type=success])::before{background-image:var(--post-signal-icon-success)}:host([type=warning]){background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke)}:host([type=warning])::before{background-image:var(--post-signal-icon-warning)}:host([type=error]){background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke)}:host([type=error])::before{background-image:var(--post-signal-icon-error)}.post-banner-content{display:grid;grid-template-columns:1fr;row-gap:var(--post-device-spacing-gap-block-1);overflow-x:auto}.actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-webkit-margin-before:var(--post-device-spacing-padding-block-10);margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media screen and (min-width: 0)and (max-width: 599.98px){.actions{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}::slotted(*){margin-block:0 !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host{border-color:CanvasText}:host::before{color:CanvasText}}'};var u=undefined&&undefined.__decorate||function(e,t,i,o){var n=arguments.length,r=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,c;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)if(c=e[s])r=(n<3?c(r):n>3?c(t,i,r):c(t,i))||r;return n>3&&r&&Object.defineProperty(t,i,r),r};var p=e("post_banner",function(){function e(e){t(this,e);this.postDismissed=i(this,"postDismissed");this.mutationObserver=new MutationObserver(this.checkContent.bind(this));this.hasActions=false;this.type="info"}e.prototype.connectedCallback=function(){this.mutationObserver.observe(this.host,{childList:true})};e.prototype.componentDidLoad=function(){this.checkContent()};e.prototype.disconnectedCallback=function(){this.mutationObserver.disconnect()};e.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=s(this.host,"out");return[4,e.finished];case 1:t.sent();this.postDismissed.emit();this.host.remove();return[2]}}))}))};e.prototype.onCloseButtonClick=function(){void this.dismiss()};e.prototype.checkContent=function(){this.hasActions=this.host.querySelectorAll('[slot="actions"]').length>0};e.prototype.render=function(){return o(n,{key:"afa4834733c7e9d985d2102a3e421f09f94b44ba","data-version":c,role:"alert","data-color-scheme":"light"},o("slot",{key:"39dfccec7bf829ff354bac467a9b399e003ce473",name:"close-button"}),o("div",{key:"e6dfc60165185da4384c4143153ee34db1299088",class:"post-banner-content"},o("slot",{key:"9fc1e8e81cf396eb1ae1e5dfff7f04ccc6443986",name:"heading"}),o("slot",{key:"e7d21db6f7feb1507c612319c3d56595b797a3c4"}),this.hasActions&&o("div",{key:"d4229d09accb5cfb2a096c44ca523a132da4755d",class:"actions"},o("slot",{key:"b01633122bd45df2f95b7ee5e4694a83aceb68bd",name:"actions"}))))};Object.defineProperty(e.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());u([a(d)],p.prototype,"type",void 0);u([f("post-closebutton",{allowDescendants:true})],p.prototype,"onCloseButtonClick",null);p.style=l()}}}));
|
package/dist/swisspost-internet-header/{p-f606f337.system.entry.js → p-522b6a34.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]}return t};return __assign.apply(this,arguments)};System.register(["./p-CN_0KCBp.system.js","./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,n=1,o=arguments.length;n<o;n++){i=arguments[n];for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]}return t};return __assign.apply(this,arguments)};System.register(["./p-CN_0KCBp.system.js","./p-CUgd8XDw.system.js"],(function(t){"use strict";var i,n,o,e,r,s,a,u,f;return{setters:[function(t){i=t.r;n=t.h;o=t.H},function(t){e=t.c;r=t.T;s=t.L;a=t.s;u=t.g;f=t.v}],execute:function(){var l=function(){return".cookie-settings{min-height:0;border:0 none;font-weight:inherit}"};var c=t("swisspost_internet_footer",function(){function t(t){var n=this;this.liveSupportEnabled=false;this.cookieSettingsEnabled=false;i(this,t);this.liveSupportEnabled=this.unbluEnabled();this.cookieSettingsEnabled=this.ucUIEnabled();if(!this.liveSupportEnabled){var o=undefined;var e=0;var r=function(){var t=n.unbluEnabled();var i=n.ucUIEnabled();var r=t&&i;if(t){n.liveSupportEnabled=true}if(i){n.cookieSettingsEnabled=true}if(r||e>=5){window.clearInterval(o)}e++};o=window.setInterval(r,1e3)}}t.prototype.unbluEnabled=function(){return typeof window["unbluLSLoad"]==="function"};t.prototype.ucUIEnabled=function(){return typeof window["UC_UI"]==="object"&&typeof window["UC_UI"]["showSecondLayer"]==="function"};t.prototype.handleCookieSettingsClick=function(){window["UC_UI"]["showSecondLayer"]()};t.prototype.renderListWithTitle=function(t,i){if(!t)return undefined;var o=i.titleProps,a=i.listProps,f=i.linkProps;var l=u(t.title);var c=e(l);return[n(r,__assign(__assign({},o),{config:t.title,id:c})),n("ul",__assign(__assign({},a),{"aria-labelledby":c}),t.items.map((function(t){return n("li",{key:t.text},n(s,__assign(__assign({},f),{config:t})))})))]};t.prototype.render=function(){var t=this;var i;if(!a.localizedConfig){return null}if(!a.localizedConfig.footer){console.warn('Internet Footer: Current project "'.concat(a.projectId,'" does not include a footer config. The footer will not be rendered. Remove '),document.querySelector("swisspost-internet-footer"),"from your markup or configure the footer in your portal config to stop seeing this warning.");return null}var e=a.localizedConfig.footer;return n(o,{"data-version":f},n("post-footer",{textFooter:this.textFooter},e.prefooter&&n("div",{slot:"prefooter"},this.renderListWithTitle(e.prefooter,{titleProps:{tag:"h3"}})),(i=e.sections)===null||i===void 0?void 0:i.map((function(i,n){return t.renderListWithTitle(i,{titleProps:{tag:"span",slot:"grid-".concat(n+1,"-title")},listProps:{slot:"grid-".concat(n+1)}})})),e.socialLinks&&n("div",{slot:"socialmedia"},this.renderListWithTitle(e.socialLinks,{titleProps:{tag:"h3"},linkProps:{class:"btn btn-primary btn-icon",hiddenText:true}})),e.appStoreLinks&&n("div",{slot:"app"},this.renderListWithTitle(e.appStoreLinks,{titleProps:{tag:"h3"},linkProps:{class:"app-store-badge",hiddenText:true}})),e.companyLinks&&n("div",{slot:"businesssectors"},this.renderListWithTitle(e.companyLinks,{titleProps:{tag:"h3"}})),e.complianceLinks&&n("div",{slot:"meta"},n("ul",{"aria-label":u(e.complianceLinks.title)},e.complianceLinks.items.map((function(t){return n("li",{key:t.text},n(s,{config:t}))})),this.cookieSettingsEnabled&&n("li",null,n("button",{class:"btn btn-link cookie-settings",onClick:this.handleCookieSettingsClick},this.textCookieSettings)))),e.copyright&&n("p",{slot:"copyright"},e.copyright)))};return t}());c.style=l()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as e,g as i}from"./p-h3opCZqH.js";import{f as s}from"./p-BVCjnh6Q.js";import{v as r}from"./p-
|
|
1
|
+
import{r as t,h as o,H as e,g as i}from"./p-h3opCZqH.js";import{f as s}from"./p-BVCjnh6Q.js";import{v as r}from"./p-D9jUbrFT.js";import{R as a}from"./p-DvaRK2lz.js";import{T as c}from"./p-DZMUeI8H.js";import"./p-CoDiS_Ik.js";import"./p-vAzHgwTd.js";const n=class{constructor(o){t(this,o),this.belowFold=!1,this.handleScroll=()=>{this.belowFold=this.isBelowFold()}}isBelowFold(){return window.scrollY>window.innerHeight}watchBelowFold(t){s(this.host,t?"in":"out",{translate:this.translateY,fill:"forwards"})}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}getSecondPixelValue(t){for(const o of t){const t=o.match(/\b\d+px\b/g);if(t&&t.length>1)return t[1]}}animateButton(){const t=globalThis.getComputedStyle(this.host).getPropertyValue("top"),o=this.host.shadowRoot.querySelector("button"),e=getComputedStyle(o).getPropertyValue("--post-back-to-top-elevation").split(","),i=this.getSecondPixelValue(e);t&&"auto"!==t&&i&&(this.translateY=-1-Number.parseFloat(t.replace("px",""))-Number.parseFloat(i.replace("px","")),this.belowFold&&s(this.host,"in",{translate:this.translateY,fill:"forwards"}),this.belowFold||(this.host.style.transform=`translateY(${this.translateY})`))}componentWillLoad(){this.belowFold=this.isBelowFold()}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,!1),this.animateButton()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return o(e,{key:"3d976e4e1a8ac4b72041369d5667c55d915d7118","data-version":r},o("button",{key:"7ceb4953248ca934a905ec63444934e9e6c09e43",class:"back-to-top","aria-hidden":this.belowFold?"false":"true",tabindex:this.belowFold?"0":"-1",onClick:this.scrollToTop},o("post-icon",{key:"89a2bc9a8278fb45d3fb915ec096ee94b3841edd","aria-hidden":"true",name:"arrowup"}),o("span",{key:"fc2517fba7599f37c3054b638afd6b9b2ba7e32a",class:"visually-hidden"},this.textBackToTop)))}get host(){return i(this)}static get watchers(){return{belowFold:[{watchBelowFold:0}]}}};(function(t,o,e,i){var s,r=arguments.length,a=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,o,e,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(r<3?s(a):r>3?s(o,e,a):s(o,e))||a);r>3&&a&&Object.defineProperty(o,e,a)})([a(),c("string")],n.prototype,"textBackToTop",void 0),n.style=":host{opacity:0;--post-floating-button-position-top:var(--post-device-position-4);--post-back-to-top-position-top:calc( var(--post-header-height) + var(--post-floating-button-position-top) );--post-back-to-top-elevation:var(--post-device-elevation-300);position:fixed;z-index:1019;inset-block-start:var(--post-back-to-top-position-top);inset-inline-end:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;-webkit-box-shadow:var(--post-back-to-top-elevation);box-shadow:var(--post-back-to-top-elevation);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top{background-color:ButtonFace !important}:host .back-to-top:hover{background-color:Highlight !important}}:host .back-to-top{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:hover{color:HighlightText !important}}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{n as post_back_to_top}
|