@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-CN_0KCBp.system.js","./p-CVe9fdUw.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,n,r,s,o,a;return{setters:[function(t){e=t.r;i=t.h;n=t.H;r=t.g},function(t){s=t.v},function(t){o=t.R},function(t){a=t.T},null],execute:function(){var l=function(){return":host{display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;max-width:var(--post-header-content-max-width)}@media screen and (min-width: 1024px){:host{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-margin-start:calc(-1*var(--post-local-header-padding-inline-start));margin-inline-start:calc(-1*var(--post-local-header-padding-inline-start));-webkit-margin-end:calc(-1*var(--post-local-header-padding-inline-end));margin-inline-end:calc(-1*var(--post-local-header-padding-inline-end));overflow:hidden}}nav{-ms-flex:1 1 auto;flex:1 1 auto}@media screen and (min-width: 1024px){nav{scroll-behavior:smooth;max-width:100vw;overflow:hidden;height:var(--post-main-navigation-height)}}.scroll-control{z-index:1;cursor:pointer;padding:1rem;background:#fff;-webkit-box-shadow:var(--post-device-elevation-500);box-shadow:var(--post-device-elevation-500);line-height:1}.scroll-control.scroll-left{-webkit-margin-end:-3rem;margin-inline-end:-3rem}.scroll-control.scroll-right{-webkit-margin-start:-3rem;margin-inline-start:-3rem}.scroll-control.d-none{display:none}.scroll-control post-icon{font-size:1rem}"};var c=undefined&&undefined.__decorate||function(t,e,i,n){var r=arguments.length,s=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)if(o=t[a])s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s;return r>3&&s&&Object.defineProperty(e,i,s),s};var h=100;var f=400;var d=t("post_mainnavigation",function(){function t(t){e(this,t);this.canScrollLeft=false;this.canScrollRight=false;this.scrollRight=this.scrollRight.bind(this);this.scrollLeft=this.scrollLeft.bind(this);this.checkScrollability=this.checkScrollability.bind(this);this.resizeObserver=new ResizeObserver(this.checkScrollability);this.mutationObserver=new MutationObserver(this.checkScrollability)}t.prototype.componentDidLoad=function(){var t=this;var e;setTimeout((function(){t.checkScrollability()}));this.resizeObserver.observe(this.navbar);this.mutationObserver.observe(this.navbar,{subtree:true,childList:true});(e=this.navbar)===null||e===void 0?void 0:e.addEventListener("scrollend",this.checkScrollability)};t.prototype.disconnectedCallback=function(){var t;this.mutationObserver.disconnect();this.resizeObserver.disconnect();(t=this.navbar)===null||t===void 0?void 0:t.removeEventListener("scrollend",this.checkScrollability)};t.prototype.stopScrolling=function(){if(this.scrollRepeatInterval)clearInterval(this.scrollRepeatInterval)};Object.defineProperty(t.prototype,"navigationItems",{get:function(){return Array.from(this.host.querySelectorAll("a:not(post-megadropdown *), post-megadropdown-trigger"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"canScroll",{get:function(){return this.canScrollLeft||this.canScrollRight},enumerable:false,configurable:true});t.prototype.checkScrollability=function(){var t=this.navbar,e=t.scrollLeft,i=t.scrollWidth,n=t.clientWidth;if(i===n){this.canScrollLeft=this.canScrollRight=false}else{this.canScrollLeft=Math.floor(e)>0;this.canScrollRight=Math.ceil(n+e)<i}};t.prototype.handleScrollButtonClick=function(t,e){if(!this.canScroll||t.button!==0)return;this.temporarilyDisableNavbar();var i=e==="right"?this.scrollRight:this.scrollLeft;i();this.scrollRepeatInterval=setInterval((function(){i()}),h)};t.prototype.scrollRight=function(){var t=this.host.shadowRoot.querySelector(".scroll-right").getBoundingClientRect().left;for(var e=0,i=this.navigationItems;e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.right,o=r.width;var a=s-.25*o<t;if(!a){this.navbar.scrollBy({left:s-t});return}}};t.prototype.scrollLeft=function(){var t=this.host.shadowRoot.querySelector(".scroll-left").getBoundingClientRect().right;for(var e=0,i=this.navigationItems.reverse();e<i.length;e++){var n=i[e];var r=n.getBoundingClientRect(),s=r.left,o=r.width;var a=s+.25*o>t;if(!a){this.navbar.scrollBy({left:s-t});return}}};t.prototype.temporarilyDisableNavbar=function(){var t=this;if(this.navbarDisableTimer)clearTimeout(this.navbarDisableTimer);this.navbar.setAttribute("inert","");this.navbarDisableTimer=setTimeout((function(){t.navbar.removeAttribute("inert")}),f)};t.prototype.render=function(){var t=this;return i(n,{key:"2e9f2361426298f620411b1d064e166992ba326e",version:s,class:this.canScroll?"scrollable":""},i("div",{key:"10103d153e37fd591c2ce062ef7455228adbf5b9","aria-hidden":"true",class:{"scroll-control scroll-left":true,"d-none":!this.canScrollLeft},onMouseDown:function(e){return t.handleScrollButtonClick(e,"left")}},i("post-icon",{key:"8bb9b82626d05c1fe8f4fd1bb9f8e6d6be59ad8a","aria-hidden":"true",name:"chevronleft"})),i("nav",{key:"6905afe8c2dfcf0f2411b45237b52d63f187d2c9",ref:function(e){return t.navbar=e},"aria-label":this.textMain},i("slot",{key:"2db905e52b1604d9c6097734d055100a58625f09"})),i("div",{key:"f8ec4f906f1c99fec2198bb350ac1735c2de8469","aria-hidden":"true",class:{"scroll-control scroll-right":true,"d-none":!this.canScrollRight},onMouseDown:function(e){return t.handleScrollButtonClick(e,"right")}},i("post-icon",{key:"afed8c1778691ca5b849d78ee20d51a4b8c02fe6","aria-hidden":"true",name:"chevronright"})))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());c([o(),a("string")],d.prototype,"textMain",void 0);d.style=l()}}}));
|
package/dist/swisspost-internet-header/{p-e655c88c.system.entry.js → p-fde0e9e3.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-a2b_YLeP.system.js","./p-Bwi1IyPf.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-uEVdce-r.system.js","./p-CiwQnVr3.system.js","./p-C1pxTt7y.system.js","./p-DaxAbTyB.system.js"],(function(e){"use strict";var t,r,o,i,n,s,a,c,u,l,d,g;return{setters:[function(e){t=e.r;r=e.h;o=e.H;i=e.g},function(e){n=e.v},function(e){s=e.S},function(e){a=e.n},function(e){c=e.R},function(e){u=e.T},function(e){l=e.P},function(e){d=e.O},function(e){g=e.E},null],execute:function(){var p=function(){return":host{display:-ms-flexbox;display:flex}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.post-language-menu-dropdown-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.post-language-menu-trigger{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;border:unset;font-weight:unset;display:-ms-flexbox;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;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);text-transform:uppercase;line-height:inherit;cursor:pointer}.post-language-menu-trigger:not(:disabled):hover{text-decoration:none}.post-language-menu-trigger:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.post-language-menu-trigger{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}.post-language-menu-trigger: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){.post-language-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-language-menu-trigger: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){.post-language-menu-trigger: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){.post-language-menu-trigger:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.post-language-menu-trigger:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.post-language-menu-trigger:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.post-language-menu-trigger: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)}.post-language-menu-trigger:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){-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)}.post-language-menu-trigger:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):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)}.post-language-menu-trigger post-icon{-webkit-transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.post-language-menu-trigger:is([aria-current],[aria-pressed=true],[aria-expanded=true]) post-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.post-language-menu-list{display:-ms-flexbox;display:flex;gap:.5rem;margin-top:1rem}"};var m=undefined&&undefined.__decorate||function(e,t,r,o){var i=arguments.length,n=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)if(s=e[a])n=(i<3?s(n):i>3?s(t,r,n):s(t,r))||n;return i>3&&n&&Object.defineProperty(t,r,n),n};var b=e("post_language_menu",function(){function e(e){t(this,e);this.menuId="p".concat(a(11));this.listSpanId="list-span-".concat(a(11));this.variant="menu"}Object.defineProperty(e.prototype,"languageOptions",{get:function(){return Array.from(this.host.querySelectorAll("post-language-menu-item"))},enumerable:false,configurable:true});e.prototype.handleVariantChange=function(){this.updateChildrenVariant()};Object.defineProperty(e.prototype,"description",{get:function(){var e=this.activeLang&&document.querySelector('post-language-menu-item[code="'.concat(this.activeLang,'"]'));if(!e)return undefined;return this.textCurrentLanguage.replaceAll("{name}",e.name).replaceAll("#name",e.name)},enumerable:false,configurable:true});e.prototype.componentDidLoad=function(){this.updateChildrenVariant()};e.prototype.handlePostChange=function(e){var t=this;this.activeLang=e.detail;this.languageOptions.forEach((function(e){if(e.code&&e.code===t.activeLang){e.setAttribute("active","")}else{e.removeAttribute("active")}}));if(this.variant==="menu"){var r=this.host.shadowRoot.querySelector("post-menu");r.hide()}};e.prototype.hideMenuOnScroll=function(){if(this.menu)this.menu.hide()};e.prototype.handleInitiallyActive=function(e){this.activeLang=e.detail};e.prototype.updateChildrenVariant=function(){var e=this;this.languageOptions.forEach((function(t){t.setAttribute("variant",e.variant)}))};e.prototype.renderList=function(){return r(o,{"data-version":n},r("div",{class:"post-language-menu-list",role:"list","aria-label":this.textChangeLanguage,"aria-describedby":this.listSpanId},r("span",{id:this.listSpanId,class:"visually-hidden"},this.description),r("slot",null)))};e.prototype.renderDropdown=function(){var e=this;return r(o,{"data-version":n},r("post-menu-trigger",{for:this.menuId},r("button",{class:"post-language-menu-trigger"},this.activeLang,r("span",{class:"visually-hidden"},this.textChangeLanguage),r("span",{class:"visually-hidden"},this.description),r("post-icon",{"aria-hidden":"true",name:"chevrondown"}))),r("post-menu",{ref:function(t){return e.menu=t},id:this.menuId,class:"post-language-menu-dropdown-container",label:this.textChangeLanguage,placement:"bottom-end"},r("slot",null)))};e.prototype.render=function(){return this.variant==="list"?this.renderList():this.renderDropdown()};Object.defineProperty(e.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{variant:[{handleVariantChange:0}]}},enumerable:false,configurable:true});return e}());m([c(),u("string")],b.prototype,"textChangeLanguage",void 0);m([c(),l(/(\{name\}|#name)/)],b.prototype,"textCurrentLanguage",void 0);m([d(s)],b.prototype,"variant",void 0);m([g("post-language-menu-item")],b.prototype,"handlePostChange",null);b.style=p()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,g as o}from"./p-h3opCZqH.js";import{v as e}from"./p-
|
|
1
|
+
import{r as t,h as s,H as i,g as o}from"./p-h3opCZqH.js";import{v as e}from"./p-D9jUbrFT.js";import{i as r}from"./p-BrY4VWTQ.js";import{T as h}from"./p-DZMUeI8H.js";import"./p-BFTU3MAI.js";import"./p-vAzHgwTd.js";const n=class{syncAriaExpanded(t){this.ariaExpanded=t,this.trigger&&this.trigger.setAttribute("aria-expanded",String(t))}hasAriaControlsElements(t){return"ariaControlsElements"in t}get popover(){const t=this.host.querySelector("post-popover")??document.getElementById(this.for);return t?"post-popover"===t?.localName?t:null:(console.error(`No post-popover found ${this.for?`with ID: ${this.for}`:"inside the <post-popover-trigger>"}.`),null)}setupTrigger(){const t=this.popover;this.trigger=this.host.querySelector("*"),this.trigger?(r(this.trigger)||(this.trigger.setAttribute("tabindex","0"),this.trigger.setAttribute("role","button")),t&&(this.trigger.setAttribute("aria-expanded",this.ariaExpanded.toString()),this.trigger.setAttribute("aria-haspopup","true"),this.for?this.trigger.setAttribute("aria-controls",this.for):this.hasAriaControlsElements(this.trigger)?this.trigger.ariaControlsElements=[t]:(t.id||(t.id=`popover-${crypto.randomUUID()}`),this.trigger.setAttribute("aria-controls",t.id)),this.trigger?.addEventListener("click",this.boundHandleToggle),this.trigger?.addEventListener("keydown",this.boundHandleKeyDown))):console.error("No content found in the post-popover-trigger slot. Please insert a focusable element or content that can receive focus.")}handleToggle(){this.popover?.toggle(this.trigger),this.focusTrigger()}focusTrigger(){!this.popoverOpen&&this.trigger&&this.trigger.focus()}constructor(s){t(this,s),this.ariaExpanded=!1,this.popoverOpen=!1,this.handleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleToggle())},this.boundHandleToggle=this.handleToggle.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandlePostToggle=t=>{this.popoverOpen=t.detail.isOpen,this.focusTrigger()}}componentDidLoad(){this.setupTrigger(),this.popover?.addEventListener("postToggle",this.boundHandlePostToggle)}disconnectedCallback(){this.trigger?.removeEventListener("click",this.boundHandleToggle),this.trigger?.removeEventListener("keydown",this.boundHandleKeyDown),this.popover?.removeEventListener("postToggle",this.boundHandlePostToggle)}render(){return s(i,{key:"009495ba354321f2b0162c4a0c4fcb1e165074e7","data-version":e},s("slot",{key:"f0e5ef7851b4bc9916382b0910d9500db52668d4",onSlotchange:()=>this.setupTrigger()}))}get host(){return o(this)}static get watchers(){return{popoverOpen:[{syncAriaExpanded:0}]}}};(function(t,s,i,o){var e,r=arguments.length,h=r<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,i,o);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(h=(r<3?e(h):r>3?e(s,i,h):e(s,i))||h);r>3&&h&&Object.defineProperty(s,i,h)})([h("string")],n.prototype,"for",void 0),n.style=":host{cursor:pointer}";export{n as post_popover_trigger}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-h3opCZqH.js";export{s as setNonce}from"./p-h3opCZqH.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t([["p-
|
|
1
|
+
import{p as e,b as t}from"./p-h3opCZqH.js";export{s as setNonce}from"./p-h3opCZqH.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t([["p-a3640c54",[[512,"swisspost-internet-header",{activeRoute:[1,"active-route"],environment:[1],fullWidth:[4,"full-width"],language:[1],project:[1],textBack:[513,"text-back"],textChangeLanguage:[513,"text-change-language"],textClose:[513,"text-close"],textCurrentLanguage:[513,"text-current-language"],textCurrentUser:[513,"text-current-user"],textMain:[513,"text-main"],textMenu:[513,"text-menu"],textAccessUserLinks:[513,"text-access-user-links"],textUserLinks:[513,"text-user-links"]},[[0,"postChange","handleLanguageChangeEvent"]],{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}]]],["p-abd1654a",[[512,"swisspost-internet-footer",{textFooter:[513,"text-footer"],textCookieSettings:[513,"text-cookie-settings"],liveSupportEnabled:[32],cookieSettingsEnabled:[32]}]]],["p-9510033c",[[257,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],shouldRenderMenu:[32],id:[32]}]]],["p-77955468",[[257,"post-popover",{placement:[1],textClose:[513,"text-close"],arrow:[4],edgeGap:[32],show:[64],hide:[64],toggle:[64]}]]],["p-fc839150",[[257,"post-date-picker",{locale:[1],range:[4],min:[1],max:[1],cellConfig:[16],inline:[4],textNextMonth:[513,"text-next-month"],textNextYear:[513,"text-next-year"],textNextDecade:[513,"text-next-decade"],textPreviousMonth:[513,"text-previous-month"],textPreviousYear:[513,"text-previous-year"],textPreviousDecade:[513,"text-previous-decade"],textSwitchYear:[513,"text-switch-year"],textToggleCalendar:[1,"text-toggle-calendar"],inputDisabled:[32],today:[32],startDate:[32],show:[64],hide:[64]},null,{locale:[{validateLocale:0},{updateLocale:0}],range:[{updateRange:0}],min:[{updateMin:0}],max:[{updateMax:0}],inline:[{validateInline:0}]}]]],["p-89dbe69c",[[257,"post-megadropdown",{textClose:[513,"text-close"],textBack:[513,"text-back"],device:[32],isVisible:[32],trigger:[32],megadropdownTitle:[32],animationClass:[32],toggle:[64],show:[64],hide:[64],focusFirst:[64]}]]],["p-c792d22e",[[257,"post-side-navigation",{textClose:[513,"text-close"],size:[1],device:[32],toggle:[64],show:[64],hide:[64]}]]],["p-0708d2ae",[[257,"post-autocomplete",{filterThreshold:[514,"filter-threshold"],clearable:[516],listbox:[513],textAvailableSuggestions:[513,"text-available-suggestions"],inputValue:[32]}]]],["p-53627d54",[[1,"post-back-to-top",{textBackToTop:[513,"text-back-to-top"],belowFold:[32]},null,{belowFold:[{watchBelowFold:0}]}]]],["p-715fd00a",[[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516]}]]],["p-043b0295",[[257,"post-listbox",{show:[64],hide:[64],filter:[64],clearSelection:[64],navigate:[64],selectActive:[64]},[[0,"postOptionSelected","optionClicked"]]]]],["p-dbe1d696",[[257,"post-listbox-option",{value:[513],selected:[516],highlighted:[516]}]]],["p-20ded6e8",[[257,"post-megadropdown-trigger",{active:[516],for:[513],isMegadropdownExpanded:[32],slottedContent:[32]},[[4,"postToggleMegadropdown","onMegadropdownToggled"]]]]],["p-5c73925e",[[257,"post-number-input",{isDisabled:[32],isIncrementDisabled:[32],isDecrementDisabled:[32],small:[32],input:[32]}]]],["p-3fb06291",[[1,"post-pagination",{page:[1026],pageSize:[514,"page-size"],collectionSize:[514,"collection-size"],label:[513],textPrevious:[513,"text-previous"],textNext:[513,"text-next"],textPage:[513,"text-page"],textFirst:[513,"text-first"],textLast:[513,"text-last"],paginationId:[32],maxVisiblePages:[32],items:[32]},null,{page:[{handlePropsChange:0}],pageSize:[{handlePropsChange:0}],collectionSize:[{handlePropsChange:0}]}]]],["p-f5bc81a7",[[1,"post-rating",{label:[513],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]}]]],["p-2affed30",[[257,"post-tabs",{textPrevTabItems:[513,"text-prev-tab-items"],textNextTabItems:[513,"text-next-tab-items"],activeTab:[513,"active-tab"],size:[513],label:[513],isPagesVariant:[32],showLeftScrollButton:[32],showRightScrollButton:[32],show:[64]},null,{label:[{validateLabel:0}]}]]],["p-b98bd035",[[257,"post-tooltip",{placement:[1],arrow:[4],open:[1540],show:[64],hide:[64],toggle:[64]}]]],["p-941c9d63",[[257,"post-avatar",{firstname:[513],lastname:[1],email:[1],description:[1],slottedImage:[32],avatarType:[32],imageUrl:[32],imageAlt:[32],initials:[32],storageKey:[32]},null,{email:[{updateEmail:0}]}]]],["p-8aec6b71",[[257,"post-banner",{type:[513],hasActions:[32],dismiss:[64]},[[0,"click","onCloseButtonClick"]]]]],["p-7a4d48c8",[[257,"post-linkarea"]]],["p-ff4b3e95",[[257,"post-popover-trigger",{for:[513],ariaExpanded:[32],popoverOpen:[32]},null,{popoverOpen:[{syncAriaExpanded:0}]}]]],["p-8a3118d3",[[1,"post-progressbar",{min:[2],max:[2],value:[2]}]]],["p-b9e4f3a1",[[257,"post-side-navigation-trigger",{for:[513],update:[64]}]]],["p-26f99143",[[257,"post-stepper",{textCurrentStep:[513,"text-current-step"],textCompletedStep:[513,"text-completed-step"],textStepNumber:[513,"text-step-number"],currentIndex:[2,"current-index"],selectedIndex:[2,"selected-index"],mobileActiveStepLabel:[32],mobileActiveStepName:[32]},null,{currentIndex:[{validateCurrentIndex:0}],selectedIndex:[{validateSelectedIndex:0}],textStepNumber:[{updateActiveStepNumber:0}]}]]],["p-a5c32bd3",[[257,"post-stepper-item"]]],["p-15564bd8",[[257,"post-tab-item",{name:[513],disabled:[516],tabId:[32],isPagesVariant:[32]}]]],["p-3e0d2f8e",[[257,"post-tab-panel",{for:[513],panelId:[32]}]]],["p-1ad88e06",[[257,"post-tooltip-trigger",{for:[513],delay:[2]}]]],["p-3ce5350e",[[257,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],offset:[2],arrow:[4],safeSpace:[513,"safe-space"],dynamicPlacement:[32],show:[64],hide:[64],toggle:[64]}]]],["p-26e94f0f",[[1,"post-icon",{animation:[513],base:[1],url:[1],flipH:[516,"flip-h"],flipV:[516,"flip-v"],name:[513],rotate:[2],scale:[2]}]]],["p-27b2a48e",[[257,"post-footer",{textFooter:[513,"text-footer"],device:[32],slotDisplayed:[32]}]]],["p-2bbec1fa",[[257,"post-language-menu",{textChangeLanguage:[513,"text-change-language"],textCurrentLanguage:[513,"text-current-language"],variant:[513],activeLang:[32]},[[0,"postChange","handlePostChange"],[7,"scroll","hideMenuOnScroll"],[0,"postLanguageMenuItemInitiallyActive","handleInitiallyActive"]],{variant:[{handleVariantChange:0}]}]]],["p-3b5b5f43",[[257,"post-header",{fullWidth:[516,"full-width"],textMenu:[513,"text-menu"],device:[32],hasTitle:[32],hasMainNav:[32],hasLocalNav:[32],burgerMenuExtended:[32],megadropdownOpen:[32],toggleBurgerMenu:[64]},[[0,"focusin","onFocusChange"],[0,"focusout","onFocusChange"]],{device:[{lockBody:0}],burgerMenuExtended:[{lockBody:0}]}]]],["p-32d8756e",[[260,"post-language-menu-item",{code:[513],active:[1540],variant:[1],name:[1],description:[1],url:[1],select:[64]}]]],["p-10dbaad3",[[257,"post-mainnavigation",{textMain:[513,"text-main"],canScrollLeft:[32],canScrollRight:[32]},[[9,"mouseup","stopScrolling"],[9,"mouseleave","stopScrolling"]]]]],["p-0a1276dc",[[257,"post-logo",{url:[1]}]]],["p-9119d1d2",[[257,"post-togglebutton",{toggled:[1028]}]]],["p-324bb578",[[321,"post-closebutton",{buttonType:[1,"button-type"],placement:[513],size:[513]}]]],["p-a2b590f1",[[0,"post-menu-item"]]],["p-ba60d0f6",[[257,"post-menu",{placement:[1],label:[513],isVisible:[32],toggle:[64],show:[64],hide:[64]}],[257,"post-menu-trigger",{for:[513]}]]],["p-b266f922",[[257,"post-accordion-item",{collapsed:[1540],slottedLogo:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]]],[257,"post-accordion",{headingLevel:[514,"heading-level"],multiple:[516],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:[{syncHeadingLevel:0}]}],[257,"post-collapsible",{collapsed:[1028],toggle:[64]}],[257,"post-collapsible-trigger",{for:[513],update:[64]}]]]],e))));
|
|
@@ -2,6 +2,7 @@ import { ActiveRouteProp, Environment } from "../../models/general.model";
|
|
|
2
2
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
3
|
import '@swisspost/design-system-components';
|
|
4
4
|
export declare class PostInternetHeader {
|
|
5
|
+
private alternateLinksObserver?;
|
|
5
6
|
/**
|
|
6
7
|
* Set the currently activated route. If there is a link matching this URL in the header, it will be highlighted.
|
|
7
8
|
* Will also highlight partly matching URLs. When set to auto, will use current location.href for comparison.
|
|
@@ -68,6 +69,7 @@ export declare class PostInternetHeader {
|
|
|
68
69
|
*/
|
|
69
70
|
headerLoaded: EventEmitter<void>;
|
|
70
71
|
constructor();
|
|
72
|
+
connectedCallback(): void;
|
|
71
73
|
componentWillLoad(): Promise<void>;
|
|
72
74
|
componentDidLoad(): void;
|
|
73
75
|
disconnectedCallback(): void;
|
|
@@ -75,8 +77,15 @@ export declare class PostInternetHeader {
|
|
|
75
77
|
private fetchHeaderConfig;
|
|
76
78
|
private fetchUserData;
|
|
77
79
|
private updateConfig;
|
|
80
|
+
private initAlternateLinks;
|
|
81
|
+
private observeAlternateLinks;
|
|
78
82
|
private updateActiveUrl;
|
|
79
83
|
private getUserMenuOptions;
|
|
84
|
+
/**
|
|
85
|
+
* Get the language switch URL for a given language code.
|
|
86
|
+
* Alternate links from <head> take priority over config-provided URLs.
|
|
87
|
+
*/
|
|
88
|
+
private getLanguageUrl;
|
|
80
89
|
private renderNavItem;
|
|
81
90
|
private renderNavigation;
|
|
82
91
|
render(): any;
|
|
@@ -9,5 +9,6 @@ export interface HeaderState {
|
|
|
9
9
|
activeLink: RouteLink | null;
|
|
10
10
|
search: boolean;
|
|
11
11
|
user: UserConfig | null;
|
|
12
|
+
alternateLinks: Map<string, string>;
|
|
12
13
|
}
|
|
13
14
|
export declare const state: HeaderState, onChange: import("@stencil/store/dist/types").OnChangeHandler<HeaderState>, reset: () => void, dispose: () => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read alternate language links from <link rel="alternate" hreflang="..."> in <head>.
|
|
3
|
+
* Only returns entries whose hreflang matches a supported language and whose href is a valid URL.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getAlternateLinks: () => Map<string, string>;
|
|
6
|
+
/**
|
|
7
|
+
* Observe <head> for changes to alternate links.
|
|
8
|
+
* Fires the callback whenever a <link rel="alternate"> is added, removed,
|
|
9
|
+
* or has its href/hreflang attribute changed.
|
|
10
|
+
*
|
|
11
|
+
* @returns The MutationObserver instance.
|
|
12
|
+
*/
|
|
13
|
+
export declare const observeAlternateLinks: (callback: (links: Map<string, string>) => void) => MutationObserver;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/internet-header",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "The header for client facing applications.",
|
|
5
5
|
"author": "Swiss Post <design-system@post.ch>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"collection:main": "dist/collection/index.js",
|
|
30
30
|
"unpkg": "dist/swisspost-internet-header/swisspost-internet-header.esm.js",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@swisspost/design-system-styles": "10.
|
|
33
|
-
"@swisspost/design-system-components": "10.
|
|
32
|
+
"@swisspost/design-system-styles": "10.3.0",
|
|
33
|
+
"@swisspost/design-system-components": "10.3.0",
|
|
34
34
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
35
35
|
"iframe-resizer": "4.4.5",
|
|
36
36
|
"jquery": "3.7.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@types/throttle-debounce": "5.0.2",
|
|
56
56
|
"@typescript-eslint/parser": "7.18.0",
|
|
57
57
|
"babel-loader": "10.0.0",
|
|
58
|
-
"cypress": "15.
|
|
58
|
+
"cypress": "15.20.1",
|
|
59
59
|
"cypress-each": "1.14.1",
|
|
60
60
|
"cypress-storybook": "1.0.0",
|
|
61
61
|
"eslint": "9.26.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var version="10.1.0";export{version as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))o[a]=e[a]}return o};return __assign.apply(this,arguments)};System.register(["./p-CN_0KCBp.system.js","./p-CDL0cxX6.system.js","./p-CGtndO2e.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-CDvD7acy.system.js","./p-DaxAbTyB.system.js"],(function(o){"use strict";var e,t,r,a,i,n,s,d;return{setters:[function(o){e=o.r;t=o.h;r=o.H;a=o.g},function(o){i=o.v},function(o){n=o.b},function(o){s=o.R},function(o){d=o.T},null,null],execute:function(){var f=function(){return":host{display:block}footer{-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;--post-footer-container-padding-block:32px;--post-footer-container-padding-inline:16px;--post-footer-container-max-width:1200px;--post-footer-prefooter-padding-block:16px;--post-footer-grid-template:auto / auto;--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:0;--post-footer-grid-margin-block-end:24px;--post-footer-grid-padding-block-end:0;--post-footer-column-flex-direction:column;--post-footer-column-align-items:start;--post-footer-column-gap:0;--post-footer-list-flex-direction:column;--post-footer-list-gap:8px;--post-footer-list-align-items:start;--post-footer-socialmedia-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-app-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-businesssectors-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-meta-margin-block-end:16px;--post-footer-meta-font-size:inherit;--post-footer-copyright-font-size:var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-container-padding-block:40px;--post-footer-prefooter-padding-block:32px;--post-footer-grid-template:repeat(2, auto) / repeat(2, auto);--post-footer-grid-row-gap:32px;--post-footer-grid-column-gap:16px;--post-footer-grid-margin-block-end:32px;--post-footer-grid-padding-block-end:32px;--post-footer-list-flex-direction:row;--post-footer-list-gap:16px;--post-footer-list-align-items:center;--post-footer-meta-margin-block-end:8px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline:40px}}@media screen and (min-width: 1024px){footer{--post-footer-container-padding-block:56px;--post-footer-grid-template:auto / repeat(4, auto);--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:24px;--post-footer-grid-margin-block-end:40px;--post-footer-column-flex-direction:row;--post-footer-column-align-items:center;--post-footer-column-gap:32px;--post-footer-list-gap:24px;--post-footer-businesssectors-margin-block-end:24px;--post-footer-meta-font-size:16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{-webkit-box-sizing:content-box;box-sizing:content-box;margin:0 auto;padding:var(--post-footer-container-padding-block) var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.prefooter{background-color:#fafafa}.prefooter .footer-container{padding-block:0}.prefooter ::slotted([slot=prefooter]){padding-block:var(--post-footer-prefooter-padding-block)}.footer-main{background-color:#fc0}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);row-gap:var(--post-footer-grid-row-gap);-webkit-column-gap:var(--post-footer-grid-column-gap);-moz-column-gap:var(--post-footer-grid-column-gap);column-gap:var(--post-footer-grid-column-gap);-webkit-margin-after:var(--post-footer-grid-margin-block-end);margin-block-end:var(--post-footer-grid-margin-block-end);-webkit-padding-after:var(--post-footer-grid-padding-block-end);padding-block-end:var(--post-footer-grid-padding-block-end)}.footer-grid:has(>.d-none+.d-none+.d-none+.d-none){-webkit-margin-after:0;margin-block-end:0;-webkit-padding-after:0;padding-block-end:0;row-gap:0;-webkit-column-gap:0;-moz-column-gap:0;column-gap:0}.footer-grid post-accordion:has(>.d-none+.d-none+.d-none+.d-none){display:none}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:-ms-flexbox;display:flex;-ms-flex-direction:var(--post-footer-column-flex-direction);flex-direction:var(--post-footer-column-flex-direction);-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:var(--post-footer-column-align-items);align-items:var(--post-footer-column-align-items);-webkit-column-gap:var(--post-footer-column-gap);-moz-column-gap:var(--post-footer-column-gap);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-meta ::slotted(div){display:-ms-flexbox !important;display:flex !important;-ms-flex-direction:var(--post-footer-list-flex-direction) !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;-ms-flex-align:var(--post-footer-list-align-items) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{-webkit-margin-after:var(--post-footer-socialmedia-margin-block-end);margin-block-end:var(--post-footer-socialmedia-margin-block-end)}.footer-app{-webkit-margin-after:var(--post-footer-app-margin-block-end);margin-block-end:var(--post-footer-app-margin-block-end)}.prefooter ::slotted(div),.footer-businesssectors ::slotted(div){display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;gap:var(--post-footer-list-gap) !important}.footer-businesssectors{-webkit-margin-after:var(--post-footer-businesssectors-margin-block-end);margin-block-end:var(--post-footer-businesssectors-margin-block-end)}.footer-meta{-webkit-margin-after:var(--post-footer-meta-margin-block-end);margin-block-end:var(--post-footer-meta-margin-block-end);font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}"};var p=undefined&&undefined.__decorate||function(o,e,t,r){var a=arguments.length,i=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(o,e,t,r);else for(var s=o.length-1;s>=0;s--)if(n=o[s])i=(a<3?n(i):a>3?n(e,t,i):n(e,t))||i;return a>3&&i&&Object.defineProperty(e,t,i),i};var c=["grid-1","grid-2","grid-3","grid-4"];var l=o("post_footer",function(){function o(o){var t=this;e(this,o);this.device=n.get("device");this.gridSlotDisplayed={};this.breakpointChange=function(o){t.device=o.detail};this.handleGridSlotChange=this.handleGridSlotChange.bind(this)}o.prototype.connectedCallback=function(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange)};o.prototype.componentWillLoad=function(){var o=this;c.forEach((function(e){var t=o.host.querySelectorAll('[slot="'.concat(e,'"]'));o.updateGridSlotDisplay(e,t.length>0)}))};o.prototype.disconnectedCallback=function(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange)};o.prototype.handleGridSlotChange=function(){var o=this;var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return function(t){if(e.includes(o.device)&&t.target instanceof HTMLSlotElement){o.updateGridSlotDisplay(t.target.name,t.target.assignedElements().length>0)}}};o.prototype.updateGridSlotDisplay=function(o,e){var t;if(this.gridSlotDisplayed[o]!==e){this.gridSlotDisplayed=__assign(__assign({},this.gridSlotDisplayed),(t={},t[o]=e,t))}};o.prototype.renderAccordion=function(){var o=this;return t("post-accordion",{headingLevel:3,multiple:true},c.map((function(e){return t("post-accordion-item",{key:e,class:{"d-none":!o.gridSlotDisplayed[e]},collapsed:true},t("span",{slot:"header"},t("slot",{name:e+"-title"})),t("slot",{onSlotchange:o.handleGridSlotChange("mobile"),name:e}))})))};o.prototype.renderColumns=function(){var o=this;return c.map((function(e){return t("div",{key:e,class:{"d-none":!o.gridSlotDisplayed[e]}},t("h3",null,t("slot",{name:e+"-title"})),t("slot",{onSlotchange:o.handleGridSlotChange("tablet","desktop"),name:e}))}))};o.prototype.render=function(){return t(r,{key:"a418a8149b54b81dd054d02b5a13158a3592f80e","data-version":i,"data-color-scheme":"light"},t("footer",{key:"15e5706569dcae6f0b0c607384c93cc79b42dfb4"},t("h2",{key:"031af06c7b0f81324117be0ff79acecde5067c6c",class:"visually-hidden"},this.textFooter),t("div",{key:"ddb24e0e3165b0dc486979f65756de522690a5ea",class:"prefooter"},t("div",{key:"33420f69408f368b52199a56258fa6c342b47fd4",class:"footer-container"},t("slot",{key:"9fbbb2958d4623374333a32988e676cc29e9c432",name:"prefooter"}))),t("div",{key:"22cf7438001c496fc1b0480b53aab827c2e43d60",class:"footer-main"},t("div",{key:"861cc3613a0a29610e1bd0f0bc0b85ebb8278e11",class:"footer-container"},t("div",{key:"b3d8aa82cbc11b6a1bc66673812d081fcc60dadd",class:"footer-grid"},this.device==="mobile"?this.renderAccordion():this.renderColumns()),t("div",{key:"37024ff8c65037877e2daa41a91c7f7c731cfdcf",class:"footer-column"},t("div",{key:"45f35d77042709c3b487887d255cf060aae066be",class:"footer-socialmedia"},t("slot",{key:"f24f0f3e03267c22de4df84d57e64627939b2ec5",name:"socialmedia"})),t("div",{key:"32f122287278c21b588267c6d4a8f3e8e0f2e2cd",class:"footer-app"},t("slot",{key:"2b2baaa778418bda6e5d50b9dd661dc6f7a13d15",name:"app"}))),t("div",{key:"f3926f93aaac9040313052bab0d08155f4862b8a",class:"footer-businesssectors"},t("slot",{key:"f8aa5a777ddbf58dd47b305d2cbbbaa534795552",name:"businesssectors"})),t("div",{key:"1215c8e0a20a0ec6d1fe69da0bb793a533c9dd06",class:"footer-meta"},t("slot",{key:"939483f25bdf8c1ef9593b58962b11b1ecc4c3a2",name:"meta"})),t("div",{key:"4601f4b358e02319f2011d64c80778eb49732914",class:"footer-copyright"},t("slot",{key:"20ce9532ee14223e75ece29d951599c1a702f15d",name:"copyright"}))))))};Object.defineProperty(o.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});return o}());p([s(),d("string")],l.prototype,"textFooter",void 0);l.style=f()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as o,g as i}from"./p-h3opCZqH.js";import{v as n}from"./p-jK9tFtoG.js";import{g as a}from"./p-08F-DB-d.js";import{a as r}from"./p-DYYpZAAV.js";import{O as h}from"./p-Drxf8XVU.js";import{P as c}from"./p-DRiVosES.js";import{R as l}from"./p-DvaRK2lz.js";import{T as d}from"./p-DZMUeI8H.js";import{E as p}from"./p-rEfV4v4a.js";import"./p-vAzHgwTd.js";var f=function(t,e,s,o){var i,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,o);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(a=(n<3?i(a):n>3?i(e,s,a):i(e,s))||a);return n>3&&a&&Object.defineProperty(e,s,a),a};const m=class{constructor(s){t(this,s),this.toggleMenu=e(this,"toggleMenu"),this.lastFocusedElement=null,this.KEYCODES={SPACE:" ",ENTER:"Enter",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",HOME:"Home",END:"End",ESCAPE:"Escape"},this.placement="bottom",this.isVisible=!1,this.handleKeyDown=t=>{t.stopPropagation(),t.key!==this.KEYCODES.ESCAPE?Object.values(this.KEYCODES).includes(t.key)&&this.controlKeyDownHandler(t):this.toggle(this.host)},this.handleClick=t=>{["BUTTON","A","INPUT","SELECT","TEXTAREA"].includes(t.target.tagName)&&this.toggle(this.host)}}connectedCallback(){this.root=a(this.host),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick)}disconnectedCallback(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick)}async toggle(t){this.popoverRef?await this.popoverRef.toggle(t):console.error("toggle: popoverRef is null or undefined")}async show(t){this.popoverRef?await this.popoverRef.show(t):console.error("show: popoverRef is null or undefined")}async hide(){this.popoverRef?await this.popoverRef.hide():console.error("hide: popoverRef is null or undefined")}handlePostShown(t){if(t.detail.first){this.host.setAttribute("role","menu");const t=this.getSlottedItems();for(const e of t)e.setAttribute("role","menuitem");this.label&&this.host.setAttribute("aria-label",this.label)}}handlePostBeforeToggle(t){this.isVisible=t.detail.willOpen,this.toggleMenu.emit(this.isVisible),this.isVisible?(this.lastFocusedElement=this.root?.activeElement,requestAnimationFrame((()=>{const t=this.getSlottedItems();t.length>0&&t[0].focus()}))):this.lastFocusedElement&&this.lastFocusedElement.focus()}controlKeyDownHandler(t){const e=this.getSlottedItems();if(0===e.length)return;let s=e.findIndex((t=>t===a(t).activeElement));switch(t.key){case this.KEYCODES.UP:t.preventDefault(),s=(s-1+e.length)%e.length;break;case this.KEYCODES.DOWN:t.preventDefault(),s=(s+1)%e.length;break;case this.KEYCODES.HOME:t.preventDefault(),s=0;break;case this.KEYCODES.END:t.preventDefault(),s=e.length-1;break;case this.KEYCODES.SPACE:return void this.toggle(this.host);case this.KEYCODES.TAB:this.toggle(this.host)}e[s]&&e[s].focus()}getSlottedItems(){const t=this.host.shadowRoot.querySelectorAll("slot"),e=[];return t.forEach((t=>e.push(...t.assignedElements()))),e.flatMap((t=>t instanceof HTMLSlotElement?t.assignedElements():t)).flatMap((t=>[...r(t),...t.shadowRoot?r(t.shadowRoot):[]]))}render(){return s(o,{key:"3acc3b3079f45acc85305187ee76b70eb942a37f","data-version":n},s("post-popovercontainer",{key:"016f1e935c9f0b5a5b7c69f2d44899e567f03ef8",onPostShow:this.handlePostShown.bind(this),onPostBeforeToggle:this.handlePostBeforeToggle.bind(this),placement:this.placement,ref:t=>this.popoverRef=t},s("div",{key:"e8c184515174c1aaa6d8bfb0eada4aee665aef90",part:"post-menu"},s("slot",{key:"6301cebdd05b4964656754c162ad5893d7b06f9e",name:"header"}),s("slot",{key:"76a2f5ee1640268b945dac56b577811c968c891e"}))))}get host(){return i(this)}};f([h(c)],m.prototype,"placement",void 0),f([l(),d("string")],m.prototype,"label",void 0),f([p("post-popovercontainer")],m.prototype,"handlePostShown",null),f([p("post-popovercontainer")],m.prototype,"handlePostBeforeToggle",null),m.style=":host{display:block}:where([part=post-menu]){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding-block:.5rem}::slotted([slot=header]){margin-top:-0.5rem;padding:1rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:.5rem;-webkit-border-after:1px solid #050400;border-block-end:1px solid #050400;font-weight:700}@media screen and (max-width: 1023.98px){::slotted([slot=header]){padding:.75rem 1rem}}@media screen and (max-width: 779.98px){::slotted([slot=header]){padding:.5rem 1rem}}post-popovercontainer::part(post-popovercontainer-content){background-color:#fff}";const u=class{constructor(e){t(this,e),this.updateAriaExpanded=this.updateAriaExpanded.bind(this)}connectedCallback(){this.root=a(this.host)}componentDidLoad(){this.setAriaAttributes(),this.root&&this.root.addEventListener("toggleMenu",this.updateAriaExpanded)}disconnectedCallback(){this.root.removeEventListener("toggleMenu",this.updateAriaExpanded)}updateAriaExpanded(t){const e=t.target;"post-menu"===e.localName&&e.id===this.for&&this.slottedButton.setAttribute("aria-expanded",t.detail.toString())}setAriaAttributes(){const t=this.host.querySelectorAll("button");1===t.length?(this.slottedButton=t.item(0),this.slottedButton.setAttribute("type","button"),this.slottedButton.setAttribute("aria-haspopup","menu"),this.slottedButton.setAttribute("aria-expanded","false"),this.slottedButton.addEventListener("click",this.handleToggle.bind(this)),this.slottedButton.addEventListener("keydown",this.handleKeyDown.bind(this))):console.warn(`The post-menu-trigger should contain exactly one button (${t.length} found).`)}handleKeyDown(t){"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.handleToggle())}handleToggle(){const t=this.getMenu();t&&t.toggle(this.host)}getMenu(){const t=this.root.getElementById(this.for);return t&&"post-menu"===t.localName?t:(console.warn(`No post-menu found with ID: ${this.for}`),null)}render(){return s(o,{key:"3aa1f5576b030765aafe7cd1f4df773b27a91265","data-version":n},s("slot",{key:"3d2dbe578601244b1a65960e26a2da3f2a62ecbc"}))}get host(){return i(this)}};(function(t,e,s,o){var i,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,o);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(a=(n<3?i(a):n>3?i(e,s,a):i(e,s))||a);n>3&&a&&Object.defineProperty(e,s,a)})([l(),d("string")],u.prototype,"for",void 0),u.style=":host{display:inline-block}";export{m as post_menu,u as post_menu_trigger}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as n,H as r}from"./p-h3opCZqH.js";import{c as i,L as a,g as o,T as s,s as l,d as c,v as u}from"./p-CNZqHwmo.js";const d=({user:e,description:n})=>t("post-avatar",{firstname:e.name,lastname:e.surname,email:e.email,description:n,"aria-hidden":n?void 0:"true"}),g=({config:e,textClose:n,textBack:r})=>{const o=i(e.trigger.text);return[t("post-megadropdown-trigger",{key:"trigger",for:o},e.trigger.text),t("post-megadropdown",{key:"dropdown",id:o,textClose:n,textBack:r},e.overview&&t(a,{config:e.overview,class:"post-megadropdown-overview",ariaCurrentWhenActive:"page"}),t("div",{class:"row row-cols-1 row-cols-sm-2"},e.sections.map((e=>t(h,{config:e})))))]},h=({config:e})=>{const n=o(e.title),r=i(n);return t("div",{class:"col"},t(s,{class:"post-megadropdown-list-title",id:r,config:e.title}),t("ul",{class:"post-megadropdown-list","aria-labelledby":r},e.items.map((e=>t("li",{key:e.url},t(a,{config:e,ariaCurrentWhenActive:"page"}))))))},p=t=>{const e=new URL(t,window.location.href);return e.searchParams.set("returnURL",window.location.href),e.toString()},f=({config:e,slot:n,textCurrentUser:r,textUserLinks:o,textAccessUserLinks:s})=>{const l="B2B"===e.user.userType,c=l&&e.user.canChangeCompany&&e.user.company,u=("B2C"===e.user.userType||l)&&"userAndProfile"===e.user.changeUserAndProfile||c,g=[e.user.name,e.user.surname].join(" "),h=i(g);return t("div",{slot:n},t("post-menu-trigger",{for:h},t("button",{class:"btn btn-link",type:"button"},t(d,{user:e.user,description:r.replace("{user}",`${g}`)}),t("span",{class:"visually-hidden"},s))),t("post-menu",{id:h,label:o},t("div",{slot:"header"},t(d,{user:e.user}),e.user.company&&t("p",null,e.user.company),t("p",null,g)),e.accountSwitch&&u&&t("post-menu-item",null,t(a,{config:{text:e.accountSwitch.text,url:p(e.accountSwitch.url),icon:e.accountSwitch.icon}})),e.companySwitch&&c&&t("post-menu-item",null,t(a,{config:{text:e.companySwitch.text,url:p(e.companySwitch.url),icon:e.companySwitch.icon}})),e.options.map((e=>t("post-menu-item",{key:e.url},t(a,{config:e})))),e.logoutLink&&t("post-menu-item",null,t(a,{config:e.logoutLink}))))},w=t=>{const e=t.split("/").filter(Boolean)[0];if(e)try{return Intl.getCanonicalLocales(e),e}catch{return}},v=t=>t.substring(0,2).toLowerCase(),m=new Map,y=async(t,e,n)=>{if(!L(t))throw new Error(`Internet Header: invalid project id "${t}"`);"test"===t&&(e="int01");const r=x(t,e,n);try{const t=await fetch(r);return await t.json()}catch(t){throw new Error(`Internet Header: fetching config failed. ${t.message}`)}},x=(t,e,n)=>{if("test"===t)return"assets/config/test-configuration.json";const r=e.toUpperCase(),i=n.toLowerCase(),a=`https://${"PROD"===r?"":"int."}preview.post.ch`;try{const e=new URLSearchParams({serviceId:t,environment:r,lang:i}).toString();return new URL(`${a}/api/header?${e}`).toString()}catch(t){throw new Error("Internet Header: Config URL is invalid.")}},L=t=>""!==t&&t.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(t),C=(t,e,n)=>{if(null===t||null===e||t.origin!==e.origin)return 0;const r=t.pathname.toLocaleLowerCase(),i=e.pathname.toLocaleLowerCase();if(r===i)return 1/0;if(t.pathname.length<e.pathname.length)return 0;if("auto"===n){const n=[t.origin.toLocaleLowerCase(),...r.split("/").filter((t=>null!==t&&""!==t))],a=[e.origin.toLocaleLowerCase(),...i.split("/").filter((t=>null!==t&&""!==t))],o=k(n,a);return Math.min(n.length,a.length)===o?o:0}return 0},k=(t,e)=>{if(null==t||null==e||0===t.length||0===e.length)return 0;let n=0;for(;n<Math.min(t.length,e.length);n++)if(t[n]!==e[n])return 0;return n},U=class{activeRoute="auto";handleActiveRouteChange(){this.updateActiveUrl()}environment="prod";fullWidth=!1;language;async handleLanguageChange(t){try{await this.updateConfig(t)}catch(t){console.error(t)}}project;textBack;textChangeLanguage;textClose;textCurrentLanguage;textCurrentUser;textMain;textMenu;textAccessUserLinks;textUserLinks;headerLoaded;constructor(t){if(e(this,t),this.headerLoaded=n(this,"headerLoaded"),void 0===this.project||""===this.project||!L(this.project))throw new Error(`Internet Header project key is "${this.project}". Please provide a valid project key.`)}async componentWillLoad(){await Promise.all([this.fetchHeaderConfig(),this.fetchUserData()])}componentDidLoad(){window.requestAnimationFrame((()=>{this.headerLoaded.emit()}))}disconnectedCallback(){c()}handleLanguageChangeEvent(t){t.target instanceof HTMLElement&&"post-language-menu-item"===t.target.localName&&t.detail!==this.language&&this.handleLanguageChange(t.detail)}async fetchHeaderConfig(){try{l.projectId=this.project,l.environment=this.environment.toLocaleLowerCase(),void 0!==this.language&&(l.currentLanguage=this.language),await this.updateConfig()}catch(t){console.error(t)}}async fetchUserData(){try{const t=await fetch("https://n.account.post.ch/v1/session/subscribe",{credentials:"include"});if(t.ok){const e=await t.json();l.user=e?.data}}catch{}}async updateConfig(t){l.localizedConfig=await(async({projectId:t,environment:e,language:n})=>{const r=(()=>{const t=document.querySelector("#PPM_HEADER_DATA");return null!=t?.textContent?JSON.parse(t.textContent):null})();if(r){const t=document.documentElement.lang;return l.currentLanguage=t,r}const i=(t=>{const e=new URL(window.location.href),n=[t,e.searchParams.get("lang"),w(e.pathname),document.documentElement.lang,null!=navigator.language?v(navigator.language):null!=navigator.languages&&navigator.languages.length>0?v(navigator.languages[0]):null,l.currentLanguage].filter((t=>null!=t));return v(n[0]??"de")})(n),a=`${t}-${e}-${i}`;let o=m.get(a);null==o&&(o=y(t,e,i).finally((()=>{m.delete(a)})),m.set(a,o));const s={...await o};return l.currentLanguage=i,s})({projectId:this.project,environment:this.environment,language:t??this.language}),this.updateActiveUrl()}updateActiveUrl(){l.activeLink=(t=>{const e=(t=>{const e=[];if(!t)return e;const n=t=>{null!=t&&(Array.isArray(t)?t.forEach(n):"object"==typeof t&&null!==t&&("url"in t&&"string"==typeof t.url&&e.push(t),Object.values(t).forEach(n)))};return n(t),e})(l.localizedConfig?.header);if(0===e.length||"none"===t)return null;if("auto"===t||"exact"===t){const t=(t=>t.find((t=>t.active)))(e);if(t)return t}let n;if("auto"===t||"exact"===t)n=new URL(window.location.href);else try{n=new URL(t,document.location.origin)}catch{return console.warn(`Active Route: ${t} is not a valid URL. Navigation highlighting has been disabled.`),null}const r=(t=>t.filter((t=>""!==t.url&&"#"!==t.url&&"/"!==t.url)))(e);return((t,e,n)=>{let r=null;for(const i of t)try{const t=new URL(i.url,document.location.origin),a=C(e,t,n);if(a>0&&((!r||a>r.score)&&(r={link:i,score:a}),a===1/0))break}catch{}return r?r.link:null})(r,n,"exact"===t?"exact":"auto")})(this.activeRoute)}getUserMenuOptions(t){return[...t.userProfile?[t.userProfile]:[],...t.settings?[t.settings]:[],...t.userLinks??[]]}renderNavItem(e,n={}){return"url"in e?t(a,{...n,config:e}):t(f,{slot:n.slot,config:e,textCurrentUser:this.textCurrentUser,textAccessUserLinks:this.textAccessUserLinks,textUserLinks:this.textUserLinks})}renderNavigation(e,n,r={}){return 0===n.length?null:1===n.length?this.renderNavItem(n[0],{...r,slot:e}):t("ul",{slot:e},n.map((e=>t("li",{key:"url"in e?e.url:e.user.email},this.renderNavItem(e,r)))))}render(){if(!l.localizedConfig?.header)return void console.error(new Error("Internet Header: Config cannot be loaded"));const{globalHeader:e,localHeader:n}=l.localizedConfig.header;return t(r,{"data-version":u},t("post-header",{textMenu:this.textMenu},"image"in e.postLogo?t(a,{slot:"post-logo",config:e.postLogo}):t("post-logo",{slot:"post-logo",url:e.postLogo.url,"aria-label":e.postLogo.label,"aria-description":e.postLogo.description},e.postLogo.text),e.audience&&this.renderNavigation("audience",e.audience,{ariaCurrentWhenActive:"location"}),e.primaryNavigation&&this.renderNavigation("global-nav-primary",e.primaryNavigation),e.secondaryNavigation&&this.renderNavigation("global-nav-secondary",e.secondaryNavigation,{ariaCurrentWhenActive:"location"}),e.languages&&e.languages.length>0&&t("post-language-menu",{slot:"language-menu",textChangeLanguage:this.textChangeLanguage,textCurrentLanguage:this.textCurrentLanguage},e.languages.map((e=>t("post-language-menu-item",{key:e.code,url:e.url,active:e.active,code:e.code,name:e.label,description:e.description},e.text)))),e.postLogin&&this.renderNavItem(l.user?{user:l.user,options:this.getUserMenuOptions(e.postLogin),accountSwitch:e.postLogin.accountSwitch,companySwitch:e.postLogin.companySwitch,logoutLink:e.postLogin.logoutLink}:e.postLogin.loginLink,{slot:"post-login"}),n.title&&t("p",{slot:"title"},n.title),n.navigation&&this.renderNavigation("local-nav",n.navigation),n.mainNavigation&&t("post-mainnavigation",{slot:"main-nav",textMain:this.textMain},t("ul",null,n.mainNavigation.map((e=>t("li",{key:"url"in e?e.url:e.trigger.text},"url"in e?t(a,{config:e,ariaCurrentWhenActive:"page"}):t(g,{config:e,textBack:this.textBack,textClose:this.textClose}))))))))}static get watchers(){return{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}}};export{U as swisspost_internet_header}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(o){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))o[s]=e[s]}return o};return __assign.apply(this,arguments)};System.register(["./p-CN_0KCBp.system.js","./p-CDL0cxX6.system.js","./p-qZj3hjL-.system.js","./p-DaxAbTyB.system.js"],(function(o){"use strict";var e,t,i,s,n,c;return{setters:[function(o){e=o.r;t=o.h;i=o.H;s=o.g},function(o){n=o.v},function(o){c=o.U},null],execute:function(){var r=function(){return":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-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}.logo-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){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-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){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link{outline-offset:var(--post-device-spacing-padding-28) !important}.logo-link:focus,.logo-link:focus-visible{border-radius:var(--post-device-border-radius-focus)}"};var f=undefined&&undefined.__decorate||function(o,e,t,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,c;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(o,e,t,i);else for(var r=o.length-1;r>=0;r--)if(c=o[r])n=(s<3?c(n):s>3?c(e,t,n):c(e,t))||n;return s>3&&n&&Object.defineProperty(e,t,n),n};var a=o("post_logo",function(){function o(o){e(this,o)}o.prototype.componentDidLoad=function(){this.checkDescription()};o.prototype.checkDescription=function(){if(!this.host.textContent){console.warn("Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.")}};o.prototype.render=function(){var o=this;var e=this.url&&(typeof this.url==="string"?this.url:this.url.href);var s=e?"a":"span";return t(i,{key:"473c845bef6d123628bf52b7848475b50172e3c0","data-version":n},t(s,__assign({key:"47503ff9c22b613c5041d51a48cfc158d0edebcd",class:"logo ".concat(e?"logo-link":"")},e?{href:e}:{}),t("span",{key:"52953139bad89e236fc922574a881b7f4b79aee5",class:"description"},t("slot",{key:"554c681236c4d158d967f97754134af774ec791e",onSlotchange:function(){return o.checkDescription()}})),t("svg",{key:"3d65f3a44c46f8ba3810d0cd3c344577fb43a61e",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72","aria-hidden":"true"},t("g",{key:"03f88fbf5710da7f0bbccafdb95c4faa93e2636a",id:"Logo"},t("rect",{key:"33f39db4fb799744d25fae33f0b6a921c331531a",fill:"#ffcc00",x:"0",y:"0",width:"72",height:"72"}),t("polygon",{key:"93c248b53c7493a831d7b1ddf8b3e3d14d804779",fill:"#ff0000",points:"34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3"}),t("path",{key:"dbdfa4a5f215e578c9f9cfc65f0cfb5d26b02848",d:"M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z"})))))};Object.defineProperty(o.prototype,"host",{get:function(){return s(this)},enumerable:false,configurable:true});return o}());f([c()],a.prototype,"url",void 0);a.style=r()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as o,g as s}from"./p-h3opCZqH.js";import{f as n}from"./p-BVCjnh6Q.js";import{b as r}from"./p-Ck6UMUSA.js";import{a}from"./p-DYYpZAAV.js";import{v as d}from"./p-jK9tFtoG.js";import{r as c}from"./p-CoDiS_Ik.js";import{R as h}from"./p-DvaRK2lz.js";import{T as l}from"./p-DZMUeI8H.js";import"./p-bR8vy6-s.js";import"./p-08F-DB-d.js";import"./p-vAzHgwTd.js";const b={translate:100,duration:500,easing:"ease",fill:"none"};var m=function(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const p=class{get megadropdownTrigger(){const t=this.host.getAttribute("id");return t?document.querySelector(`post-megadropdown-trigger[for="${t}"]`):null}constructor(i){t(this,i),this.postToggleMegadropdown=e(this,"postToggleMegadropdown"),this.currentAnimation=null,this.isAnimating=!1,this.fsAnimationOptions={translate:-10,duration:350,easing:"headerEase"},this.device=r.get("device"),this.isVisible=!1,this.trigger=!1,this.animationClass=null,this.handleClickOutside=async t=>{if("desktop"!==this.device)return;const e=t.target;if(!this.host.contains(e)&&!this.megadropdownTrigger.contains(e)){if(e instanceof HTMLElement){const t=e.closest("post-megadropdown-trigger");if(t&&t.getAttribute("for")!==this.host.id)return}await this.hide(!1)}},this.keyboardHandler=this.keyboardHandler.bind(this),this.handleTabOutside=this.handleTabOutside.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this)}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange.bind(this))}componentDidRender(){this.getFocusableElements()}componentDidLoad(){this.checkInitialAriaCurrent(),this.setupObserver(),this.handleAriaCurrentChange([])}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange.bind(this)),p.activeDropdown===this&&(p.activeDropdown=null),this.removeListeners(),this.defaultSlotObserver&&this.defaultSlotObserver.disconnect()}async toggle(){return this.isAnimating?this.isVisible?this.show():this.hide():this.isVisible?this.hide():this.show()}async show(){if("desktop"!==this.device){const t=this.megadropdownTrigger;t&&(this.megadropdownTitle=t.innerHTML)}let t=!1;if(p.activeDropdown&&p.activeDropdown!==this&&(p.activeDropdown.forceClose(),t=!0),this.cancelAnimation(),this.isVisible=!0,p.activeDropdown=this,this.postToggleMegadropdown.emit({isVisible:!0}),t)this.focusFirst(),this.addListeners();else try{await this.animate("in"),this.focusFirst(),this.addListeners()}catch{this.removeListeners(),this.isVisible=!1,p.activeDropdown===this&&(p.activeDropdown=null),this.postToggleMegadropdown.emit({isVisible:!1,focusParent:!0})}}async hide(t=!0,e=!1){if(e)this.forceClose();else{this.postToggleMegadropdown.emit({isVisible:!1,focusParent:t});try{await this.animate("out"),this.isVisible=!1,this.removeListeners(),p.activeDropdown===this&&(p.activeDropdown=null)}catch{p.activeDropdown=this,this.addListeners(),this.isVisible=!0,this.postToggleMegadropdown.emit({isVisible:!0,focusParent:!1})}}}async focusFirst(){this.firstFocusableEl?.focus()}forceClose(){this.removeListeners(),this.postToggleMegadropdown.emit({isVisible:!1,focusParent:!1}),this.isVisible=!1,p.activeDropdown===this&&(p.activeDropdown=null)}createAnimation(t){return"desktop"===this.device?n(this.animatedContainer,t,this.fsAnimationOptions):function(t,e,i={}){const o={...b,...i},{translate:s}=o,n=[{transform:`translateX(${s}%)`},{transform:"translateX(0)"}];return function(t,e,i){const{duration:o,easing:s,fill:n}={...b,...i};return t.animate(e,{duration:o,easing:c(s),fill:n})}(t,"in"===e?n:[...n].reverse(),i)}(this.animatedContainer,t,{translate:100,duration:350,easing:"in"===t?"ease-in":"ease-out"})}async animate(t){this.cancelAnimation(),this.currentAnimation=this.createAnimation(t),this.isAnimating=!0,await this.currentAnimation.finished,this.isAnimating=!1,this.currentAnimation=null}cancelAnimation(){this.currentAnimation?.cancel(),this.currentAnimation=null}breakpointChange(t){this.device=t.detail,this.cancelAnimation()}addListeners(){this.host.addEventListener("keydown",this.keyboardHandler),document.addEventListener("keyup",this.handleTabOutside),document.addEventListener("mousedown",this.handleClickOutside)}removeListeners(){this.host.removeEventListener("keydown",this.keyboardHandler),document.removeEventListener("keyup",this.handleTabOutside),document.removeEventListener("mousedown",this.handleClickOutside)}getFocusableElements(){const t=[...a(this.host),...a(this.host.shadowRoot)];this.firstFocusableEl=t[0],this.lastFocusableEl=t.at(-1)}keyboardHandler(t){if("Tab"!==t.key||"desktop"===this.device)return;const e=this.host.shadowRoot.activeElement||document.activeElement;t.shiftKey&&e===this.firstFocusableEl?(t.preventDefault(),this.lastFocusableEl.focus()):t.shiftKey||e!==this.lastFocusableEl||(t.preventDefault(),this.firstFocusableEl.focus())}handleTabOutside(t){"Tab"===t.key&&"desktop"===this.device&&this.isVisible&&!this.host.contains(t.target)&&this.hide(!1)}setupObserver(){this.defaultSlotObserver=new MutationObserver(this.handleAriaCurrentChange.bind(this)),this.defaultSlotObserver.observe(this.host,{subtree:!0,attributes:!0,attributeFilter:["aria-current"]})}setTriggerActive(t){const e=this.megadropdownTrigger;e&&e.setAttribute("active",t.toString())}handleAriaCurrentChange(t){if(0===t.length)return;const e=t.some((t=>t.target instanceof HTMLElement&&"page"===t.target.getAttribute("aria-current")));this.setTriggerActive(e)}checkInitialAriaCurrent(){this.host.querySelector('[aria-current="page"]')&&this.setTriggerActive(!0)}render(){return i(o,{key:"8c6cd70082c2cdd9c208ad1ef138a21463919547",version:d},i("div",{key:"ff9466a7e28e894f56c9ab22d3999f68366a4aee",ref:t=>this.animatedContainer=t,class:"megadropdown",style:this.isVisible?{}:{display:"none"}},i("div",{key:"13a7b44deceb6a83842d324b012f34adc6606de6",class:"section"},"desktop"!==this.device&&this.megadropdownTitle&&i("p",{key:"78cfcb708ad60f12203bc34b58915665b4b5b3ef",class:"megadropdown-title"},this.megadropdownTitle),i("div",{key:"e78eb79d9806d23fa75184f1ad9f2f7eef318297",class:"megadropdown-content"},i("slot",{key:"e7008833f9700059a189665a19371f52b7ab9ed6"})),"desktop"===this.device?i("post-closebutton",{onClick:()=>this.hide(!0),class:"close-button",size:"small",placement:"manual"},this.textClose):i("button",{onClick:()=>this.hide(!0),class:"back-button"},i("post-icon",{name:"arrowleft"}),this.textBack))))}get host(){return s(this)}};p.activeDropdown=null,m([h(),l("string")],p.prototype,"textClose",void 0),m([h(),l("string")],p.prototype,"textBack",void 0),p.style="*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box}.megadropdown{position:absolute;inset-inline:0;overflow-y:auto;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}@media screen and (min-width: 1024px){.megadropdown{max-height:calc(100vh - var(--post-header-height) - 3rem);background-color:#f0efed;z-index:-1;inset-block-start:100%}.megadropdown.slide-in{-webkit-animation:slide-down 350ms forwards;animation:slide-down 350ms forwards}.megadropdown.slide-out{-webkit-animation:slide-up 350ms forwards;animation:slide-up 350ms forwards}}@media screen and (max-width: 1023.98px){.megadropdown{background-color:#fafafa;z-index:1;inset-block-start:var(--post-header-navigation-current-inset);-ms-scroll-chaining:none;overscroll-behavior:contain}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.megadropdown{-webkit-border-after:1px solid CanvasText;border-block-end:1px solid CanvasText}}.section{width:100%;max-width:var(--post-header-content-max-width);margin-inline:auto;position:relative}@media screen and (min-width: 1024px){.section{padding:3rem 2.5rem 2.5rem}}@media screen and (max-width: 1023.98px){.section{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height));padding-inline:var(--post-burger-menu-padding-inline);-webkit-padding-before:1.5rem;padding-block-start:1.5rem}}@media screen and (max-width: 1023.98px){.section .megadropdown-content{-webkit-padding-after:1.5rem;padding-block-end:1.5rem}}.megadropdown-title{margin-block:0 1rem;font-weight:950}@media screen and (min-width: 600px)and (max-width: 1023.98px){.megadropdown-title{font-size:1.25rem}}@media screen and (min-width: 0)and (max-width: 599.98px){.megadropdown-title{font-size:1.125rem}}.back-button{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-4);gap:var(--post-device-spacing-gap-inline-11);padding:0 var(--post-device-spacing-padding-inline-7);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);-ms-flex-order:-1;order:-1;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-inline:0}.back-button:not(:disabled):hover{text-decoration:none}.back-button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.back-button{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}.back-button: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){.back-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.back-button: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){.back-button: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){.back-button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}.back-button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}.back-button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}.back-button>post-icon{width:var(--post-device-sizing-interactive-button-icon-5);height:var(--post-device-sizing-interactive-button-icon-5)}.back-button: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)}@media screen and (min-width: 600px)and (max-width: 1023.98px){.back-button{-webkit-margin-after:2rem;margin-block-end:2rem}}@media screen and (min-width: 0)and (max-width: 599.98px){.back-button{-webkit-margin-after:1.5rem;margin-block-end:1.5rem}}.close-button{position:absolute;inset-block-start:.5rem;inset-inline-end:.5rem}@media screen and (max-width: 1023.98px){.close-button{display:none}}";export{p as post_megadropdown}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as e,g as s}from"./p-h3opCZqH.js";import{v as a}from"./p-jK9tFtoG.js";import{n as r}from"./p-8LXe8Zt_.js";import{R as p}from"./p-DvaRK2lz.js";import{T as f}from"./p-DZMUeI8H.js";import"./p-vAzHgwTd.js";const i=class{constructor(o){t(this,o)}componentWillLoad(){this.panelId=`panel-${this.host.id||r(6)}`}render(){return o(e,{key:"b19f30d8fa79df34aa60b8728e9eacf54af9aa50","data-version":a,id:this.panelId,role:"tabpanel",slot:"panels",style:void 0},o("slot",{key:"534d3728e4a0cf2f5b9682a1c3231b966a70b7de"}))}get host(){return s(this)}};(function(t,o,e,s){var a,r=arguments.length,p=r<3?o:null===s?s=Object.getOwnPropertyDescriptor(o,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,o,e,s);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(p=(r<3?a(p):r>3?a(o,e,p):a(o,e))||p);r>3&&p&&Object.defineProperty(o,e,p)})([p(),f("string")],i.prototype,"for",void 0),i.style=":host{display:none}";export{i as post_tab_panel}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var r=function(t,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))r[e]=t[e]};return r(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))r[i]=t[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,t,e,n){function i(r){return r instanceof e?r:new e((function(t){t(r)}))}return new(e||(e=Promise))((function(e,o){function a(r){try{u(n.next(r))}catch(r){o(r)}}function s(r){try{u(n["throw"](r))}catch(r){o(r)}}function u(r){r.done?e(r.value):i(r.value).then(a,s)}u((n=n.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(t){return u([r,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(e=0)),e)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;i=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){e.label=s[1];break}if(s[0]===6&&e.label<o[1]){e.label=o[1];o=s;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(s);break}if(o[2])e.ops.pop();e.trys.pop();continue}s=t.call(r,e)}catch(r){s=[6,r];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(r,t){var e={};for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0)e[n]=r[n];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++){if(t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i]))e[n[i]]=r[n[i]]}return e};var __spreadArray=this&&this.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return r.concat(o||Array.prototype.slice.call(t))};System.register(["./p-CN_0KCBp.system.js","./p-CDL0cxX6.system.js","./p-CiwQnVr3.system.js","./p-BYB4z0RW.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(r){"use strict";var t,e,n,i,o,a,s,u,f;return{setters:[function(r){t=r.r;e=r.c;n=r.h;i=r.H;o=r.g},function(r){a=r.v},function(r){s=r.O},function(r){u=r.P},function(r){f=r.T},null],execute:function(){var p=this;var c=Math.min;var v=Math.max;var l=Math.round;var d=Math.floor;var h=function(r){return{x:r,y:r}};var g={left:"right",right:"left",bottom:"top",top:"bottom"};function b(r,t,e){return v(r,c(t,e))}function w(r,t){return typeof r==="function"?r(t):r}function x(r){return r.split("-")[0]}function m(r){return r.split("-")[1]}function y(r){return r==="x"?"y":"x"}function _(r){return r==="y"?"height":"width"}function k(r){var t=r[0];return t==="t"||t==="b"?"y":"x"}function S(r){return y(k(r))}function A(r,t,e){if(e===void 0){e=false}var n=m(r);var i=S(r);var o=_(i);var a=i==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(t.reference[o]>t.floating[o]){a=C(a)}return[a,C(a)]}function T(r){var t=C(r);return[E(r),t,E(t)]}function E(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}var O=["left","right"];var M=["right","left"];var j=["top","bottom"];var L=["bottom","top"];function H(r,t,e){switch(r){case"top":case"bottom":if(e)return t?M:O;return t?O:M;case"left":case"right":return t?j:L;default:return[]}}function R(r,t,e,n){var i=m(r);var o=H(x(r),e==="start",n);if(i){o=o.map((function(r){return r+"-"+i}));if(t){o=o.concat(o.map(E))}}return o}function C(r){var t=x(r);return g[t]+r.slice(t.length)}function D(r){return __assign({top:0,right:0,bottom:0,left:0},r)}function z(r){return typeof r!=="number"?D(r):{top:r,right:r,bottom:r,left:r}}function F(r){var t=r.x,e=r.y,n=r.width,i=r.height;return{width:n,height:i,top:e,left:t,right:t+n,bottom:e+i,x:t,y:e}}function W(r,t,e){var n=r.reference,i=r.floating;var o=k(t);var a=S(t);var s=_(a);var u=x(t);var f=o==="y";var p=n.x+n.width/2-i.width/2;var c=n.y+n.height/2-i.height/2;var v=n[s]/2-i[s]/2;var l;switch(u){case"top":l={x:p,y:n.y-i.height};break;case"bottom":l={x:p,y:n.y+n.height};break;case"right":l={x:n.x+n.width,y:c};break;case"left":l={x:n.x-i.width,y:c};break;default:l={x:n.x,y:n.y}}switch(m(t)){case"start":l[a]-=v*(e&&f?-1:1);break;case"end":l[a]+=v*(e&&f?-1:1);break}return l}function B(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,f,p,c,v,l,d,h,g,b,x,m,y,_,k,S,A,T,E,O,M,j,L,H,R,C,D,W;var B;return __generator(this,(function(P){switch(P.label){case 0:if(t===void 0){t={}}n=r.x,i=r.y,o=r.platform,a=r.rects,s=r.elements,u=r.strategy;f=w(t,r),p=f.boundary,c=p===void 0?"clippingAncestors":p,v=f.rootBoundary,l=v===void 0?"viewport":v,d=f.elementContext,h=d===void 0?"floating":d,g=f.altBoundary,b=g===void 0?false:g,x=f.padding,m=x===void 0?0:x;y=z(m);_=h==="floating"?"reference":"floating";k=s[b?_:h];A=F;E=(T=o).getClippingRect;B={};return[4,o.isElement==null?void 0:o.isElement(k)];case 1:if(!((e=P.sent())!=null?e:true))return[3,2];O=k;return[3,5];case 2:M=k.contextElement;if(M)return[3,4];return[4,o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)];case 3:M=P.sent();P.label=4;case 4:O=M;P.label=5;case 5:return[4,E.apply(T,[(B.element=O,B.boundary=c,B.rootBoundary=l,B.strategy=u,B)])];case 6:S=A.apply(void 0,[P.sent()]);j=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference;return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)];case 7:L=P.sent();return[4,o.isElement==null?void 0:o.isElement(L)];case 8:if(!P.sent())return[3,10];return[4,o.getScale==null?void 0:o.getScale(L)];case 9:R=P.sent()||{x:1,y:1};return[3,11];case 10:R={x:1,y:1};P.label=11;case 11:H=R;D=F;if(!o.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:j,offsetParent:L,strategy:u})];case 12:W=P.sent();return[3,14];case 13:W=j;P.label=14;case 14:C=D.apply(void 0,[W]);return[2,{top:(S.top-C.top+y.top)/H.y,bottom:(C.bottom-S.bottom+y.bottom)/H.y,left:(S.left-C.left+y.left)/H.x,right:(C.right-S.right+y.right)/H.x}]}}))}))}var P=50;var I=function(r,t,e){return __awaiter(p,void 0,void 0,(function(){var n,i,o,a,s,u,f,p,c,v,l,d,h,g,b,w,x,m,y,_,k,S,A,T,E,O;var M;return __generator(this,(function(j){switch(j.label){case 0:n=e.placement,i=n===void 0?"bottom":n,o=e.strategy,a=o===void 0?"absolute":o,s=e.middleware,u=s===void 0?[]:s,f=e.platform;p=f.detectOverflow?f:__assign(__assign({},f),{detectOverflow:B});return[4,f.isRTL==null?void 0:f.isRTL(t)];case 1:c=j.sent();return[4,f.getElementRects({reference:r,floating:t,strategy:a})];case 2:v=j.sent();l=W(v,i,c),d=l.x,h=l.y;g=i;b=0;w={};x=0;j.label=3;case 3:if(!(x<u.length))return[3,11];m=u[x];if(!m){return[3,10]}y=m.name,_=m.fn;return[4,_({x:d,y:h,initialPlacement:i,placement:g,strategy:a,middlewareData:w,rects:v,platform:p,elements:{reference:r,floating:t}})];case 4:k=j.sent(),S=k.x,A=k.y,T=k.data,E=k.reset;d=S!=null?S:d;h=A!=null?A:h;w[y]=__assign(__assign({},w[y]),T);if(!(E&&b<P))return[3,10];b++;if(!(typeof E==="object"))return[3,9];if(E.placement){g=E.placement}if(!E.rects)return[3,8];if(!(E.rects===true))return[3,6];return[4,f.getElementRects({reference:r,floating:t,strategy:a})];case 5:O=j.sent();return[3,7];case 6:O=E.rects;j.label=7;case 7:v=O;j.label=8;case 8:M=W(v,g,c),d=M.x,h=M.y;j.label=9;case 9:x=-1;j.label=10;case 10:x++;return[3,3];case 11:return[2,{x:d,y:h,placement:g,strategy:a,middlewareData:w}]}}))}))};var q=function(r){return{name:"arrow",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,f,p,v,l,d,h,g,x,y,k,A,T,E,O,M,j,L,H,R,C,D,F,W,B,P,I,q,N;var $,G;return __generator(this,(function(K){switch(K.label){case 0:e=t.x,n=t.y,i=t.placement,o=t.rects,a=t.platform,s=t.elements,u=t.middlewareData;f=w(r,t)||{},p=f.element,v=f.padding,l=v===void 0?0:v;if(p==null){return[2,{}]}d=z(l);h={x:e,y:n};g=S(i);x=_(g);return[4,a.getDimensions(p)];case 1:y=K.sent();k=g==="y";A=k?"top":"left";T=k?"bottom":"right";E=k?"clientHeight":"clientWidth";O=o.reference[x]+o.reference[g]-h[g]-o.floating[x];M=h[g]-o.reference[g];return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(p)];case 2:j=K.sent();L=j?j[E]:0;H=!L;if(H)return[3,4];return[4,a.isElement==null?void 0:a.isElement(j)];case 3:H=!K.sent();K.label=4;case 4:if(H){L=s.floating[E]||o.floating[x]}R=O/2-M/2;C=L/2-y[x]/2-1;D=c(d[A],C);F=c(d[T],C);W=D;B=L-y[x]-F;P=L/2-y[x]/2+R;I=b(W,P,B);q=!u.arrow&&m(i)!=null&&P!==I&&o.reference[x]/2-(P<W?D:F)-y[x]/2<0;N=q?P<W?P-W:P-B:0;return[2,($={},$[g]=h[g]+N,$.data=__assign((G={},G[g]=I,G.centerOffset=P-I-N,G),q&&{alignmentOffset:N}),$.reset=q,$)]}}))}))}}};var N=function(r){if(r===void 0){r={}}return{name:"flip",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,f,p,c,v,l,d,h,g,b,m,y,_,S,E,O,M,j,L,H,D,z,F,W,B,P,I,q,N,$,G,K,V,Q;return __generator(this,(function(X){switch(X.label){case 0:i=t.placement,o=t.middlewareData,a=t.rects,s=t.initialPlacement,u=t.platform,f=t.elements;p=w(r,t),c=p.mainAxis,v=c===void 0?true:c,l=p.crossAxis,d=l===void 0?true:l,h=p.fallbackPlacements,g=p.fallbackStrategy,b=g===void 0?"bestFit":g,m=p.fallbackAxisSideDirection,y=m===void 0?"none":m,_=p.flipAlignment,S=_===void 0?true:_,E=__rest(p,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((e=o.arrow)!=null&&e.alignmentOffset){return[2,{}]}O=x(i);M=k(s);j=x(s)===s;return[4,u.isRTL==null?void 0:u.isRTL(f.floating)];case 1:L=X.sent();H=h||(j||!S?[C(s)]:T(s));D=y!=="none";if(!h&&D){H.push.apply(H,R(s,S,y,L))}z=__spreadArray([s],H,true);return[4,u.detectOverflow(t,E)];case 2:F=X.sent();W=[];B=((n=o.flip)==null?void 0:n.overflows)||[];if(v){W.push(F[O])}if(d){P=A(i,a,L);W.push(F[P[0]],F[P[1]])}B=__spreadArray(__spreadArray([],B,true),[{placement:i,overflows:W}],false);if(!W.every((function(r){return r<=0}))){N=(((I=o.flip)==null?void 0:I.index)||0)+1;$=z[N];if($){G=d==="alignment"?M!==k($):false;if(!G||B.every((function(r){return k(r.placement)===M?r.overflows[0]>0:true}))){return[2,{data:{index:N,overflows:B},reset:{placement:$}}]}}K=(q=B.filter((function(r){return r.overflows[0]<=0})).sort((function(r,t){return r.overflows[1]-t.overflows[1]}))[0])==null?void 0:q.placement;if(!K){switch(b){case"bestFit":{Q=(V=B.filter((function(r){if(D){var t=k(r.placement);return t===M||t==="y"}return true})).map((function(r){return[r.placement,r.overflows.filter((function(r){return r>0})).reduce((function(r,t){return r+t}),0)]})).sort((function(r,t){return r[1]-t[1]}))[0])==null?void 0:V[0];if(Q){K=Q}break}case"initialPlacement":K=s;break}}if(i!==K){return[2,{reset:{placement:K}}]}}return[2,{}]}}))}))}}};function $(r){var t=c.apply(void 0,r.map((function(r){return r.left})));var e=c.apply(void 0,r.map((function(r){return r.top})));var n=v.apply(void 0,r.map((function(r){return r.right})));var i=v.apply(void 0,r.map((function(r){return r.bottom})));return{x:t,y:e,width:n-t,height:i-e}}function G(r){var t=r.slice().sort((function(r,t){return r.y-t.y}));var e=[];var n=null;for(var i=0;i<t.length;i++){var o=t[i];if(!n||o.y-n.y>n.height/2){e.push([o])}else{e[e.length-1].push(o)}n=o}return e.map((function(r){return F($(r))}))}var K=function(r){if(r===void 0){r={}}return{name:"inline",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){function e(){if(m.length===2&&m[0].left>m[1].right&&l!=null&&d!=null){return m.find((function(r){return l>r.left-_.left&&l<r.right+_.right&&d>r.top-_.top&&d<r.bottom+_.bottom}))||y}if(m.length>=2){if(k(n)==="y"){var r=m[0];var t=m[m.length-1];var e=x(n)==="top";var i=r.top;var o=t.bottom;var a=e?r.left:t.left;var s=e?r.right:t.right;var u=s-a;var f=o-i;return{top:i,bottom:o,left:a,right:s,width:u,height:f,x:a,y:i}}var p=x(n)==="left";var h=v.apply(void 0,m.map((function(r){return r.right})));var g=c.apply(void 0,m.map((function(r){return r.left})));var b=m.filter((function(r){return p?r.left===g:r.right===h}));var w=b[0].top;var S=b[b.length-1].bottom;var A=g;var T=h;var E=T-A;var O=S-w;return{top:w,bottom:S,left:A,right:T,width:E,height:O,x:A,y:w}}return y}var n,i,o,a,s,u,f,p,l,d,h,g,b,m,y,_,S;return __generator(this,(function(c){switch(c.label){case 0:n=t.placement,i=t.elements,o=t.rects,a=t.platform,s=t.strategy;u=w(r,t),f=u.padding,p=f===void 0?2:f,l=u.x,d=u.y;b=(g=Array).from;return[4,a.getClientRects==null?void 0:a.getClientRects(i.reference)];case 1:h=b.apply(g,[c.sent()||[]]);m=G(h);y=F($(h));_=z(p);return[4,a.getElementRects({reference:{getBoundingClientRect:e},floating:i.floating,strategy:s})];case 2:S=c.sent();if(o.reference.x!==S.reference.x||o.reference.y!==S.reference.y||o.reference.width!==S.reference.width||o.reference.height!==S.reference.height){return[2,{reset:{rects:S}}]}return[2,{}]}}))}))}}};var V=new Set(["left","top"]);function Q(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,f,p,c,v,l,d,h;return __generator(this,(function(g){switch(g.label){case 0:e=r.placement,n=r.platform,i=r.elements;return[4,n.isRTL==null?void 0:n.isRTL(i.floating)];case 1:o=g.sent();a=x(e);s=m(e);u=k(e)==="y";f=V.has(a)?-1:1;p=o&&u?-1:1;c=w(t,r);v=typeof c==="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis},l=v.mainAxis,d=v.crossAxis,h=v.alignmentAxis;if(s&&typeof h==="number"){d=s==="end"?h*-1:h}return[2,u?{x:d*p,y:l*f}:{x:l*f,y:d*p}]}}))}))}var X=function(r){if(r===void 0){r=0}return{name:"offset",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u;return __generator(this,(function(f){switch(f.label){case 0:i=t.x,o=t.y,a=t.placement,s=t.middlewareData;return[4,Q(t,r)];case 1:u=f.sent();if(a===((e=s.offset)==null?void 0:e.placement)&&(n=s.arrow)!=null&&n.alignmentOffset){return[2,{}]}return[2,{x:i+u.x,y:o+u.y,data:__assign(__assign({},u),{placement:a})}]}}))}))}}};var Y=function(r){if(r===void 0){r={}}return{name:"shift",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,f,p,c,v,l,d,h,g,m,_,S,A,T,E,O,A,T,M,j,L;var H,R;return __generator(this,(function(C){switch(C.label){case 0:e=t.x,n=t.y,i=t.placement,o=t.platform;a=w(r,t),s=a.mainAxis,u=s===void 0?true:s,f=a.crossAxis,p=f===void 0?false:f,c=a.limiter,v=c===void 0?{fn:function(r){var t=r.x,e=r.y;return{x:t,y:e}}}:c,l=__rest(a,["mainAxis","crossAxis","limiter"]);d={x:e,y:n};return[4,o.detectOverflow(t,l)];case 1:h=C.sent();g=k(x(i));m=y(g);_=d[m];S=d[g];if(u){A=m==="y"?"top":"left";T=m==="y"?"bottom":"right";E=_+h[A];O=_-h[T];_=b(E,_,O)}if(p){A=g==="y"?"top":"left";T=g==="y"?"bottom":"right";M=S+h[A];j=S-h[T];S=b(M,S,j)}L=v.fn(__assign(__assign({},t),(H={},H[m]=_,H[g]=S,H)));return[2,__assign(__assign({},L),{data:{x:L.x-e,y:L.y-n,enabled:(R={},R[m]=u,R[g]=p,R)}})]}}))}))}}};var Z=function(r){if(r===void 0){r={}}return{options:r,fn:function(t){var e;var n=t.x,i=t.y,o=t.placement,a=t.rects,s=t.middlewareData;var u=w(r,t),f=u.offset,p=f===void 0?0:f,c=u.mainAxis,v=c===void 0?true:c,l=u.crossAxis,d=l===void 0?true:l;var h={x:n,y:i};var g=k(o);var b=y(g);var m=h[b];var _=h[g];var S=w(p,t);var A=typeof S==="number"?{mainAxis:S,crossAxis:0}:__assign({mainAxis:0,crossAxis:0},S);if(v){var T=b==="y"?"height":"width";var E=a.reference[b]-a.floating[T]+A.mainAxis;var O=a.reference[b]+a.reference[T]-A.mainAxis;if(m<E){m=E}else if(m>O){m=O}}if(d){var M,j;var T=b==="y"?"width":"height";var L=V.has(x(o));var E=a.reference[g]-a.floating[T]+(L?((M=s.offset)==null?void 0:M[g])||0:0)+(L?0:A.crossAxis);var O=a.reference[g]+a.reference[T]+(L?0:((j=s.offset)==null?void 0:j[g])||0)-(L?A.crossAxis:0);if(_<E){_=E}else if(_>O){_=O}}return e={},e[b]=m,e[g]=_,e}}};var J=function(r){if(r===void 0){r={}}return{name:"size",options:r,fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,o,a,s,u,f,p,l,d,h,g,b,y,_,S,A,T,E,O,M,j,L,H,R,C,D,z,F,W,B;return __generator(this,(function(P){switch(P.label){case 0:i=t.placement,o=t.rects,a=t.platform,s=t.elements;u=w(r,t),f=u.apply,p=f===void 0?function(){}:f,l=__rest(u,["apply"]);return[4,a.detectOverflow(t,l)];case 1:d=P.sent();h=x(i);g=m(i);b=k(i)==="y";y=o.floating,_=y.width,S=y.height;if(!(h==="top"||h==="bottom"))return[3,3];A=h;E=g;return[4,a.isRTL==null?void 0:a.isRTL(s.floating)];case 2:T=E===(P.sent()?"start":"end")?"left":"right";return[3,4];case 3:T=h;A=g==="end"?"top":"bottom";P.label=4;case 4:O=S-d.top-d.bottom;M=_-d.left-d.right;j=c(S-d[A],O);L=c(_-d[T],M);H=!t.middlewareData.shift;R=j;C=L;if((e=t.middlewareData.shift)!=null&&e.enabled.x){C=M}if((n=t.middlewareData.shift)!=null&&n.enabled.y){R=O}if(H&&!g){D=v(d.left,0);z=v(d.right,0);F=v(d.top,0);W=v(d.bottom,0);if(b){C=_-2*(D!==0||z!==0?D+z:v(d.left,d.right))}else{R=S-2*(F!==0||W!==0?F+W:v(d.top,d.bottom))}}return[4,p(__assign(__assign({},t),{availableWidth:C,availableHeight:R}))];case 5:P.sent();return[4,a.getDimensions(s.floating)];case 6:B=P.sent();if(_!==B.width||S!==B.height){return[2,{reset:{rects:true}}]}return[2,{}]}}))}))}}};function U(){return typeof window!=="undefined"}function rr(r){if(nr(r)){return(r.nodeName||"").toLowerCase()}return"#document"}function tr(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function er(r){var t;return(t=(nr(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function nr(r){if(!U()){return false}return r instanceof Node||r instanceof tr(r).Node}function ir(r){if(!U()){return false}return r instanceof Element||r instanceof tr(r).Element}function or(r){if(!U()){return false}return r instanceof HTMLElement||r instanceof tr(r).HTMLElement}function ar(r){if(!U()||typeof ShadowRoot==="undefined"){return false}return r instanceof ShadowRoot||r instanceof tr(r).ShadowRoot}function sr(r){var t=wr(r),e=t.overflow,n=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&o!=="inline"&&o!=="contents"}function ur(r){return/^(table|td|th)$/.test(rr(r))}function fr(r){try{if(r.matches(":popover-open")){return true}}catch(r){}try{return r.matches(":modal")}catch(r){return false}}var pr=/transform|translate|scale|rotate|perspective|filter/;var cr=/paint|layout|strict|content/;var vr=function(r){return!!r&&r!=="none"};var lr;function dr(r){var t=ir(r)?wr(r):r;return vr(t.transform)||vr(t.translate)||vr(t.scale)||vr(t.rotate)||vr(t.perspective)||!gr()&&(vr(t.backdropFilter)||vr(t.filter))||pr.test(t.willChange||"")||cr.test(t.contain||"")}function hr(r){var t=mr(r);while(or(t)&&!br(t)){if(dr(t)){return t}else if(fr(t)){return null}t=mr(t)}return null}function gr(){if(lr==null){lr=typeof CSS!=="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}return lr}function br(r){return/^(html|body|#document)$/.test(rr(r))}function wr(r){return tr(r).getComputedStyle(r)}function xr(r){if(ir(r)){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}return{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function mr(r){if(rr(r)==="html"){return r}var t=r.assignedSlot||r.parentNode||ar(r)&&r.host||er(r);return ar(t)?t.host:t}function yr(r){var t=mr(r);if(br(t)){return r.ownerDocument?r.ownerDocument.body:r.body}if(or(t)&&sr(t)){return t}return yr(t)}function _r(r,t,e){var n;if(t===void 0){t=[]}if(e===void 0){e=true}var i=yr(r);var o=i===((n=r.ownerDocument)==null?void 0:n.body);var a=tr(i);if(o){var s=kr(a);return t.concat(a,a.visualViewport||[],sr(i)?i:[],s&&e?_r(s):[])}else{return t.concat(i,_r(i,[],e))}}function kr(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Sr(r){var t=wr(r);var e=parseFloat(t.width)||0;var n=parseFloat(t.height)||0;var i=or(r);var o=i?r.offsetWidth:e;var a=i?r.offsetHeight:n;var s=l(e)!==o||l(n)!==a;if(s){e=o;n=a}return{width:e,height:n,$:s}}function Ar(r){return!ir(r)?r.contextElement:r}function Tr(r){var t=Ar(r);if(!or(t)){return h(1)}var e=t.getBoundingClientRect();var n=Sr(t),i=n.width,o=n.height,a=n.$;var s=(a?l(e.width):e.width)/i;var u=(a?l(e.height):e.height)/o;if(!s||!Number.isFinite(s)){s=1}if(!u||!Number.isFinite(u)){u=1}return{x:s,y:u}}var Er=h(0);function Or(r){var t=tr(r);if(!gr()||!t.visualViewport){return Er}return{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mr(r,t,e){if(t===void 0){t=false}if(!e||t&&e!==tr(r)){return false}return t}function jr(r,t,e,n){if(t===void 0){t=false}if(e===void 0){e=false}var i=r.getBoundingClientRect();var o=Ar(r);var a=h(1);if(t){if(n){if(ir(n)){a=Tr(n)}}else{a=Tr(r)}}var s=Mr(o,e,n)?Or(o):h(0);var u=(i.left+s.x)/a.x;var f=(i.top+s.y)/a.y;var p=i.width/a.x;var c=i.height/a.y;if(o){var v=tr(o);var l=n&&ir(n)?tr(n):n;var d=v;var g=kr(d);while(g&&n&&l!==d){var b=Tr(g);var w=g.getBoundingClientRect();var x=wr(g);var m=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x;var y=w.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x;f*=b.y;p*=b.x;c*=b.y;u+=m;f+=y;d=tr(g);g=kr(d)}}return F({width:p,height:c,x:u,y:f})}function Lr(r,t){var e=xr(r).scrollLeft;if(!t){return jr(er(r)).left+e}return t.left+e}function Hr(r,t){var e=r.getBoundingClientRect();var n=e.left+t.scrollLeft-Lr(r,e);var i=e.top+t.scrollTop;return{x:n,y:i}}function Rr(r){var t=r.elements,e=r.rect,n=r.offsetParent,i=r.strategy;var o=i==="fixed";var a=er(n);var s=t?fr(t.floating):false;if(n===a||s&&o){return e}var u={scrollLeft:0,scrollTop:0};var f=h(1);var p=h(0);var c=or(n);if(c||!c&&!o){if(rr(n)!=="body"||sr(a)){u=xr(n)}if(c){var v=jr(n);f=Tr(n);p.x=v.x+n.clientLeft;p.y=v.y+n.clientTop}}var l=a&&!c&&!o?Hr(a,u):h(0);return{width:e.width*f.x,height:e.height*f.y,x:e.x*f.x-u.scrollLeft*f.x+p.x+l.x,y:e.y*f.y-u.scrollTop*f.y+p.y+l.y}}function Cr(r){return Array.from(r.getClientRects())}function Dr(r){var t=er(r);var e=xr(r);var n=r.ownerDocument.body;var i=v(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth);var o=v(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);var a=-e.scrollLeft+Lr(r);var s=-e.scrollTop;if(wr(n).direction==="rtl"){a+=v(t.clientWidth,n.clientWidth)-i}return{width:i,height:o,x:a,y:s}}var zr=25;function Fr(r,t){var e=tr(r);var n=er(r);var i=e.visualViewport;var o=n.clientWidth;var a=n.clientHeight;var s=0;var u=0;if(i){o=i.width;a=i.height;var f=gr();if(!f||f&&t==="fixed"){s=i.offsetLeft;u=i.offsetTop}}var p=Lr(n);if(p<=0){var c=n.ownerDocument;var v=c.body;var l=getComputedStyle(v);var d=c.compatMode==="CSS1Compat"?parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0:0;var h=Math.abs(n.clientWidth-v.clientWidth-d);if(h<=zr){o-=h}}else if(p<=zr){o+=p}return{width:o,height:a,x:s,y:u}}function Wr(r,t){var e=jr(r,true,t==="fixed");var n=e.top+r.clientTop;var i=e.left+r.clientLeft;var o=or(r)?Tr(r):h(1);var a=r.clientWidth*o.x;var s=r.clientHeight*o.y;var u=i*o.x;var f=n*o.y;return{width:a,height:s,x:u,y:f}}function Br(r,t,e){var n;if(t==="viewport"){n=Fr(r,e)}else if(t==="document"){n=Dr(er(r))}else if(ir(t)){n=Wr(t,e)}else{var i=Or(r);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return F(n)}function Pr(r,t){var e=mr(r);if(e===t||!ir(e)||br(e)){return false}return wr(e).position==="fixed"||Pr(e,t)}function Ir(r,t){var e=t.get(r);if(e){return e}var n=_r(r,[],false).filter((function(r){return ir(r)&&rr(r)!=="body"}));var i=null;var o=wr(r).position==="fixed";var a=o?mr(r):r;while(ir(a)&&!br(a)){var s=wr(a);var u=dr(a);if(!u&&s.position==="fixed"){i=null}var f=o?!u&&!i:!u&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||sr(a)&&!u&&Pr(r,a);if(f){n=n.filter((function(r){return r!==a}))}else{i=s}a=mr(a)}t.set(r,n);return n}function qr(r){var t=r.element,e=r.boundary,n=r.rootBoundary,i=r.strategy;var o=e==="clippingAncestors"?fr(t)?[]:Ir(t,this._c):[].concat(e);var a=__spreadArray(__spreadArray([],o,true),[n],false);var s=Br(t,a[0],i);var u=s.top;var f=s.right;var p=s.bottom;var l=s.left;for(var d=1;d<a.length;d++){var h=Br(t,a[d],i);u=v(h.top,u);f=c(h.right,f);p=c(h.bottom,p);l=v(h.left,l)}return{width:f-l,height:p-u,x:l,y:u}}function Nr(r){var t=Sr(r),e=t.width,n=t.height;return{width:e,height:n}}function $r(r,t,e){var n=or(t);var i=er(t);var o=e==="fixed";var a=jr(r,true,o,t);var s={scrollLeft:0,scrollTop:0};var u=h(0);function f(){u.x=Lr(i)}if(n||!n&&!o){if(rr(t)!=="body"||sr(i)){s=xr(t)}if(n){var p=jr(t,true,o,t);u.x=p.x+t.clientLeft;u.y=p.y+t.clientTop}else if(i){f()}}if(o&&!n&&i){f()}var c=i&&!n&&!o?Hr(i,s):h(0);var v=a.left+s.scrollLeft-u.x-c.x;var l=a.top+s.scrollTop-u.y-c.y;return{x:v,y:l,width:a.width,height:a.height}}function Gr(r){return wr(r).position==="static"}function Kr(r,t){if(!or(r)||wr(r).position==="fixed"){return null}if(t){return t(r)}var e=r.offsetParent;if(er(r)===e){e=e.ownerDocument.body}return e}function Vr(r,t){var e=tr(r);if(fr(r)){return e}if(!or(r)){var n=mr(r);while(n&&!br(n)){if(ir(n)&&!Gr(n)){return n}n=mr(n)}return e}var i=Kr(r,t);while(i&&ur(i)&&Gr(i)){i=Kr(i,t)}if(i&&br(i)&&Gr(i)&&!dr(i)){return e}return i||hr(r)||e}var Qr=function(r){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,o;var a;return __generator(this,(function(s){switch(s.label){case 0:t=this.getOffsetParent||Vr;e=this.getDimensions;return[4,e(r.floating)];case 1:n=s.sent();a={};i=$r;o=[r.reference];return[4,t(r.floating)];case 2:return[2,(a.reference=i.apply(void 0,o.concat([s.sent(),r.strategy])),a.floating={x:0,y:0,width:n.width,height:n.height},a)]}}))}))};function Xr(r){return wr(r).direction==="rtl"}var Yr={convertOffsetParentRelativeRectToViewportRelativeRect:Rr,getDocumentElement:er,getClippingRect:qr,getOffsetParent:Vr,getElementRects:Qr,getClientRects:Cr,getDimensions:Nr,getScale:Tr,isElement:ir,isRTL:Xr};function Zr(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function Jr(r,t){var e=null;var n;var i=er(r);function o(){var r;clearTimeout(n);(r=e)==null||r.disconnect();e=null}function a(s,u){if(s===void 0){s=false}if(u===void 0){u=1}o();var f=r.getBoundingClientRect();var p=f.left,l=f.top,h=f.width,g=f.height;if(!s){t()}if(!h||!g){return}var b=d(l);var w=d(i.clientWidth-(p+h));var x=d(i.clientHeight-(l+g));var m=d(p);var y=-b+"px "+-w+"px "+-x+"px "+-m+"px";var _={rootMargin:y,threshold:v(0,c(1,u))||1};var k=true;function S(t){var e=t[0].intersectionRatio;if(e!==u){if(!k){return a()}if(!e){n=setTimeout((function(){a(false,1e-7)}),1e3)}else{a(false,e)}}if(e===1&&!Zr(f,r.getBoundingClientRect())){a()}k=false}try{e=new IntersectionObserver(S,__assign(__assign({},_),{root:i.ownerDocument}))}catch(r){e=new IntersectionObserver(S,_)}e.observe(r)}a(true);return o}function Ur(r,t,e,n){if(n===void 0){n={}}var i=n.ancestorScroll,o=i===void 0?true:i,a=n.ancestorResize,s=a===void 0?true:a,u=n.elementResize,f=u===void 0?typeof ResizeObserver==="function":u,p=n.layoutShift,c=p===void 0?typeof IntersectionObserver==="function":p,v=n.animationFrame,l=v===void 0?false:v;var d=Ar(r);var h=o||s?__spreadArray(__spreadArray([],d?_r(d):[],true),t?_r(t):[],true):[];h.forEach((function(r){o&&r.addEventListener("scroll",e,{passive:true});s&&r.addEventListener("resize",e)}));var g=d&&c?Jr(d,e):null;var b=-1;var w=null;if(f){w=new ResizeObserver((function(r){var n=r[0];if(n&&n.target===d&&w&&t){w.unobserve(t);cancelAnimationFrame(b);b=requestAnimationFrame((function(){var r;(r=w)==null||r.observe(t)}))}e()}));if(d&&!l){w.observe(d)}if(t){w.observe(t)}}var x;var m=l?jr(r):null;if(l){y()}function y(){var t=jr(r);if(m&&!Zr(m,t)){e()}m=t;x=requestAnimationFrame(y)}e();return function(){var r;h.forEach((function(r){o&&r.removeEventListener("scroll",e);s&&r.removeEventListener("resize",e)}));g==null||g();(r=w)==null||r.disconnect();w=null;if(l){cancelAnimationFrame(x)}}}var rt=X;var tt=Y;var et=N;var nt=J;var it=q;var ot=K;var at=Z;var st=function(r,t,e){var n=new Map;var i=__assign({platform:Yr},e);var o=__assign(__assign({},i.platform),{_c:n});return I(r,t,__assign(__assign({},i),{platform:o}))};var ut=250;var ft="ease-out";function pt(r){if(!r)return;return r.animate([{transform:"scale(0.9)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:ut,easing:ft,fill:"forwards"})}var ct=function(r){__extends(t,r);function t(t,e){if(e===void 0){e={}}var n=this;var i=e.oldState,o=i===void 0?"":i,a=e.newState,s=a===void 0?"":a,u=__rest(e,["oldState","newState"]);n=r.call(this,t,u)||this;n.oldState=String(o||"");n.newState=String(s||"");return n}return t}(Event);var vt=new WeakMap;function lt(r,t,e){vt.set(r,setTimeout((function(){if(!vt.has(r))return;r.dispatchEvent(new ct("toggle",{cancelable:false,oldState:t,newState:e}))}),0))}var dt=globalThis.ShadowRoot||function(){};var ht=globalThis.HTMLDialogElement||function(){};var gt=new WeakMap;var bt=new WeakMap;var wt=new WeakMap;var xt=new WeakMap;function mt(r){return xt.get(r)||"hidden"}var yt=new WeakMap;function _t(r){return __spreadArray([],r,true).pop()}function kt(r){var t=r.popoverTargetElement;if(!(t instanceof HTMLElement)){return}var e=mt(t);if(r.popoverTargetAction==="show"&&e==="showing"){return}if(r.popoverTargetAction==="hide"&&e==="hidden")return;if(e==="showing"){Wt(t,true,true)}else if(St(t,false)){yt.set(t,r);Ft(t)}}function St(r,t){if(r.popover!=="auto"&&r.popover!=="manual"&&r.popover!=="hint"){return false}if(!r.isConnected)return false;if(t&&mt(r)!=="showing"){return false}if(!t&&mt(r)!=="hidden"){return false}if(r instanceof ht&&r.hasAttribute("open")){return false}if(document.fullscreenElement===r)return false;return true}function At(r){if(!r)return 0;var t=bt.get(document)||new Set;var e=wt.get(document)||new Set;if(e.has(r)){return __spreadArray([],e,true).indexOf(r)+t.size+1}if(t.has(r)){return __spreadArray([],t,true).indexOf(r)+1}return 0}function Tt(r){var t=jt(r);var e=Lt(r);if(At(t)>At(e)){return t}return e}function Et(r){var t;var e=wt.get(r)||new Set;var n=bt.get(r)||new Set;var i=e.size>0?e:n.size>0?n:null;if(i){t=_t(i);if(!t.isConnected){i.delete(t);return Et(r)}return t}return null}function Ot(r){for(var t=0,e=r||[];t<e.length;t++){var n=e[t];if(!n.isConnected){r.delete(n)}else{return n}}return null}function Mt(r){if(typeof r.getRootNode==="function"){return r.getRootNode()}if(r.parentNode)return Mt(r.parentNode);return r}function jt(r){while(r){if(r instanceof HTMLElement&&r.popover==="auto"&&xt.get(r)==="showing"){return r}r=r instanceof Element&&r.assignedSlot||r.parentElement||Mt(r);if(r instanceof dt)r=r.host;if(r instanceof Document)return}}function Lt(r){while(r){var t=r.popoverTargetElement;if(t instanceof HTMLElement)return t;r=r.parentElement||Mt(r);if(r instanceof dt)r=r.host;if(r instanceof Document)return}}function Ht(r,t){var e=new Map;var n=0;for(var i=0,o=t||[];i<o.length;i++){var a=o[i];e.set(a,n);n+=1}e.set(r,n);n+=1;var s=null;function u(t){if(!t)return;var n=false;var i=null;var o=null;while(!n){i=jt(t)||null;if(i===null)return;if(!e.has(i))return;if(r.popover==="hint"||i.popover==="auto"){n=true}if(!n){t=i.parentElement}}o=e.get(i);if(s===null||e.get(s)<o){s=i}}u(r.parentElement||Mt(r));return s}function Rt(r){if(r.hidden||r instanceof dt)return false;if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLSelectElement||r instanceof HTMLTextAreaElement||r instanceof HTMLOptGroupElement||r instanceof HTMLOptionElement||r instanceof HTMLFieldSetElement){if(r.disabled)return false}if(r instanceof HTMLInputElement&&r.type==="hidden"){return false}if(r instanceof HTMLAnchorElement&&r.href===""){return false}return typeof r.tabIndex==="number"&&r.tabIndex!==-1}function Ct(r){if(r.shadowRoot&&r.shadowRoot.delegatesFocus!==true){return null}var t=r;if(t.shadowRoot){t=t.shadowRoot}var e=t.querySelector("[autofocus]");if(e){return e}else{var n=t.querySelectorAll("slot");for(var i=0,o=n;i<o.length;i++){var a=o[i];var s=a.assignedElements({flatten:true});for(var u=0,f=s;u<f.length;u++){var p=f[u];if(p.hasAttribute("autofocus")){return p}else{e=p.querySelector("[autofocus]");if(e){return e}}}}}var c=r.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);var v=c.currentNode;while(v){if(Rt(v)){return v}v=c.nextNode()}}function Dt(r){var t;(t=Ct(r))===null||t===void 0?void 0:t.focus()}var zt=new WeakMap;function Ft(r){if(!St(r,false)){return}var t=r.ownerDocument;if(!r.dispatchEvent(new ct("beforetoggle",{cancelable:true,oldState:"closed",newState:"open"}))){return}if(!St(r,false)){return}var e=false;var n=r.popover;var i=null;var o=Ht(r,bt.get(t)||new Set);var a=Ht(r,wt.get(t)||new Set);if(n==="auto"){Pt(wt.get(t)||new Set,e,true);var s=o||t;qt(s,e,true);i="auto"}if(n==="hint"){if(a){qt(a,e,true);i="hint"}else{Pt(wt.get(t)||new Set,e,true);if(o){qt(o,e,true);i="auto"}else{i="hint"}}}if(n==="auto"||n==="hint"){if(n!==r.popover||!St(r,false)){return}if(!Et(t)){e=true}if(i==="auto"){if(!bt.has(t)){bt.set(t,new Set)}bt.get(t).add(r)}else if(i==="hint"){if(!wt.has(t)){wt.set(t,new Set)}wt.get(t).add(r)}}zt.delete(r);var u=t.activeElement;r.classList.add(":popover-open");xt.set(r,"showing");if(!gt.has(t)){gt.set(t,new Set)}gt.get(t).add(r);Kt(yt.get(r),true);Dt(r);if(e&&u&&r.popover==="auto"){zt.set(r,u)}lt(r,"closed","open")}function Wt(r,t,e){var n,i;if(t===void 0){t=false}if(e===void 0){e=false}if(!St(r,true)){return}var o=r.ownerDocument;if(["auto","hint"].includes(r.popover)){qt(r,t,e);if(!St(r,true)){return}}var a=bt.get(o)||new Set;var s=a.has(r)&&_t(a)===r;Kt(yt.get(r),false);yt.delete(r);if(e){r.dispatchEvent(new ct("beforetoggle",{oldState:"open",newState:"closed"}));if(s&&_t(a)!==r){qt(r,t,e)}if(!St(r,true)){return}}(n=gt.get(o))===null||n===void 0?void 0:n.delete(r);a.delete(r);(i=wt.get(o))===null||i===void 0?void 0:i.delete(r);r.classList.remove(":popover-open");xt.set(r,"hidden");if(e){lt(r,"open","closed")}var u=zt.get(r);if(u){zt.delete(r);if(t){u.focus()}}}function Bt(r,t,e){if(t===void 0){t=false}if(e===void 0){e=false}var n=Et(r);while(n){Wt(n,t,e);n=Et(r)}}function Pt(r,t,e){if(t===void 0){t=false}if(e===void 0){e=false}var n=Ot(r);while(n){Wt(n,t,e);n=Ot(r)}}function It(r,t,e,n){var i=false;var o=false;while(i||!o){o=true;var a=null;var s=false;for(var u=0,f=t;u<f.length;u++){var p=f[u];if(p===r){s=true}else if(s){a=p;break}}if(!a)return;while(mt(a)==="showing"&&t.size){Wt(_t(t),e,n)}if(t.has(r)&&_t(t)!==r){i=true}if(i){n=false}}}function qt(r,t,e){var n,i;var o=r.ownerDocument||r;if(r instanceof Document){return Bt(o,t,e)}if((n=wt.get(o))===null||n===void 0?void 0:n.has(r)){It(r,wt.get(o),t,e);return}Pt(wt.get(o)||new Set,t,e);if(!((i=bt.get(o))===null||i===void 0?void 0:i.has(r))){return}It(r,bt.get(o),t,e)}var Nt=new WeakMap;function $t(r){if(!r.isTrusted)return;var t=r.composedPath()[0];if(!t)return;var e=t.ownerDocument;var n=Et(e);if(!n)return;var i=Tt(t);if(i&&r.type==="pointerdown"){Nt.set(e,i)}else if(r.type==="pointerup"){var o=Nt.get(e)===i;Nt.delete(e);if(o){qt(i||e,false,true)}}}var Gt=new WeakMap;function Kt(r,t){if(t===void 0){t=false}if(!r)return;if(!Gt.has(r)){Gt.set(r,r.getAttribute("aria-expanded"))}var e=r.popoverTargetElement;if(e instanceof HTMLElement&&e.popover==="auto"){r.setAttribute("aria-expanded",String(t))}else{var n=Gt.get(r);if(!n){r.removeAttribute("aria-expanded")}else{r.setAttribute("aria-expanded",n)}}}var Vt=globalThis.ShadowRoot||function(){};function Qt(){return typeof HTMLElement!=="undefined"&&typeof HTMLElement.prototype==="object"&&"popover"in HTMLElement.prototype}function Xt(r,t,e){var n=r[t];Object.defineProperty(r,t,{value:function(r){return n.call(this,e(r))}})}var Yt=/(^|[^\\]):popover-open\b/g;function Zt(){return typeof globalThis.CSSLayerBlockRule==="function"}function Jt(){var r=Zt();return"\n".concat(r?"@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").concat(r?"}":"","\n")}var Ut=null;function re(r){var t=Jt();if(Ut===null){try{Ut=new CSSStyleSheet;Ut.replaceSync(t)}catch(r){Ut=false}}if(Ut===false){var e=document.createElement("style");e.textContent=t;if(r instanceof Document){r.head.prepend(e)}else{r.prepend(e)}}else{r.adoptedStyleSheets=__spreadArray([Ut],r.adoptedStyleSheets,true)}}function te(){if(typeof window==="undefined")return;window.ToggleEvent=window.ToggleEvent||ct;function r(r){if(r===null||r===void 0?void 0:r.includes(":popover-open")){r=r.replace(Yt,"$1.\\:popover-open")}return r}Xt(Document.prototype,"querySelector",r);Xt(Document.prototype,"querySelectorAll",r);Xt(Element.prototype,"querySelector",r);Xt(Element.prototype,"querySelectorAll",r);Xt(Element.prototype,"matches",r);Xt(Element.prototype,"closest",r);Xt(DocumentFragment.prototype,"querySelectorAll",r);Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:true,configurable:true,get:function(){if(!this.hasAttribute("popover"))return null;var r=(this.getAttribute("popover")||"").toLowerCase();if(r===""||r=="auto")return"auto";if(r=="hint")return"hint";return"manual"},set:function(r){if(r===null){this.removeAttribute("popover")}else{this.setAttribute("popover",r)}}},showPopover:{enumerable:true,configurable:true,value:function(r){if(r===void 0){r={}}Ft(this)}},hidePopover:{enumerable:true,configurable:true,value:function(){Wt(this,true,true)}},togglePopover:{enumerable:true,configurable:true,value:function(r){if(r===void 0){r={}}if(typeof r==="boolean"){r={force:r}}if(xt.get(this)==="showing"&&r.force===void 0||r.force===false){Wt(this,true,true)}else if(r.force===void 0||r.force===true){Ft(this)}return xt.get(this)==="showing"}}});var t=Element.prototype.attachShadow;if(t){Object.defineProperties(Element.prototype,{attachShadow:{enumerable:true,configurable:true,writable:true,value:function(r){var e=t.call(this,r);re(e);return e}}})}var e=HTMLElement.prototype.attachInternals;if(e){Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:true,configurable:true,writable:true,value:function(){var r=e.call(this);if(r.shadowRoot){re(r.shadowRoot)}return r}}})}var n=new WeakMap;function i(r){Object.defineProperties(r.prototype,{popoverTargetElement:{enumerable:true,configurable:true,set:function(r){if(r===null){this.removeAttribute("popovertarget");n.delete(this)}else if(!(r instanceof Element)){throw new TypeError("popoverTargetElement must be an element or null")}else{this.setAttribute("popovertarget","");n.set(this,r)}},get:function(){if(this.localName!=="button"&&this.localName!=="input"){return null}if(this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"){return null}if(this.disabled){return null}if(this.form&&this.type==="submit"){return null}var r=n.get(this);if(r&&r.isConnected){return r}else if(r&&!r.isConnected){n.delete(this);return null}var t=Mt(this);var e=this.getAttribute("popovertarget");if((t instanceof Document||t instanceof Vt)&&e){return t.getElementById(e)||null}return null}},popoverTargetAction:{enumerable:true,configurable:true,get:function(){var r=(this.getAttribute("popovertargetaction")||"").toLowerCase();if(r==="show"||r==="hide")return r;return"toggle"},set:function(r){this.setAttribute("popovertargetaction",r)}}})}i(HTMLButtonElement);i(HTMLInputElement);var o=function(r){var t=r.composedPath();var e=t[0];if(!(e instanceof Element)||(e===null||e===void 0?void 0:e.shadowRoot)){return}var n=Mt(e);if(!(n instanceof Vt||n instanceof Document)){return}var i=t.find((function(r){var t;return(t=r.matches)===null||t===void 0?void 0:t.call(r,"[popovertargetaction],[popovertarget]")}));if(i){kt(i);r.preventDefault();return}};var a=function(r){var t=r.key;var e=r.target;if(!r.defaultPrevented&&e&&(t==="Escape"||t==="Esc")){qt(e.ownerDocument,true,true)}};var s=function(r){r.addEventListener("click",o);r.addEventListener("keydown",a);r.addEventListener("pointerdown",$t);r.addEventListener("pointerup",$t)};s(document);re(document)}var ee=function(){return'@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))}'};var ne=undefined&&undefined.__decorate||function(r,t,e,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(r,t,e,n);else for(var s=r.length-1;s>=0;s--)if(a=r[s])o=(i<3?a(o):i>3?a(t,e,o):a(t,e))||o;return i>3&&o&&Object.defineProperty(t,e,o),o};var ie={"pop-in":pt};var oe=r("post_popovercontainer",function(){function r(r){t(this,r);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=true;this.placement="top";this.edgeGap=8;this.arrow=false;this.animation="pop-in";this.currentAnimation=null;this.boundMouseTrackingHandler=this.mouseTrackingHandler.bind(this)}r.prototype.mouseTrackingHandler=function(r){this.host.style.setProperty("--post-safe-space-cursor-x","".concat(r.clientX,"px"));this.host.style.setProperty("--post-safe-space-cursor-y","".concat(r.clientY,"px"))};r.prototype.connectedCallback=function(){if(!Qt()){te()}};r.prototype.componentDidLoad=function(){this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))};r.prototype.disconnectedCallback=function(){if(typeof this.clearAutoUpdate==="function"){this.clearAutoUpdate()}this.host.removeEventListener("beforetoggle",this.handleToggle.bind(this))};r.prototype.show=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.toggleTimeoutId||!r)return[2];this.eventTarget=r;this.calculatePosition();this.host.showPopover();return[2]}))}))};r.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(!this.toggleTimeoutId){this.eventTarget=null;this.host.hidePopover();this.postHide.emit()}return[2]}))}))};r.prototype.toggle=function(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(i){e=this.host.matches(":where(:popover-open, .popover-open)");n=t===true||t===undefined&&!e;if(n&&!r)return[2,e];this.eventTarget=r;if(!this.toggleTimeoutId){this.calculatePosition();this.host.togglePopover(t);this.toggleTimeoutId=null}return[2,this.host.matches(":where(:popover-open, .popover-open)")]}))}))};r.prototype.open=function(){var r;var t=(r=this.host.shadowRoot)===null||r===void 0?void 0:r.querySelector(".popover-content");this.startAutoupdates();if(t){var e=ie[this.animation];if(typeof e==="function"){this.runOpenAnimation(e,t)}else{this.postBeforeToggle.emit({willOpen:true});this.postBeforeShow.emit({first:this.hasOpenedOnce});this.postToggle.emit({isOpen:true});this.postShow.emit({first:this.hasOpenedOnce});if(this.hasOpenedOnce)this.hasOpenedOnce=false}}if(this.safeSpace){globalThis.addEventListener("mousemove",this.boundMouseTrackingHandler)}};r.prototype.close=function(){if(typeof this.clearAutoUpdate==="function"){this.clearAutoUpdate()}if(this.safeSpace){globalThis.removeEventListener("mousemove",this.boundMouseTrackingHandler)}if(this.currentAnimation){this.currentAnimation.cancel();this.currentAnimation=null}this.postBeforeToggle.emit({willOpen:false});this.postToggle.emit({isOpen:false});this.postHide.emit()};r.prototype.runOpenAnimation=function(r,t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,3,4]);e=r(t);if(!e){this.postBeforeToggle.emit({willOpen:true});this.postBeforeShow.emit({first:this.hasOpenedOnce});this.postToggle.emit({isOpen:true});this.postShow.emit({first:this.hasOpenedOnce});return[2]}this.currentAnimation=e;if(e.playState==="running"){this.postBeforeToggle.emit({willOpen:true});this.postBeforeShow.emit({first:this.hasOpenedOnce})}return[4,e.finished];case 1:i.sent();this.postToggle.emit({isOpen:true});this.postShow.emit({first:this.hasOpenedOnce});this.hasOpenedOnce=true;return[3,4];case 2:n=i.sent();console.warn("Animation failed or was interrupted:",n);this.postBeforeToggle.emit({willOpen:false});this.postBeforeShow.emit({first:this.hasOpenedOnce});this.postToggle.emit({isOpen:false});return[3,4];case 3:if(this.currentAnimation===e){this.currentAnimation=null}return[7];case 4:return[2]}}))}))};r.prototype.handleToggle=function(r){var t=this;this.toggleTimeoutId=globalThis.setTimeout((function(){return t.toggleTimeoutId=null}),10);var e=r.newState==="open";if(e){this.open()}else{this.close()}};r.prototype.startAutoupdates=function(){if(!this.eventTarget||!this.host)return;this.clearAutoUpdate=Ur(this.eventTarget,this.host,this.calculatePosition.bind(this))};r.prototype.getHeaderHeight=function(){var r=document.querySelector("post-header");return r?Number.parseFloat(getComputedStyle(r).height):0};r.prototype.calculatePosition=function(){return __awaiter(this,void 0,void 0,(function(){var r,t,e,n,i,o,a,s,u,f,p,c;var v;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.computeMainPosition()];case 1:r=l.sent(),t=r.x,e=r.y,n=r.middlewareData,i=r.placement;o=i.split("-")[0];this.dynamicPlacement=o;this.host.style.left="".concat(t,"px");this.host.style.top="".concat(e,"px");if(this.arrow&&n.arrow){a=n.arrow,s=a.x,u=a.y;f=oe.STATIC_SIDES[o];p=this.arrowRef.offsetWidth;c=-.5*p;if(f){Object.assign(this.arrowRef.style,(v={left:s?"".concat(s,"px"):"",top:u?"".concat(u,"px"):""},v[f]="".concat(c,"px"),v))}}if(!(this.safeSpace&&this.eventTarget))return[3,3];return[4,this.updateSafeSpaceBoundaries(o)];case 2:l.sent();l.label=3;case 3:return[2]}}))}))};r.prototype.computeMainPosition=function(){return __awaiter(this,void 0,void 0,(function(){var r,t,e,n,i;var o;return __generator(this,(function(a){r=this.edgeGap;t=(this.placement||"top").includes("-");e=et({padding:this.getHeaderHeight(),crossAxis:false});n=tt({padding:r,limiter:at({offset:32})});i=__spreadArray(__spreadArray([rt((o=this.offset)!==null&&o!==void 0?o:this.arrow?r+4:r),ot()],t?[e,n]:[n,e],true),[nt({apply:function(t){var e=t.availableWidth,n=t.elements;Object.assign(n.floating.style,{maxWidth:"".concat(e-r*2,"px")})}})],false);if(this.arrow){i.push(it({element:this.arrowRef,padding:r}))}return[2,st(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:i})]}))}))};r.prototype.updateSafeSpaceBoundaries=function(r){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,o;var a=this;return __generator(this,(function(s){t=this.eventTarget.getBoundingClientRect();e=this.host.getBoundingClientRect();n=r==="top"||r==="bottom";i=function(r,t,e){if(r==="top"||r==="bottom"){return{popover:{y:r==="top"?t.bottom:t.top,xStart:t.left,xEnd:t.right},trigger:{y:r==="top"?e.top:e.bottom,xStart:e.left,xEnd:e.right}}}else{return{popover:{x:r==="left"?t.right:t.left,yStart:t.top,yEnd:t.bottom},trigger:{x:r==="left"?e.left:e.right,yStart:e.top,yEnd:e.bottom}}}};o=i(r,e,t);oe.PROPERTIES_TO_CLEAR.forEach((function(r){a.host.style.removeProperty(r)}));if(n){this.host.style.setProperty("--post-safe-space-popover-y","".concat(o.popover.y,"px"));this.host.style.setProperty("--post-safe-space-popover-x-start","".concat(o.popover.xStart,"px"));this.host.style.setProperty("--post-safe-space-popover-x-end","".concat(o.popover.xEnd,"px"));this.host.style.setProperty("--post-safe-space-trigger-y","".concat(o.trigger.y,"px"));this.host.style.setProperty("--post-safe-space-trigger-x-start","".concat(o.trigger.xStart,"px"));this.host.style.setProperty("--post-safe-space-trigger-x-end","".concat(o.trigger.xEnd,"px"))}else{this.host.style.setProperty("--post-safe-space-popover-x","".concat(o.popover.x,"px"));this.host.style.setProperty("--post-safe-space-popover-y-start","".concat(o.popover.yStart,"px"));this.host.style.setProperty("--post-safe-space-popover-y-end","".concat(o.popover.yEnd,"px"));this.host.style.setProperty("--post-safe-space-trigger-x","".concat(o.trigger.x,"px"));this.host.style.setProperty("--post-safe-space-trigger-y-start","".concat(o.trigger.yStart,"px"));this.host.style.setProperty("--post-safe-space-trigger-y-end","".concat(o.trigger.yEnd,"px"))}return[2]}))}))};r.prototype.render=function(){var r=this;return n(i,{key:"ef1853c057a7c44af1b3e9247f6690f7d3b38b4a","data-version":a,popover:"auto"},n("div",{key:"66da2a4abe897e9619891078dbff25737aa9dd2a",part:"post-popovercontainer-content",class:"popover-content"},this.arrow&&n("span",{key:"183416754cb5f9fdf3d1301186325535aabc2c96","dynamic-placement":this.dynamicPlacement,class:"arrow",ref:function(t){r.arrowRef=t}}),n("span",{key:"6742ebb4ef07a3ab3b25f71dabd3a8252f654b6b",part:"post-popovercontainer-border-mask"}),n("slot",{key:"00cd0fc4bd4f20ac3abc23b0f5a69de51e4ab292"})))};Object.defineProperty(r.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return r}());oe.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"};oe.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"];ne([s(u)],oe.prototype,"placement",void 0);ne([f("number")],oe.prototype,"edgeGap",void 0);ne([s(["triangle","trapezoid"])],oe.prototype,"safeSpace",void 0);oe.style=ee()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as e,H as t,g as r}from"./p-h3opCZqH.js";import{v as a}from"./p-jK9tFtoG.js";import{b as i}from"./p-Ck6UMUSA.js";import{R as n}from"./p-DvaRK2lz.js";import{T as s}from"./p-DZMUeI8H.js";import"./p-bR8vy6-s.js";import"./p-vAzHgwTd.js";const d=["grid-1","grid-2","grid-3","grid-4"],p=class{constructor(e){o(this,e),this.device=i.get("device"),this.gridSlotDisplayed={},this.breakpointChange=o=>{this.device=o.detail},this.handleGridSlotChange=this.handleGridSlotChange.bind(this)}connectedCallback(){globalThis.addEventListener("postBreakpoint:device",this.breakpointChange)}componentWillLoad(){d.forEach((o=>{const e=this.host.querySelectorAll(`[slot="${o}"]`);this.updateGridSlotDisplay(o,e.length>0)}))}disconnectedCallback(){globalThis.removeEventListener("postBreakpoint:device",this.breakpointChange)}handleGridSlotChange(...o){return e=>{o.includes(this.device)&&e.target instanceof HTMLSlotElement&&this.updateGridSlotDisplay(e.target.name,e.target.assignedElements().length>0)}}updateGridSlotDisplay(o,e){this.gridSlotDisplayed[o]!==e&&(this.gridSlotDisplayed={...this.gridSlotDisplayed,[o]:e})}renderAccordion(){return e("post-accordion",{headingLevel:3,multiple:!0},d.map((o=>e("post-accordion-item",{key:o,class:{"d-none":!this.gridSlotDisplayed[o]},collapsed:!0},e("span",{slot:"header"},e("slot",{name:o+"-title"})),e("slot",{onSlotchange:this.handleGridSlotChange("mobile"),name:o})))))}renderColumns(){return d.map((o=>e("div",{key:o,class:{"d-none":!this.gridSlotDisplayed[o]}},e("h3",null,e("slot",{name:o+"-title"})),e("slot",{onSlotchange:this.handleGridSlotChange("tablet","desktop"),name:o}))))}render(){return e(t,{key:"a418a8149b54b81dd054d02b5a13158a3592f80e","data-version":a,"data-color-scheme":"light"},e("footer",{key:"15e5706569dcae6f0b0c607384c93cc79b42dfb4"},e("h2",{key:"031af06c7b0f81324117be0ff79acecde5067c6c",class:"visually-hidden"},this.textFooter),e("div",{key:"ddb24e0e3165b0dc486979f65756de522690a5ea",class:"prefooter"},e("div",{key:"33420f69408f368b52199a56258fa6c342b47fd4",class:"footer-container"},e("slot",{key:"9fbbb2958d4623374333a32988e676cc29e9c432",name:"prefooter"}))),e("div",{key:"22cf7438001c496fc1b0480b53aab827c2e43d60",class:"footer-main"},e("div",{key:"861cc3613a0a29610e1bd0f0bc0b85ebb8278e11",class:"footer-container"},e("div",{key:"b3d8aa82cbc11b6a1bc66673812d081fcc60dadd",class:"footer-grid"},"mobile"===this.device?this.renderAccordion():this.renderColumns()),e("div",{key:"37024ff8c65037877e2daa41a91c7f7c731cfdcf",class:"footer-column"},e("div",{key:"45f35d77042709c3b487887d255cf060aae066be",class:"footer-socialmedia"},e("slot",{key:"f24f0f3e03267c22de4df84d57e64627939b2ec5",name:"socialmedia"})),e("div",{key:"32f122287278c21b588267c6d4a8f3e8e0f2e2cd",class:"footer-app"},e("slot",{key:"2b2baaa778418bda6e5d50b9dd661dc6f7a13d15",name:"app"}))),e("div",{key:"f3926f93aaac9040313052bab0d08155f4862b8a",class:"footer-businesssectors"},e("slot",{key:"f8aa5a777ddbf58dd47b305d2cbbbaa534795552",name:"businesssectors"})),e("div",{key:"1215c8e0a20a0ec6d1fe69da0bb793a533c9dd06",class:"footer-meta"},e("slot",{key:"939483f25bdf8c1ef9593b58962b11b1ecc4c3a2",name:"meta"})),e("div",{key:"4601f4b358e02319f2011d64c80778eb49732914",class:"footer-copyright"},e("slot",{key:"20ce9532ee14223e75ece29d951599c1a702f15d",name:"copyright"}))))))}get host(){return r(this)}};(function(o,e,t,r){var a,i=arguments.length,n=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(o,e,t,r);else for(var s=o.length-1;s>=0;s--)(a=o[s])&&(n=(i<3?a(n):i>3?a(e,t,n):a(e,t))||n);i>3&&n&&Object.defineProperty(e,t,n)})([n(),s("string")],p.prototype,"textFooter",void 0),p.style=":host{display:block}footer{-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;--post-footer-container-padding-block:32px;--post-footer-container-padding-inline:16px;--post-footer-container-max-width:1200px;--post-footer-prefooter-padding-block:16px;--post-footer-grid-template:auto / auto;--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:0;--post-footer-grid-margin-block-end:24px;--post-footer-grid-padding-block-end:0;--post-footer-column-flex-direction:column;--post-footer-column-align-items:start;--post-footer-column-gap:0;--post-footer-list-flex-direction:column;--post-footer-list-gap:8px;--post-footer-list-align-items:start;--post-footer-socialmedia-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-app-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-businesssectors-margin-block-end:var(--post-footer-grid-margin-block-end);--post-footer-meta-margin-block-end:16px;--post-footer-meta-font-size:inherit;--post-footer-copyright-font-size:var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-container-padding-block:40px;--post-footer-prefooter-padding-block:32px;--post-footer-grid-template:repeat(2, auto) / repeat(2, auto);--post-footer-grid-row-gap:32px;--post-footer-grid-column-gap:16px;--post-footer-grid-margin-block-end:32px;--post-footer-grid-padding-block-end:32px;--post-footer-list-flex-direction:row;--post-footer-list-gap:16px;--post-footer-list-align-items:center;--post-footer-meta-margin-block-end:8px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline:40px}}@media screen and (min-width: 1024px){footer{--post-footer-container-padding-block:56px;--post-footer-grid-template:auto / repeat(4, auto);--post-footer-grid-row-gap:0;--post-footer-grid-column-gap:24px;--post-footer-grid-margin-block-end:40px;--post-footer-column-flex-direction:row;--post-footer-column-align-items:center;--post-footer-column-gap:32px;--post-footer-list-gap:24px;--post-footer-businesssectors-margin-block-end:24px;--post-footer-meta-font-size:16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{-webkit-box-sizing:content-box;box-sizing:content-box;margin:0 auto;padding:var(--post-footer-container-padding-block) var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.prefooter{background-color:#fafafa}.prefooter .footer-container{padding-block:0}.prefooter ::slotted([slot=prefooter]){padding-block:var(--post-footer-prefooter-padding-block)}.footer-main{background-color:#fc0}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);row-gap:var(--post-footer-grid-row-gap);-webkit-column-gap:var(--post-footer-grid-column-gap);-moz-column-gap:var(--post-footer-grid-column-gap);column-gap:var(--post-footer-grid-column-gap);-webkit-margin-after:var(--post-footer-grid-margin-block-end);margin-block-end:var(--post-footer-grid-margin-block-end);-webkit-padding-after:var(--post-footer-grid-padding-block-end);padding-block-end:var(--post-footer-grid-padding-block-end)}.footer-grid:has(>.d-none+.d-none+.d-none+.d-none){-webkit-margin-after:0;margin-block-end:0;-webkit-padding-after:0;padding-block-end:0;row-gap:0;-webkit-column-gap:0;-moz-column-gap:0;column-gap:0}.footer-grid post-accordion:has(>.d-none+.d-none+.d-none+.d-none){display:none}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:-ms-flexbox;display:flex;-ms-flex-direction:var(--post-footer-column-flex-direction);flex-direction:var(--post-footer-column-flex-direction);-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:var(--post-footer-column-align-items);align-items:var(--post-footer-column-align-items);-webkit-column-gap:var(--post-footer-column-gap);-moz-column-gap:var(--post-footer-column-gap);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-meta ::slotted(div){display:-ms-flexbox !important;display:flex !important;-ms-flex-direction:var(--post-footer-list-flex-direction) !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;-ms-flex-align:var(--post-footer-list-align-items) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{-webkit-margin-after:var(--post-footer-socialmedia-margin-block-end);margin-block-end:var(--post-footer-socialmedia-margin-block-end)}.footer-app{-webkit-margin-after:var(--post-footer-app-margin-block-end);margin-block-end:var(--post-footer-app-margin-block-end)}.prefooter ::slotted(div),.footer-businesssectors ::slotted(div){display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;gap:var(--post-footer-list-gap) !important}.footer-businesssectors{-webkit-margin-after:var(--post-footer-businesssectors-margin-block-end);margin-block-end:var(--post-footer-businesssectors-margin-block-end)}.footer-meta{-webkit-margin-after:var(--post-footer-meta-margin-block-end);margin-block-end:var(--post-footer-meta-margin-block-end);font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}";export{p as post_footer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{c(n.next(t))}catch(t){o(t)}}function a(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):s(t.value).then(r,a)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["return"]=a(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return c([t,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(i=0)),i)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-CN_0KCBp.system.js","./p-CDL0cxX6.system.js","./p-DIiKaF8J.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-DaxAbTyB.system.js"],(function(t){"use strict";var e,i,n,s,o,r,a,c,u;return{setters:[function(t){e=t.r;i=t.c;n=t.h;s=t.H;o=t.g},function(t){r=t.v},function(t){a=t.d},function(t){c=t.R},function(t){u=t.T},null],execute:function(){var f=function(){return":host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out, -webkit-transform .2s ease-in-out}:host([open]) .autocomplete-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.autocomplete-clear{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}"};var h=undefined&&undefined.__decorate||function(t,e,i,n){var s=arguments.length,o=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)if(r=t[a])o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o;return s>3&&o&&Object.defineProperty(e,i,o),o};var l=t("post_autocomplete",function(){function t(t){var n=this;e(this,t);this.postFilteringEvent=i(this,"postFilteringEvent");this.debouncedHandleInput=a((function(t){void n.handleInput(t)}),250);this.filterThreshold=0;this.clearable=false;this.inputValue="";this.handleOnBlur=function(){n.inputElement.value=n.inputValue;n.listBoxElement.filter("");n.hideListBox()};this.handleInput=function(t){return __awaiter(n,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(s){switch(s.label){case 0:if(!this.listBoxElement)return[2];e=t.target.value.trim();i=e.length>=this.filterThreshold?e:"";n=this.postFilteringEvent.emit(i&&i.length>=this.filterThreshold?i:"").defaultPrevented;if(n)return[2];return[4,this.listBoxElement.filter(i)];case 1:s.sent();if(i){this.showListBox();this.announceCount()}else{this.inputValue="";this.clearAnnouncement()}return[2]}}))}))};this.handleKeyDown=function(t){var e=t.key,i=t.altKey;switch(e){case"ArrowDown":t.preventDefault();n.showListBox();if(!i){n.listBoxElement.navigate("down")}break;case"ArrowUp":t.preventDefault();n.listBoxElement.navigate("up");break;case"Enter":if(n.listBoxElement.hidden)return;t.preventDefault();n.listBoxElement.selectActive();n.hideListBox();break;case"Escape":n.hideListBox();break;case"Tab":n.listBoxElement.selectActive();n.hideListBox();break;case"Home":t.preventDefault();n.listBoxElement.navigate("first");break;case"End":t.preventDefault();n.listBoxElement.navigate("last");break}};this.handleOptionSelected=function(t){var e=t.detail;n.inputElement.value=e;n.inputValue=e;n.hideListBox()};this.handleOptionActive=function(t){var e=t.detail;if(e){n.inputElement.setAttribute("aria-activedescendant",e)}else{n.inputElement.removeAttribute("aria-activedescendant")}};this.hideListBox=function(){n.clearAnnouncement();n.listBoxElement.hide();n.inputElement.ariaExpanded="false";n.host.removeAttribute("open");n.inputElement.removeAttribute("aria-activedescendant")};this.showListBox=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.listBoxElement.show()];case 1:t.sent();this.inputElement.ariaExpanded="true";this.host.setAttribute("open","");this.announceCount();return[2]}}))}))};this.clearInput=function(){if(n.inputElement){n.inputElement.value="";n.inputValue="";n.listBoxElement.clearSelection();n.hideListBox()}}}Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.host.querySelector("input")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"listBoxElement",{get:function(){if(this.listbox){return document.getElementById(this.listbox)}else{return this.host.querySelector("post-listbox")}},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){var t;if(!this.inputElement)return;this.inputElement.role="combobox";this.inputElement.ariaAutoComplete="list";if(!this.listBoxElement)return;if(!this.listBoxElement.id)this.listBoxElement.id=crypto.randomUUID();this.inputElement.setAttribute("aria-controls",this.listBoxElement.id);this.inputElement.setAttribute("aria-expanded","false");var e=(t=this.inputElement.labels)===null||t===void 0?void 0:t[0];if(e){if(!e.id)e.id=crypto.randomUUID();this.listBoxElement.setAttribute("aria-labelledby",e.id)}this.inputElement.autocomplete="off";this.attachInputListeners();this.attachListboxListeners()};t.prototype.disconnectedCallback=function(){this.detachInputListeners();this.detachListboxListeners()};t.prototype.attachInputListeners=function(){if(this.inputElement){this.inputElement.addEventListener("input",this.debouncedHandleInput);this.inputElement.addEventListener("keydown",this.handleKeyDown);this.inputElement.addEventListener("blur",this.handleOnBlur);this.inputElement.addEventListener("click",this.showListBox)}};t.prototype.detachInputListeners=function(){if(this.inputElement){this.inputElement.removeEventListener("input",this.debouncedHandleInput);this.inputElement.removeEventListener("keydown",this.handleKeyDown);this.inputElement.removeEventListener("blur",this.handleOnBlur);this.inputElement.removeEventListener("click",this.showListBox)}};t.prototype.attachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.addEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.addEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.detachListboxListeners=function(){if(this.listBoxElement){this.listBoxElement.removeEventListener("postOptionSelected",this.handleOptionSelected);this.listBoxElement.removeEventListener("postOptionActive",this.handleOptionActive)}};t.prototype.clearAnnouncement=function(){if(this.outputElement)this.outputElement.textContent=""};t.prototype.announceCount=function(){if(!this.outputElement||!this.listBoxElement)return;var t=this.listBoxElement.querySelectorAll("post-listbox-option:not([hidden])").length;this.outputElement.textContent=this.textAvailableSuggestions.replace("{count}",String(t))};t.prototype.render=function(){var t=this;return n(s,{key:"a88d1a65adcbe0603dc2c7ccf5900ae49dbe8edc","data-version":r},n("slot",{key:"ff4724e2e298a38020c4eb93b2b9a38d811274b8"}),this.clearable&&this.inputValue&&n("button",{key:"6a5f67d5376bdb0d261fd687ad29dd32d4f3be36",type:"button",class:"autocomplete-clear",onClick:this.clearInput},n("post-icon",{key:"5b123fa4dbd581ebbba96f820b30d9d266b69b7d","aria-hidden":"true",name:"closex"})),n("post-icon",{key:"9d3fcaf73cfff3e17d440e7add858482e48a12a7","aria-hidden":"true",class:"autocomplete-icon",name:"chevronDown"}),n("output",{key:"9c894f8ea34ffcc8b8c741216679ffbbd7b866bf",class:"visually-hidden",ref:function(e){return t.outputElement=e}}))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());h([c(),u("string")],l.prototype,"textAvailableSuggestions",void 0);l.style=f()}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))n[i]=t[i]}return n};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(n,t,r,e){function i(n){return n instanceof r?n:new r((function(t){t(n)}))}return new(r||(r=Promise))((function(r,a){function u(n){try{s(e.next(n))}catch(n){a(n)}}function o(n){try{s(e["throw"](n))}catch(n){a(n)}}function s(n){n.done?r(n.value):i(n.value).then(u,o)}s((e=e.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,i,a,u=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return u.next=o(0),u["throw"]=o(1),u["return"]=o(2),typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(n){return function(t){return s([n,t])}}function s(o){if(e)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(r=0)),r)try{if(e=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(n,r)}catch(n){o=[6,n];i=0}finally{e=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,t,r){if(r||arguments.length===2)for(var e=0,i=t.length,a;e<i;e++){if(a||!(e in t)){if(!a)a=Array.prototype.slice.call(t,0,e);a[e]=t[e]}}return n.concat(a||Array.prototype.slice.call(t))};System.register(["./p-CN_0KCBp.system.js","./p-tBnwOTPV.system.js"],(function(n){"use strict";var t,r,e,i,a,u,o,s,c,f,l;return{setters:[function(n){t=n.h;r=n.r;e=n.c;i=n.H},function(n){a=n.c;u=n.L;o=n.g;s=n.T;c=n.s;f=n.d;l=n.v}],execute:function(){var v=this;var d=function(n){var r=n.user,e=n.description;return t("post-avatar",{firstname:r.name,lastname:r.surname,email:r.email,description:e,"aria-hidden":e?undefined:"true"})};var h=function(n){var r=n.config,e=n.textClose,i=n.textBack;var o=a(r.trigger.text);return[t("post-megadropdown-trigger",{key:"trigger",for:o},r.trigger.text),t("post-megadropdown",{key:"dropdown",id:o,textClose:e,textBack:i},r.overview&&t(u,{config:r.overview,class:"post-megadropdown-overview",ariaCurrentWhenActive:"page"}),t("div",{class:"row row-cols-1 row-cols-sm-2"},r.sections.map((function(n){return t(g,{config:n})}))))]};var g=function(n){var r=n.config;var e=o(r.title);var i=a(e);return t("div",{class:"col"},t(s,{class:"post-megadropdown-list-title",id:i,config:r.title}),t("ul",{class:"post-megadropdown-list","aria-labelledby":i},r.items.map((function(n){return t("li",{key:n.url},t(u,{config:n,ariaCurrentWhenActive:"page"}))}))))};var p=function(n){var t=new URL(n,window.location.href);t.searchParams.set("returnURL",window.location.href);return t.toString()};var w=function(n){var r=n.config,e=n.slot,i=n.textCurrentUser,o=n.textUserLinks,s=n.textAccessUserLinks;var c=r.user.userType==="B2C";var f=r.user.userType==="B2B";var l=(c||f)&&r.user.changeUserAndProfile==="userAndProfile";var v=f&&r.user.canChangeCompany&&r.user.company;var h=l||v;var g=[r.user.name,r.user.surname].join(" ");var w=a(g);return t("div",{slot:e},t("post-menu-trigger",{for:w},t("button",{class:"btn btn-link",type:"button"},t(d,{user:r.user,description:i.replace("{user}","".concat(g))}),t("span",{class:"visually-hidden"},s))),t("post-menu",{id:w,label:o},t("div",{slot:"header"},t(d,{user:r.user}),r.user.company&&t("p",null,r.user.company),t("p",null,g)),r.accountSwitch&&h&&t("post-menu-item",null,t(u,{config:{text:r.accountSwitch.text,url:p(r.accountSwitch.url),icon:r.accountSwitch.icon}})),r.companySwitch&&v&&t("post-menu-item",null,t(u,{config:{text:r.companySwitch.text,url:p(r.companySwitch.url),icon:r.companySwitch.icon}})),r.options.map((function(n){return t("post-menu-item",{key:n.url},t(u,{config:n}))})),r.logoutLink&&t("post-menu-item",null,t(u,{config:r.logoutLink}))))};var _="de";var m=function(n){var t;var r=new URL(window.location.href);var e=[n,r.searchParams.get("lang"),y(r.pathname),document.documentElement.lang,b(),c.currentLanguage].filter((function(n){return n!=null}));return A((t=e[0])!==null&&t!==void 0?t:_)};var y=function(n){var t=n.split("/").filter(Boolean)[0];if(!t)return undefined;try{Intl.getCanonicalLocales(t);return t}catch(n){return undefined}};var b=function(){if(navigator.language!=null){return A(navigator.language)}if(navigator.languages!=null&&navigator.languages.length>0){return A(navigator.languages[0])}return null};var A=function(n){return n.substring(0,2).toLowerCase()};var k=new Map;var x=function(){var n=document.querySelector("#PPM_HEADER_DATA");if((n===null||n===void 0?void 0:n.textContent)!=null){return JSON.parse(n.textContent)}return null};var L=function(n){return __awaiter(v,[n],void 0,(function(n){var t,r,e,i,a,u,o;var s=n.projectId,f=n.environment,l=n.language;return __generator(this,(function(n){switch(n.label){case 0:t=x();if(t){r=document.documentElement.lang;c.currentLanguage=r;return[2,t]}e=m(l);i="".concat(s,"-").concat(f,"-").concat(e);a=k.get(i);if(a==null){a=C(s,f,e).finally((function(){k.delete(i)}));k.set(i,a)}o=[{}];return[4,a];case 1:u=__assign.apply(void 0,o.concat([n.sent()]));c.currentLanguage=e;return[2,u]}}))}))};var C=function(n,t,r){return __awaiter(v,void 0,void 0,(function(){var e,i,a;return __generator(this,(function(u){switch(u.label){case 0:if(!j(n)){throw new Error('Internet Header: invalid project id "'.concat(n,'"'))}if(n==="test"){t="int01"}e=R(n,t,r);u.label=1;case 1:u.trys.push([1,4,,5]);return[4,fetch(e)];case 2:i=u.sent();return[4,i.json()];case 3:return[2,u.sent()];case 4:a=u.sent();throw new Error("Internet Header: fetching config failed. ".concat(a.message));case 5:return[2]}}))}))};var R=function(n,t,r){if(n==="test")return"assets/config/test-configuration.json";var e=t.toUpperCase();var i=r.toLowerCase();var a=e==="PROD";var u="https://".concat(a?"":"int.","preview.post.ch");try{var o=new URLSearchParams({serviceId:n,environment:e,lang:i}).toString();return new URL("".concat(u,"/api/header?").concat(o)).toString()}catch(n){throw new Error("Internet Header: Config URL is invalid.")}};var j=function(n){return n!==""&&n.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(n)};var U=function(n){var t;var r=O((t=c.localizedConfig)===null||t===void 0?void 0:t.header);if(r.length===0||n==="none"){return null}if(n==="auto"||n==="exact"){var e=I(r);if(e)return e}var i;if(n==="auto"||n==="exact"){i=new URL(window.location.href)}else{try{i=new URL(n,document.location.origin)}catch(t){console.warn("Active Route: ".concat(n," is not a valid URL. Navigation highlighting has been disabled."));return null}}var a=E(r);var u=n==="exact"?"exact":"auto";return P(a,i,u)};var I=function(n){return n.find((function(n){return n.active}))};var E=function(n){return n.filter((function(n){return n.url!==""&&n.url!=="#"&&n.url!=="/"}))};var O=function(n){var t=[];if(!n){return t}var r=function(n){if(n===null||n===undefined){return}if(Array.isArray(n)){n.forEach(r);return}if(typeof n!=="object"||n===null){return}if("url"in n&&typeof n.url==="string"){t.push(n)}Object.values(n).forEach(r)};r(n);return t};var P=function(n,t,r){var e=null;for(var i=0,a=n;i<a.length;i++){var u=a[i];try{var o=new URL(u.url,document.location.origin);var s=B(t,o,r);if(s>0){if(!e||s>e.score){e={link:u,score:s}}if(s===Infinity)break}}catch(n){}}return e?e.link:null};var B=function(n,t,r){if(n===null||t===null||n.origin!==t.origin){return 0}var e=n.pathname.toLocaleLowerCase();var i=t.pathname.toLocaleLowerCase();if(e===i){return Infinity}if(n.pathname.length<t.pathname.length){return 0}if(r==="auto"){var a=__spreadArray([n.origin.toLocaleLowerCase()],e.split("/").filter((function(n){return n!==null&&n!==""})),true);var u=__spreadArray([t.origin.toLocaleLowerCase()],i.split("/").filter((function(n){return n!==null&&n!==""})),true);var o=H(a,u);return Math.min(a.length,u.length)===o?o:0}return 0};var H=function(n,t){if(n==null||t==null||n.length===0||t.length===0){return 0}var r=0;for(;r<Math.min(n.length,t.length);r++){if(n[r]!==t[r]){return 0}}return r};var M="https://n.account.post.ch/v1/session/subscribe";var S=n("swisspost_internet_header",function(){function n(n){this.activeRoute="auto";this.environment="prod";this.fullWidth=false;r(this,n);this.headerLoaded=e(this,"headerLoaded");if(this.project===undefined||this.project===""||!j(this.project)){throw new Error('Internet Header project key is "'.concat(this.project,'". Please provide a valid project key.'))}}n.prototype.handleActiveRouteChange=function(){this.updateActiveUrl()};n.prototype.handleLanguageChange=function(n){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);return[4,this.updateConfig(n)];case 1:r.sent();return[3,3];case 2:t=r.sent();console.error(t);return[3,3];case 3:return[2]}}))}))};n.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,Promise.all([this.fetchHeaderConfig(),this.fetchUserData()])];case 1:n.sent();return[2]}}))}))};n.prototype.componentDidLoad=function(){var n=this;window.requestAnimationFrame((function(){n.headerLoaded.emit()}))};n.prototype.disconnectedCallback=function(){f()};n.prototype.handleLanguageChangeEvent=function(n){if(n.target instanceof HTMLElement&&n.target.localName==="post-language-menu-item"&&n.detail!==this.language){void this.handleLanguageChange(n.detail)}};n.prototype.fetchHeaderConfig=function(){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);c.projectId=this.project;c.environment=this.environment.toLocaleLowerCase();if(this.language!==undefined)c.currentLanguage=this.language;return[4,this.updateConfig()];case 1:t.sent();return[3,3];case 2:n=t.sent();console.error(n);return[3,3];case 3:return[2]}}))}))};n.prototype.fetchUserData=function(){return __awaiter(this,void 0,void 0,(function(){var n,t,r;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,4,,5]);return[4,fetch(M,{credentials:"include"})];case 1:n=e.sent();if(!n.ok)return[3,3];return[4,n.json()];case 2:t=e.sent();c.user=t===null||t===void 0?void 0:t.data;e.label=3;case 3:return[3,5];case 4:r=e.sent();return[3,5];case 5:return[2]}}))}))};n.prototype.updateConfig=function(n){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=c;return[4,L({projectId:this.project,environment:this.environment,language:n!==null&&n!==void 0?n:this.language})];case 1:t.localizedConfig=r.sent();this.updateActiveUrl();return[2]}}))}))};n.prototype.updateActiveUrl=function(){c.activeLink=U(this.activeRoute)};n.prototype.getUserMenuOptions=function(n){var t;return __spreadArray(__spreadArray(__spreadArray([],n.userProfile?[n.userProfile]:[],true),n.settings?[n.settings]:[],true),(t=n.userLinks)!==null&&t!==void 0?t:[],true)};n.prototype.renderNavItem=function(n,r){if(r===void 0){r={}}if("url"in n){return t(u,__assign(__assign({},r),{config:n}))}return t(w,{slot:r.slot,config:n,textCurrentUser:this.textCurrentUser,textAccessUserLinks:this.textAccessUserLinks,textUserLinks:this.textUserLinks})};n.prototype.renderNavigation=function(n,r,e){var i=this;if(e===void 0){e={}}if(r.length===0)return null;if(r.length===1){return this.renderNavItem(r[0],__assign(__assign({},e),{slot:n}))}return t("ul",{slot:n},r.map((function(n){return t("li",{key:"url"in n?n.url:n.user.email},i.renderNavItem(n,e))})))};n.prototype.render=function(){var n=this;var r;if(!((r=c.localizedConfig)===null||r===void 0?void 0:r.header)){console.error(new Error("Internet Header: Config cannot be loaded"));return}var e=c.localizedConfig.header,a=e.globalHeader,o=e.localHeader;return t(i,{"data-version":l},t("post-header",{textMenu:this.textMenu},"image"in a.postLogo?t(u,{slot:"post-logo",config:a.postLogo}):t("post-logo",{slot:"post-logo",url:a.postLogo.url,"aria-label":a.postLogo.label,"aria-description":a.postLogo.description},a.postLogo.text),a.audience&&this.renderNavigation("audience",a.audience,{ariaCurrentWhenActive:"location"}),a.primaryNavigation&&this.renderNavigation("global-nav-primary",a.primaryNavigation),a.secondaryNavigation&&this.renderNavigation("global-nav-secondary",a.secondaryNavigation,{ariaCurrentWhenActive:"location"}),a.languages&&a.languages.length>0&&t("post-language-menu",{slot:"language-menu",textChangeLanguage:this.textChangeLanguage,textCurrentLanguage:this.textCurrentLanguage},a.languages.map((function(n){return t("post-language-menu-item",{key:n.code,url:n.url,active:n.active,code:n.code,name:n.label,description:n.description},n.text)}))),a.postLogin&&this.renderNavItem(c.user?{user:c.user,options:this.getUserMenuOptions(a.postLogin),accountSwitch:a.postLogin.accountSwitch,companySwitch:a.postLogin.companySwitch,logoutLink:a.postLogin.logoutLink}:a.postLogin.loginLink,{slot:"post-login"}),o.title&&t("p",{slot:"title"},o.title),o.navigation&&this.renderNavigation("local-nav",o.navigation),o.mainNavigation&&t("post-mainnavigation",{slot:"main-nav",textMain:this.textMain},t("ul",null,o.mainNavigation.map((function(r){return t("li",{key:"url"in r?r.url:r.trigger.text},"url"in r?t(u,{config:r,ariaCurrentWhenActive:"page"}):t(h,{config:r,textBack:n.textBack,textClose:n.textClose}))}))))))};Object.defineProperty(n,"watchers",{get:function(){return{activeRoute:[{handleActiveRouteChange:0}],language:[{handleLanguageChange:0}]}},enumerable:false,configurable:true});return n}())}}}));
|