@swisspost/internet-header 1.13.5 → 1.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bodyScrollLock.esm-59f17217.js +0 -2
- package/dist/cjs/if.component-31542061.js +0 -2
- package/dist/cjs/index-3216e4c8.js +0 -2
- package/dist/cjs/index-cab594bc.js +0 -2
- package/dist/cjs/index.cjs.js +11 -13
- package/dist/cjs/{klp-widget.controller-c807789c.js → klp-widget.controller-209f3662.js} +8 -6
- package/dist/cjs/{language.service-8d541626.js → language.service-94409b3d.js} +1 -3
- package/dist/cjs/loader.cjs.js +0 -2
- package/dist/cjs/{post-internet-breadcrumbs-ca62acb9.js → post-internet-breadcrumbs-d8a0a3e6.js} +2 -4
- package/dist/cjs/{post-internet-footer-a9ce4a24.js → post-internet-footer-3e114492.js} +2 -4
- package/dist/cjs/{post-internet-header-83724799.js → post-internet-header-3d26953a.js} +5 -6
- package/dist/cjs/post-klp-login-widget-7a867072.js +62 -0
- package/dist/cjs/post-klp-login-widget.cjs.entry.js +1 -3
- package/dist/cjs/{post-language-switch-51cbcb84.js → post-language-switch-89769c16.js} +2 -4
- package/dist/cjs/post-language-switch.cjs.entry.js +2 -4
- package/dist/cjs/{post-logo-4720a646.js → post-logo-0b0d8277.js} +1 -3
- package/dist/cjs/post-logo.cjs.entry.js +1 -3
- package/dist/cjs/{post-main-navigation-c9be2641.js → post-main-navigation-05ac62f4.js} +3 -5
- package/dist/cjs/post-main-navigation.cjs.entry.js +2 -4
- package/dist/cjs/{post-meta-navigation-829b5afe.js → post-meta-navigation-19db7f19.js} +2 -4
- package/dist/cjs/post-meta-navigation.cjs.entry.js +1 -3
- package/dist/cjs/post-search-afd1abf7.js +596 -0
- package/dist/cjs/post-search.cjs.entry.js +2 -4
- package/dist/cjs/{post-skiplinks-72a46892.js → post-skiplinks-b1ea7588.js} +1 -3
- package/dist/cjs/post-skiplinks.cjs.entry.js +2 -4
- package/dist/cjs/store-9f3cc50a.js +0 -2
- package/dist/cjs/svg-icon.component-980da2bc.js +0 -2
- package/dist/cjs/svg-sprite.component-6d4865e1.js +0 -2
- package/dist/cjs/swisspost-internet-breadcrumbs.cjs.entry.js +2 -4
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +2 -4
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +2 -4
- package/dist/cjs/swisspost-internet-header.cjs.js +0 -2
- package/dist/cjs/ui.service-7334148b.js +0 -2
- package/dist/cjs/utils-0a793763.js +0 -2
- package/dist/collection/assets/i18n/translations.js +0 -1
- package/dist/collection/assets/js/klp-login-widget.js +8 -4
- package/dist/collection/components/post-internet-breadcrumbs/components/breadcrumb-list.component.js +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/focus-trap.component.js +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-dropdown.component.js +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-links.component.js +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/overlay.component.js +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.css +2 -2
- package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.js +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-address.component.js +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-contact.component.js +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-custom.component.js +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-list.component.js +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-socials.component.js +0 -1
- package/dist/collection/components/post-internet-footer/post-internet-footer.css +1 -1
- package/dist/collection/components/post-internet-footer/post-internet-footer.js +0 -1
- package/dist/collection/components/post-internet-header/logo-animation/logo-animation.js +0 -1
- package/dist/collection/components/post-internet-header/logo-animation/logo-scale.js +0 -1
- package/dist/collection/components/post-internet-header/post-internet-header.css +1 -1
- package/dist/collection/components/post-internet-header/post-internet-header.js +0 -1
- package/dist/collection/components/post-klp-login-widget/klp-widget.controller.js +0 -1
- package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.css +1 -1
- package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.js +0 -1
- package/dist/collection/components/post-language-switch/components/post-language-switch-list.js +0 -1
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +0 -1
- package/dist/collection/components/post-logo/post-logo.css +1 -1
- package/dist/collection/components/post-logo/post-logo.js +0 -1
- package/dist/collection/components/post-main-navigation/components/level-one-action.component.js +0 -1
- package/dist/collection/components/post-main-navigation/post-main-navigation.css +1 -1
- package/dist/collection/components/post-main-navigation/post-main-navigation.js +1 -2
- package/dist/collection/components/post-meta-navigation/post-meta-navigation.css +1 -1
- package/dist/collection/components/post-meta-navigation/post-meta-navigation.js +2 -3
- package/dist/collection/components/post-search/post-search.css +4 -4
- package/dist/collection/components/post-search/post-search.js +0 -1
- package/dist/collection/components/post-skiplinks/post-skiplinks.js +0 -1
- package/dist/collection/data/store.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/models/breadcrumbs.model.js +0 -1
- package/dist/collection/models/coveo.model.js +0 -1
- package/dist/collection/models/footer.model.js +0 -1
- package/dist/collection/models/general.model.js +0 -1
- package/dist/collection/models/geocode.model.js +0 -1
- package/dist/collection/models/header.model.js +0 -1
- package/dist/collection/models/implementor.model.js +0 -1
- package/dist/collection/models/language.model.js +0 -1
- package/dist/collection/models/track-and-trace.model.js +0 -1
- package/dist/collection/services/config.service.js +0 -1
- package/dist/collection/services/language.service.js +1 -2
- package/dist/collection/services/route.service.js +0 -1
- package/dist/collection/services/search/coveo.service.js +0 -1
- package/dist/collection/services/search/coveo.settings.js +0 -1
- package/dist/collection/services/search/parcel.service.js +0 -1
- package/dist/collection/services/search/places.service.js +0 -1
- package/dist/collection/services/search/places.settings.js +0 -1
- package/dist/collection/services/search/search-utilities.js +0 -1
- package/dist/collection/services/search/search.service.js +0 -1
- package/dist/collection/services/ui.service.js +0 -1
- package/dist/collection/utils/highlighted.component.js +0 -1
- package/dist/collection/utils/if.component.js +0 -1
- package/dist/collection/utils/scrollparent.js +0 -1
- package/dist/collection/utils/svg-icon.component.js +0 -1
- package/dist/collection/utils/svg-sprite.component.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/bodyScrollLock.esm.js +0 -2
- package/dist/components/index.js +0 -2
- package/dist/components/index2.js +0 -2
- package/dist/components/klp-widget.controller.js +8 -6
- package/dist/components/language.service.js +1 -3
- package/dist/components/post-klp-login-widget.js +0 -2
- package/dist/components/post-klp-login-widget2.js +1 -3
- package/dist/components/post-language-switch.js +0 -2
- package/dist/components/post-language-switch2.js +1 -3
- package/dist/components/post-logo.js +0 -2
- package/dist/components/post-logo2.js +1 -3
- package/dist/components/post-main-navigation.js +0 -2
- package/dist/components/post-main-navigation2.js +2 -4
- package/dist/components/post-meta-navigation.js +0 -2
- package/dist/components/post-meta-navigation2.js +2 -4
- package/dist/components/post-search.js +0 -2
- package/dist/components/post-search2.js +1 -3
- package/dist/components/post-skiplinks.js +0 -2
- package/dist/components/post-skiplinks2.js +0 -2
- package/dist/components/store.js +0 -2
- package/dist/components/svg-icon.component.js +0 -2
- package/dist/components/svg-sprite.component.js +0 -2
- package/dist/components/swisspost-internet-breadcrumbs.js +1 -3
- package/dist/components/swisspost-internet-footer.js +1 -3
- package/dist/components/swisspost-internet-header.js +4 -5
- package/dist/components/ui.service.js +0 -2
- package/dist/components/utils.js +0 -2
- package/dist/docs.json +1 -1
- package/dist/esm/bodyScrollLock.esm-afcc00e3.js +0 -2
- package/dist/esm/if.component-d88d9e48.js +0 -2
- package/dist/esm/index-a2152ff5.js +0 -2
- package/dist/esm/index-d2256e06.js +0 -2
- package/dist/esm/index.js +11 -13
- package/dist/esm/{klp-widget.controller-44b1ee83.js → klp-widget.controller-099061a3.js} +8 -6
- package/dist/esm/{language.service-e10417e6.js → language.service-9ba7302b.js} +1 -3
- package/dist/esm/loader.js +0 -2
- package/dist/esm/{post-internet-breadcrumbs-e0490c32.js → post-internet-breadcrumbs-959c559a.js} +2 -4
- package/dist/esm/{post-internet-footer-d22179a6.js → post-internet-footer-f4dcfb3b.js} +2 -4
- package/dist/esm/{post-internet-header-a57b1101.js → post-internet-header-4f6c2630.js} +5 -6
- package/dist/esm/post-klp-login-widget-519b9ac3.js +60 -0
- package/dist/esm/post-klp-login-widget.entry.js +1 -3
- package/dist/esm/{post-language-switch-8eb4e9ed.js → post-language-switch-f436d101.js} +2 -4
- package/dist/esm/post-language-switch.entry.js +2 -4
- package/dist/esm/{post-logo-319224f0.js → post-logo-9dbcf2ba.js} +1 -3
- package/dist/esm/post-logo.entry.js +1 -3
- package/dist/esm/{post-main-navigation-cc9da7b1.js → post-main-navigation-9fd0b55a.js} +3 -5
- package/dist/esm/post-main-navigation.entry.js +2 -4
- package/dist/esm/{post-meta-navigation-6fd33a79.js → post-meta-navigation-8820113b.js} +2 -4
- package/dist/esm/post-meta-navigation.entry.js +1 -3
- package/dist/esm/post-search-cf91f27a.js +594 -0
- package/dist/esm/post-search.entry.js +2 -4
- package/dist/esm/{post-skiplinks-caa68a25.js → post-skiplinks-e294cb04.js} +1 -3
- package/dist/esm/post-skiplinks.entry.js +2 -4
- package/dist/esm/store-d0d3a586.js +0 -2
- package/dist/esm/svg-icon.component-bf11f33c.js +0 -2
- package/dist/esm/svg-sprite.component-bc8c39ee.js +0 -2
- package/dist/esm/swisspost-internet-breadcrumbs.entry.js +2 -4
- package/dist/esm/swisspost-internet-footer.entry.js +2 -4
- package/dist/esm/swisspost-internet-header.entry.js +2 -4
- package/dist/esm/swisspost-internet-header.js +0 -2
- package/dist/esm/ui.service-22f2c593.js +0 -2
- package/dist/esm/utils-c8805f81.js +0 -2
- package/dist/esm-es5/bodyScrollLock.esm-afcc00e3.js +1 -2
- package/dist/esm-es5/if.component-d88d9e48.js +1 -2
- package/dist/esm-es5/index-a2152ff5.js +1 -2
- package/dist/esm-es5/index-d2256e06.js +1 -2
- package/dist/esm-es5/index.js +1 -2
- package/dist/esm-es5/{klp-widget.controller-44b1ee83.js → klp-widget.controller-099061a3.js} +1 -2
- package/dist/esm-es5/{language.service-e10417e6.js → language.service-9ba7302b.js} +1 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/esm-es5/post-internet-breadcrumbs-959c559a.js +6 -0
- package/dist/esm-es5/{post-internet-footer-d22179a6.js → post-internet-footer-f4dcfb3b.js} +1 -2
- package/dist/esm-es5/post-internet-header-4f6c2630.js +1 -0
- package/dist/esm-es5/post-klp-login-widget-519b9ac3.js +1 -0
- package/dist/esm-es5/post-klp-login-widget.entry.js +1 -2
- package/dist/esm-es5/post-language-switch-f436d101.js +1 -0
- package/dist/esm-es5/post-language-switch.entry.js +1 -2
- package/dist/esm-es5/{post-logo-319224f0.js → post-logo-9dbcf2ba.js} +1 -2
- package/dist/esm-es5/post-logo.entry.js +1 -2
- package/dist/esm-es5/post-main-navigation-9fd0b55a.js +1 -0
- package/dist/esm-es5/post-main-navigation.entry.js +1 -2
- package/dist/esm-es5/post-meta-navigation-8820113b.js +1 -0
- package/dist/esm-es5/post-meta-navigation.entry.js +1 -2
- package/dist/esm-es5/post-search-cf91f27a.js +1 -0
- package/dist/esm-es5/post-search.entry.js +1 -2
- package/dist/esm-es5/{post-skiplinks-caa68a25.js → post-skiplinks-e294cb04.js} +1 -2
- package/dist/esm-es5/post-skiplinks.entry.js +1 -2
- package/dist/esm-es5/store-d0d3a586.js +1 -2
- package/dist/esm-es5/svg-icon.component-bf11f33c.js +1 -2
- package/dist/esm-es5/svg-sprite.component-bc8c39ee.js +1 -2
- package/dist/esm-es5/swisspost-internet-breadcrumbs.entry.js +1 -2
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -2
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -2
- package/dist/esm-es5/swisspost-internet-header.js +1 -2
- package/dist/esm-es5/ui.service-22f2c593.js +1 -2
- package/dist/esm-es5/utils-c8805f81.js +1 -2
- package/dist/swisspost-internet-header/index.esm.js +1 -2
- package/dist/swisspost-internet-header/p-01b32298.system.js +1 -0
- package/dist/swisspost-internet-header/{p-240ae9b0.system.entry.js → p-041d7100.system.entry.js} +1 -2
- package/dist/swisspost-internet-header/p-06f51515.system.js +1 -2
- package/dist/swisspost-internet-header/p-13332cc8.entry.js +1 -0
- package/dist/swisspost-internet-header/p-193b3962.js +1 -0
- package/dist/swisspost-internet-header/p-1cac596c.system.js +1 -0
- package/dist/swisspost-internet-header/p-1e8226df.system.js +1 -2
- package/dist/swisspost-internet-header/p-1efced4f.system.js +1 -0
- package/dist/swisspost-internet-header/p-1fd8561a.system.js +1 -2
- package/dist/swisspost-internet-header/p-2180a93f.js +6 -0
- package/dist/swisspost-internet-header/p-25add306.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f63740ff.system.js → p-28a03b44.system.js} +1 -2
- package/dist/swisspost-internet-header/p-2a288ef4.js +1 -0
- package/dist/swisspost-internet-header/p-31171eac.js +1 -2
- package/dist/swisspost-internet-header/p-328af556.entry.js +1 -0
- package/dist/swisspost-internet-header/p-35d3c0e2.js +1 -0
- package/dist/swisspost-internet-header/{p-7f40ebc6.system.js → p-3d025bca.system.js} +1 -2
- package/dist/swisspost-internet-header/p-3d03ece0.entry.js +1 -0
- package/dist/swisspost-internet-header/p-3ff4fe31.entry.js +1 -0
- package/dist/swisspost-internet-header/p-425336ef.js +1 -0
- package/dist/swisspost-internet-header/p-458bd664.system.js +1 -0
- package/dist/swisspost-internet-header/{p-395c3737.system.entry.js → p-466371f3.system.entry.js} +1 -2
- package/dist/swisspost-internet-header/p-4ebec8fe.js +1 -2
- package/dist/swisspost-internet-header/{p-62693134.system.js → p-4f978679.system.js} +1 -2
- package/dist/swisspost-internet-header/p-50db8a7b.js +1 -0
- package/dist/swisspost-internet-header/p-833cd107.js +2 -3
- package/dist/swisspost-internet-header/p-840aa5c6.js +1 -2
- package/dist/swisspost-internet-header/p-8e23a792.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-925f5e31.js +1 -0
- package/dist/swisspost-internet-header/p-941fb537.system.js +1 -2
- package/dist/swisspost-internet-header/p-95753443.system.js +1 -0
- package/dist/swisspost-internet-header/p-9a06a83e.entry.js +1 -0
- package/dist/swisspost-internet-header/p-9b4d5e90.system.js +1 -2
- package/dist/swisspost-internet-header/{p-6f44c74a.system.entry.js → p-9fecd3e2.system.entry.js} +1 -2
- package/dist/swisspost-internet-header/{p-8a6c2961.system.js → p-a0ddb772.system.js} +1 -2
- package/dist/swisspost-internet-header/p-a119b38d.js +1 -2
- package/dist/swisspost-internet-header/p-a39139a9.js +1 -2
- package/dist/swisspost-internet-header/p-a74b380d.js +1 -2
- package/dist/swisspost-internet-header/p-af355dbc.system.js +1 -2
- package/dist/swisspost-internet-header/p-b180a9c6.js +1 -0
- package/dist/swisspost-internet-header/p-b3014611.system.js +1 -2
- package/dist/swisspost-internet-header/p-b5c47ef8.system.js +1 -2
- package/dist/swisspost-internet-header/p-bac2d2ca.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-bbd5ae03.js +1 -0
- package/dist/swisspost-internet-header/{p-e5408b13.system.entry.js → p-bfb5f92f.system.entry.js} +1 -2
- package/dist/swisspost-internet-header/{p-9246a004.system.js → p-c02cbb1b.system.js} +1 -2
- package/dist/swisspost-internet-header/p-c3a2dbaf.js +1 -2
- package/dist/swisspost-internet-header/p-c47dfca4.entry.js +1 -0
- package/dist/swisspost-internet-header/p-c58c0905.js +1 -0
- package/dist/swisspost-internet-header/p-c97c081c.js +1 -0
- package/dist/swisspost-internet-header/p-cb1c5219.js +11 -0
- package/dist/swisspost-internet-header/p-ce698eb4.entry.js +1 -0
- package/dist/swisspost-internet-header/p-d3f4cffd.system.js +1 -0
- package/dist/swisspost-internet-header/p-d7e221af.system.js +1 -2
- package/dist/swisspost-internet-header/{p-b0447498.system.entry.js → p-d91c7eb7.system.entry.js} +1 -2
- package/dist/swisspost-internet-header/p-dc2f1d20.js +1 -2
- package/dist/swisspost-internet-header/{p-a7405b55.system.js → p-de624726.system.js} +1 -2
- package/dist/swisspost-internet-header/p-e0f54a55.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-e2a9f24d.entry.js +1 -0
- package/dist/swisspost-internet-header/p-e7934b4e.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-ec432905.entry.js +1 -0
- package/dist/swisspost-internet-header/p-ecb3a8d3.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-ef26af95.system.js +1 -2
- package/dist/swisspost-internet-header/p-f77d823e.system.js +6 -0
- package/dist/swisspost-internet-header/swisspost-internet-header.css +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -2
- package/package.json +3 -2
- package/dist/cjs/bodyScrollLock.esm-59f17217.js.map +0 -1
- package/dist/cjs/if.component-31542061.js.map +0 -1
- package/dist/cjs/index-3216e4c8.js.map +0 -1
- package/dist/cjs/index-cab594bc.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/klp-widget.controller-c807789c.js.map +0 -1
- package/dist/cjs/language.service-8d541626.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/post-internet-breadcrumbs-ca62acb9.js.map +0 -1
- package/dist/cjs/post-internet-footer-a9ce4a24.js.map +0 -1
- package/dist/cjs/post-internet-header-83724799.js.map +0 -1
- package/dist/cjs/post-klp-login-widget-f4a6698f.js +0 -64
- package/dist/cjs/post-klp-login-widget-f4a6698f.js.map +0 -1
- package/dist/cjs/post-klp-login-widget.cjs.entry.js.map +0 -1
- package/dist/cjs/post-language-switch-51cbcb84.js.map +0 -1
- package/dist/cjs/post-language-switch.cjs.entry.js.map +0 -1
- package/dist/cjs/post-logo-4720a646.js.map +0 -1
- package/dist/cjs/post-logo.cjs.entry.js.map +0 -1
- package/dist/cjs/post-main-navigation-c9be2641.js.map +0 -1
- package/dist/cjs/post-main-navigation.cjs.entry.js.map +0 -1
- package/dist/cjs/post-meta-navigation-829b5afe.js.map +0 -1
- package/dist/cjs/post-meta-navigation.cjs.entry.js.map +0 -1
- package/dist/cjs/post-search-b96b8da5.js +0 -598
- package/dist/cjs/post-search-b96b8da5.js.map +0 -1
- package/dist/cjs/post-search.cjs.entry.js.map +0 -1
- package/dist/cjs/post-skiplinks-72a46892.js.map +0 -1
- package/dist/cjs/post-skiplinks.cjs.entry.js.map +0 -1
- package/dist/cjs/store-9f3cc50a.js.map +0 -1
- package/dist/cjs/svg-icon.component-980da2bc.js.map +0 -1
- package/dist/cjs/svg-sprite.component-6d4865e1.js.map +0 -1
- package/dist/cjs/swisspost-internet-breadcrumbs.cjs.entry.js.map +0 -1
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js.map +0 -1
- package/dist/cjs/swisspost-internet-header.cjs.js.map +0 -1
- package/dist/cjs/ui.service-7334148b.js.map +0 -1
- package/dist/cjs/utils-0a793763.js.map +0 -1
- package/dist/collection/assets/i18n/translations.js.map +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/breadcrumb-list.component.js.map +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/focus-trap.component.js.map +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-dropdown.component.js.map +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-links.component.js.map +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/overlay.component.js.map +0 -1
- package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.js.map +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-address.component.js.map +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-contact.component.js.map +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-custom.component.js.map +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-list.component.js.map +0 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-socials.component.js.map +0 -1
- package/dist/collection/components/post-internet-footer/post-internet-footer.js.map +0 -1
- package/dist/collection/components/post-internet-header/logo-animation/logo-animation.js.map +0 -1
- package/dist/collection/components/post-internet-header/logo-animation/logo-scale.js.map +0 -1
- package/dist/collection/components/post-internet-header/post-internet-header.js.map +0 -1
- package/dist/collection/components/post-klp-login-widget/klp-widget.controller.js.map +0 -1
- package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.js.map +0 -1
- package/dist/collection/components/post-language-switch/components/post-language-switch-list.js.map +0 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js.map +0 -1
- package/dist/collection/components/post-logo/post-logo.js.map +0 -1
- package/dist/collection/components/post-main-navigation/components/level-one-action.component.js.map +0 -1
- package/dist/collection/components/post-main-navigation/post-main-navigation.js.map +0 -1
- package/dist/collection/components/post-meta-navigation/post-meta-navigation.js.map +0 -1
- package/dist/collection/components/post-search/post-search.js.map +0 -1
- package/dist/collection/components/post-skiplinks/post-skiplinks.js.map +0 -1
- package/dist/collection/data/store.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/models/breadcrumbs.model.js.map +0 -1
- package/dist/collection/models/coveo.model.js.map +0 -1
- package/dist/collection/models/footer.model.js.map +0 -1
- package/dist/collection/models/general.model.js.map +0 -1
- package/dist/collection/models/geocode.model.js.map +0 -1
- package/dist/collection/models/header.model.js.map +0 -1
- package/dist/collection/models/implementor.model.js.map +0 -1
- package/dist/collection/models/language.model.js.map +0 -1
- package/dist/collection/models/track-and-trace.model.js.map +0 -1
- package/dist/collection/services/config.service.js.map +0 -1
- package/dist/collection/services/language.service.js.map +0 -1
- package/dist/collection/services/route.service.js.map +0 -1
- package/dist/collection/services/search/coveo.service.js.map +0 -1
- package/dist/collection/services/search/coveo.settings.js.map +0 -1
- package/dist/collection/services/search/parcel.service.js.map +0 -1
- package/dist/collection/services/search/places.service.js.map +0 -1
- package/dist/collection/services/search/places.settings.js.map +0 -1
- package/dist/collection/services/search/search-utilities.js.map +0 -1
- package/dist/collection/services/search/search.service.js.map +0 -1
- package/dist/collection/services/ui.service.js.map +0 -1
- package/dist/collection/utils/highlighted.component.js.map +0 -1
- package/dist/collection/utils/if.component.js.map +0 -1
- package/dist/collection/utils/scrollparent.js.map +0 -1
- package/dist/collection/utils/svg-icon.component.js.map +0 -1
- package/dist/collection/utils/svg-sprite.component.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/bodyScrollLock.esm.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/klp-widget.controller.js.map +0 -1
- package/dist/components/language.service.js.map +0 -1
- package/dist/components/post-klp-login-widget.js.map +0 -1
- package/dist/components/post-klp-login-widget2.js.map +0 -1
- package/dist/components/post-language-switch.js.map +0 -1
- package/dist/components/post-language-switch2.js.map +0 -1
- package/dist/components/post-logo.js.map +0 -1
- package/dist/components/post-logo2.js.map +0 -1
- package/dist/components/post-main-navigation.js.map +0 -1
- package/dist/components/post-main-navigation2.js.map +0 -1
- package/dist/components/post-meta-navigation.js.map +0 -1
- package/dist/components/post-meta-navigation2.js.map +0 -1
- package/dist/components/post-search.js.map +0 -1
- package/dist/components/post-search2.js.map +0 -1
- package/dist/components/post-skiplinks.js.map +0 -1
- package/dist/components/post-skiplinks2.js.map +0 -1
- package/dist/components/store.js.map +0 -1
- package/dist/components/svg-icon.component.js.map +0 -1
- package/dist/components/svg-sprite.component.js.map +0 -1
- package/dist/components/swisspost-internet-breadcrumbs.js.map +0 -1
- package/dist/components/swisspost-internet-footer.js.map +0 -1
- package/dist/components/swisspost-internet-header.js.map +0 -1
- package/dist/components/ui.service.js.map +0 -1
- package/dist/components/utils.js.map +0 -1
- package/dist/esm/bodyScrollLock.esm-afcc00e3.js.map +0 -1
- package/dist/esm/if.component-d88d9e48.js.map +0 -1
- package/dist/esm/index-a2152ff5.js.map +0 -1
- package/dist/esm/index-d2256e06.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/klp-widget.controller-44b1ee83.js.map +0 -1
- package/dist/esm/language.service-e10417e6.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/post-internet-breadcrumbs-e0490c32.js.map +0 -1
- package/dist/esm/post-internet-footer-d22179a6.js.map +0 -1
- package/dist/esm/post-internet-header-a57b1101.js.map +0 -1
- package/dist/esm/post-klp-login-widget-d10825d0.js +0 -62
- package/dist/esm/post-klp-login-widget-d10825d0.js.map +0 -1
- package/dist/esm/post-klp-login-widget.entry.js.map +0 -1
- package/dist/esm/post-language-switch-8eb4e9ed.js.map +0 -1
- package/dist/esm/post-language-switch.entry.js.map +0 -1
- package/dist/esm/post-logo-319224f0.js.map +0 -1
- package/dist/esm/post-logo.entry.js.map +0 -1
- package/dist/esm/post-main-navigation-cc9da7b1.js.map +0 -1
- package/dist/esm/post-main-navigation.entry.js.map +0 -1
- package/dist/esm/post-meta-navigation-6fd33a79.js.map +0 -1
- package/dist/esm/post-meta-navigation.entry.js.map +0 -1
- package/dist/esm/post-search-dbf07842.js +0 -596
- package/dist/esm/post-search-dbf07842.js.map +0 -1
- package/dist/esm/post-search.entry.js.map +0 -1
- package/dist/esm/post-skiplinks-caa68a25.js.map +0 -1
- package/dist/esm/post-skiplinks.entry.js.map +0 -1
- package/dist/esm/store-d0d3a586.js.map +0 -1
- package/dist/esm/svg-icon.component-bf11f33c.js.map +0 -1
- package/dist/esm/svg-sprite.component-bc8c39ee.js.map +0 -1
- package/dist/esm/swisspost-internet-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/swisspost-internet-footer.entry.js.map +0 -1
- package/dist/esm/swisspost-internet-header.entry.js.map +0 -1
- package/dist/esm/swisspost-internet-header.js.map +0 -1
- package/dist/esm/ui.service-22f2c593.js.map +0 -1
- package/dist/esm/utils-c8805f81.js.map +0 -1
- package/dist/esm-es5/bodyScrollLock.esm-afcc00e3.js.map +0 -1
- package/dist/esm-es5/if.component-d88d9e48.js.map +0 -1
- package/dist/esm-es5/index-a2152ff5.js.map +0 -1
- package/dist/esm-es5/index-d2256e06.js.map +0 -1
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/klp-widget.controller-44b1ee83.js.map +0 -1
- package/dist/esm-es5/language.service-e10417e6.js.map +0 -1
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/post-internet-breadcrumbs-e0490c32.js +0 -7
- package/dist/esm-es5/post-internet-breadcrumbs-e0490c32.js.map +0 -1
- package/dist/esm-es5/post-internet-footer-d22179a6.js.map +0 -1
- package/dist/esm-es5/post-internet-header-a57b1101.js +0 -2
- package/dist/esm-es5/post-internet-header-a57b1101.js.map +0 -1
- package/dist/esm-es5/post-klp-login-widget-d10825d0.js +0 -2
- package/dist/esm-es5/post-klp-login-widget-d10825d0.js.map +0 -1
- package/dist/esm-es5/post-klp-login-widget.entry.js.map +0 -1
- package/dist/esm-es5/post-language-switch-8eb4e9ed.js +0 -2
- package/dist/esm-es5/post-language-switch-8eb4e9ed.js.map +0 -1
- package/dist/esm-es5/post-language-switch.entry.js.map +0 -1
- package/dist/esm-es5/post-logo-319224f0.js.map +0 -1
- package/dist/esm-es5/post-logo.entry.js.map +0 -1
- package/dist/esm-es5/post-main-navigation-cc9da7b1.js +0 -2
- package/dist/esm-es5/post-main-navigation-cc9da7b1.js.map +0 -1
- package/dist/esm-es5/post-main-navigation.entry.js.map +0 -1
- package/dist/esm-es5/post-meta-navigation-6fd33a79.js +0 -2
- package/dist/esm-es5/post-meta-navigation-6fd33a79.js.map +0 -1
- package/dist/esm-es5/post-meta-navigation.entry.js.map +0 -1
- package/dist/esm-es5/post-search-dbf07842.js +0 -2
- package/dist/esm-es5/post-search-dbf07842.js.map +0 -1
- package/dist/esm-es5/post-search.entry.js.map +0 -1
- package/dist/esm-es5/post-skiplinks-caa68a25.js.map +0 -1
- package/dist/esm-es5/post-skiplinks.entry.js.map +0 -1
- package/dist/esm-es5/store-d0d3a586.js.map +0 -1
- package/dist/esm-es5/svg-icon.component-bf11f33c.js.map +0 -1
- package/dist/esm-es5/svg-sprite.component-bc8c39ee.js.map +0 -1
- package/dist/esm-es5/swisspost-internet-breadcrumbs.entry.js.map +0 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js.map +0 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js.map +0 -1
- package/dist/esm-es5/swisspost-internet-header.js.map +0 -1
- package/dist/esm-es5/ui.service-22f2c593.js.map +0 -1
- package/dist/esm-es5/utils-c8805f81.js.map +0 -1
- package/dist/swisspost-internet-header/index.esm.js.map +0 -1
- package/dist/swisspost-internet-header/p-06b24818.system.js +0 -2
- package/dist/swisspost-internet-header/p-06b24818.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-06f51515.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-101fc026.system.js +0 -2
- package/dist/swisspost-internet-header/p-101fc026.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-15b7f849.js +0 -2
- package/dist/swisspost-internet-header/p-15b7f849.js.map +0 -1
- package/dist/swisspost-internet-header/p-1e0c73ba.js +0 -7
- package/dist/swisspost-internet-header/p-1e0c73ba.js.map +0 -1
- package/dist/swisspost-internet-header/p-1e8226df.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-1fd8561a.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-240ae9b0.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-31171eac.js.map +0 -1
- package/dist/swisspost-internet-header/p-31512bdc.js +0 -12
- package/dist/swisspost-internet-header/p-31512bdc.js.map +0 -1
- package/dist/swisspost-internet-header/p-3503bc8d.system.js +0 -7
- package/dist/swisspost-internet-header/p-3503bc8d.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-395c3737.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-4703a3df.js +0 -2
- package/dist/swisspost-internet-header/p-4703a3df.js.map +0 -1
- package/dist/swisspost-internet-header/p-48af8686.entry.js +0 -2
- package/dist/swisspost-internet-header/p-48af8686.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-4ebec8fe.js.map +0 -1
- package/dist/swisspost-internet-header/p-520ce5c4.system.js +0 -2
- package/dist/swisspost-internet-header/p-520ce5c4.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-61eca4db.system.entry.js +0 -2
- package/dist/swisspost-internet-header/p-61eca4db.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-62693134.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-6cb25884.system.entry.js +0 -2
- package/dist/swisspost-internet-header/p-6cb25884.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-6f44c74a.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-7253bc45.entry.js +0 -2
- package/dist/swisspost-internet-header/p-7253bc45.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-7c1b1c28.js +0 -2
- package/dist/swisspost-internet-header/p-7c1b1c28.js.map +0 -1
- package/dist/swisspost-internet-header/p-7ccd3ade.system.entry.js +0 -2
- package/dist/swisspost-internet-header/p-7ccd3ade.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-7f40ebc6.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-83151762.entry.js +0 -2
- package/dist/swisspost-internet-header/p-83151762.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-833cd107.js.map +0 -1
- package/dist/swisspost-internet-header/p-840aa5c6.js.map +0 -1
- package/dist/swisspost-internet-header/p-863f792c.system.js +0 -2
- package/dist/swisspost-internet-header/p-863f792c.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-8a1e8d50.js +0 -2
- package/dist/swisspost-internet-header/p-8a1e8d50.js.map +0 -1
- package/dist/swisspost-internet-header/p-8a6c2961.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-8f014e72.entry.js +0 -2
- package/dist/swisspost-internet-header/p-8f014e72.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-90808312.js +0 -2
- package/dist/swisspost-internet-header/p-90808312.js.map +0 -1
- package/dist/swisspost-internet-header/p-9246a004.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-941fb537.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-9b4d5e90.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-9b9a57fe.entry.js +0 -2
- package/dist/swisspost-internet-header/p-9b9a57fe.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-a119b38d.js.map +0 -1
- package/dist/swisspost-internet-header/p-a39139a9.js.map +0 -1
- package/dist/swisspost-internet-header/p-a7405b55.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-a74b380d.js.map +0 -1
- package/dist/swisspost-internet-header/p-aa41c50e.entry.js +0 -2
- package/dist/swisspost-internet-header/p-aa41c50e.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-af355dbc.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-b0447498.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-b261a78e.system.js +0 -2
- package/dist/swisspost-internet-header/p-b261a78e.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-b3014611.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-b3910061.system.js +0 -2
- package/dist/swisspost-internet-header/p-b3910061.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-b5c47ef8.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-c1fdbc33.entry.js +0 -2
- package/dist/swisspost-internet-header/p-c1fdbc33.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-c3a2dbaf.js.map +0 -1
- package/dist/swisspost-internet-header/p-c6e9209d.js +0 -2
- package/dist/swisspost-internet-header/p-c6e9209d.js.map +0 -1
- package/dist/swisspost-internet-header/p-c9391554.js +0 -2
- package/dist/swisspost-internet-header/p-c9391554.js.map +0 -1
- package/dist/swisspost-internet-header/p-cb106742.system.entry.js +0 -2
- package/dist/swisspost-internet-header/p-cb106742.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-d4781a7f.system.entry.js +0 -2
- package/dist/swisspost-internet-header/p-d4781a7f.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-d7e221af.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-dab1f2dd.js +0 -2
- package/dist/swisspost-internet-header/p-dab1f2dd.js.map +0 -1
- package/dist/swisspost-internet-header/p-dba0041e.js +0 -2
- package/dist/swisspost-internet-header/p-dba0041e.js.map +0 -1
- package/dist/swisspost-internet-header/p-dc2f1d20.js.map +0 -1
- package/dist/swisspost-internet-header/p-ded05f0c.js +0 -2
- package/dist/swisspost-internet-header/p-ded05f0c.js.map +0 -1
- package/dist/swisspost-internet-header/p-e5408b13.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-edde6c7b.entry.js +0 -2
- package/dist/swisspost-internet-header/p-edde6c7b.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-ef26af95.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-f1f14a7f.entry.js +0 -2
- package/dist/swisspost-internet-header/p-f1f14a7f.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-f63740ff.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-f7f9d451.entry.js +0 -2
- package/dist/swisspost-internet-header/p-f7f9d451.entry.js.map +0 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,n,e,o){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{f(o.next(t))}catch(t){r(t)}}function a(t){try{f(o["throw"](t))}catch(t){r(t)}}function f(t){t.done?e(t.value):i(t.value).then(s,a)}f((o=o.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(n){return f([t,n])}}function f(a){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(e=0)),e)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){e.label=a[1];break}if(a[0]===6&&e.label<r[1]){e.label=r[1];r=a;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(a);break}if(r[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-b5c47ef8.system.js","./p-941fb537.system.js","./p-1e8226df.system.js","./p-ef26af95.system.js","./p-06f51515.system.js","./p-f63740ff.system.js"],(function(t){"use strict";var n,e,o,i,r,s,a,f,u,l,d;return{setters:[function(t){n=t.h;e=t.r;o=t.c;i=t.H;r=t.g},function(t){s=t.S},function(t){a=t.S},function(t){f=t.s},function(t){u=t.e;l=t.u},function(t){d=t.t}],execute:function(){var c=function(t){var e;if(((e=f.localizedConfig)===null||e===void 0?void 0:e.header)===undefined)return;var o=f.localizedConfig.header;return n("nav",{class:"language-switch-dropdown",ref:function(n){return t.dropdownRef(n)},"aria-label":o.translations.navLangAriaLabel},n("ul",{"aria-label":d("Change language")},t.navLang.filter((function(t){return!t.isCurrent})).map((function(e){var o=e.url?"a":"button";return n("li",{key:e.lang},n(o,{onClick:function(){return t.switchLanguage(e)},href:e.url,lang:e.lang,title:e.title},n("span",{class:"visually-hidden"},e.title),n("span",{"aria-hidden":"true"},e.text)))}))))};var p='@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:700;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Bold.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Bold.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:700;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-BdIt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-BdIt.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:400;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Rg.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Rg.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:400;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-It.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-It.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:300;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Lt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Lt.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:300;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-LtIt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-LtIt.woff") format("woff")}.visually-hidden{position:absolute;width:1px;height:1px;border:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}.btn-blank{background-color:rgba(0,0,0,0);border:none;border-radius:0;padding:0}.nav-link,.language-switch-dropdown a,.language-switch-dropdown button{outline:none;outline-offset:2px;text-decoration:none;color:rgba(0,0,0,.8);-webkit-transition:color 200ms;transition:color 200ms;background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;border:0;margin:0;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:.5rem}.nav-link:is(:focus-visible,:focus-within,.pretend-focus),.language-switch-dropdown a:is(:focus-visible,:focus-within,.pretend-focus),.language-switch-dropdown button:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.nav-link:hover,.language-switch-dropdown a:hover,.language-switch-dropdown button:hover,.nav-link:focus,.language-switch-dropdown a:focus,.language-switch-dropdown button:focus{color:#000}.nav-link:is(:focus-visible,:focus-within,.pretend-focus),.language-switch-dropdown a:is(:focus-visible,:focus-within,.pretend-focus),.language-switch-dropdown button:is(:focus-visible,:focus-within,.pretend-focus){z-index:1;position:relative}.nav-link>svg,.language-switch-dropdown a>svg,.language-switch-dropdown button>svg{width:1.4em;height:1.4em;-ms-flex-negative:0;flex-shrink:0}.nav-link>span,.language-switch-dropdown a>span,.language-switch-dropdown button>span{-ms-flex-negative:1;flex-shrink:1}.no-list,.language-switch-dropdown ul{list-style:none;padding-left:0;margin-top:0;margin-bottom:0}*,:host,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host{font-family:"Frutiger Neue For Post",system-ui,sans-serif}button{font:inherit;padding:0}a,button{border-radius:4px;outline:none;outline-offset:2px}a:is(:focus-visible,:focus-within,.pretend-focus),button:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color);border-radius:4px}img,svg{max-width:100%;max-height:100%}@media (forced-colors: active){svg{color:#fff}}.box>*:first-child{margin-top:0}.box>*:last-child{margin-bottom:0}.mirrored{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.bold{font-weight:700}.light{font-weight:300}.d-flex{display:-ms-flexbox;display:flex}.d-inline-flex{display:-ms-inline-flexbox;display:inline-flex}.align-items-center{-ms-flex-align:center;align-items:center}@media (min-width: 1441px){.wide-container{margin:0 auto;max-width:1440px}}@media (max-width: 599.98px){.container{padding-right:16px;padding-left:16px}}@media (min-width: 600px)and (max-width: 1023.98px){.container{padding-right:32px;padding-left:32px}}@media (min-width: 1024px){.container{padding-right:40px;padding-left:40px}}@media (max-width: -0.02px){.hidden-xs{display:none}}@media (max-width: 399.98px){.hidden-sm{display:none}}@media (max-width: 599.98px){.hidden-rg{display:none}}@media (max-width: 779.98px){.hidden-md{display:none}}@media (max-width: 1023.98px){.hidden-lg{display:none}}@media (max-width: 1279.98px){.hidden-xl{display:none}}@media (max-width: 1440.98px){.hidden-xxl{display:none}}:host{--separator-display:none;--separator-height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch}:host::before{position:relative;content:"";display:var(--separator-display);height:var(--separator-height);border-left:1px solid #e6e6e6}.lang-btn{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;padding:0 1rem;border:none;-webkit-box-shadow:none;box-shadow:none;background:none;text-transform:uppercase;cursor:pointer;color:rgba(0,0,0,.8)}.lang-btn:hover,.lang-btn:focus{color:#000;position:relative;z-index:1}.lang-btn svg{width:1.5em;height:1.5em;-webkit-transition:-webkit-transform 250ms;transition:-webkit-transform 250ms;transition:transform 250ms;transition:transform 250ms, -webkit-transform 250ms}.lang-btn svg.rotated{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.language-switch{position:relative;-ms-flex-item-align:stretch;align-self:stretch;height:100%}.language-switch.list{margin-top:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.current-language{text-transform:uppercase;border-right:1px solid #ccc;padding:.5rem 1rem .5rem 0}.dropdown .language-switch-dropdown{position:absolute;top:100%;width:100%;background:#fff;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2),0 2px 6px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.2),0 2px 6px 2px rgba(0,0,0,.1);z-index:1;-webkit-transform:scale(0.1);transform:scale(0.1);-webkit-transform-origin:center top;transform-origin:center top;-webkit-transition:-webkit-transform .1s;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s, -webkit-transform .1s;margin-top:var(--language-dropdown-margin-top)}@media (prefers-reduced-motion: reduce){.dropdown .language-switch-dropdown{-webkit-transition:none;transition:none}}.dropdown .language-switch-dropdown.open{-webkit-transform:scale(1);transform:scale(1)}.list .language-switch-dropdown ul{display:-ms-flexbox;display:flex}.list .language-switch-dropdown ul>li+li{border-left:1px solid #ccc}.language-switch-dropdown a,.language-switch-dropdown button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:3rem;padding:0 .25rem;text-transform:uppercase;cursor:pointer;-webkit-transition:background-color 200ms,color 200ms;transition:background-color 200ms,color 200ms}.language-switch-dropdown a:hover,.language-switch-dropdown a:focus,.language-switch-dropdown button:hover,.language-switch-dropdown button:focus{background:#f4f3f1}.language-switch-dropdown a span,.language-switch-dropdown button span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list .language-switch-dropdown a,.list .language-switch-dropdown button{color:#000;height:auto;padding:.5rem 1rem}';var g=p;var h=t("P",function(){function t(t){e(this,t);this.dropdownToggled=o(this,"dropdownToggled",7);this.languageChanged=o(this,"languageChanged",7);this.mode=undefined;this.langSwitchOpen=false}t.prototype.componentWillUpdate=function(){var t=this;if(this.languageSwitchDropdown&&!this.langSwitchOpen&&this.mode=="dropdown"){this.languageSwitchDropdown.classList.remove("open");if(u(this.languageSwitchDropdown,"transform")&&!l()){return new Promise((function(n){var e;(e=t.languageSwitchDropdown)===null||e===void 0?void 0:e.addEventListener("transitionend",(function(t){if(t.propertyName==="transform"){n(true)}}))}))}}};t.prototype.componentDidUpdate=function(){if(this.languageSwitchDropdown&&this.langSwitchOpen){this.languageSwitchDropdown.getBoundingClientRect();this.languageSwitchDropdown.classList.add("open")}};t.prototype.toggleDropdown=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){this.langSwitchOpen=t!==null&&t!==void 0?t:!this.langSwitchOpen;this.dropdownToggled.emit({open:this.langSwitchOpen,element:this.host});return[2,this.langSwitchOpen]}))}))};t.prototype.switchLanguage=function(t){this.languageChanged.emit(t.lang);this.toggleDropdown(false)};t.prototype.getMergedLanguageConfig=function(t,n){if(n===undefined){return t}return t.map((function(t){return Object.assign({},t,n.find((function(n){return n.lang===t.lang})))}))};t.prototype.setDropdownRef=function(t){this.languageSwitchDropdown=t};t.prototype.render=function(){var t=this;var e;if(((e=f.localizedConfig)===null||e===void 0?void 0:e.header)===undefined)return;var o=f.localizedConfig.header;var r=this.getMergedLanguageConfig(o.navLang,f.languageSwitchOverrides);return n(i,null,n("div",{class:"language-switch ".concat(this.mode)},n(s,null),this.mode==="dropdown"?n("button",{class:"lang-btn","aria-expanded":"".concat(this.langSwitchOpen),"aria-haspopup":"listbox",onClick:function(){return t.toggleDropdown()}},n("span",{class:"visually-hidden"},o.translations.navLangAriaLabel,", ",d("Current language is English")),n("span",{"aria-hidden":"true"},f.currentLanguage),n(a,{name:"pi-arrow-down",classNames:this.langSwitchOpen?"rotated":""})):n("span",{class:"bold current-language"},n("span",{class:"visually-hidden"},d("Current language is English")),n("span",null,f.currentLanguage)),this.langSwitchOpen||this.mode==="list"?n(c,{navLang:r,switchLanguage:function(n){return t.switchLanguage(n)},dropdownRef:function(n){return n!==undefined&&t.setDropdownRef(n)}}):null))};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());h.style=g}}}));
|
|
2
|
-
//# sourceMappingURL=p-863f792c.system.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["PostLanguageSwitchList","props","_a","state","localizedConfig","header","undefined","config","h","class","ref","e","dropdownRef","translations","navLangAriaLabel","translate","navLang","filter","lang","isCurrent","map","TagName","url","key","onClick","switchLanguage","href","title","text","postLanguageSwitchCss","PostLanguageSwitchStyle0","PostLanguageSwitch","exports","class_1","prototype","componentWillUpdate","_this","this","languageSwitchDropdown","langSwitchOpen","mode","classList","remove","elementHasTransition","userPrefersReducedMotion","Promise","resolve","addEventListener","event","propertyName","componentDidUpdate","getBoundingClientRect","add","toggleDropdown","force","dropdownToggled","emit","open","element","host","newLang","languageChanged","getMergedLanguageConfig","overrides","langConfig","Object","assign","find","l","setDropdownRef","render","mergedConfig","languageSwitchOverrides","Host","concat","SvgSprite","currentLanguage","SvgIcon","name","classNames"],"sources":["src/components/post-language-switch/components/post-language-switch-list.tsx","src/components/post-language-switch/post-language-switch.scss?tag=post-language-switch&encapsulation=shadow","src/components/post-language-switch/post-language-switch.tsx"],"sourcesContent":["import { h } from '@stencil/core';\nimport { NavLangEntity } from '../../../models/header.model';\nimport { translate } from '../../../services/language.service';\nimport { state } from '../../../data/store';\n\nexport const PostLanguageSwitchList = (props: {\n navLang: NavLangEntity[];\n switchLanguage: (lang: NavLangEntity) => void;\n dropdownRef: (element: HTMLElement | undefined) => void;\n}) => {\n if (state.localizedConfig?.header === undefined) return;\n const config = state.localizedConfig.header;\n\n return (\n <nav\n class=\"language-switch-dropdown\"\n ref={e => props.dropdownRef(e)}\n aria-label={config.translations.navLangAriaLabel}\n >\n <ul aria-label={translate('Change language')}>\n {props.navLang\n .filter(lang => !lang.isCurrent)\n .map(lang => {\n const TagName = lang.url ? 'a' : 'button';\n return (\n <li key={lang.lang}>\n <TagName\n onClick={() => props.switchLanguage(lang)}\n href={lang.url}\n lang={lang.lang}\n title={lang.title}\n >\n <span class=\"visually-hidden\">{lang.title}</span>\n <span aria-hidden=\"true\">{lang.text}</span>\n </TagName>\n </li>\n );\n })}\n </ul>\n </nav>\n );\n};\n","@use '@swisspost/design-system-styles/variables/color';\n@use '@swisspost/design-system-styles/functions';\n@use '../../utils/utils.scss';\n\n:host {\n --separator-display: none;\n --separator-height: 100%;\n\n display: flex;\n align-items: center;\n align-self: stretch;\n\n &::before {\n position: relative;\n content: '';\n display: var(--separator-display);\n height: var(--separator-height);\n border-left: 1px solid color.$gray-10;\n }\n}\n\n.lang-btn {\n display: flex;\n align-items: center;\n height: 100%;\n padding: 0 1rem;\n border: none;\n box-shadow: none;\n background: none;\n text-transform: uppercase;\n cursor: pointer;\n color: rgba(color.$black, 0.8);\n\n &:hover,\n &:focus {\n color: black;\n position: relative;\n z-index: 1;\n }\n\n svg {\n width: 1.5em;\n height: 1.5em;\n transition: transform 250ms;\n\n &.rotated {\n transform: rotate(180deg);\n }\n }\n}\n\n.language-switch {\n position: relative;\n align-self: stretch;\n height: 100%;\n\n &.list {\n margin-top: 1.5rem;\n display: flex;\n align-items: center;\n }\n}\n\n.current-language {\n text-transform: uppercase;\n border-right: 1px solid color.$gray-20;\n padding: 0.5rem 1rem 0.5rem 0;\n}\n\n.language-switch-dropdown {\n .dropdown & {\n position: absolute;\n top: 100%;\n width: 100%;\n background: white;\n box-shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 2px 6px 2px rgb(0 0 0 / 10%);\n z-index: 1;\n transform: scale(0.1);\n transform-origin: center top;\n transition: transform 0.1s;\n margin-top: var(--language-dropdown-margin-top);\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n\n &.open {\n transform: scale(1);\n }\n }\n\n ul {\n @extend %no-list;\n\n .list & {\n display: flex;\n\n > li + li {\n border-left: 1px solid color.$gray-20;\n }\n }\n }\n\n a,\n button {\n @extend %nav-link;\n\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: functions.px-to-rem(48px);\n padding: 0 0.25rem;\n text-transform: uppercase;\n cursor: pointer;\n transition: background-color 200ms, color 200ms;\n\n &:hover,\n &:focus {\n background: color.$gray-background;\n }\n\n span {\n // Worst case scenario\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .list & {\n color: black;\n height: auto;\n padding: 0.5rem 1rem;\n }\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport { SvgSprite } from '../../utils/svg-sprite.component';\nimport { SvgIcon } from '../../utils/svg-icon.component';\nimport { state } from '../../data/store';\nimport {\n DropdownElement,\n DropdownEvent,\n HasDropdown,\n NavLangEntity,\n} from '../../models/header.model';\nimport { elementHasTransition, userPrefersReducedMotion } from '../../services/ui.service';\nimport { translate } from '../../services/language.service';\nimport { PostLanguageSwitchList } from './components/post-language-switch-list';\nimport { IAvailableLanguage } from '../../models/language.model';\n\n@Component({\n tag: 'post-language-switch',\n styleUrl: 'post-language-switch.scss',\n shadow: true,\n})\nexport class PostLanguageSwitch implements HasDropdown {\n @Prop() mode: 'dropdown' | 'list';\n @State() langSwitchOpen = false;\n @Element() host: DropdownElement;\n @Event() dropdownToggled: EventEmitter<DropdownEvent>;\n @Event({ bubbles: true }) languageChanged: EventEmitter<string>;\n private languageSwitchDropdown: HTMLElement | undefined;\n\n componentWillUpdate() {\n // Check if language switch got set to close and if mode is dropdown\n if (this.languageSwitchDropdown && !this.langSwitchOpen && this.mode == 'dropdown') {\n this.languageSwitchDropdown.classList.remove('open');\n\n // Check if element has transition applied and whether user prefers to see animations or not\n if (\n elementHasTransition(this.languageSwitchDropdown, 'transform') &&\n !userPrefersReducedMotion()\n ) {\n // Wait for CSS transition 'transform' to end before continuing\n return new Promise<boolean>(resolve => {\n this.languageSwitchDropdown?.addEventListener('transitionend', event => {\n if (event.propertyName === 'transform') {\n resolve(true);\n }\n });\n });\n }\n }\n }\n\n componentDidUpdate() {\n // Language switch got set to open\n if (this.languageSwitchDropdown && this.langSwitchOpen) {\n // Force browser to redraw/refresh DOM before adding 'open' class\n this.languageSwitchDropdown.getBoundingClientRect();\n this.languageSwitchDropdown.classList.add('open');\n }\n }\n\n /**\n * Open or close the language switch programatically\n * @param force Boolean to force a state\n * @returns Boolean indicating new state\n */\n @Method()\n async toggleDropdown(force?: boolean) {\n this.langSwitchOpen = force ?? !this.langSwitchOpen;\n this.dropdownToggled.emit({ open: this.langSwitchOpen, element: this.host });\n return this.langSwitchOpen;\n }\n\n /**\n * Emit a language change to the parent component\n *\n * @param newLang Config of the new language\n */\n switchLanguage(newLang: NavLangEntity) {\n this.languageChanged.emit(newLang.lang);\n this.toggleDropdown(false);\n }\n\n private getMergedLanguageConfig(config: NavLangEntity[], overrides?: IAvailableLanguage[]) {\n if (overrides === undefined) {\n return config;\n }\n\n return config.map(langConfig =>\n Object.assign(\n {},\n langConfig,\n overrides.find(l => l.lang === langConfig.lang),\n ),\n );\n }\n\n private setDropdownRef(element: HTMLElement | undefined) {\n this.languageSwitchDropdown = element;\n }\n\n render() {\n if (state.localizedConfig?.header === undefined) return;\n const config = state.localizedConfig.header;\n const mergedConfig = this.getMergedLanguageConfig(\n config.navLang,\n state.languageSwitchOverrides,\n );\n\n return (\n <Host>\n <div class={`language-switch ${this.mode}`}>\n <SvgSprite />\n {this.mode === 'dropdown' ? (\n <button\n class=\"lang-btn\"\n aria-expanded={`${this.langSwitchOpen}`}\n aria-haspopup=\"listbox\"\n onClick={() => this.toggleDropdown()}\n >\n <span class=\"visually-hidden\">\n {config.translations.navLangAriaLabel}, {translate('Current language is English')}\n </span>\n <span aria-hidden=\"true\">{state.currentLanguage}</span>\n <SvgIcon name=\"pi-arrow-down\" classNames={this.langSwitchOpen ? 'rotated' : ''} />\n </button>\n ) : (\n <span class=\"bold current-language\">\n <span class=\"visually-hidden\">{translate('Current language is English')}</span>\n <span>{state.currentLanguage}</span>\n </span>\n )}\n {this.langSwitchOpen || this.mode === 'list' ? (\n <PostLanguageSwitchList\n navLang={mergedConfig}\n switchLanguage={e => this.switchLanguage(e)}\n dropdownRef={e => e !== undefined && this.setDropdownRef(e)}\n />\n ) : null}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i}from"./p-833cd107.js";import{s as o}from"./p-4ebec8fe.js";const n='@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:700;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Bold.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Bold.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:700;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-BdIt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-BdIt.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:400;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Rg.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Rg.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:400;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-It.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-It.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:300;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Lt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Lt.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:300;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-LtIt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-LtIt.woff") format("woff")}.visually-hidden{position:absolute;width:1px;height:1px;border:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}.btn-blank{background-color:rgba(0,0,0,0);border:none;border-radius:0;padding:0}.nav-link,.meta-link{outline:none;outline-offset:2px;text-decoration:none;color:rgba(0,0,0,.8);-webkit-transition:color 200ms;transition:color 200ms;background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;border:0;margin:0;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:.5rem}.nav-link:is(:focus-visible,:focus-within,.pretend-focus),.meta-link:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.nav-link:hover,.meta-link:hover,.nav-link:focus,.meta-link:focus{color:#000}.nav-link:is(:focus-visible,:focus-within,.pretend-focus),.meta-link:is(:focus-visible,:focus-within,.pretend-focus){z-index:1;position:relative}.nav-link>svg,.meta-link>svg{width:1.4em;height:1.4em;-ms-flex-negative:0;flex-shrink:0}.nav-link>span,.meta-link>span{-ms-flex-negative:1;flex-shrink:1}.no-list,.meta-list{list-style:none;padding-left:0;margin-top:0;margin-bottom:0}*,:host,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host{font-family:"Frutiger Neue For Post",system-ui,sans-serif}button{font:inherit;padding:0}a,button{border-radius:4px;outline:none;outline-offset:2px}a:is(:focus-visible,:focus-within,.pretend-focus),button:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color);border-radius:4px}img,svg{max-width:100%;max-height:100%}@media (forced-colors: active){svg{color:#fff}}.box>*:first-child{margin-top:0}.box>*:last-child{margin-bottom:0}.mirrored{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.bold{font-weight:700}.light{font-weight:300}.d-flex{display:-ms-flexbox;display:flex}.d-inline-flex{display:-ms-inline-flexbox;display:inline-flex}.align-items-center{-ms-flex-align:center;align-items:center}@media (min-width: 1441px){.wide-container{margin:0 auto;max-width:1440px}}@media (max-width: 599.98px){.container{padding-right:16px;padding-left:16px}}@media (min-width: 600px)and (max-width: 1023.98px){.container{padding-right:32px;padding-left:32px}}@media (min-width: 1024px){.container{padding-right:40px;padding-left:40px}}@media (max-width: -0.02px){.hidden-xs{display:none}}@media (max-width: 399.98px){.hidden-sm{display:none}}@media (max-width: 599.98px){.hidden-rg{display:none}}@media (max-width: 779.98px){.hidden-md{display:none}}@media (max-width: 1023.98px){.hidden-lg{display:none}}@media (max-width: 1279.98px){.hidden-xl{display:none}}@media (max-width: 1440.98px){.hidden-xxl{display:none}}:host{display:block;font-size:.875rem}.meta-container{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;min-height:3rem;background:#faf9f8}@media (min-width: 1441px){.meta-container:not(.full-width){margin:0 auto;max-width:1440px}}.meta-container.vertical{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;padding-top:2.5rem;padding-bottom:2.5rem}@media (max-width: 599.98px){.meta-container.vertical{padding-right:16px;padding-left:16px}}@media (min-width: 600px)and (max-width: 1023.98px){.meta-container.vertical{padding-right:32px;padding-left:32px}}@media (min-width: 1024px){.meta-container.vertical{padding-right:40px;padding-left:40px}}@media (min-width: 1024px){.meta-container.vertical{display:none}}.meta-container.horizontal ::slotted(*){--separator-display:block;--separator-height:2.125rem}.meta-container.horizontal::before{display:block;content:"";position:absolute;top:0px;height:var(--meta-header-height);background-color:#faf9f8;left:50%;width:50%}.horizontal .meta-navigation{position:relative;padding-right:1rem}.meta-list{display:-ms-flexbox;display:flex}.vertical .meta-list{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}.meta-link{font-size:.875rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 .5rem;min-height:2.125rem;border-radius:3px}.meta-link.active{background:#fc0;color:#000}.vertical .meta-link{color:#000;padding:0}.vertical .meta-link.active{padding:0 .5rem;margin-left:-0.5rem}';const r=n;const a=class{constructor(e){t(this,e);this.orientation=undefined;this.fullWidth=false}render(){var t,n;if(((t=o.localizedConfig)===null||t===void 0?void 0:t.header.navMeta)===undefined)return;const r=o.localizedConfig.header;return e(i,null,e("div",{class:`meta-container ${this.orientation}${this.fullWidth?" full-width":""}`},e("nav",{"aria-label":r.translations.navMetaAriaLabel,class:"meta-navigation"},e("ul",{class:"meta-list"},(n=r.navMeta)===null||n===void 0?void 0:n.filter((t=>!t.isHomeLink)).map((t=>e("li",{key:t.url},e("a",{class:{active:t.isActive,"meta-link":true},target:t.target,href:t.url},e("span",{"aria-hidden":"true"},t.text))))))),e("slot",null)))}};a.style=r;export{a as P};
|
|
2
|
-
//# sourceMappingURL=p-8a1e8d50.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["postMetaNavigationCss","PostMetaNavigationStyle0","PostMetaNavigation","render","_a","state","localizedConfig","header","navMeta","undefined","headerConfig","h","Host","class","this","orientation","fullWidth","translations","navMetaAriaLabel","_b","filter","meta","isHomeLink","map","key","url","active","isActive","target","href","text"],"sources":["src/components/post-meta-navigation/post-meta-navigation.scss?tag=post-meta-navigation&encapsulation=shadow","src/components/post-meta-navigation/post-meta-navigation.tsx"],"sourcesContent":["@use '@swisspost/design-system-styles/variables/color';\n@use '@swisspost/design-system-styles/functions';\n@use '../../utils/utils.scss';\n@use '../../utils/mixins.scss';\n\n:host {\n display: block;\n font-size: functions.px-to-rem(14px);\n}\n\n.meta-container {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n min-height: functions.px-to-rem(48px);\n\n background: color.$gray-background-light;\n\n @media (min-width: 1441px) {\n &:not(.full-width) {\n margin: 0 auto;\n max-width: 1440px;\n }\n }\n\n &.vertical {\n @include mixins.container-padding();\n\n flex-direction: column;\n align-items: flex-start;\n padding-top: 2.5rem;\n padding-bottom: 2.5rem;\n\n @include mixins.min(lg) {\n display: none;\n }\n }\n\n &.horizontal {\n ::slotted(*) {\n --separator-display: block;\n --separator-height: #{functions.px-to-rem(34px)};\n }\n\n &::before {\n display: block;\n content: '';\n position: absolute;\n top: 0px;\n height: var(--meta-header-height);\n background-color: color.$gray-background-light;\n left: 50%;\n width: 50%;\n }\n }\n}\n\n.meta-navigation {\n .horizontal & {\n position: relative;\n padding-right: 1rem;\n }\n}\n\n.meta-list {\n @extend %no-list;\n display: flex;\n\n .vertical & {\n flex-direction: column;\n align-items: flex-start;\n }\n}\n\n.meta-link {\n @extend %nav-link;\n\n font-size: functions.px-to-rem(14px);\n display: flex;\n align-items: center;\n padding: 0 0.5rem;\n min-height: functions.px-to-rem(34px);\n border-radius: 3px;\n\n &.active {\n background: color.$yellow;\n color: black;\n }\n\n .vertical & {\n color: black;\n padding: 0;\n\n &.active {\n padding: 0 0.5rem;\n margin-left: -0.5rem;\n }\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\nimport { state } from '../../data/store';\n\n@Component({\n tag: 'post-meta-navigation',\n styleUrl: 'post-meta-navigation.scss',\n shadow: true,\n})\nexport class PostMetaNavigation {\n @Prop() orientation: 'horizontal' | 'vertical';\n @Prop() fullWidth?: boolean = false;\n\n render() {\n if (state.localizedConfig?.header.navMeta === undefined) return;\n const headerConfig = state.localizedConfig.header;\n\n return (\n <Host>\n <div class={`meta-container ${this.orientation}${this.fullWidth ? ' full-width' : ''}`}>\n <nav aria-label={headerConfig.translations.navMetaAriaLabel} class=\"meta-navigation\">\n <ul class=\"meta-list\">\n {headerConfig.navMeta\n ?.filter(meta => !meta.isHomeLink)\n .map(meta => (\n <li key={meta.url}>\n <a\n class={{ 'active': meta.isActive, 'meta-link': true }}\n target={meta.target}\n href={meta.url}\n >\n <span aria-hidden=\"true\">{meta.text}</span>\n </a>\n </li>\n ))}\n </ul>\n </nav>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAwB,0/LAC9B,MAAAC,EAAeD,E,MCOFE,EAAkB,M,mEAEC,K,CAE9B,MAAAC,G,QACE,KAAIC,EAAAC,EAAMC,mBAAe,MAAAF,SAAA,SAAAA,EAAEG,OAAOC,WAAYC,UAAW,OACzD,MAAMC,EAAeL,EAAMC,gBAAgBC,OAE3C,OACEI,EAACC,EAAI,KACHD,EAAA,OAAKE,MAAO,kBAAkBC,KAAKC,cAAcD,KAAKE,UAAY,cAAgB,MAChFL,EAAA,oBAAiBD,EAAaO,aAAaC,iBAAkBL,MAAM,mBACjEF,EAAA,MAAIE,MAAM,cACPM,EAAAT,EAAaF,WAAO,MAAAW,SAAA,SAAAA,EACjBC,QAAOC,IAASA,EAAKC,aACtBC,KAAIF,GACHV,EAAA,MAAIa,IAAKH,EAAKI,KACZd,EAAA,KACEE,MAAO,CAAEa,OAAUL,EAAKM,SAAU,YAAa,MAC/CC,OAAQP,EAAKO,OACbC,KAAMR,EAAKI,KAEXd,EAAA,sBAAkB,QAAQU,EAAKS,YAM3CnB,EAAA,c"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["postSkiplinksCss","PostSkiplinksStyle0","PostSkiplinks","exports","class_1","prototype","getMainId","_a","document","querySelector","getAttribute","setFocus","tagname","rootHost","this","host","closest","focusable","focusMain","focusSearch","focusLogin","render","_this","config","state","localizedConfig","header","mainId","undefined","h","Host","class","translate","href","logo","logoLink","logoLinkTitle","SvgIcon","name","onClick","translations","navMainAriaLabel","concat","search","login"],"sources":["src/components/post-skiplinks/post-skiplinks.scss?tag=post-skiplinks","src/components/post-skiplinks/post-skiplinks.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.skiplinks {\n a {\n position: absolute;\n top: 0.5rem;\n left: 0.5rem;\n clip: rect(0 0 0 0);\n width: 1px;\n overflow: hidden;\n display: flex;\n align-items: center;\n padding: 0.25rem;\n background: white;\n\n &:focus-visible {\n position: absolute;\n clip: unset;\n width: auto;\n }\n }\n}\n","import { Component, Element, h, Host } from '@stencil/core';\nimport { state } from '../../data/store';\nimport { FocusableElement } from '../../models/header.model';\nimport { translate } from '../../services/language.service';\nimport { SvgIcon } from '../../utils/svg-icon.component';\n\n@Component({\n tag: 'post-skiplinks',\n styleUrl: 'post-skiplinks.scss',\n shadow: false,\n})\nexport class PostSkiplinks {\n @Element() host: HTMLPostSkiplinksElement;\n\n private getMainId() {\n return document.querySelector('main[id]')?.getAttribute('id');\n }\n\n private setFocus(tagname: string) {\n const rootHost = this.host.closest('.post-internet-header');\n if (!rootHost) {\n return;\n }\n\n const focusable = rootHost.querySelector<FocusableElement>(tagname);\n if (focusable) {\n focusable.setFocus();\n }\n }\n\n private focusMain() {\n this.setFocus('post-main-navigation');\n }\n\n private focusSearch() {\n this.setFocus('post-search');\n }\n\n private focusLogin() {\n this.setFocus('post-klp-login-widget');\n }\n\n render() {\n const config = state.localizedConfig?.header;\n const mainId = this.getMainId();\n\n if (config === undefined) {\n return;\n }\n\n return (\n <Host>\n <div class=\"skiplinks\">\n <ul class=\"no-list\" aria-label={translate('Skip Links')}>\n <li>\n <a class=\"nav-link\" href={config.logo.logoLink}>\n <span>{config.logo.logoLinkTitle}</span>\n <SvgIcon name=\"pi-pointy-arrow-right\" />\n </a>\n </li>\n <li>\n <a\n class=\"nav-link\"\n href=\"#post-internet-header-main-navigation\"\n onClick={() => this.focusMain()}\n >\n <span>{config.translations.navMainAriaLabel}</span>\n <SvgIcon name=\"pi-pointy-arrow-right\" />\n </a>\n </li>\n {mainId ? (\n <li>\n <a class=\"nav-link\" href={`#${mainId}`}>\n <span>{translate('Go to main content')}</span>\n <SvgIcon name=\"pi-pointy-arrow-right\" />\n </a>\n </li>\n ) : null}\n {state.search ? (\n <li>\n <a\n class=\"nav-link\"\n href=\"#post-internet-header-search-button\"\n onClick={() => this.focusSearch()}\n >\n <span>{translate('Go to search')}</span>\n <SvgIcon name=\"pi-pointy-arrow-right\" />\n </a>\n </li>\n ) : null}\n {state.login ? (\n <li>\n <a class=\"nav-link\" href=\"#post-klp-login-widget\" onClick={() => this.focusLogin()}>\n <span>{translate('Go to login')}</span>\n <SvgIcon name=\"pi-pointy-arrow-right\" />\n </a>\n </li>\n ) : null}\n </ul>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"oSAAA,IAAMA,EAAmB,oSACzB,IAAAC,EAAeD,E,ICUFE,EAAaC,EAAA,e,wBAGhBC,EAAAC,UAAAC,UAAA,W,MACN,OAAOC,EAAAC,SAASC,cAAc,eAAW,MAAAF,SAAA,SAAAA,EAAEG,aAAa,K,EAGlDN,EAAAC,UAAAM,SAAA,SAASC,GACf,IAAMC,EAAWC,KAAKC,KAAKC,QAAQ,yBACnC,IAAKH,EAAU,CACb,M,CAGF,IAAMI,EAAYJ,EAASJ,cAAgCG,GAC3D,GAAIK,EAAW,CACbA,EAAUN,U,GAINP,EAAAC,UAAAa,UAAA,WACNJ,KAAKH,SAAS,uB,EAGRP,EAAAC,UAAAc,YAAA,WACNL,KAAKH,SAAS,c,EAGRP,EAAAC,UAAAe,WAAA,WACNN,KAAKH,SAAS,wB,EAGhBP,EAAAC,UAAAgB,OAAA,eAAAC,EAAAR,K,MACE,IAAMS,GAAShB,EAAAiB,EAAMC,mBAAe,MAAAlB,SAAA,SAAAA,EAAEmB,OACtC,IAAMC,EAASb,KAAKR,YAEpB,GAAIiB,IAAWK,UAAW,CACxB,M,CAGF,OACEC,EAACC,EAAI,KACHD,EAAA,OAAKE,MAAM,aACTF,EAAA,MAAIE,MAAM,UAAS,aAAaC,EAAU,eACxCH,EAAA,UACEA,EAAA,KAAGE,MAAM,WAAWE,KAAMV,EAAOW,KAAKC,UACpCN,EAAA,YAAON,EAAOW,KAAKE,eACnBP,EAACQ,EAAO,CAACC,KAAK,4BAGlBT,EAAA,UACEA,EAAA,KACEE,MAAM,WACNE,KAAK,wCACLM,QAAS,WAAM,OAAAjB,EAAKJ,WAAL,GAEfW,EAAA,YAAON,EAAOiB,aAAaC,kBAC3BZ,EAACQ,EAAO,CAACC,KAAK,4BAGjBX,EACCE,EAAA,UACEA,EAAA,KAAGE,MAAM,WAAWE,KAAM,IAAAS,OAAIf,IAC5BE,EAAA,YAAOG,EAAU,uBACjBH,EAACQ,EAAO,CAACC,KAAK,4BAGhB,KACHd,EAAMmB,OACLd,EAAA,UACEA,EAAA,KACEE,MAAM,WACNE,KAAK,sCACLM,QAAS,WAAM,OAAAjB,EAAKH,aAAL,GAEfU,EAAA,YAAOG,EAAU,iBACjBH,EAACQ,EAAO,CAACC,KAAK,4BAGhB,KACHd,EAAMoB,MACLf,EAAA,UACEA,EAAA,KAAGE,MAAM,WAAWE,KAAK,yBAAyBM,QAAS,WAAM,OAAAjB,EAAKF,YAAL,GAC/DS,EAAA,YAAOG,EAAU,gBACjBH,EAACQ,EAAO,CAACC,KAAK,4BAGhB,O,yHAtFU,I"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as e}from"./p-4ebec8fe.js";const n={"Active navigation element":{de:"Aktives Navigationselement",fr:"Élément de navigation actif",it:"Elemento di navigazione attivo"},"Close overlay":{de:"Overlay Schliessen",fr:"Fermer la superposition",it:"Chiudi sovrapposizione"},"Current language is English":{de:"Die aktuelle Sprache ist Deutsch",fr:"La langue actuelle est le français",it:"La lingua corrente è l'italiano"},"Change language":{de:"Sprache wechseln",fr:"Changer de langue",it:"Cambia lingua"},"Go to main content":{de:"Zum Hauptinhalt springen",fr:"Aller au contenu principal",it:"Vai al contenuto principale"},"Go to search":{de:"Zur Suche springen",fr:"Aller à la recherche",it:"Vai alla ricerca"},"Go to login":{de:"Zum Login springen",fr:"Aller au login",it:"Vai al login"},"Open menu":{de:"Menü öffnen",fr:"Ouvrir le menu",it:"Apri il menu"},"Navigate on post.ch":{de:"Navigieren auf post.ch",fr:"Naviguer sur post.ch",it:"Navigate su post.ch"},"Skip Links":{de:"Sprung Links",fr:"Sauter les liens",it:"Salta i link"},"Intermediary links":{de:"Intermediäre Links",fr:"Liens intermédiaires",it:"Collegamenti intermedi"},"Cookie Settings":{de:"Cookie-Einstellungen",fr:"Configurations des cookies",it:"Impostazioni dei cookie"},"Delete search term":{de:"Suchbegriff löschen",fr:"Supprimer le terme de recherche",it:"Elimina termine di ricerca"}};const i=(n,i,t,o)=>{if(n.length===0){return"de"}if(n.length===1){return n[0]}const l=new URL(window.location.href);let s=[i,l.searchParams.get("lang"),l.pathname.split("/").find((e=>n.includes(e))),t!==undefined?window.localStorage.getItem(t):null,r("language"),r("lang"),o!==undefined?r(o):null,document.documentElement.lang,a(n),e.currentLanguage].filter((e=>e!=null));const u=s.find((e=>n.includes(e)))||n[0];if(u==null||u.length!==2){throw new Error(`Current language could not be determined from settings or the language provided (${u}) is not supported by the Header API.`)}return u};const t=(n,i,t)=>{if(t!==undefined){window.localStorage.setItem(t,n)}if(i!==undefined){o(i,n)}e.currentLanguage=n};const r=e=>{var n;return((n=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))===null||n===void 0?void 0:n.pop())||""};const o=(e,n)=>{document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`};const a=e=>{if(navigator.language!=null){const n=l(navigator.language);if(e.indexOf(n)!==-1){return n}}if(navigator.languages!=null){for(const n of navigator.languages){const i=l(n);if(e.indexOf(i)!==-1){return i}}}return null};const l=e=>e.substring(0,2).toLowerCase();const s=(i,t,r=n)=>{var o,a,l;return(l=(o=r[i])===null||o===void 0?void 0:o[(a=t!==null&&t!==void 0?t:e.currentLanguage)!==null&&a!==void 0?a:""])!==null&&l!==void 0?l:i};export{i as g,t as p,s as t};
|
|
2
|
-
//# sourceMappingURL=p-90808312.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["translations","de","fr","it","getUserLang","supportedLanguages","implementorPreferredLanguage","localStorageKey","cookieKey","length","url","URL","window","location","href","languagesSet","searchParams","get","pathname","split","find","segment","includes","undefined","localStorage","getItem","getCookie","document","documentElement","lang","getPreferredLanguageFromBrowser","state","currentLanguage","filter","language","Error","persistLanguageChoice","setItem","setCookie","name","_a","cookie","match","pop","key","value","encodeURIComponent","navigator","extractLanguage","indexOf","languages","l","substring","toLowerCase","translate","translationObject","_b","_c"],"sources":["src/assets/i18n/translations.ts","src/services/language.service.ts"],"sourcesContent":["export const translations = {\n 'Active navigation element': {\n de: 'Aktives Navigationselement',\n fr: 'Élément de navigation actif',\n it: 'Elemento di navigazione attivo',\n },\n 'Close overlay': {\n de: 'Overlay Schliessen',\n fr: 'Fermer la superposition',\n it: 'Chiudi sovrapposizione',\n },\n 'Current language is English': {\n de: 'Die aktuelle Sprache ist Deutsch',\n fr: 'La langue actuelle est le français',\n it: \"La lingua corrente è l'italiano\",\n },\n 'Change language': {\n de: 'Sprache wechseln',\n fr: 'Changer de langue',\n it: 'Cambia lingua',\n },\n 'Go to main content': {\n de: 'Zum Hauptinhalt springen',\n fr: 'Aller au contenu principal',\n it: 'Vai al contenuto principale',\n },\n 'Go to search': {\n de: 'Zur Suche springen',\n fr: 'Aller à la recherche',\n it: 'Vai alla ricerca',\n },\n 'Go to login': {\n de: 'Zum Login springen',\n fr: 'Aller au login',\n it: 'Vai al login',\n },\n 'Open menu': {\n de: 'Menü öffnen',\n fr: 'Ouvrir le menu',\n it: 'Apri il menu',\n },\n 'Navigate on post.ch': {\n de: 'Navigieren auf post.ch',\n fr: 'Naviguer sur post.ch',\n it: 'Navigate su post.ch',\n },\n 'Skip Links': {\n de: 'Sprung Links',\n fr: 'Sauter les liens',\n it: 'Salta i link',\n },\n 'Intermediary links': {\n de: 'Intermediäre Links',\n fr: 'Liens intermédiaires',\n it: 'Collegamenti intermedi',\n },\n 'Cookie Settings': {\n de: 'Cookie-Einstellungen',\n fr: 'Configurations des cookies',\n it: 'Impostazioni dei cookie',\n },\n 'Delete search term': {\n de: 'Suchbegriff löschen',\n fr: 'Supprimer le terme de recherche',\n it: 'Elimina termine di ricerca',\n },\n};\n","import { translations } from '../assets/i18n/translations';\nimport { state } from '../data/store';\n\nexport const getUserLang = (\n supportedLanguages: string[],\n implementorPreferredLanguage?: string,\n localStorageKey?: string,\n cookieKey?: string,\n) => {\n // If there are no supported languages, well...\n if (supportedLanguages.length === 0) {\n return 'de';\n }\n\n // If there is only one language in the config, use this\n if (supportedLanguages.length === 1) {\n return supportedLanguages[0];\n }\n\n const url = new URL(window.location.href);\n\n /**\n * Build array of possible language definitions in order of importance.\n * At the end is a filter function that will weed out any undefined or null entries.\n */\n let languagesSet: Array<string> = [\n // Check if implementor overrides lang config\n implementorPreferredLanguage,\n\n // Check query string param\n url.searchParams.get('lang'),\n\n // Check url pathname\n url.pathname.split('/').find(segment => supportedLanguages.includes(segment)),\n\n // Check local storage with the key provided\n localStorageKey !== undefined ? window.localStorage.getItem(localStorageKey) : null,\n\n // Check cookies\n getCookie('language'),\n getCookie('lang'),\n cookieKey !== undefined ? getCookie(cookieKey) : null,\n\n // Check document language\n document.documentElement.lang,\n\n // Check browser preferred language\n getPreferredLanguageFromBrowser(supportedLanguages),\n\n // Check the state\n state.currentLanguage,\n ].filter((lang): lang is string => lang != null);\n\n // Check the set of languages to see if it matches\n // any of the supported languages. Return the first\n // supported language if there is none set\n const lang =\n languagesSet.find(language => supportedLanguages.includes(language)) || supportedLanguages[0];\n\n if (lang == null || lang.length !== 2) {\n throw new Error(\n `Current language could not be determined from settings or the language provided (${lang}) is not supported by the Header API.`,\n );\n }\n\n return lang;\n};\n\n/**\n * Persist chosen language to local storage\n * @param lang Currently chose language, two char string\n */\nexport const persistLanguageChoice = (\n lang: string,\n cookieKey?: string,\n localStorageKey?: string,\n) => {\n if (localStorageKey !== undefined) {\n window.localStorage.setItem(localStorageKey, lang);\n }\n\n if (cookieKey !== undefined) {\n setCookie(cookieKey, lang);\n }\n\n state.currentLanguage = lang;\n};\n\n/**\n * Read a cookie by name\n * https://stackoverflow.com/questions/5639346/what-is-the-shortest-function-for-reading-a-cookie-by-name-in-javascript?rq=1\n * @param name Cookie name\n * @returns Cookie value or an empty string\n */\nexport const getCookie = (name: string) => {\n return document.cookie.match('(^|;)\\\\s*' + name + '\\\\s*=\\\\s*([^;]+)')?.pop() || '';\n};\n\n/**\n * Write a new cookie\n * https://developer.mozilla.org/en-US/docs/Web/API/document/cookie#A_little_framework.3A_a_complete_cookies_reader.2Fwriter_with_full_unicode_support\n * @param key\n * @param value\n */\nexport const setCookie = (key: string, value: string) => {\n document.cookie = `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;\n};\n\nconst getPreferredLanguageFromBrowser = (supportedLanguages: string[]): string | null => {\n // IE & Chrome\n if (navigator.language != null) {\n const lang = extractLanguage(navigator.language);\n if (supportedLanguages.indexOf(lang) !== -1) {\n return lang;\n }\n }\n\n // Chrome supports a list of preferred languages: if the preferred is not supported, we go down the list.\n if (navigator.languages != null) {\n for (const l of navigator.languages) {\n const lang = extractLanguage(l);\n if (supportedLanguages.indexOf(lang) !== -1) {\n return lang;\n }\n }\n }\n\n return null;\n};\n\nconst extractLanguage = (language: string): string => language.substring(0, 2).toLowerCase();\n\n/**\n * Simple translate function for general header UI strings\n *\n * @param key Translation key\n * @param lang Force a language\n * @param translationObject Optionally provide translations\n * @returns Translated string or the key\n */\nexport const translate = (key: string, lang?: string, translationObject = translations) =>\n translationObject[key]?.[lang ?? state.currentLanguage ?? ''] ?? key;\n"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SvgSprite","exports","h","style","display","id","viewBox","fill","d"],"sources":["src/utils/svg-sprite.component.tsx"],"sourcesContent":["import { h } from '@stencil/core';\n\nexport const SvgSprite = () => (\n <svg aria-hidden=\"true\" style={{ display: 'none' }}>\n <symbol id=\"pi-close\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M22.6 23.5L16 17l-6.5 6.6-.9-.9 6.5-6.6-6.6-6.7.9-.9 6.6 6.6 6.5-6.6.9.9L17 16l6.6 6.6-1 .9z\"\n />\n </symbol>\n <symbol id=\"pi-search\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M32 28.2l-11-11c1.1-1.7 1.7-3.7 1.7-5.9C22.7 5.1 17.6 0 11.3 0 5.1 0 0 5.1 0 11.3c0 6.3 5.1 11.3 11.3 11.3 2.2 0 4.2-.6 5.9-1.7l11 11 3.8-3.7zM1.3 11.3c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.4-10-10zm17.2 8.8c.1 0 .1-.1.2-.1.6-.5 1.1-1 1.6-1.6l9.8 9.8-1.9 1.9-9.8-9.8c0-.1.1-.1.1-.2z\"\n />\n </symbol>\n <symbol id=\"pi-arrow-down\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M23.6,13.2l-7.5,7.6l-7.6-7.6l0.9-0.9l6.6,6.6l6.6-6.6L23.6,13.2z\"\n />\n </symbol>\n <symbol id=\"pi-menu\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M26.7 8v1.3H5.4V8h21.3zM5.4 17.3h21.3V16H5.4v1.3zm0 8.1h21.3V24H5.4v1.4z\"\n />\n </symbol>\n <symbol id=\"pi-pointy-arrow-right\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M29.4 17.4H0V16h29.5L18.8 5.3h1.9L32 16.7 20.6 28h-1.9l10.7-10.6z\"\n />\n </symbol>\n <symbol id=\"8004_facebook\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M22.8 10.5l-.5 5.4h-4.5V32h-6.4V15.9H8v-5.5h3.4V6.1c0-4 2.2-6.2 7-6.2h4.5v5.6h-3.5c-1.2 0-1.5.5-1.5 1.8v3.1h4.9z\"\n />\n </symbol>\n <symbol id=\"8007_instagram\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M23.1 0H8.9C4 0 0 4 0 8.9v14.2C0 28 4 32 8.9 32h14.2c4.9 0 8.9-4 8.9-8.9V8.9C32 4 28 0 23.1 0zM29 23.1c0 3.3-2.7 5.9-5.9 5.9H8.9C5.6 29 3 26.4 3 23.1V8.9C3 5.6 5.6 3 8.9 3h14.2C26.4 3 29 5.6 29 8.9v14.2zM16 7.5c-4.7 0-8.5 3.8-8.5 8.5s3.8 8.5 8.5 8.5 8.5-3.8 8.5-8.5-3.8-8.5-8.5-8.5zm0 14c-3 0-5.5-2.5-5.5-5.5s2.5-5.5 5.5-5.5 5.5 2.5 5.5 5.5-2.5 5.5-5.5 5.5zM26.5 7.3c0 1-.8 1.9-1.9 1.9-1 0-1.9-.8-1.9-1.9s.8-1.9 1.9-1.9c1 .1 1.9.9 1.9 1.9z\"\n />\n </symbol>\n <symbol id=\"8002_youtube\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M12.7 20.1v-9l8.6 4.5-8.6 4.5zm19-10.5s-.3-2.2-1.3-3.2c-1.2-1.3-2.6-1.3-3.2-1.4-4.5-.3-11.2-.3-11.2-.3s-6.7 0-11.2.3c-.6.1-2 .1-3.2 1.4C.6 7.4.3 9.6.3 9.6S0 12.2 0 14.8v2.4c0 2.6.3 5.2.3 5.2s.3 2.2 1.3 3.2c1.2 1.3 2.8 1.2 3.5 1.4 2.6.2 10.9.2 10.9.2s6.7 0 11.2-.3c.6-.1 2-.1 3.2-1.4 1-1 1.3-3.2 1.3-3.2s.3-2.6.3-5.2v-2.4c0-2.5-.3-5.1-.3-5.1\"\n />\n </symbol>\n <symbol id=\"8017_snapchat\" viewBox=\"0 0 32 32\">\n <path\n d=\"M16.328.714h.003c1.396 0 6.121.389 8.35 5.385.721 1.619.616 4.076.488 6.144.081-.031.17-.068.265-.113a2.415 2.415 0 0 1 1.008-.213c.356 0 .71.07.964.178.956.338 1.584 1.122 1.6 1.996.015.717-.35 1.722-2.165 2.44a8.441 8.441 0 0 1-.498.17c-.23.072-.812.257-1.015.424.011.048.037.13.095.248l.023.047.014.032c.016.039 1.684 3.838 5.202 4.418a1.648 1.648 0 0 1 1.377 1.723c-.013.218-.064.43-.148.624-.436 1.02-1.671 1.66-4.085 2.1l-.004.017c-.056.254-.113.504-.19.765-.226.776-.87 1.257-1.712 1.257-.236 0-.522-.033-.874-.103a6.86 6.86 0 0 0-1.399-.15c-.315 0-.644.028-.975.083-.526.087-1.079.478-1.72.931-1.132.801-2.541 1.798-4.705 1.798-.07 0-.14-.002-.21-.004a3.37 3.37 0 0 1-.16.004c-2.163 0-3.572-.996-4.704-1.797-.642-.453-1.196-.845-1.72-.932a6.011 6.011 0 0 0-.976-.083c-.57 0-1.028.09-1.397.162h-.002c-.3.059-.582.114-.874.114-.827 0-1.483-.486-1.712-1.267a11.05 11.05 0 0 1-.19-.772l-.004-.02C1.864 25.88.628 25.238.19 24.21a1.869 1.869 0 0 1-.146-.622 1.644 1.644 0 0 1 1.378-1.719c3.517-.579 5.185-4.379 5.2-4.413l.02-.05.018-.034c.058-.119.084-.2.095-.248-.202-.167-.784-.352-1.019-.426a8.141 8.141 0 0 1-.497-.17c-2.147-.849-2.256-2.091-2.13-2.756.219-1.15 1.425-1.837 2.465-1.837.327 0 .633.065.91.195.166.077.31.133.433.173-.129-2.083-.242-4.57.486-6.203C9.63 1.108 14.347.72 15.737.72l.518-.005h.073Z\"\n fill=\"currentColor\"\n />\n </symbol>\n <symbol id=\"8000_twitter\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M24.87 2.667h4.714L19.288 14.465 31.401 30.52h-9.483l-7.428-9.739-8.5 9.739H1.274L12.286 17.9.667 2.667h9.725l6.713 8.899 7.766-8.899h-.001zm-1.652 25.025h2.612L8.971 5.346H6.17l17.048 22.346z\"\n />\n </symbol>\n <symbol id=\"8001_xing\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M13.9 12.7l-5.5 9.7H1.8l5.5-9.7-3.7-6.4h6.6l3.7 6.4zM30 0h-6.6L12.7 19.1 19.8 32h6.5l-7-12.9L30 0z\"\n />\n </symbol>\n <symbol id=\"8005_linkedin\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M7.8 3.9c0 2.2-1.7 3.9-3.9 3.9A3.8 3.8 0 010 3.9a3.9 3.9 0 017.8 0zM.6 32h6.6V10.7H.6V32zm23.6-22c-4.5 0-6.4 3.5-6.4 3.5v-2.9h-6.3V32h6.3V20.8c0-3 1.4-4.8 4-4.8 2.4 0 3.6 1.7 3.6 4.8V32H32V18.5c0-5.7-3.3-8.5-7.8-8.5z\"\n />\n </symbol>\n <symbol id=\"8008_kununu\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M27.2 26l-.1 5.1c0 .4-.4.8-.8.8h-5c-.5 0-.8-.4-.8-.8v-6.7c0-1.8-1.5-3.2-3.3-3.2h-1.8c-1.8 0-3.3 1.4-3.3 3.2v6.7c0 .4-.4.8-.8.8h-5c-.5 0-.8-.4-.8-.8V.8c-.2-.4.2-.8.7-.8h5c.4 0 .8.4.8.8v14.3c1-.4 2.2-.6 3.3-.6H17c1.8 0 3.3-1.4 3.3-3.2l.1-1.6c.1-.4.4-.7.8-.7h5c.4 0 .8.3.8.7v1.6c0 2.5-1 4.8-2.5 6.5 1.6 1.7 2.6 4 2.6 6.6V26z\"\n />\n </symbol>\n <symbol id=\"2064_arrow-enter\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M32 0v32H13.3v-1.3h17.3V1.3H13.3V0H32zM12.3 9.3h-1.9l6.7 6.7H0v1.3h17.1L10.4 24h1.9l7.3-7.3-7.3-7.4z\"\n />\n </symbol>\n <symbol id=\"pi-home\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M16 .7L0 16h5.3v16h8V21.3h5.3V32h8V16H32L16 .7zm9.3 14v16H20V20h-8V30.6H6.7V14.7H3.4L16 2.5l12.7 12.2h-3.4z\"\n />\n </symbol>\n <symbol id=\"3033_question-mark\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M22.7 10.7c0 3.2-2.7 5-4.7 6.2-.9.6-2 1.3-2 1.8v4h-1.3v-4c0-1.2 1.2-1.9 2.6-2.9 1.9-1.3 4.1-2.7 4.1-5.1 0-2.9-2.4-5.3-5.3-5.3s-5.3 2.4-5.3 5.3H9.3C9.3 7 12.3 4 16 4s6.7 3 6.7 6.7zm-8 17.3H16v-2.7h-1.3V28z\"\n />\n </symbol>\n <symbol id=\"3073_phone\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M5.5 2.1c.1 0 .1 0 0 0 .3 0 .5.1.6.3l2.8 4.8c.1.3.1.6-.1.8L7.2 9.6l-.7.7.5 1c3.4 5.6 8.2 10.4 13.8 13.8l.9.6.7-.8 1.5-1.5c.1-.1.3-.2.5-.2.1 0 .2 0 .3.1l4.8 2.8c.2.1.3.3.3.5s0 .4-.2.6l-2 2-.8.8C13.9 28.6 3.4 18.1 2.2 5.1l.9-.9 2-2c.1 0 .3-.1.4-.1m0-1.3c-.5 0-1 .2-1.4.6l-2 2L.9 4.6v.1c1 14 12.3 25.4 26.4 26.5h.1l1.3-1.3 2-2c.4-.4.7-1.1.6-1.7-.1-.6-.4-1.2-1-1.5l-4.8-2.8c-.3-.2-.7-.3-1-.3-.5 0-1 .2-1.4.6l-1.5 1.5c-5.4-3.3-10-7.9-13.4-13.4L9.7 9c.6-.6.8-1.6.3-2.4L7.3 1.8C7 1.2 6.4.9 5.8.8h-.3z\"\n />\n </symbol>\n <symbol id=\"pi-place\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M16 1.3c5.1 0 9.3 4.2 9.3 9.3 0 1.6-.4 3.3-1.3 4.7l-8.1 14-8-14c-.8-1.4-1.2-3-1.2-4.6 0-5.2 4.2-9.4 9.3-9.4M16 0C10.1 0 5.3 4.8 5.3 10.7c0 1.8.5 3.7 1.4 5.3L16 32l9.2-16c.9-1.6 1.4-3.5 1.4-5.4C26.7 4.8 21.9 0 16 0zm0 8c1.5 0 2.7 1.2 2.7 2.7s-1.2 2.7-2.7 2.7-2.7-1.2-2.7-2.7S14.5 8 16 8m0-1.3c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z\"\n />\n </symbol>\n <symbol id=\"pi-letter-parcel\" viewBox=\"0 0 32 32\">\n <path\n fill=\"currentColor\"\n d=\"M20.667 2.667l-4 4h5.867l4-4h-5.867zM22 5.333h-2.133L21.2 4h2.133L22 5.333z\"\n />\n <path\n fill=\"currentColor\"\n d=\"M12.4 0L4 8.4v8.933H0V32h21.333v-4H23.6l8.4-8.4V0H12.4zm6.667 18.667L11.2 26.534a.644.644 0 0 1-.933 0l-8-7.867h16.8zM1.333 19.6L6.4 24.667l-5.067 5.067V19.601zm.934 11.067L7.334 25.6l1.867 1.867c.8.8 2 .8 2.8 0l1.867-1.867 5.067 5.067H2.268zM20 29.733l-5.067-5.067L20 19.599v10.133zm2.667-3.066h-1.333v-9.333h-16v-8h17.333v17.333zM23.067 8h-16.8l6.667-6.667h16.8L23.067 8zm7.6 11.067L24 25.734v-16.8l6.667-6.667v16.8z\"\n />\n </symbol>\n <symbol id=\"pi-login\" viewBox=\"0 0 32 32\">\n <path fill=\"currentColor\" d=\"M13.333 0v1.333h17.333v29.333H13.333v1.333H32v-32z\" />\n <path\n fill=\"currentColor\"\n d=\"M12.267 9.333H10.4L17.067 16H0v1.333h17.067L10.4 24h1.867l7.333-7.333z\"\n />\n </symbol>\n </svg>\n);\n"],"mappings":"sIAEaA,EAASC,EAAA,KAAG,kBACvBC,EAAA,qBAAiB,OAAOC,MAAO,CAAEC,QAAS,SACxCF,EAAA,UAAQG,GAAG,WAAWC,QAAQ,aAC5BJ,EAAA,QACEK,KAAK,eACLC,EAAE,kGAGNN,EAAA,UAAQG,GAAG,YAAYC,QAAQ,aAC7BJ,EAAA,QACEK,KAAK,eACLC,EAAE,4SAGNN,EAAA,UAAQG,GAAG,gBAAgBC,QAAQ,aACjCJ,EAAA,QACEK,KAAK,eACLC,EAAE,qEAGNN,EAAA,UAAQG,GAAG,UAAUC,QAAQ,aAC3BJ,EAAA,QACEK,KAAK,eACLC,EAAE,8EAGNN,EAAA,UAAQG,GAAG,wBAAwBC,QAAQ,aACzCJ,EAAA,QACEK,KAAK,eACLC,EAAE,uEAGNN,EAAA,UAAQG,GAAG,gBAAgBC,QAAQ,aACjCJ,EAAA,QACEK,KAAK,eACLC,EAAE,sHAGNN,EAAA,UAAQG,GAAG,iBAAiBC,QAAQ,aAClCJ,EAAA,QACEK,KAAK,eACLC,EAAE,6bAGNN,EAAA,UAAQG,GAAG,eAAeC,QAAQ,aAChCJ,EAAA,QACEK,KAAK,eACLC,EAAE,0VAGNN,EAAA,UAAQG,GAAG,gBAAgBC,QAAQ,aACjCJ,EAAA,QACEM,EAAE,qyCACFD,KAAK,kBAGTL,EAAA,UAAQG,GAAG,eAAeC,QAAQ,aAChCJ,EAAA,QACEK,KAAK,eACLC,EAAE,sMAGNN,EAAA,UAAQG,GAAG,YAAYC,QAAQ,aAC7BJ,EAAA,QACEK,KAAK,eACLC,EAAE,wGAGNN,EAAA,UAAQG,GAAG,gBAAgBC,QAAQ,aACjCJ,EAAA,QACEK,KAAK,eACLC,EAAE,8NAGNN,EAAA,UAAQG,GAAG,cAAcC,QAAQ,aAC/BJ,EAAA,QACEK,KAAK,eACLC,EAAE,uUAGNN,EAAA,UAAQG,GAAG,mBAAmBC,QAAQ,aACpCJ,EAAA,QACEK,KAAK,eACLC,EAAE,0GAGNN,EAAA,UAAQG,GAAG,UAAUC,QAAQ,aAC3BJ,EAAA,QACEK,KAAK,eACLC,EAAE,iHAGNN,EAAA,UAAQG,GAAG,qBAAqBC,QAAQ,aACtCJ,EAAA,QACEK,KAAK,eACLC,EAAE,kNAGNN,EAAA,UAAQG,GAAG,aAAaC,QAAQ,aAC9BJ,EAAA,QACEK,KAAK,eACLC,EAAE,mfAGNN,EAAA,UAAQG,GAAG,WAAWC,QAAQ,aAC5BJ,EAAA,QACEK,KAAK,eACLC,EAAE,yVAGNN,EAAA,UAAQG,GAAG,mBAAmBC,QAAQ,aACpCJ,EAAA,QACEK,KAAK,eACLC,EAAE,gFAEJN,EAAA,QACEK,KAAK,eACLC,EAAE,waAGNN,EAAA,UAAQG,GAAG,WAAWC,QAAQ,aAC5BJ,EAAA,QAAMK,KAAK,eAAeC,EAAE,uDAC5BN,EAAA,QACEK,KAAK,eACLC,EAAE,4EA5He,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["throttle","delay","callback","options","_ref","_ref$noTrailing","noTrailing","_ref$noLeading","noLeading","_ref$debounceMode","debounceMode","undefined","timeoutID","cancelled","lastExec","clearExistingTimeout","clearTimeout","cancel","_ref2","_ref2$upcomingOnly","upcomingOnly","wrapper","_len","arguments","length","arguments_","Array","_key","self","this","elapsed","Date","now","exec","apply","clear","setTimeout","debounce","_ref$atBegin","atBegin"],"sources":["../../node_modules/.pnpm/throttle-debounce@5.0.0/node_modules/throttle-debounce/esm/index.js"],"sourcesContent":["/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n/**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)\n * are most useful.\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,\n * as-is, to `callback` when the throttled-function is executed.\n * @param {object} [options] - An object to configure options.\n * @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds\n * while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed\n * one final time after the last throttled-function call. (After the throttled-function has not been called for\n * `delay` milliseconds, the internal counter is reset).\n * @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback\n * immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that\n * callback will never executed if both noLeading = true and noTrailing = true.\n * @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is\n * false (at end), schedule `callback` to execute after `delay` ms.\n *\n * @returns {Function} A new, throttled, function.\n */\nfunction throttle (delay, callback, options) {\n var _ref = options || {},\n _ref$noTrailing = _ref.noTrailing,\n noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,\n _ref$noLeading = _ref.noLeading,\n noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,\n _ref$debounceMode = _ref.debounceMode,\n debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;\n /*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n\n\n var timeoutID;\n var cancelled = false; // Keep track of the last time `callback` was executed.\n\n var lastExec = 0; // Function to clear existing timeout\n\n function clearExistingTimeout() {\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n } // Function to cancel next exec\n\n\n function cancel(options) {\n var _ref2 = options || {},\n _ref2$upcomingOnly = _ref2.upcomingOnly,\n upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;\n\n clearExistingTimeout();\n cancelled = !upcomingOnly;\n }\n /*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\n\n function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (!noLeading && debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`\n * and noLeading != true.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n if (noLeading) {\n /*\n * In throttle mode with noLeading, if `delay` time has\n * been exceeded, update `lastExec` and schedule `callback`\n * to execute after `delay` ms.\n */\n lastExec = Date.now();\n\n if (!noTrailing) {\n timeoutID = setTimeout(debounceMode ? clear : exec, delay);\n }\n } else {\n /*\n * In throttle mode without noLeading, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n }\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }\n\n wrapper.cancel = cancel; // Return the wrapper function.\n\n return wrapper;\n}\n\n/* eslint-disable no-undefined */\n/**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n * @param {object} [options] - An object to configure options.\n * @param {boolean} [options.atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n *\n * @returns {Function} A new, debounced function.\n */\n\nfunction debounce (delay, callback, options) {\n var _ref = options || {},\n _ref$atBegin = _ref.atBegin,\n atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;\n\n return throttle(delay, callback, {\n debounceMode: atBegin !== false\n });\n}\n\nexport { debounce, throttle };\n//# sourceMappingURL=index.js.map\n"],"mappings":"oFAuBA,SAASA,EAAUC,EAAOC,EAAUC,GAClC,IAAIC,EAAOD,GAAW,GAClBE,EAAkBD,EAAKE,WACvBA,EAAaD,SAAyB,EAAI,MAAQA,EAClDE,EAAiBH,EAAKI,UACtBA,EAAYD,SAAwB,EAAI,MAAQA,EAChDE,EAAoBL,EAAKM,aACzBA,EAAeD,SAA2B,EAAIE,UAAYF,EAQ9D,IAAIG,EACJ,IAAIC,EAAY,MAEhB,IAAIC,EAAW,EAEf,SAASC,IACP,GAAIH,EAAW,CACbI,aAAaJ,EACnB,CACA,CAGE,SAASK,EAAOd,GACd,IAAIe,EAAQf,GAAW,GACnBgB,EAAqBD,EAAME,aAC3BA,EAAeD,SAA4B,EAAI,MAAQA,EAE3DJ,IACAF,GAAaO,CACjB,CAQE,SAASC,IACP,IAAK,IAAIC,EAAOC,UAAUC,OAAQC,EAAa,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAAQ,CAC7FF,EAAWE,GAAQJ,UAAUI,EACnC,CAEI,IAAIC,EAAOC,KACX,IAAIC,EAAUC,KAAKC,MAAQlB,EAE3B,GAAID,EAAW,CACb,MACN,CAGI,SAASoB,IACPnB,EAAWiB,KAAKC,MAChB9B,EAASgC,MAAMN,EAAMH,EAC3B,CAOI,SAASU,IACPvB,EAAYD,SAClB,CAEI,IAAKH,GAAaE,IAAiBE,EAAW,CAM5CqB,GACN,CAEIlB,IAEA,GAAIL,IAAiBC,WAAamB,EAAU7B,EAAO,CACjD,GAAIO,EAAW,CAMbM,EAAWiB,KAAKC,MAEhB,IAAK1B,EAAY,CACfM,EAAYwB,WAAW1B,EAAeyB,EAAQF,EAAMhC,EAC9D,CACA,KAAa,CAKLgC,GACR,CACA,MAAW,GAAI3B,IAAe,KAAM,CAY9BM,EAAYwB,WAAW1B,EAAeyB,EAAQF,EAAMvB,IAAiBC,UAAYV,EAAQ6B,EAAU7B,EACzG,CACA,CAEEoB,EAAQJ,OAASA,EAEjB,OAAOI,CACT,CAmBA,SAASgB,EAAUpC,EAAOC,EAAUC,GAClC,IAAIC,EAAOD,GAAW,GAClBmC,EAAelC,EAAKmC,QACpBA,EAAUD,SAAsB,EAAI,MAAQA,EAEhD,OAAOtC,EAASC,EAAOC,EAAU,CAC/BQ,aAAc6B,IAAY,OAE9B,C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_toConsumableArray","arr","Array","isArray","i","arr2","length","from","hasPassiveEvents","window","passiveTestOptions","passive","undefined","addEventListener","removeEventListener","isIosDevice","navigator","platform","test","maxTouchPoints","locks","documentListenerAdded","initialClientY","previousBodyOverflowSetting","previousBodyPosition","previousBodyPaddingRight","allowTouchMove","el","some","lock","options","preventDefault","rawEvent","e","event","target","touches","setOverflowHidden","_reserveScrollBarGap","reserveScrollBarGap","scrollBarGap","innerWidth","document","documentElement","clientWidth","computedBodyPaddingRight","parseInt","getComputedStyle","body","getPropertyValue","style","paddingRight","overflow","restoreOverflowSetting","setPositionFixed","requestAnimationFrame","position","top","left","_window","scrollY","scrollX","innerHeight","setTimeout","bottomBarHeight","restorePositionSetting","y","x","scrollTo","isTargetElementTotallyScrolled","targetElement","scrollHeight","scrollTop","clientHeight","handleScroll","clientY","targetTouches","stopPropagation","disableBodyScroll","console","error","concat","ontouchstart","ontouchmove","clearAllBodyScrollLocks","forEach","enableBodyScroll","filter"],"sources":["../../node_modules/.pnpm/body-scroll-lock@4.0.0-beta.0/node_modules/body-scroll-lock/lib/bodyScrollLock.esm.js"],"sourcesContent":["function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n// Older browsers don't support event options, feature detect it.\n\n// Adopted and modified solution from Bohdan Didukh (2017)\n// https://stackoverflow.com/questions/41594997/ios-10-safari-prevent-scrolling-behind-a-fixed-overlay-and-maintain-scroll-posi\n\nvar hasPassiveEvents = false;\nif (typeof window !== 'undefined') {\n var passiveTestOptions = {\n get passive() {\n hasPassiveEvents = true;\n return undefined;\n }\n };\n window.addEventListener('testPassive', null, passiveTestOptions);\n window.removeEventListener('testPassive', null, passiveTestOptions);\n}\n\nvar isIosDevice = typeof window !== 'undefined' && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === 'MacIntel' && window.navigator.maxTouchPoints > 1);\n\n\nvar locks = [];\nvar documentListenerAdded = false;\nvar initialClientY = -1;\nvar previousBodyOverflowSetting = void 0;\nvar previousBodyPosition = void 0;\nvar previousBodyPaddingRight = void 0;\n\n// returns true if `el` should be allowed to receive touchmove events.\nvar allowTouchMove = function allowTouchMove(el) {\n return locks.some(function (lock) {\n if (lock.options.allowTouchMove && lock.options.allowTouchMove(el)) {\n return true;\n }\n\n return false;\n });\n};\n\nvar preventDefault = function preventDefault(rawEvent) {\n var e = rawEvent || window.event;\n\n // For the case whereby consumers adds a touchmove event listener to document.\n // Recall that we do document.addEventListener('touchmove', preventDefault, { passive: false })\n // in disableBodyScroll - so if we provide this opportunity to allowTouchMove, then\n // the touchmove event on document will break.\n if (allowTouchMove(e.target)) {\n return true;\n }\n\n // Do not prevent if the event has more than one touch (usually meaning this is a multi touch gesture like pinch to zoom).\n if (e.touches.length > 1) return true;\n\n if (e.preventDefault) e.preventDefault();\n\n return false;\n};\n\nvar setOverflowHidden = function setOverflowHidden(options) {\n // If previousBodyPaddingRight is already set, don't set it again.\n if (previousBodyPaddingRight === undefined) {\n var _reserveScrollBarGap = !!options && options.reserveScrollBarGap === true;\n var scrollBarGap = window.innerWidth - document.documentElement.clientWidth;\n\n if (_reserveScrollBarGap && scrollBarGap > 0) {\n var computedBodyPaddingRight = parseInt(window.getComputedStyle(document.body).getPropertyValue('padding-right'), 10);\n previousBodyPaddingRight = document.body.style.paddingRight;\n document.body.style.paddingRight = computedBodyPaddingRight + scrollBarGap + 'px';\n }\n }\n\n // If previousBodyOverflowSetting is already set, don't set it again.\n if (previousBodyOverflowSetting === undefined) {\n previousBodyOverflowSetting = document.body.style.overflow;\n document.body.style.overflow = 'hidden';\n }\n};\n\nvar restoreOverflowSetting = function restoreOverflowSetting() {\n if (previousBodyPaddingRight !== undefined) {\n document.body.style.paddingRight = previousBodyPaddingRight;\n\n // Restore previousBodyPaddingRight to undefined so setOverflowHidden knows it\n // can be set again.\n previousBodyPaddingRight = undefined;\n }\n\n if (previousBodyOverflowSetting !== undefined) {\n document.body.style.overflow = previousBodyOverflowSetting;\n\n // Restore previousBodyOverflowSetting to undefined\n // so setOverflowHidden knows it can be set again.\n previousBodyOverflowSetting = undefined;\n }\n};\n\nvar setPositionFixed = function setPositionFixed() {\n return window.requestAnimationFrame(function () {\n // If previousBodyPosition is already set, don't set it again.\n if (previousBodyPosition === undefined) {\n previousBodyPosition = {\n position: document.body.style.position,\n top: document.body.style.top,\n left: document.body.style.left\n };\n\n // Update the dom inside an animation frame \n var _window = window,\n scrollY = _window.scrollY,\n scrollX = _window.scrollX,\n innerHeight = _window.innerHeight;\n\n document.body.style.position = 'fixed';\n document.body.style.top = -scrollY;\n document.body.style.left = -scrollX;\n\n setTimeout(function () {\n return window.requestAnimationFrame(function () {\n // Attempt to check if the bottom bar appeared due to the position change\n var bottomBarHeight = innerHeight - window.innerHeight;\n if (bottomBarHeight && scrollY >= innerHeight) {\n // Move the content further up so that the bottom bar doesn't hide it\n document.body.style.top = -(scrollY + bottomBarHeight);\n }\n });\n }, 300);\n }\n });\n};\n\nvar restorePositionSetting = function restorePositionSetting() {\n if (previousBodyPosition !== undefined) {\n // Convert the position from \"px\" to Int\n var y = -parseInt(document.body.style.top, 10);\n var x = -parseInt(document.body.style.left, 10);\n\n // Restore styles\n document.body.style.position = previousBodyPosition.position;\n document.body.style.top = previousBodyPosition.top;\n document.body.style.left = previousBodyPosition.left;\n\n // Restore scroll\n window.scrollTo(x, y);\n\n previousBodyPosition = undefined;\n }\n};\n\n// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight#Problems_and_solutions\nvar isTargetElementTotallyScrolled = function isTargetElementTotallyScrolled(targetElement) {\n return targetElement ? targetElement.scrollHeight - targetElement.scrollTop <= targetElement.clientHeight : false;\n};\n\nvar handleScroll = function handleScroll(event, targetElement) {\n var clientY = event.targetTouches[0].clientY - initialClientY;\n\n if (allowTouchMove(event.target)) {\n return false;\n }\n\n if (targetElement && targetElement.scrollTop === 0 && clientY > 0) {\n // element is at the top of its scroll.\n return preventDefault(event);\n }\n\n if (isTargetElementTotallyScrolled(targetElement) && clientY < 0) {\n // element is at the bottom of its scroll.\n return preventDefault(event);\n }\n\n event.stopPropagation();\n return true;\n};\n\nexport var disableBodyScroll = function disableBodyScroll(targetElement, options) {\n // targetElement must be provided\n if (!targetElement) {\n // eslint-disable-next-line no-console\n console.error('disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.');\n return;\n }\n\n // disableBodyScroll must not have been called on this targetElement before\n if (locks.some(function (lock) {\n return lock.targetElement === targetElement;\n })) {\n return;\n }\n\n var lock = {\n targetElement: targetElement,\n options: options || {}\n };\n\n locks = [].concat(_toConsumableArray(locks), [lock]);\n\n if (isIosDevice) {\n setPositionFixed();\n } else {\n setOverflowHidden(options);\n }\n\n if (isIosDevice) {\n targetElement.ontouchstart = function (event) {\n if (event.targetTouches.length === 1) {\n // detect single touch.\n initialClientY = event.targetTouches[0].clientY;\n }\n };\n targetElement.ontouchmove = function (event) {\n if (event.targetTouches.length === 1) {\n // detect single touch.\n handleScroll(event, targetElement);\n }\n };\n\n if (!documentListenerAdded) {\n document.addEventListener('touchmove', preventDefault, hasPassiveEvents ? { passive: false } : undefined);\n documentListenerAdded = true;\n }\n }\n};\n\nexport var clearAllBodyScrollLocks = function clearAllBodyScrollLocks() {\n if (isIosDevice) {\n // Clear all locks ontouchstart/ontouchmove handlers, and the references.\n locks.forEach(function (lock) {\n lock.targetElement.ontouchstart = null;\n lock.targetElement.ontouchmove = null;\n });\n\n if (documentListenerAdded) {\n document.removeEventListener('touchmove', preventDefault, hasPassiveEvents ? { passive: false } : undefined);\n documentListenerAdded = false;\n }\n\n // Reset initial clientY.\n initialClientY = -1;\n }\n\n if (isIosDevice) {\n restorePositionSetting();\n } else {\n restoreOverflowSetting();\n }\n\n locks = [];\n};\n\nexport var enableBodyScroll = function enableBodyScroll(targetElement) {\n if (!targetElement) {\n // eslint-disable-next-line no-console\n console.error('enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.');\n return;\n }\n\n locks = locks.filter(function (lock) {\n return lock.targetElement !== targetElement;\n });\n\n if (isIosDevice) {\n targetElement.ontouchstart = null;\n targetElement.ontouchmove = null;\n\n if (documentListenerAdded && locks.length === 0) {\n document.removeEventListener('touchmove', preventDefault, hasPassiveEvents ? { passive: false } : undefined);\n documentListenerAdded = false;\n }\n }\n\n if (isIosDevice) {\n restorePositionSetting();\n } else {\n restoreOverflowSetting();\n }\n};\n\n"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["uniqueId","num","prefix","prefersReducedMotion","window","matchMedia","matches"],"sources":["src/utils/utils.ts"],"sourcesContent":["/**\n * Generates a (sequential) unique ID. If prefix is given, the ID is appended to it.\n *\n * @param prefix The value to prefix the ID with\n * @returns Unique ID\n */\nexport const uniqueId = (() => {\n let num = 0;\n return function (prefix?: string) {\n prefix = prefix || '';\n num += 1;\n return prefix + num;\n };\n})();\n\nexport const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n"],"mappings":"MAMaA,EAAW,MACtB,IAAIC,EAAM,EACV,OAAO,SAAUC,GACfA,EAASA,GAAU,GACnBD,GAAO,EACP,OAAOC,EAASD,C,CAEnB,EAPuB,G,MASXE,EAAuBC,OAAOC,WAAW,oCAAoCC,e"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["postLogoCss","PostLogoStyle0","PostLogo","exports","class_1","prototype","render","_a","state","localizedConfig","header","logo","undefined","config","h","Host","href","logoLink","class","logoLinkTitle","xmlns","viewBox","id","fill","x","y","width","height","points","d"],"sources":["src/components/post-logo/post-logo.scss?tag=post-logo&encapsulation=shadow","src/components/post-logo/post-logo.tsx"],"sourcesContent":["@use '@swisspost/design-system-styles/variables/color';\n@use '../../utils/utils.scss';\n@use '../../utils/mixins.scss';\n\n:host {\n display: block;\n}\n\n.logo {\n display: block;\n align-items: center;\n background: color.$yellow;\n\n svg {\n display: block;\n width: 100%;\n height: 100%;\n }\n}\n","import { Component, Host, h, Element } from '@stencil/core';\nimport { state } from '../../data/store';\n\n@Component({\n tag: 'post-logo',\n styleUrl: 'post-logo.scss',\n shadow: true,\n})\nexport class PostLogo {\n @Element() host: HTMLPostLogoElement;\n\n render() {\n if (state.localizedConfig?.header.logo === undefined) return;\n const config = state.localizedConfig.header.logo;\n\n return (\n <Host>\n <a href={config.logoLink} class=\"logo\">\n <span class=\"visually-hidden\">{config.logoLinkTitle}</span>\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 72 72\" aria-hidden=\"true\">\n <g id=\"Logo\">\n <rect fill=\"#ffcc00\" x=\"0\" y=\"0\" width=\"72\" height=\"72\" />\n <polygon\n fill=\"#ff0000\"\n 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\"\n />\n <path 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\" />\n </g>\n </svg>\n </a>\n </Host>\n );\n }\n}\n"],"mappings":"wMAAA,IAAMA,EAAc,s3IACpB,IAAAC,EAAeD,E,ICOFE,EAAQC,EAAA,e,wBAGnBC,EAAAC,UAAAC,OAAA,W,MACE,KAAIC,EAAAC,EAAMC,mBAAe,MAAAF,SAAA,SAAAA,EAAEG,OAAOC,QAASC,UAAW,OACtD,IAAMC,EAASL,EAAMC,gBAAgBC,OAAOC,KAE5C,OACEG,EAACC,EAAI,KACHD,EAAA,KAAGE,KAAMH,EAAOI,SAAUC,MAAM,QAC9BJ,EAAA,QAAMI,MAAM,mBAAmBL,EAAOM,eACtCL,EAAA,OAAKM,MAAM,6BAA6BC,QAAQ,YAAW,cAAa,QACtEP,EAAA,KAAGQ,GAAG,QACJR,EAAA,QAAMS,KAAK,UAAUC,EAAE,IAAIC,EAAE,IAAIC,MAAM,KAAKC,OAAO,OACnDb,EAAA,WACES,KAAK,UACLK,OAAO,wLAETd,EAAA,QAAMe,EAAE,kQ,yHAlBD,I"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["throttle","delay","callback","options","_ref","_ref$noTrailing","noTrailing","_ref$noLeading","noLeading","_ref$debounceMode","debounceMode","undefined","timeoutID","cancelled","lastExec","clearExistingTimeout","clearTimeout","cancel","_ref2","_ref2$upcomingOnly","upcomingOnly","wrapper","_len","arguments","length","arguments_","Array","_key","self","this","elapsed","Date","now","exec","apply","clear","setTimeout","debounce","_ref$atBegin","atBegin"],"sources":["../../node_modules/.pnpm/throttle-debounce@5.0.0/node_modules/throttle-debounce/esm/index.js"],"sourcesContent":["/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n/**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)\n * are most useful.\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,\n * as-is, to `callback` when the throttled-function is executed.\n * @param {object} [options] - An object to configure options.\n * @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds\n * while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed\n * one final time after the last throttled-function call. (After the throttled-function has not been called for\n * `delay` milliseconds, the internal counter is reset).\n * @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback\n * immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that\n * callback will never executed if both noLeading = true and noTrailing = true.\n * @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is\n * false (at end), schedule `callback` to execute after `delay` ms.\n *\n * @returns {Function} A new, throttled, function.\n */\nfunction throttle (delay, callback, options) {\n var _ref = options || {},\n _ref$noTrailing = _ref.noTrailing,\n noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,\n _ref$noLeading = _ref.noLeading,\n noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,\n _ref$debounceMode = _ref.debounceMode,\n debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;\n /*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n\n\n var timeoutID;\n var cancelled = false; // Keep track of the last time `callback` was executed.\n\n var lastExec = 0; // Function to clear existing timeout\n\n function clearExistingTimeout() {\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n } // Function to cancel next exec\n\n\n function cancel(options) {\n var _ref2 = options || {},\n _ref2$upcomingOnly = _ref2.upcomingOnly,\n upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;\n\n clearExistingTimeout();\n cancelled = !upcomingOnly;\n }\n /*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\n\n function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (!noLeading && debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`\n * and noLeading != true.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n if (noLeading) {\n /*\n * In throttle mode with noLeading, if `delay` time has\n * been exceeded, update `lastExec` and schedule `callback`\n * to execute after `delay` ms.\n */\n lastExec = Date.now();\n\n if (!noTrailing) {\n timeoutID = setTimeout(debounceMode ? clear : exec, delay);\n }\n } else {\n /*\n * In throttle mode without noLeading, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n }\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }\n\n wrapper.cancel = cancel; // Return the wrapper function.\n\n return wrapper;\n}\n\n/* eslint-disable no-undefined */\n/**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n * @param {object} [options] - An object to configure options.\n * @param {boolean} [options.atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n *\n * @returns {Function} A new, debounced function.\n */\n\nfunction debounce (delay, callback, options) {\n var _ref = options || {},\n _ref$atBegin = _ref.atBegin,\n atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;\n\n return throttle(delay, callback, {\n debounceMode: atBegin !== false\n });\n}\n\nexport { debounce, throttle };\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAuBA,SAASA,EAAUC,EAAOC,EAAUC,GAClC,IAAIC,EAAOD,GAAW,GAClBE,EAAkBD,EAAKE,WACvBA,EAAaD,SAAyB,EAAI,MAAQA,EAClDE,EAAiBH,EAAKI,UACtBA,EAAYD,SAAwB,EAAI,MAAQA,EAChDE,EAAoBL,EAAKM,aACzBA,EAAeD,SAA2B,EAAIE,UAAYF,EAQ9D,IAAIG,EACJ,IAAIC,EAAY,MAEhB,IAAIC,EAAW,EAEf,SAASC,IACP,GAAIH,EAAW,CACbI,aAAaJ,EACnB,CACA,CAGE,SAASK,EAAOd,GACd,IAAIe,EAAQf,GAAW,GACnBgB,EAAqBD,EAAME,aAC3BA,EAAeD,SAA4B,EAAI,MAAQA,EAE3DJ,IACAF,GAAaO,CACjB,CAQE,SAASC,IACP,IAAK,IAAIC,EAAOC,UAAUC,OAAQC,EAAa,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAAQ,CAC7FF,EAAWE,GAAQJ,UAAUI,EACnC,CAEI,IAAIC,EAAOC,KACX,IAAIC,EAAUC,KAAKC,MAAQlB,EAE3B,GAAID,EAAW,CACb,MACN,CAGI,SAASoB,IACPnB,EAAWiB,KAAKC,MAChB9B,EAASgC,MAAMN,EAAMH,EAC3B,CAOI,SAASU,IACPvB,EAAYD,SAClB,CAEI,IAAKH,GAAaE,IAAiBE,EAAW,CAM5CqB,GACN,CAEIlB,IAEA,GAAIL,IAAiBC,WAAamB,EAAU7B,EAAO,CACjD,GAAIO,EAAW,CAMbM,EAAWiB,KAAKC,MAEhB,IAAK1B,EAAY,CACfM,EAAYwB,WAAW1B,EAAeyB,EAAQF,EAAMhC,EAC9D,CACA,KAAa,CAKLgC,GACR,CACA,MAAW,GAAI3B,IAAe,KAAM,CAY9BM,EAAYwB,WAAW1B,EAAeyB,EAAQF,EAAMvB,IAAiBC,UAAYV,EAAQ6B,EAAU7B,EACzG,CACA,CAEEoB,EAAQJ,OAASA,EAEjB,OAAOI,CACT,CAmBA,SAASgB,EAAUpC,EAAOC,EAAUC,GAClC,IAAIC,EAAOD,GAAW,GAClBmC,EAAelC,EAAKmC,QACpBA,EAAUD,SAAsB,EAAI,MAAQA,EAEhD,OAAOtC,EAASC,EAAOC,EAAU,CAC/BQ,aAAc6B,IAAY,OAE9B,Q"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{P as post_search}from"./p-ded05f0c.js";import"./p-833cd107.js";import"./p-a74b380d.js";import"./p-a119b38d.js";import"./p-4ebec8fe.js";import"./p-dc2f1d20.js";import"./p-c3a2dbaf.js";import"./p-31171eac.js";import"./p-840aa5c6.js";import"./p-90808312.js";
|
|
2
|
-
//# sourceMappingURL=p-aa41c50e.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","module","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","project","stickyness","language","login","search","skiplinks","configProxy","environment","languageSwitchOverrides","customConfig","languageCookieKey","languageLocalStorageKey","logoutUrl","activeRoute","osFlyoutOverrides","fullWidth","activeFlyout","activeDropdownElement","isMainSlotEmpty","getCurrentLanguage","customItems","hideButtons","customBreadcrumbItems","overlayVisible","isConcatenated","dropdownOpen","refsReady","toggleOverlayById","liveSupportEnabled","cookieSettingsEnabled","setFocus","mode","langSwitchOpen","toggleDropdown","mobileMenuOpen","setActiveFlyout","orientation","searchDropdownOpen","coveoSuggestions","placeSuggestions","parcelSuggestion"],"sources":["../../node_modules/.pnpm/@stencil+core@4.12.0/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"8JAKA,IAAMA,EAAe,WAajB,IAAMC,EAAaC,EAAAC,KAAAC,IACnB,IAAMC,EAAqE,GAC3E,GAAIJ,IAAe,GAAI,CACnBI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,IACrD,CACI,OAAOC,EAAeJ,EAC1B,ECpBAL,IAAeU,MAAK,SAAAC,GAElB,OAAOC,EAAc,sDAAuC,CAAAC,QAAA,IAAAC,WAAA,IAAAC,SAAA,IAAAZ,KAAA,IAAAa,MAAA,IAAAC,OAAA,IAAAC,UAAA,IAAAC,YAAA,mBAAAC,YAAA,IAAAC,wBAAA,gCAAAC,aAAA,oBAAAC,kBAAA,0BAAAC,wBAAA,iCAAAC,UAAA,iBAAAC,YAAA,mBAAAC,kBAAA,0BAAAC,UAAA,iBAAAC,aAAA,KAAAC,sBAAA,KAAAC,gBAAA,KAAAC,mBAAA,2DAAAjB,SAAA,yBAAAM,wBAAA,mCAAAM,kBAAA,4BAAAD,YAAA,4BAAAJ,aAAA,6BAAAL,OAAA,uBAAAD,MAAA,sBAAAb,KAAA,qBAAAW,WAAA,0FAAAmB,YAAA,mBAAAC,YAAA,mBAAAC,sBAAA,KAAAC,eAAA,KAAAC,eAAA,KAAAC,aAAA,KAAAC,UAAA,KAAAC,kBAAA,YAAAP,YAAA,uFAAAQ,mBAAA,KAAAC,sBAAA,2DAAAjB,UAAA,iBAAAkB,SAAA,0DAAAC,KAAA,IAAAC,eAAA,KAAAC,eAAA,kGAAAjB,aAAA,KAAAkB,eAAA,KAAAD,eAAA,KAAAH,SAAA,KAAAK,gBAAA,0DAAAC,YAAA,IAAArB,UAAA,6DAAAsB,mBAAA,KAAAC,iBAAA,KAAAC,iBAAA,KAAAC,iBAAA,KAAAP,eAAA,KAAAH,SAAA,uDAAAhC,EAC9D,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n["throw"](t))}catch(t){o(t)}}function u(t){t.done?i(t.value):r(t.value).then(s,a)}u((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,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,o;n<r;n++){if(o||!(n in e)){if(!o)o=Array.prototype.slice.call(e,0,n);o[n]=e[n]}}return t.concat(o||Array.prototype.slice.call(e))};System.register(["./p-b5c47ef8.system.js","./p-9b4d5e90.system.js","./p-f63740ff.system.js","./p-d7e221af.system.js","./p-ef26af95.system.js","./p-941fb537.system.js","./p-1e8226df.system.js","./p-1fd8561a.system.js"],(function(t){"use strict";var e,i,n,r,o,s,a,u,l,f,c,d,h,p,v,g;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H;o=t.g},function(t){s=t.d;a=t.t},function(t){u=t.g;l=t.p;f=t.t},function(t){c=t.u},function(t){d=t.s;h=t.d},function(t){p=t.S},function(t){v=t.S},function(t){g=t.I}],execute:function(){var m=this;var w=function(t,e){if(e===false){return t}var i;t=x(t);if(e==="auto"||e==="exact"){if(y(t)){return b(t)}i=new URL(window.location.href)}else{try{i=new URL(e,document.location.origin)}catch(i){console.warn("Active Route: ".concat(e," is not a valid URL. Navigation highlighting has been disabled."));return t}}var n=k(t,i,e);if(n.length===0){return t}var r=n[0];r.main.isActiveOverride=true;if(r.sub)r.sub.isActiveOverride=true;return t};var y=function(t){return t.filter((function(t){return t.isActive})).length>0};var b=function(t){return t.map((function(t){return Object.assign(Object.assign({},t),{isActiveOverride:t.isActive,flyout:t.flyout.map((function(t){return Object.assign(Object.assign({},t),{linkList:t.linkList.map((function(t){return Object.assign(Object.assign({},t),{isActiveOverride:t.isActive})}))})}))})}))};var x=function(t){return t.map((function(t){return Object.assign(Object.assign({},t),{isActiveOverride:false,flyout:t.flyout.map((function(t){return Object.assign(Object.assign({},t),{linkList:t.linkList.map((function(t){return Object.assign(Object.assign({},t),{isActiveOverride:false})}))})}))})}))};var k=function(t,e,i){var n=false;var r=[];t.filter((function(t){return!n&&t})).forEach((function(t){try{var o=_(e,new URL(t.url),i);n=j(r,o,{main:t,score:o},n)}catch(t){}t.flyout.forEach((function(o){var s;(s=o.linkList)===null||s===void 0?void 0:s.forEach((function(o){if(o.isActive&&(i==="auto"||i==="exact")){n=true;return}try{var s=new URL(o.url);var a=_(e,s,i);n=j(r,a,{main:t,sub:o,score:a},n)}catch(t){}}))}))}));return r.sort((function(t,e){return e.score-t.score}))};function j(t,e,i,n){var r=n;if(e>0){if(e===Infinity)r=true;t.push(i)}return r}var _=function(t,e,i){if(t===null||e===null||t.origin!==e.origin){return 0}var n=t.pathname.toLocaleLowerCase();var r=e.pathname.toLocaleLowerCase();if(n===r){return Infinity}if(t.pathname.length<e.pathname.length){return 0}if(i==="auto"){var o=__spreadArray([t.origin.toLocaleLowerCase()],n.split("/").filter((function(t){return t!==null&&t!==""})),true);var s=__spreadArray([e.origin.toLocaleLowerCase()],r.split("/").filter((function(t){return t!==null&&t!==""})),true);var a=O(o,s);return Math.min(o.length,s.length)===a?a:0}return 0};var O=function(t,e){if(t==null||e==null||t.length===0||e.length===0){return 0}var i=0;for(;i<Math.min(t.length,e.length);i++){if(t[i]!==e[i]){return 0}}return i};var F=null;var N=null;var P=function(){var t=document.querySelector("#PPM_HEADER_DATA");if((t===null||t===void 0?void 0:t.textContent)!=null){return JSON.parse(t.textContent)}return null};var C=function(t){var e=t.projectId,i=t.environment,n=t.language,r=t.cookieKey,o=t.localStorageKey,s=t.activeRouteProp,a=t.localizedCustomConfig,f=t.osFlyoutOverrides;return __awaiter(m,void 0,void 0,(function(){var t,c,d,h,p,v,g;return __generator(this,(function(m){switch(m.label){case 0:d=P();p=null;if(!d)return[3,1];h=d;v=document.documentElement.lang;return[3,3];case 1:if(F==null){F=I(e,i)}return[4,F];case 2:p=m.sent();v=u(Object.keys(p),n,o,r);if(v===undefined){throw new Error("Internet Header: unable to determine current language")}h=Object.assign({},p[v]);m.label=3;case 3:if(a){g=((t=a===null||a===void 0?void 0:a.header)===null||t===void 0?void 0:t.navMain)?Object.assign(Object.assign({},h.header),{navMain:__spreadArray(__spreadArray([],h.header.navMain,true),a.header.navMain,true)}):h.header;h=Object.assign(Object.assign({},h),{header:g})}if(f)h.header.navMain=A(h,f);if(s!=null)h.header.navMain=w(h.header.navMain,s);R((c=h===null||h===void 0?void 0:h.header)===null||c===void 0?void 0:c.navMain);l(v,r,o);return[2,h]}}))}))};var A=function(t,e){if(e==null)return t.header.navMain;return t.header.navMain.map((function(t){var i,n;if(t.id!=="flyout_os")return t;if(N===null){N=JSON.parse(JSON.stringify(t))}var r=(i=e.text)!==null&&i!==void 0?i:N.text;var o=(n=e.title)!==null&&n!==void 0?n:N.title;if(N.flyout==null||N.flyout.length===0||e.flyout==null||e.flyout.length===0)return Object.assign(Object.assign({},t),{title:o,text:r});var s=__spreadArray(__spreadArray([],N.flyout.map((function(t,i){var n;var r=e.flyout[i];var o=(n=r.title)!==null&&n!==void 0?n:t.title;var s=r.linkList!=null?e.flyout[i].linkList:[];return{title:o,linkList:__spreadArray(__spreadArray([],t.linkList,true),s,true)}})),true),e.flyout.slice(N.flyout.length),true);return Object.assign(Object.assign({},t),{text:r,title:o,flyout:s})}))};var I=function(t,e){return __awaiter(m,void 0,void 0,(function(){var i,n,r;return __generator(this,(function(o){switch(o.label){case 0:if(!z(t)){throw new Error('Internet Header: invalid project id "'.concat(t,'"'))}if(t==="test"){e="int01"}i=S(t,e);o.label=1;case 1:o.trys.push([1,4,,5]);return[4,fetch(i)];case 2:n=o.sent();return[4,n.json()];case 3:return[2,o.sent()];case 4:r=o.sent();throw new Error("Internet Header: fetching config failed. ".concat(r.message));case 5:return[2]}}))}))};var S=function(t,e){if(t==="test")return"assets/config/test-configuration.json";var i=e.toLowerCase();var n=i==="prod";var r="https://".concat(n?"www":"int",".post.ch");try{return new URL("".concat(r,"/api/headerjs/Json?serviceid=").concat(encodeURIComponent(t)).concat(!n?"&environment="+i:"")).toString()}catch(t){throw new Error("Internet Header: Config URL is invalid.")}};var z=function(t){return t!==""&&t.length>0&&/^[a-zA-Z][\w-]*[a-zA-Z0-9]$/.test(t)};var L=function(t,e){var i;var n;try{n=typeof t==="string"?JSON.parse(t):t}catch(t){throw new Error("Internet Header: Custom config is invalid. Make sure your custom config contains valid JSON syntax and matches the definition. ")}var r=n[e];if((i=r===null||r===void 0?void 0:r.header)===null||i===void 0?void 0:i.navMain)R(r.header.navMain);return r};var R=function(t){t.forEach((function(t){t.id=t.id==="flyout_os"?t.id:c("main-nav-")}))};var E="@swisspost/internet-header";var T="1.13.5";var W="The header for client facing applications.";var J="Swiss Post <oss@post.ch>";var K="Apache-2.0";var H={type:"git",url:"https://github.com/swisspost/design-system.git"};var M="https://next.design-system.post.ch";var D={url:"https://github.com/swisspost/design-system/issues"};var U="loader/index.cjs.js";var B="loader/index.js";var G="loader/index.es2017.js";var q="loader/index.d.ts";var V="dist/collection/collection-manifest.json";var X="dist/swisspost-internet-header/swisspost-internet-header.esm.js";var Z={access:"public"};var Y=["dist/","loader/"];var $={dev:"stencil build --serve --port 9310 --watch --docs-readme",start:"stencil build --watch --docs-readme",build:"stencil build --docs-readme",clean:"rimraf www dist loader",test:"npm run unit",unit:"jest","unit:watch":"jest --watch",e2e:"cypress run","e2e:watch":"cypress open",lint:"eslint src/**/*{.ts,.tsx}","lint:fix":"eslint src/**/*{.ts,.tsx} --fix",generate:"stencil generate"};var Q={"@swisspost/design-system-styles":"workspace:6.6.1","body-scroll-lock":"4.0.0-beta.0","iframe-resizer":"4.3.9",jquery:"3.7.1",tabbable:"6.2.0","throttle-debounce":"5.0.0","url-polyfill":"1.1.12"};var tt={"@babel/core":"7.23.9","@percy/cli":"1.27.7","@percy/cypress":"3.1.2","@stencil-community/eslint-plugin":"0.7.1","@stencil/core":"4.12.0","@stencil/sass":"3.0.9","@stencil/store":"2.0.13","@types/body-scroll-lock":"3.1.2","@types/iframe-resizer":"3.5.13","@types/jest":"29.5.12","@types/jquery":"3.5.29","@types/node":"18.19.14","@types/throttle-debounce":"5.0.2","babel-loader":"9.1.3",bootstrap:"5.3.2",cypress:"13.6.4","cypress-each":"1.13.3","cypress-storybook":"0.5.1","eslint-plugin-react":"7.33.2",globby:"14.0.0",jest:"29.7.0","jest-environment-jsdom":"29.7.0",rimraf:"5.0.5","rollup-plugin-node-polyfills":"0.2.1","rollup-plugin-scss":"4.0.0","rollup-plugin-visualizer":"5.12.0",sass:"1.70.0","start-server-and-test":"2.0.3","ts-jest":"29.1.2",typescript:"4.9.5"};var et=["components","web-components","header","stencil","design-system","ui","frontend"];var it={name:E,version:T,description:W,author:J,license:K,repository:H,homepage:M,bugs:D,main:U,module:B,es2017:G,types:q,collection:V,"collection:main":"dist/collection/index.js",unpkg:X,publishConfig:Z,files:Y,scripts:$,dependencies:Q,devDependencies:tt,keywords:et};var nt=function(t){if(!(t instanceof HTMLElement||t instanceof SVGElement)){return false}var e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((function(t){var i=e.getPropertyValue(t);return i==="auto"||i==="scroll"}))};var rt=function(t){var e=t.parentElement;while(e){if(e.nodeName==="BODY"){return document}if(nt(e)){return e}e=e.parentElement}return document};var ot=function(t,e){var i=rt(t);var n=i instanceof Element?i.scrollTop:i.documentElement.scrollTop;var r=d.stickyness==="full"?0:n;var o,s;if(e){o=t.clientHeight-1;s=e.clientHeight}else{var a=window.getComputedStyle(t);var u=parseFloat(a.getPropertyValue("font-size"));s=parseFloat(a.getPropertyValue("--meta-header-height"))*u;o=s+parseFloat(a.getPropertyValue("--header-height"))*u}var l=1;if(s>0){l=Math.max((o-Math.max(r,0))/(o-s),1)}return l.toString()};var st=function(t,e){var i=rt(e);var n=function(){e.style.setProperty("--logo-scale",ot(e,t))};var r=s(150,n);var o=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting&&t.intersectionRatio>0){i.addEventListener("scroll",n,{passive:true});window.addEventListener("resize",r);window.requestAnimationFrame(n)}else{i.removeEventListener("scroll",n);window.removeEventListener("resize",r);window.requestAnimationFrame(n)}}))}),{threshold:[0,.001]});o.observe(t);return n};var at='@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:700;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Bold.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Bold.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:700;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-BdIt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-BdIt.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:400;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Rg.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Rg.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:400;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-It.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-It.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:300;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Lt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-Lt.woff") format("woff")}@font-face{font-display:swap;font-family:"Frutiger Neue For Post";font-weight:300;font-style:italic;src:url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-LtIt.woff2") format("woff2"),url("https://fonts.post.ch/frutigerneueforpost/v2/FrutigerNeueforPostW05-LtIt.woff") format("woff")}.visually-hidden{position:absolute;width:1px;height:1px;border:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0)}.btn-blank{background-color:rgba(0,0,0,0);border:none;border-radius:0;padding:0}.nav-link{outline:none;outline-offset:2px;text-decoration:none;color:rgba(0,0,0,.8);-webkit-transition:color 200ms;transition:color 200ms;background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;border:0;margin:0;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:.5rem}.nav-link:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.nav-link:hover,.nav-link:focus{color:#000}.nav-link:is(:focus-visible,:focus-within,.pretend-focus){z-index:1;position:relative}.nav-link>svg{width:1.4em;height:1.4em;-ms-flex-negative:0;flex-shrink:0}.nav-link>span{-ms-flex-negative:1;flex-shrink:1}.no-list{list-style:none;padding-left:0;margin-top:0;margin-bottom:0}*,:host,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host{font-family:"Frutiger Neue For Post",system-ui,sans-serif}button{font:inherit;padding:0}a,button{border-radius:4px;outline:none;outline-offset:2px}a:is(:focus-visible,:focus-within,.pretend-focus),button:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color);border-radius:4px}img,svg{max-width:100%;max-height:100%}@media (forced-colors: active){svg{color:#fff}}.box>*:first-child{margin-top:0}.box>*:last-child{margin-bottom:0}.mirrored{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.bold{font-weight:700}.light{font-weight:300}.d-flex{display:-ms-flexbox;display:flex}.d-inline-flex{display:-ms-inline-flexbox;display:inline-flex}.align-items-center{-ms-flex-align:center;align-items:center}@media (min-width: 1441px){.wide-container{margin:0 auto;max-width:1440px}}@media (max-width: 599.98px){.container{padding-right:16px;padding-left:16px}}@media (min-width: 600px)and (max-width: 1023.98px){.container{padding-right:32px;padding-left:32px}}@media (min-width: 1024px){.container{padding-right:40px;padding-left:40px}}@media (max-width: -0.02px){.hidden-xs{display:none}}@media (max-width: 399.98px){.hidden-sm{display:none}}@media (max-width: 599.98px){.hidden-rg{display:none}}@media (max-width: 779.98px){.hidden-md{display:none}}@media (max-width: 1023.98px){.hidden-lg{display:none}}@media (max-width: 1279.98px){.hidden-xl{display:none}}@media (max-width: 1440.98px){.hidden-xxl{display:none}}:host{--logo-scale:1}@media (max-width: 1023.98px){:host{--logo-scale:1 !important}}post-logo{height:var(--header-height);width:var(--header-height);-webkit-transform-origin:bottom left;transform-origin:bottom left;-webkit-transform:scale(var(--logo-scale));transform:scale(var(--logo-scale))}post-main-navigation{margin-left:calc(var(--header-height)*var(--logo-scale) - var(--header-height))}:host{display:block;position:relative;font-size:1rem;font-weight:300;z-index:var(--header-z-index, 10);--header-height:3.5rem;--meta-header-height:0px;--language-dropdown-margin-top:0px}@media (min-width: 1024px){:host{--meta-header-height:3rem;--header-height:4rem}}@media (min-width: 1280px){:host{--header-height:4.5rem}}:host([meta=false]){--meta-header-height:0px;--language-dropdown-margin-top:1px}@supports ((position: -webkit-sticky) or (position: sticky)){:host(:not(.stickyness-none)){position:-webkit-sticky;position:sticky}:host(.stickyness-full){top:0}:host(.stickyness-main){top:calc(var(--meta-header-height, 0px)*-1)}:host(.stickyness-minimal){top:calc((var(--header-height, 0px) + var(--meta-header-height, 0px) + 1px)*-1);-webkit-transition:top 200ms ease-in;transition:top 200ms ease-in}:host(.stickyness-minimal.scrolling-up),:host(.stickyness-minimal.dropdown-open){top:calc(var(--meta-header-height, 0px)*-1);-webkit-transition:top 200ms ease-out;transition:top 200ms ease-out}}.post-internet-header{border-bottom:1px solid #e6e6e6;background-color:#fff}.main-navigation-container{display:-ms-flexbox;display:flex}.main-navigation-container>.main-navigation-controls{-ms-flex:0 1 auto;flex:0 1 auto}.main-navigation{display:-ms-flexbox;display:flex}.sub-navigation-container{position:absolute;top:100%;left:0;width:100%;display:-ms-flexbox;display:flex;background:#fff;visibility:hidden}.main-navigation-item:hover .sub-navigation-container{visibility:visible}.main-navigation-controls{display:-ms-flexbox;display:flex;margin-left:auto}@media (max-width: 1023.98px){.main-navigation-controls{font-weight:400}}@media (min-width: 1024px){.main-navigation-controls{font-size:1.0625rem}}.main-navigation-controls>*{border-left:1px solid #e6e6e6;-ms-flex:0 0 auto;flex:0 0 auto}.main-navigation-custom-content{max-height:var(--header-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-negative:1;flex-shrink:1}.menu-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 calc(1rem - 1px);font-weight:300;cursor:pointer;border-left:1px solid #e6e6e6;-ms-flex-order:1;order:1}@media (min-width: 1024px){.menu-button{display:none}}@media (min-width: 600px)and (max-width: 1023.98px){.menu-button .visually-hidden{position:static;width:auto;height:auto;margin:auto;overflow:visible;clip:auto;visibility:visible;margin-right:.5rem}}.menu-button svg{width:1.5rem;height:1.5rem}.full-width .wide-container{max-width:none}';var ut=at;var lt=t("P",function(){function t(t){e(this,t);this.headerLoaded=i(this,"headerLoaded",7);this.lastScrollTop=window.scrollY||document.documentElement.scrollTop;this.lastWindowWidth=window.innerWidth;this.handleClickOutsideBound=this.handleClickOutside.bind(this);this.project=undefined;this.stickyness="minimal";this.language=undefined;this.meta=true;this.login=true;this.search=true;this.skiplinks=true;this.configProxy=undefined;this.environment="prod";this.languageSwitchOverrides=undefined;this.customConfig=undefined;this.languageCookieKey=undefined;this.languageLocalStorageKey="swisspost-internet-header-language";this.logoutUrl=undefined;this.activeRoute="auto";this.osFlyoutOverrides=undefined;this.fullWidth=false;this.activeFlyout=null;this.activeDropdownElement=null;this.isMainSlotEmpty=true;if(this.project===undefined||this.project===""||!z(this.project)){throw new Error('Internet Header project key is "'.concat(this.project,'". Please provide a valid project key.'))}}t.prototype.getCurrentLanguage=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){return[2,(t=d.currentLanguage)!==null&&t!==void 0?t:"de"]}))}))};t.prototype.connectedCallback=function(){var t=this;this.throttledScroll=a(300,(function(){return t.handleScrollEvent()}));this.debouncedResize=s(200,(function(){return t.handleResize()}))};t.prototype.disconnectedCallback=function(){this.scrollParent.removeEventListener("scroll",this.throttledScroll);this.scrollParent.removeEventListener("resize",this.debouncedResize);h()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,n;return __generator(this,(function(r){switch(r.label){case 0:this.scrollParent=rt(this.host);this.scrollParent.addEventListener("scroll",this.throttledScroll,{passive:true});this.scrollParent.addEventListener("resize",this.debouncedResize,{passive:true});r.label=1;case 1:r.trys.push([1,3,,4]);d.projectId=this.project;d.stickyness=this.stickyness;d.environment=this.environment.toLocaleLowerCase();if(this.language!==undefined)d.currentLanguage=this.language;d.languageSwitchOverrides=typeof this.languageSwitchOverrides==="string"?JSON.parse(this.languageSwitchOverrides):this.languageSwitchOverrides;d.osFlyoutOverrides=typeof this.osFlyoutOverrides==="string"?JSON.parse(this.osFlyoutOverrides):this.osFlyoutOverrides;if(this.customConfig!==undefined){t=Object.keys(typeof this.customConfig==="string"?JSON.parse(this.customConfig):this.customConfig);e=d.currentLanguage||u(t,this.language);d.localizedCustomConfig=L(this.customConfig,e)}i=d;return[4,C({projectId:this.project,environment:d.environment,language:this.language,cookieKey:this.languageCookieKey,localStorageKey:this.languageLocalStorageKey,activeRouteProp:this.activeRoute,localizedCustomConfig:d.localizedCustomConfig,osFlyoutOverrides:d.osFlyoutOverrides})];case 2:i.localizedConfig=r.sent();return[3,4];case 3:n=r.sent();console.error(n);return[3,4];case 4:return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;window.requestAnimationFrame((function(){t.handleResize();t.headerLoaded.emit();t.host.classList.add("header-loaded");if(t.meta&&t.metaNav){t.updateLogoAnimation=st(t.metaNav,t.host)}}));if(this.stickyness==="full")console.warn('Internet Header: The stickyness="full" option is deprecated.')};t.prototype.handleLanguageChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:d.currentLanguage=t;e=d;return[4,C({projectId:this.project,environment:this.environment,language:t,cookieKey:this.languageCookieKey,localStorageKey:this.languageLocalStorageKey,activeRouteProp:this.activeRoute,localizedCustomConfig:d.localizedCustomConfig,osFlyoutOverrides:d.osFlyoutOverrides})];case 1:e.localizedConfig=i.sent();if(this.customConfig)d.localizedCustomConfig=L(this.customConfig,t);return[2]}}))}))};t.prototype.handleAvailableLanguagesChange=function(t){d.languageSwitchOverrides=typeof t==="string"?JSON.parse(t):t};t.prototype.handleOsFlyoutOverrides=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:d.osFlyoutOverrides=typeof t==="string"?JSON.parse(t):t;e=d;return[4,C({projectId:this.project,environment:this.environment,language:this.language,cookieKey:this.languageCookieKey,localStorageKey:this.languageLocalStorageKey,activeRouteProp:this.activeRoute,localizedCustomConfig:d.localizedCustomConfig,osFlyoutOverrides:d.osFlyoutOverrides})];case 1:e.localizedConfig=i.sent();return[2]}}))}))};t.prototype.handleActiveRouteChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:e=d;return[4,C({projectId:this.project,environment:this.environment,language:this.language,cookieKey:this.languageCookieKey,localStorageKey:this.languageLocalStorageKey,activeRouteProp:t,localizedCustomConfig:d.localizedCustomConfig,osFlyoutOverrides:d.osFlyoutOverrides})];case 1:e.localizedConfig=i.sent();return[2]}}))}))};t.prototype.handleCustomConfigChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:if(this.language===undefined)return[2];e=L(t,this.language);d.localizedCustomConfig=e;i=d;return[4,C({projectId:this.project,environment:this.environment,language:this.language,cookieKey:this.languageCookieKey,localStorageKey:this.languageLocalStorageKey,activeRouteProp:this.activeRoute,localizedCustomConfig:e,osFlyoutOverrides:d.osFlyoutOverrides})];case 1:i.localizedConfig=n.sent();return[2]}}))}))};t.prototype.handleSearchChange=function(t){d.search=t};t.prototype.handleLoginChange=function(t){d.login=t};t.prototype.handleMetaChange=function(t){d.meta=t};t.prototype.handleLanguageChangeEvent=function(t){void this.handleLanguageChange(t.detail)};t.prototype.handleStickynessChange=function(t){d.stickyness=t;if(typeof this.updateLogoAnimation==="function")this.updateLogoAnimation()};t.prototype.handleClickOutside=function(t){if(this.activeDropdownElement&&!t.composedPath().includes(this.activeDropdownElement)){void this.activeDropdownElement.toggleDropdown(false)}};t.prototype.handleKeyUp=function(t){if(t.key==="Escape"){if(this.activeDropdownElement){void this.activeDropdownElement.toggleDropdown(false)}if(this.activeFlyout!==null&&this.mainNav){void this.mainNav.toggleDropdown(false)}}};t.prototype.handleScrollEvent=function(){var t=this.scrollParent instanceof Document?this.scrollParent.documentElement.scrollTop:this.scrollParent.scrollTop;if(this.stickyness==="minimal"){this.host.classList.toggle("scrolling-up",t<=this.lastScrollTop)}this.lastScrollTop=t<=0?0:t};t.prototype.handleResize=function(){var t;if(this.isMainNavOpen()&&this.lastWindowWidth<1024&&window.innerWidth>=1024){(t=this.activeDropdownElement)===null||t===void 0?void 0:t.toggleDropdown(false)}this.lastWindowWidth=window.innerWidth};t.prototype.handleDropdownToggled=function(t){var e=this;if(!t.detail.open&&this.activeDropdownElement!==t.detail.element){return}if(t.detail.open){if(this.activeDropdownElement){void this.activeDropdownElement.toggleDropdown(false)}this.activeDropdownElement=t.detail.element;if(window.innerWidth>=1024){window.setTimeout((function(){window.addEventListener("click",e.handleClickOutsideBound)}),10)}if(this.activeFlyout!==null&&this.mainNav){void this.mainNav.setActiveFlyout(null)}}else{this.activeDropdownElement=null;window.removeEventListener("click",this.handleClickOutsideBound)}};t.prototype.handleFlyoutToggled=function(t){this.activeFlyout=t.detail;if(this.activeDropdownElement&&t.detail&&!this.isMainNavOpen()){void this.activeDropdownElement.toggleDropdown(false)}};t.prototype.toggleMobileDropdown=function(){var t;(t=this.mainNav)===null||t===void 0?void 0:t.toggleDropdown()};t.prototype.isMainNavOpen=function(){return this.activeDropdownElement&&this.activeDropdownElement.tagName==="POST-MAIN-NAVIGATION"};t.prototype.handleMainSlotChange=function(t){var e=t.target;this.isMainSlotEmpty=e.assignedElements().length===0};t.prototype.render=function(){var t=this;var e,i,o;if(!((e=d.localizedConfig)===null||e===void 0?void 0:e.header)){console.error(new Error("Internet Header: Config cannot be loaded"));return}var s=d.localizedConfig;var a=this.meta&&s.header.navMeta!==undefined&&((i=s.header.navMeta)===null||i===void 0?void 0:i.filter((function(t){return!t.isHomeLink})).length)>0;var u=((o=this.login)!==null&&o!==void 0?o:!s.header.isLoginWidgetHidden)&&s.header.loginWidgetOptions;var l=s.header.navLang.length>1;var c=ot(this.host);return n(r,{class:"stickyness-".concat(this.stickyness," ").concat(Boolean(this.activeDropdownElement)||Boolean(this.activeFlyout)?"dropdown-open":""),"data-version":it.version,onKeyup:function(e){return t.handleKeyUp(e)},style:{"--logo-scale":c}},n("header",{class:"post-internet-header".concat(this.fullWidth?" full-width":"")},n(p,null),n("h1",{class:"visually-hidden"},f("Navigate on post.ch")),n(g,{condition:this.skiplinks},n("post-skiplinks",null)),n(g,{condition:a},n("post-meta-navigation",{orientation:"horizontal",class:"hidden-lg","full-width":this.fullWidth,ref:function(e){return t.metaNav=e}},n(g,{condition:l},n("post-language-switch",{id:"post-language-switch-desktop",mode:"dropdown",onDropdownToggled:function(e){return t.handleDropdownToggled(e)}})))),n("div",{class:"main-navigation-container wide-container"},n("post-logo",null),n("button",{class:"menu-button nav-link",onClick:function(){return t.toggleMobileDropdown()},"aria-haspopup":"menu","aria-controls":"post-internet-header-main-navigation","aria-expanded":this.activeDropdownElement?"true":"false"},n("span",{class:"menu-button-text visually-hidden"},s.header.mobileMenu.text),n(v,{name:this.isMainNavOpen()?"pi-close":"pi-menu"})),n("post-main-navigation",{onDropdownToggled:function(e){return t.handleDropdownToggled(e)},onFlyoutToggled:function(e){return t.handleFlyoutToggled(e)},ref:function(e){return t.mainNav=e}},n(g,{condition:a},n("post-meta-navigation",{orientation:"vertical"},n(g,{condition:l},n("post-language-switch",{id:"post-language-switch-mobile",mode:"list"}))))),n("div",{class:"main-navigation-controls"},n("div",{class:"main-navigation-custom-content",hidden:this.isMainSlotEmpty},n("slot",{name:"main",onSlotchange:function(e){return t.handleMainSlotChange(e)}})),n(g,{condition:this.search},n("post-search",{onDropdownToggled:function(e){return t.handleDropdownToggled(e)}})),n(g,{condition:!!u},n("post-klp-login-widget",{"logout-url":this.logoutUrl},n("slot",{name:"login-widget"}))),n(g,{condition:!a&&l},n("post-language-switch",{id:"post-language-switch-no-meta",onDropdownToggled:function(e){return t.handleDropdownToggled(e)},mode:"dropdown"}))))))};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["handleLanguageChange"],languageSwitchOverrides:["handleAvailableLanguagesChange"],osFlyoutOverrides:["handleOsFlyoutOverrides"],activeRoute:["handleActiveRouteChange"],customConfig:["handleCustomConfigChange"],search:["handleSearchChange"],login:["handleLoginChange"],meta:["handleMetaChange"],stickyness:["handleStickynessChange"]}},enumerable:false,configurable:true});return t}());lt.style=ut}}}));
|
|
2
|
-
//# sourceMappingURL=p-b261a78e.system.js.map
|