@postnord/pn-marketweb-components 2.0.148 → 2.0.150-test
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/cjs/{index-95e5b7f9.js → index-28bbc937.js} +1 -1
- package/cjs/{index-4199ff85.js → index-e3e27c79.js} +278 -595
- package/cjs/loader.cjs.js +3 -4
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
- package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
- package/cjs/pn-breakpoints.cjs.entry.js +2 -2
- package/cjs/pn-chart.cjs.entry.js +2 -3
- package/cjs/pn-charts-card.cjs.entry.js +2 -9
- package/cjs/pn-choice-button.cjs.entry.js +2 -5
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +2 -2
- package/cjs/pn-customernumber-selector.cjs.entry.js +2 -2
- package/cjs/pn-filter-checkbox.cjs.entry.js +2 -5
- package/cjs/pn-find-price-result.cjs.entry.js +4 -7
- package/cjs/{pn-find-price-store-6b418730.js → pn-find-price-store-0b8c195c.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +4 -4
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +4 -4
- package/cjs/{pn-find-service-and-price-store-6e26630d.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +4 -4
- package/cjs/pn-language-selector_9.cjs.entry.js +436 -49
- package/cjs/pn-line-shape.cjs.entry.js +2 -2
- package/cjs/pn-mainnav-link.cjs.entry.js +10 -4
- package/cjs/{pn-mainnav-store-8c337865.js → pn-mainnav-store-61a75ea0.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +3 -7
- package/cjs/pn-marketweb-input.cjs.entry.js +7 -2
- package/cjs/pn-marketweb-search.cjs.entry.js +6 -2
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +15 -10
- package/cjs/{pn-marketweb-siteheader-login-links_2.cjs.entry.js → pn-marketweb-siteheader-login-button_3.cjs.entry.js} +52 -18
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +5 -4
- package/cjs/pn-marketweb-siteheader-store-e29ad918.js +10 -0
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +46 -14
- package/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
- package/cjs/pn-pex-pricefinder.cjs.entry.js +5 -2
- package/cjs/pn-product-card_4.cjs.entry.js +7 -16
- package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
- package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
- package/cjs/pn-product-tile-info_2.cjs.entry.js +3 -10
- package/cjs/pn-product-tile.cjs.entry.js +2 -2
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +2 -2
- package/cjs/pn-profile-modal-profile.cjs.entry.js +4 -4
- package/cjs/{pn-profile-modal-store-947b08ae.js → pn-profile-modal-store-6117e304.js} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +4 -4
- package/cjs/pn-profile-modal.cjs.entry.js +4 -4
- package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
- package/cjs/pn-profile-selector.cjs.entry.js +5 -5
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +5 -3
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +5 -12
- package/cjs/pn-quick-cta.cjs.entry.js +2 -2
- package/cjs/pn-quote-card.cjs.entry.js +3 -2
- package/cjs/pn-sidenav-level.cjs.entry.js +4 -4
- package/cjs/pn-sidenav-link.cjs.entry.js +12 -4
- package/cjs/{pn-sidenav-store-d2389306.js → pn-sidenav-store-d9bd9e00.js} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +5 -4
- package/cjs/pn-sidenav.cjs.entry.js +6 -4
- package/cjs/pn-site-footer_2.cjs.entry.js +4 -3
- package/cjs/pn-spotlight.cjs.entry.js +2 -2
- package/cjs/pn-stats-info-data.cjs.entry.js +8 -8
- package/cjs/pn-stats-info.cjs.entry.js +2 -2
- package/cjs/pn-teaser-card.cjs.entry.js +4 -3
- package/collection/collection-manifest.json +3 -2
- package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js +11 -12
- package/collection/components/cards/pn-quote-card/pn-quote-card.js +79 -68
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +113 -109
- package/collection/components/charts/pn-chart/pn-chart.js +74 -83
- package/collection/components/charts/pn-charts-card/pn-charts-card.js +146 -142
- package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +128 -133
- package/collection/components/cta/pn-quick-cta/pn-quick-cta.js +49 -51
- package/collection/components/cta/pn-spotlight/pn-spotlight.js +51 -51
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +115 -120
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info.js +79 -82
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js +87 -93
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +195 -193
- package/collection/components/input/pn-choice-button/pn-choice-button.js +137 -145
- package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js +122 -128
- package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +355 -347
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +260 -258
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.js +3 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +221 -201
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.css +3 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +69 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +71 -97
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +102 -128
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +186 -200
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +263 -240
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +173 -171
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-store.js +7 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +550 -479
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +13 -1
- package/collection/components/minor/pn-titletag/pn-titletag.js +49 -51
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +123 -119
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js +64 -71
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +58 -58
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +97 -92
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +33 -39
- package/collection/components/navigation/pn-mainnav/pn-mainnav.js +183 -182
- package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +22 -29
- package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +134 -128
- package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +34 -39
- package/collection/components/navigation/pn-sidenav/pn-sidenav.js +66 -71
- package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +29 -34
- package/collection/components/navigation/pn-site-footer/pn-site-footer.js +75 -68
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +89 -85
- package/collection/components/navigation/pn-site-selector/pn-site-selector.js +73 -73
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +67 -68
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +90 -90
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +79 -85
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +188 -182
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +84 -91
- package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +115 -116
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +67 -68
- package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +76 -78
- package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +42 -48
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +179 -163
- package/collection/components/widgets/pn-find-price/pn-find-price.js +113 -99
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +67 -66
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +148 -133
- package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +102 -87
- package/collection/components/widgets/pn-product-card/pn-product-card-info.js +94 -92
- package/collection/components/widgets/pn-product-card/pn-product-card-price.js +131 -138
- package/collection/components/widgets/pn-product-card/pn-product-card.js +21 -12
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +108 -101
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +140 -137
- package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +62 -70
- package/collection/components/widgets/pn-product-tile/pn-product-tile-price.js +83 -87
- package/collection/components/widgets/pn-product-tile/pn-product-tile.js +16 -12
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +145 -130
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +82 -87
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +57 -55
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.js +61 -70
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +20 -12
- package/collection/globals/MarketWebLoginManager.js +77 -0
- package/custom-elements/index.d.ts +6 -0
- package/custom-elements/index.js +966 -789
- package/esm/{index-c118284d.js → index-5397620b.js} +279 -595
- package/esm/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
- package/esm/loader.js +3 -4
- package/esm/pn-bonus-progressbar-level.entry.js +2 -2
- package/esm/pn-bonus-progressbar.entry.js +2 -2
- package/esm/pn-breakpoints.entry.js +2 -2
- package/esm/pn-chart.entry.js +2 -3
- package/esm/pn-charts-card.entry.js +2 -9
- package/esm/pn-choice-button.entry.js +2 -5
- package/esm/pn-customernumber-selector-option.entry.js +2 -2
- package/esm/pn-customernumber-selector.entry.js +2 -2
- package/esm/pn-filter-checkbox.entry.js +2 -5
- package/esm/pn-find-price-result.entry.js +4 -7
- package/esm/{pn-find-price-store-2cef65c5.js → pn-find-price-store-b4556c9b.js} +1 -1
- package/esm/pn-find-price.entry.js +4 -4
- package/esm/pn-find-service-and-price-result.entry.js +4 -4
- package/esm/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +4 -4
- package/esm/pn-language-selector_9.entry.js +436 -49
- package/esm/pn-line-shape.entry.js +2 -2
- package/esm/pn-mainnav-link.entry.js +10 -4
- package/esm/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-28571e54.js} +1 -1
- package/esm/pn-market-web-components.js +3 -4
- package/esm/pn-marketweb-input.entry.js +7 -2
- package/esm/pn-marketweb-search.entry.js +6 -2
- package/esm/pn-marketweb-sitefooter.entry.js +15 -10
- package/esm/{pn-marketweb-siteheader-login-links_2.entry.js → pn-marketweb-siteheader-login-button_3.entry.js} +52 -19
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +5 -4
- package/esm/pn-marketweb-siteheader-store-cd0a1dab.js +8 -0
- package/esm/pn-marketweb-siteheader.entry.js +46 -14
- package/esm/pn-parcel-tracker.entry.js +2 -2
- package/esm/pn-pex-pricefinder.entry.js +5 -2
- package/esm/pn-product-card_4.entry.js +7 -16
- package/esm/pn-product-pricelist-result.entry.js +3 -3
- package/esm/pn-product-pricelist.entry.js +4 -4
- package/esm/pn-product-tile-info_2.entry.js +3 -10
- package/esm/pn-product-tile.entry.js +2 -2
- package/esm/pn-profile-modal-customernumber.entry.js +2 -2
- package/esm/pn-profile-modal-profile.entry.js +4 -4
- package/esm/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-ae9e0d5a.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +4 -4
- package/esm/pn-profile-modal.entry.js +4 -4
- package/esm/pn-profile-selector-option.entry.js +2 -2
- package/esm/pn-profile-selector.entry.js +5 -5
- package/esm/pn-proxio-pricegroup.entry.js +5 -3
- package/esm/pn-proxio-productcard_4.entry.js +5 -12
- package/esm/pn-quick-cta.entry.js +2 -2
- package/esm/pn-quote-card.entry.js +3 -2
- package/esm/pn-sidenav-level.entry.js +4 -4
- package/esm/pn-sidenav-link.entry.js +12 -4
- package/esm/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-50b186d6.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +5 -4
- package/esm/pn-sidenav.entry.js +6 -4
- package/esm/pn-site-footer_2.entry.js +4 -3
- package/esm/pn-spotlight.entry.js +2 -2
- package/esm/pn-stats-info-data.entry.js +8 -8
- package/esm/pn-stats-info.entry.js +2 -2
- package/esm/pn-teaser-card.entry.js +4 -3
- package/esm/polyfills/css-shim.js +1 -1
- package/esm-es5/MarketWebContextService-872043cc.js +1 -1
- package/esm-es5/convert-f6377d13.js +1 -1
- package/esm-es5/index-5397620b.js +1 -0
- package/esm-es5/{index-7f77b0ba.js → index-7b21ecff.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-breakpoints.entry.js +1 -1
- package/esm-es5/pn-chart.entry.js +2 -2
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-2cef65c5.js → pn-find-price-store-b4556c9b.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-line-shape.entry.js +1 -1
- package/esm-es5/pn-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-28571e54.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_3.entry.js +1 -0
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-store-cd0a1dab.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-product-card_4.entry.js +1 -1
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
- package/esm-es5/pn-product-tile.entry.js +1 -1
- package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
- package/esm-es5/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-ae9e0d5a.js} +1 -1
- package/esm-es5/pn-profile-modal-type.entry.js +1 -1
- package/esm-es5/pn-profile-modal.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-quote-card.entry.js +1 -1
- package/esm-es5/pn-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-50b186d6.js} +1 -1
- package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_2.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/esm-es5/pn-teaser-card.entry.js +1 -1
- package/package.json +2 -3
- package/pn-market-web-components/p-022d9a78.entry.js +1 -0
- package/pn-market-web-components/{p-6f1d6a1a.system.js → p-02ea55ad.system.js} +1 -1
- package/pn-market-web-components/p-0796f9b2.entry.js +1 -0
- package/pn-market-web-components/p-0862b4b6.entry.js +1 -0
- package/pn-market-web-components/{p-a1a58fe4.js → p-0cacf9fb.js} +1 -1
- package/pn-market-web-components/{p-f7cb2ef9.system.entry.js → p-1151bf60.system.entry.js} +1 -1
- package/pn-market-web-components/p-15112837.entry.js +1 -0
- package/pn-market-web-components/p-16c4bc50.entry.js +1 -0
- package/pn-market-web-components/p-17c4004f.entry.js +1 -0
- package/pn-market-web-components/{p-4ccf1b55.system.entry.js → p-198d9c77.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0c46847e.system.entry.js → p-1c38553b.system.entry.js} +1 -1
- package/pn-market-web-components/p-1ca41ab1.entry.js +1 -0
- package/pn-market-web-components/{p-1fb4eae4.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
- package/pn-market-web-components/p-227e1d46.entry.js +1 -0
- package/pn-market-web-components/p-249964b5.entry.js +1 -0
- package/pn-market-web-components/{p-abfed655.system.entry.js → p-2718b89a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7d463116.system.entry.js → p-28c4b4d9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-853e6559.system.entry.js → p-290d5824.system.entry.js} +1 -1
- package/pn-market-web-components/p-2a598ee8.entry.js +1 -0
- package/pn-market-web-components/p-2da8e5e8.system.entry.js +1 -0
- package/pn-market-web-components/p-31fd7a95.system.js +1 -1
- package/pn-market-web-components/p-332e9005.entry.js +1 -0
- package/pn-market-web-components/p-35fcd76c.system.entry.js +1 -0
- package/pn-market-web-components/p-36654f2a.system.js +1 -0
- package/pn-market-web-components/{p-e4961116.system.entry.js → p-36a1b8e1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f4a6d005.system.js → p-37017f68.system.js} +1 -1
- package/pn-market-web-components/p-381b3ec0.entry.js +1 -0
- package/pn-market-web-components/p-3ae38e63.entry.js +1 -0
- package/pn-market-web-components/p-3c0d63fb.system.entry.js +1 -0
- package/pn-market-web-components/{p-c576ac3e.system.entry.js → p-447ef543.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8ca063a9.system.entry.js → p-450cbe76.system.entry.js} +1 -1
- package/pn-market-web-components/p-479b970a.entry.js +1 -0
- package/pn-market-web-components/p-4a026c9d.system.entry.js +1 -0
- package/pn-market-web-components/p-4bef1bf3.entry.js +1 -0
- package/pn-market-web-components/{p-9f95b3c9.system.entry.js → p-4f67721e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-66b4a71f.system.entry.js → p-5703e89b.system.entry.js} +1 -1
- package/pn-market-web-components/p-5882d613.entry.js +1 -0
- package/pn-market-web-components/{p-8fee0115.system.entry.js → p-58a57436.system.entry.js} +1 -1
- package/pn-market-web-components/p-58e8d7d5.js +1 -0
- package/pn-market-web-components/p-61dbe832.entry.js +1 -0
- package/pn-market-web-components/{p-b890f3f9.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
- package/pn-market-web-components/p-67380aa4.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -0
- package/pn-market-web-components/{p-8a834594.system.entry.js → p-679ebd2a.system.entry.js} +1 -1
- package/pn-market-web-components/p-6b33db5b.system.entry.js +1 -0
- package/pn-market-web-components/{p-4d561de4.system.entry.js → p-7079df88.system.entry.js} +1 -1
- package/pn-market-web-components/p-715d1ef7.entry.js +1 -0
- package/pn-market-web-components/{p-5a506356.system.entry.js → p-723b9901.system.entry.js} +1 -1
- package/pn-market-web-components/p-736e5b84.system.entry.js +1 -0
- package/pn-market-web-components/{p-545a40a7.system.entry.js → p-74d35edf.system.entry.js} +1 -1
- package/pn-market-web-components/p-77557da8.entry.js +1 -0
- package/pn-market-web-components/{p-6d050c3a.system.entry.js → p-7b9fb94f.system.entry.js} +1 -1
- package/pn-market-web-components/p-7ce41d14.entry.js +1 -0
- package/pn-market-web-components/p-7fd8b012.entry.js +1 -0
- package/pn-market-web-components/{p-2145d5e0.system.entry.js → p-80dce81e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-68324e6f.system.entry.js → p-8117b79e.system.entry.js} +1 -1
- package/pn-market-web-components/p-81426cd9.entry.js +1 -0
- package/pn-market-web-components/p-81d764a0.entry.js +1 -0
- package/pn-market-web-components/{p-d34c9be2.system.js → p-825b8fb8.system.js} +1 -1
- package/pn-market-web-components/{p-c5727e83.js → p-84699999.js} +1 -1
- package/pn-market-web-components/{p-ecaad0c1.js → p-86f06e26.js} +1 -1
- package/pn-market-web-components/p-8766fa86.system.js +1 -1
- package/pn-market-web-components/p-88185835.entry.js +1 -0
- package/pn-market-web-components/p-885bc8d7.system.entry.js +1 -0
- package/pn-market-web-components/p-8a05dbb6.entry.js +1 -0
- package/pn-market-web-components/p-8e146205.entry.js +1 -0
- package/pn-market-web-components/p-8e38c337.entry.js +1 -0
- package/pn-market-web-components/p-8e4d292f.entry.js +1 -0
- package/pn-market-web-components/p-8ef45246.entry.js +1 -0
- package/pn-market-web-components/p-92fd28e6.entry.js +1 -0
- package/pn-market-web-components/p-9344cd23.js +1 -0
- package/pn-market-web-components/{p-e737c51d.system.entry.js → p-93cecc43.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3a450371.system.js → p-94958580.system.js} +1 -1
- package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
- package/pn-market-web-components/p-9aa09635.entry.js +1 -0
- package/pn-market-web-components/p-9b855b11.entry.js +24 -0
- package/pn-market-web-components/{p-8cefd900.system.entry.js → p-9edaf6b6.system.entry.js} +1 -1
- package/pn-market-web-components/p-a119cb8e.entry.js +1 -0
- package/pn-market-web-components/p-a247058b.system.entry.js +1 -0
- package/pn-market-web-components/{p-6e43a937.system.entry.js → p-a275bffb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-396b254a.system.js → p-a5f75560.system.js} +1 -1
- package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
- package/pn-market-web-components/p-a921d3fd.system.entry.js +1 -0
- package/pn-market-web-components/{p-9010c32a.system.entry.js → p-aa271997.system.entry.js} +1 -1
- package/pn-market-web-components/p-aab2e28f.entry.js +1 -0
- package/pn-market-web-components/p-ac0e3c22.system.entry.js +1 -0
- package/pn-market-web-components/{p-441249d9.system.js → p-add7d76c.system.js} +1 -1
- package/pn-market-web-components/{p-ca1f0abc.system.entry.js → p-af415c1a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ffe18938.system.entry.js → p-b88337dd.system.entry.js} +1 -1
- package/pn-market-web-components/p-bb626ab4.js +1 -0
- package/pn-market-web-components/p-bd22aaac.entry.js +1 -0
- package/pn-market-web-components/p-bfe239ca.js +1 -1
- package/pn-market-web-components/{p-f04afb39.js → p-c4254e9e.js} +1 -1
- package/pn-market-web-components/{p-5a41c1bb.system.entry.js → p-c62a91ba.system.entry.js} +1 -1
- package/pn-market-web-components/p-c714a790.entry.js +1 -0
- package/pn-market-web-components/{p-2e507907.system.entry.js → p-c9fb0f01.system.entry.js} +2 -2
- package/pn-market-web-components/p-d0155ddf.entry.js +1 -0
- package/pn-market-web-components/p-d11a5fbb.system.entry.js +1 -0
- package/pn-market-web-components/p-d542a52b.system.entry.js +1 -0
- package/pn-market-web-components/p-d57f4246.system.entry.js +1 -0
- package/pn-market-web-components/p-d775d725.entry.js +1 -0
- package/pn-market-web-components/p-d7e3d918.entry.js +1 -0
- package/pn-market-web-components/p-dbe032f7.system.js +1 -0
- package/pn-market-web-components/{p-a62ddaaa.system.entry.js → p-def0a6a2.system.entry.js} +1 -1
- package/pn-market-web-components/p-e32dc098.entry.js +1 -0
- package/pn-market-web-components/p-e4a4e68f.system.entry.js +1 -0
- package/pn-market-web-components/{p-ef721555.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
- package/pn-market-web-components/p-e9576f26.entry.js +1 -0
- package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
- package/pn-market-web-components/{p-939b5792.system.entry.js → p-f312ff98.system.entry.js} +1 -1
- package/pn-market-web-components/p-f61342c3.js +1 -0
- package/pn-market-web-components/{p-4b85fd2b.system.entry.js → p-f6ea7c38.system.entry.js} +1 -1
- package/pn-market-web-components/p-f774e2cc.entry.js +1 -0
- package/pn-market-web-components/{p-1d50340b.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
- package/pn-market-web-components/p-fc974bca.entry.js +1 -0
- package/pn-market-web-components/p-fea72975.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -2
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.d.ts +9 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +0 -2
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +0 -2
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +1 -2
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +4 -4
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-store.d.ts +7 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +3 -3
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
- package/types/components.d.ts +54 -60
- package/types/globals/MarketWebLoginManager.d.ts +8 -0
- package/types/stencil-public-runtime.d.ts +7 -79
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/LICENSE.md +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/bin/stencil +57 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/config-flags.d.ts +122 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +2609 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.d.ts +19 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +2583 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +14 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.d.ts +24 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.d.ts +18505 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.dom.iterable.d.ts +341 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.collection.d.ts +150 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.core.d.ts +559 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.generator.d.ts +79 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.iterable.d.ts +498 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.promise.d.ts +83 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.proxy.d.ts +130 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.reflect.d.ts +146 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.d.ts +48 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.array.include.d.ts +118 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.d.ts +22 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2016.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.intl.d.ts +47 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.object.d.ts +51 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.sharedmemory.d.ts +137 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.string.d.ts +47 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2017.typedarrays.d.ts +55 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.asynciterable.d.ts +45 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.intl.d.ts +73 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.promise.d.ts +32 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2018.regexp.d.ts +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.array.d.ts +85 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.intl.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.object.d.ts +35 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.string.d.ts +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2019.symbol.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.bigint.d.ts +730 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.d.ts +29 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.date.d.ts +44 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.intl.d.ts +433 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.number.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.promise.d.ts +49 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.sharedmemory.d.ts +99 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.string.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.intl.d.ts +154 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.promise.d.ts +50 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.string.d.ts +35 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2021.weakref.d.ts +75 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.array.d.ts +123 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.d.ts +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.error.d.ts +75 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.intl.d.ts +111 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.object.d.ts +28 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.sharedmemory.d.ts +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es2022.string.d.ts +27 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es5.d.ts +4526 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.es6.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.d.ts +22 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.full.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.intl.d.ts +30 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.promise.d.ts +43 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.string.d.ts +35 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.esnext.weakref.d.ts +75 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.scripthost.d.ts +327 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.d.ts +6192 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.importscripts.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/lib.webworker.iterable.d.ts +175 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.d.ts +73 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +70673 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.min.js +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/sys/in-memory-fs.d.ts +218 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/transpile.d.ts +32 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dependencies.json +120 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/app-error.d.ts +18 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/events.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-components.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-external-styles.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-images.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-inline-styles.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-util.d.ts +9 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/hmr-window.d.ts +10 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +808 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/logger.d.ts +5 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/progress.d.ts +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/status.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/hmr-util.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/test/status.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.d.ts +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +264 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/open-in-editor-api.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +1799 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-worker-thread.js +39 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/static/favicon.ico +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/directory-index.html +132 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/templates/initial-load.html +160 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/visualstudio.vbs +82 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/ws.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/xdg-open +1066 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.cjs +92 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/index.js +88 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/css-shim.js +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/dom.js +73 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +3371 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +142 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-esm.js +23 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/core-js.js +11 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/css-shim.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/dom.js +79 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/es5-html-element.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/index.js +34 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/polyfills/system.js +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +387 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +1143 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +7 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.d.ts +217 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +777 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/shadow-css.js +143 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/index.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +9 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.cjs +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +51 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.js +16 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +41 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +2268 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +2338 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +140 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +1637 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +1105 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +7 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/shadow-css.js +143 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +4858 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +1020 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +4822 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +190 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/readme.md +99 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/favicon.ico +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/assets/logo.png +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.css +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.esm.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/app.js +33 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/index.esm.js +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-081b0641.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-227a1e18.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-2c298727.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-5479268c.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6ba08604.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-6bc63295.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-7b4e3ba7.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-988eb362.css +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-9b6a9315.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e2efe0df.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f0b99977.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/build/p-fbbae598.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/host.config.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/index.html +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/compare/manifest.json +13 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/connector.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +661 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/local-connector.js +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +2807 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.d.ts +22 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +6121 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +52 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.d.ts +12 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +4155 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-config.d.ts +16 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-environment.d.ts +15 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-preprocessor.d.ts +59 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-runner.d.ts +10 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-screenshot.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-serializer.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/jest-setup-test-framework.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-config.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-preprocessor.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-runner.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest/test/jest-serializer.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-environment.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preprocessor.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-preset.js +37 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-runner.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/jest-setuptestframework.js +3 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/attributes.d.ts +14 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/class-list.d.ts +12 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/events.d.ts +21 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/html.d.ts +12 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/index.d.ts +23 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/screenshot.d.ts +5 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/matchers/text.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mock-fetch.d.ts +11 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/mocks.d.ts +56 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +8 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/index.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-browser.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-element.d.ts +67 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-events.d.ts +21 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-page.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/reset-build-conditionals.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/spec-page.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test/testing-utils.spec.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/test-transpile.d.ts +2 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-logger.d.ts +25 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-sys.d.ts +6 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing-utils.d.ts +79 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/testing.d.ts +2 -0
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/cjs/MarketWebLoginManager-2e2c83c4.js +0 -281
- package/esm/MarketWebLoginManager-9499bd89.js +0 -279
- package/esm-es5/MarketWebLoginManager-9499bd89.js +0 -1
- package/esm-es5/index-c118284d.js +0 -2
- package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +0 -1
- package/pn-market-web-components/p-09d66012.system.entry.js +0 -1
- package/pn-market-web-components/p-0e7900e0.system.entry.js +0 -1
- package/pn-market-web-components/p-0fbcacf3.system.entry.js +0 -1
- package/pn-market-web-components/p-1545fb34.entry.js +0 -1
- package/pn-market-web-components/p-156fedd7.entry.js +0 -1
- package/pn-market-web-components/p-15e680a8.entry.js +0 -1
- package/pn-market-web-components/p-17fb8d9e.entry.js +0 -1
- package/pn-market-web-components/p-1a9b2a0e.system.entry.js +0 -1
- package/pn-market-web-components/p-1c382898.entry.js +0 -1
- package/pn-market-web-components/p-1f8423d6.entry.js +0 -1
- package/pn-market-web-components/p-22a60cb6.system.entry.js +0 -1
- package/pn-market-web-components/p-247cd393.entry.js +0 -1
- package/pn-market-web-components/p-2967a563.entry.js +0 -1
- package/pn-market-web-components/p-2e4361e7.entry.js +0 -1
- package/pn-market-web-components/p-34c0b146.entry.js +0 -1
- package/pn-market-web-components/p-34fefe22.entry.js +0 -1
- package/pn-market-web-components/p-37d26cef.entry.js +0 -1
- package/pn-market-web-components/p-38f135fd.entry.js +0 -1
- package/pn-market-web-components/p-3e3298fe.entry.js +0 -1
- package/pn-market-web-components/p-41b34b21.entry.js +0 -1
- package/pn-market-web-components/p-4293e33c.js +0 -1
- package/pn-market-web-components/p-44c05fba.entry.js +0 -1
- package/pn-market-web-components/p-44f58f15.js +0 -1
- package/pn-market-web-components/p-4653f5db.system.entry.js +0 -1
- package/pn-market-web-components/p-47d717a3.entry.js +0 -1
- package/pn-market-web-components/p-48c74c53.entry.js +0 -1
- package/pn-market-web-components/p-49f60496.entry.js +0 -1
- package/pn-market-web-components/p-4a8e35d3.system.entry.js +0 -1
- package/pn-market-web-components/p-4ef54288.entry.js +0 -1
- package/pn-market-web-components/p-507f8886.entry.js +0 -1
- package/pn-market-web-components/p-5a6761da.js +0 -1
- package/pn-market-web-components/p-73ee3141.entry.js +0 -1
- package/pn-market-web-components/p-773b59c0.entry.js +0 -24
- package/pn-market-web-components/p-7c1b31e8.js +0 -2
- package/pn-market-web-components/p-7cb63135.entry.js +0 -1
- package/pn-market-web-components/p-7d992089.entry.js +0 -1
- package/pn-market-web-components/p-7dff99ed.entry.js +0 -1
- package/pn-market-web-components/p-8079dfd5.system.entry.js +0 -1
- package/pn-market-web-components/p-82db879c.entry.js +0 -1
- package/pn-market-web-components/p-833bab34.entry.js +0 -1
- package/pn-market-web-components/p-8acb60c5.entry.js +0 -1
- package/pn-market-web-components/p-8b28ac30.entry.js +0 -1
- package/pn-market-web-components/p-8f0a682f.entry.js +0 -1
- package/pn-market-web-components/p-9a6af82e.entry.js +0 -1
- package/pn-market-web-components/p-a3b8ec51.system.entry.js +0 -1
- package/pn-market-web-components/p-a5faec68.system.js +0 -2
- package/pn-market-web-components/p-a781c8dd.entry.js +0 -1
- package/pn-market-web-components/p-a799fee1.entry.js +0 -1
- package/pn-market-web-components/p-ad1f57dc.entry.js +0 -1
- package/pn-market-web-components/p-b0102ff6.entry.js +0 -1
- package/pn-market-web-components/p-beefd9f7.entry.js +0 -1
- package/pn-market-web-components/p-c668f453.entry.js +0 -1
- package/pn-market-web-components/p-c7e8ab14.entry.js +0 -1
- package/pn-market-web-components/p-cd6b402e.system.entry.js +0 -1
- package/pn-market-web-components/p-ced9727b.system.js +0 -1
- package/pn-market-web-components/p-d295ef71.system.js +0 -1
- package/pn-market-web-components/p-d5ae9797.entry.js +0 -1
- package/pn-market-web-components/p-d70e685c.entry.js +0 -1
- package/pn-market-web-components/p-d9dec5b8.entry.js +0 -1
- package/pn-market-web-components/p-dbd7837e.entry.js +0 -1
- package/pn-market-web-components/p-dc598ef8.entry.js +0 -1
- package/pn-market-web-components/p-e0e45eb0.system.entry.js +0 -1
- package/pn-market-web-components/p-e1513762.entry.js +0 -1
- package/pn-market-web-components/p-e4754d3b.system.entry.js +0 -1
- package/pn-market-web-components/p-e4fbd06c.entry.js +0 -1
- package/pn-market-web-components/p-ed5e91eb.system.entry.js +0 -1
- package/pn-market-web-components/p-f9725e57.system.entry.js +0 -1
- package/pn-market-web-components/p-fba88e93.entry.js +0 -1
- package/pn-market-web-components/p-ff975b67.entry.js +0 -1
package/custom-elements/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client'
|
|
|
3
3
|
|
|
4
4
|
const pnBonusProgressbarCss = "pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:1.6rem}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-sumtext{margin-top:0.4rem;font-size:1.3rem;color:#5E554A}.bonusprogressbar-top-percentage{margin-left:0.8rem;padding:0}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
let PnBonusProgressbar$1 = class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
@@ -97,7 +97,7 @@ const PnBonusProgressbar$1 = class extends HTMLElement {
|
|
|
97
97
|
|
|
98
98
|
const pnBonusProgressbarLevelCss = "pn-bonus-progressbar-level{position:absolute;width:0.1rem;left:50%}pn-bonus-progressbar-level::after{content:\"\";width:0.1rem;position:absolute;left:0;border-left:1px dashed #9B1C2E;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:3rem}pn-bonus-progressbar-level:not([current]):nth-child(odd)::after{height:7rem;margin-top:0.6rem}.progressbar-level-percentage{font-size:0.75em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:-3.2rem}[current]>.progressbar-level-percentage{display:none}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-percentage{top:-4.8rem}.progressbar-level-value{font-size:0.75em;white-space:nowrap;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:2.3rem}[current]>.progressbar-level-value{top:-3.2rem}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-value{top:4.2rem}";
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
let PnBonusProgressbarLevel$1 = class extends HTMLElement {
|
|
101
101
|
constructor() {
|
|
102
102
|
super();
|
|
103
103
|
this.__registerHost();
|
|
@@ -133,7 +133,7 @@ const PnBonusProgressbarLevel$1 = class extends HTMLElement {
|
|
|
133
133
|
|
|
134
134
|
const pnBreakpointsCss = "pn-breakpoints{width:100%}pn-breakpoints .breakpoints--dotcom{width:100%;background-color:aliceblue;text-align:center;margin-bottom:2.4rem;background-color:aliceblue}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"less than 321\"}@media screen and (min-width: 321px){pn-breakpoints .breakpoints--dotcom{background-color:yellow}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"321 (xs)\"}}@media screen and (min-width: 576px){pn-breakpoints .breakpoints--dotcom{background-color:aqua}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"576 (sm)\"}}@media screen and (min-width: 768px){pn-breakpoints .breakpoints--dotcom{background-color:red;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"768 (md)\"}}@media screen and (min-width: 992px){pn-breakpoints .breakpoints--dotcom{background-color:green;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"992 (lg)\"}}@media screen and (min-width: 1200px){pn-breakpoints .breakpoints--dotcom{background-color:blue;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"1200 (xl)\"}}@media screen and (min-width: 1640px){pn-breakpoints .breakpoints--dotcom{background-color:pink}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"1640 (xxl)\"}}@media screen and (min-width: 1920px){pn-breakpoints .breakpoints--dotcom{background-color:orange}pn-breakpoints .breakpoints--dotcom .reference::before{content:\"1920 (fhd)\"}}";
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
let PnBreakpoints$1 = class extends HTMLElement {
|
|
137
137
|
constructor() {
|
|
138
138
|
super();
|
|
139
139
|
this.__registerHost();
|
|
@@ -22270,14 +22270,13 @@ const dataSetProps = (set, dataChartType) => {
|
|
|
22270
22270
|
|
|
22271
22271
|
const pnChartCss = "pn-chart{display:-ms-flexbox;display:flex;height:100%;width:100%}pn-chart .chart-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;width:100vw;height:30vh;padding:1.6rem 0}@media screen and (min-width: 1640px){pn-chart .chart-wrapper{padding:2.4rem 0}}pn-chart canvas.pnChart{width:100% !important}pn-chart[data-chart-type=bar] .chart-wrapper,pn-chart[data-chart-type=line] .chart-wrapper{min-height:100%;max-width:100%;min-width:100%}@media screen and (min-width: 768px){.fullwidth pn-chart{-ms-flex-pack:center;justify-content:center}}@media screen and (min-width: 768px){.fullwidth pn-chart .chart-wrapper{height:40vh;width:30vw}}";
|
|
22272
22272
|
|
|
22273
|
-
|
|
22273
|
+
let PnChart$1 = class extends HTMLElement {
|
|
22274
22274
|
constructor() {
|
|
22275
22275
|
super();
|
|
22276
22276
|
this.__registerHost();
|
|
22277
22277
|
this.labels = null;
|
|
22278
22278
|
this.dataSets = null;
|
|
22279
22279
|
this.dataChartType = 'doughnut';
|
|
22280
|
-
this.myChartCtxRef = undefined;
|
|
22281
22280
|
}
|
|
22282
22281
|
dataChangeHandler() {
|
|
22283
22282
|
this.parsedDataSets = JSON.parse(this.dataSets);
|
|
@@ -22311,18 +22310,11 @@ const PnChart$1 = class extends HTMLElement {
|
|
|
22311
22310
|
|
|
22312
22311
|
const pnChartsCardCss = "pn-charts-card{width:100%;height:100%;display:-ms-flexbox;display:flex}pn-charts-card .pn-charts-card__wrapper{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#EFFBFF;border-radius:2.4rem;padding:2.4rem}@media screen and (min-width: 1200px){pn-charts-card .pn-charts-card__wrapper{padding:3.2rem}}pn-charts-card .pn-charts-card__heading__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;gap:0.8rem}pn-charts-card .pn-charts-card__heading{font-weight:700;font-size:2.4rem;line-height:110%}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__heading{font-size:3.2rem}}pn-charts-card .pn-charts-card__heading__highlight{font-weight:700;font-size:2.4rem;line-height:110%;color:#005D92}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__heading__highlight{font-size:3.2rem}}pn-charts-card .pn-charts-card__content__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}pn-charts-card .pn-charts-card__text__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;height:100%}pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:none}pn-charts-card .pn-charts-card__text__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}pn-charts-card .pn-charts-card__text__wrapper span{display:block;margin-bottom:5.4rem}pn-charts-card .pn-charts-card__preamble{font-weight:400;font-size:1.6rem;line-height:140%;-ms-flex-positive:1;flex-grow:1;margin-bottom:1.6rem}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__preamble{font-size:2rem}}pn-charts-card .pn-charts-card__source{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-charts-card .pn-charts-card__source label{background-color:#00A0D6;color:#FFFFFF;border-radius:0.4rem;font-weight:400;font-size:1rem;line-height:1;text-transform:uppercase;padding:0.4rem;margin-bottom:0.6rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source label{font-size:1.2rem;padding:0.6rem}}pn-charts-card .pn-charts-card__source .pn-chart-card__text__heading{font-weight:400;font-size:1.6rem;line-height:140%;color:#005D92;margin-bottom:0}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source .pn-chart-card__text__heading{font-size:2rem}}pn-charts-card .pn-charts-card__source a{text-decoration:none;color:#005D92;font-weight:500;font-size:1.6rem;text-decoration:none;color:#005D92;font-weight:400}pn-charts-card .pn-charts-card__source a:hover{text-decoration:underline}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source a{font-size:2rem}}pn-charts-card .pn-charts-card__source a pn-icon svg path{fill:#005D92}pn-charts-card .pn-charts-card__source a[target=_blank]:not(.pn-button):after{display:none}.fullwidth pn-charts-card .pn-charts-card__wrapper{padding:2.4rem}@media screen and (min-width: 992px){.fullwidth pn-charts-card .pn-charts-card__wrapper{padding:4rem}}.fullwidth pn-charts-card .pn-charts-card__heading__wrapper{margin-bottom:3.2rem;gap:1.6rem}@media screen and (min-width: 768px){.fullwidth pn-charts-card .pn-charts-card__heading__wrapper{-ms-flex-pack:start;justify-content:flex-start}}.fullwidth pn-charts-card .pn-charts-card__heading,.fullwidth pn-charts-card .pn-charts-card__heading__highlight{font-size:2.4rem}@media screen and (min-width: 768px){.fullwidth pn-charts-card .pn-charts-card__heading,.fullwidth pn-charts-card .pn-charts-card__heading__highlight{font-size:3.2rem}}.fullwidth pn-charts-card .pn-charts-card__content__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (min-width: 992px){.fullwidth pn-charts-card .pn-charts-card__content__wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;gap:5.6rem}}@media screen and (min-width: 1200px){.fullwidth pn-charts-card .pn-charts-card__content__wrapper{gap:4rem}}@media screen and (min-width: 1640px){.fullwidth pn-charts-card .pn-charts-card__content__wrapper{gap:3.2rem}}.fullwidth pn-charts-card .pn-charts-card__text__container{-ms-flex-pack:center;justify-content:center}@media screen and (min-width: 768px){.fullwidth pn-charts-card .pn-charts-card__text__container{width:100%}}.fullwidth pn-charts-card .pn-charts-card__heading__wrapper--vertical{display:-ms-flexbox;display:flex}@media screen and (min-width: 992px){.fullwidth pn-charts-card .pn-charts-card__heading__wrapper--vertical{display:none}}.fullwidth pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:none}@media screen and (min-width: 992px){.fullwidth pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:-ms-flexbox;display:flex}}@media screen and (min-width: 768px){.fullwidth pn-charts-card .pn-charts-card__preamble{-ms-flex-positive:0;flex-grow:0;font-size:2rem}}pn-charts-card[data-chart-color=coral]>.pn-charts-card__wrapper{background-color:#FDEFEE}pn-charts-card[data-chart-color=green]>.pn-charts-card__wrapper{background-color:#DCF6E7}pn-charts-card[data-chart-color=white]>.pn-charts-card__wrapper{background-color:#FFFFFF}pn-charts-card[data-chart-color=gray]>.pn-charts-card__wrapper{background-color:#F9F8F8}";
|
|
22313
22312
|
|
|
22314
|
-
|
|
22313
|
+
let PnChartsCard$1 = class extends HTMLElement {
|
|
22315
22314
|
constructor() {
|
|
22316
22315
|
super();
|
|
22317
22316
|
this.__registerHost();
|
|
22318
|
-
this.header = undefined;
|
|
22319
|
-
this.highlight = undefined;
|
|
22320
|
-
this.preamble = undefined;
|
|
22321
|
-
this.label = undefined;
|
|
22322
|
-
this.source = undefined;
|
|
22323
|
-
this.sourceUrl = undefined;
|
|
22324
22317
|
this.openInNewWindow = false;
|
|
22325
|
-
this.someState = undefined;
|
|
22326
22318
|
}
|
|
22327
22319
|
render() {
|
|
22328
22320
|
return (h(Host, null, h("slot", { name: "clickable-block-wrapper" }), h("div", { class: "pn-charts-card__wrapper" }, h("div", { class: "pn-charts-card__heading__wrapper pn-charts-card__heading__wrapper--vertical" }, h("div", { class: "pn-charts-card__heading" }, this.header), h("div", { class: "pn-charts-card__heading__highlight" }, this.highlight)), h("div", { class: "pn-charts-card__content__wrapper" }, h("slot", { name: "chart" }), h("div", { class: "pn-charts-card__text__container" }, h("div", { class: "pn-charts-card__heading__wrapper pn-charts-card__heading__wrapper--horizontal" }, h("div", { class: "pn-charts-card__heading pn-charts-card__heading" }, this.header), h("div", { class: "pn-charts-card__heading__highlight" }, this.highlight)), h("span", { class: "pn-charts-card__preamble" }, this.preamble), h("div", { class: "pn-charts-card__text__wrapper" }, h("div", { class: "pn-charts-card__source" }, h("label", null, this.label), h("h3", { class: "pn-chart-card__text__heading" }, this.source), h("a", { class: "link--animated", href: this.sourceUrl, rel: this.openInNewWindow ? 'noopener nofollower noreferrer' : null, target: this.openInNewWindow ? '_blank' : null }, "Read the report ", h("pn-icon", { symbol: "arrow-right" }, " ")))))))));
|
|
@@ -22333,13 +22325,10 @@ const PnChartsCard$1 = class extends HTMLElement {
|
|
|
22333
22325
|
|
|
22334
22326
|
const pnChoiceButtonCss = "pn-choice-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative;margin:0.2em 0.4em}pn-choice-button input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-button label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0.4rem 0.8rem;border:0.1rem solid #D3CECB;color:#005D92;font-weight:500;border-radius:0.8rem;text-align:center;cursor:pointer;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s;transition:background 0.2s, -webkit-box-shadow 0.1s;transition:box-shadow 0.1s, background 0.2s;transition:box-shadow 0.1s, background 0.2s, -webkit-box-shadow 0.1s}pn-choice-button label pn-illustration{display:inline-block;width:3rem;height:3rem;margin-right:0.9rem}pn-choice-button>input:checked+label.pn-choice-button{background:#E0F8FF;color:#005D92;border-color:#005D92;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13)}pn-choice-button>input:indeterminate+label.pn-choice-button{background:#FFFFFF;color:#005D92}pn-choice-button>input:hover+label.pn-choice-button{background:#E0F8FF}pn-choice-button>input:focus+label.pn-choice-button,pn-choice-button>input:active+label.pn-choice-button{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-choice-button>input:active+label.pn-choice-button{background:#8EDDF9}pn-choice-button>input:disabled+label.pn-choice-button{background-color:#D3CECB}pn-choice-button>input:checked+label.pn-choice-button:hover{background:#8EDDF9}pn-choice-button>input:checked+label.pn-choice-button:active{background:#8EDDF9;border:0.1rem solid #00A0D6}";
|
|
22335
22327
|
|
|
22336
|
-
|
|
22328
|
+
let PnChoiceButton$1 = class extends HTMLElement {
|
|
22337
22329
|
constructor() {
|
|
22338
22330
|
super();
|
|
22339
22331
|
this.__registerHost();
|
|
22340
|
-
this.value = undefined;
|
|
22341
|
-
this.name = undefined;
|
|
22342
|
-
this.choiceid = undefined;
|
|
22343
22332
|
this.type = "checkbox";
|
|
22344
22333
|
this.disabled = false;
|
|
22345
22334
|
this.checked = false;
|
|
@@ -22390,7 +22379,7 @@ const translations$b = {
|
|
|
22390
22379
|
|
|
22391
22380
|
const pnCustomernumberSelectorCss = ".customernumber-container{position:relative;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:0.8rem;border:0.1rem solid #969087;-webkit-transition:border 0.15s ease;transition:border 0.15s ease}.customernumber-container:hover,pn-customernumber-selector[open] .customernumber-container{border-color:#005D92}pn-customernumber-selector[open] .customernumber-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.customernumber-toggle{display:-ms-flexbox;display:flex;z-index:11;position:relative;margin:0;border-radius:0.8rem;padding:1rem;border:0;background:transparent;font-size:1em;text-align:left;outline:0;cursor:pointer}.customernumber-toggle pn-icon{-ms-flex-item-align:center;align-self:center}.customernumber-selected{-ms-flex-positive:1;flex-grow:1;max-width:calc(100% - 2.4rem);overflow:hidden}.customernumber-selected-title{color:#005D92}.customernumber-selected-description{font-size:0.875em;width:100%;overflow:hidden;text-overflow:ellipsis}.customernumber-options{position:absolute;z-index:10;left:-0.1rem;right:-0.1rem;top:100%;border:0.1rem solid #005D92;border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem;max-height:0;opacity:0;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;overflow-y:auto}pn-customernumber-selector[open] .customernumber-options{opacity:1;-webkit-transition-delay:0s;transition-delay:0s;max-height:500rem}";
|
|
22392
22381
|
|
|
22393
|
-
|
|
22382
|
+
let PnCustomernumberSelector$1 = class extends HTMLElement {
|
|
22394
22383
|
constructor() {
|
|
22395
22384
|
super();
|
|
22396
22385
|
this.__registerHost();
|
|
@@ -22420,7 +22409,7 @@ const PnCustomernumberSelector$1 = class extends HTMLElement {
|
|
|
22420
22409
|
|
|
22421
22410
|
const pnCustomernumberSelectorOptionCss = "pn-customernumber-selector-option{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;overflow:hidden}pn-customernumber-selector-option:last-of-type{border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem}.customernumberoption{overflow:hidden;max-width:100%;text-decoration:none;background:#FFFFFF;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;padding:1.6rem 1rem}.customernumberoption:hover,.customernumberoption:focus,.customernumberoption:active{background:#E0F8FF;text-decoration:none}.customernumberoption-text{font-weight:700;color:#2D2013}.customernumberoption-title{display:block;font-size:1em;color:#005D92;font-weight:700}.customernumberoption-description{font-size:0.75em;color:#5E554A;font-weight:normal}";
|
|
22422
22411
|
|
|
22423
|
-
|
|
22412
|
+
let PnProfileSelectorOption$2 = class extends HTMLElement {
|
|
22424
22413
|
constructor() {
|
|
22425
22414
|
super();
|
|
22426
22415
|
this.__registerHost();
|
|
@@ -22437,14 +22426,11 @@ const PnProfileSelectorOption$2 = class extends HTMLElement {
|
|
|
22437
22426
|
|
|
22438
22427
|
const pnFilterCheckboxCss = ":host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host input{opacity:0;position:absolute}:host input[type=checkbox]+label.pn-checkbox{width:1.5em;min-width:1.5em;height:1.5em;min-height:1.5em;background:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;border:0.1rem solid #969087;cursor:pointer;border-radius:0.4rem;cursor:pointer;-webkit-transition-duration:220ms;transition-duration:220ms;-webkit-transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);-webkit-transition-property:border, background, -webkit-box-shadow;transition-property:border, background, -webkit-box-shadow;transition-property:border, background, box-shadow;transition-property:border, background, box-shadow, -webkit-box-shadow}:host input[type=checkbox]+label.pn-checkbox svg{width:80%;fill:none}:host input[type=checkbox]+label.pn-checkbox svg polyline{stroke:#FFF;-webkit-transform-origin:0 0;transform-origin:0 0;stroke-linecap:round;stroke-dasharray:23;stroke-dashoffset:23;-webkit-transition-delay:none;transition-delay:none;-webkit-transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86)}:host input[type=checkbox]:hover+label.pn-checkbox{border:0.1rem solid #005D92;background:#E0F8FF}:host input[type=checkbox]:checked+label.pn-checkbox,:host input[type=checkbox]:indeterminate+label.pn-checkbox{background:#005D92;border:0.1rem solid #005D92}:host input[type=checkbox]:checked+label.pn-checkbox svg polyline,:host input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline{-webkit-transition-delay:220ms;transition-delay:220ms}:host input[type=checkbox]:checked+label.pn-checkbox svg polyline.checkmark-path{stroke-dashoffset:0}:host input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline.indeterminate-path{stroke-dashoffset:0}:host input[type=checkbox]:focus+label.pn-checkbox,:host input[type=checkbox]:active+label.pn-checkbox{-webkit-box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92;box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92}:host input[type=checkbox]:disabled+label.pn-checkbox{background-color:#D3CECB;border:0.1rem solid #969087;cursor:not-allowed}:host input[type=checkbox]:disabled+label.pn-checkbox svg polyline{stroke:#969087}:host input[type=checkbox]:disabled:checked+label.pn-checkbox{border:0.1rem solid transparent}:host input[type=checkbox]:disabled:active+label.pn-checkbox{-webkit-box-shadow:none;box-shadow:none}";
|
|
22439
22428
|
|
|
22440
|
-
|
|
22429
|
+
let PnFilterCheckbox$1 = class extends HTMLElement {
|
|
22441
22430
|
constructor() {
|
|
22442
22431
|
super();
|
|
22443
22432
|
this.__registerHost();
|
|
22444
22433
|
this.__attachShadow();
|
|
22445
|
-
this.value = undefined;
|
|
22446
|
-
this.name = undefined;
|
|
22447
|
-
this.checkboxid = undefined;
|
|
22448
22434
|
this.disabled = false;
|
|
22449
22435
|
this.checked = false;
|
|
22450
22436
|
this.indeterminate = false;
|
|
@@ -24656,7 +24642,7 @@ const createStore = (defaultState, shouldUpdate) => {
|
|
|
24656
24642
|
};
|
|
24657
24643
|
|
|
24658
24644
|
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
24659
|
-
const { state: state$
|
|
24645
|
+
const { state: state$7, onChange: onChange$7 } = createStore({
|
|
24660
24646
|
i18n: {
|
|
24661
24647
|
componentheading: '',
|
|
24662
24648
|
deliveryscopeheading: '',
|
|
@@ -24694,7 +24680,7 @@ const cloudsSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjc4IiBoZWlnaHQ9IjU
|
|
|
24694
24680
|
|
|
24695
24681
|
const pnFindPriceCss = "@charset \"UTF-8\";pn-find-price .sizeTable{border-style:none !important;border:0 !important;position:relative}pn-find-price .sizeTable>tr td{margin-bottom:1em;text-align:center;vertical-align:bottom;padding-right:1em;padding-top:1em}pn-find-price .sizeTable #clouds{position:absolute;top:0em;left:4em;z-index:-1}pn-find-price .firstCell{margin-right:0;margin-left:auto}pn-find-price .findprice-form{max-width:60em;margin:0em auto 3em auto}pn-find-price [slot=title]{margin-bottom:1rem}pn-find-price h2{text-align:center}pn-find-price .heading{text-align:center;line-height:1.1;font-weight:bold;margin-bottom:1rem;color:#005D92}pn-find-price .resultHeading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:2em}pn-find-price .sizecategory{margin-top:1em;margin-bottom:3rem;font-size:0.9em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption{font-size:0.9em;max-width:41rem;margin:0 auto}pn-find-price .weightoption-content{text-align:center}pn-find-price .weightoption-content pn-choice-button{width:7em;line-height:3.3em;font-size:0.9em;vertical-align:bottom}pn-find-price .weightoption-content pn-choice-button>label{-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption-content pn-choice-button ::before{content:\"Max \";font-weight:lighter}pn-find-price .resultlist{margin:3.2rem 0}pn-find-price .servicePoint{text-align:center}pn-find-price .servicePoint pn-illustration{display:block;max-width:5em;max-height:5em;margin:1.5em auto 0 auto}pn-find-price .servicePoint h3{margin-top:0.8em;margin-bottom:0.9em}pn-find-price .servicePoint a{color:#005D92;text-decoration:none}pn-find-price .servicePoint a:hover{color:#0D234B;text-decoration:underline}";
|
|
24696
24682
|
|
|
24697
|
-
|
|
24683
|
+
let PnfindPrice = class extends HTMLElement {
|
|
24698
24684
|
constructor() {
|
|
24699
24685
|
super();
|
|
24700
24686
|
this.__registerHost();
|
|
@@ -24728,10 +24714,10 @@ const PnfindPrice = class extends HTMLElement {
|
|
|
24728
24714
|
}
|
|
24729
24715
|
setState() {
|
|
24730
24716
|
if (this.market) {
|
|
24731
|
-
state$
|
|
24717
|
+
state$7.market = markets$2[this.market];
|
|
24732
24718
|
}
|
|
24733
24719
|
if (this.language && translations$a[this.language]) {
|
|
24734
|
-
state$
|
|
24720
|
+
state$7.i18n = translations$a[this.language];
|
|
24735
24721
|
}
|
|
24736
24722
|
}
|
|
24737
24723
|
filterItems() {
|
|
@@ -24741,7 +24727,7 @@ const PnfindPrice = class extends HTMLElement {
|
|
|
24741
24727
|
return;
|
|
24742
24728
|
}
|
|
24743
24729
|
//to handle withing country search
|
|
24744
|
-
const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope.toLocaleLowerCase() === state$
|
|
24730
|
+
const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope.toLocaleLowerCase() === state$7.market.country.toLocaleLowerCase());
|
|
24745
24731
|
if (!this.sizecategory) {
|
|
24746
24732
|
return;
|
|
24747
24733
|
}
|
|
@@ -24781,14 +24767,14 @@ const PnfindPrice = class extends HTMLElement {
|
|
|
24781
24767
|
this.filteredItems = weightFilteredData;
|
|
24782
24768
|
}
|
|
24783
24769
|
render() {
|
|
24784
|
-
return (h("div", { class: "findprice-form" }, h("div", null, h("h4", { class: "heading" }, state$
|
|
24770
|
+
return (h("div", { class: "findprice-form" }, h("div", null, h("h4", { class: "heading" }, state$7.i18n.sizeheading), h("div", { class: "sizecategory" }, h("table", { class: "sizeTable" }, h("img", { id: "clouds", src: cloudsSvg }), h("tr", null, h("td", null, h("img", { class: "firstCell", src: postnordPerson1Svg })), h("td", null, h("img", { src: smallPackageSvg })), h("td", null, h("img", { src: mediumPackageSvg })), h("td", null, h("img", { src: largePackageSvg }))), h("tr", null, h("td", null), sizeCategories.map((sizeCategory) => (h("td", null, h("pn-radio-button", { id: 'findpricecategory-' + sizeCategory.value, radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
|
|
24785
24771
|
this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
|
|
24786
24772
|
this.weight = { value: 0, name: "" };
|
|
24787
24773
|
this.weightvalue = this.weight.value;
|
|
24788
|
-
} })))))))), h("h4", { class: "heading" }, state$
|
|
24774
|
+
} })))))))), h("h4", { class: "heading" }, state$7.i18n.weightheading), (this.sizecategory.value && weights$2[this.sizecategory.unit]) ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights$2[this.sizecategory.unit].map((wght) => (h("pn-choice-button", { id: 'findpriceweight-' + wght.value, choiceid: this.sizecategory.value + wght.value, name: "weight", type: "radio", value: (!this.weight.value) ? 0 : weights$2[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
|
|
24789
24775
|
this.weight = weights$2[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
|
|
24790
24776
|
this.weightvalue = this.weight.value;
|
|
24791
|
-
} }, wght.name)))))) : null, (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$
|
|
24777
|
+
} }, wght.name)))))) : null, (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$7.i18n.resultlistheading) ? (h("div", { class: "resultHeading" }, state$7.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-price-result", { item: item })))))) : null));
|
|
24792
24778
|
}
|
|
24793
24779
|
static get watchers() { return {
|
|
24794
24780
|
"market": ["setState"],
|
|
@@ -24801,15 +24787,12 @@ const PnfindPrice = class extends HTMLElement {
|
|
|
24801
24787
|
|
|
24802
24788
|
const pnFindPriceResultCss = "pn-find-price-result .test{margin:3em 0}.resultcontent{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
|
|
24803
24789
|
|
|
24804
|
-
|
|
24790
|
+
let PnfindPriceResult = class extends HTMLElement {
|
|
24805
24791
|
constructor() {
|
|
24806
24792
|
super();
|
|
24807
24793
|
this.__registerHost();
|
|
24808
24794
|
this.item = null;
|
|
24809
24795
|
this.shownitems = [];
|
|
24810
|
-
this.Usp1 = undefined;
|
|
24811
|
-
this.Usp2 = undefined;
|
|
24812
|
-
this.Usp3 = undefined;
|
|
24813
24796
|
this.description = [];
|
|
24814
24797
|
this.showMeasurement = false;
|
|
24815
24798
|
this.weightText = "";
|
|
@@ -24834,8 +24817,8 @@ const PnfindPriceResult = class extends HTMLElement {
|
|
|
24834
24817
|
this.showMeasurement = (this.item.maxmått !== null) || (this.item.rulle !== null);
|
|
24835
24818
|
this.linkId = `${this.item.id}-${this.item.maxweight}-${this.item.sizecategory}-${this.item.name.toLocaleLowerCase().replace(/[^a-zA-Z0-9]/g, '')}`;
|
|
24836
24819
|
var showServicepointLink = (this.item.ombudpurchase === "Yes");
|
|
24837
|
-
this.shopLabel = showServicepointLink ? state$
|
|
24838
|
-
this.shopUrl = showServicepointLink ? state$
|
|
24820
|
+
this.shopLabel = showServicepointLink ? state$7.i18n.ombudHeader : state$7.i18n.stampshopcta;
|
|
24821
|
+
this.shopUrl = showServicepointLink ? state$7.market.servicePoint : stampShopUrl$1;
|
|
24839
24822
|
this.shopId = showServicepointLink ? '-servicepoint' : '-stampshop';
|
|
24840
24823
|
}
|
|
24841
24824
|
render() {
|
|
@@ -24846,10 +24829,10 @@ const PnfindPriceResult = class extends HTMLElement {
|
|
|
24846
24829
|
: (this.item.highestrankusp === "Billigast") ?
|
|
24847
24830
|
(h("pn-titletag", { slot: "Billigast", icon: "box-label", color: "green700" }, this.item.highestrankusp))
|
|
24848
24831
|
: null), h("div", { slot: "content" }, h("div", { class: "content" }, (this.item.description) ? (h("div", { class: "description" }, this.description.map((desc) => (h("li", null, desc))))) : null, (this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)), this.item.note ? (h("div", { slot: "note" }, h("p", null, this.item.note))) : null, this.item.additionalusp ? (h("div", { slot: "additionalUSP" }, this.Usp1 ? (h("span", null, this.Usp1)) : null, this.Usp2 ? (h("span", null, this.Usp2)) : null, this.Usp3 ? (h("span", null, this.Usp3)) : null)) : null, this.showMeasurement ?
|
|
24849
|
-
(h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle })) : null, h("div", { slot: "cardprice" }, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state$
|
|
24850
|
-
(h("pn-product-card-price", { slot: "stampPrice", label: this.shopLabel, amount: this.item.pricestamps + '', currency: state$
|
|
24851
|
-
(h("pn-product-card-price", { slot: "riktiga", label: state$
|
|
24852
|
-
(h("div", { id: "riktiga" }, h("h4", null, state$
|
|
24832
|
+
(h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle })) : null, h("div", { slot: "cardprice" }, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state$7.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state$7.market.currency, url: sendDirectUrl$1, linkid: this.linkId + '-portal' })) : null, this.item.pricestamps ? ((this.item.name.toLocaleLowerCase() !== "riktiga vykort") ?
|
|
24833
|
+
(h("pn-product-card-price", { slot: "stampPrice", label: this.shopLabel, amount: this.item.pricestamps + '', currency: state$7.market.currency, url: this.shopUrl, linkid: this.linkId + this.shopId })) :
|
|
24834
|
+
(h("pn-product-card-price", { slot: "riktiga", label: state$7.i18n.riktigaVykort, amount: this.item.pricestamps + '', currency: state$7.market.currency, url: RiktigaValues["WebUrl"], linkid: this.linkId + '-riktiga' }))) : null), h("div", { slot: "servicepoint" }, (this.item.showservicepointlink) ? (h("a", { href: state$7.market.servicePoint, target: "_blank" }, h("pn-icon", { symbol: "map-marker", color: "blue700" }), state$7.i18n.servicePointLink)) : null), h("div", { slot: "mobiledownload" }, (this.item.name.toLocaleLowerCase() === "riktiga vykort") ?
|
|
24835
|
+
(h("div", { id: "riktiga" }, h("h4", null, state$7.i18n.riktigaVykortMobile), h("div", null, h("a", { href: RiktigaValues["AndroidAppUrl"], target: "_blank" }, h("img", { class: "riktigaAndroidImg", src: RiktigaValues["AndroidImg"] })), h("a", { href: RiktigaValues["IosAppUrl"], target: "_blank" }, h("img", { class: "riktigaAppleImg", src: RiktigaValues["IosImg"] }))))) : null))));
|
|
24853
24836
|
}
|
|
24854
24837
|
static get watchers() { return {
|
|
24855
24838
|
"item": ["composeItems"]
|
|
@@ -24980,7 +24963,7 @@ const weights$1 = {
|
|
|
24980
24963
|
};
|
|
24981
24964
|
|
|
24982
24965
|
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
24983
|
-
const { state: state$
|
|
24966
|
+
const { state: state$6, onChange: onChange$6 } = createStore({
|
|
24984
24967
|
i18n: {
|
|
24985
24968
|
componentheading: '',
|
|
24986
24969
|
deliveryscopeheading: '',
|
|
@@ -24999,7 +24982,7 @@ const { state: state$5, onChange: onChange$5 } = createStore({
|
|
|
24999
24982
|
|
|
25000
24983
|
const pnFindServiceAndPriceCss = "pn-find-service-and-price .findprice-form{max-width:50em;margin:0 auto}pn-find-service-and-price h2,pn-find-service-and-price .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-find-service-and-price .postagetypes,pn-find-service-and-price .deliveryscope{text-align:center;margin-bottom:3rem}pn-find-service-and-price .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-find-service-and-price .weightoption-input{width:5em;position:relative}pn-find-service-and-price .weightoption-input input::-webkit-outer-spin-button,pn-find-service-and-price .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-find-service-and-price .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-find-service-and-price .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-find-service-and-price .weightoption-range input{width:calc(100% - 1.5em)}pn-find-service-and-price .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-find-service-and-price .resultlist{margin:3em 0}";
|
|
25001
24984
|
|
|
25002
|
-
|
|
24985
|
+
let PnfindServiceAndPrice = class extends HTMLElement {
|
|
25003
24986
|
constructor() {
|
|
25004
24987
|
super();
|
|
25005
24988
|
this.__registerHost();
|
|
@@ -25038,10 +25021,10 @@ const PnfindServiceAndPrice = class extends HTMLElement {
|
|
|
25038
25021
|
}
|
|
25039
25022
|
setState() {
|
|
25040
25023
|
if (this.market) {
|
|
25041
|
-
state$
|
|
25024
|
+
state$6.market = markets$1[this.market];
|
|
25042
25025
|
}
|
|
25043
25026
|
if (this.language && translations$9[this.language]) {
|
|
25044
|
-
state$
|
|
25027
|
+
state$6.i18n = translations$9[this.language];
|
|
25045
25028
|
}
|
|
25046
25029
|
}
|
|
25047
25030
|
filterItems() {
|
|
@@ -25079,18 +25062,18 @@ const PnfindServiceAndPrice = class extends HTMLElement {
|
|
|
25079
25062
|
this.filteredItems = weightFilteredData;
|
|
25080
25063
|
}
|
|
25081
25064
|
render() {
|
|
25082
|
-
return (h("div", null, h("div", { class: "findprice-form" }, (state$
|
|
25065
|
+
return (h("div", null, h("div", { class: "findprice-form" }, (state$6.i18n.componentheading) ? (h("h2", null, state$6.i18n.componentheading)) : null, h("div", { class: "postagetypes" }, postagetypes.map((postagetype) => (h("pn-choice-button", { choiceid: postagetype.value, value: postagetype.value, name: "postagetype", type: "radio", checked: postagetype.value === this.postagetype.value, onChange: () => {
|
|
25083
25066
|
this.postagetype = postagetypes.filter(x => x.value === postagetype.value)[0];
|
|
25084
25067
|
this.deliveryscope = { value: "", name: "", icon: "" };
|
|
25085
25068
|
this.weight = { value: 0, name: "" };
|
|
25086
25069
|
this.weightvalue = this.weight.value;
|
|
25087
|
-
} }, h("pn-illustration", { illustration: postagetype.illustration }), " ", postagetype.name)))), this.postagetype.value && deliveryscopes[this.postagetype.value] ? (h("div", null, (state$
|
|
25070
|
+
} }, h("pn-illustration", { illustration: postagetype.illustration }), " ", postagetype.name)))), this.postagetype.value && deliveryscopes[this.postagetype.value] ? (h("div", null, (state$6.i18n.deliveryscopeheading) ? (h("div", { class: "heading" }, state$6.i18n.deliveryscopeheading)) : null, h("div", { class: "deliveryscope" }, deliveryscopes[this.postagetype.value].map((deliveryscope) => (h("pn-choice-button", { choiceid: this.postagetype.value + deliveryscope.value, value: deliveryscope.value, name: "deliveryscope", type: "radio", checked: deliveryscope.value === this.deliveryscope.value, onChange: () => {
|
|
25088
25071
|
this.deliveryscope = deliveryscopes[this.postagetype.value].filter(x => x.value === deliveryscope.value)[0];
|
|
25089
25072
|
if (this.weight.value === 0) {
|
|
25090
25073
|
this.weight = weights$1[this.postagetype.value][0];
|
|
25091
25074
|
this.weightvalue = this.weight.value;
|
|
25092
25075
|
}
|
|
25093
|
-
} }, h("pn-illustration", { illustration: deliveryscope.illustration }), " ", deliveryscope.name)))))) : null, (this.postagetype.value && weights$1[this.postagetype.value] && this.deliveryscope.value) ? (h("div", null, (state$
|
|
25076
|
+
} }, h("pn-illustration", { illustration: deliveryscope.illustration }), " ", deliveryscope.name)))))) : null, (this.postagetype.value && weights$1[this.postagetype.value] && this.deliveryscope.value) ? (h("div", null, (state$6.i18n.sizeheading) ? (h("div", { class: "heading" }, state$6.i18n.sizeheading)) : null, h("div", { class: "weightoption" }, h("div", { class: "weightoption-input" }, h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: state$6.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
|
|
25094
25077
|
if (e && e.target && e.target.value) {
|
|
25095
25078
|
const weightNum = parseInt(e.target.value, 10);
|
|
25096
25079
|
if (!isNaN(weightNum)) {
|
|
@@ -25116,7 +25099,7 @@ const PnfindServiceAndPrice = class extends HTMLElement {
|
|
|
25116
25099
|
labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights$1[this.postagetype.value].length - 1) ? weight.name : '';
|
|
25117
25100
|
}
|
|
25118
25101
|
return (h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
|
|
25119
|
-
})))))) : null), (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$
|
|
25102
|
+
})))))) : null), (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$6.i18n.resultlistheading) ? (h("div", { class: "heading" }, state$6.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-service-and-price-result", { item: item })))))) : null));
|
|
25120
25103
|
}
|
|
25121
25104
|
static get watchers() { return {
|
|
25122
25105
|
"market": ["setState"],
|
|
@@ -25130,7 +25113,7 @@ const PnfindServiceAndPrice = class extends HTMLElement {
|
|
|
25130
25113
|
|
|
25131
25114
|
const pnFindServiceAndPriceResultCss = "";
|
|
25132
25115
|
|
|
25133
|
-
|
|
25116
|
+
let PnfindServiceAndPriceResult = class extends HTMLElement {
|
|
25134
25117
|
constructor() {
|
|
25135
25118
|
super();
|
|
25136
25119
|
this.__registerHost();
|
|
@@ -25158,7 +25141,7 @@ const PnfindServiceAndPriceResult = class extends HTMLElement {
|
|
|
25158
25141
|
// (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight/1000) + " kg" : this.item.maxweight + " g";
|
|
25159
25142
|
}
|
|
25160
25143
|
render() {
|
|
25161
|
-
return (h(Host, null, this.shownitems.map((item) => (h("pn-product-card", null, h("pn-illustration", { slot: "illustration", illustration: item.illustration }), h("div", { slot: "content" }, h("div", { class: "content" }, h("h3", null, item.name), (item.description) ? (h("div", { class: "description" }, item.description)) : null, (item.info) ? (h("div", { class: "description" }, item.info)) : null)), item.maxweight ? (h("pn-product-tile-info", { label: state$
|
|
25144
|
+
return (h(Host, null, this.shownitems.map((item) => (h("pn-product-card", null, h("pn-illustration", { slot: "illustration", illustration: item.illustration }), h("div", { slot: "content" }, h("div", { class: "content" }, h("h3", null, item.name), (item.description) ? (h("div", { class: "description" }, item.description)) : null, (item.info) ? (h("div", { class: "description" }, item.info)) : null)), item.maxweight ? (h("pn-product-tile-info", { label: state$6.i18n.maxweightlabel, text: this.weightText })) : null, item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state$6.i18n.stampshopcta, amount: item.pricestamps + '', currency: state$6.market.currency })) : null, item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state$6.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state$6.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null, item.note ? (h("small", { slot: "note" }, h("p", null, item.note))) : null)))));
|
|
25162
25145
|
}
|
|
25163
25146
|
static get watchers() { return {
|
|
25164
25147
|
"item": ["composeItems"]
|
|
@@ -25189,15 +25172,15 @@ const translations$8 = {
|
|
|
25189
25172
|
|
|
25190
25173
|
const pnLanguageSelectorCss = "pn-language-selector{max-height:5.2rem}pn-language-selector pn-nav-dropdown:not([data-open]) .nav-dropdown-content-container,pn-language-selector pn-nav-dropdown[data-open=false] .nav-dropdown-content-container{display:none}pn-language-selector pn-nav-dropdown{display:block}.languageselector{position:relative}.languageselector-togglebtn{cursor:pointer;border:0;padding:0.64rem 0;background-color:#FFFFFF;color:#005D92;font-size:1.6rem}.languageselector-togglebtn:hover,.languageselector-togglebtn:focus,.languageselector-togglebtn:active{color:#0D234B;text-decoration:underline}.languageselector-togglebtn svg{width:1.9rem;height:1.9rem}.languageselector-title{padding:0.8rem 1.6rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.languageselector-list{margin:0;padding:0;list-style:none}";
|
|
25191
25174
|
|
|
25192
|
-
|
|
25175
|
+
let PnlanguageSelector = class extends HTMLElement {
|
|
25193
25176
|
constructor() {
|
|
25194
25177
|
super();
|
|
25195
25178
|
this.__registerHost();
|
|
25196
25179
|
this.setLanguage = createEvent(this, "setLanguage", 7);
|
|
25180
|
+
/* Current language code */
|
|
25197
25181
|
this.value = "";
|
|
25198
25182
|
this.selectedLanguageName = "";
|
|
25199
25183
|
this.options = [];
|
|
25200
|
-
this.i18n = undefined;
|
|
25201
25184
|
}
|
|
25202
25185
|
componentWillLoad() {
|
|
25203
25186
|
this.setInitialSelectedLanguageName();
|
|
@@ -25279,16 +25262,16 @@ const PnlanguageSelector = class extends HTMLElement {
|
|
|
25279
25262
|
|
|
25280
25263
|
const pnLanguageSelectorOptionCss = "pn-language-selector-option{margin:0;padding:0;list-style:none}.languageselector-button,.languageselector-link{width:100%;padding:1.1rem 1.6rem 1.1rem 1.4rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;text-decoration:none;border:0;cursor:pointer;background-color:#FFFFFF;color:#005D92;font-size:1.6rem;font-weight:bold;border-radius:0}.languageselector-button:hover,.languageselector-button:focus,.languageselector-button:active,.languageselector-link:hover,.languageselector-link:focus,.languageselector-link:active{color:#0D234B;text-decoration:underline;-webkit-box-shadow:none;box-shadow:none;background-color:#F3F2F2;color:#005D92;outline:none}.languageselector-itemtext{display:inline-block;margin-left:1rem}.languageselector-radio-outer{background:#fff;border:0.1em solid #D3CECB;border-radius:50%;height:1.5em;width:1.5em;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:border 0.2s ease-in-out, background-color 0.2s ease-in-out, -webkit-box-shadow 0.1s;transition:border 0.2s ease-in-out, background-color 0.2s ease-in-out, -webkit-box-shadow 0.1s;transition:border 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.1s;transition:border 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.1s, -webkit-box-shadow 0.1s;cursor:pointer}.languageselector-radio-outer:focus>.languageselector-radio-outer,.languageselector-radio-outer:active>.languageselector-radio-outer{-webkit-box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92;box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92}.languageselector-radio-outer:hover>.languageselector-radio-outer{border:0.1rem solid #005D92;background:#E0F8FF}[selected=true] .languageselector-radio-outer{border:0.1rem solid #005D92}.languageselector-radio-inner{-webkit-transform:scale(0);transform:scale(0);height:1em;width:1em;background-color:#005D92;border-radius:50%;-webkit-transform-origin:center center;transform-origin:center center;-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}[selected=true] .languageselector-radio-inner{-webkit-transform:scale(1);transform:scale(1)}";
|
|
25281
25264
|
|
|
25282
|
-
|
|
25265
|
+
let PnlanguageSelectorOption = class extends HTMLElement {
|
|
25283
25266
|
constructor() {
|
|
25284
25267
|
super();
|
|
25285
25268
|
this.__registerHost();
|
|
25286
25269
|
this.setCurrentLanguage = createEvent(this, "setCurrentLanguage", 7);
|
|
25270
|
+
/** What you write in the comment block above each prop is what ends up in the description fields in the prop table in the documentation */
|
|
25287
25271
|
this.name = "";
|
|
25288
25272
|
this.code = "";
|
|
25289
25273
|
this.url = "";
|
|
25290
25274
|
this.selected = false;
|
|
25291
|
-
this.currentLanguage = undefined;
|
|
25292
25275
|
}
|
|
25293
25276
|
onOptionClick() {
|
|
25294
25277
|
const currentlanguage = {
|
|
@@ -25307,7 +25290,7 @@ const PnlanguageSelectorOption = class extends HTMLElement {
|
|
|
25307
25290
|
|
|
25308
25291
|
const pnLineShapeCss = "pn-line-shape .pn-line-shape__container{display:-ms-flexbox;display:flex}pn-line-shape .pn-line-shape__line{border-style:solid;border-width:0.4rem;border-radius:1.6rem;border-color:#00A0D6}pn-line-shape .pn-line-shape__dot{width:0.8rem;border-style:solid;border-width:0.4rem;border-radius:1.6rem;height:0.8rem;border-color:#00A0D6}pn-line-shape[slot=horizontal-line] .pn-line-shape__container{-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%;gap:0.8rem;padding:2.4rem 0}pn-line-shape[slot=horizontal-line] .pn-line-shape__line{height:0.8rem;width:100%}pn-line-shape[slot=vertical-line] .pn-line-shape__container{height:100%;-ms-flex-direction:column;flex-direction:column;gap:0.8rem;padding:0.8rem 0.5rem}pn-line-shape[slot=vertical-line] .pn-line-shape__line{height:100%;width:0.8rem}";
|
|
25309
25292
|
|
|
25310
|
-
|
|
25293
|
+
let PnLineShape$1 = class extends HTMLElement {
|
|
25311
25294
|
constructor() {
|
|
25312
25295
|
super();
|
|
25313
25296
|
this.__registerHost();
|
|
@@ -25359,7 +25342,7 @@ const translations$7 = {
|
|
|
25359
25342
|
};
|
|
25360
25343
|
|
|
25361
25344
|
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
25362
|
-
const { state: state$
|
|
25345
|
+
const { state: state$5, onChange: onChange$5 } = createStore({
|
|
25363
25346
|
openLevel: '',
|
|
25364
25347
|
currentLevel: 1,
|
|
25365
25348
|
openMenu: false,
|
|
@@ -25374,17 +25357,22 @@ const { state: state$4, onChange: onChange$4 } = createStore({
|
|
|
25374
25357
|
|
|
25375
25358
|
const pnMainnavCss = "pn-mainnav{display:-ms-flexbox;display:flex;-ms-flex-flow:row-reverse;flex-flow:row-reverse;position:relative;width:100%;min-height:5.1rem}@media screen and (min-width: 48em){pn-mainnav{-ms-flex-flow:row;flex-flow:row}}@media screen and (min-width: 64em){pn-mainnav{-ms-flex-flow:column;flex-flow:column}}@media screen and (min-width: 64em){pn-mainnav [slot=footer]{display:none}}pn-mainnav>nav{height:auto;width:100vw;background-color:#FFFFFF;z-index:2;-webkit-transform:translateX(100vw);transform:translateX(100vw);-webkit-transition:-webkit-transform 0.2s 0s;transition:-webkit-transform 0.2s 0s;transition:transform 0.2s 0s;transition:transform 0.2s 0s, -webkit-transform 0.2s 0s;-webkit-transition-property:visibility, -webkit-transform;transition-property:visibility, -webkit-transform;transition-property:transform, visibility;transition-property:transform, visibility, -webkit-transform;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;visibility:hidden;position:fixed;top:3em;bottom:0;left:0}@media screen and (min-width: 48em){pn-mainnav>nav{top:6.5em}}pn-mainnav>nav[data-menu-open=true]{visibility:visible;-webkit-transform:translateX(0);transform:translateX(0)}@media screen and (min-width: 64em){pn-mainnav>nav{-ms-flex-flow:row-reverse;flex-flow:row-reverse;top:0;position:static;height:auto;width:100%;-ms-flex-pack:justify;justify-content:space-between;visibility:visible;-webkit-transform:translateX(0);transform:translateX(0)}}pn-mainnav>nav a{text-decoration:none}pn-mainnav>nav button{cursor:pointer}.mainnav-toggle{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center}@media screen and (min-width: 64em){.mainnav-toggle{display:none}}.mainnav-toggle>button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:#005D92;color:#FFFFFF;border-radius:2.4rem;border:none;padding:0.6rem 1.6rem;cursor:pointer;font-size:1.6rem}.mainnav-toggle>button:focus{outline:0}.mainnav-toggle>button pn-icon{margin-left:0.8rem;display:block}.mainnav-toggle>button svg{display:block;margin:-0.2rem -0.5rem -0.2rem 0;height:1.9rem;width:1.9rem}";
|
|
25376
25359
|
|
|
25377
|
-
|
|
25360
|
+
let PnMainnav$1 = class extends HTMLElement {
|
|
25378
25361
|
constructor() {
|
|
25379
25362
|
super();
|
|
25380
25363
|
this.__registerHost();
|
|
25381
25364
|
this.menuLanguageChange = createEvent(this, "menuLanguageChange", 7);
|
|
25382
25365
|
this.marketChange = createEvent(this, "marketChange", 7);
|
|
25383
25366
|
this.menuOpenChange = createEvent(this, "menuOpenChange", 7);
|
|
25367
|
+
/** Specifies which market we want to fetch navigation for (se,dk,fi,no,com) */
|
|
25384
25368
|
this.market = "se";
|
|
25369
|
+
/** Specifies which language we want to show navigation in (sv,da,fi,no,en) */
|
|
25385
25370
|
this.language = "sv";
|
|
25371
|
+
/** Specifies which endpoint we should read information from */
|
|
25386
25372
|
this.navigationId = "mainnav";
|
|
25373
|
+
/** Specifies which endpoint we should read information from */
|
|
25387
25374
|
this.openMenu = false;
|
|
25375
|
+
/** Sets the label of the navigation (Required if multiple nav elements are on a page) */
|
|
25388
25376
|
this.navLabel = "";
|
|
25389
25377
|
}
|
|
25390
25378
|
componentWillLoad() {
|
|
@@ -25399,7 +25387,7 @@ const PnMainnav$1 = class extends HTMLElement {
|
|
|
25399
25387
|
_onClickOutside(event) {
|
|
25400
25388
|
const clickedOutside = !this.hostElement.contains(event.target);
|
|
25401
25389
|
if (clickedOutside) {
|
|
25402
|
-
state$
|
|
25390
|
+
state$5.openLevel = "";
|
|
25403
25391
|
}
|
|
25404
25392
|
}
|
|
25405
25393
|
setLanguage() {
|
|
@@ -25410,21 +25398,21 @@ const PnMainnav$1 = class extends HTMLElement {
|
|
|
25410
25398
|
}
|
|
25411
25399
|
onLanguageChange(event) {
|
|
25412
25400
|
if (translations$7[event.detail]) {
|
|
25413
|
-
state$
|
|
25401
|
+
state$5.i18n = translations$7[event.detail];
|
|
25414
25402
|
if (!this.navLabel) {
|
|
25415
|
-
this.navLabel = state$
|
|
25403
|
+
this.navLabel = state$5.i18n.navLabel;
|
|
25416
25404
|
}
|
|
25417
25405
|
}
|
|
25418
25406
|
}
|
|
25419
25407
|
setMenuOpenState() {
|
|
25420
|
-
state$
|
|
25421
|
-
this.menuOpenChange.emit(state$
|
|
25408
|
+
state$5.openMenu = (!state$5.openMenu);
|
|
25409
|
+
this.menuOpenChange.emit(state$5.openMenu);
|
|
25422
25410
|
}
|
|
25423
25411
|
onOpenMenuLevelChange(event) {
|
|
25424
|
-
state$
|
|
25412
|
+
state$5.openLevel = event.detail;
|
|
25425
25413
|
}
|
|
25426
25414
|
render() {
|
|
25427
|
-
return (h(Host, null, h("div", { class: "mainnav-toggle" }, h("button", { "aria-controls": this.navigationId, "aria-expanded": state$
|
|
25415
|
+
return (h(Host, null, h("div", { class: "mainnav-toggle" }, h("button", { "aria-controls": this.navigationId, "aria-expanded": state$5.openMenu + '', onClick: this.setMenuOpenState.bind(this) }, state$5.i18n.mainMenuButton, h("pn-icon", { symbol: state$5.openMenu ? "close" : "bars", color: "white" }))), h("nav", { class: "mainnav", "aria-label": this.navLabel, "data-menu-open": state$5.openMenu + '', "data-menu-currentlevel": state$5.currentLevel, id: this.navigationId }, h("slot", null))));
|
|
25428
25416
|
}
|
|
25429
25417
|
get hostElement() { return this; }
|
|
25430
25418
|
static get style() { return pnMainnavCss; }
|
|
@@ -25432,7 +25420,7 @@ const PnMainnav$1 = class extends HTMLElement {
|
|
|
25432
25420
|
|
|
25433
25421
|
const pnMainnavLevelCss = "pn-mainnav-level{display:block}pn-mainnav-level:not(.hydrated){max-height:5.6rem;overflow:hidden}pn-mainnav-level[data-level=\"1\"]{width:100%;right:0;overflow-y:scroll;overflow-x:hidden;-ms-flex:1;flex:1}@media screen and (min-width: 64em){pn-mainnav-level[data-level=\"1\"]{width:auto;overflow:initial}pn-mainnav-level[data-level=\"1\"]::-webkit-scrollbar{display:none}}pn-mainnav-level[data-level=\"2\"]{position:absolute;top:0;bottom:0;left:0;width:100vw;padding:0;background-color:#FFFFFF;z-index:1;-webkit-transform:translateX(100vw);transform:translateX(100vw);-webkit-transition:-webkit-transform 0.2s 0s;transition:-webkit-transform 0.2s 0s;transition:transform 0.2s 0s;transition:transform 0.2s 0s, -webkit-transform 0.2s 0s;-webkit-transition-property:visibility, -webkit-transform;transition-property:visibility, -webkit-transform;transition-property:transform, visibility;transition-property:transform, visibility, -webkit-transform;overflow:scroll;visibility:hidden}@media screen and (min-width: 64em){pn-mainnav-level[data-level=\"2\"]{left:0;top:calc(100% + 1rem);bottom:auto;border-radius:1.6rem;width:auto;padding:1.6rem 1.6rem 0 1.6rem;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);-moz-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);height:auto;z-index:3;display:none}pn-mainnav-level[data-level=\"2\"][data-menuitem-rightaligned=true]{right:0;left:unset}}@media screen and (max-height: 33.125em){pn-mainnav-level[data-level=\"2\"]{-ms-overflow-style:none;scrollbar-width:none}pn-mainnav-level[data-level=\"2\"]::-webkit-scrollbar{display:none}}pn-mainnav-level[data-level=\"2\"][aria-hidden=false]{-webkit-transform:translateX(0);transform:translateX(0);visibility:visible}@media screen and (min-width: 64em){pn-mainnav-level[data-level=\"2\"][aria-hidden=false]{display:block;overflow:visible}pn-mainnav-level[data-level=\"2\"][aria-hidden=false]:not([data-level-listcount=\"1\"]){display:grid;grid-template-columns:minmax(12em, 20em) 1fr;grid-template-rows:auto auto;gap:0px 1.6rem;grid-template-areas:\"top top\" \"left right\"}}@media screen and (min-width: 64em){pn-mainnav-level[data-level=\"2\"][data-level-alignment=left]{right:0;left:unset}}@media screen and (min-width: 64em){pn-mainnav-level[data-level=\"2\"][data-level-alignment=center]{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}}pn-mainnav-level[data-level=\"2\"] a{color:#005D92;text-decoration:none}pn-mainnav-level [slot=top]{display:-ms-flexbox;display:flex}@media screen and (min-width: 48em){pn-mainnav-level [slot=top]{display:none}}[data-menu-currentlevel=\"2\"] pn-mainnav-level [slot=footer]{display:none;-ms-scroll-chaining:none;overscroll-behavior:contain}.mainnav-level-header{grid-area:top}.mainnav-level-header>label{position:absolute;width:0.1rem;height:0.1rem;padding:0;margin:-0.1rem;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;white-space:nowrap}.mainnav-level-header>button{display:block;position:relative;border:none;background-color:transparent;color:#005D92;padding:2.4rem 0 2.4rem 6.2rem;width:100%;text-align:left}@media screen and (min-width: 64em){.mainnav-level-header>button{display:none;speak:none}}.mainnav-level-header>button>pn-icon{speak:none;position:absolute;height:2.4rem;width:2.4rem;left:3rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}[data-level=\"2\"] .mainnav-level-header>pn-mainnav-link>a{font-size:2.4rem}";
|
|
25434
25422
|
|
|
25435
|
-
|
|
25423
|
+
let PnMainnavLevel$1 = class extends HTMLElement {
|
|
25436
25424
|
constructor() {
|
|
25437
25425
|
super();
|
|
25438
25426
|
this.__registerHost();
|
|
@@ -25448,7 +25436,7 @@ const PnMainnavLevel$1 = class extends HTMLElement {
|
|
|
25448
25436
|
}
|
|
25449
25437
|
async componentWillLoad() {
|
|
25450
25438
|
this.setState();
|
|
25451
|
-
onChange$
|
|
25439
|
+
onChange$5("openLevel", () => {
|
|
25452
25440
|
this.onChangeOpenLevel();
|
|
25453
25441
|
});
|
|
25454
25442
|
}
|
|
@@ -25496,14 +25484,14 @@ const PnMainnavLevel$1 = class extends HTMLElement {
|
|
|
25496
25484
|
}
|
|
25497
25485
|
}
|
|
25498
25486
|
onChangeOpenLevel() {
|
|
25499
|
-
this.isOpen = state$
|
|
25500
|
-
state$
|
|
25487
|
+
this.isOpen = state$5.openLevel === this.levelId;
|
|
25488
|
+
state$5.currentLevel = this.level;
|
|
25501
25489
|
}
|
|
25502
25490
|
render() {
|
|
25503
|
-
return (h(Host, Object.assign({ role: "navigation" }, ((this.level > 1 && this.levelId) ? { 'aria-hidden': (!this.isOpen) + '' } : {}), { "data-level-listcount": this.listCount + '', "data-level-alignment": this.alignment, "data-level": this.level + '' }, (this.levelId ? { id: this.levelId } : {})), (this.level > 1) ? (h("div", { class: "mainnav-level-header" }, h("label", { htmlFor: this.levelId }, state$
|
|
25504
|
-
state$
|
|
25505
|
-
state$
|
|
25506
|
-
}, "aria-expanded": (state$
|
|
25491
|
+
return (h(Host, Object.assign({ role: "navigation" }, ((this.level > 1 && this.levelId) ? { 'aria-hidden': (!this.isOpen) + '' } : {}), { "data-level-listcount": this.listCount + '', "data-level-alignment": this.alignment, "data-level": this.level + '' }, (this.levelId ? { id: this.levelId } : {})), (this.level > 1) ? (h("div", { class: "mainnav-level-header" }, h("label", { htmlFor: this.levelId }, state$5.i18n.menuGoBackButton), h("button", { class: "secondlevel-backbtn", onClick: () => {
|
|
25492
|
+
state$5.openLevel = '';
|
|
25493
|
+
state$5.currentLevel = 1;
|
|
25494
|
+
}, "aria-expanded": (state$5.openLevel === this.levelId) + '' }, h("pn-icon", { symbol: "arrow-left", color: "blue700" }), state$5.i18n.menuStartButton), (this.parentHref && this.label) ? h("pn-mainnav-link", { href: this.parentHref, name: this.label, linkid: this.parentLinkId }) : null)) : null, h("slot", { name: "top" }), h("slot", null), h("slot", { name: "additional" }), h("slot", { name: "footer" })));
|
|
25507
25495
|
}
|
|
25508
25496
|
get hostElement() { return this; }
|
|
25509
25497
|
static get watchers() { return {
|
|
@@ -25515,15 +25503,21 @@ const PnMainnavLevel$1 = class extends HTMLElement {
|
|
|
25515
25503
|
|
|
25516
25504
|
const pnMainnavLinkCss = "pn-mainnav-link{display:block}pn-mainnav-link button,pn-mainnav-link a{font-weight:normal;position:relative;border:0 none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;color:#005D92}pn-mainnav-link button:hover,pn-mainnav-link button:focus,pn-mainnav-link a:hover,pn-mainnav-link a:focus{background-color:#FFFFFF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}pn-mainnav-link button:active,pn-mainnav-link a:active{background-color:#F3F2F2;color:#00A0D6;-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link{height:100%;padding-left:0;position:relative;scroll-snap-align:center}}[data-level=\"1\"] pn-mainnav-link:first-child{border-top:0.1rem solid #F3F2F2}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link:first-child{border:0}}[data-level=\"1\"] pn-mainnav-link>button,[data-level=\"1\"] pn-mainnav-link>a{font-size:2rem;width:100%;border-bottom:0.1rem solid #F3F2F2;height:auto;padding:1.9rem 0 1.9rem 3rem}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link>button,[data-level=\"1\"] pn-mainnav-link>a{height:100%;border:0;font-size:1.6rem;font-weight:normal;position:relative;outline:0;overflow:hidden;padding:1.6rem 1.6rem;white-space:nowrap}[data-level=\"1\"] pn-mainnav-link>button::before,[data-level=\"1\"] pn-mainnav-link>a::before{content:\"\";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}[data-level=\"1\"] pn-mainnav-link>button:hover::before,[data-level=\"1\"] pn-mainnav-link>button:focus::before,[data-level=\"1\"] pn-mainnav-link>a:hover::before,[data-level=\"1\"] pn-mainnav-link>a:focus::before{-webkit-transform:translateY(0);transform:translateY(0)}[data-level=\"1\"] pn-mainnav-link>button:active,[data-level=\"1\"] pn-mainnav-link>a:active{outline:0;-webkit-box-shadow:none;box-shadow:none;color:#005D92}[data-level=\"1\"] pn-mainnav-link>button:active::before,[data-level=\"1\"] pn-mainnav-link>a:active::before{background-color:#8EDDF9;-webkit-transform:translateY(0);transform:translateY(0)}}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link>button:hover,[data-level=\"1\"] pn-mainnav-link>button:focus,[data-level=\"1\"] pn-mainnav-link>a:hover,[data-level=\"1\"] pn-mainnav-link>a:focus{text-decoration:none}}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link>button[aria-expanded=true]::before,[data-level=\"1\"] pn-mainnav-link>a[aria-expanded=true]::before{content:\"\";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}}[data-level=\"1\"] pn-mainnav-link [aria-expanded=true] .first-level_icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_icon{-webkit-transition:0.25s linear transform;transition:0.25s linear transform;width:1.92rem;height:1.92rem;display:none}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_icon{display:block}}[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_arrow{display:block;position:absolute;height:2.4rem;width:2.4rem;right:2.4rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_arrow{display:none}}[data-level=\"1\"] pn-mainnav-link pn-icon svg{pointer-events:none;speak:none;width:100%;height:100%}@media screen and (min-width: 64em){pn-mainnav-level[data-level=\"2\"]:not([data-level-listcount=\"1\"]) pn-mainnav-list:last-child pn-mainnav-link>a{min-width:unset}}[data-level=\"2\"] pn-mainnav-link{position:static;display:inline-block;width:100%;height:auto}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link{padding-left:0;margin-bottom:1.6rem}}[data-level=\"2\"] pn-mainnav-link>a{font-size:1.6rem;border-bottom:0.1rem solid #F3F2F2;padding:2.2rem 0 2.2rem 3rem;white-space:normal}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link>a{min-width:16em;border:0;border-radius:1rem;padding:1.4rem 1.6rem}}[data-level=\"2\"] pn-mainnav-link>a:hover{background-color:#FFFFFF;color:#005D92}[data-level=\"2\"] pn-mainnav-link>a:hover,[data-level=\"2\"] pn-mainnav-link>a:focus{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link>a:hover,[data-level=\"2\"] pn-mainnav-link>a:focus{background-color:#F3F2F2;color:#005D92;text-decoration:underline;outline:0}}[data-level=\"2\"] pn-mainnav-link>a:hover::before,[data-level=\"2\"] pn-mainnav-link>a:focus::before{content:none}[data-level=\"2\"] pn-mainnav-link>a:active{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link>a:active{background-color:#F3F2F2;color:#00A0D6;outline:0}}[data-level=\"2\"] pn-mainnav-link>a:active::before{content:none}[data-level=\"2\"] pn-mainnav-link pn-icon{display:inline-block;margin-left:0.2em;min-width:1.5rem;width:1.5rem;height:1.5rem}";
|
|
25517
25505
|
|
|
25518
|
-
|
|
25506
|
+
let PnMainnavLink$1 = class extends HTMLElement {
|
|
25519
25507
|
constructor() {
|
|
25520
25508
|
super();
|
|
25521
25509
|
this.__registerHost();
|
|
25510
|
+
/** Name */
|
|
25522
25511
|
this.name = "";
|
|
25512
|
+
/** Href */
|
|
25523
25513
|
this.href = "";
|
|
25514
|
+
/** Target */
|
|
25524
25515
|
this.target = "";
|
|
25516
|
+
/** Link id */
|
|
25525
25517
|
this.linkid = "";
|
|
25518
|
+
/** Level ID that we control toggle on */
|
|
25526
25519
|
this.levelId = "";
|
|
25520
|
+
/** Menu item is open */
|
|
25527
25521
|
this.open = false;
|
|
25528
25522
|
this.hasChildren = false;
|
|
25529
25523
|
}
|
|
@@ -25535,10 +25529,10 @@ const PnMainnavLink$1 = class extends HTMLElement {
|
|
|
25535
25529
|
}
|
|
25536
25530
|
}
|
|
25537
25531
|
setOpenMenuLevel() {
|
|
25538
|
-
state$
|
|
25532
|
+
state$5.openLevel = (state$5.openLevel + "" === this.levelId + "") ? '' : this.levelId;
|
|
25539
25533
|
}
|
|
25540
25534
|
render() {
|
|
25541
|
-
return (h(Host, { role: "listitem", name: this.name, href: this.href, linkid: this.linkid }, this.hasChildren ? (h("button", { onClick: this.setOpenMenuLevel.bind(this), "aria-controls": this.levelId, "aria-pressed": "", "aria-expanded": ((state$
|
|
25535
|
+
return (h(Host, { role: "listitem", name: this.name, href: this.href, linkid: this.linkid }, this.hasChildren ? (h("button", { onClick: this.setOpenMenuLevel.bind(this), "aria-controls": this.levelId, "aria-pressed": "", "aria-expanded": ((state$5.openLevel + "" === this.levelId + "")) + '' }, this.name, h("pn-icon", { class: "first-level_icon", symbol: "angle-small-down", color: "blue700" }), h("pn-icon", { class: "first-level_arrow", symbol: "arrow-right", color: "blue700" }))) : (h("a", Object.assign({ href: this.href }, (this.target ? { target: this.target } : {}), (this.target === "_blank" ? { rel: "nofollow noopener" } : {}), (this.linkid ? { id: this.linkid } : {})), this.name, this.target === "_blank" ? (h("pn-icon", { symbol: "open-in-new", color: "blue700" })) : null)), h("slot", null)));
|
|
25542
25536
|
}
|
|
25543
25537
|
get hostElement() { return this; }
|
|
25544
25538
|
static get style() { return pnMainnavLinkCss; }
|
|
@@ -25546,7 +25540,7 @@ const PnMainnavLink$1 = class extends HTMLElement {
|
|
|
25546
25540
|
|
|
25547
25541
|
const pnMainnavListCss = "pn-mainnav-list{display:block;overflow:visible;list-style:none;margin:0;padding:0;grid-area:right}@media screen and (min-width: 64em){pn-mainnav-list+pn-mainnav-list{grid-area:left;border-right:0.1rem solid #D3CECB;margin-bottom:1.6rem;margin-right:-0.7rem;padding-right:0.7rem}}[data-level=\"1\"]>pn-mainnav-list{overflow:scroll;-webkit-overflow-scrolling:touch}@media screen and (min-width: 64em){[data-level=\"1\"]>pn-mainnav-list{height:100%;display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;overflow:visible;padding:0}}@media screen and (min-width: 64em){[data-level=\"2\"]>pn-mainnav-list[data-navlist-showcolumns=true]{-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:1.6rem;-moz-column-gap:1.6rem;column-gap:1.6rem;padding-bottom:1.6rem}}.mainnav-list-heading{display:none;font-weight:bold;-webkit-column-span:all;-moz-column-span:all;column-span:all;font-size:1.8rem;padding:1.4rem 1.4rem 1.4rem 4.8rem}@media screen and (min-width: 64em){.mainnav-list-heading{display:block;padding:0 1.4rem 1.4rem 1.4rem}}";
|
|
25548
25542
|
|
|
25549
|
-
|
|
25543
|
+
let PnMainnavList$1 = class extends HTMLElement {
|
|
25550
25544
|
constructor() {
|
|
25551
25545
|
super();
|
|
25552
25546
|
this.__registerHost();
|
|
@@ -25565,14 +25559,18 @@ const PnMainnavList$1 = class extends HTMLElement {
|
|
|
25565
25559
|
|
|
25566
25560
|
const pnMarketwebInputCss = "pn--marketweb-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}pn-marketweb-input input{padding:0.75em;font-size:1em;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:0.8rem;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}pn-marketweb-input input::-webkit-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-moz-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-marketweb-input input:hover{border:0.1rem solid #00A0D6}pn-marketweb-input input:disabled{background:#F3F2F2;border:none}pn-marketweb-input>.input-container{position:relative}pn-marketweb-input>.input-container>button{position:absolute;right:1.2rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#005D92;padding:0.6rem;border-radius:0.8rem;outline:none;-webkit-transition:border 0.1s, background 0.2s, color 0.1s;transition:border 0.1s, background 0.2s, color 0.1s;border:0.1rem solid transparent}pn-marketweb-input>.input-container>button:focus{border:0.1rem solid #005D92}pn-marketweb-input>.input-container>button:hover{background:#E0F8FF}pn-marketweb-input>.input-container>button:active{background:#005D92;color:white}pn-marketweb-input>.input-container>svg{position:absolute;right:0.75em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:1.5em;width:1.5em;pointer-events:none}pn-marketweb-input>.input-container>svg polyline{stroke-linecap:round;-webkit-transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86)}pn-marketweb-input>.input-container>svg.pn-input-checkmark polyline{stroke:#005E41;stroke-dashoffset:23;stroke-dasharray:23}pn-marketweb-input .label-container{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-marketweb-input .label-container label{cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.label-container label.char-count{-ms-flex-negative:0;flex-shrink:0;padding-left:0.5em}pn-marketweb-input small{font-size:0.75em;font-size:max(.6em, 1.2rem);-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86), -webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);margin-top:0.5em;color:#5E554A}pn-input.error{color:#A70707}pn-input.error label{color:#A70707}pn-input.error small{color:#A70707}pn-input.error small>pn-icon{margin-right:0.25em}pn-input.error input{border:0.1rem solid #A70707}pn-input.error input:focus{border:0.1rem solid #A70707;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707}pn-input.error input:hover{border:0.1rem solid #F06365}pn-input.valid{color:#005E41}pn-input.valid .input-container>svg.pn-input-checkmark polyline{stroke-dashoffset:0}pn-input.valid label{color:#005E41}pn-input.valid input{border:0.1rem solid #005E41}pn-input.valid input:focus{border:0.1rem solid #005E41;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41}pn-input.valid input:hover{border:0.1rem solid #5EC584}pn-marketweb-input.password input{padding-right:4em}pn-marketweb-input.icon input{padding-right:2.3em}";
|
|
25567
25561
|
|
|
25568
|
-
|
|
25562
|
+
let PnMarketwebInput$1 = class extends HTMLElement {
|
|
25569
25563
|
constructor() {
|
|
25570
25564
|
super();
|
|
25571
25565
|
this.__registerHost();
|
|
25572
25566
|
this.disabled = false;
|
|
25567
|
+
/** Error message; will take precedence over helpertext if both are provided (applies invalid styles automatically) */
|
|
25573
25568
|
this.error = '';
|
|
25569
|
+
/** Error state without message (If you want to control the error messaging on your own) */
|
|
25574
25570
|
this.invalid = false;
|
|
25571
|
+
/** Text message placed underneath the input field */
|
|
25575
25572
|
this.helpertext = '';
|
|
25573
|
+
/** Text label placed above the input field */
|
|
25576
25574
|
this.label = '';
|
|
25577
25575
|
this.placeholder = '';
|
|
25578
25576
|
this.inputid = `${Math.random()}`;
|
|
@@ -25582,6 +25580,7 @@ const PnMarketwebInput$1 = class extends HTMLElement {
|
|
|
25582
25580
|
this.autocomplete = '';
|
|
25583
25581
|
this.valid = null;
|
|
25584
25582
|
this.value = '';
|
|
25583
|
+
/** The maximum number of characters the user should be able to add, also adds a visible counter */
|
|
25585
25584
|
this.maxlength = '';
|
|
25586
25585
|
this.min = '';
|
|
25587
25586
|
this.max = '';
|
|
@@ -25630,7 +25629,7 @@ const PnMarketwebInput$1 = class extends HTMLElement {
|
|
|
25630
25629
|
|
|
25631
25630
|
const pnMarketwebSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host[list] :host>.input-container .button-container{display:none}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:#FFFFFF;border:none;color:#005D92;padding:0.3rem;margin:0;font-size:0.875em;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent;-webkit-tap-highlight-color:transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host>.input-container button:hover,:host>.input-container button:focus{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host .searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host .searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none input,:host .button-icon-inline input{padding-right:3.3em}:host .button-none pn-spinner,:host .button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host .button-none button.search,:host .button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.loading button,:host .button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-none.loading pn-spinner,:host .button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
|
|
25632
25631
|
|
|
25633
|
-
|
|
25632
|
+
let PnMarketwebSearch$1 = class extends HTMLElement {
|
|
25634
25633
|
constructor() {
|
|
25635
25634
|
super();
|
|
25636
25635
|
this.__registerHost();
|
|
@@ -25644,9 +25643,13 @@ const PnMarketwebSearch$1 = class extends HTMLElement {
|
|
|
25644
25643
|
this.autocomplete = null;
|
|
25645
25644
|
this.list = null;
|
|
25646
25645
|
this.value = null;
|
|
25646
|
+
/** Label for the button */
|
|
25647
25647
|
this.label = null;
|
|
25648
|
+
/** Loading animation */
|
|
25648
25649
|
this.loading = false;
|
|
25650
|
+
/** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
|
|
25649
25651
|
this.button = '';
|
|
25652
|
+
/** Light instead of dark search button */
|
|
25650
25653
|
this.light = false;
|
|
25651
25654
|
this.suggestionObserver = null;
|
|
25652
25655
|
this.hasClonedInput = false;
|
|
@@ -26129,27 +26132,32 @@ const translations$6 = {
|
|
|
26129
26132
|
|
|
26130
26133
|
const pnMarketwebSitefooterCss = "pn-marketweb-sitefooter .social-media a[target=_blank]:not(.pn-button):after{content:none}@media screen and (min-width: 60em){pn-marketweb-sitefooter:not([theme=dotcom]) pn-site-footer-col:has(div[slot=bottomsocialmediadesktop]){display:-ms-flexbox;display:flex;-ms-flex-line-pack:start;align-content:flex-start;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}pn-marketweb-sitefooter:not([theme=dotcom]) pn-site-footer-col:has(div[slot=bottomsocialmediadesktop]) div[slot=bottomsocialmediadesktop]{display:block;margin-top:auto;margin-bottom:1.6rem}pn-marketweb-sitefooter:not([theme=dotcom]) pn-site-footer-col:has(div[slot=bottomsocialmediadesktop]) div[slot=bottomsocialmediadesktop] .trustpilot-widget{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}}pn-marketweb-sitefooter:not([theme=dotcom]) [slot=bottomsocialmediamobile]{display:block;margin-top:1rem;margin-bottom:2.3rem}pn-marketweb-sitefooter:not([theme=dotcom]) [slot=bottomsocialmediamobile] .trustpilot-widget{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}@media screen and (min-width: 33.125em){pn-marketweb-sitefooter:not([theme=dotcom]) [slot=bottomsocialmediamobile] .trustpilot-widget{-ms-flex-pack:start;justify-content:flex-start}}@media screen and (min-width: 60em){pn-marketweb-sitefooter:not([theme=dotcom]) [slot=bottomsocialmediamobile]{display:none}}div[slot=middle-extra-mobile],div[slot=middle-extra]{display:none}pn-marketweb-sitefooter[theme=dotcom]{width:100%}pn-marketweb-sitefooter[theme=dotcom] div[slot=bottomsocialmediamobile],pn-marketweb-sitefooter[theme=dotcom] div[slot=bottomsocialmediadesktop]{display:none}pn-marketweb-sitefooter[theme=dotcom] div[slot=middle-extra-mobile]{display:block;width:100%;text-align:-webkit-center;margin:2.4rem 0}@media screen and (min-width: 1024px){pn-marketweb-sitefooter[theme=dotcom] div[slot=middle-extra-mobile]{display:none}pn-marketweb-sitefooter[theme=dotcom] div[slot=middle-extra]{display:block;width:100%;text-align:-webkit-center;margin:3.2rem 0}}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=darkestblue] pn-site-footer[theme=dotcom] pn-site-footer-col[theme=dotcom] svg path{fill:#FFFFFF}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=blue] pn-site-footer[theme=dotcom]{background-color:#005D92}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=blue] pn-site-footer[theme=dotcom] .pn-sitefooter-top,pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=blue] pn-site-footer[theme=dotcom] .pn-sitefooter-bottom{background-color:#005D92}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=blue] pn-site-footer[theme=dotcom]>svg path{fill:#005D92}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=blue] pn-site-footer[theme=dotcom] .pn-sitefooter-bottom .social-media{border-top:0.1rem solid #D3CECB;border-bottom:0.1rem solid #D3CECB}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=blue] pn-site-footer[theme=dotcom] .pn-sitefooter-bottom .social-media>ul>li:hover svg>circle{fill:#8EDDF9}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=blue] pn-site-footer[theme=dotcom] pn-site-footer-col[theme=dotcom] svg path{fill:#FFFFFF}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom]{background-color:#F3F2F2}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom]>svg path{fill:#F3F2F2}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom] .pn-sitefooter-top,pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom] .pn-sitefooter-bottom{background-color:#F3F2F2}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom] .pn-sitefooter-bottom .social-media{border-top:0.1rem solid #D3CECB;border-bottom:0.1rem solid #D3CECB}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom] .pn-sitefooter-bottom .social-media li svg circle{fill:#005D92}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.copyright *{color:#0D234B}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom] pn-site-footer-col[theme=dotcom] *{color:#0D234B}pn-marketweb-sitefooter[theme=dotcom][backgroundcolor=gray] pn-site-footer[theme=dotcom] pn-site-footer-col[theme=dotcom] * svg path{fill:#0D234B}pn-marketweb-sitefooter[theme=tpl] pn-site-footer{background-color:#0D234B;padding-top:6rem}@media screen and (max-width: 33.125em){pn-marketweb-sitefooter[theme=tpl] pn-site-footer{padding-left:2.6rem;padding-right:2.6rem}}pn-marketweb-sitefooter[theme=tpl] pn-site-footer>svg{display:none}pn-marketweb-sitefooter[theme=tpl] div.pn-sitefooter-bottom{background-color:#0D234B;color:#FFFFFF;margin:2.5rem 0}pn-marketweb-sitefooter[theme=tpl] div.pn-sitefooter-bottom div[slot=bottom]{border-top:1px solid #005D92;border-bottom:1px solid #005D92}pn-marketweb-sitefooter[theme=tpl] div.pn-sitefooter-bottom a{color:#FFFFFF}pn-marketweb-sitefooter[theme=tpl] div.pn-sitefooter-bottom a:hover{text-decoration:underline;color:#FFFFFF}pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-top,pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-logo{background-color:#0D234B;color:#FFFFFF}pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-top a,pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-logo a{color:#FBC2C1}pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-top a:hover,pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-logo a:hover{text-decoration:underline;color:#FBC2C1}@media screen and (max-width: 60em){pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-top .pn-sitefooter-cols{padding:0 8rem}}@media screen and (max-width: 60em){pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-top .pn-sitefooter-cols{padding:0 5rem}}@media screen and (max-width: 48em){pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-top .pn-sitefooter-cols{padding:0 3rem}}@media screen and (min-width: 33.125em){pn-marketweb-sitefooter[theme=tpl] .pn-sitefooter-top .pn-sitefooter-cols{width:114rem;-ms-flex-pack:justify;justify-content:space-between}}pn-marketweb-sitefooter[theme=tpl] div.pn-sitefooter-logo a svg path{fill:#00A0D6}@media screen and (min-width: 33.125em){pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col{width:unset;min-width:unset}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col:first-child{min-width:45%}}@media screen and (max-width: 60em){pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col:first-child{min-width:100%;padding-top:0}}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col a{display:-ms-inline-flexbox;display:inline-flex;gap:0.7rem;-ms-flex-align:start;align-items:flex-start}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col a h3{color:#FFFFFF}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col a span.footer-tpl-links{display:none}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col a:hover{text-decoration:underline;color:#FBC2C1}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col a pn-icon svg{background-color:#FBC2C1;border-radius:0.3rem;height:1.7rem;width:1.7rem;margin-top:0.3rem}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col a pn-icon svg path{fill:#0D234B}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col h3{margin-bottom:3.5rem}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col ul.social-media{-ms-flex-direction:column;flex-direction:column;gap:0.5rem;row-gap:0rem}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col ul.social-media li{max-height:4rem}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col ul.social-media a{-ms-flex-align:center;align-items:center;gap:0}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col ul.social-media a circle{display:none}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col ul.social-media a span.footer-tpl-links{display:block}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col ul.social-media a svg{height:3.7rem;width:3.7rem}pn-marketweb-sitefooter[theme=tpl] div pn-site-footer-col ul.social-media a svg path{fill:#FBC2C1}";
|
|
26131
26134
|
|
|
26132
|
-
|
|
26135
|
+
let PnMarketwebSiteheader$2 = class extends HTMLElement {
|
|
26133
26136
|
constructor() {
|
|
26134
26137
|
super();
|
|
26135
26138
|
this.__registerHost();
|
|
26136
|
-
|
|
26137
|
-
this.fetchHelper = new FetchHelper('sitefooter');
|
|
26138
|
-
//endpoint
|
|
26139
|
-
this.endpointPath = '/api/footer/footer';
|
|
26139
|
+
/** Specifies which market we want to show (se,dk,fi,no,com) */
|
|
26140
26140
|
this.market = 'se';
|
|
26141
|
+
/** Specifies which language we want to show (sv,da,fi,no,en) */
|
|
26141
26142
|
this.language = 'sv';
|
|
26142
|
-
|
|
26143
|
+
/** Specifies which environment we're fetching data from. (production, preproduction, integration, localhost) */
|
|
26144
|
+
this.environment = null; //sv
|
|
26145
|
+
/** Specifies which endpoint domain we should load from */
|
|
26143
26146
|
this.endpoint = null;
|
|
26147
|
+
/** Adjusts the menus URLs */
|
|
26144
26148
|
this.siteDomainInUrls = false;
|
|
26149
|
+
/** If the component should use cached requests */
|
|
26145
26150
|
this.cache = false;
|
|
26151
|
+
/** dotcom prop */
|
|
26146
26152
|
this.theme = 'default';
|
|
26153
|
+
/** dotcom backgroundcolor */
|
|
26147
26154
|
this.backgroundcolor = 'darkestblue';
|
|
26148
|
-
this.siteDefinition = undefined;
|
|
26149
|
-
this.footerContent = undefined;
|
|
26150
|
-
this.i18n = undefined;
|
|
26151
26155
|
this.gotData = false;
|
|
26152
26156
|
this.fetchingData = false;
|
|
26157
|
+
// FetchHelper
|
|
26158
|
+
this.fetchHelper = new FetchHelper('sitefooter');
|
|
26159
|
+
//endpoint
|
|
26160
|
+
this.endpointPath = '/api/footer/footer';
|
|
26153
26161
|
}
|
|
26154
26162
|
componentWillLoad() {
|
|
26155
26163
|
this.setInitialValues().then(() => {
|
|
@@ -26325,707 +26333,836 @@ const PnMarketwebSiteheader$2 = class extends HTMLElement {
|
|
|
26325
26333
|
static get style() { return pnMarketwebSitefooterCss; }
|
|
26326
26334
|
};
|
|
26327
26335
|
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
|
|
26334
|
-
|
|
26335
|
-
|
|
26336
|
-
|
|
26337
|
-
|
|
26338
|
-
|
|
26339
|
-
|
|
26340
|
-
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26345
|
-
|
|
26346
|
-
|
|
26347
|
-
|
|
26348
|
-
|
|
26349
|
-
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26367
|
-
|
|
26368
|
-
|
|
26369
|
-
|
|
26370
|
-
|
|
26371
|
-
|
|
26372
|
-
|
|
26373
|
-
|
|
26374
|
-
|
|
26375
|
-
|
|
26376
|
-
|
|
26377
|
-
|
|
26378
|
-
|
|
26379
|
-
|
|
26380
|
-
|
|
26381
|
-
|
|
26382
|
-
|
|
26383
|
-
|
|
26384
|
-
|
|
26385
|
-
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
|
|
26389
|
-
|
|
26390
|
-
|
|
26391
|
-
|
|
26392
|
-
|
|
26393
|
-
this.store.set(this.keys.user, options.userInfo);
|
|
26394
|
-
this.registerToken(this.overridetokenValue, 'override');
|
|
26395
|
-
}
|
|
26336
|
+
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
26337
|
+
const { state: state$4, onChange: onChange$4 } = createStore({
|
|
26338
|
+
loginManager: null
|
|
26339
|
+
});
|
|
26340
|
+
|
|
26341
|
+
const translations$5 = {
|
|
26342
|
+
'sv': {
|
|
26343
|
+
"searchlabel": "Sök",
|
|
26344
|
+
"searchplaceholder": "Vad letar du efter?",
|
|
26345
|
+
"searchbuttontext": "Sök",
|
|
26346
|
+
"menuHomeButton": "Hem",
|
|
26347
|
+
"menuGoBackButton": "Gå tillbaka",
|
|
26348
|
+
"mainMenuButton": "Meny",
|
|
26349
|
+
"menuStartButton": "Start",
|
|
26350
|
+
"profileSelectionFlyoutHeading": "Inloggad som",
|
|
26351
|
+
},
|
|
26352
|
+
'en': {
|
|
26353
|
+
"searchlabel": "Search",
|
|
26354
|
+
"searchplaceholder": "Search",
|
|
26355
|
+
"searchbuttontext": "Search",
|
|
26356
|
+
"menuHomeButton": "Home",
|
|
26357
|
+
"menuGoBackButton": "Go back",
|
|
26358
|
+
"mainMenuButton": "Menu",
|
|
26359
|
+
"menuStartButton": "Start",
|
|
26360
|
+
"profileSelectionFlyoutHeading": "Logged in as",
|
|
26361
|
+
},
|
|
26362
|
+
'da': {
|
|
26363
|
+
"searchlabel": "Søg",
|
|
26364
|
+
"searchplaceholder": "Søg",
|
|
26365
|
+
"searchbuttontext": "Søg",
|
|
26366
|
+
"menuHomeButton": "Hjem",
|
|
26367
|
+
"menuGoBackButton": "Gå tilbage",
|
|
26368
|
+
"mainMenuButton": "Menu",
|
|
26369
|
+
"menuStartButton": "Start",
|
|
26370
|
+
"profileSelectionFlyoutHeading": "Logget ind som",
|
|
26371
|
+
},
|
|
26372
|
+
'no': {
|
|
26373
|
+
"searchlabel": "Søk",
|
|
26374
|
+
"searchplaceholder": "Søk",
|
|
26375
|
+
"searchbuttontext": "Søk",
|
|
26376
|
+
"menuHomeButton": "Hjem",
|
|
26377
|
+
"menuGoBackButton": "Gå tilbake",
|
|
26378
|
+
"mainMenuButton": "Meny",
|
|
26379
|
+
"menuStartButton": "Start",
|
|
26380
|
+
"profileSelectionFlyoutHeading": "Logget på som",
|
|
26381
|
+
},
|
|
26382
|
+
'fi': {
|
|
26383
|
+
"searchlabel": "Hae",
|
|
26384
|
+
"searchplaceholder": "Hae",
|
|
26385
|
+
"searchbuttontext": "Hae",
|
|
26386
|
+
"menuHomeButton": "Koti",
|
|
26387
|
+
"menuGoBackButton": "Mene takaisin",
|
|
26388
|
+
"mainMenuButton": "Valikko",
|
|
26389
|
+
"menuStartButton": "Alkaa",
|
|
26390
|
+
"profileSelectionFlyoutHeading": "Kirjautunut sisään nimellä",
|
|
26391
|
+
},
|
|
26392
|
+
'de': {
|
|
26393
|
+
"searchlabel": "Suche",
|
|
26394
|
+
"searchplaceholder": "Wonach suchen Sie?",
|
|
26395
|
+
"searchbuttontext": "Suche",
|
|
26396
|
+
"menuHomeButton": "Start",
|
|
26397
|
+
"menuGoBackButton": "Geh zurück",
|
|
26398
|
+
"mainMenuButton": "Menü",
|
|
26399
|
+
"menuStartButton": "Start",
|
|
26400
|
+
"profileSelectionFlyoutHeading": "Eingeloggt als",
|
|
26396
26401
|
}
|
|
26397
|
-
|
|
26398
|
-
|
|
26399
|
-
this.checkParameters();
|
|
26400
|
-
|
|
26401
|
-
|
|
26402
|
-
|
|
26403
|
-
|
|
26404
|
-
|
|
26405
|
-
|
|
26406
|
-
|
|
26402
|
+
};
|
|
26403
|
+
|
|
26404
|
+
const pnMarketwebSiteheaderCss = "body[data-siteheader-menuopen=true]{max-height:100vh;overflow:hidden}@media screen and (min-width: 60em){body[data-siteheader-menuopen=true]{max-height:initial;overflow:initial}}pn-marketweb-siteheader{display:block;background:#FFFFFF}pn-marketweb-siteheader header{position:relative;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}@media screen and (min-width: 48em){pn-marketweb-siteheader header{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:initial;justify-content:initial}}pn-marketweb-siteheader .siteheader-row{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;-ms-flex-align:center;align-items:center;width:100%;padding:0 1.6rem;min-height:2em}pn-marketweb-siteheader .siteheader-row:not(:last-child){border-bottom:0.1rem solid #F3F2F2}@media screen and (min-width: 48em){pn-marketweb-siteheader .siteheader-row{-ms-flex-pack:justify;justify-content:space-between;min-height:3.2em}}pn-marketweb-siteheader .siteheader-topright{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}pn-marketweb-siteheader .siteheader-logocontainer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;min-height:3em;background:#FFFFFF;z-index:1}@media screen and (min-width: 48em){pn-marketweb-siteheader .siteheader-logocontainer{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}}pn-marketweb-siteheader .siteheader-logolink{height:100%;max-height:6.4rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}pn-marketweb-siteheader .siteheader-logolink:hover,pn-marketweb-siteheader .siteheader-logolink:focus,pn-marketweb-siteheader .siteheader-logolink:active{-webkit-box-shadow:none;box-shadow:none}pn-marketweb-siteheader .siteheader-row>pn-marketweb-siteheader-search{display:none}@media screen and (min-width: 48em){pn-marketweb-siteheader .siteheader-row>pn-marketweb-siteheader-search{display:block;max-width:30rem;min-width:23.3rem;width:100%}}pn-marketweb-siteheader pn-spinner{display:none}pn-marketweb-siteheader pn-nav-dropdown:not(.hydrated) .nav-dropdown-content-container{display:none}.siteheader-topleft pn-site-selector{padding:1rem 0;display:none}@media screen and (min-width: 48em){.siteheader-topleft pn-site-selector{display:block}}@media screen and (min-width: 60em){.siteheader-topleft pn-site-selector{margin-left:1.3rem}}.siteheader-topleft pn-site-selector .pn-nav-dropdown-label,.siteheader-topleft pn-site-selector:is(a){font-size:0}.siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon,.siteheader-topleft pn-site-selector:is(a) pn-icon{font-size:initial;margin-left:0}@media screen and (min-width: 60em){.siteheader-topleft pn-site-selector .pn-nav-dropdown-label,.siteheader-topleft pn-site-selector:is(a){font-size:initial}.siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon,.siteheader-topleft pn-site-selector:is(a) pn-icon{margin-left:0.4em}}@media screen and (min-width: 60em){.siteheader-topright{margin-right:1.6rem}}.siteheader-topright>pn-language-selector,.siteheader-topright>pn-marketweb-siteheader-login,.siteheader-topright>a{padding:1rem 0;display:none;-ms-flex-item-align:center;align-self:center}@media screen and (min-width: 48em){.siteheader-topright>pn-language-selector,.siteheader-topright>pn-marketweb-siteheader-login,.siteheader-topright>a{display:block;margin-left:1rem}}@media screen and (min-width: 60em){.siteheader-topright>pn-language-selector,.siteheader-topright>pn-marketweb-siteheader-login,.siteheader-topright>a{margin-left:1.6rem}}.siteheader-topright>pn-language-selector .pn-nav-dropdown-label,.siteheader-topright>pn-language-selector:is(a),.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label,.siteheader-topright>pn-marketweb-siteheader-login:is(a),.siteheader-topright>a .pn-nav-dropdown-label,.siteheader-topright>a:is(a){font-size:0}.siteheader-topright>pn-language-selector .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-language-selector:is(a) pn-icon,.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-marketweb-siteheader-login:is(a) pn-icon,.siteheader-topright>a .pn-nav-dropdown-label pn-icon,.siteheader-topright>a:is(a) pn-icon{font-size:initial;margin-left:0}@media screen and (min-width: 60em){.siteheader-topright>pn-language-selector .pn-nav-dropdown-label,.siteheader-topright>pn-language-selector:is(a),.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label,.siteheader-topright>pn-marketweb-siteheader-login:is(a),.siteheader-topright>a .pn-nav-dropdown-label,.siteheader-topright>a:is(a){font-size:initial}.siteheader-topright>pn-language-selector .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-language-selector:is(a) pn-icon,.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-marketweb-siteheader-login:is(a) pn-icon,.siteheader-topright>a .pn-nav-dropdown-label pn-icon,.siteheader-topright>a:is(a) pn-icon{margin-left:0.4em}}.siteheader-menu{max-width:100%;width:100%;overflow:visible;overflow-x:clip}@media screen and (min-width: 60em){.siteheader-menu{margin-top:auto;overflow:visible}}.siteheader-menu pn-mainnav-link a[target]::after{content:none}.siteheader-menu pn-marketweb-siteheader-search{padding:0.3rem 1.6rem;width:100%}.siteheader-menu [slot=top] pn-search-field{width:100%}.siteheader-menu-footer{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.siteheader-menu-footer>*{margin:1.6rem}header[data-header-theme=dotcom]>pn-marketweb-siteheader pn-button a{text-decoration:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader pn-button a:hover{text-decoration:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header{background-color:#0D234B;-webkit-box-shadow:none;box-shadow:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-row:not(:last-child){border-bottom:0.1rem solid #0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft button.pn-nav-dropdown-label:hover{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft button.pn-nav-dropdown-label:active{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft button.pn-nav-dropdown-label:focus{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-logocontainer{background-color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-logocontainer svg.siteheader-logo>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright .siteheader-logindialog svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright pn-language-selector pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button:hover{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button:active{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button:focus{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright [slot=toprightend]{-ms-flex-item-align:center;align-self:center;margin-left:1rem}@media screen and (max-width: 48em){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright [slot=toprightend]{display:none}}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu .mainnav-toggle button{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu .first-level_icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input{background-color:#FFFFFF;color:#0D234B;border:0.1rem solid #FFFFFF;padding:0.65rem 1.5rem}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:hover{border-color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-webkit-input-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-moz-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:-ms-input-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-ms-input-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav{background-color:#0D234B}@media screen and (min-width: 48em){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav{top:6.4em}}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav a{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level [slot=top].siteheader-menu-top pn-marketweb-siteheader-search{padding-bottom:0.5rem;background-color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level [slot=top].siteheader-menu-top pn-marketweb-siteheader-search .button-container{border-top:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-top-right-radius:50%;border-bottom-right-radius:50%}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level [slot=top].siteheader-menu-top pn-marketweb-siteheader-search .button-container button.clear{border:2px solid #FFFFFF;border-radius:50%;padding:0.5rem}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level .mainnav-level-header .secondlevel-backbtn pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-level[data-level=\"2\"] .mainnav-level-header pn-mainnav-link>a:hover{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link button,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link a{background-color:#0D234B;border-bottom:0.1rem solid rgba(0, 93, 146, 0.5)}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link button:hover,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link a:hover{text-decoration:none}@media screen and (min-width: 1024px){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link button,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link a{border-bottom:none}}@media screen and (max-width: 1023px){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link:first-child{border-top:0.1rem solid rgba(0, 93, 146, 0.5)}}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link a,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link button{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link a:focus,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link button:focus{outline:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level:not([data-level=\"1\"]){background-color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level:not([data-level=\"1\"]) pn-mainnav-list{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level:not([data-level=\"1\"]) pn-mainnav-list pn-mainnav-link>a:hover{background-color:#00A0D6;text-decoration:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header [data-level=\"1\"] pn-mainnav-link pn-icon.first-level_arrow svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button:hover{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button:active{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button:focus{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button svg>path{fill:#FFFFFF}@media screen and (min-width: 48em){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:none}}.siteheader-menu-top-search{display:none}header[data-header-theme=tpl]>pn-marketweb-siteheader pn-button a{text-decoration:none}header[data-header-theme=tpl]>pn-marketweb-siteheader pn-button a:hover{text-decoration:none}@media screen and (max-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button]{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a{color:#0D234B;font-weight:500;font-size:1.6rem;padding:0.8rem 2.4rem}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a .pn-button-bg{background-color:#FBC2C1}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a .pn-button-content pn-icon svg>path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a:hover{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a:hover .pn-button-bg{background-color:#0D234B;-webkit-transition:backgrond-color linear 1s;transition:backgrond-color linear 1s}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a:hover .pn-button-content pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-row:not(:last-child){background-color:#0D234B;border-bottom:0.1rem solid #0D234B}@media screen and (max-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-row:last-child{background-color:#0D234B}}@media screen and (min-width: 60em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header [data-level=\"1\"] pn-mainnav-link>button::before,header[data-header-theme=tpl]>pn-marketweb-siteheader>header [data-level=\"1\"] pn-mainnav-link>a::before{background-color:#FBC2C1}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button]{background:#0D234B;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media screen and (min-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button]{display:none}}@media screen and (max-width: 415px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button]{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a{color:#0D234B;font-weight:500}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a .pn-button-bg{background-color:#FBC2C1}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a .pn-button-content pn-icon svg>path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a:hover{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a:hover .pn-button-bg{background-color:#0D234B;-webkit-transition:backgrond-color linear 1s;transition:backgrond-color linear 1s}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a:hover .pn-button-content pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header a{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header pn-mainnav-link button{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header pn-mainnav-link button pn-icon svg path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label:hover{background:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header button.pn-nav-dropdown-label:hover{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header button.pn-nav-dropdown-label:active{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header button.pn-nav-dropdown-label:focus{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-logocontainer{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-logocontainer svg.siteheader-logo>path{fill:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright{margin-right:0;-ms-flex-item-align:center;align-self:center;margin-left:1rem}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright .siteheader-logindialog svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright pn-language-selector pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button:hover{background-color:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button:active,header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button:focus{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search{display:inline-block;margin-top:auto;margin-bottom:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search pn-search-field{-ms-flex-pack:end;justify-content:flex-end;min-width:inherit}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form{margin-right:0}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container{position:absolute;width:100%}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input{cursor:pointer;background-color:transparent;color:transparent;border:none;position:relative;z-index:3;border-radius:0}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::-webkit-input-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::-moz-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input:-ms-input-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::-ms-input-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .input-container:focus-within{margin-left:2rem}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .input-container:focus-within input{background-color:#FFFFFF;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .siteheader-search pn-button button{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:1rem 1.9rem}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .siteheader-search pn-button button .pn-button-bg{background:#0D234B}@media screen and (min-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-row:last-child pn-marketweb-siteheader-search{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input{background-color:#FFFFFF;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:hover{border-color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-webkit-input-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-moz-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:-ms-input-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-ms-input-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:none}@media screen and (max-width: 415px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:block;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] .pn-button-bg{background-color:#FBC2C1}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] .pn-button-content{font-weight:500;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] .pn-button-content pn-icon svg>path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] a:hover{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] a:hover .pn-button-bg{background-color:#0D234B;-webkit-transition:backgrond-color linear 1s;transition:backgrond-color linear 1s}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] a:hover .pn-button-content pn-icon svg>path{fill:#FFFFFF}}@media screen and (max-width: 1024px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:focus,header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:hover{color:#FFFFFF;background-color:#00A0D6;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #00A0D6;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:focus svg>path,header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:hover svg>path{fill:#FFFFFF}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button:hover{background-color:#005D92}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button:active{background-color:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button:focus{background-color:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button svg>path{fill:#FFFFFF}@media screen and (max-width: 1024px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button pn-icon svg>path{fill:#0D234B}}@media screen and (min-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:none}}";
|
|
26405
|
+
|
|
26406
|
+
let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
26407
|
+
constructor() {
|
|
26408
|
+
super();
|
|
26409
|
+
this.__registerHost();
|
|
26410
|
+
this.changeLanguage = createEvent(this, "changeLanguage", 7);
|
|
26411
|
+
this.changeMarket = createEvent(this, "changeMarket", 7);
|
|
26412
|
+
this.endpointPath = '/api/navigation/header';
|
|
26413
|
+
// allowedLanguages = ["sv","da","fi","no","en"];
|
|
26414
|
+
// allowedMarkets = ["se","dk","fi","no","com", "tpl"];
|
|
26415
|
+
/** Specifies which market we want to show (se,dk,fi,no,com) */
|
|
26416
|
+
this.market = null; //se
|
|
26417
|
+
/** Specifies which language we want to show (sv,da,fi,no,en) */
|
|
26418
|
+
this.language = null; //sv
|
|
26419
|
+
/** Specifies the current site id (guid) */
|
|
26420
|
+
this.siteid = null;
|
|
26421
|
+
/** Specifies which environment we're fetching data from. (production, preproduction, integration, localhost) */
|
|
26422
|
+
this.environment = null; //sv
|
|
26423
|
+
/** Access token passed from backend */
|
|
26424
|
+
this.userToken = '';
|
|
26425
|
+
/** User Fullname */
|
|
26426
|
+
this.userFullname = '';
|
|
26427
|
+
/** User Logged in state from the backend */
|
|
26428
|
+
this.userLoggedin = false;
|
|
26429
|
+
/** Specifies which endpoint domain we should load from */
|
|
26430
|
+
this.endpoint = null;
|
|
26431
|
+
/** Hides the site selector if set to true*/
|
|
26432
|
+
this.hideSiteSelector = false;
|
|
26433
|
+
/** Hides the "home" menu item in the navigation if set to true*/
|
|
26434
|
+
this.hideHomeMenuItem = false;
|
|
26435
|
+
/** Hides the language selector if set to true*/
|
|
26436
|
+
this.hideLanguageSelector = false;
|
|
26437
|
+
/** Hides the search form if set to true*/
|
|
26438
|
+
this.hideSearch = false;
|
|
26439
|
+
/** Hides the login if set to true*/
|
|
26440
|
+
this.hideLogin = false;
|
|
26441
|
+
/** If this is selected we will show the new profile selection dropdown instead of the login version */
|
|
26442
|
+
this.showProfileSelection = false;
|
|
26443
|
+
/** Adjusts the menus URLs */
|
|
26444
|
+
this.siteDomainInUrls = false;
|
|
26445
|
+
/** Autocomplete endpoint */
|
|
26446
|
+
this.AutocompleteEndpoint = '';
|
|
26447
|
+
/** Forward session to backend */
|
|
26448
|
+
this.sessionForward = false;
|
|
26449
|
+
/** If the component should use cached requests */
|
|
26450
|
+
this.cache = false;
|
|
26451
|
+
/** Header search placeholder */
|
|
26452
|
+
this.searchPlaceholder = '';
|
|
26453
|
+
/** Event based only language switch */
|
|
26454
|
+
this.spaMode = false;
|
|
26455
|
+
/** Continiously check if a user is logged in **/
|
|
26456
|
+
this.checkUserLoggedInStateInterval = 0;
|
|
26457
|
+
this.i18n = {
|
|
26458
|
+
searchlabel: '',
|
|
26459
|
+
searchplaceholder: '',
|
|
26460
|
+
searchbuttontext: '',
|
|
26461
|
+
menuHomeButton: '',
|
|
26462
|
+
menuGoBackButton: '',
|
|
26463
|
+
mainMenuButton: '',
|
|
26464
|
+
menuStartButton: '',
|
|
26465
|
+
profileSelectionFlyoutHeading: '',
|
|
26466
|
+
};
|
|
26467
|
+
this.gotData = false;
|
|
26468
|
+
this.fetchingData = false;
|
|
26469
|
+
this.homePageLink = '/';
|
|
26470
|
+
// Menu state
|
|
26471
|
+
this.menuItems = [];
|
|
26472
|
+
// Search
|
|
26473
|
+
this.search = { AutocompleteEndpoint: this.AutocompleteEndpoint };
|
|
26474
|
+
// Site selector
|
|
26475
|
+
this.siteSelector = null;
|
|
26476
|
+
// Language Selector
|
|
26477
|
+
this.languageSelector = null;
|
|
26478
|
+
this.languageOptions = [];
|
|
26479
|
+
// Login dialog
|
|
26480
|
+
this.loginDialog = null;
|
|
26481
|
+
this.minimizeSearch = false;
|
|
26482
|
+
this.loggedIn = false;
|
|
26483
|
+
// FetchHelper
|
|
26484
|
+
this.fetchHelper = new FetchHelper('siteheader');
|
|
26407
26485
|
}
|
|
26408
|
-
|
|
26409
|
-
|
|
26410
|
-
this.
|
|
26411
|
-
}
|
|
26486
|
+
componentWillLoad() {
|
|
26487
|
+
this.setInitialValues().then(() => {
|
|
26488
|
+
this.init();
|
|
26489
|
+
});
|
|
26412
26490
|
}
|
|
26413
|
-
|
|
26414
|
-
|
|
26415
|
-
|
|
26491
|
+
async setInitialValues(href = window.location.href) {
|
|
26492
|
+
var _a;
|
|
26493
|
+
const marketWebContextService = new MarketWebContextService(href);
|
|
26494
|
+
if (!this.market) {
|
|
26495
|
+
const resolvedMarket = await marketWebContextService.getMarket();
|
|
26496
|
+
this.market = resolvedMarket;
|
|
26416
26497
|
}
|
|
26417
|
-
|
|
26418
|
-
|
|
26419
|
-
|
|
26498
|
+
if (!this.language) {
|
|
26499
|
+
const resolvedMarket = await marketWebContextService.getLanguage();
|
|
26500
|
+
this.language = resolvedMarket;
|
|
26420
26501
|
}
|
|
26421
|
-
|
|
26422
|
-
|
|
26423
|
-
registerToken(token = '', tokenSource = 'frontend') {
|
|
26424
|
-
if (!token || token === this.getToken()) {
|
|
26425
|
-
return;
|
|
26502
|
+
if (!this.environment) {
|
|
26503
|
+
this.environment = await marketWebContextService.getEnvironmentName();
|
|
26426
26504
|
}
|
|
26427
|
-
this.
|
|
26428
|
-
|
|
26429
|
-
this.store.set(this.keys.token, token);
|
|
26430
|
-
this.fetchUserInfo();
|
|
26431
|
-
}
|
|
26432
|
-
invalidateTokenOfType(tokenSource = 'frontend') {
|
|
26433
|
-
const currentToken = this.store.get(this.keys.token);
|
|
26434
|
-
if (!currentToken) {
|
|
26435
|
-
return;
|
|
26505
|
+
if (!this.endpoint && ((_a = this.environment) === null || _a === void 0 ? void 0 : _a.indexOf('local')) === -1) {
|
|
26506
|
+
this.endpoint = await marketWebContextService.getEndpoint(this.environment, this.market);
|
|
26436
26507
|
}
|
|
26437
|
-
|
|
26438
|
-
|
|
26439
|
-
return;
|
|
26508
|
+
if (!this.endpoint) {
|
|
26509
|
+
this.endpoint = '';
|
|
26440
26510
|
}
|
|
26441
|
-
// If we have a token and the source is set then we will invalidate the user data
|
|
26442
|
-
this.clearUserData();
|
|
26443
26511
|
}
|
|
26444
|
-
|
|
26445
|
-
|
|
26446
|
-
|
|
26447
|
-
|
|
26512
|
+
async init() {
|
|
26513
|
+
this.setTranslations();
|
|
26514
|
+
await this.fetchData();
|
|
26515
|
+
window.setTimeout(() => {
|
|
26516
|
+
this.checkMenuOverflow();
|
|
26517
|
+
}, 50);
|
|
26448
26518
|
}
|
|
26449
|
-
|
|
26450
|
-
if (
|
|
26451
|
-
|
|
26452
|
-
return linkHref;
|
|
26519
|
+
setTranslations() {
|
|
26520
|
+
if (this.language && translations$5[this.language]) {
|
|
26521
|
+
this.i18n = translations$5[this.language];
|
|
26453
26522
|
}
|
|
26454
|
-
|
|
26455
|
-
|
|
26456
|
-
try {
|
|
26457
|
-
const url = new URL(this.siteUrl + '');
|
|
26458
|
-
rootUrl = url.origin;
|
|
26523
|
+
if (this.searchPlaceholder) {
|
|
26524
|
+
this.i18n.searchplaceholder = this.searchPlaceholder;
|
|
26459
26525
|
}
|
|
26460
|
-
catch (e) { }
|
|
26461
|
-
const addSlash = (rootUrl.lastIndexOf('/') !== (rootUrl.length - 1));
|
|
26462
|
-
const siteUrl = rootUrl + (addSlash ? '/' : '') + 'logout';
|
|
26463
|
-
const secondLogoutUrl = `${this.getBaseUrl()}${this.endpoints.logoutEndpoint}?authorization=${this.store.get(this.keys.token)}%26redirectionUrl=${redirectPage}`;
|
|
26464
|
-
const logoutUrl = `${siteUrl}?logoutUrl=${secondLogoutUrl}`;
|
|
26465
|
-
return logoutUrl;
|
|
26466
26526
|
}
|
|
26467
|
-
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
}
|
|
26527
|
+
onLanguageSelectorChange(e) {
|
|
26528
|
+
this.language = e.detail;
|
|
26529
|
+
window.dispatchEvent(new CustomEvent('marketweb-languagechange', { detail: this.language }));
|
|
26471
26530
|
}
|
|
26472
|
-
|
|
26473
|
-
|
|
26531
|
+
onLanguageChange() {
|
|
26532
|
+
this.setTranslations();
|
|
26533
|
+
this.changeLanguage.emit(this.language);
|
|
26534
|
+
this.fetchData();
|
|
26474
26535
|
}
|
|
26475
|
-
|
|
26476
|
-
|
|
26477
|
-
|
|
26536
|
+
onMarketChange() {
|
|
26537
|
+
this.changeMarket.emit(this.market);
|
|
26538
|
+
this.fetchData();
|
|
26539
|
+
}
|
|
26540
|
+
async fetchData() {
|
|
26541
|
+
if (this.endpoint === null || !this.market || !this.language) {
|
|
26542
|
+
// console.warn(`One or more values where not specified.\nEndpoint: ${this.endpoint}\nMarket: ${this.market}\nLanguage: ${this.language}`)
|
|
26478
26543
|
return;
|
|
26479
26544
|
}
|
|
26480
|
-
|
|
26481
|
-
const
|
|
26482
|
-
|
|
26483
|
-
|
|
26484
|
-
|
|
26485
|
-
|
|
26486
|
-
|
|
26545
|
+
this.fetchingData = true;
|
|
26546
|
+
const endpointBase = this.endpoint.lastIndexOf('/') === this.endpoint.length - 1 ? this.endpoint.substring(0, this.endpoint.length - 1) : this.endpoint;
|
|
26547
|
+
const fetchUrl = `${endpointBase}${this.endpointPath}?market=${this.market}&language=${this.language}`;
|
|
26548
|
+
const data = (await this.fetchHelper.fetchJson(fetchUrl, {
|
|
26549
|
+
mode: 'cors',
|
|
26550
|
+
}, this.cache));
|
|
26551
|
+
await this.setStateFromData(data);
|
|
26487
26552
|
}
|
|
26488
|
-
|
|
26489
|
-
if (this.
|
|
26490
|
-
return;
|
|
26553
|
+
getLanguageVersionUrl(item) {
|
|
26554
|
+
if (this.spaMode) {
|
|
26555
|
+
return null;
|
|
26491
26556
|
}
|
|
26492
|
-
|
|
26493
|
-
|
|
26557
|
+
const alternativeTag = document.querySelector(`link[rel="alternate"][hreflang="${item.twoLetterISOLanguageName}"]`);
|
|
26558
|
+
if (alternativeTag) {
|
|
26559
|
+
return alternativeTag.getAttribute('href');
|
|
26560
|
+
}
|
|
26561
|
+
const siteUrl = this.siteDefinition.url;
|
|
26562
|
+
// Add trailing slash to domain if it's missing
|
|
26563
|
+
return siteUrl + (siteUrl.lastIndexOf('/') !== siteUrl.length - 1 ? '/' : '') + item.twoLetterISOLanguageName;
|
|
26494
26564
|
}
|
|
26495
|
-
|
|
26496
|
-
|
|
26497
|
-
|
|
26565
|
+
async setStateFromData(data) {
|
|
26566
|
+
var _a, _b, _c;
|
|
26567
|
+
if (typeof data !== 'object') {
|
|
26568
|
+
console.warn('Data was not valid', data);
|
|
26498
26569
|
}
|
|
26499
|
-
|
|
26500
|
-
|
|
26501
|
-
|
|
26502
|
-
|
|
26503
|
-
|
|
26504
|
-
|
|
26505
|
-
|
|
26506
|
-
|
|
26570
|
+
// Set site definition
|
|
26571
|
+
this.siteDefinition = data.sitedefinition;
|
|
26572
|
+
if (state$4.loginManager) {
|
|
26573
|
+
state$4.loginManager.setSiteUrl(this.siteDefinition.url);
|
|
26574
|
+
}
|
|
26575
|
+
let updatedMenuItems = [];
|
|
26576
|
+
// Set navigation information
|
|
26577
|
+
if (this.siteDomainInUrls) {
|
|
26578
|
+
updatedMenuItems = data.mainMenu.menuItems.map(item => {
|
|
26579
|
+
return this.adjustMenuItemUrls(item);
|
|
26580
|
+
});
|
|
26581
|
+
}
|
|
26582
|
+
else {
|
|
26583
|
+
updatedMenuItems = data.mainMenu.menuItems;
|
|
26584
|
+
}
|
|
26585
|
+
// Create the "Home" link
|
|
26586
|
+
if ((!updatedMenuItems[0] || ((_a = updatedMenuItems[0]) === null || _a === void 0 ? void 0 : _a.name) !== this.i18n.menuHomeButton) && !this.hideHomeMenuItem) {
|
|
26587
|
+
updatedMenuItems.unshift({
|
|
26588
|
+
href: this.siteDefinition.url,
|
|
26589
|
+
name: this.i18n.menuHomeButton,
|
|
26590
|
+
id: 'homelink',
|
|
26591
|
+
open: false,
|
|
26592
|
+
selected: false,
|
|
26593
|
+
children: [],
|
|
26594
|
+
});
|
|
26595
|
+
}
|
|
26596
|
+
this.menuItems = updatedMenuItems;
|
|
26597
|
+
// Set search
|
|
26598
|
+
this.search = Object.assign(Object.assign({}, data.search), { AutocompleteEndpoint: this.AutocompleteEndpoint });
|
|
26599
|
+
// Set site selector
|
|
26600
|
+
this.siteSelector = data.siteSelectorViewModel;
|
|
26601
|
+
// Set language selector
|
|
26602
|
+
this.languageSelector = data.languageSelectorViewModel;
|
|
26603
|
+
this.setLanguageOptions();
|
|
26604
|
+
let loginDialog = data.loginViewModel;
|
|
26605
|
+
if (loginDialog && this.siteDomainInUrls) {
|
|
26606
|
+
loginDialog.loggedInLinks = loginDialog.loggedInLinks.map(item => {
|
|
26607
|
+
item.href = this.adjustHref(item.href);
|
|
26608
|
+
return item;
|
|
26609
|
+
});
|
|
26610
|
+
loginDialog.loginMenuLinks = loginDialog.loginMenuLinks.map(item => {
|
|
26611
|
+
item.href = this.adjustHref(item.href);
|
|
26612
|
+
return item;
|
|
26507
26613
|
});
|
|
26508
26614
|
}
|
|
26615
|
+
this.loginDialog = loginDialog;
|
|
26616
|
+
await this.spaModeAdjustments();
|
|
26617
|
+
this.gotData = true;
|
|
26618
|
+
this.fetchingData = true;
|
|
26619
|
+
this.homePageLink = (_c = (_b = this.siteDefinition) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : document.location.hostname;
|
|
26620
|
+
window.setTimeout(() => {
|
|
26621
|
+
this.checkMenuOverflow();
|
|
26622
|
+
}, 100);
|
|
26509
26623
|
}
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
if (
|
|
26513
|
-
|
|
26624
|
+
adjustMenuItemUrls(item) {
|
|
26625
|
+
item.href = this.adjustHref(item.href);
|
|
26626
|
+
if (item.children && item.children.length > 0) {
|
|
26627
|
+
let adjustedItems = item.children.map(item => {
|
|
26628
|
+
return this.adjustMenuItemUrls(item);
|
|
26629
|
+
});
|
|
26630
|
+
item.children = adjustedItems;
|
|
26631
|
+
}
|
|
26632
|
+
return item;
|
|
26633
|
+
}
|
|
26634
|
+
adjustHref(href) {
|
|
26635
|
+
if (href.indexOf('http') === 0) {
|
|
26636
|
+
return href;
|
|
26637
|
+
}
|
|
26638
|
+
const domainUrl = this.siteDefinition.url.lastIndexOf('/') === this.siteDefinition.url.length - 1
|
|
26639
|
+
? this.siteDefinition.url.substring(0, this.siteDefinition.url.length - 1)
|
|
26640
|
+
: this.siteDefinition.url;
|
|
26641
|
+
href = domainUrl + href;
|
|
26642
|
+
return href;
|
|
26643
|
+
}
|
|
26644
|
+
setLanguageOptions() {
|
|
26645
|
+
var _a;
|
|
26646
|
+
if (!this.languageSelector || !this.languageSelector.languages) {
|
|
26514
26647
|
return;
|
|
26515
26648
|
}
|
|
26516
|
-
const
|
|
26517
|
-
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
};
|
|
26524
|
-
|
|
26525
|
-
|
|
26526
|
-
|
|
26527
|
-
|
|
26528
|
-
|
|
26529
|
-
|
|
26530
|
-
if (!userInfo) {
|
|
26531
|
-
console.error('Userdata is not valid');
|
|
26532
|
-
this.clearUserData();
|
|
26533
|
-
return;
|
|
26649
|
+
const hrefLangsTags = (_a = Array.prototype.slice.call(document.querySelectorAll('link[rel="alternate"][hreflang]'))) !== null && _a !== void 0 ? _a : [];
|
|
26650
|
+
const hrefLangs = hrefLangsTags.map(tag => {
|
|
26651
|
+
let hrefLangValue = tag.getAttribute('hreflang');
|
|
26652
|
+
if (hrefLangValue.indexOf('en-') !== -1 || hrefLangValue.indexOf('en_') !== -1) {
|
|
26653
|
+
hrefLangValue = hrefLangValue.substring(0, 2);
|
|
26654
|
+
}
|
|
26655
|
+
return hrefLangValue;
|
|
26656
|
+
});
|
|
26657
|
+
let languageOptions = []; // Reset language options
|
|
26658
|
+
this.languageSelector.languages.map((languageOption) => {
|
|
26659
|
+
// In case there are language links present on the page we only show languages that have those tags
|
|
26660
|
+
if (hrefLangs && hrefLangs.length > 0) {
|
|
26661
|
+
if (hrefLangs.includes(languageOption.twoLetterISOLanguageName)) {
|
|
26662
|
+
languageOptions.push(languageOption);
|
|
26534
26663
|
}
|
|
26535
|
-
this.store.set(this.keys.user, userInfo);
|
|
26536
|
-
// 10 Min early expire
|
|
26537
|
-
this.store.set(this.keys.accessToken, accessToken);
|
|
26538
|
-
this.store.set(this.keys.expire, expiryTime);
|
|
26539
|
-
this.store.set(this.keys.expireDate, new Date(Math.floor(parseInt(expiryTime, 10) * 1000)));
|
|
26540
|
-
this.loginStateChange();
|
|
26541
26664
|
}
|
|
26542
|
-
|
|
26543
|
-
|
|
26665
|
+
else {
|
|
26666
|
+
languageOptions.push(languageOption);
|
|
26544
26667
|
}
|
|
26668
|
+
});
|
|
26669
|
+
this.languageOptions = languageOptions; // Replace existing language options so we don't trigger a event change on every push.
|
|
26670
|
+
}
|
|
26671
|
+
async spaModeAdjustments() {
|
|
26672
|
+
if (!this.spaMode) {
|
|
26673
|
+
return;
|
|
26545
26674
|
}
|
|
26546
|
-
|
|
26547
|
-
console.error('Unable to get user information. Clearing login state');
|
|
26548
|
-
this.clearUserData();
|
|
26549
|
-
}
|
|
26675
|
+
return;
|
|
26550
26676
|
}
|
|
26551
|
-
|
|
26552
|
-
|
|
26553
|
-
|
|
26554
|
-
|
|
26555
|
-
|
|
26556
|
-
this.store.remove(this.keys.expire);
|
|
26557
|
-
this.store.remove(this.keys.expireDate);
|
|
26677
|
+
onLoginStateChange(e) {
|
|
26678
|
+
var _a, _b, _c;
|
|
26679
|
+
if (((_a = e.detail) === null || _a === void 0 ? void 0 : _a.loggedIn) && ((_b = e.detail) === null || _b === void 0 ? void 0 : _b.token)) {
|
|
26680
|
+
this.loggedIn = ((_c = e.detail) === null || _c === void 0 ? void 0 : _c.loggedIn) === true;
|
|
26681
|
+
}
|
|
26558
26682
|
}
|
|
26559
|
-
|
|
26560
|
-
return
|
|
26683
|
+
promotedItemId(item) {
|
|
26684
|
+
return 'promo-' + item.linkText.replace(/[^A-Za-z0-9.\\\/]/gim, '');
|
|
26561
26685
|
}
|
|
26562
|
-
|
|
26563
|
-
|
|
26686
|
+
handleResize() {
|
|
26687
|
+
requestAnimationFrame(() => {
|
|
26688
|
+
this.checkMenuOverflow();
|
|
26689
|
+
});
|
|
26564
26690
|
}
|
|
26565
|
-
|
|
26566
|
-
this.
|
|
26567
|
-
|
|
26568
|
-
|
|
26569
|
-
if (typeof token === "string" && token) {
|
|
26570
|
-
this.store.set(this.keys.token, token);
|
|
26691
|
+
checkMenuOverflow() {
|
|
26692
|
+
const row = this.hostElement.querySelectorAll('.siteheader-row')[1];
|
|
26693
|
+
if (!row) {
|
|
26694
|
+
return;
|
|
26571
26695
|
}
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
loginStateChange() {
|
|
26575
|
-
if (!this.eventTarget) {
|
|
26696
|
+
const firstMenuLevel = row.querySelector('pn-mainnav-level');
|
|
26697
|
+
if (!firstMenuLevel) {
|
|
26576
26698
|
return;
|
|
26577
26699
|
}
|
|
26578
|
-
|
|
26579
|
-
|
|
26580
|
-
|
|
26581
|
-
}
|
|
26582
|
-
getBaseUrl() {
|
|
26583
|
-
const atEnvironments = ["localhost", "integration.", 'local.'];
|
|
26584
|
-
let useATEnv = atEnvironments.filter(x => this.endpoint.indexOf(x) !== -1).length > 0;
|
|
26585
|
-
if (window.location.hostname.indexOf('atportal.postnord.com') === 0) {
|
|
26586
|
-
useATEnv = true;
|
|
26700
|
+
const parent = firstMenuLevel.parentElement;
|
|
26701
|
+
if (parent.tagName.toLocaleLowerCase() !== 'nav') {
|
|
26702
|
+
return;
|
|
26587
26703
|
}
|
|
26588
|
-
|
|
26589
|
-
|
|
26704
|
+
const parentWidth = parent.scrollWidth;
|
|
26705
|
+
const elmWidth = firstMenuLevel.clientWidth;
|
|
26706
|
+
const isOverFlowed = parentWidth < elmWidth;
|
|
26707
|
+
if (isOverFlowed && this.minimizeSearch === false) {
|
|
26708
|
+
this.minimizeSearch = true;
|
|
26590
26709
|
}
|
|
26591
|
-
return this.baseUrls.prod;
|
|
26592
26710
|
}
|
|
26593
|
-
|
|
26594
|
-
if (!
|
|
26595
|
-
return
|
|
26711
|
+
adjustSiteSelectorUrl(href) {
|
|
26712
|
+
if (!this.loggedIn) {
|
|
26713
|
+
return href;
|
|
26596
26714
|
}
|
|
26597
|
-
|
|
26598
|
-
|
|
26599
|
-
|
|
26600
|
-
|
|
26601
|
-
|
|
26602
|
-
|
|
26715
|
+
const loginDomains = ['portal.postnord.com'];
|
|
26716
|
+
const matchedHref = loginDomains.filter(domain => {
|
|
26717
|
+
return href.indexOf(domain) !== -1;
|
|
26718
|
+
});
|
|
26719
|
+
if (matchedHref.length === 0) {
|
|
26720
|
+
return href;
|
|
26721
|
+
}
|
|
26722
|
+
if (state$4.loginManager) {
|
|
26723
|
+
return state$4.loginManager.getLoginUrl(href);
|
|
26724
|
+
}
|
|
26725
|
+
return href;
|
|
26603
26726
|
}
|
|
26604
|
-
|
|
26605
|
-
|
|
26606
|
-
|
|
26607
|
-
|
|
26608
|
-
|
|
26609
|
-
|
|
26610
|
-
|
|
26611
|
-
|
|
26612
|
-
|
|
26613
|
-
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
"searchplaceholder": "Search",
|
|
26620
|
-
"searchbuttontext": "Search",
|
|
26621
|
-
"menuHomeButton": "Home",
|
|
26622
|
-
"menuGoBackButton": "Go back",
|
|
26623
|
-
"mainMenuButton": "Menu",
|
|
26624
|
-
"menuStartButton": "Start",
|
|
26625
|
-
"profileSelectionFlyoutHeading": "Logged in as",
|
|
26626
|
-
},
|
|
26627
|
-
'da': {
|
|
26628
|
-
"searchlabel": "Søg",
|
|
26629
|
-
"searchplaceholder": "Søg",
|
|
26630
|
-
"searchbuttontext": "Søg",
|
|
26631
|
-
"menuHomeButton": "Hjem",
|
|
26632
|
-
"menuGoBackButton": "Gå tilbage",
|
|
26633
|
-
"mainMenuButton": "Menu",
|
|
26634
|
-
"menuStartButton": "Start",
|
|
26635
|
-
"profileSelectionFlyoutHeading": "Logget ind som",
|
|
26636
|
-
},
|
|
26637
|
-
'no': {
|
|
26638
|
-
"searchlabel": "Søk",
|
|
26639
|
-
"searchplaceholder": "Søk",
|
|
26640
|
-
"searchbuttontext": "Søk",
|
|
26641
|
-
"menuHomeButton": "Hjem",
|
|
26642
|
-
"menuGoBackButton": "Gå tilbake",
|
|
26643
|
-
"mainMenuButton": "Meny",
|
|
26644
|
-
"menuStartButton": "Start",
|
|
26645
|
-
"profileSelectionFlyoutHeading": "Logget på som",
|
|
26646
|
-
},
|
|
26647
|
-
'fi': {
|
|
26648
|
-
"searchlabel": "Hae",
|
|
26649
|
-
"searchplaceholder": "Hae",
|
|
26650
|
-
"searchbuttontext": "Hae",
|
|
26651
|
-
"menuHomeButton": "Koti",
|
|
26652
|
-
"menuGoBackButton": "Mene takaisin",
|
|
26653
|
-
"mainMenuButton": "Valikko",
|
|
26654
|
-
"menuStartButton": "Alkaa",
|
|
26655
|
-
"profileSelectionFlyoutHeading": "Kirjautunut sisään nimellä",
|
|
26656
|
-
},
|
|
26657
|
-
'de': {
|
|
26658
|
-
"searchlabel": "Suche",
|
|
26659
|
-
"searchplaceholder": "Wonach suchen Sie?",
|
|
26660
|
-
"searchbuttontext": "Suche",
|
|
26661
|
-
"menuHomeButton": "Start",
|
|
26662
|
-
"menuGoBackButton": "Geh zurück",
|
|
26663
|
-
"mainMenuButton": "Menü",
|
|
26664
|
-
"menuStartButton": "Start",
|
|
26665
|
-
"profileSelectionFlyoutHeading": "Eingeloggt als",
|
|
26727
|
+
render() {
|
|
26728
|
+
var _a, _b, _c, _d, _e, _f;
|
|
26729
|
+
return (h(Host, { language: this.language, market: this.market, environment: this.environment }, h("header", null, h("div", { class: "siteheader-row" }, h("div", { class: "siteheader-topleft" }, h("slot", { name: "topleft" }), this.gotData && this.siteSelector && !this.hideSiteSelector && (h("pn-site-selector", { language: this.language, buttontext: (_b = (_a = this.siteSelector) === null || _a === void 0 ? void 0 : _a.currentSiteTitle) !== null && _b !== void 0 ? _b : 'postnord' }, this.gotData && ((_c = this.siteSelector) === null || _c === void 0 ? void 0 : _c.currentSiteTitle) && (h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle + ' ', description: this.siteSelector.currentSiteDescription })), this.gotData &&
|
|
26730
|
+
((_d = this.siteSelector) === null || _d === void 0 ? void 0 : _d.siteSelections) &&
|
|
26731
|
+
this.siteSelector.siteSelections.map(site => (h("pn-site-selector-item", { heading: site.linkText + ' ', description: site.linkDescription, url: this.adjustSiteSelectorUrl(site.href), newwindow: site.openInNewWindow })))))), h("div", { class: "siteheader-logocontainer" }, h("a", { href: this.homePageLink, title: "Home", class: "siteheader-logolink" }, h("slot", { name: "logo" }, h("svg", { class: "siteheader-logo", xmlns: "http://www.w3.org/2000/svg", width: "12.7rem", height: "2.4rem", viewBox: "0 0 141.73 26.65" }, h("path", { d: "M108.84,13.35c0,6.34-5.17,9-10,9S89,19.76,89,13.63c0-6.28,5.08-9,10-9S108.84,7.25,108.84,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.29,3.29,0,0,0,3.42,3.41A3.24,3.24,0,0,0,102.28,13.54Zm-83,0c0,4.83-3.32,8.82-8.49,8.82a6.54,6.54,0,0,1-4.65-1.57v5.86H0V5.16H6.17V6.8a6.43,6.43,0,0,1,5.11-2.18C16.41,4.62,19.31,8.58,19.31,13.54Zm-6.53,0A3.27,3.27,0,0,0,9.4,10,3.28,3.28,0,0,0,6,13.54,3.29,3.29,0,0,0,9.4,16.95,3.24,3.24,0,0,0,12.78,13.54Zm103.69,0.27c0-2.54,1.54-3.32,3.6-3.32a6.56,6.56,0,0,1,2.08.3L122.3,5.1a3.92,3.92,0,0,0-1.45-.18c-3.45,0-4.38,2.18-4.38,2.18V5.16H110.3V21.84h6.17v-8ZM141.73,0V21.84h-6.16V20.21a6.43,6.43,0,0,1-5.11,2.18c-5.14,0-8-4-8-8.91s3.32-8.82,8.49-8.82a6.54,6.54,0,0,1,4.65,1.57v-5Zm-6,13.48a3.28,3.28,0,0,0-3.41-3.41A3.24,3.24,0,0,0,129,13.47,3.4,3.4,0,1,0,135.75,13.47ZM81.35,4.62c-3.6,0-4.9,2.18-4.9,2.18V5.16H70.29V21.84h6.16V13.29c0-2.11.79-3.08,2.69-3.08s2.18,1.57,2.18,3.57v8.07h6.22V11.6C87.55,7,85.34,4.62,81.35,4.62ZM64.07,1.42H57.9V21.84h6.16V10.36H67l2.81-5.2H64.07V1.42ZM50.26,11.21c-2-.3-2.87-0.3-2.87-1.09s0.81-.94,2.42-0.94a16.15,16.15,0,0,1,5.11.91L56,5.41a24.56,24.56,0,0,0-6.13-.75c-5.89,0-9,2.27-9,5.89,0,2.81,1.66,4.47,6.53,5.11,2.06,0.27,2.81.39,2.81,1.15s-0.82,1-2.24,1a16.67,16.67,0,0,1-6-1.3L40.77,21.3a22.14,22.14,0,0,0,6.68,1c6.35,0,9.28-2.24,9.28-5.89C56.72,13.54,55.15,12,50.26,11.21ZM40.19,13.35c0,6.34-5.17,9-10,9s-9.82-2.6-9.82-8.73c0-6.28,5.08-9,10-9S40.19,7.25,40.19,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.28,3.28,0,0,0,3.41,3.41A3.24,3.24,0,0,0,33.63,13.54Z", fill: "#00A0D6", transform: "translate(0 0)" }))))), h("div", { class: "siteheader-topright" }, h("slot", { name: "toprightstart" }), this.gotData && this.loginDialog && !this.hideLogin && (h("pn-marketweb-siteheader-login", { token: this.userToken, siteUrl: this.siteDefinition.url, fullname: this.userFullname, loggedin: this.userLoggedin, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n, showProfileSelection: this.showProfileSelection, "check-user-logged-in-state-interval": this.checkUserLoggedInStateInterval })), this.gotData && this.languageOptions && this.languageOptions.length && !this.hideLanguageSelector && (h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => (h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))))), h("slot", { name: "toprightend" }), h("div", { class: "siteheader-menu-top-search" }, h("pn-marketweb-siteheader-search", { language: this.language, siteid: this.siteid, search: this.search, "hide-search": this.hideSearch, i18n: this.i18n, icononly: false })))), h("slot", { name: "siteheader-menu-top-button" }), h("div", { class: "siteheader-row" }, h("div", { class: "siteheader-menu" }, this.gotData && this.menuItems && (h("pn-mainnav", { market: this.market, language: this.language, onMenuOpenChange: e => {
|
|
26732
|
+
document.body.setAttribute('data-siteheader-menuopen', e.detail + '');
|
|
26733
|
+
} }, h("pn-mainnav-level", null, h("pn-mainnav-list", null, this.menuItems.map(item => {
|
|
26734
|
+
var _a, _b;
|
|
26735
|
+
return (h("pn-mainnav-link", { name: item.name, href: item.href, itemid: item.id, target: (_a = item.linkTarget) !== null && _a !== void 0 ? _a : '_self', linkid: item.trackingId }, ((item.promotedMenuItems && item.promotedMenuItems.length > 0) || (item.children && item.children.length > 0)) && (h("pn-mainnav-level", { label: item.name }, item.children.length > 0 && (h("pn-mainnav-list", { heading: (_b = item.navigationHeading) !== null && _b !== void 0 ? _b : '' }, item.children.map(childitem => {
|
|
26736
|
+
var _a;
|
|
26737
|
+
return (h("pn-mainnav-link", { name: childitem.name, href: childitem.href, target: (_a = childitem.linkTarget) !== null && _a !== void 0 ? _a : '_self', linkid: childitem.trackingId }));
|
|
26738
|
+
}))), item.promotedMenuItems && item.promotedMenuItems.length > 0 && (h("pn-mainnav-list", { heading: item.promotedMenuItemsHeader }, item.promotedMenuItems.map(childitem => (h("pn-mainnav-link", { href: childitem.href, name: childitem.linkText, target: childitem.openInNewWindow ? '_blank' : '_self', linkid: this.promotedItemId(childitem) + item.id })))))))));
|
|
26739
|
+
})), h("div", { slot: "footer", class: "siteheader-menu-footer" }, h("slot", { name: "menu-footer-cta" }), this.gotData && this.loginDialog && !this.hideLogin && (h("pn-marketweb-siteheader-login", { emitEvents: false, siteUrl: this.siteDefinition.url, loginDialog: this.loginDialog, endpoint: this.endpoint, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n, showProfileSelection: this.showProfileSelection })), this.gotData && this.languageOptions && this.languageOptions.length && !this.hideLanguageSelector && (h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => (h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))))), !this.hideSiteSelector && (h("pn-site-selector", { language: this.language }, this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle) && (h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription })), this.gotData &&
|
|
26740
|
+
((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections) &&
|
|
26741
|
+
this.siteSelector.siteSelections.map(site => (h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))))), h("div", { slot: "top", class: "siteheader-menu-top" }, h("pn-marketweb-siteheader-search", { language: this.language, siteid: this.siteid, search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), h("pn-marketweb-siteheader-search", { language: this.language, siteid: this.siteid, primary: true, search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n }), h("slot", { name: "header-bottom-button" })))));
|
|
26666
26742
|
}
|
|
26743
|
+
get hostElement() { return this; }
|
|
26744
|
+
static get watchers() { return {
|
|
26745
|
+
"language": ["onLanguageChange"],
|
|
26746
|
+
"market": ["onMarketChange"]
|
|
26747
|
+
}; }
|
|
26748
|
+
static get style() { return pnMarketwebSiteheaderCss; }
|
|
26667
26749
|
};
|
|
26668
26750
|
|
|
26669
|
-
const pnMarketwebSiteheaderCss = "body[data-siteheader-menuopen=true]{max-height:100vh;overflow:hidden}@media screen and (min-width: 60em){body[data-siteheader-menuopen=true]{max-height:initial;overflow:initial}}pn-marketweb-siteheader{display:block;background:#FFFFFF}pn-marketweb-siteheader header{position:relative;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}@media screen and (min-width: 48em){pn-marketweb-siteheader header{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:initial;justify-content:initial}}pn-marketweb-siteheader .siteheader-row{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;-ms-flex-align:center;align-items:center;width:100%;padding:0 1.6rem;min-height:2em}pn-marketweb-siteheader .siteheader-row:not(:last-child){border-bottom:0.1rem solid #F3F2F2}@media screen and (min-width: 48em){pn-marketweb-siteheader .siteheader-row{-ms-flex-pack:justify;justify-content:space-between;min-height:3.2em}}pn-marketweb-siteheader .siteheader-topright{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}pn-marketweb-siteheader .siteheader-logocontainer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;min-height:3em;background:#FFFFFF;z-index:1}@media screen and (min-width: 48em){pn-marketweb-siteheader .siteheader-logocontainer{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}}pn-marketweb-siteheader .siteheader-logolink{height:100%;max-height:6.4rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}pn-marketweb-siteheader .siteheader-logolink:hover,pn-marketweb-siteheader .siteheader-logolink:focus,pn-marketweb-siteheader .siteheader-logolink:active{-webkit-box-shadow:none;box-shadow:none}pn-marketweb-siteheader .siteheader-row>pn-marketweb-siteheader-search{display:none}@media screen and (min-width: 48em){pn-marketweb-siteheader .siteheader-row>pn-marketweb-siteheader-search{display:block;max-width:30rem;min-width:23.3rem;width:100%}}pn-marketweb-siteheader pn-spinner{display:none}pn-marketweb-siteheader pn-nav-dropdown:not(.hydrated) .nav-dropdown-content-container{display:none}.siteheader-topleft pn-site-selector{padding:1rem 0;display:none}@media screen and (min-width: 48em){.siteheader-topleft pn-site-selector{display:block}}@media screen and (min-width: 60em){.siteheader-topleft pn-site-selector{margin-left:1.3rem}}.siteheader-topleft pn-site-selector .pn-nav-dropdown-label,.siteheader-topleft pn-site-selector:is(a){font-size:0}.siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon,.siteheader-topleft pn-site-selector:is(a) pn-icon{font-size:initial;margin-left:0}@media screen and (min-width: 60em){.siteheader-topleft pn-site-selector .pn-nav-dropdown-label,.siteheader-topleft pn-site-selector:is(a){font-size:initial}.siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon,.siteheader-topleft pn-site-selector:is(a) pn-icon{margin-left:0.4em}}@media screen and (min-width: 60em){.siteheader-topright{margin-right:1.6rem}}.siteheader-topright>pn-language-selector,.siteheader-topright>pn-marketweb-siteheader-login,.siteheader-topright>a{padding:1rem 0;display:none;-ms-flex-item-align:center;align-self:center}@media screen and (min-width: 48em){.siteheader-topright>pn-language-selector,.siteheader-topright>pn-marketweb-siteheader-login,.siteheader-topright>a{display:block;margin-left:1rem}}@media screen and (min-width: 60em){.siteheader-topright>pn-language-selector,.siteheader-topright>pn-marketweb-siteheader-login,.siteheader-topright>a{margin-left:1.6rem}}.siteheader-topright>pn-language-selector .pn-nav-dropdown-label,.siteheader-topright>pn-language-selector:is(a),.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label,.siteheader-topright>pn-marketweb-siteheader-login:is(a),.siteheader-topright>a .pn-nav-dropdown-label,.siteheader-topright>a:is(a){font-size:0}.siteheader-topright>pn-language-selector .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-language-selector:is(a) pn-icon,.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-marketweb-siteheader-login:is(a) pn-icon,.siteheader-topright>a .pn-nav-dropdown-label pn-icon,.siteheader-topright>a:is(a) pn-icon{font-size:initial;margin-left:0}@media screen and (min-width: 60em){.siteheader-topright>pn-language-selector .pn-nav-dropdown-label,.siteheader-topright>pn-language-selector:is(a),.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label,.siteheader-topright>pn-marketweb-siteheader-login:is(a),.siteheader-topright>a .pn-nav-dropdown-label,.siteheader-topright>a:is(a){font-size:initial}.siteheader-topright>pn-language-selector .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-language-selector:is(a) pn-icon,.siteheader-topright>pn-marketweb-siteheader-login .pn-nav-dropdown-label pn-icon,.siteheader-topright>pn-marketweb-siteheader-login:is(a) pn-icon,.siteheader-topright>a .pn-nav-dropdown-label pn-icon,.siteheader-topright>a:is(a) pn-icon{margin-left:0.4em}}.siteheader-menu{max-width:100%;width:100%;overflow:visible;overflow-x:clip}@media screen and (min-width: 60em){.siteheader-menu{margin-top:auto;overflow:visible}}.siteheader-menu pn-mainnav-link a[target]::after{content:none}.siteheader-menu pn-marketweb-siteheader-search{padding:0.3rem 1.6rem;width:100%}.siteheader-menu [slot=top] pn-search-field{width:100%}.siteheader-menu-footer{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.siteheader-menu-footer>*{margin:1.6rem}header[data-header-theme=dotcom]>pn-marketweb-siteheader pn-button a{text-decoration:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader pn-button a:hover{text-decoration:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header{background-color:#0D234B;-webkit-box-shadow:none;box-shadow:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-row:not(:last-child){border-bottom:0.1rem solid #0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft button.pn-nav-dropdown-label:hover{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft button.pn-nav-dropdown-label:active{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topleft button.pn-nav-dropdown-label:focus{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-logocontainer{background-color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-logocontainer svg.siteheader-logo>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright .siteheader-logindialog svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright pn-language-selector pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button:hover{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button:active{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright button:focus{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright [slot=toprightend]{-ms-flex-item-align:center;align-self:center;margin-left:1rem}@media screen and (max-width: 48em){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-topright [slot=toprightend]{display:none}}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu .mainnav-toggle button{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu .first-level_icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input{background-color:#FFFFFF;color:#0D234B;border:0.1rem solid #FFFFFF;padding:0.65rem 1.5rem}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:hover{border-color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-webkit-input-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-moz-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:-ms-input-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-ms-input-placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::placeholder{color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav{background-color:#0D234B}@media screen and (min-width: 48em){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav{top:6.4em}}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav a{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level [slot=top].siteheader-menu-top pn-marketweb-siteheader-search{padding-bottom:0.5rem;background-color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level [slot=top].siteheader-menu-top pn-marketweb-siteheader-search .button-container{border-top:1px solid #FFFFFF;border-bottom:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-top-right-radius:50%;border-bottom-right-radius:50%}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level [slot=top].siteheader-menu-top pn-marketweb-siteheader-search .button-container button.clear{border:2px solid #FFFFFF;border-radius:50%;padding:0.5rem}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level .mainnav-level-header .secondlevel-backbtn pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-level[data-level=\"2\"] .mainnav-level-header pn-mainnav-link>a:hover{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link button,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link a{background-color:#0D234B;border-bottom:0.1rem solid rgba(0, 93, 146, 0.5)}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link button:hover,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link a:hover{text-decoration:none}@media screen and (min-width: 1024px){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link button,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level pn-mainnav-list>pn-mainnav-link a{border-bottom:none}}@media screen and (max-width: 1023px){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link:first-child{border-top:0.1rem solid rgba(0, 93, 146, 0.5)}}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link a,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link button{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link a:focus,header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level[data-level=\"1\"] pn-mainnav-list>pn-mainnav-link button:focus{outline:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level:not([data-level=\"1\"]){background-color:#0D234B}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level:not([data-level=\"1\"]) pn-mainnav-list{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header nav.mainnav pn-mainnav-level:not([data-level=\"1\"]) pn-mainnav-list pn-mainnav-link>a:hover{background-color:#00A0D6;text-decoration:none}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header [data-level=\"1\"] pn-mainnav-link pn-icon.first-level_arrow svg>path{fill:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button{color:#FFFFFF}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button:hover{background-color:#005D92}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button:active{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button:focus{background-color:#00A0D6}header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer button svg>path{fill:#FFFFFF}@media screen and (min-width: 48em){header[data-header-theme=dotcom]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:none}}.siteheader-menu-top-search{display:none}header[data-header-theme=tpl]>pn-marketweb-siteheader pn-button a{text-decoration:none}header[data-header-theme=tpl]>pn-marketweb-siteheader pn-button a:hover{text-decoration:none}@media screen and (max-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button]{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a{color:#0D234B;font-weight:500;font-size:1.6rem;padding:0.8rem 2.4rem}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a .pn-button-bg{background-color:#FBC2C1}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a .pn-button-content pn-icon svg>path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a:hover{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a:hover .pn-button-bg{background-color:#0D234B;-webkit-transition:backgrond-color linear 1s;transition:backgrond-color linear 1s}header[data-header-theme=tpl]>pn-marketweb-siteheader [slot=header-bottom-button] a:hover .pn-button-content pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-row:not(:last-child){background-color:#0D234B;border-bottom:0.1rem solid #0D234B}@media screen and (max-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-row:last-child{background-color:#0D234B}}@media screen and (min-width: 60em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header [data-level=\"1\"] pn-mainnav-link>button::before,header[data-header-theme=tpl]>pn-marketweb-siteheader>header [data-level=\"1\"] pn-mainnav-link>a::before{background-color:#FBC2C1}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button]{background:#0D234B;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media screen and (min-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button]{display:none}}@media screen and (max-width: 415px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button]{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a{color:#0D234B;font-weight:500}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a .pn-button-bg{background-color:#FBC2C1}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a .pn-button-content pn-icon svg>path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a:hover{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a:hover .pn-button-bg{background-color:#0D234B;-webkit-transition:backgrond-color linear 1s;transition:backgrond-color linear 1s}header[data-header-theme=tpl]>pn-marketweb-siteheader>header [slot=siteheader-menu-top-button] a:hover .pn-button-content pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header a{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header pn-mainnav-link button{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header pn-mainnav-link button pn-icon svg path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topleft pn-site-selector .pn-nav-dropdown-label:hover{background:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header button.pn-nav-dropdown-label:hover{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header button.pn-nav-dropdown-label:active{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header button.pn-nav-dropdown-label:focus{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-logocontainer{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-logocontainer svg.siteheader-logo>path{fill:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright{margin-right:0;-ms-flex-item-align:center;align-self:center;margin-left:1rem}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright .siteheader-logindialog svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright pn-language-selector pn-icon svg>path{fill:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button:hover{background-color:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button:active,header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-topright button:focus{background-color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search{display:inline-block;margin-top:auto;margin-bottom:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search pn-search-field{-ms-flex-pack:end;justify-content:flex-end;min-width:inherit}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form{margin-right:0}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container{position:absolute;width:100%}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input{cursor:pointer;background-color:transparent;color:transparent;border:none;position:relative;z-index:3;border-radius:0}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::-webkit-input-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::-moz-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input:-ms-input-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::-ms-input-placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search form:not(:focus-within) .input-container input::placeholder{color:transparent}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .input-container:focus-within{margin-left:2rem}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .input-container:focus-within input{background-color:#FFFFFF;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .siteheader-search pn-button button{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:1rem 1.9rem}header[data-header-theme=tpl]>pn-marketweb-siteheader>header div.siteheader-menu-top-search .siteheader-search pn-button button .pn-button-bg{background:#0D234B}@media screen and (min-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-row:last-child pn-marketweb-siteheader-search{display:none}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input{background-color:#FFFFFF;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:hover{border-color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-webkit-input-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-moz-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input:-ms-input-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::-ms-input-placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-search form pn-search-field input::placeholder{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:none}@media screen and (max-width: 415px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:block;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] .pn-button-bg{background-color:#FBC2C1}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] .pn-button-content{font-weight:500;color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] .pn-button-content pn-icon svg>path{fill:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] a:hover{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] a:hover .pn-button-bg{background-color:#0D234B;-webkit-transition:backgrond-color linear 1s;transition:backgrond-color linear 1s}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta] a:hover .pn-button-content pn-icon svg>path{fill:#FFFFFF}}@media screen and (max-width: 1024px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:focus,header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:hover{color:#FFFFFF;background-color:#00A0D6;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #00A0D6;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:focus svg>path,header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer pn-nav-dropdown button:hover svg>path{fill:#FFFFFF}}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button{color:#FFFFFF}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button:hover{background-color:#005D92}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button:active{background-color:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button:focus{background-color:#00A0D6}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button svg>path{fill:#FFFFFF}@media screen and (max-width: 1024px){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button{color:#0D234B}header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer button pn-icon svg>path{fill:#0D234B}}@media screen and (min-width: 48em){header[data-header-theme=tpl]>pn-marketweb-siteheader>header .siteheader-menu-footer [slot=menu-footer-cta]{display:none}}";
|
|
26670
|
-
|
|
26671
|
-
|
|
26672
|
-
|
|
26673
|
-
|
|
26674
|
-
this.
|
|
26675
|
-
this.
|
|
26676
|
-
this.
|
|
26677
|
-
|
|
26678
|
-
|
|
26679
|
-
this.fetchHelper = new FetchHelper('siteheader');
|
|
26680
|
-
this.market = null;
|
|
26681
|
-
this.language = null;
|
|
26682
|
-
this.siteid = null;
|
|
26683
|
-
this.environment = null;
|
|
26684
|
-
this.userToken = '';
|
|
26685
|
-
this.userFullname = '';
|
|
26686
|
-
this.userLoggedin = false;
|
|
26687
|
-
this.endpoint = null;
|
|
26688
|
-
this.hideSiteSelector = false;
|
|
26689
|
-
this.hideHomeMenuItem = false;
|
|
26690
|
-
this.hideLanguageSelector = false;
|
|
26691
|
-
this.hideSearch = false;
|
|
26692
|
-
this.hideLogin = false;
|
|
26693
|
-
this.showProfileSelection = false;
|
|
26694
|
-
this.siteDomainInUrls = false;
|
|
26695
|
-
this.AutocompleteEndpoint = '';
|
|
26696
|
-
this.sessionForward = false;
|
|
26697
|
-
this.cache = false;
|
|
26698
|
-
this.searchPlaceholder = '';
|
|
26699
|
-
this.spaMode = false;
|
|
26700
|
-
this.i18n = {
|
|
26701
|
-
searchlabel: '',
|
|
26702
|
-
searchplaceholder: '',
|
|
26703
|
-
searchbuttontext: '',
|
|
26704
|
-
menuHomeButton: '',
|
|
26705
|
-
menuGoBackButton: '',
|
|
26706
|
-
mainMenuButton: '',
|
|
26707
|
-
menuStartButton: '',
|
|
26708
|
-
profileSelectionFlyoutHeading: '',
|
|
26751
|
+
class MarketWebLoginManager {
|
|
26752
|
+
constructor(options = null) {
|
|
26753
|
+
var _a;
|
|
26754
|
+
this.eventTarget = (window !== null && window !== void 0 ? window : document === null || document === void 0 ? void 0 : document.body);
|
|
26755
|
+
this.endpoint = "";
|
|
26756
|
+
this.storagePrefix = "pn-user";
|
|
26757
|
+
this.checkUserLoggedInStateInterval = 0;
|
|
26758
|
+
this.baseUrls = {
|
|
26759
|
+
at: 'https://atportal.postnord.com/api/unified-login/backend',
|
|
26760
|
+
prod: 'https://portal.postnord.com/api/unified-login/backend',
|
|
26709
26761
|
};
|
|
26710
|
-
this.
|
|
26711
|
-
|
|
26712
|
-
|
|
26713
|
-
this.
|
|
26714
|
-
|
|
26715
|
-
|
|
26716
|
-
|
|
26717
|
-
|
|
26718
|
-
|
|
26719
|
-
this.
|
|
26720
|
-
|
|
26721
|
-
|
|
26722
|
-
|
|
26762
|
+
this.events = {
|
|
26763
|
+
loginstatechange: "loginstatechange"
|
|
26764
|
+
};
|
|
26765
|
+
this.endpoints = {
|
|
26766
|
+
authorizationEndpoint: `/authorization`,
|
|
26767
|
+
tokenExchangeEndpoint: `/token`,
|
|
26768
|
+
userInfoEndpoint: `/user`,
|
|
26769
|
+
logoutEndpoint: `/logout`,
|
|
26770
|
+
};
|
|
26771
|
+
this.keys = {
|
|
26772
|
+
tokensource: 'tokensource',
|
|
26773
|
+
token: 'token',
|
|
26774
|
+
accessToken: 'accessToken',
|
|
26775
|
+
user: 'user',
|
|
26776
|
+
expire: 'expire',
|
|
26777
|
+
expireDate: 'expiredate'
|
|
26778
|
+
};
|
|
26779
|
+
this.overridetokenValue = 'overridetokenValue';
|
|
26780
|
+
this.siteUrl = window.location.origin;
|
|
26781
|
+
this.abortSignalForLoginCheck = null;
|
|
26782
|
+
this.loginCheckInProgress = false;
|
|
26783
|
+
this.loginCheckTimer = null;
|
|
26784
|
+
this.store = {
|
|
26785
|
+
get: (key) => {
|
|
26786
|
+
const value = window.sessionStorage.getItem(`${this.storagePrefix}-${key}`);
|
|
26787
|
+
if (!value) {
|
|
26788
|
+
return value;
|
|
26789
|
+
}
|
|
26790
|
+
if (value.indexOf('{') === 0) {
|
|
26791
|
+
try {
|
|
26792
|
+
return JSON.parse(value);
|
|
26793
|
+
}
|
|
26794
|
+
catch (e) {
|
|
26795
|
+
}
|
|
26796
|
+
}
|
|
26797
|
+
if (value.indexOf(',') !== -1) {
|
|
26798
|
+
return value.split(',');
|
|
26799
|
+
}
|
|
26800
|
+
return value;
|
|
26801
|
+
},
|
|
26802
|
+
set: (key, value) => {
|
|
26803
|
+
if (typeof value === "object" && typeof value.length === "undefined") {
|
|
26804
|
+
window.sessionStorage.setItem(`${this.storagePrefix}-${key}`, JSON.stringify(value));
|
|
26805
|
+
return;
|
|
26806
|
+
}
|
|
26807
|
+
window.sessionStorage.setItem(`${this.storagePrefix}-${key}`, value);
|
|
26808
|
+
},
|
|
26809
|
+
remove: (key) => {
|
|
26810
|
+
window.sessionStorage.removeItem(`${this.storagePrefix}-${key}`);
|
|
26811
|
+
},
|
|
26812
|
+
};
|
|
26813
|
+
if (!options) {
|
|
26814
|
+
return;
|
|
26815
|
+
}
|
|
26816
|
+
this.eventTarget = (options.eventTarget) ? options.eventTarget : this.eventTarget;
|
|
26817
|
+
this.endpoint = options.endpoint ? options.endpoint : `${window.location.protocol}//${window.location.host}`;
|
|
26818
|
+
(_a = this.storagePrefix) !== null && _a !== void 0 ? _a : (this.storagePrefix = options.storagePrefix);
|
|
26819
|
+
this.checkUserLoggedInStateInterval = (options.checkUserLoggedInStateInterval && options.checkUserLoggedInStateInterval > 0) ? parseInt((options.checkUserLoggedInStateInterval + ''), 10) : 0;
|
|
26820
|
+
if (options.userInfo) {
|
|
26821
|
+
this.store.set(this.keys.user, options.userInfo);
|
|
26822
|
+
this.registerToken(this.overridetokenValue, 'override');
|
|
26823
|
+
}
|
|
26723
26824
|
}
|
|
26724
|
-
|
|
26725
|
-
|
|
26726
|
-
|
|
26727
|
-
this.
|
|
26728
|
-
|
|
26825
|
+
init(checkParameters = true) {
|
|
26826
|
+
if (checkParameters) {
|
|
26827
|
+
this.checkParameters();
|
|
26828
|
+
this.checkPNTopbar();
|
|
26829
|
+
this.checkExpireTime();
|
|
26830
|
+
if (this.store.get(this.keys.token) && !this.store.get(this.keys.user)) {
|
|
26831
|
+
this.fetchUserInfo();
|
|
26832
|
+
}
|
|
26833
|
+
this.loginStateChange();
|
|
26834
|
+
if (this.checkUserLoggedInStateInterval > 0) {
|
|
26835
|
+
this.initiateLoggedInCheck();
|
|
26836
|
+
}
|
|
26837
|
+
}
|
|
26729
26838
|
}
|
|
26730
|
-
|
|
26731
|
-
|
|
26732
|
-
|
|
26733
|
-
if (!this.market) {
|
|
26734
|
-
const resolvedMarket = await marketWebContextService.getMarket();
|
|
26735
|
-
this.market = resolvedMarket;
|
|
26839
|
+
setSiteUrl(siteUrl) {
|
|
26840
|
+
if (siteUrl) {
|
|
26841
|
+
this.siteUrl = siteUrl;
|
|
26736
26842
|
}
|
|
26737
|
-
|
|
26738
|
-
|
|
26739
|
-
|
|
26843
|
+
}
|
|
26844
|
+
initiateLoggedInCheck() {
|
|
26845
|
+
if (this.isLoggedIn()) {
|
|
26846
|
+
if (window && window['AbortController']) {
|
|
26847
|
+
this.abortSignalForLoginCheck = new AbortController();
|
|
26848
|
+
}
|
|
26849
|
+
this.loginCheckTimer = window.setInterval(() => {
|
|
26850
|
+
this.doExternalLoggedInCheck().then(() => { }).catch(() => { });
|
|
26851
|
+
}, this.checkUserLoggedInStateInterval);
|
|
26740
26852
|
}
|
|
26741
|
-
|
|
26742
|
-
|
|
26853
|
+
}
|
|
26854
|
+
async doExternalLoggedInCheck() {
|
|
26855
|
+
if (!window.navigator.onLine) {
|
|
26856
|
+
// Don't check if the user is not online
|
|
26857
|
+
return;
|
|
26743
26858
|
}
|
|
26744
|
-
if (!this.
|
|
26745
|
-
|
|
26859
|
+
if (!this.getToken()) {
|
|
26860
|
+
window.clearInterval(this.checkUserLoggedInStateInterval);
|
|
26861
|
+
return;
|
|
26746
26862
|
}
|
|
26747
|
-
if (
|
|
26748
|
-
this.
|
|
26863
|
+
if (this.loginCheckInProgress && this.abortSignalForLoginCheck) {
|
|
26864
|
+
this.abortSignalForLoginCheck.abort();
|
|
26865
|
+
this.abortSignalForLoginCheck = new AbortController();
|
|
26749
26866
|
}
|
|
26750
|
-
|
|
26751
|
-
|
|
26752
|
-
|
|
26753
|
-
|
|
26754
|
-
|
|
26755
|
-
|
|
26756
|
-
|
|
26757
|
-
|
|
26758
|
-
|
|
26759
|
-
if (this.
|
|
26760
|
-
|
|
26867
|
+
this.loginCheckInProgress = true;
|
|
26868
|
+
const reqConfig = {
|
|
26869
|
+
method: 'GET',
|
|
26870
|
+
headers: {
|
|
26871
|
+
'Accept': 'application/json',
|
|
26872
|
+
'Content-Type': 'application/json',
|
|
26873
|
+
'Authorization': this.getToken()
|
|
26874
|
+
},
|
|
26875
|
+
};
|
|
26876
|
+
if (this.abortSignalForLoginCheck && this.abortSignalForLoginCheck["signal"]) {
|
|
26877
|
+
reqConfig["signal"] = this.abortSignalForLoginCheck["signal"];
|
|
26761
26878
|
}
|
|
26762
|
-
|
|
26763
|
-
|
|
26879
|
+
const response = await fetch(`${this.getBaseUrl()}${this.endpoints.userInfoEndpoint}`, reqConfig);
|
|
26880
|
+
if (response.status === 409) { // This is a status the API returns if a user has been logged out
|
|
26881
|
+
window.clearInterval(this.checkUserLoggedInStateInterval);
|
|
26882
|
+
console.log('Cleared out user data due to bad response from authentication endpoint');
|
|
26883
|
+
this.LogoutUser();
|
|
26884
|
+
return;
|
|
26764
26885
|
}
|
|
26886
|
+
if (!response.ok) {
|
|
26887
|
+
// The response was "bad". This could be due to bad connectivity or something else.
|
|
26888
|
+
// We'll ignore it so we don't unecessarily log users out or have them loose state if they're switching connection
|
|
26889
|
+
return;
|
|
26890
|
+
}
|
|
26891
|
+
const data = await response.json();
|
|
26892
|
+
if (!data || !data['accessToken']) {
|
|
26893
|
+
window.clearInterval(this.checkUserLoggedInStateInterval);
|
|
26894
|
+
console.log('Cleared out user data due to bad response from authentication endpoint');
|
|
26895
|
+
this.LogoutUser();
|
|
26896
|
+
}
|
|
26897
|
+
this.loginCheckInProgress = false;
|
|
26765
26898
|
}
|
|
26766
|
-
|
|
26767
|
-
this.
|
|
26768
|
-
|
|
26769
|
-
|
|
26770
|
-
|
|
26771
|
-
|
|
26772
|
-
|
|
26773
|
-
|
|
26899
|
+
LogoutUser() {
|
|
26900
|
+
this.clearUserData();
|
|
26901
|
+
// Log out user
|
|
26902
|
+
if (this.eventTarget) {
|
|
26903
|
+
const logoutLink = this.eventTarget.querySelector('#pn-marketweb-header-logoutlink');
|
|
26904
|
+
if (logoutLink) {
|
|
26905
|
+
logoutLink.click();
|
|
26906
|
+
return;
|
|
26907
|
+
}
|
|
26908
|
+
}
|
|
26909
|
+
// If no logout link was found, attempt to change URL to redirect link
|
|
26910
|
+
const currentPageHref = window.location.href;
|
|
26911
|
+
window.location.href = this.getLogoutUrl(currentPageHref);
|
|
26774
26912
|
}
|
|
26775
|
-
|
|
26776
|
-
|
|
26777
|
-
|
|
26913
|
+
isLoggedIn(override = false) {
|
|
26914
|
+
if (override) {
|
|
26915
|
+
return override;
|
|
26916
|
+
}
|
|
26917
|
+
let isLoggedIn = (this.store.get(this.keys.token) && this.store.get(this.keys.user)) ? true : false;
|
|
26918
|
+
if (!isLoggedIn && this.store.get(this.keys.token) === this.overridetokenValue) {
|
|
26919
|
+
isLoggedIn = true;
|
|
26920
|
+
}
|
|
26921
|
+
return isLoggedIn;
|
|
26778
26922
|
}
|
|
26779
|
-
|
|
26780
|
-
if (
|
|
26781
|
-
// console.warn(`One or more values where not specified.\nEndpoint: ${this.endpoint}\nMarket: ${this.market}\nLanguage: ${this.language}`)
|
|
26923
|
+
registerToken(token = '', tokenSource = 'frontend') {
|
|
26924
|
+
if (!token || token === this.getToken()) {
|
|
26782
26925
|
return;
|
|
26783
26926
|
}
|
|
26784
|
-
this.
|
|
26785
|
-
|
|
26786
|
-
|
|
26787
|
-
|
|
26788
|
-
mode: 'cors',
|
|
26789
|
-
}, this.cache));
|
|
26790
|
-
await this.setStateFromData(data);
|
|
26927
|
+
this.clearUserData();
|
|
26928
|
+
this.store.set(this.keys.tokensource, tokenSource);
|
|
26929
|
+
this.store.set(this.keys.token, token);
|
|
26930
|
+
this.fetchUserInfo();
|
|
26791
26931
|
}
|
|
26792
|
-
|
|
26793
|
-
|
|
26794
|
-
|
|
26932
|
+
invalidateTokenOfType(tokenSource = 'frontend') {
|
|
26933
|
+
const currentToken = this.store.get(this.keys.token);
|
|
26934
|
+
if (!currentToken) {
|
|
26935
|
+
return;
|
|
26795
26936
|
}
|
|
26796
|
-
const
|
|
26797
|
-
if (
|
|
26798
|
-
return
|
|
26937
|
+
const currentTokenSource = this.store.get(this.keys.tokensource);
|
|
26938
|
+
if (currentTokenSource !== tokenSource) {
|
|
26939
|
+
return;
|
|
26799
26940
|
}
|
|
26800
|
-
|
|
26801
|
-
|
|
26802
|
-
return siteUrl + (siteUrl.lastIndexOf('/') !== siteUrl.length - 1 ? '/' : '') + item.twoLetterISOLanguageName;
|
|
26941
|
+
// If we have a token and the source is set then we will invalidate the user data
|
|
26942
|
+
this.clearUserData();
|
|
26803
26943
|
}
|
|
26804
|
-
|
|
26805
|
-
|
|
26806
|
-
|
|
26807
|
-
|
|
26944
|
+
getLoginUrl(redirectPage = "") {
|
|
26945
|
+
const currentPage = window.location.href;
|
|
26946
|
+
redirectPage = redirectPage ? redirectPage : currentPage;
|
|
26947
|
+
return `${this.getBaseUrl()}${this.endpoints.authorizationEndpoint}?redirectionUrl=${redirectPage}`;
|
|
26948
|
+
}
|
|
26949
|
+
getLogoutUrl(linkHref = "") {
|
|
26950
|
+
if (linkHref.indexOf('logout?logoutUrl') !== -1) {
|
|
26951
|
+
// Link has already been formatted.
|
|
26952
|
+
return linkHref;
|
|
26808
26953
|
}
|
|
26809
|
-
|
|
26810
|
-
|
|
26811
|
-
|
|
26812
|
-
|
|
26813
|
-
|
|
26814
|
-
if (this.siteDomainInUrls) {
|
|
26815
|
-
updatedMenuItems = data.mainMenu.menuItems.map(item => {
|
|
26816
|
-
return this.adjustMenuItemUrls(item);
|
|
26817
|
-
});
|
|
26954
|
+
let redirectPage = linkHref.replace('logout', '').replace('http://window.location.href/?', window.location.href).replace('https://window.location.href/?', window.location.href);
|
|
26955
|
+
let rootUrl = this.siteUrl;
|
|
26956
|
+
try {
|
|
26957
|
+
const url = new URL(this.siteUrl + '');
|
|
26958
|
+
rootUrl = url.origin;
|
|
26818
26959
|
}
|
|
26819
|
-
|
|
26820
|
-
|
|
26960
|
+
catch (e) { }
|
|
26961
|
+
const addSlash = (rootUrl.lastIndexOf('/') !== (rootUrl.length - 1));
|
|
26962
|
+
const siteUrl = rootUrl + (addSlash ? '/' : '') + 'logout';
|
|
26963
|
+
const secondLogoutUrl = `${this.getBaseUrl()}${this.endpoints.logoutEndpoint}?authorization=${this.store.get(this.keys.token)}%26redirectionUrl=${redirectPage}`;
|
|
26964
|
+
const logoutUrl = `${siteUrl}?logoutUrl=${secondLogoutUrl}`;
|
|
26965
|
+
return logoutUrl;
|
|
26966
|
+
}
|
|
26967
|
+
getUserInfo() {
|
|
26968
|
+
if (this.isLoggedIn()) {
|
|
26969
|
+
return this.store.get(this.keys.user);
|
|
26821
26970
|
}
|
|
26822
|
-
|
|
26823
|
-
|
|
26824
|
-
|
|
26825
|
-
|
|
26826
|
-
|
|
26827
|
-
|
|
26828
|
-
|
|
26829
|
-
|
|
26830
|
-
children: [],
|
|
26831
|
-
});
|
|
26971
|
+
}
|
|
26972
|
+
getEventTarget() {
|
|
26973
|
+
return this.eventTarget;
|
|
26974
|
+
}
|
|
26975
|
+
checkExpireTime() {
|
|
26976
|
+
const expire = this.store.get(this.keys.expire);
|
|
26977
|
+
if (!expire) {
|
|
26978
|
+
return;
|
|
26832
26979
|
}
|
|
26833
|
-
|
|
26834
|
-
|
|
26835
|
-
|
|
26836
|
-
|
|
26837
|
-
|
|
26838
|
-
|
|
26839
|
-
this.languageSelector = data.languageSelectorViewModel;
|
|
26840
|
-
this.setLanguageOptions();
|
|
26841
|
-
let loginDialog = data.loginViewModel;
|
|
26842
|
-
if (loginDialog && this.siteDomainInUrls) {
|
|
26843
|
-
loginDialog.loggedInLinks = loginDialog.loggedInLinks.map(item => {
|
|
26844
|
-
item.href = this.adjustHref(item.href);
|
|
26845
|
-
return item;
|
|
26846
|
-
});
|
|
26847
|
-
loginDialog.loginMenuLinks = loginDialog.loginMenuLinks.map(item => {
|
|
26848
|
-
item.href = this.adjustHref(item.href);
|
|
26849
|
-
return item;
|
|
26850
|
-
});
|
|
26980
|
+
const now = new Date();
|
|
26981
|
+
const expireDate = new Date(Math.floor(parseInt(expire, 10) * 1000));
|
|
26982
|
+
if (now > expireDate) {
|
|
26983
|
+
console.info('Login time has expired');
|
|
26984
|
+
this.clearUserData();
|
|
26985
|
+
this.loginStateChange();
|
|
26851
26986
|
}
|
|
26852
|
-
this.loginDialog = loginDialog;
|
|
26853
|
-
await this.spaModeAdjustments();
|
|
26854
|
-
this.gotData = true;
|
|
26855
|
-
this.fetchingData = true;
|
|
26856
|
-
this.homePageLink = (_c = (_b = this.siteDefinition) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : document.location.hostname;
|
|
26857
|
-
window.setTimeout(() => {
|
|
26858
|
-
this.checkMenuOverflow();
|
|
26859
|
-
}, 100);
|
|
26860
26987
|
}
|
|
26861
|
-
|
|
26862
|
-
|
|
26863
|
-
|
|
26864
|
-
let adjustedItems = item.children.map(item => {
|
|
26865
|
-
return this.adjustMenuItemUrls(item);
|
|
26866
|
-
});
|
|
26867
|
-
item.children = adjustedItems;
|
|
26988
|
+
checkPNTopbar() {
|
|
26989
|
+
if (this.isLoggedIn() || !window['pnTopbar'] || !window['pnTopbar']['session_id']) {
|
|
26990
|
+
return;
|
|
26868
26991
|
}
|
|
26869
|
-
|
|
26992
|
+
this.store.set(this.keys.token, window['pnTopbar']['session_id']);
|
|
26993
|
+
this.fetchUserInfo();
|
|
26870
26994
|
}
|
|
26871
|
-
|
|
26872
|
-
if (
|
|
26873
|
-
return
|
|
26995
|
+
checkParameters() {
|
|
26996
|
+
if (!(window === null || window === void 0 ? void 0 : window.location)) {
|
|
26997
|
+
return;
|
|
26998
|
+
}
|
|
26999
|
+
const params = new URLSearchParams(window.location.search);
|
|
27000
|
+
if (params.get("oneTimeCode")) {
|
|
27001
|
+
const oneTimeCode = params.get("oneTimeCode");
|
|
27002
|
+
this.exchangeToken(oneTimeCode).then(() => {
|
|
27003
|
+
const currentHref = window.location.href;
|
|
27004
|
+
const paramPrefix = (currentHref.indexOf('?oneTimeCode') !== -1) ? "?" : "&";
|
|
27005
|
+
const newUrl = currentHref.replace(`${paramPrefix}oneTimeCode=${oneTimeCode}`, '');
|
|
27006
|
+
history.replaceState({}, document.querySelector('title').innerText, newUrl);
|
|
27007
|
+
});
|
|
26874
27008
|
}
|
|
26875
|
-
const domainUrl = this.siteDefinition.url.lastIndexOf('/') === this.siteDefinition.url.length - 1
|
|
26876
|
-
? this.siteDefinition.url.substring(0, this.siteDefinition.url.length - 1)
|
|
26877
|
-
: this.siteDefinition.url;
|
|
26878
|
-
href = domainUrl + href;
|
|
26879
|
-
return href;
|
|
26880
27009
|
}
|
|
26881
|
-
|
|
26882
|
-
|
|
26883
|
-
if (
|
|
27010
|
+
async fetchUserInfo() {
|
|
27011
|
+
const token = this.store.get(this.keys.token);
|
|
27012
|
+
if (this.store.get(this.keys.token) === this.overridetokenValue) {
|
|
27013
|
+
console.info('Did not fetch user data since it was set by an override');
|
|
26884
27014
|
return;
|
|
26885
27015
|
}
|
|
26886
|
-
const
|
|
26887
|
-
|
|
26888
|
-
|
|
26889
|
-
|
|
26890
|
-
|
|
26891
|
-
|
|
26892
|
-
|
|
26893
|
-
}
|
|
26894
|
-
|
|
26895
|
-
|
|
26896
|
-
|
|
26897
|
-
|
|
26898
|
-
|
|
26899
|
-
|
|
27016
|
+
const reqConfig = {
|
|
27017
|
+
method: 'GET',
|
|
27018
|
+
headers: {
|
|
27019
|
+
'Accept': 'application/json',
|
|
27020
|
+
'Content-Type': 'application/json',
|
|
27021
|
+
'Authorization': token
|
|
27022
|
+
},
|
|
27023
|
+
};
|
|
27024
|
+
const response = await fetch(`${this.getBaseUrl()}${this.endpoints.userInfoEndpoint}`, reqConfig);
|
|
27025
|
+
const data = await response.json();
|
|
27026
|
+
if (data && data["idToken"]) {
|
|
27027
|
+
try {
|
|
27028
|
+
const { idToken, expiryTime, accessToken } = data;
|
|
27029
|
+
const userInfo = this.parseUserInfo(idToken);
|
|
27030
|
+
if (!userInfo) {
|
|
27031
|
+
console.error('Userdata is not valid');
|
|
27032
|
+
this.clearUserData();
|
|
27033
|
+
return;
|
|
26900
27034
|
}
|
|
27035
|
+
this.store.set(this.keys.user, userInfo);
|
|
27036
|
+
// 10 Min early expire
|
|
27037
|
+
this.store.set(this.keys.accessToken, accessToken);
|
|
27038
|
+
this.store.set(this.keys.expire, expiryTime);
|
|
27039
|
+
this.store.set(this.keys.expireDate, new Date(Math.floor(parseInt(expiryTime, 10) * 1000)));
|
|
27040
|
+
this.loginStateChange();
|
|
26901
27041
|
}
|
|
26902
|
-
|
|
26903
|
-
|
|
27042
|
+
catch (e) {
|
|
27043
|
+
console.error('Unable to get user information', e);
|
|
26904
27044
|
}
|
|
26905
|
-
});
|
|
26906
|
-
this.languageOptions = languageOptions; // Replace existing language options so we don't trigger a event change on every push.
|
|
26907
|
-
}
|
|
26908
|
-
async spaModeAdjustments() {
|
|
26909
|
-
if (!this.spaMode) {
|
|
26910
|
-
return;
|
|
26911
27045
|
}
|
|
26912
|
-
|
|
26913
|
-
|
|
26914
|
-
|
|
26915
|
-
var _a, _b, _c;
|
|
26916
|
-
if (((_a = e.detail) === null || _a === void 0 ? void 0 : _a.loggedIn) && ((_b = e.detail) === null || _b === void 0 ? void 0 : _b.token)) {
|
|
26917
|
-
this.loggedIn = ((_c = e.detail) === null || _c === void 0 ? void 0 : _c.loggedIn) === true;
|
|
27046
|
+
else {
|
|
27047
|
+
console.error('Unable to get user information. Clearing login state');
|
|
27048
|
+
this.clearUserData();
|
|
26918
27049
|
}
|
|
26919
27050
|
}
|
|
26920
|
-
|
|
26921
|
-
|
|
27051
|
+
clearUserData() {
|
|
27052
|
+
this.store.remove(this.keys.user);
|
|
27053
|
+
this.store.remove(this.keys.tokensource);
|
|
27054
|
+
this.store.remove(this.keys.accessToken);
|
|
27055
|
+
this.store.remove(this.keys.token);
|
|
27056
|
+
this.store.remove(this.keys.expire);
|
|
27057
|
+
this.store.remove(this.keys.expireDate);
|
|
26922
27058
|
}
|
|
26923
|
-
|
|
26924
|
-
|
|
26925
|
-
this.checkMenuOverflow();
|
|
26926
|
-
});
|
|
27059
|
+
getToken() {
|
|
27060
|
+
return this.store.get(this.keys.token);
|
|
26927
27061
|
}
|
|
26928
|
-
|
|
26929
|
-
|
|
26930
|
-
|
|
26931
|
-
|
|
26932
|
-
|
|
26933
|
-
const
|
|
26934
|
-
|
|
26935
|
-
|
|
27062
|
+
getAccessToken() {
|
|
27063
|
+
return this.store.get(this.keys.accessToken);
|
|
27064
|
+
}
|
|
27065
|
+
async exchangeToken(oneTimeCode) {
|
|
27066
|
+
this.clearUserData();
|
|
27067
|
+
const response = await fetch(`${this.getBaseUrl()}${this.endpoints.tokenExchangeEndpoint}?oneTimeCode=${oneTimeCode}`);
|
|
27068
|
+
const { token } = await response.json();
|
|
27069
|
+
if (typeof token === "string" && token) {
|
|
27070
|
+
this.store.set(this.keys.token, token);
|
|
26936
27071
|
}
|
|
26937
|
-
|
|
26938
|
-
|
|
27072
|
+
this.fetchUserInfo();
|
|
27073
|
+
}
|
|
27074
|
+
loginStateChange() {
|
|
27075
|
+
if (!this.eventTarget) {
|
|
26939
27076
|
return;
|
|
26940
27077
|
}
|
|
26941
|
-
|
|
26942
|
-
|
|
26943
|
-
|
|
26944
|
-
if (isOverFlowed && this.minimizeSearch === false) {
|
|
26945
|
-
this.minimizeSearch = true;
|
|
26946
|
-
}
|
|
27078
|
+
this.eventTarget.dispatchEvent(new CustomEvent(this.events.loginstatechange, {
|
|
27079
|
+
detail: this.isLoggedIn()
|
|
27080
|
+
}));
|
|
26947
27081
|
}
|
|
26948
|
-
|
|
26949
|
-
|
|
26950
|
-
|
|
27082
|
+
getBaseUrl() {
|
|
27083
|
+
const atEnvironments = ["localhost", "integration.", 'local.'];
|
|
27084
|
+
let useATEnv = atEnvironments.filter(x => this.endpoint.indexOf(x) !== -1).length > 0;
|
|
27085
|
+
if (window.location.hostname.indexOf('atportal.postnord.com') === 0) {
|
|
27086
|
+
useATEnv = true;
|
|
26951
27087
|
}
|
|
26952
|
-
|
|
26953
|
-
|
|
26954
|
-
return href.indexOf(domain) !== -1;
|
|
26955
|
-
});
|
|
26956
|
-
if (matchedHref.length === 0) {
|
|
26957
|
-
return href;
|
|
27088
|
+
if (useATEnv) {
|
|
27089
|
+
return this.baseUrls.at;
|
|
26958
27090
|
}
|
|
26959
|
-
return this.
|
|
27091
|
+
return this.baseUrls.prod;
|
|
26960
27092
|
}
|
|
26961
|
-
|
|
26962
|
-
|
|
26963
|
-
|
|
26964
|
-
|
|
26965
|
-
|
|
26966
|
-
|
|
26967
|
-
|
|
26968
|
-
|
|
26969
|
-
|
|
26970
|
-
|
|
26971
|
-
return (h("pn-mainnav-link", { name: childitem.name, href: childitem.href, target: (_a = childitem.linkTarget) !== null && _a !== void 0 ? _a : '_self', linkid: childitem.trackingId }));
|
|
26972
|
-
}))), item.promotedMenuItems && item.promotedMenuItems.length > 0 && (h("pn-mainnav-list", { heading: item.promotedMenuItemsHeader }, item.promotedMenuItems.map(childitem => (h("pn-mainnav-link", { href: childitem.href, name: childitem.linkText, target: childitem.openInNewWindow ? '_blank' : '_self', linkid: this.promotedItemId(childitem) + item.id })))))))));
|
|
26973
|
-
})), h("div", { slot: "footer", class: "siteheader-menu-footer" }, h("slot", { name: "menu-footer-cta" }), this.gotData && this.loginDialog && !this.hideLogin && (h("pn-marketweb-siteheader-login", { emitEvents: false, siteUrl: this.siteDefinition.url, loginDialog: this.loginDialog, endpoint: this.endpoint, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n, showProfileSelection: this.showProfileSelection })), this.gotData && this.languageOptions && this.languageOptions.length && !this.hideLanguageSelector && (h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => (h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))))), !this.hideSiteSelector && (h("pn-site-selector", { language: this.language }, this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle) && (h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription })), this.gotData &&
|
|
26974
|
-
((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections) &&
|
|
26975
|
-
this.siteSelector.siteSelections.map(site => (h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))))), h("div", { slot: "top", class: "siteheader-menu-top" }, h("pn-marketweb-siteheader-search", { language: this.language, siteid: this.siteid, search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), h("pn-marketweb-siteheader-search", { language: this.language, siteid: this.siteid, primary: true, search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n }), h("slot", { name: "header-bottom-button" })))));
|
|
27093
|
+
parseUserInfo(idToken) {
|
|
27094
|
+
if (!idToken) {
|
|
27095
|
+
return null;
|
|
27096
|
+
}
|
|
27097
|
+
var base64Url = idToken.split('.')[1];
|
|
27098
|
+
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
27099
|
+
var jsonPayload = decodeURIComponent(atob(base64).split('').map(function (c) {
|
|
27100
|
+
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
27101
|
+
}).join(''));
|
|
27102
|
+
return JSON.parse(jsonPayload);
|
|
26976
27103
|
}
|
|
26977
|
-
|
|
26978
|
-
static get watchers() { return {
|
|
26979
|
-
"language": ["onLanguageChange"],
|
|
26980
|
-
"market": ["onMarketChange"]
|
|
26981
|
-
}; }
|
|
26982
|
-
static get style() { return pnMarketwebSiteheaderCss; }
|
|
26983
|
-
};
|
|
27104
|
+
}
|
|
26984
27105
|
|
|
26985
27106
|
const pnMarketwebSiteheaderLoginCss = "pn-marketweb-siteheader-login{padding:1rem 0;max-height:5.2rem;position:relative}pn-marketweb-siteheader-login pn-nav-dropdown{display:none}pn-marketweb-siteheader-login.hydrated pn-nav-dropdown{display:block}";
|
|
26986
27107
|
|
|
26987
|
-
|
|
27108
|
+
let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
26988
27109
|
constructor() {
|
|
26989
27110
|
super();
|
|
26990
27111
|
this.__registerHost();
|
|
26991
27112
|
this.loginStateChange = createEvent(this, "loginStateChange", 7);
|
|
26992
27113
|
var _a;
|
|
26993
|
-
|
|
26994
|
-
this.
|
|
26995
|
-
|
|
27114
|
+
/** Specifies which endpoint domain we should load from */
|
|
27115
|
+
this.endpoint = '';
|
|
27116
|
+
/** Access token passed from backend */
|
|
27117
|
+
this.token = '';
|
|
27118
|
+
this.i18n = {
|
|
27119
|
+
searchlabel: '',
|
|
27120
|
+
searchplaceholder: '',
|
|
27121
|
+
searchbuttontext: '',
|
|
27122
|
+
menuHomeButton: '',
|
|
27123
|
+
menuGoBackButton: '',
|
|
27124
|
+
mainMenuButton: '',
|
|
27125
|
+
menuStartButton: '',
|
|
27126
|
+
profileSelectionFlyoutHeading: '',
|
|
27127
|
+
};
|
|
26996
27128
|
this.siteUrl = '';
|
|
26997
27129
|
this.emitEvents = true;
|
|
27130
|
+
// Login dialog
|
|
26998
27131
|
this.loginDialog = null;
|
|
26999
|
-
|
|
27132
|
+
/** User Fullname */
|
|
27133
|
+
this.fullname = '';
|
|
27000
27134
|
this.loggedin = false;
|
|
27135
|
+
/** If this is selected we will show the new profile selection dropdown instead of the login version */
|
|
27001
27136
|
this.showProfileSelection = false;
|
|
27002
|
-
|
|
27003
|
-
this.
|
|
27004
|
-
this.toggleButtonText = ((
|
|
27137
|
+
/** Continiously check if a user is logged in **/
|
|
27138
|
+
this.checkUserLoggedInStateInterval = 0;
|
|
27139
|
+
this.toggleButtonText = ((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loginMenuLinkText) ? this.loginDialog.loginMenuLinkText : '';
|
|
27005
27140
|
this.username = this.fullname;
|
|
27006
27141
|
}
|
|
27007
27142
|
componentWillLoad() {
|
|
27008
27143
|
const userInfo = this.loggedin && this.fullname ? { given_name: this.fullname } : null;
|
|
27009
|
-
|
|
27144
|
+
state$4.loginManager = new MarketWebLoginManager({
|
|
27010
27145
|
endpoint: this.endpoint,
|
|
27011
27146
|
eventTarget: this.hostElement,
|
|
27012
|
-
|
|
27147
|
+
checkUserLoggedInStateInterval: this.checkUserLoggedInStateInterval,
|
|
27148
|
+
userInfo,
|
|
27013
27149
|
});
|
|
27014
|
-
|
|
27015
|
-
this.hostElement[
|
|
27150
|
+
state$4.loginManager.setSiteUrl(this.siteUrl);
|
|
27151
|
+
this.hostElement['loginmanager'] = state$4.loginManager;
|
|
27016
27152
|
if (this.token) {
|
|
27017
|
-
|
|
27153
|
+
state$4.loginManager.registerToken(this.token, 'backend');
|
|
27018
27154
|
}
|
|
27019
|
-
else if (this.emitEvents) {
|
|
27020
|
-
|
|
27155
|
+
else if (this.emitEvents) {
|
|
27156
|
+
// The primary login instance
|
|
27157
|
+
state$4.loginManager.invalidateTokenOfType('backend');
|
|
27021
27158
|
}
|
|
27022
|
-
this.hostElement.addEventListener(
|
|
27159
|
+
this.hostElement.addEventListener(state$4.loginManager.events.loginstatechange, this.onLoginStateChange.bind(this));
|
|
27023
27160
|
this.init();
|
|
27024
27161
|
this.setUserName();
|
|
27025
27162
|
this.setToggleButtonText();
|
|
27026
27163
|
}
|
|
27027
27164
|
async init() {
|
|
27028
|
-
|
|
27165
|
+
state$4.loginManager.init(this.emitEvents);
|
|
27029
27166
|
this.setToggleButtonText();
|
|
27030
27167
|
this.adjustLoginLinks();
|
|
27031
27168
|
}
|
|
@@ -27036,13 +27173,13 @@ const PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
27036
27173
|
}
|
|
27037
27174
|
const adjustLink = (link, i) => {
|
|
27038
27175
|
if (!link.isLogoutLink) {
|
|
27039
|
-
link.isLogoutLink =
|
|
27176
|
+
link.isLogoutLink = link.pageLink.indexOf('location.href') !== -1 && link.pageLink.indexOf('logout') !== -1;
|
|
27040
27177
|
}
|
|
27041
27178
|
if (link.isLogoutLink) {
|
|
27042
|
-
link.href =
|
|
27179
|
+
link.href = state$4.loginManager.getLogoutUrl(link.href);
|
|
27043
27180
|
}
|
|
27044
27181
|
if (i === 0 && !link.href) {
|
|
27045
|
-
link.href =
|
|
27182
|
+
link.href = state$4.loginManager.getLoginUrl();
|
|
27046
27183
|
link.linkType = 'primary';
|
|
27047
27184
|
}
|
|
27048
27185
|
if (link.primaryLinkApperance && !link.linkType) {
|
|
@@ -27056,32 +27193,32 @@ const PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
27056
27193
|
}
|
|
27057
27194
|
this.loginDialog.legacyLoginLinks = [
|
|
27058
27195
|
{
|
|
27059
|
-
href:
|
|
27196
|
+
href: state$4.loginManager.getLoginUrl(this.loginDialog.loginUrl),
|
|
27060
27197
|
linkText: this.loginDialog.loginLinkText,
|
|
27061
27198
|
openInNewWindow: false,
|
|
27062
27199
|
isLogoutLink: false,
|
|
27063
27200
|
pageLink: null,
|
|
27064
27201
|
linkType: 'primary',
|
|
27065
|
-
primaryLinkApperance: true
|
|
27202
|
+
primaryLinkApperance: true,
|
|
27066
27203
|
},
|
|
27067
27204
|
{
|
|
27068
|
-
href:
|
|
27205
|
+
href: state$4.loginManager.getLoginUrl(this.loginDialog.registerUrl),
|
|
27069
27206
|
linkText: this.loginDialog.createLoginLinkText,
|
|
27070
27207
|
openInNewWindow: false,
|
|
27071
27208
|
isLogoutLink: false,
|
|
27072
27209
|
pageLink: null,
|
|
27073
|
-
primaryLinkApperance: false
|
|
27074
|
-
}
|
|
27210
|
+
primaryLinkApperance: false,
|
|
27211
|
+
},
|
|
27075
27212
|
];
|
|
27076
27213
|
}
|
|
27077
27214
|
setUserName() {
|
|
27078
|
-
const userInfo =
|
|
27079
|
-
let name =
|
|
27215
|
+
const userInfo = state$4.loginManager.getUserInfo();
|
|
27216
|
+
let name = '';
|
|
27080
27217
|
if (!this.loggedin || !userInfo) {
|
|
27081
27218
|
this.username = name;
|
|
27082
27219
|
}
|
|
27083
27220
|
if (userInfo && userInfo.given_name) {
|
|
27084
|
-
name = userInfo.given_name + ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name) ? ` ${userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name}` :
|
|
27221
|
+
name = userInfo.given_name + ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name) ? ` ${userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name}` : '');
|
|
27085
27222
|
}
|
|
27086
27223
|
if (!name && userInfo && userInfo.email) {
|
|
27087
27224
|
name = userInfo.email;
|
|
@@ -27105,7 +27242,7 @@ const PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
27105
27242
|
onLoginStateChange(e) {
|
|
27106
27243
|
if (this.loggedin !== e.detail && this.emitEvents) {
|
|
27107
27244
|
this.loggedin = e.detail;
|
|
27108
|
-
this.loginStateChange.emit({ loggedIn: this.loggedin, token:
|
|
27245
|
+
this.loginStateChange.emit({ loggedIn: this.loggedin, token: state$4.loginManager.getToken() });
|
|
27109
27246
|
this.setUserName();
|
|
27110
27247
|
this.setToggleButtonText();
|
|
27111
27248
|
}
|
|
@@ -27122,10 +27259,7 @@ const PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
27122
27259
|
hostElementAttribute.username = this.username;
|
|
27123
27260
|
hostElementAttribute.loggedin = this.loggedin + '';
|
|
27124
27261
|
}
|
|
27125
|
-
return (h(Host, Object.assign({}, hostElementAttribute), h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" }, this.loggedin && this.showProfileSelection ?
|
|
27126
|
-
h("pn-marketweb-siteheader-login-profileselection", { loginDialog: this.loginDialog, loginManager: this.loginManager, loggedin: this.loggedin, i18n: this.i18n, idNamespace: this.emitEvents ? '1' : '2', endpoint: this.endpoint })
|
|
27127
|
-
:
|
|
27128
|
-
h("pn-marketweb-siteheader-login-links", { loginDialog: this.loginDialog, loginManager: this.loginManager, loggedin: this.loggedin, idNamespace: this.emitEvents ? '1' : '2', username: this.username }))));
|
|
27262
|
+
return (h(Host, Object.assign({}, hostElementAttribute), h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" }, !this.loggedin && h("pn-marketweb-siteheader-login-button", { label: 'test console' }), !this.loggedin && h("pn-marketweb-siteheader-login-button", { active: true, label: 'test redirect' }), this.loggedin && this.showProfileSelection ? (h("pn-marketweb-siteheader-login-profileselection", { loginDialog: this.loginDialog, loggedin: this.loggedin, i18n: this.i18n, idNamespace: this.emitEvents ? '1' : '2', endpoint: this.endpoint })) : (h("pn-marketweb-siteheader-login-links", { loginDialog: this.loginDialog, loggedin: this.loggedin, idNamespace: this.emitEvents ? '1' : '2', username: this.username })))));
|
|
27129
27263
|
}
|
|
27130
27264
|
get hostElement() { return this; }
|
|
27131
27265
|
static get watchers() { return {
|
|
@@ -27135,16 +27269,47 @@ const PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
27135
27269
|
static get style() { return pnMarketwebSiteheaderLoginCss; }
|
|
27136
27270
|
};
|
|
27137
27271
|
|
|
27272
|
+
const pnMarketwebSiteheaderLoginButtonCss = "pn-marketweb-siteheader-login-button button{background-color:red}";
|
|
27273
|
+
|
|
27274
|
+
let PnMarketwebSiteheaderLoginButton$1 = class extends HTMLElement {
|
|
27275
|
+
constructor() {
|
|
27276
|
+
super();
|
|
27277
|
+
this.__registerHost();
|
|
27278
|
+
}
|
|
27279
|
+
createLoginUrl() {
|
|
27280
|
+
const base = window.location.origin;
|
|
27281
|
+
console.log('base: ', window.location.origin);
|
|
27282
|
+
if (base.includes('portal')) {
|
|
27283
|
+
return base.concat(`/api/unified-login/backend/authorization?redirectionUrl=${window.location.href}`);
|
|
27284
|
+
}
|
|
27285
|
+
return base.concat(`/login?returnUrl=${window.location.href}`);
|
|
27286
|
+
}
|
|
27287
|
+
navigateToLogin() {
|
|
27288
|
+
this.loginUrl = this.createLoginUrl();
|
|
27289
|
+
//temp test
|
|
27290
|
+
if (this.active) {
|
|
27291
|
+
location.href = this.loginUrl;
|
|
27292
|
+
}
|
|
27293
|
+
else {
|
|
27294
|
+
console.log('loginurl with its redirect: ', this.loginUrl);
|
|
27295
|
+
}
|
|
27296
|
+
}
|
|
27297
|
+
render() {
|
|
27298
|
+
return (h(Host, null, h("pn-button", { onClick: () => this.navigateToLogin() }, this.label)));
|
|
27299
|
+
}
|
|
27300
|
+
get hostElement() { return this; }
|
|
27301
|
+
static get style() { return pnMarketwebSiteheaderLoginButtonCss; }
|
|
27302
|
+
};
|
|
27303
|
+
|
|
27138
27304
|
const pnMarketwebSiteheaderLoginLinklistCss = "pn-marketweb-siteheader-login-linklist{padding:1rem 0;max-height:5.2rem;position:relative}pn-marketweb-siteheader-login-linklist strong{padding:0.8rem 1.6rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}pn-marketweb-siteheader-login-linklist ul,pn-marketweb-siteheader-login-linklist li{list-style:none;margin:0;padding:0}pn-marketweb-siteheader-login-linklist li{padding:0.8rem 1.6rem}pn-marketweb-siteheader-login-linklist li pn-button{display:block;width:100%}";
|
|
27139
27305
|
|
|
27140
|
-
|
|
27306
|
+
let PnMarketwebSiteheaderLoginLinklist$1 = class extends HTMLElement {
|
|
27141
27307
|
constructor() {
|
|
27142
27308
|
super();
|
|
27143
27309
|
this.__registerHost();
|
|
27144
27310
|
this.heading = null;
|
|
27145
27311
|
this.links = [];
|
|
27146
27312
|
this.idNamespace = "";
|
|
27147
|
-
this.loginManager = null;
|
|
27148
27313
|
}
|
|
27149
27314
|
componentWillLoad() {
|
|
27150
27315
|
}
|
|
@@ -27192,7 +27357,7 @@ const PnMarketwebSiteheaderLoginLinklist$1 = class extends HTMLElement {
|
|
|
27192
27357
|
return (h(Host, null, this.heading ? h("strong", null, this.heading) : null, h("ul", null, this.links.map((link) => {
|
|
27193
27358
|
return (h("li", null, h("pn-button", Object.assign({ href: link.href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => {
|
|
27194
27359
|
if (link.isLogoutLink) {
|
|
27195
|
-
|
|
27360
|
+
state$4.loginManager.clearUserData();
|
|
27196
27361
|
}
|
|
27197
27362
|
} }), link.linkText)));
|
|
27198
27363
|
}))));
|
|
@@ -27203,12 +27368,12 @@ const PnMarketwebSiteheaderLoginLinklist$1 = class extends HTMLElement {
|
|
|
27203
27368
|
|
|
27204
27369
|
const pnMarketwebSiteheaderLoginLinksCss = "";
|
|
27205
27370
|
|
|
27206
|
-
|
|
27371
|
+
let PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
27207
27372
|
constructor() {
|
|
27208
27373
|
super();
|
|
27209
27374
|
this.__registerHost();
|
|
27375
|
+
// Login dialog
|
|
27210
27376
|
this.loginDialog = null;
|
|
27211
|
-
this.loginManager = null;
|
|
27212
27377
|
this.idNamespace = "";
|
|
27213
27378
|
this.loggedin = false;
|
|
27214
27379
|
this.username = "";
|
|
@@ -27229,11 +27394,11 @@ const PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
|
27229
27394
|
link.isLogoutLink = (link.pageLink.indexOf('location.href') !== -1 && link.pageLink.indexOf('logout') !== -1);
|
|
27230
27395
|
}
|
|
27231
27396
|
if (link.isLogoutLink) {
|
|
27232
|
-
link.href =
|
|
27397
|
+
link.href = state$4.loginManager.getLogoutUrl(link.href);
|
|
27233
27398
|
}
|
|
27234
27399
|
link.href = link.href.replace("window.location.href", window.location.href);
|
|
27235
27400
|
if (i === 0 && !link.href) {
|
|
27236
|
-
link.href =
|
|
27401
|
+
link.href = state$4.loginManager.getLoginUrl();
|
|
27237
27402
|
link.linkType = 'primary';
|
|
27238
27403
|
}
|
|
27239
27404
|
if (link.primaryLinkApperance && !link.linkType) {
|
|
@@ -27248,7 +27413,7 @@ const PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
|
27248
27413
|
}
|
|
27249
27414
|
this.loginDialog.legacyLoginLinks = [
|
|
27250
27415
|
{
|
|
27251
|
-
href:
|
|
27416
|
+
href: state$4.loginManager.getLoginUrl(this.loginDialog.loginUrl),
|
|
27252
27417
|
linkText: this.loginDialog.loginLinkText,
|
|
27253
27418
|
openInNewWindow: false,
|
|
27254
27419
|
isLogoutLink: false,
|
|
@@ -27257,7 +27422,7 @@ const PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
|
27257
27422
|
primaryLinkApperance: true
|
|
27258
27423
|
},
|
|
27259
27424
|
{
|
|
27260
|
-
href:
|
|
27425
|
+
href: state$4.loginManager.getLoginUrl(this.loginDialog.registerUrl),
|
|
27261
27426
|
linkText: this.loginDialog.createLoginLinkText,
|
|
27262
27427
|
openInNewWindow: false,
|
|
27263
27428
|
isLogoutLink: false,
|
|
@@ -27281,14 +27446,14 @@ const PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
|
27281
27446
|
}
|
|
27282
27447
|
return (h(Host, Object.assign({}, hostElementAttribute), (!this.loginDialog.overrideLoginMenu) ?
|
|
27283
27448
|
h("div", { "data-loggedin": this.loggedin + '' }, (this.loggedin) ?
|
|
27284
|
-
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks,
|
|
27449
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks, idNamespace: this.idNamespace })
|
|
27285
27450
|
:
|
|
27286
27451
|
h("div", null, ((_a = this.loginDialog.loginMenuLinks) === null || _a === void 0 ? void 0 : _a.length) > 0 ?
|
|
27287
|
-
h("pn-marketweb-siteheader-login-linklist", { heading: this.loginDialog.loginTitle, links: this.loginDialog.loginMenuLinks,
|
|
27452
|
+
h("pn-marketweb-siteheader-login-linklist", { heading: this.loginDialog.loginTitle, links: this.loginDialog.loginMenuLinks, idNamespace: this.idNamespace })
|
|
27288
27453
|
:
|
|
27289
|
-
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.legacyLoginLinks,
|
|
27454
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.legacyLoginLinks, idNamespace: this.idNamespace })))
|
|
27290
27455
|
: null, (this.loginDialog.overrideLoginMenu) ?
|
|
27291
|
-
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loginMenuLinks,
|
|
27456
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loginMenuLinks, idNamespace: this.idNamespace })
|
|
27292
27457
|
: null));
|
|
27293
27458
|
}
|
|
27294
27459
|
get hostElement() { return this; }
|
|
@@ -27300,12 +27465,12 @@ const PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
|
27300
27465
|
|
|
27301
27466
|
const pnMarketwebSiteheaderLoginProfileselectionCss = ".pn-marketweb-siteheader-login-profileselection-heading{display:block;padding:0.5rem 0 1rem}.pn-marketweb-siteheader-login-profileselection-user,.pn-marketweb-siteheader-login-profileselection-currentprofile{margin-top:1rem;margin-bottom:1rem}.pn-marketweb-siteheader-login-profileselection-user-name,.pn-marketweb-siteheader-login-profileselection-currentprofile-name{line-height:1}.pn-marketweb-siteheader-login-profileselection-user-description,.pn-marketweb-siteheader-login-profileselection-currentprofile-description{font-weight:400;white-space:normal;word-break:break-all;color:#5E554A;font-size:0.75em}.pn-marketweb-siteheader-login-profileselection-divider{height:1rem;width:100%;background:#00A0D6;position:relative;margin-left:-1em;margin-top:1.6rem;margin-bottom:1.6rem;border-radius:0 0.6em 0.6em 0;padding:0}.pn-marketweb-siteheader-login-profileselection-divider::after{content:\"\";width:0.6em;height:0.6em;border-radius:50%;position:absolute;right:0;top:0;background:inherit;-webkit-transform:translateX(calc(100% + 0.2em));transform:translateX(calc(100% + 0.2em))}.pn-marketweb-siteheader-login-profileselection-profileoption-link{display:-ms-flexbox;display:flex;background:#FFFFFF;-webkit-transition:background 0.15s ease-in-out;transition:background 0.15s ease-in-out;margin:0 -1em;padding:0.6rem 1.6rem;text-decoration:none;color:#005D92;-ms-flex-align:center;align-items:center}.pn-marketweb-siteheader-login-profileselection-profileoption-link:hover,.pn-marketweb-siteheader-login-profileselection-profileoption-link:focus,.pn-marketweb-siteheader-login-profileselection-profileoption-link:active{background:#F3F2F2}.pn-marketweb-siteheader-login-profileselection-profileoption-content{-ms-flex-positive:1;flex-grow:1}.pn-marketweb-siteheader-login-profileselection-profileoption-name{font-weight:700}.pn-marketweb-siteheader-login-profileselection-profileoption-description{font-weight:400;white-space:normal;word-break:break-all;color:#5E554A;font-size:0.75em}.pn-marketweb-siteheader-login-profileselection-logout{padding:1.6rem;text-align:center;width:100%}.pn-marketweb-siteheader-login-profileselection-logout-link{display:inline-block;font-weight:500;color:#005D92;text-decoration:none}.pn-marketweb-siteheader-login-profileselection-logout-link:hover,.pn-marketweb-siteheader-login-profileselection-logout-link:focus,.pn-marketweb-siteheader-login-profileselection-logout-link:active{text-decoration:underline}";
|
|
27302
27467
|
|
|
27303
|
-
|
|
27468
|
+
let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
27304
27469
|
constructor() {
|
|
27305
27470
|
super();
|
|
27306
27471
|
this.__registerHost();
|
|
27472
|
+
// Login dialog
|
|
27307
27473
|
this.loginDialog = null;
|
|
27308
|
-
this.loginManager = null;
|
|
27309
27474
|
this.endpoint = "";
|
|
27310
27475
|
this.loggedin = false;
|
|
27311
27476
|
this.idNamespace = "";
|
|
@@ -27439,10 +27604,10 @@ const PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
27439
27604
|
link.isLogoutLink = (link.pageLink.indexOf('location.href') !== -1 && link.pageLink.indexOf('logout') !== -1);
|
|
27440
27605
|
}
|
|
27441
27606
|
if (link.isLogoutLink) {
|
|
27442
|
-
link.href =
|
|
27607
|
+
link.href = state$4.loginManager.getLogoutUrl(link.href);
|
|
27443
27608
|
}
|
|
27444
27609
|
if (i === 0 && !link.href) {
|
|
27445
|
-
link.href =
|
|
27610
|
+
link.href = state$4.loginManager.getLoginUrl();
|
|
27446
27611
|
link.linkType = 'primary';
|
|
27447
27612
|
}
|
|
27448
27613
|
if (link.primaryLinkApperance && !link.linkType) {
|
|
@@ -27455,7 +27620,7 @@ const PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
27455
27620
|
this.logoutLink = (_d = (_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks.filter(x => x.isLogoutLink)[0]) !== null && _d !== void 0 ? _d : null;
|
|
27456
27621
|
}
|
|
27457
27622
|
updateUserInfo() {
|
|
27458
|
-
const userInfo =
|
|
27623
|
+
const userInfo = state$4.loginManager.getUserInfo();
|
|
27459
27624
|
this.user = userInfo;
|
|
27460
27625
|
if (!userInfo) {
|
|
27461
27626
|
return;
|
|
@@ -27486,11 +27651,11 @@ const PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
27486
27651
|
let hostElementAttribute = {};
|
|
27487
27652
|
return (h(Host, Object.assign({}, hostElementAttribute), this.heading ? h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null, this.currentProfile !== null && this.currentProfile.name ?
|
|
27488
27653
|
h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-name" }, this.currentProfile.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-description" }, this.currentProfile.customerNumber ? this.currentProfile.customerNumber : this.userEmail))
|
|
27489
|
-
: null, h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks,
|
|
27654
|
+
: null, h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks, idNamespace: this.idNamespace }), h("div", { class: "pn-marketweb-siteheader-login-profileselection-divider" }), this.profileoptions.filter(x => x.selected !== true).map((organization) => {
|
|
27490
27655
|
let customerNumber = (organization.profiles.length > 0) ? organization.profiles[0].customerNumber : organization.customerNumber;
|
|
27491
27656
|
return (h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber ? organization.customerNumber : this.userEmail)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
27492
27657
|
}), this.logoutLink ?
|
|
27493
|
-
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", onClick: () =>
|
|
27658
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", id: "pn-marketweb-header-logoutlink", onClick: () => state$4.loginManager.clearUserData(), class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText))
|
|
27494
27659
|
: null));
|
|
27495
27660
|
}
|
|
27496
27661
|
get hostElement() { return this; }
|
|
@@ -27506,18 +27671,25 @@ const { state: state$3, onChange: onChange$3 } = createStore({
|
|
|
27506
27671
|
|
|
27507
27672
|
const pnMarketwebSiteheaderSearchCss = ".siteheader-search a{display:none}@media screen and (min-width: 48em){.siteheader-search a{display:block}}.siteheader-search pn-search-field>.input-container button{background:#FFFFFF}.siteheader-search pn-search-field.button-icon pn-button,.siteheader-search pn-button{display:-ms-inline-flexbox;display:inline-flex}.siteheader-search pn-search-field.button-icon pn-button button,.siteheader-search pn-button button{-ms-flex-item-align:center;align-self:center;padding:0;height:2.3em;width:2.3em;line-height:0;min-height:unset;min-width:unset}.siteheader-search pn-search-field.button-icon pn-button pn-icon,.siteheader-search pn-button pn-icon{margin-left:0}.siteheader-search form{-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:stretch;align-items:stretch;width:auto;-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;padding:0;margin:0 0 0 0.4rem;position:relative;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 60em){.siteheader-search form{margin-right:1.6rem}}.siteheader-search form pn-search-field{min-width:13.5em}.siteheader-search form pn-search-field .input-container{-ms-flex-item-align:center;align-self:center}.siteheader-search form pn-search-field input{height:auto;min-height:1em;padding:0.6em 0.75em}";
|
|
27508
27673
|
|
|
27509
|
-
|
|
27674
|
+
let PnMarketwebSiteheaderSearch$1 = class extends HTMLElement {
|
|
27510
27675
|
constructor() {
|
|
27511
27676
|
super();
|
|
27512
27677
|
this.__registerHost();
|
|
27513
|
-
|
|
27678
|
+
// Display option, show only link
|
|
27514
27679
|
this.showOnlyLink = false;
|
|
27680
|
+
// Hide search option
|
|
27515
27681
|
this.hideSearch = false;
|
|
27682
|
+
/** Specifies which language we want to show (sv,da,fi,no,en) */
|
|
27516
27683
|
this.language = null;
|
|
27684
|
+
/** Specifies the current site id (guid)*/
|
|
27517
27685
|
this.siteid = null;
|
|
27686
|
+
// Search data
|
|
27518
27687
|
this.search = {};
|
|
27688
|
+
// Is this the primary instance?
|
|
27519
27689
|
this.primary = false;
|
|
27690
|
+
// Only Show icon as search button?
|
|
27520
27691
|
this.icononly = true;
|
|
27692
|
+
// Autocomplete options
|
|
27521
27693
|
this.autoCompleteOptions = [];
|
|
27522
27694
|
}
|
|
27523
27695
|
onSearchValueUpdate() {
|
|
@@ -27546,7 +27718,7 @@ const PnMarketwebSiteheaderSearch$1 = class extends HTMLElement {
|
|
|
27546
27718
|
}
|
|
27547
27719
|
}
|
|
27548
27720
|
const req = await fetch(autocompleteUrl, { signal: state$3.requestAbortController.signal }).catch((e) => {
|
|
27549
|
-
console.
|
|
27721
|
+
console.warn('Unable to fetch autocomplete suggestions', e);
|
|
27550
27722
|
});
|
|
27551
27723
|
if (!req) {
|
|
27552
27724
|
return;
|
|
@@ -27602,7 +27774,7 @@ const PnMarketwebSiteheaderSearch$1 = class extends HTMLElement {
|
|
|
27602
27774
|
|
|
27603
27775
|
const pnParcelTrackerCss = "pn-spotlight .pn-spotlight__container:has(pn-parcel-tracker) [slot=mobile-heading]{color:#005D92}.pn-spotlight__container__wrapper__content [slot=content]:has(pn-parcel-tracker){padding-left:2rem}pn-parcel-tracker{width:100%}pn-parcel-tracker .pn-parcel-tracker__container form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;gap:1.6rem}pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{color:#005D92;font-weight:500;margin-bottom:0}@media screen and (max-width: 768px){pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{display:none}}@media screen and (min-width: 1640px){pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{font-size:2.4rem;font-weight:700}}pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{-ms-flex-positive:1;flex-grow:1;max-width:80%}@media screen and (min-width: 768px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:50%}}@media screen and (min-width: 992px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:45%}}@media screen and (min-width: 1640px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:35%}}pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input input{border-radius:6.4rem}";
|
|
27604
27776
|
|
|
27605
|
-
|
|
27777
|
+
let PnSpotlight$2 = class extends HTMLElement {
|
|
27606
27778
|
constructor() {
|
|
27607
27779
|
super();
|
|
27608
27780
|
this.__registerHost();
|
|
@@ -27649,12 +27821,15 @@ const translations$4 = {
|
|
|
27649
27821
|
|
|
27650
27822
|
const pnPexPricefinderCss = ".pex-pricefinder-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.pex-pricefinder-top pn-illustration{width:5.5rem;height:5.5rem;margin-right:1.6rem}.pex-pricefinder-form{margin:1.6rem 0 0 0;padding:0;border:0}.pex-pricefinder-form fieldset{margin:0;padding:0;border:0}.pex-pricefinder-form fieldset+fieldset{margin-top:1.6rem}.pex-pricefinder-form fieldset>div{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:1em}.pex-pricefinder-form fieldset>div>*{-ms-flex-positive:1;flex-grow:1;width:100%}.pex-pricefinder-form pn-button{-ms-flex-item-align:end;align-self:end;margin-left:auto}.pex-pricefinder-form .datepicker{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.pex-pricefinder-form .datepicker label{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end;cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.pex-pricefinder-form .datepicker pn-date-picker{width:100%}.pex-pricefinder-response{margin-top:2.4rem;text-align:center;font-size:2.4em}";
|
|
27651
27823
|
|
|
27652
|
-
|
|
27824
|
+
let PnPexPricefinder$1 = class extends HTMLElement {
|
|
27653
27825
|
constructor() {
|
|
27654
27826
|
super();
|
|
27655
27827
|
this.__registerHost();
|
|
27828
|
+
/** Specifies which language we want to show component in (sv,da,fi,no,en) */
|
|
27656
27829
|
this.language = "sv";
|
|
27830
|
+
/** Currency (Kr, €)*/
|
|
27657
27831
|
this.currency = "Kr";
|
|
27832
|
+
/** API Url */
|
|
27658
27833
|
this.apiUrl = "/api/pex/order";
|
|
27659
27834
|
this.i18n = translations$4.sv;
|
|
27660
27835
|
this.fromzip = null;
|
|
@@ -27746,7 +27921,7 @@ const PnPexPricefinder$1 = class extends HTMLElement {
|
|
|
27746
27921
|
|
|
27747
27922
|
const pnProductCardCss = "pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:\"\" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:\"\" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}";
|
|
27748
27923
|
|
|
27749
|
-
|
|
27924
|
+
let PnProductCard$1 = class extends HTMLElement {
|
|
27750
27925
|
constructor() {
|
|
27751
27926
|
super();
|
|
27752
27927
|
this.__registerHost();
|
|
@@ -27759,14 +27934,10 @@ const PnProductCard$1 = class extends HTMLElement {
|
|
|
27759
27934
|
|
|
27760
27935
|
const pnProductCardInfoCss = "pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:\"PostNordSans\", \"Verdana\";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
|
|
27761
27936
|
|
|
27762
|
-
|
|
27937
|
+
let PnProductCardInfo$1 = class extends HTMLElement {
|
|
27763
27938
|
constructor() {
|
|
27764
27939
|
super();
|
|
27765
27940
|
this.__registerHost();
|
|
27766
|
-
this.rulle = undefined;
|
|
27767
|
-
this.paket = undefined;
|
|
27768
|
-
this.label = undefined;
|
|
27769
|
-
this.text = undefined;
|
|
27770
27941
|
}
|
|
27771
27942
|
render() {
|
|
27772
27943
|
return (this.label) ? (h(Host, null, h("div", { class: "cardinfocontent" }, (this.text) ? (h("pre", { slot: "formatPre" }, this.text)) : null))) : (h(Host, null, h("div", { class: "cardinfocontent" }, (this.paket) ? (h("div", { class: "cardinfocontent-item" }, h("strong", null, "Maxm\u00E5tt"), this.paket.split("/").map((item) => ((item.split(":").length > 1) ?
|
|
@@ -27782,17 +27953,10 @@ h("pn-icon", { symbol: "align-center", small: "false", color: "black" });
|
|
|
27782
27953
|
|
|
27783
27954
|
const pnProductCardPriceCss = "pn-product-card-price{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}";
|
|
27784
27955
|
|
|
27785
|
-
|
|
27956
|
+
let PnProductCardPrice$1 = class extends HTMLElement {
|
|
27786
27957
|
constructor() {
|
|
27787
27958
|
super();
|
|
27788
27959
|
this.__registerHost();
|
|
27789
|
-
this.label = undefined;
|
|
27790
|
-
this.amount = undefined;
|
|
27791
|
-
this.currency = undefined;
|
|
27792
|
-
this.note = undefined;
|
|
27793
|
-
this.url = undefined;
|
|
27794
|
-
this.service = undefined;
|
|
27795
|
-
this.linkid = undefined;
|
|
27796
27960
|
}
|
|
27797
27961
|
render() {
|
|
27798
27962
|
if (!this.amount) {
|
|
@@ -27914,7 +28078,7 @@ const stampShopUrl = "https://shop.postnord.se/ebutik/default.aspx";
|
|
|
27914
28078
|
|
|
27915
28079
|
const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
|
|
27916
28080
|
|
|
27917
|
-
|
|
28081
|
+
let PnFindProductPricelist = class extends HTMLElement {
|
|
27918
28082
|
constructor() {
|
|
27919
28083
|
super();
|
|
27920
28084
|
this.__registerHost();
|
|
@@ -27936,10 +28100,10 @@ const PnFindProductPricelist = class extends HTMLElement {
|
|
|
27936
28100
|
}
|
|
27937
28101
|
setState() {
|
|
27938
28102
|
if (this.market) {
|
|
27939
|
-
state$
|
|
28103
|
+
state$7.market = markets[this.market];
|
|
27940
28104
|
}
|
|
27941
28105
|
if (this.language && translations$3[this.language]) {
|
|
27942
|
-
state$
|
|
28106
|
+
state$7.i18n = translations$3[this.language];
|
|
27943
28107
|
}
|
|
27944
28108
|
}
|
|
27945
28109
|
async getDataSource() {
|
|
@@ -27997,7 +28161,7 @@ const PnFindProductPricelist = class extends HTMLElement {
|
|
|
27997
28161
|
this.gotData = this.filteredItems.length > 0;
|
|
27998
28162
|
}
|
|
27999
28163
|
render() {
|
|
28000
|
-
return (h(Host, null, h("div", { class: "content" }, h("slot", null)), this.loading ? (h("pn-spinner", null)) : null, (this.postagetype.value && weights[this.postagetype.value]) ? (h("div", { class: "weightselection" }, h("div", { class: "weightoption" }, h("div", { class: "weightoption-input" }, h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: state$
|
|
28164
|
+
return (h(Host, null, h("div", { class: "content" }, h("slot", null)), this.loading ? (h("pn-spinner", null)) : null, (this.postagetype.value && weights[this.postagetype.value]) ? (h("div", { class: "weightselection" }, h("div", { class: "weightoption" }, h("div", { class: "weightoption-input" }, h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: state$7.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
|
|
28001
28165
|
if (e && e.target && e.target.value) {
|
|
28002
28166
|
const weightNum = parseInt(e.target.value, 10);
|
|
28003
28167
|
if (!isNaN(weightNum)) {
|
|
@@ -28051,7 +28215,7 @@ const { state: state$2, onChange: onChange$2 } = createStore({
|
|
|
28051
28215
|
|
|
28052
28216
|
const pnProductPricelistResultCss = "";
|
|
28053
28217
|
|
|
28054
|
-
|
|
28218
|
+
let PnFindProductPricelistResult = class extends HTMLElement {
|
|
28055
28219
|
constructor() {
|
|
28056
28220
|
super();
|
|
28057
28221
|
this.__registerHost();
|
|
@@ -28114,7 +28278,7 @@ const PnFindProductPricelistResult = class extends HTMLElement {
|
|
|
28114
28278
|
|
|
28115
28279
|
const pnProductTileCss = "pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-tile .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";
|
|
28116
28280
|
|
|
28117
|
-
|
|
28281
|
+
let PnProductTile$1 = class extends HTMLElement {
|
|
28118
28282
|
constructor() {
|
|
28119
28283
|
super();
|
|
28120
28284
|
this.__registerHost();
|
|
@@ -28127,13 +28291,10 @@ const PnProductTile$1 = class extends HTMLElement {
|
|
|
28127
28291
|
|
|
28128
28292
|
const pnProductTileInfoCss = "pn-product-tile-info{-ms-flex-item-align:center;align-self:center}";
|
|
28129
28293
|
|
|
28130
|
-
|
|
28294
|
+
let PnProductTileInfo$1 = class extends HTMLElement {
|
|
28131
28295
|
constructor() {
|
|
28132
28296
|
super();
|
|
28133
28297
|
this.__registerHost();
|
|
28134
|
-
this.label = undefined;
|
|
28135
|
-
this.text = undefined;
|
|
28136
|
-
this.icon = undefined;
|
|
28137
28298
|
}
|
|
28138
28299
|
render() {
|
|
28139
28300
|
return (h(Host, null, (this.label) ? (h("p", null, h("small", null, this.label))) : null, (this.text) ? (h("h3", null, this.text)) : null));
|
|
@@ -28144,14 +28305,10 @@ h("pn-icon", { symbol: "align-center", small: "false", color: "black" });
|
|
|
28144
28305
|
|
|
28145
28306
|
const pnProductTilePriceCss = "pn-product-tile-price{margin-top:1em;white-space:nowrap;text-align:right}pn-product-tile-price span{font-size:3em;font-size:clamp(2em, 6vw, 3em)}pn-product-tile-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-tile-price+pn-product-tile-price{margin-left:1.5em}pn-product-tile-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-tile-price a{text-decoration:none;color:#005D92}pn-product-tile-price a h3{text-decoration:underline}";
|
|
28146
28307
|
|
|
28147
|
-
|
|
28308
|
+
let PnProductTilePrice$1 = class extends HTMLElement {
|
|
28148
28309
|
constructor() {
|
|
28149
28310
|
super();
|
|
28150
28311
|
this.__registerHost();
|
|
28151
|
-
this.label = undefined;
|
|
28152
|
-
this.amount = undefined;
|
|
28153
|
-
this.currency = undefined;
|
|
28154
|
-
this.url = undefined;
|
|
28155
28312
|
}
|
|
28156
28313
|
render() {
|
|
28157
28314
|
if (!this.amount) {
|
|
@@ -28176,7 +28333,7 @@ const { state: state$1, onChange: onChange$1 } = createStore({
|
|
|
28176
28333
|
|
|
28177
28334
|
const pnProfileModalCss = "pn-profile-modal{margin:1em auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:42.4rem;max-width:38.4rem;width:100%;padding:1.6rem;border-radius:8px;background:#FFFFFF}.profilemodal-container{padding:3.2rem;border-radius:8px;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);border:0.1rem solid #F3F2F2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profilemodal-logo{display:none}.profilemodal-logo svg{display:block;margin:0 auto 2.4rem}.profilemodal-heading{text-align:center;font-weight:700}.profilemodal-content{margin:1.6rem 0 0}.profilemodal-content pn-segmented-control{-webkit-transform:translateZ(0) translateX(-50%);transform:translateZ(0) translateX(-50%);left:50%}.profilemodal-cta{margin:1.6rem 0 0;-webkit-transition:max-height 0.15s ease, opacity 0.15s ease;transition:max-height 0.15s ease, opacity 0.15s ease;overflow:hidden;opacity:1}.profilemodal-cta[aria-hidden=true]{max-height:0;opacity:1}.profilemodal-cta>pn-button{width:100%}";
|
|
28178
28335
|
|
|
28179
|
-
|
|
28336
|
+
let PnProfileModal$1 = class extends HTMLElement {
|
|
28180
28337
|
constructor() {
|
|
28181
28338
|
super();
|
|
28182
28339
|
this.__registerHost();
|
|
@@ -28240,7 +28397,7 @@ const PnProfileModal$1 = class extends HTMLElement {
|
|
|
28240
28397
|
|
|
28241
28398
|
const pnProfileModalCustomernumberCss = ".pn-profile-modal-customernumber-button{display:block;border:0;margin:0;background:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;outline:0;padding:0.8rem;font-weight:400;font-size:1.4rem;border-radius:0.8rem;line-height:1.4;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;text-align:left;width:100%}.pn-profile-modal-customernumber-button:hover,.pn-profile-modal-customernumber-button:focus,.pn-profile-modal-customernumber-button:active{background:#EFFBFF}";
|
|
28242
28399
|
|
|
28243
|
-
|
|
28400
|
+
let PnProfileModalCustomernumber$1 = class extends HTMLElement {
|
|
28244
28401
|
constructor() {
|
|
28245
28402
|
super();
|
|
28246
28403
|
this.__registerHost();
|
|
@@ -28262,7 +28419,7 @@ const PnProfileModalCustomernumber$1 = class extends HTMLElement {
|
|
|
28262
28419
|
|
|
28263
28420
|
const pnProfileModalProfileCss = "pn-profile-modal-type[selected=true]:not([selected-profile=\"\"]) pn-profile-modal-profile[selected=false]{display:none}.pn-profile-modal-profile-listitem{overflow:hidden;max-height:10rem;-webkit-transition:max-height 0.15s ease;transition:max-height 0.15s ease;opacity:1}.pn-profile-modal-profile-listitem[aria-hidden=true]{max-height:0;opacity:0}.pn-profile-modal-profile-listitem-button{padding:0.8rem;margin:0;background:#FFFFFF;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;cursor:pointer;border-radius:0.8rem;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;text-align:left;width:100%}.pn-profile-modal-profile-listitem-button:hover,.pn-profile-modal-profile-listitem-button:focus,.pn-profile-modal-profile-listitem-button:active{background:#EFFBFF}.pn-profile-modal-profile-listitem[aria-hidden=true] .pn-profile-modal-profile-listitem-button{display:none}.pn-profile-modal-profile-listitem-heading{color:#005D92;font-weight:700;font-size:1.6rem}.pn-profile-modal-profile-listitem-description{color:#5E554A;font-weight:400;font-size:1.2rem}.pn-profile-modal-profile-details{max-height:300rem;-webkit-transition:max-height 0.15s ease;transition:max-height 0.15s ease;opacity:1}.pn-profile-modal-profile-details[aria-hidden=true]{max-height:0;opacity:0;overflow:hidden}.pn-profile-modal-profile-details>pn-button{position:relative;margin-left:-1.2rem}.pn-profile-modal-profile-details>pn-button .pn-button-content{font-weight:500}.pn-profile-modal-profile-details-company{border-top:1px solid #D3CECB;border-bottom:1px solid #D3CECB;padding:0.8rem 0.8rem;margin:1.6rem 0}.pn-profile-modal-profile-details-label{font-size:1.4rem;font-weight:500;margin-bottom:1.2rem}.pn-profile-modal-profile-details-company-heading{font-weight:700;font-size:1.6rem}.pn-profile-modal-profile-details-company-description{color:#5E554A;font-weight:400;font-size:1.2rem}.pn-profile-modal-profile-details-list{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;padding:0 0}.pn-profile-modal-profile-details-list-label{font-size:1.4rem;font-weight:500;margin:0 0 0 0.8rem}";
|
|
28264
28421
|
|
|
28265
|
-
|
|
28422
|
+
let PnProfileModalProfile$1 = class extends HTMLElement {
|
|
28266
28423
|
constructor() {
|
|
28267
28424
|
super();
|
|
28268
28425
|
this.__registerHost();
|
|
@@ -28303,7 +28460,7 @@ const PnProfileModalProfile$1 = class extends HTMLElement {
|
|
|
28303
28460
|
|
|
28304
28461
|
const pnProfileModalTypeCss = "pn-profile-modal-type{display:-ms-flexbox;display:flex;width:100%;padding:3.2rem 0 1.2rem;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;display:none}pn-profile-modal-type:first-of-type{margin-top:2.4rem}pn-profile-modal-type:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-modal-type:last-of-type .profileselectoroption{padding-bottom:0}pn-profile-modal-type[selected=true]{display:-ms-flexbox;display:flex;opacity:1}";
|
|
28305
28462
|
|
|
28306
|
-
|
|
28463
|
+
let PnProfileModalType$1 = class extends HTMLElement {
|
|
28307
28464
|
constructor() {
|
|
28308
28465
|
super();
|
|
28309
28466
|
this.__registerHost();
|
|
@@ -28354,13 +28511,13 @@ const translations$2 = {
|
|
|
28354
28511
|
|
|
28355
28512
|
const pnProfileSelectorCss = "pn-profile-selector{margin:1em auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:42.4rem;max-width:38.4rem;width:100%;padding:1.6rem;border-radius:8px;background:#FFFFFF}.profileselector-container{padding:3.2rem;border-radius:8px;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);border:0.1rem solid #F3F2F2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselector-logo svg{display:block;margin:0 auto 2.4rem}.profileselector-intromessage{text-align:center;font-weight:700}";
|
|
28356
28513
|
|
|
28357
|
-
|
|
28514
|
+
let PnProfileSelector$1 = class extends HTMLElement {
|
|
28358
28515
|
constructor() {
|
|
28359
28516
|
super();
|
|
28360
28517
|
this.__registerHost();
|
|
28361
|
-
this.language = "sv";
|
|
28362
|
-
this.returnUrl = "/";
|
|
28363
|
-
this.heading = null;
|
|
28518
|
+
this.language = "sv"; //sv
|
|
28519
|
+
this.returnUrl = "/"; //sv
|
|
28520
|
+
this.heading = null; //sv
|
|
28364
28521
|
this.i18n = translations$2["en"];
|
|
28365
28522
|
this.isLoading = true;
|
|
28366
28523
|
this.numberOfProfiles = 1;
|
|
@@ -28385,7 +28542,7 @@ const PnProfileSelector$1 = class extends HTMLElement {
|
|
|
28385
28542
|
|
|
28386
28543
|
const pnProfileSelectorOptionCss = "pn-profile-selector-option{display:-ms-flexbox;display:flex;width:100%;border-bottom:1px solid #D3CECB;padding:1.2rem 0}pn-profile-selector-option:first-of-type{margin-top:2.4rem}pn-profile-selector-option:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-selector-option:last-of-type .profileselectoroption{padding-bottom:0}.profileselectoroption{display:-ms-flexbox;display:flex;width:100%;padding:1.2rem 0;text-decoration:none}.profileselectoroption pn-icon{-ms-flex-item-align:center;align-self:center;position:relative;-webkit-transform:translateX(-1rem);transform:translateX(-1rem);-webkit-transition:-webkit-transform 0.25s linear;transition:-webkit-transform 0.25s linear;transition:transform 0.25s linear;transition:transform 0.25s linear, -webkit-transform 0.25s linear}.profileselectoroption:hover .profileselectoroption-name,.profileselectoroption:focus .profileselectoroption-name,.profileselectoroption:active .profileselectoroption-name{text-decoration:underline}.profileselectoroption:hover pn-icon,.profileselectoroption:focus pn-icon,.profileselectoroption:active pn-icon{-webkit-transform:none;transform:none;-webkit-transition-timing-function:ease;transition-timing-function:ease}.profileselectoroption-text{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselectoroption-title{font-size:1em;color:#005D92;font-weight:700}.profileselectoroption-description{font-size:0.75em;color:#5E554A;font-weight:normal}";
|
|
28387
28544
|
|
|
28388
|
-
|
|
28545
|
+
let PnProfileSelectorOption$1 = class extends HTMLElement {
|
|
28389
28546
|
constructor() {
|
|
28390
28547
|
super();
|
|
28391
28548
|
this.__registerHost();
|
|
@@ -28420,12 +28577,13 @@ const translations$1 = {
|
|
|
28420
28577
|
|
|
28421
28578
|
const pnProxioPricegroupCss = "pn-proxio-pricegroup div.proxio-pricegroup-container{max-width:99.4rem}pn-proxio-pricegroup div.weightcontainer{margin:2.8rem 0}pn-proxio-pricegroup div.weightvaluecontainer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}pn-proxio-pricegroup div.weightvaluecontainer pn-button{-webkit-transform:translateY(-0.4rem);transform:translateY(-0.4rem)}pn-proxio-pricegroup div.weightradios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:#005D92;width:80%;margin:0 3.6rem;position:relative;width:0%}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:45%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{width:65%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{margin-right:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:45%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{width:65%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{margin-left:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{-ms-flex:0 0 auto;flex:0 0 auto;width:80%}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{width:65%}}pn-proxio-pricegroup div.weightdata{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;gap:1.2rem;min-width:4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata label{font-size:1.4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata[data-carousel-position=\"0\"]{font-size:2rem;font-weight:700}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightdata[data-carousel-position=\"2\"],pn-proxio-pricegroup div.weightdata[data-carousel-position=\"-2\"]{display:none}}pn-proxio-pricegroup div.weightdata[data-carousel-position=outside]{display:none}pn-proxio-pricegroup div.weightdata input[type=radio]{-webkit-appearance:none;-moz-appearance:none;width:1.2rem;height:1.2rem;background-color:#005D92;border-radius:50%;margin:0;cursor:pointer}pn-proxio-pricegroup div.weightdata input[type=radio]:checked{z-index:1;-webkit-transform:translateY(-0.1rem);transform:translateY(-0.1rem);height:1.4rem;width:1.4rem;-webkit-box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92}pn-proxio-pricegroup div.weightline{width:100%;background-color:#F3F2F2;z-index:-1;height:0.8rem;-webkit-transform:translateX(2.1rem) translateY(1.32rem);transform:translateX(2.1rem) translateY(1rem);border-radius:2rem;margin-right:3.5rem}pn-proxio-pricegroup pn-button[disabled=disabled]{opacity:0.2}pn-proxio-pricegroup pn-button[disabled=disabled] button{cursor:default}pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after{background-color:#FFFFFF}pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before{display:none}pn-proxio-pricegroup pn-button button div.button-tooltip{display:none}pn-proxio-pricegroup pn-button button:focus .pn-button-bg{-webkit-box-shadow:none;box-shadow:none}";
|
|
28422
28579
|
|
|
28423
|
-
|
|
28580
|
+
let PnProxioPricegroup$1 = class extends HTMLElement {
|
|
28424
28581
|
constructor() {
|
|
28425
28582
|
super();
|
|
28426
28583
|
this.__registerHost();
|
|
28427
|
-
|
|
28584
|
+
/** Specifies which endpoint domain we should load from */
|
|
28428
28585
|
this.endpoint = null;
|
|
28586
|
+
//@Prop() culture: string = "sv-SE";
|
|
28429
28587
|
this.language = "sv";
|
|
28430
28588
|
this.market = "se";
|
|
28431
28589
|
this.tariffid = "";
|
|
@@ -28433,6 +28591,7 @@ const PnProxioPricegroup$1 = class extends HTMLElement {
|
|
|
28433
28591
|
this.activeWeightIndex = 0;
|
|
28434
28592
|
this.data = null;
|
|
28435
28593
|
this.i18n = translations$1["sv"];
|
|
28594
|
+
this.fetchHelper = new FetchHelper("proxiopricegroup");
|
|
28436
28595
|
}
|
|
28437
28596
|
componentWillLoad() {
|
|
28438
28597
|
this.setInitialValues().then(() => {
|
|
@@ -28552,7 +28711,7 @@ const PnProxioPricegroup$1 = class extends HTMLElement {
|
|
|
28552
28711
|
|
|
28553
28712
|
const pnProxioProductcardCss = "pn-proxio-productcard .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;border:solid 0.1rem #F9F8F8;border-radius:0.8rem;overflow:hidden;margin-left:auto;margin-right:auto;margin-bottom:1.6rem}@media screen and (max-width: 48em){pn-proxio-productcard .cardcontent{-ms-flex-direction:column;flex-direction:column}}pn-proxio-productcard .carddetails{min-width:70%;padding:2.4rem;display:-ms-flexbox;display:flex;gap:0.8rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 48em){pn-proxio-productcard .carddetails{gap:1.6rem;margin-bottom:0.8rem}}pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile]{display:none}@media screen and (max-width: 48em){pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile]{margin-top:1.6rem;display:block}pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile] .pn-illustration{max-width:8rem;height:8rem;margin-left:auto;margin-right:auto}}pn-proxio-productcard .cardcalltoactions{min-width:30%;background-color:#EFFBFF;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}@media screen and (max-width: 48em){pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration]{display:none}}pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration] .pn-illustration{max-width:8rem;margin-left:auto;margin-right:auto;margin-top:4rem}pn-proxio-productcard [slot=information]{display:-ms-flexbox;display:flex;gap:1rem}@media screen and (max-width: 48em){pn-proxio-productcard [slot=information]{-ms-flex-direction:column;flex-direction:column;gap:1.6rem}}pn-proxio-productcard [slot=uppertags]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:2rem}pn-proxio-productcard [slot=bottomtags]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:2rem;margin:0.8rem 0}pn-proxio-productcard .heading{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}pn-proxio-productcard [slot=title]{text-decoration:underline}@media screen and (max-width: 48em){pn-proxio-productcard [slot=title]{text-decoration:none}}";
|
|
28554
28713
|
|
|
28555
|
-
|
|
28714
|
+
let PnProxioProductcard$1 = class extends HTMLElement {
|
|
28556
28715
|
constructor() {
|
|
28557
28716
|
super();
|
|
28558
28717
|
this.__registerHost();
|
|
@@ -28565,13 +28724,10 @@ const PnProxioProductcard$1 = class extends HTMLElement {
|
|
|
28565
28724
|
|
|
28566
28725
|
const pnProxioProductcardDescriptionCss = "pn-proxio-productcard-description h3{font-size:1.6rem}pn-proxio-productcard-description ul{padding-left:2.5rem}pn-proxio-productcard-description li{font-size:1.6rem;line-height:2.2rem}pn-proxio-productcard-description .highlight{color:#0AA85C}";
|
|
28567
28726
|
|
|
28568
|
-
|
|
28727
|
+
let PnProxioProductcardDescription$1 = class extends HTMLElement {
|
|
28569
28728
|
constructor() {
|
|
28570
28729
|
super();
|
|
28571
28730
|
this.__registerHost();
|
|
28572
|
-
this.heading = undefined;
|
|
28573
|
-
this.highlight = undefined;
|
|
28574
|
-
this.description = undefined;
|
|
28575
28731
|
this.list = [];
|
|
28576
28732
|
}
|
|
28577
28733
|
render() {
|
|
@@ -28586,11 +28742,10 @@ const PnProxioProductcardDescription$1 = class extends HTMLElement {
|
|
|
28586
28742
|
|
|
28587
28743
|
const pnProxioProductcardInformationCss = "pn-proxio-productcard-information p.cardinfocontent-title{margin-bottom:0.4rem}pn-proxio-productcard-information p strong.cardinfocontent-label{font-size:1.4rem;font-weight:500}";
|
|
28588
28744
|
|
|
28589
|
-
|
|
28745
|
+
let PnProxioProductcardInformation$1 = class extends HTMLElement {
|
|
28590
28746
|
constructor() {
|
|
28591
28747
|
super();
|
|
28592
28748
|
this.__registerHost();
|
|
28593
|
-
this.label = undefined;
|
|
28594
28749
|
this.information = [];
|
|
28595
28750
|
}
|
|
28596
28751
|
render() {
|
|
@@ -28603,13 +28758,10 @@ const PnProxioProductcardInformation$1 = class extends HTMLElement {
|
|
|
28603
28758
|
|
|
28604
28759
|
const pnProxioProductcardPricelinkCss = "pn-proxio-productcard-pricelink{-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;margin:2rem 1rem;gap:0.8rem;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width: 48em){pn-proxio-productcard-pricelink{margin:2.4rem 1rem}}pn-proxio-productcard-pricelink h3{font-size:2rem}pn-proxio-productcard-pricelink pn-button{min-width:17.3rem}pn-proxio-productcard-pricelink pn-button a .pn-button-content{font-size:1.4rem;font-weight:500}@media screen and (max-width: 48em){pn-proxio-productcard-pricelink pn-button{min-width:30rem}}";
|
|
28605
28760
|
|
|
28606
|
-
|
|
28761
|
+
let PnProxioProductcardPricelink$1 = class extends HTMLElement {
|
|
28607
28762
|
constructor() {
|
|
28608
28763
|
super();
|
|
28609
28764
|
this.__registerHost();
|
|
28610
|
-
this.price = undefined;
|
|
28611
|
-
this.link = undefined;
|
|
28612
|
-
this.linktext = undefined;
|
|
28613
28765
|
}
|
|
28614
28766
|
render() {
|
|
28615
28767
|
return this.link && this.linktext ?
|
|
@@ -28620,7 +28772,7 @@ const PnProxioProductcardPricelink$1 = class extends HTMLElement {
|
|
|
28620
28772
|
|
|
28621
28773
|
const pnQuickCtaCss = "pn-quick-cta{width:100%}pn-quick-cta .quick-cta__content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;gap:2.4rem;width:100%}pn-quick-cta .quick-cta__content .quick-cta__content__heading{padding:0;margin:0;font-size:2.4rem;font-weight:500;color:#0D234B}@media screen and (max-width: 768px){pn-quick-cta .quick-cta__content .quick-cta__content__heading{display:none}}@media screen and (min-width: 1640px){pn-quick-cta .quick-cta__content .quick-cta__content__heading{font-size:2.8rem;font-weight:700}}pn-quick-cta .quick-cta__content .quick-cta__content__preamble{font-weight:400;font-size:1.6rem;line-height:140%;padding:0;margin:0;color:#2D2013}pn-quick-cta .quick-cta__content [slot=quick-cta-cta] a{white-space:nowrap}pn-quick-cta .quick-cta__content [slot=quick-cta-cta] a:hover{text-decoration:none}";
|
|
28622
28774
|
|
|
28623
|
-
|
|
28775
|
+
let PnQuickCta$1 = class extends HTMLElement {
|
|
28624
28776
|
constructor() {
|
|
28625
28777
|
super();
|
|
28626
28778
|
this.__registerHost();
|
|
@@ -28636,10 +28788,11 @@ const PnQuickCta$1 = class extends HTMLElement {
|
|
|
28636
28788
|
|
|
28637
28789
|
const pnQuoteCardCss = "pn-quote-card .pn-quote-card__container{margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;min-height:262px;padding:0 2.4rem}pn-quote-card .pn-quote-card__quote__container{padding:0 3.2rem}pn-quote-card .pn-quote-card__quote{position:relative;font-weight:400;font-size:2rem;line-height:140%;margin:0}pn-quote-card .pn-quote-card__quote svg{position:absolute;left:-3.2rem;top:0.2rem}pn-quote-card .pn-quote-card__reference__container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;gap:1.6rem;-ms-flex-align:center;align-items:center}pn-quote-card .pn-quote-card__reference__name{display:block;font-weight:400;font-size:2.4rem;line-height:2.9rem}pn-quote-card .pn-quote-card__reference__occupation{display:block;font-weight:400;font-size:1.4rem;line-height:1.7rem}pn-quote-card [slot=illustration]{padding:0}pn-quote-card [slot=illustration-big]{padding:0.8rem 0}pn-quote-card [slot=illustration],pn-quote-card [slot=illustration-big]{aspect-ratio:1/1}pn-quote-card [slot=illustration] picture,pn-quote-card [slot=illustration-big] picture{aspect-ratio:1/1}pn-quote-card [slot=illustration] picture img,pn-quote-card [slot=illustration-big] picture img{-webkit-clip-path:circle(50%);clip-path:circle(50%)}pn-quote-card [slot=horizontal-line],pn-quote-card [slot=vertical-line]{display:-ms-flexbox;display:flex}pn-quote-card[data-line-color=white] .pn-quote-card__section{background-color:#005D92;color:#FFFFFF}pn-quote-card[data-line-color=white] .pn-line-shape__line,pn-quote-card[data-line-color=white] .pn-line-shape__dot{border-color:#FFFFFF}pn-quote-card[data-line-color=white] .pn-quote-card__quote svg>path{fill:#FFFFFF}pn-quote-card[data-line-color=blue] .pn-quote-card__section{background-color:#FFFFFF}pn-quote-card[data-line-color=blue] .pn-line-shape__line,pn-quote-card[data-line-color=blue] .pn-line-shape__dot{border-color:#00A0D6}pn-quote-card[data-line-color=blue] .pn-quote-card__quote svg>path{fill:#00A0D6}pn-quote-card[data-card-style=standalone][data-line-color=white] .pn-quote-card__section{border-radius:2.4rem}pn-quote-card[data-card-style=standalone][data-line-color=white] .pn-quote-card__container{padding:2.4rem}pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:100%;margin:0 auto}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:70%}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:60%}}pn-quote-card[data-card-style=standalone] .pn-quote-card__container{min-height:unset;padding:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=standalone] .pn-quote-card__container{padding:0 2.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;gap:3.2rem;padding:2.4rem 1.6rem 1.6rem 1.6rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=standalone] .pn-quote-card__quote__container{padding:2.4rem 3.2rem 1.6rem 3.2rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote{font-size:1.6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__quote{font-size:2rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote svg{display:block;margin-bottom:0.8rem;position:relative;top:0;left:0}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__container [slot=illustration] picture img{height:60px;width:60px}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__container [slot=illustration] picture img{height:90px;width:90px}}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__name{font-size:1.6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__name{font-size:2.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__occupation{font-size:1.2rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__occupation{font-size:1.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__large-photo{display:none}pn-quote-card[data-card-style=combo] .pn-quote-card__section{width:100%;margin:0 auto;padding-top:4rem;padding-bottom:4rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__section{padding-bottom:0}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__section{padding-top:10rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__container{min-height:10rem;padding-bottom:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:90%;width:100%}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:768px;width:100%}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:1140px;width:100%;padding:0 5.6rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:1440px;width:100%;padding:0 12rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__quote__container{padding-bottom:0;padding-left:0;padding-right:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote__container{padding-left:2.4rem;padding-right:2.4rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:2rem;padding-left:2.4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-0.8rem;top:0.2rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{padding-left:4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:0}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:2.4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:0;top:0.4rem;scale:1.3}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{padding-left:0;font-size:3.2rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-4.8rem;top:1rem;scale:1.4}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-6.4rem;top:1.6rem;scale:1.8}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}pn-quote-card[data-card-style=combo] [slot=illustration] picture>img{max-width:6rem;max-height:6rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] [slot=illustration] picture>img{max-width:10rem;max-height:10rem}}@media screen and (min-width: 1140px){pn-quote-card[data-card-style=combo] [slot=illustration]{display:none}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference{text-align:right}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{display:block;font-size:1.4rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:1.6rem}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:2rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:3.2rem;margin-bottom:1rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{display:block;font-size:1.2rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{font-size:1.4rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{font-size:2rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:none}@media screen and (min-width: 1140px){pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:block}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]{width:18rem;height:18rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big] picture>img{width:18rem;height:18rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:block;width:24rem;height:24rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]{width:24rem;height:24rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]>picture>img{width:24rem;height:24rem}}";
|
|
28638
28790
|
|
|
28639
|
-
|
|
28791
|
+
let PnQuoteCard$1 = class extends HTMLElement {
|
|
28640
28792
|
constructor() {
|
|
28641
28793
|
super();
|
|
28642
28794
|
this.__registerHost();
|
|
28795
|
+
//props
|
|
28643
28796
|
this.quote = null;
|
|
28644
28797
|
this.name = null;
|
|
28645
28798
|
this.occupation = null;
|
|
@@ -28697,11 +28850,13 @@ const { state, onChange } = createStore({
|
|
|
28697
28850
|
|
|
28698
28851
|
const pnSidenavCss = "body[data-siteheader-sidemenuopen=true]{max-height:100vh;overflow:hidden}@media screen and (min-width: 60em){body[data-siteheader-sidemenuopen=true]{max-height:initial;overflow:initial}}pn-sidenav{display:block;height:auto;width:100vw;padding:0 1.6rem;background-color:#FFFFFF;z-index:6;-webkit-transform:translateX(-100vw);transform:translateX(-100vw);-webkit-transition:-webkit-transform 0.2s 0s;transition:-webkit-transform 0.2s 0s;transition:transform 0.2s 0s;transition:transform 0.2s 0s, -webkit-transform 0.2s 0s;-webkit-transition-property:visibility, -webkit-transform;transition-property:visibility, -webkit-transform;transition-property:transform, visibility;transition-property:transform, visibility, -webkit-transform;-ms-flex-flow:column;flex-flow:column;visibility:hidden;position:fixed;top:10.2rem;bottom:0;left:0}pn-sidenav[open=true]{visibility:visible;-webkit-transform:none;transform:none}@media screen and (min-width: 48em){pn-sidenav{top:15.3rem}}@media screen and (min-width: 64em){pn-sidenav{position:relative;-webkit-transform:none;transform:none;visibility:visible;top:0;z-index:inherit;width:100%;padding:0;height:auto;bottom:auto;left:auto}}";
|
|
28699
28852
|
|
|
28700
|
-
|
|
28853
|
+
let PnSidenav$1 = class extends HTMLElement {
|
|
28701
28854
|
constructor() {
|
|
28702
28855
|
super();
|
|
28703
28856
|
this.__registerHost();
|
|
28857
|
+
/** Specifies which language we want to show navigation in (sv,da,fi,no,en) */
|
|
28704
28858
|
this.language = "sv";
|
|
28859
|
+
/** Sets the label of the navigation (Required if multiple nav elements are on a page) */
|
|
28705
28860
|
this.navLabel = "";
|
|
28706
28861
|
this.i18n = { open: '', close: '', navLabel: '' };
|
|
28707
28862
|
}
|
|
@@ -28734,7 +28889,7 @@ const PnSidenav$1 = class extends HTMLElement {
|
|
|
28734
28889
|
|
|
28735
28890
|
const pnSidenavLevelCss = "pn-sidenav-level{display:block;-ms-flex-preferred-size:100%;flex-basis:100%}pn-sidenav-level[data-level=\"2\"]{padding-left:2.5em;overflow:hidden;-webkit-transition:max-height ease 0.2s;transition:max-height ease 0.2s;max-height:40em}pn-sidenav-level[data-level=\"2\"][aria-hidden=true]{max-height:0}";
|
|
28736
28891
|
|
|
28737
|
-
|
|
28892
|
+
let PnSidenavLevel$1 = class extends HTMLElement {
|
|
28738
28893
|
constructor() {
|
|
28739
28894
|
super();
|
|
28740
28895
|
this.__registerHost();
|
|
@@ -28789,17 +28944,25 @@ const PnSidenavLevel$1 = class extends HTMLElement {
|
|
|
28789
28944
|
|
|
28790
28945
|
const pnSidenavLinkCss = "pn-sidenav-link{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.pn-sidenav-link{font-weight:normal;position:relative;border:0 none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;color:#005D92;font-size:1em;padding:1.1rem 1.5rem 1.1rem;overflow:hidden;text-decoration:none;cursor:pointer;-ms-flex-positive:1;flex-grow:1}.pn-sidenav-link::before{content:\"\";display:block;width:0.4rem;border-top-right-radius:0.3rem;border-bottom-right-radius:0.3rem;height:100%;position:absolute;left:0;top:0;bottom:0;-webkit-transform:translateX(-0.4rem);transform:translateX(-0.4rem);background:#005D92;-webkit-transition:-webkit-transform linear 0.35s;transition:-webkit-transform linear 0.35s;transition:transform linear 0.35s;transition:transform linear 0.35s, -webkit-transform linear 0.35s}.pn-sidenav-link:hover,.pn-sidenav-link:focus,[current=true]>.pn-sidenav-link{background-color:#E0F8FF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link:hover::before,.pn-sidenav-link:focus::before,[current=true]>.pn-sidenav-link::before{-webkit-transform:none;transform:none}.pn-sidenav-link:active{background-color:#F3F2F2;color:#00A0D6;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link>pn-icon{padding-right:1em}.pn-sidenav-link-expand{margin-left:auto;border:0;font-size:1em;background:transparent;outline:0;padding:0 1em 0 0.5em;cursor:pointer}.pn-sidenav-link-expand:hover,.pn-sidenav-link-expand:focus,[current=true]>.pn-sidenav-link-expand{background-color:#E0F8FF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}.pn-sidenav-link-expand:hover::before,.pn-sidenav-link-expand:focus::before,[current=true]>.pn-sidenav-link-expand::before{-webkit-transform:none;transform:none}button>.pn-sidenav-link-expand{padding-right:0}.pn-sidenav-link-expand pn-icon{width:14px}";
|
|
28791
28946
|
|
|
28792
|
-
|
|
28947
|
+
let PnSidenavLink$1 = class extends HTMLElement {
|
|
28793
28948
|
constructor() {
|
|
28794
28949
|
super();
|
|
28795
28950
|
this.__registerHost();
|
|
28951
|
+
/** Name */
|
|
28796
28952
|
this.name = "";
|
|
28953
|
+
/** Href */
|
|
28797
28954
|
this.href = "";
|
|
28955
|
+
/** Target */
|
|
28798
28956
|
this.target = null;
|
|
28957
|
+
/** Link id */
|
|
28799
28958
|
this.linkid = null;
|
|
28959
|
+
/** Icon */
|
|
28800
28960
|
this.icon = "";
|
|
28961
|
+
/** Currently selected */
|
|
28801
28962
|
this.current = false;
|
|
28963
|
+
/** Level ID that we control toggle on */
|
|
28802
28964
|
this.levelId = "";
|
|
28965
|
+
/** Menu item is open */
|
|
28803
28966
|
this.open = false;
|
|
28804
28967
|
this.hasChildren = false;
|
|
28805
28968
|
}
|
|
@@ -28845,10 +29008,11 @@ const PnSidenavLink$1 = class extends HTMLElement {
|
|
|
28845
29008
|
|
|
28846
29009
|
const pnSidenavTogglebuttonCss = "pn-sidenav-togglebutton{display:block;width:100%;padding:0.8rem 1.6rem;background:#EFFBFF}@media screen and (min-width: 64em){pn-sidenav-togglebutton{display:none}}";
|
|
28847
29010
|
|
|
28848
|
-
|
|
29011
|
+
let PnSidenavTogglebutton$1 = class extends HTMLElement {
|
|
28849
29012
|
constructor() {
|
|
28850
29013
|
super();
|
|
28851
29014
|
this.__registerHost();
|
|
29015
|
+
/** Specifies which language we want to show navigation in (sv,da,fi,no,en) */
|
|
28852
29016
|
this.label = "";
|
|
28853
29017
|
this.i18n = { open: '', close: '', navLabel: '' };
|
|
28854
29018
|
}
|
|
@@ -28866,10 +29030,11 @@ const PnSidenavTogglebutton$1 = class extends HTMLElement {
|
|
|
28866
29030
|
|
|
28867
29031
|
const pnSiteFooterCss = "pn-site-footer:not([theme=dotcom]){display:block;line-height:1.5}pn-site-footer:not([theme=dotcom]) a{color:#005D92}pn-site-footer:not([theme=dotcom]) a:hover{color:#0D234B;text-decoration:underline}pn-site-footer:not([theme=dotcom]) h3{font-size:2.4rem;margin-bottom:0.5rem;line-height:1.2}pn-site-footer:not([theme=dotcom]) p{font-size:1.6rem}pn-site-footer:not([theme=dotcom]) pn-site-footer-col ul.social-media{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;gap:1.6rem;row-gap:1.2rem;margin-bottom:1.6rem;-ms-flex-wrap:wrap;flex-wrap:wrap}pn-site-footer:not([theme=dotcom]) pn-site-footer-col ul.social-media li{margin-bottom:0}pn-site-footer:not([theme=dotcom])>svg{display:block}pn-site-footer:not([theme=dotcom])>div{background:#F3F2F2}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-top{display:-ms-flexbox;display:flex}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-cols{-ms-flex-item-align:center;align-self:center;-ms-flex-pack:center;justify-content:center;display:block;-ms-flex-flow:row wrap;flex-flow:row wrap;margin:0 auto;max-width:90em}@media screen and (min-width: 33.125em){pn-site-footer:not([theme=dotcom]) .pn-sitefooter-cols{display:-ms-flexbox;display:flex}}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom]{max-width:90em;margin:0 auto;padding:1.6rem 0;display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-top:1px solid #D3CECB;border-bottom:1px solid #D3CECB}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom] span,pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom] a{line-height:2;margin:0 1.6rem;text-decoration:none}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom] li{line-height:2em;margin:0 1.6rem}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-logo{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;padding:3rem}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-logo svg{display:block;width:13.3rem;height:2.6rem}pn-site-footer:not([theme=dotcom]) .pn-sitefooter-logo:has(div) a slot-fb{display:none}pn-site-footer[theme=dotcom]{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#0D234B;margin:0 auto}pn-site-footer[theme=dotcom]>svg{background-color:#FFFFFF}pn-site-footer[theme=dotcom]>svg path{fill:#0D234B}pn-site-footer[theme=dotcom] .pn-sitefooter-top{width:100%;position:relative;top:-1px;background-color:#0D234B}pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-top:4.8rem;padding-left:3rem;padding-right:3rem;margin:0 auto}@media screen and (min-width: 768px){pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols{max-width:72rem}}@media screen and (min-width: 992px){pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols{max-width:96rem;padding-left:0;padding-right:0}}@media screen and (min-width: 1200px){pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols{max-width:114rem}}@media screen and (min-width: 1640px){pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols{max-width:144rem}}pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols h3{font-weight:500}pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols a:hover{text-decoration:underline;color:#FFFFFF}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom{width:100%;padding:0.8rem 0;background-color:#0D234B}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]{max-width:120rem;margin:0 auto;padding-left:3rem;padding-right:3rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:2.4rem}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.social-media{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:1.6rem 0;border-top:1px solid #005d924d;border-bottom:1px solid #005d924d}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.social-media>ul{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:2.4rem;margin:0;padding:0;list-style-type:none}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.social-media>ul>li:hover svg>circle{fill:#005D92}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.copyright{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;gap:2.4rem}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.copyright *{color:#FFFFFF;font-weight:400;font-size:1.4rem;line-height:1.96rem}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.copyright>ul{margin:0;padding:0}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.copyright>ul>li{display:inline;margin-left:2.4rem}pn-site-footer[theme=dotcom] .pn-sitefooter-bottom>[slot=bottom]>.copyright>ul>li:first-child{margin-left:0}pn-site-footer[theme=dotcom] .pn-sitefooter-logo{padding:3rem;margin:0 auto}pn-site-footer[theme=dotcom] .pn-sitefooter-logo [name=logo]>svg{display:block;width:13.3rem;height:2.6rem}pn-site-footer[theme=dotcom] .pn-sitefooter-logo [name=logo]>svg>path{fill:#00A0D6}";
|
|
28868
29032
|
|
|
28869
|
-
|
|
29033
|
+
let PnSiteFooter$1 = class extends HTMLElement {
|
|
28870
29034
|
constructor() {
|
|
28871
29035
|
super();
|
|
28872
29036
|
this.__registerHost();
|
|
29037
|
+
/** What you write in the comment block above each prop is what ends up in the description fields in the prop table in the documentation */
|
|
28873
29038
|
this.url = '#';
|
|
28874
29039
|
this.linktitle = 'PostNord';
|
|
28875
29040
|
this.theme = null;
|
|
@@ -28883,7 +29048,7 @@ const PnSiteFooter$1 = class extends HTMLElement {
|
|
|
28883
29048
|
|
|
28884
29049
|
const pnSiteFooterColCss = "pn-site-footer-col:not([theme=dotcom]){min-width:15em;padding:2.5em 1.5rem 0;width:100%}@media screen and (min-width: 33.125em){pn-site-footer-col:not([theme=dotcom]){width:50%}}@media screen and (min-width: 60em){pn-site-footer-col:not([theme=dotcom]){max-width:25%}}pn-site-footer-col:not([theme=dotcom]) ul{list-style-type:none;padding:0;margin:0}pn-site-footer-col:not([theme=dotcom]) li{margin-bottom:1.6rem}pn-site-footer-col:not([theme=dotcom]) a{text-decoration:none;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}pn-site-footer-col:not([theme=dotcom]) a h3{color:#000000}pn-site-footer-col:not([theme=dotcom]) p{margin-top:0;margin-bottom:1rem}pn-site-footer-col[theme=dotcom]{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-site-footer-col[theme=dotcom] *{color:#FFFFFF}@media screen and (min-width: 768px){pn-site-footer-col[theme=dotcom]{width:33%;padding-left:0.8rem;padding-right:0.8rem}pn-site-footer-col[theme=dotcom]:nth-child(1),pn-site-footer-col[theme=dotcom]:nth-child(4){padding-left:0}pn-site-footer-col[theme=dotcom]:nth-child(3),pn-site-footer-col[theme=dotcom]:nth-child(5){padding-right:0}}@media screen and (min-width: 1024px){pn-site-footer-col[theme=dotcom]{width:20%;padding-left:1.6rem;padding-right:1.6rem}pn-site-footer-col[theme=dotcom]:nth-child(1){width:20%;padding-left:0}pn-site-footer-col[theme=dotcom]:nth-child(4){padding-left:1.6rem}pn-site-footer-col[theme=dotcom]:nth-child(3){padding-right:1.6rem}pn-site-footer-col[theme=dotcom]:nth-child(5){padding-right:0}}pn-site-footer-col[theme=dotcom] h3{margin-bottom:1rem;font-weight:700;font-size:2rem;line-height:2.2rem}@media screen and (min-width: 1200px){pn-site-footer-col[theme=dotcom] h3{font-size:2.4rem;line-height:2.64rem}}pn-site-footer-col[theme=dotcom] ul{list-style-type:none;padding:0;margin:0;margin-bottom:1.4rem}pn-site-footer-col[theme=dotcom] ul li{margin-bottom:1rem}pn-site-footer-col[theme=dotcom] a{text-decoration:none;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-weight:400;font-size:1.6rem;line-height:2.24rem}pn-site-footer-col[theme=dotcom] a h3{color:#FFFFFF}pn-site-footer-col[theme=dotcom] p{margin-top:0;margin-bottom:1rem}pn-site-footer-col[theme=dotcom] div{min-height:150px;margin-bottom:1.4rem}pn-site-footer-col[theme=dotcom] div p:nth-child(odd){font-weight:500}";
|
|
28885
29050
|
|
|
28886
|
-
|
|
29051
|
+
let PnSiteFooterCol$1 = class extends HTMLElement {
|
|
28887
29052
|
constructor() {
|
|
28888
29053
|
super();
|
|
28889
29054
|
this.__registerHost();
|
|
@@ -28918,12 +29083,15 @@ const languageData = {
|
|
|
28918
29083
|
|
|
28919
29084
|
const pnSiteSelectorCss = "pn-site-selector{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;max-height:5.2rem}@media screen and (min-width: 75em){pn-site-selector{display:block}}.siteselector-heading{display:block;padding:0;margin-bottom:1.6rem}@media screen and (min-width: 75em){.siteselector-heading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-top:0.8rem}}.siteselector-list{list-style:none;margin:0;padding:0}";
|
|
28920
29085
|
|
|
28921
|
-
|
|
29086
|
+
let PnSiteSelector$1 = class extends HTMLElement {
|
|
28922
29087
|
constructor() {
|
|
28923
29088
|
super();
|
|
28924
29089
|
this.__registerHost();
|
|
29090
|
+
/* Site selector Button text */
|
|
28925
29091
|
this.buttontext = "postnord";
|
|
29092
|
+
/* Site selector flyout title */
|
|
28926
29093
|
this.heading = "PostNord";
|
|
29094
|
+
/** Specifies which language we want to show navigation in (sv,da,fi,no,en) */
|
|
28927
29095
|
this.language = "sv";
|
|
28928
29096
|
this.i18n = { navlabel: "Site selector" };
|
|
28929
29097
|
}
|
|
@@ -28944,13 +29112,17 @@ const PnSiteSelector$1 = class extends HTMLElement {
|
|
|
28944
29112
|
|
|
28945
29113
|
const pnSiteSelectorItemCss = "pn-site-selector-item{display:block}pn-site-selector-item>div,pn-site-selector-item>a{padding:0.8rem 0;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;position:relative}.siteselector-item-link{border-radius:0;text-decoration:none;color:#005D92;-ms-flex-direction:row;flex-direction:row}.siteselector-item-link:hover,.siteselector-item-link:focus{background-color:#F3F2F2;color:#005D92;text-decoration:underline;outline:none;-webkit-box-shadow:none;box-shadow:none}.siteselector-item-link:active{background-color:#F3F2F2;color:#00A0D6;outline:none}.siteselector-item-link>span{-ms-flex-positive:1;flex-grow:1}.siteselector-item-link pn-icon{right:3.2rem;height:1.9rem;width:1.9rem;-ms-flex-item-align:center;align-self:center}.siteselector-item-link pn-icon svg{width:100%;height:auto}.siteselector-item-title{display:block}.siteselector-item-description{color:#2D2013;font-size:1.28rem}a:hover>.siteselector-item-description,a:focus>.siteselector-item-description{background-color:#F3F2F2;color:#005D92;text-decoration:underline;outline:none}a:active>.siteselector-item-description{background-color:#F3F2F2;color:#00A0D6;outline:none}";
|
|
28946
29114
|
|
|
28947
|
-
|
|
29115
|
+
let PnSiteSelectorItem$1 = class extends HTMLElement {
|
|
28948
29116
|
constructor() {
|
|
28949
29117
|
super();
|
|
28950
29118
|
this.__registerHost();
|
|
29119
|
+
/* Link URL */
|
|
28951
29120
|
this.url = "";
|
|
29121
|
+
/* Link title */
|
|
28952
29122
|
this.heading = "";
|
|
29123
|
+
/* Link description */
|
|
28953
29124
|
this.description = "";
|
|
29125
|
+
/* Open link in new window */
|
|
28954
29126
|
this.newwindow = false;
|
|
28955
29127
|
}
|
|
28956
29128
|
render() {
|
|
@@ -28961,7 +29133,7 @@ const PnSiteSelectorItem$1 = class extends HTMLElement {
|
|
|
28961
29133
|
|
|
28962
29134
|
const pnSpotlightCss = "pn-spotlight .pn-spotlight__container{overflow:hidden}@media screen and (max-width: 991px){pn-spotlight .pn-spotlight__container{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}pn-spotlight [slot=mobile-heading]{text-align:center;padding-bottom:1.6rem;font-weight:500;color:#0D234B}@media screen and (min-width: 769px){pn-spotlight [slot=mobile-heading]{display:none}}pn-spotlight .pn-spotlight__container__wrapper{position:relative;max-width:100%}@media screen and (min-width: 992px){pn-spotlight .pn-spotlight__container__wrapper{max-width:90%;margin:0 auto}}@media screen and (min-width: 1640px){pn-spotlight .pn-spotlight__container__wrapper{max-width:80%}}pn-spotlight .pn-spotlight__container__wrapper__content{position:relative;margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;left:-57.5px;width:calc(100% + 57.5px)}@media screen and (min-width: 768px){pn-spotlight .pn-spotlight__container__wrapper__content{left:-50px;width:calc(100% + 50px)}}@media screen and (min-width: 992px){pn-spotlight .pn-spotlight__container__wrapper__content{left:0;width:100%}}pn-spotlight .pn-spotlight__container__wrapper__content__ball{border-radius:50%;min-height:75px;aspect-ratio:1/1;margin-right:1.5rem}@media screen and (min-width: 768px){pn-spotlight .pn-spotlight__container__wrapper__content__ball{min-height:85px;margin-right:2.5rem}}pn-spotlight [slot=content]{display:-ms-flexbox;display:flex;border-top-left-radius:10rem;border-bottom-left-radius:10rem;-ms-flex-align:center;align-items:center;-ms-flex-pack:right;justify-content:right;padding:0 1.5rem;padding-left:50px;width:100%}@media screen and (min-width: 992px){pn-spotlight [slot=content]{padding:0 2rem;border-radius:10rem}}pn-spotlight[data-cta-color=green] [slot=content]{background-color:#DCF6E7}pn-spotlight[data-cta-color=green] .pn-spotlight__container__wrapper__content__ball{background-color:#DCF6E7}pn-spotlight[data-cta-color=coral] [slot=content]{background-color:#FDEFEE}pn-spotlight[data-cta-color=coral] .pn-spotlight__container__wrapper__content__ball{background-color:#FDEFEE}pn-spotlight[data-cta-color=blue] [slot=content]{background-color:#EFFBFF}pn-spotlight[data-cta-color=blue] .pn-spotlight__container__wrapper__content__ball{background-color:#EFFBFF}";
|
|
28963
29135
|
|
|
28964
|
-
|
|
29136
|
+
let PnSpotlight$1 = class extends HTMLElement {
|
|
28965
29137
|
constructor() {
|
|
28966
29138
|
super();
|
|
28967
29139
|
this.__registerHost();
|
|
@@ -28978,7 +29150,7 @@ const PnSpotlight$1 = class extends HTMLElement {
|
|
|
28978
29150
|
const pnStatsInfoCss = "pn-stats-info .pn-stats-info__container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}pn-stats-info .pn-stats-info__container__map{display:none}pn-stats-info .pn-stats-info-image-container{display:none}pn-stats-info .pn-stats-info__container__content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;padding:2.4rem 2.4rem 1.6rem;width:100%;background-color:#0D234B;border-radius:2.4rem}@media screen and (min-width: 992px){pn-stats-info .pn-stats-info__container__content{padding:4rem 2.4rem 1.6rem}}@media screen and (min-width: 1200px){pn-stats-info .pn-stats-info__container__content{padding:5.6rem 2.4rem 3.2rem}}pn-stats-info .pn-stats-info__container__content__heading{color:#F06365;margin-bottom:2.4rem;-ms-flex-item-align:center;align-self:center;text-align:center;font-size:3rem;line-height:110%}@media screen and (min-width: 1200px){pn-stats-info .pn-stats-info__container__content__heading{font-weight:700;font-size:4.8rem}}pn-stats-info .pn-stats-info__container__content__data{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2n),pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2n)~pn-stats-info-data{width:50%}@media screen and (min-width: 768px){pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(1){width:100%}pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2),pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2)~pn-stats-info-data{width:50%}pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(3n),pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(3n)~pn-stats-info-data{width:33%}pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(8),pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(8)~pn-stats-info-data{width:25%}}pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container{-ms-flex-pack:start;justify-content:flex-start;min-height:0;padding:2.4rem}@media screen and (min-width: 768px){pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container{min-height:0}}@media screen and (min-width: 992px){pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container{min-height:0}}@media screen and (min-width: 1200px){pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container{min-height:0}}pn-stats-info[data-stats-image=background] .pn-stats-info__container__map{display:none;border-top-left-radius:2.4rem;border-bottom-left-radius:2.4rem}@media screen and (min-width: 768px){pn-stats-info[data-stats-image=background] .pn-stats-info__container__map{display:block;max-width:46rem;width:100%;background-color:#0D234B;background-repeat:no-repeat;background-position:bottom center;background-size:55%}}@media screen and (min-width: 1200px){pn-stats-info[data-stats-image=background] .pn-stats-info__container__map{background-size:contain}}pn-stats-info[data-stats-image=background] .pn-stats-info-image-container{display:none}pn-stats-info[data-stats-image=background] .pn-stats-info__container__content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%;background-color:#0D234B;background-repeat:no-repeat;background-position:bottom left;background-size:50%;background-blend-mode:overlay;border-radius:2.4rem}@media screen and (min-width: 768px){pn-stats-info[data-stats-image=background] .pn-stats-info__container__content{border-top-left-radius:0;border-bottom-left-radius:0;max-width:54rem;background-position:-999px -999px;background-size:0}}@media screen and (min-width: 1200px){pn-stats-info[data-stats-image=background] .pn-stats-info__container__content{max-width:100%}}pn-stats-info[data-stats-image=background] .pn-stats-info__container__content__data{min-height:0}pn-stats-info[data-stats-image=image] .pn-stats-info__container{-ms-flex-direction:column;flex-direction:column;padding-top:0}@media screen and (min-width: 992px){pn-stats-info[data-stats-image=image] .pn-stats-info__container{-ms-flex-direction:row;flex-direction:row}}pn-stats-info[data-stats-image=image] .pn-stats-info__container__map{display:none}pn-stats-info[data-stats-image=image] .pn-stats-info-image-container{display:block;position:relative}pn-stats-info[data-stats-image=image] .pn-stats-info-image-container [slot=illustration]{border-top-left-radius:2.4rem;border-top-right-radius:2.4rem}pn-stats-info[data-stats-image=image] .pn-stats-info-image-container [slot=illustration]>picture>img{width:100%;height:auto;border-top-left-radius:2.4rem;border-top-right-radius:2.4rem;border-bottom-left-radius:0;border-bottom-right-radius:0}@media screen and (min-width: 992px){pn-stats-info[data-stats-image=image] .pn-stats-info-image-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:#0D234B;padding-left:4rem;border-top-left-radius:2.4rem;border-bottom-left-radius:2.4rem}pn-stats-info[data-stats-image=image] .pn-stats-info-image-container [slot=illustration] img{-webkit-clip-path:circle(50%);clip-path:circle(50%);-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;aspect-ratio:1;max-width:45rem}}pn-stats-info[data-stats-image=image] .pn-stats-info__container__content{width:100%;max-width:100%;border-bottom-right-radius:2.4rem;border-bottom-left-radius:2.4rem;border-top-right-radius:0;border-top-left-radius:0}@media screen and (min-width: 768px){pn-stats-info[data-stats-image=image] .pn-stats-info__container__content{-ms-flex-pack:center;justify-content:center}}@media screen and (min-width: 992px){pn-stats-info[data-stats-image=image] .pn-stats-info__container__content{border-top-right-radius:2.4rem;border-bottom-right-radius:2.4rem;border-bottom-left-radius:0;max-width:100%}}@media screen and (min-width: 992px){pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__heading{font-size:4.8rem}}pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data{width:100%;height:auto;min-height:0}pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container{-ms-flex-pack:start;justify-content:flex-start;min-height:5.6rem}@media screen and (min-width: 768px){pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container{min-height:5.6rem;padding:2.4rem}}@media screen and (min-width: 1200px){pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container{min-height:5rem}}@media screen and (min-width: 992px){pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container__content__data{font-size:5.6rem}}@media screen and (min-width: 992px){pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container__content__unit{font-size:5.6rem}}.bleed-container:has(pn-stats-info){padding:0;margin-bottom:3rem;overflow:hidden}.bleed-container:has(pn-stats-info) .container>.mb-5{margin-bottom:0 !important}.bleed-container:has(pn-stats-info) .statsblock{margin-bottom:0 !important}.comboquotestatsblock pn-stats-info{width:100%}.comboquotestatsblock pn-stats-info .pn-stats-info__container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;padding-top:2rem}@media screen and (min-width: 768px){.comboquotestatsblock pn-stats-info .pn-stats-info__container{padding-top:6rem}}@media screen and (min-width: 1200px){.comboquotestatsblock pn-stats-info .pn-stats-info__container{padding-top:8rem}}.comboquotestatsblock pn-stats-info .pn-stats-info__container__map{display:none}@media screen and (min-width: 768px){.comboquotestatsblock pn-stats-info .pn-stats-info__container__map{display:block;max-width:46rem;width:100%;background-color:#0D234B;background-repeat:no-repeat;background-position:bottom center;background-size:55%}}@media screen and (min-width: 1200px){.comboquotestatsblock pn-stats-info .pn-stats-info__container__map{background-size:contain}}.comboquotestatsblock pn-stats-info .pn-stats-info-image-container{display:none}.comboquotestatsblock pn-stats-info .pn-stats-info__container__content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;padding:1rem;width:100%;background-color:#0D234B;background-repeat:no-repeat;background-position:bottom left;background-size:50%;background-blend-mode:overlay;padding-bottom:2rem}@media screen and (min-width: 768px){.comboquotestatsblock pn-stats-info .pn-stats-info__container__content{max-width:54rem;background-position:-999px -999px;background-size:0;padding-bottom:4rem;padding-right:4rem}}@media screen and (min-width: 1200px){.comboquotestatsblock pn-stats-info .pn-stats-info__container__content{max-width:100%;padding-bottom:6rem;padding-right:6rem}}.comboquotestatsblock pn-stats-info .pn-stats-info__container__content__heading{color:#F06365;margin-bottom:2.4rem;-ms-flex-item-align:center;align-self:center;text-align:center;font-size:3rem;line-height:110%}@media screen and (min-width: 1200px){.comboquotestatsblock pn-stats-info .pn-stats-info__container__content__heading{font-weight:700;font-size:4.8rem}}.comboquotestatsblock pn-stats-info .pn-stats-info__container__content__data{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;min-height:20rem}@media screen and (min-width: 1640px){.comboquotestatsblock pn-stats-info .pn-stats-info__container__content__data{width:65rem}}pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info__container__content,pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info__container__map{background-color:#0D234B}pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-image-container{background-color:transparent}pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-image-container [slot=illustration]{background-color:#0D234B}@media screen and (min-width: 992px){pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-image-container{background-color:#0D234B}}pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info__container__content__heading,pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-data__container__content{color:#F06365}pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-data__container__content__preamble{color:#FFFFFF}pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info__container__content,pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info__container__map{background-color:#005E41}pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-image-container{background-color:transparent}pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-image-container [slot=illustration]{background-color:#005E41}@media screen and (min-width: 992px){pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-image-container{background-color:#005E41}}pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info__container__content__heading,pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-data__container__content{color:#FFFFFF}pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-data__container__content__preamble{color:#FFFFFF}pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info__container__content,pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info__container__map{background-color:#EDFBF3}pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-image-container{background-color:transparent}pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-image-container [slot=illustration]{background-color:#EDFBF3}@media screen and (min-width: 992px){pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-image-container{background-color:#EDFBF3}}pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info__container__content__heading,pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-data__container__content{color:#005D92}pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-data__container__content__preamble{color:#0D234B}";
|
|
28979
29151
|
|
|
28980
29152
|
const mockStringArray = '[ { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 }, { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 },{"preamble": "carbon dioxide emissions since 2009", "data": -44, "unit": "%", "duration": 2000 }, { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 }, {"preamble": "carbon dioxide emissions since 2009", "data": -44, "unit": "%", "duration": 2000 }, { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 }]';
|
|
28981
|
-
|
|
29153
|
+
let PnStatsInfo$1 = class extends HTMLElement {
|
|
28982
29154
|
constructor() {
|
|
28983
29155
|
super();
|
|
28984
29156
|
this.__registerHost();
|
|
@@ -29092,22 +29264,22 @@ const inViewport = (entries, toggleClass, isEntryIntersectingCallBack) => {
|
|
|
29092
29264
|
|
|
29093
29265
|
const pnStatsInfoDataCss = "pn-stats-info-data{width:50%}pn-stats-info-data .pn-stats-info-data__container{width:100%;background-color:transparent;color:#F06365;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;padding:2rem}@media screen and (min-width: 768px){pn-stats-info-data .pn-stats-info-data__container{-ms-flex-pack:center;justify-content:center;min-height:102px;padding:0 2rem}}@media screen and (min-width: 1200px){pn-stats-info-data .pn-stats-info-data__container{min-height:125px}}pn-stats-info-data .pn-stats-info-data__container__content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}pn-stats-info-data .pn-stats-info-data__container__content__data{font-weight:700;font-size:3rem;line-height:110%}@media screen and (min-width: 1200px){pn-stats-info-data .pn-stats-info-data__container__content__data{font-size:5.6rem}}pn-stats-info-data .pn-stats-info-data__container__content__unit{font-weight:700;font-size:3rem;line-height:110%}@media screen and (min-width: 1200px){pn-stats-info-data .pn-stats-info-data__container__content__unit{font-size:5.6rem}}pn-stats-info-data .pn-stats-info-data__container__content__preamble{text-align:center;font-weight:400;font-size:1.4rem;line-height:110%;color:#FFFFFF}";
|
|
29094
29266
|
|
|
29095
|
-
|
|
29267
|
+
let PnStatsInfoData$1 = class extends HTMLElement {
|
|
29096
29268
|
constructor() {
|
|
29097
29269
|
super();
|
|
29098
29270
|
this.__registerHost();
|
|
29099
|
-
this.inViewPortCallback = (entry) => {
|
|
29100
|
-
if (entry.isIntersecting) {
|
|
29101
|
-
this.hasBeenShown = true;
|
|
29102
|
-
}
|
|
29103
|
-
};
|
|
29104
29271
|
this.data = 0;
|
|
29105
29272
|
this.unit = null;
|
|
29106
29273
|
this.preamble = null;
|
|
29107
|
-
this.duration = 1000;
|
|
29274
|
+
this.duration = 1000; //ms;
|
|
29108
29275
|
this.index = null;
|
|
29109
29276
|
this.hasBeenShown = false;
|
|
29110
29277
|
this.compId = null;
|
|
29278
|
+
this.inViewPortCallback = (entry) => {
|
|
29279
|
+
if (entry.isIntersecting) {
|
|
29280
|
+
this.hasBeenShown = true;
|
|
29281
|
+
}
|
|
29282
|
+
};
|
|
29111
29283
|
}
|
|
29112
29284
|
generateUniqueId() {
|
|
29113
29285
|
return v4();
|
|
@@ -29137,17 +29309,18 @@ const PnStatsInfoData$1 = class extends HTMLElement {
|
|
|
29137
29309
|
|
|
29138
29310
|
const pnTeaserCardCss = ".block.teasercardblock a[data-block-clickable-link=true]{z-index:1}pn-teaser-card{width:100%;height:100%;display:-ms-flexbox;display:flex}pn-teaser-card .pn-teaser-card__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;border-radius:2.4rem;width:100%}pn-teaser-card .pn-teaser-card__container__image__container{width:100%;position:relative}pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]{-webkit-clip-path:ellipse(100% 90% at 50% 0%);clip-path:ellipse(100% 90% at 50% 0%);height:100%;overflow:hidden;border-top-left-radius:2.4rem;border-top-right-radius:2.4rem}pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]>picture>img{width:100%;height:auto;-webkit-transition:0.4s ease-in-out;transition:0.4s ease-in-out;-webkit-transform:scale(1);transform:scale(1);aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 0;object-position:50% 0}pn-teaser-card .pn-teaser-card__container__content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex:1 1 100%;flex:1 1 100%;gap:3.2rem;padding:2.4rem 2.4rem;padding-top:0}pn-teaser-card .pn-teaser-card__container__content__text__container__heading{font-weight:700;font-size:2.4rem;line-height:2.64rem;margin-bottom:0}pn-teaser-card .pn-teaser-card__container__content__text__container__preamble{padding-top:1.6rem;font-weight:400;font-size:1.6rem;line-height:2.24rem;margin-bottom:0}pn-teaser-card .pn-teaser-card__container__content__text__container__label{display:block;margin-bottom:1.6rem;font-weight:400;font-size:1.2rem;line-height:140%}pn-teaser-card .pn-teaser-card__container__content__cta>pn-button{-ms-flex-item-align:end;align-self:flex-end;width:100%}pn-teaser-card .pn-teaser-card__container__content__cta>pn-button a:hover{text-decoration:none}pn-teaser-card .pn-teaser-card__container__content__cta>pn-button>button>.pn-button-bg,pn-teaser-card .pn-teaser-card__container__content__cta>pn-button>a>.pn-button-bg{-webkit-transition:0.4s ease-in-out;transition:0.4s ease-in-out}@media screen and (min-width: 768px){pn-teaser-card .pn-teaser-card__container__content__cta>pn-button{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:500;font-size:1.6rem;text-decoration:none;color:#005D92}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated pn-icon svg{-webkit-transition:0.3s ease-in-out;transition:0.3s ease-in-out;position:relative;left:-0.3rem}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated pn-icon svg path{fill:#005D92}pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated[target=_blank]:not(.pn-button):after{display:none}pn-teaser-card[data-card-color=coral]>.pn-teaser-card__container{background-color:#FDEFEE}pn-teaser-card[data-card-color=green]>.pn-teaser-card__container{background-color:#DCF6E7}pn-teaser-card[data-card-color=blue]>.pn-teaser-card__container{background-color:#EFFBFF}pn-teaser-card[data-card-color=white]>.pn-teaser-card__container{background-color:#FFFFFF}.teasercardlistblock .teasercardblock.has-bg{background-color:transparent;background:transparent}@media screen and (min-width: 1200px){.onequarterwidth .pn-teaser-card__container__content__text__container__label{margin-bottom:0.8rem}}.onethirdwidth pn-teaser-card .pn-teaser-card__container__image__container--no-image,.onequarterwidth pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:2.4rem}.onethirdwidth .pn-teaser-card__container__content__cta .secondary-link--animated,.onequarterwidth .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:400}.halfwidth pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:400}.halfwidth pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:2.4rem}@media screen and (min-width: 992px){.halfwidth pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:500}}@media screen and (min-width: 1200px){.halfwidth pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:4rem}.halfwidth pn-teaser-card .pn-teaser-card__container__content{padding:0 4rem 4rem}.halfwidth pn-teaser-card .pn-teaser-card__container__content__text__container__heading{font-weight:700;font-size:3.2rem;line-height:3.52rem}.halfwidth pn-teaser-card .pn-teaser-card__container__content__text__container__preamble{font-weight:400;font-size:2rem;line-height:2.8rem}}@media screen and (min-width: 1640px){.halfwidth pn-teaser-card .pn-teaser-card__container__image__container--no-image{padding-top:5.6rem}.halfwidth pn-teaser-card .pn-teaser-card__container__content{padding:0 5.6rem 5.6rem}}.fullwidth pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:400}.fullwidth pn-teaser-card .pn-teaser-card__container__image__container--no-image{width:auto;padding-top:2.4rem}@media screen and (min-width: 768px){.fullwidth pn-teaser-card{min-height:35rem}.fullwidth pn-teaser-card .pn-teaser-card__container__content__cta .secondary-link--animated{font-weight:500}.fullwidth pn-teaser-card .pn-teaser-card__container{-ms-flex-direction:row;flex-direction:row}.fullwidth pn-teaser-card .pn-teaser-card__container__content{-ms-flex-item-align:center;align-self:center;gap:2.4rem;padding:3.2rem 3.2rem 3.2rem 2.4rem}.fullwidth pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]{border-top-left-radius:2.4rem;border-bottom-left-radius:2.4rem;-webkit-clip-path:ellipse(100% 100% at 0% 50%);clip-path:ellipse(100% 100% at 0% 50%)}.fullwidth pn-teaser-card .pn-teaser-card__container__image__container>[slot=illustration]>picture>img{height:100%;-o-object-fit:cover;object-fit:cover}}@media screen and (min-width: 1200px){.fullwidth pn-teaser-card{min-height:52rem}.fullwidth pn-teaser-card .pn-teaser-card__container__content{padding:4rem 4rem 4rem 3.2rem}.fullwidth pn-teaser-card .pn-teaser-card__container__content__text__container__heading{font-weight:700;font-size:4.8rem;line-height:5.28rem}.fullwidth pn-teaser-card .pn-teaser-card__container__content__text__container__preamble{font-size:2rem;line-height:2.8rem}}@media screen and (min-width: 768px){.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container__content{padding:3.2rem 2.4rem 3.2rem 3.2rem}.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container__image__container>[slot=illustration]{border-bottom-right-radius:2.4rem;-webkit-clip-path:ellipse(100% 100% at 100% 50%);clip-path:ellipse(100% 100% at 100% 50%)}}@media screen and (min-width: 1200px){.fullwidth pn-teaser-card[data-card-alignment=right] .pn-teaser-card__container__content{padding:4rem 3.2rem 4rem 4rem}}pn-teaser-card.teaser-card--hover-effect:hover{cursor:pointer}pn-teaser-card.teaser-card--hover-effect:hover .pn-teaser-card__container__image__container [slot=illustration] picture>img{-webkit-transform:scale(1.02);transform:scale(1.02);-webkit-filter:brightness(0.85);filter:brightness(0.85)}pn-teaser-card.teaser-card--hover-effect:hover .secondary-link--animated{text-decoration:underline}pn-teaser-card.teaser-card--hover-effect:hover .secondary-link--animated pn-icon svg{left:0}pn-teaser-card.teaser-card--hover-effect:hover pn-button button .pn-button-bg,pn-teaser-card.teaser-card--hover-effect:hover pn-button a .pn-button-bg{background-color:#0D234B}";
|
|
29139
29311
|
|
|
29140
|
-
|
|
29312
|
+
let PnTeaserCard$1 = class extends HTMLElement {
|
|
29141
29313
|
constructor() {
|
|
29142
29314
|
super();
|
|
29143
29315
|
this.__registerHost();
|
|
29144
29316
|
var _a;
|
|
29145
|
-
|
|
29317
|
+
//props
|
|
29146
29318
|
this.text = null;
|
|
29147
29319
|
this.heading = null;
|
|
29148
29320
|
this.label = null;
|
|
29149
29321
|
this.dataCardColor = 'coral';
|
|
29150
29322
|
this.dataCardAlignment = 'left';
|
|
29323
|
+
this.labelToCapitals = (_a = this.label) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
29151
29324
|
this.hasCtaSlotContent = false;
|
|
29152
29325
|
this.hasIllustrationSlot = true;
|
|
29153
29326
|
}
|
|
@@ -29165,11 +29338,13 @@ const PnTeaserCard$1 = class extends HTMLElement {
|
|
|
29165
29338
|
|
|
29166
29339
|
const pnTitletagCss = "pn-titletag{display:-ms-inline-flexbox;display:inline-flex;border-radius:0.4rem;min-height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem;gap:0.6em}pn-titletag[color=green700],pn-titletag[color=green]{color:#005E41;background:#DCF6E7}pn-titletag[color=blue700],pn-titletag[color=blue]{background:#E0F8FF;color:#005D92}pn-titletag[color=coral700],pn-titletag[color=coral]{background:#FDEFEE;color:#9B1C2E}pn-titletag[color=gray900],pn-titletag[color=gray],pn-titletag[color=grey]{background:#D3CECB;color:#2D2013}pn-titletag[color=gray50],pn-titletag[color=lightgray],pn-titletag[color=lightgrey]{background:#F3F2F2;color:#2D2013}";
|
|
29167
29340
|
|
|
29168
|
-
|
|
29341
|
+
let PnTiletag = class extends HTMLElement {
|
|
29169
29342
|
constructor() {
|
|
29170
29343
|
super();
|
|
29171
29344
|
this.__registerHost();
|
|
29345
|
+
/** Icon of the tag */
|
|
29172
29346
|
this.icon = null;
|
|
29347
|
+
/** Icon of the tag */
|
|
29173
29348
|
this.color = "green700";
|
|
29174
29349
|
}
|
|
29175
29350
|
render() {
|
|
@@ -29202,11 +29377,12 @@ const PnMainnavList = /*@__PURE__*/proxyCustomElement(PnMainnavList$1, [4,"pn-ma
|
|
|
29202
29377
|
const PnMarketwebInput = /*@__PURE__*/proxyCustomElement(PnMarketwebInput$1, [0,"pn-marketweb-input",{"disabled":[4],"error":[1],"invalid":[4],"helpertext":[1],"label":[1],"placeholder":[1],"inputid":[1],"name":[1],"required":[4],"type":[1025],"autocomplete":[1],"valid":[4],"value":[1],"maxlength":[1],"min":[1],"max":[1],"step":[1],"pattern":[1],"showText":[32]}]);
|
|
29203
29378
|
const PnMarketwebSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSearch$1, [1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]);
|
|
29204
29379
|
const PnMarketwebSitefooter = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$2, [4,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"siteDomainInUrls":[4,"site-domain-in-urls"],"cache":[4],"theme":[513],"backgroundcolor":[513],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]);
|
|
29205
|
-
const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"siteid":[1],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[516,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideHomeMenuItem":[1540,"hide-home-menu-item"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"showProfileSelection":[1540,"show-profile-selection"],"siteDomainInUrls":[4,"site-domain-in-urls"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"searchPlaceholder":[1,"search-placeholder"],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32]
|
|
29206
|
-
const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[16],"siteUrl":[1,"site-url"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"showProfileSelection":[1028,"show-profile-selection"],"
|
|
29207
|
-
const
|
|
29208
|
-
const
|
|
29209
|
-
const
|
|
29380
|
+
const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"siteid":[1],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[516,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideHomeMenuItem":[1540,"hide-home-menu-item"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"showProfileSelection":[1540,"show-profile-selection"],"siteDomainInUrls":[4,"site-domain-in-urls"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"searchPlaceholder":[1,"search-placeholder"],"spaMode":[4,"spa-mode"],"checkUserLoggedInStateInterval":[2,"check-user-logged-in-state-interval"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]);
|
|
29381
|
+
const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[16],"siteUrl":[1,"site-url"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"showProfileSelection":[1028,"show-profile-selection"],"checkUserLoggedInStateInterval":[2,"check-user-logged-in-state-interval"],"loginLinks":[32],"toggleButtonText":[32],"username":[32]}]);
|
|
29382
|
+
const PnMarketwebSiteheaderLoginButton = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginButton$1, [0,"pn-marketweb-siteheader-login-button",{"label":[8],"active":[4]}]);
|
|
29383
|
+
const PnMarketwebSiteheaderLoginLinklist = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinklist$1, [0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"]}]);
|
|
29384
|
+
const PnMarketwebSiteheaderLoginLinks = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinks$1, [0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}]);
|
|
29385
|
+
const PnMarketwebSiteheaderLoginProfileselection = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginProfileselection$1, [0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"profileoptions":[1040],"user":[32],"logoutLink":[32],"userName":[32],"userEmail":[32]}]);
|
|
29210
29386
|
const PnMarketwebSiteheaderSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderSearch$1, [0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"language":[1537],"siteid":[1],"search":[1040],"primary":[4],"icononly":[4],"autoCompleteOptions":[32]}]);
|
|
29211
29387
|
const PnParcelTracker = /*@__PURE__*/proxyCustomElement(PnSpotlight$2, [0,"pn-parcel-tracker",{"formActionUrl":[1,"form-action-url"],"heading":[1],"buttonLabel":[1,"button-label"],"locale":[1],"placeholder":[1],"inputName":[1,"input-name"],"currentWidth":[32]},[[9,"resize","handleViewportSizeChange"]]]);
|
|
29212
29388
|
const PnPexPricefinder = /*@__PURE__*/proxyCustomElement(PnPexPricefinder$1, [0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]);
|
|
@@ -29272,6 +29448,7 @@ const defineCustomElements = (opts) => {
|
|
|
29272
29448
|
PnMarketwebSitefooter,
|
|
29273
29449
|
PnMarketwebSiteheader,
|
|
29274
29450
|
PnMarketwebSiteheaderLogin,
|
|
29451
|
+
PnMarketwebSiteheaderLoginButton,
|
|
29275
29452
|
PnMarketwebSiteheaderLoginLinklist,
|
|
29276
29453
|
PnMarketwebSiteheaderLoginLinks,
|
|
29277
29454
|
PnMarketwebSiteheaderLoginProfileselection,
|
|
@@ -29320,4 +29497,4 @@ const defineCustomElements = (opts) => {
|
|
|
29320
29497
|
}
|
|
29321
29498
|
};
|
|
29322
29499
|
|
|
29323
|
-
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnBreakpoints, PnChart, PnChartsCard, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnLineShape, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderLoginLinklist, PnMarketwebSiteheaderLoginLinks, PnMarketwebSiteheaderLoginProfileselection, PnMarketwebSiteheaderSearch, PnParcelTracker, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileModal, PnProfileModalCustomernumber, PnProfileModalProfile, PnProfileModalType, PnProfileSelector, PnProfileSelectorOption, PnProxioPricegroup, PnProxioProductcard, PnProxioProductcardDescription, PnProxioProductcardInformation, PnProxioProductcardPricelink, PnQuickCta, PnQuoteCard, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSidenavTogglebutton, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, PnSpotlight, PnStatsInfo, PnStatsInfoData, PnTeaserCard, PnTitletag, defineCustomElements };
|
|
29500
|
+
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnBreakpoints, PnChart, PnChartsCard, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnLineShape, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderLoginButton, PnMarketwebSiteheaderLoginLinklist, PnMarketwebSiteheaderLoginLinks, PnMarketwebSiteheaderLoginProfileselection, PnMarketwebSiteheaderSearch, PnParcelTracker, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileModal, PnProfileModalCustomernumber, PnProfileModalProfile, PnProfileModalType, PnProfileSelector, PnProfileSelectorOption, PnProxioPricegroup, PnProxioProductcard, PnProxioProductcardDescription, PnProxioProductcardInformation, PnProxioProductcardPricelink, PnQuickCta, PnQuoteCard, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSidenavTogglebutton, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, PnSpotlight, PnStatsInfo, PnStatsInfoData, PnTeaserCard, PnTitletag, defineCustomElements };
|