@postnord/pn-marketweb-components 4.2.5 → 4.3.1
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/header-theme-a250bf67.js +245 -0
- package/cjs/header-theme-a250bf67.js.map +1 -0
- package/cjs/index-9a9efa1c.js +24 -16
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +1 -1
- package/cjs/pn-chat-message_2.cjs.entry.js +2 -2
- package/cjs/pn-chat.cjs.entry.js +2 -2
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +1 -1
- package/cjs/pn-find-price.cjs.entry.js +2 -2
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
- package/cjs/pn-hero-block-international.cjs.entry.js +1 -1
- package/cjs/pn-language-selector_13.cjs.entry.js +1519 -0
- package/cjs/pn-language-selector_13.cjs.entry.js.map +1 -0
- package/cjs/pn-level-up-modal.cjs.entry.js +1 -1
- package/cjs/pn-level-up.cjs.entry.js +2 -2
- package/cjs/pn-link-list.cjs.entry.js +1 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-header-main-row_2.cjs.entry.js +222 -0
- package/cjs/pn-marketweb-header-main-row_2.cjs.entry.js.map +1 -0
- package/cjs/pn-marketweb-header-skeleton-loader.cjs.entry.js +23 -0
- package/cjs/pn-marketweb-header-skeleton-loader.cjs.entry.js.map +1 -0
- package/cjs/pn-marketweb-header-toggle.cjs.entry.js +46 -0
- package/cjs/pn-marketweb-header-toggle.cjs.entry.js.map +1 -0
- package/cjs/pn-marketweb-header.cjs.entry.js +1043 -0
- package/cjs/pn-marketweb-header.cjs.entry.js.map +1 -0
- package/cjs/pn-marketweb-icon.cjs.entry.js +1 -1
- package/cjs/{pn-marketweb-siteheader-login-linklist.cjs.entry.js → pn-marketweb-siteheader-login-button_2.cjs.entry.js} +44 -2
- package/cjs/pn-marketweb-siteheader-login-button_2.cjs.entry.js.map +1 -0
- package/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +7 -199
- package/cjs/pn-marketweb-siteheader.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-table.cjs.entry.js +1 -1
- package/cjs/pn-media-block.cjs.entry.js +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +2 -2
- package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
- package/cjs/pn-product-tile.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-profile.cjs.entry.js +2 -2
- package/cjs/pn-profile-modal-type.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +3 -3
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +3 -3
- package/cjs/pn-qr-code-generator.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-link.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +1 -1
- package/cjs/pn-sidenav.cjs.entry.js +1 -1
- package/cjs/pn-site-footer_3.cjs.entry.js +3 -3
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
- package/cjs/translations-9510f11c.js +198 -0
- package/cjs/translations-9510f11c.js.map +1 -0
- package/collection/collection-manifest.json +5 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.css +204 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.js +658 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.css +217 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.js +20 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.css +115 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.js +520 -0
- package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/components/shared/pn-marketweb-header-shared.js +37 -0
- package/collection/components/layout-components/pn-marketweb-header/components/shared/pn-marketweb-header-shared.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/mapper/pn-marketweb-header.mapper.js +109 -0
- package/collection/components/layout-components/pn-marketweb-header/mapper/pn-marketweb-header.mapper.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.css +225 -0
- package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.js +916 -0
- package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.stories.js +638 -0
- package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.stories.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/services/pn-marketweb-header.service.js +180 -0
- package/collection/components/layout-components/pn-marketweb-header/services/pn-marketweb-header.service.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/types/pn-marketweb-header.types.js +2 -0
- package/collection/components/layout-components/pn-marketweb-header/types/pn-marketweb-header.types.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-i18n.js +37 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-i18n.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-language.js +46 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-language.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-menu.js +36 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-menu.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-theme.js +48 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-theme.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.js +101 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.storage.js +63 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.storage.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-url.js +91 -0
- package/collection/components/layout-components/pn-marketweb-header/utils/header-url.js.map +1 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +34 -12
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +36 -15
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +27 -13
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +29 -4
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +4 -4
- package/collection/components/media/pn-media-block/pn-media-block.js +1 -1
- package/collection/components/minor/pn-app-banner/pn-app-banner.js +1 -1
- package/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.js +1 -1
- package/collection/components/minor/pn-swan/pn-swan.js +1 -1
- package/collection/components/minor/pn-titletag/pn-titletag.js +1 -1
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.css +25 -12
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +1 -1
- package/collection/components/navigation/pn-language-selector/pn-language-selector.css +17 -5
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js +22 -3
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js.map +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.css +37 -17
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +2 -2
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.css +81 -33
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.css +12 -2
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav.css +35 -22
- package/collection/components/navigation/pn-mainnav/pn-mainnav.js +1 -1
- package/collection/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.css +80 -0
- package/collection/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.js +147 -0
- package/collection/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.js.map +1 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav.js +1 -1
- package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +1 -1
- package/collection/components/navigation/pn-site-footer/pn-site-footer.js +1 -1
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.css +16 -12
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +1 -1
- package/collection/components/navigation/pn-site-selector/pn-site-selector.css +15 -0
- package/collection/components/navigation/pn-site-selector/pn-site-selector.js +22 -3
- package/collection/components/navigation/pn-site-selector/pn-site-selector.js.map +1 -1
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +1 -1
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +2 -2
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +1 -1
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +1 -1
- package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +1 -1
- package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +1 -1
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js +1 -1
- package/collection/components/widgets/pn-chat/pn-chat.js +2 -2
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +1 -1
- package/collection/components/widgets/pn-find-price/pn-find-price.js +2 -2
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +1 -1
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +1 -1
- package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +1 -1
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js +1 -1
- package/collection/components/widgets/pn-level-up/pn-level-up.js +2 -2
- package/collection/components/widgets/pn-link-list/pn-link-list.js +1 -1
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js +1 -1
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js +1 -1
- package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +1 -1
- package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +1 -1
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -2
- package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +1 -1
- package/collection/components/widgets/pn-product-tile/pn-product-tile.js +1 -1
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +1 -1
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +3 -3
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +1 -1
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js +1 -1
- package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js +1 -1
- package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.js +105 -0
- package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.js.map +1 -0
- package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.js +166 -0
- package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.js.map +1 -0
- package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.js +2 -0
- package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.js.map +1 -0
- package/components/pn-app-banner.js +1 -1
- package/components/pn-breakpoints.js +1 -1
- package/components/pn-chat-message2.js +1 -1
- package/components/pn-chat.js +2 -2
- package/components/pn-customernumber-selector-option.js +1 -1
- package/components/pn-customernumber-selector.js +1 -1
- package/components/pn-find-price-result2.js +1 -1
- package/components/pn-find-price.js +2 -2
- package/components/pn-find-service-and-price-result2.js +1 -1
- package/components/pn-find-service-and-price.js +1 -1
- package/components/pn-hero-block-international.js +1 -1
- package/components/pn-language-selector-option2.js +2 -2
- package/components/pn-language-selector-option2.js.map +1 -1
- package/components/pn-language-selector2.js +4 -2
- package/components/pn-language-selector2.js.map +1 -1
- package/components/pn-level-up-modal2.js +1 -1
- package/components/pn-level-up.js +2 -2
- package/components/pn-link-list.js +1 -1
- package/components/pn-mainnav-level2.js +3 -3
- package/components/pn-mainnav-level2.js.map +1 -1
- package/components/pn-mainnav-link2.js +2 -2
- package/components/pn-mainnav-link2.js.map +1 -1
- package/components/pn-mainnav-list2.js +2 -2
- package/components/pn-mainnav-list2.js.map +1 -1
- package/components/pn-mainnav2.js +2 -2
- package/components/pn-mainnav2.js.map +1 -1
- package/components/pn-marketweb-carousel2.js +1 -1
- package/components/pn-marketweb-header-main-row.d.ts +11 -0
- package/components/pn-marketweb-header-main-row.js +8 -0
- package/components/pn-marketweb-header-main-row.js.map +1 -0
- package/components/pn-marketweb-header-main-row2.js +281 -0
- package/components/pn-marketweb-header-main-row2.js.map +1 -0
- package/components/pn-marketweb-header-shared.js +192 -0
- package/components/pn-marketweb-header-shared.js.map +1 -0
- package/components/pn-marketweb-header-skeleton-loader.d.ts +11 -0
- package/components/pn-marketweb-header-skeleton-loader.js +37 -0
- package/components/pn-marketweb-header-skeleton-loader.js.map +1 -0
- package/components/pn-marketweb-header-toggle.d.ts +11 -0
- package/components/pn-marketweb-header-toggle.js +8 -0
- package/components/pn-marketweb-header-toggle.js.map +1 -0
- package/components/pn-marketweb-header-toggle2.js +61 -0
- package/components/pn-marketweb-header-toggle2.js.map +1 -0
- package/components/pn-marketweb-header-top-row.d.ts +11 -0
- package/components/pn-marketweb-header-top-row.js +8 -0
- package/components/pn-marketweb-header-top-row.js.map +1 -0
- package/components/pn-marketweb-header-top-row2.js +238 -0
- package/components/pn-marketweb-header-top-row2.js.map +1 -0
- package/components/pn-marketweb-header.d.ts +11 -0
- package/components/pn-marketweb-header.js +1206 -0
- package/components/pn-marketweb-header.js.map +1 -0
- package/components/pn-marketweb-icon.js +1 -1
- package/components/pn-marketweb-siteheader-login-button2.js +1 -1
- package/components/pn-marketweb-siteheader-login-linklist2.js +1 -1
- package/components/pn-marketweb-siteheader-login-linklist2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-mypage-button.js +1 -1
- package/components/pn-marketweb-siteheader-login-profileselection2.js +1 -1
- package/components/pn-marketweb-siteheader-login-profileselection2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login2.js +4 -2
- package/components/pn-marketweb-siteheader-login2.js.map +1 -1
- package/components/pn-marketweb-siteheader-unified-login2.js +1 -1
- package/components/pn-marketweb-siteheader.js +5 -197
- package/components/pn-marketweb-siteheader.js.map +1 -1
- package/components/pn-marketweb-table.js +1 -1
- package/components/pn-media-block.js +1 -1
- package/components/pn-pex-pricefinder.js +1 -1
- package/components/pn-product-card2.js +1 -1
- package/components/pn-product-pricelist-result.js +1 -1
- package/components/pn-product-pricelist.js +2 -2
- package/components/pn-product-tile-info2.js +1 -1
- package/components/pn-product-tile.js +1 -1
- package/components/pn-profile-modal-customernumber.js +1 -1
- package/components/pn-profile-modal-profile.js +2 -2
- package/components/pn-profile-modal-type.js +1 -1
- package/components/pn-profile-modal.js +1 -1
- package/components/pn-profile-selector-option.js +1 -1
- package/components/pn-profile-selector.js +1 -1
- package/components/pn-proxio-findprice-result2.js +2 -2
- package/components/pn-proxio-findprice.js +3 -3
- package/components/pn-proxio-pricegroup.js +2 -2
- package/components/pn-proxio-productcard-description2.js +1 -1
- package/components/pn-proxio-productcard-information2.js +1 -1
- package/components/pn-proxio-productcard2.js +1 -1
- package/components/pn-qr-code-generator2.js +1 -1
- package/components/pn-sidenav-level.js +1 -1
- package/components/pn-sidenav-link.js +1 -1
- package/components/pn-sidenav-togglebutton.js +1 -1
- package/components/pn-sidenav.js +1 -1
- package/components/pn-site-footer-col2.js +1 -1
- package/components/pn-site-footer2.js +1 -1
- package/components/pn-site-selector-item2.js +2 -2
- package/components/pn-site-selector-item2.js.map +1 -1
- package/components/pn-site-selector2.js +4 -2
- package/components/pn-site-selector2.js.map +1 -1
- package/components/pn-swan2.js +1 -1
- package/components/pn-titletag2.js +1 -1
- package/components/pn-usp-promoter.js +1 -1
- package/components/translations.js +189 -14
- package/components/translations.js.map +1 -1
- package/components/translations2.js +21 -0
- package/components/translations2.js.map +1 -0
- package/esm/header-theme-d09b64c7.js +234 -0
- package/esm/header-theme-d09b64c7.js.map +1 -0
- package/esm/index-c0a4d8bd.js +24 -16
- package/esm/loader.js +1 -1
- package/esm/pn-app-banner.entry.js +1 -1
- package/esm/pn-breakpoints.entry.js +1 -1
- package/esm/pn-chat-message_2.entry.js +2 -2
- package/esm/pn-chat.entry.js +2 -2
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +1 -1
- package/esm/pn-find-price.entry.js +2 -2
- package/esm/pn-find-service-and-price-result.entry.js +1 -1
- package/esm/pn-find-service-and-price.entry.js +1 -1
- package/esm/pn-hero-block-international.entry.js +1 -1
- package/esm/{pn-language-selector_9.entry.js → pn-language-selector_13.entry.js} +381 -22
- package/esm/pn-language-selector_13.entry.js.map +1 -0
- package/esm/pn-level-up-modal.entry.js +1 -1
- package/esm/pn-level-up.entry.js +2 -2
- package/esm/pn-link-list.entry.js +1 -1
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-header-main-row_2.entry.js +217 -0
- package/esm/pn-marketweb-header-main-row_2.entry.js.map +1 -0
- package/esm/pn-marketweb-header-skeleton-loader.entry.js +19 -0
- package/esm/pn-marketweb-header-skeleton-loader.entry.js.map +1 -0
- package/esm/pn-marketweb-header-toggle.entry.js +42 -0
- package/esm/pn-marketweb-header-toggle.entry.js.map +1 -0
- package/esm/pn-marketweb-header.entry.js +1039 -0
- package/esm/pn-marketweb-header.entry.js.map +1 -0
- package/esm/pn-marketweb-icon.entry.js +1 -1
- package/esm/{pn-marketweb-siteheader-login-linklist.entry.js → pn-marketweb-siteheader-login-button_2.entry.js} +44 -3
- package/esm/pn-marketweb-siteheader-login-button_2.entry.js.map +1 -0
- package/esm/pn-marketweb-siteheader-login-mypage-button.entry.js +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +5 -197
- package/esm/pn-marketweb-siteheader.entry.js.map +1 -1
- package/esm/pn-marketweb-table.entry.js +1 -1
- package/esm/pn-media-block.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +1 -1
- package/esm/pn-product-pricelist.entry.js +2 -2
- package/esm/pn-product-tile-info_2.entry.js +1 -1
- package/esm/pn-product-tile.entry.js +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm/pn-profile-modal-profile.entry.js +2 -2
- package/esm/pn-profile-modal-type.entry.js +1 -1
- package/esm/pn-profile-modal.entry.js +1 -1
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +3 -3
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +3 -3
- package/esm/pn-qr-code-generator.entry.js +1 -1
- package/esm/pn-sidenav-level.entry.js +1 -1
- package/esm/pn-sidenav-link.entry.js +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm/pn-sidenav.entry.js +1 -1
- package/esm/pn-site-footer_3.entry.js +3 -3
- package/esm/pn-titletag.entry.js +1 -1
- package/esm/pn-usp-promoter.entry.js +1 -1
- package/esm/translations-d2f5804e.js +196 -0
- package/esm/translations-d2f5804e.js.map +1 -0
- package/package.json +13 -6
- package/pn-market-web-components/{p-4a164ef8.entry.js → p-03728b0b.entry.js} +2 -2
- package/pn-market-web-components/p-04f51418.js +2 -0
- package/pn-market-web-components/p-04f51418.js.map +1 -0
- package/pn-market-web-components/{p-e43a36e0.entry.js → p-067c1c2f.entry.js} +2 -2
- package/pn-market-web-components/{p-2616cdc1.entry.js → p-191c8cfc.entry.js} +2 -2
- package/pn-market-web-components/{p-ca003c1f.entry.js → p-1a91c313.entry.js} +2 -2
- package/pn-market-web-components/{p-ab1e3dc2.entry.js → p-1f8304be.entry.js} +2 -2
- package/pn-market-web-components/{p-a3f601cb.entry.js → p-24ffac0a.entry.js} +2 -2
- package/pn-market-web-components/p-3239c36b.entry.js +2 -0
- package/pn-market-web-components/p-3239c36b.entry.js.map +1 -0
- package/pn-market-web-components/{p-12cafd55.entry.js → p-3aa74418.entry.js} +2 -2
- package/pn-market-web-components/p-3d27faee.entry.js +2 -0
- package/pn-market-web-components/{p-9d0ca27b.entry.js.map → p-3d27faee.entry.js.map} +1 -1
- package/pn-market-web-components/p-3e25f431.entry.js +2 -0
- package/pn-market-web-components/p-3e25f431.entry.js.map +1 -0
- package/pn-market-web-components/{p-64f6691d.entry.js → p-42da7c5f.entry.js} +2 -2
- package/pn-market-web-components/{p-f0d423d0.entry.js → p-43748ca2.entry.js} +2 -2
- package/pn-market-web-components/{p-1c644b91.entry.js → p-466958a8.entry.js} +2 -2
- package/pn-market-web-components/{p-150da889.entry.js → p-4ab53d5d.entry.js} +2 -2
- package/pn-market-web-components/{p-118fe47d.entry.js → p-4d595345.entry.js} +2 -2
- package/pn-market-web-components/{p-0f6f715b.entry.js → p-4dac1980.entry.js} +2 -2
- package/pn-market-web-components/{p-a13f1f73.entry.js → p-4fcce83d.entry.js} +2 -2
- package/pn-market-web-components/{p-89fbca3b.entry.js → p-5a51d0b0.entry.js} +2 -2
- package/pn-market-web-components/{p-f4d2d0d3.entry.js → p-61346425.entry.js} +2 -2
- package/pn-market-web-components/{p-6e693269.entry.js → p-6b557670.entry.js} +2 -2
- package/pn-market-web-components/{p-e6d6a752.entry.js → p-70a71854.entry.js} +2 -2
- package/pn-market-web-components/p-75311d67.js +2 -0
- package/pn-market-web-components/p-75311d67.js.map +1 -0
- package/pn-market-web-components/p-756d8d95.entry.js +2 -0
- package/pn-market-web-components/p-756d8d95.entry.js.map +1 -0
- package/pn-market-web-components/{p-c0315c45.entry.js → p-76fb0c21.entry.js} +2 -2
- package/pn-market-web-components/{p-b2b2bae0.entry.js → p-81210644.entry.js} +2 -2
- package/pn-market-web-components/p-81e4d75b.entry.js +2 -0
- package/pn-market-web-components/p-81e4d75b.entry.js.map +1 -0
- package/pn-market-web-components/{p-d0f27361.entry.js → p-8382794b.entry.js} +2 -2
- package/pn-market-web-components/{p-8f25176b.entry.js → p-8519e39e.entry.js} +2 -2
- package/pn-market-web-components/p-8c26c1f2.entry.js +2 -0
- package/pn-market-web-components/p-8c26c1f2.entry.js.map +1 -0
- package/pn-market-web-components/{p-461c8792.entry.js → p-92b6477c.entry.js} +2 -2
- package/pn-market-web-components/{p-0d4d9d90.entry.js → p-9eab8192.entry.js} +2 -2
- package/pn-market-web-components/{p-40e632cc.entry.js → p-a3beee11.entry.js} +2 -2
- package/pn-market-web-components/{p-01fbf1ce.entry.js → p-a6935dc2.entry.js} +2 -2
- package/pn-market-web-components/{p-af646091.entry.js → p-a6dd3e4f.entry.js} +2 -2
- package/pn-market-web-components/{p-6d77e747.entry.js → p-af89c95a.entry.js} +2 -2
- package/pn-market-web-components/p-b318ff19.entry.js +2 -0
- package/pn-market-web-components/{p-0700cb4c.entry.js.map → p-b318ff19.entry.js.map} +1 -1
- package/pn-market-web-components/{p-c89f3d6b.entry.js → p-ba14b0ef.entry.js} +2 -2
- package/pn-market-web-components/{p-c7965104.entry.js → p-ba680948.entry.js} +2 -2
- package/pn-market-web-components/{p-11c6e458.entry.js → p-ba75bfdb.entry.js} +2 -2
- package/pn-market-web-components/{p-4149e715.entry.js → p-c186ec41.entry.js} +2 -2
- package/pn-market-web-components/{p-66c0c8dc.entry.js → p-c38707f9.entry.js} +2 -2
- package/pn-market-web-components/{p-671a8129.entry.js → p-c89cdd5a.entry.js} +2 -2
- package/pn-market-web-components/{p-4d848e18.entry.js → p-e8cd1608.entry.js} +2 -2
- package/pn-market-web-components/{p-4517a3d4.entry.js → p-ef090656.entry.js} +2 -2
- package/pn-market-web-components/p-f23ed5d2.entry.js +2 -0
- package/pn-market-web-components/p-f23ed5d2.entry.js.map +1 -0
- package/pn-market-web-components/{p-bd8ec517.entry.js → p-f3b4c13d.entry.js} +2 -2
- package/pn-market-web-components/{p-ff38b9a5.entry.js → p-f710445f.entry.js} +2 -2
- package/pn-market-web-components/{p-2e585ed5.entry.js → p-fcefe4a4.entry.js} +2 -2
- package/pn-market-web-components/p-fded22b7.entry.js +2 -0
- package/pn-market-web-components/p-fded22b7.entry.js.map +1 -0
- package/pn-market-web-components/{p-32bd2ff8.entry.js → p-ff6118f8.entry.js} +2 -2
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
- package/types/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.d.ts +40 -0
- package/types/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.d.ts +3 -0
- package/types/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.d.ts +30 -0
- package/types/components/layout-components/pn-marketweb-header/components/shared/pn-marketweb-header-shared.d.ts +48 -0
- package/types/components/layout-components/pn-marketweb-header/mapper/pn-marketweb-header.mapper.d.ts +34 -0
- package/types/components/layout-components/pn-marketweb-header/pn-marketweb-header.d.ts +121 -0
- package/types/components/layout-components/pn-marketweb-header/pn-marketweb-header.stories.d.ts +99 -0
- package/types/components/layout-components/pn-marketweb-header/services/pn-marketweb-header.service.d.ts +108 -0
- package/types/components/layout-components/pn-marketweb-header/types/pn-marketweb-header.types.d.ts +103 -0
- package/types/components/layout-components/pn-marketweb-header/utils/header-i18n.d.ts +16 -0
- package/types/components/layout-components/pn-marketweb-header/utils/header-language.d.ts +20 -0
- package/types/components/layout-components/pn-marketweb-header/utils/header-menu.d.ts +16 -0
- package/types/components/layout-components/pn-marketweb-header/utils/header-theme.d.ts +6 -0
- package/types/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.d.ts +49 -0
- package/types/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.storage.d.ts +25 -0
- package/types/components/layout-components/pn-marketweb-header/utils/header-url.d.ts +41 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +2 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +1 -0
- package/types/components/navigation/pn-language-selector/pn-language-selector.d.ts +1 -0
- package/types/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.d.ts +25 -0
- package/types/components/navigation/pn-site-selector/pn-site-selector.d.ts +1 -0
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
- package/types/components.d.ts +532 -2
- package/types/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.d.ts +7 -0
- package/types/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.d.ts +24 -0
- package/types/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.d.ts +16 -0
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +1 -1
- package/vscode-data.json +421 -0
- package/cjs/pn-language-selector_9.cjs.entry.js +0 -1156
- package/cjs/pn-language-selector_9.cjs.entry.js.map +0 -1
- package/cjs/pn-mainnav-link.cjs.entry.js +0 -45
- package/cjs/pn-mainnav-link.cjs.entry.js.map +0 -1
- package/cjs/pn-mainnav-store-13aaa243.js +0 -22
- package/cjs/pn-mainnav-store-13aaa243.js.map +0 -1
- package/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js +0 -366
- package/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js.map +0 -1
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js.map +0 -1
- package/esm/pn-language-selector_9.entry.js.map +0 -1
- package/esm/pn-mainnav-link.entry.js +0 -41
- package/esm/pn-mainnav-link.entry.js.map +0 -1
- package/esm/pn-mainnav-store-c98d831e.js +0 -19
- package/esm/pn-mainnav-store-c98d831e.js.map +0 -1
- package/esm/pn-marketweb-siteheader-login-button_4.entry.js +0 -359
- package/esm/pn-marketweb-siteheader-login-button_4.entry.js.map +0 -1
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js.map +0 -1
- package/pn-market-web-components/p-022780ab.entry.js +0 -2
- package/pn-market-web-components/p-022780ab.entry.js.map +0 -1
- package/pn-market-web-components/p-0700cb4c.entry.js +0 -2
- package/pn-market-web-components/p-4bc6d49f.entry.js +0 -2
- package/pn-market-web-components/p-4bc6d49f.entry.js.map +0 -1
- package/pn-market-web-components/p-4c8bda8f.entry.js +0 -2
- package/pn-market-web-components/p-4c8bda8f.entry.js.map +0 -1
- package/pn-market-web-components/p-5090bb1d.entry.js +0 -2
- package/pn-market-web-components/p-5090bb1d.entry.js.map +0 -1
- package/pn-market-web-components/p-9d0ca27b.entry.js +0 -2
- package/pn-market-web-components/p-a30de538.entry.js +0 -2
- package/pn-market-web-components/p-a30de538.entry.js.map +0 -1
- package/pn-market-web-components/p-e3b2486a.js +0 -2
- package/pn-market-web-components/p-e3b2486a.js.map +0 -1
- /package/pn-market-web-components/{p-4a164ef8.entry.js.map → p-03728b0b.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-e43a36e0.entry.js.map → p-067c1c2f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-2616cdc1.entry.js.map → p-191c8cfc.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-ca003c1f.entry.js.map → p-1a91c313.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-ab1e3dc2.entry.js.map → p-1f8304be.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-a3f601cb.entry.js.map → p-24ffac0a.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-12cafd55.entry.js.map → p-3aa74418.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-64f6691d.entry.js.map → p-42da7c5f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f0d423d0.entry.js.map → p-43748ca2.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-1c644b91.entry.js.map → p-466958a8.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-150da889.entry.js.map → p-4ab53d5d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-118fe47d.entry.js.map → p-4d595345.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-0f6f715b.entry.js.map → p-4dac1980.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-a13f1f73.entry.js.map → p-4fcce83d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-89fbca3b.entry.js.map → p-5a51d0b0.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f4d2d0d3.entry.js.map → p-61346425.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-6e693269.entry.js.map → p-6b557670.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-e6d6a752.entry.js.map → p-70a71854.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-c0315c45.entry.js.map → p-76fb0c21.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-b2b2bae0.entry.js.map → p-81210644.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-d0f27361.entry.js.map → p-8382794b.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-8f25176b.entry.js.map → p-8519e39e.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-461c8792.entry.js.map → p-92b6477c.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-0d4d9d90.entry.js.map → p-9eab8192.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-40e632cc.entry.js.map → p-a3beee11.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-01fbf1ce.entry.js.map → p-a6935dc2.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-af646091.entry.js.map → p-a6dd3e4f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-6d77e747.entry.js.map → p-af89c95a.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-c89f3d6b.entry.js.map → p-ba14b0ef.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-c7965104.entry.js.map → p-ba680948.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-11c6e458.entry.js.map → p-ba75bfdb.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-4149e715.entry.js.map → p-c186ec41.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-66c0c8dc.entry.js.map → p-c38707f9.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-671a8129.entry.js.map → p-c89cdd5a.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-4d848e18.entry.js.map → p-e8cd1608.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-4517a3d4.entry.js.map → p-ef090656.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-bd8ec517.entry.js.map → p-f3b4c13d.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-ff38b9a5.entry.js.map → p-f710445f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-2e585ed5.entry.js.map → p-fcefe4a4.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-32bd2ff8.entry.js.map → p-ff6118f8.entry.js.map} +0 -0
package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export const ALLOWED_LANGUAGES = [
|
|
2
|
+
'sv',
|
|
3
|
+
'da',
|
|
4
|
+
'fi',
|
|
5
|
+
'no',
|
|
6
|
+
'en',
|
|
7
|
+
'de',
|
|
8
|
+
'zh',
|
|
9
|
+
'fr',
|
|
10
|
+
'es',
|
|
11
|
+
'it',
|
|
12
|
+
'nl',
|
|
13
|
+
];
|
|
14
|
+
export const ALLOWED_MARKETS = [
|
|
15
|
+
'se',
|
|
16
|
+
'dk',
|
|
17
|
+
'fi',
|
|
18
|
+
'no',
|
|
19
|
+
'com',
|
|
20
|
+
'de',
|
|
21
|
+
'tpl',
|
|
22
|
+
'group',
|
|
23
|
+
];
|
|
24
|
+
export const WWW_MARKETS = [
|
|
25
|
+
'se',
|
|
26
|
+
'dk',
|
|
27
|
+
'fi',
|
|
28
|
+
'no',
|
|
29
|
+
'de',
|
|
30
|
+
'com',
|
|
31
|
+
];
|
|
32
|
+
export const DEVELOPMENT_DOMAINS = [
|
|
33
|
+
'localhost',
|
|
34
|
+
'.local',
|
|
35
|
+
'local.',
|
|
36
|
+
'.dev',
|
|
37
|
+
'dev.',
|
|
38
|
+
];
|
|
39
|
+
export const MARKETS = {
|
|
40
|
+
se: {
|
|
41
|
+
fallbackLanguage: 'sv',
|
|
42
|
+
integration: 'se-inte.postnord.com',
|
|
43
|
+
preproduction: 'se-prep.postnord.com',
|
|
44
|
+
production: 'se-prod.postnord.com',
|
|
45
|
+
live: 'www.postnord.se',
|
|
46
|
+
},
|
|
47
|
+
dk: {
|
|
48
|
+
fallbackLanguage: 'da',
|
|
49
|
+
integration: 'dk-inte.postnord.com',
|
|
50
|
+
preproduction: 'dk-prep.postnord.com',
|
|
51
|
+
production: 'dk-prod.postnord.com',
|
|
52
|
+
live: 'www.postnord.dk',
|
|
53
|
+
},
|
|
54
|
+
fi: {
|
|
55
|
+
fallbackLanguage: 'fi',
|
|
56
|
+
integration: 'fi-inte.postnord.com',
|
|
57
|
+
preproduction: 'fi-prep.postnord.com',
|
|
58
|
+
production: 'fi-prod.postnord.com',
|
|
59
|
+
live: 'www.postnord.fi',
|
|
60
|
+
},
|
|
61
|
+
no: {
|
|
62
|
+
fallbackLanguage: 'no',
|
|
63
|
+
integration: 'no-inte.postnord.com',
|
|
64
|
+
preproduction: 'no-prep.postnord.com',
|
|
65
|
+
production: 'no-prod.postnord.com',
|
|
66
|
+
live: 'www.postnord.no',
|
|
67
|
+
},
|
|
68
|
+
com: {
|
|
69
|
+
fallbackLanguage: 'en',
|
|
70
|
+
integration: 'com-inte.postnord.com',
|
|
71
|
+
preproduction: 'com-prep.postnord.com',
|
|
72
|
+
production: 'com-prod.postnord.com',
|
|
73
|
+
live: 'www.postnord.com',
|
|
74
|
+
},
|
|
75
|
+
de: {
|
|
76
|
+
fallbackLanguage: 'en',
|
|
77
|
+
integration: 'de-inte.postnord.com',
|
|
78
|
+
preproduction: 'de-prep.postnord.com',
|
|
79
|
+
production: 'de-prod.postnord.com',
|
|
80
|
+
live: 'www.postnord.de',
|
|
81
|
+
},
|
|
82
|
+
tpl: {
|
|
83
|
+
fallbackLanguage: 'sv',
|
|
84
|
+
integration: 'tpl-inte.postnord.com',
|
|
85
|
+
preproduction: 'tpl-prep.postnord.com',
|
|
86
|
+
production: 'tpl-prod.postnord.com',
|
|
87
|
+
live: 'www.tpl.postnord.com',
|
|
88
|
+
},
|
|
89
|
+
group: {
|
|
90
|
+
fallbackLanguage: 'en',
|
|
91
|
+
integration: 'group-inte.postnord.com',
|
|
92
|
+
preproduction: 'group-prep.postnord.com',
|
|
93
|
+
production: 'group-prod.postnord.com',
|
|
94
|
+
live: 'group.postnord.com',
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
export const ENVIRONMENT_ALIASES = {
|
|
98
|
+
integration: 'integration',
|
|
99
|
+
inte: 'integration',
|
|
100
|
+
preproduction: 'preproduction',
|
|
101
|
+
prep: 'preproduction',
|
|
102
|
+
production: 'production',
|
|
103
|
+
prod: 'production',
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=pn-refined-marketweb-context.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pn-refined-marketweb-context.constants.js","sourceRoot":"","sources":["../../../src/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;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EAAE,uBAAuB;QACnC,IAAI,EAAE,kBAAkB;KAC3B;IACD,EAAE,EAAE;QACA,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,sBAAsB;QACnC,aAAa,EAAE,sBAAsB;QACrC,UAAU,EAAE,sBAAsB;QAClC,IAAI,EAAE,iBAAiB;KAC1B;IACD,GAAG,EAAE;QACD,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,uBAAuB;QACtC,UAAU,EAAE,uBAAuB;QACnC,IAAI,EAAE,sBAAsB;KAC/B;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,yBAAyB;QACtC,aAAa,EAAE,yBAAyB;QACxC,UAAU,EAAE,yBAAyB;QACrC,IAAI,EAAE,oBAAoB;KAC7B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAoC;IAChE,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,aAAa;IACnB,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import type {\n EnvironmentName,\n MarketConfig,\n MarketName,\n} from './pn-refined-marketweb-context.types';\n\nexport const ALLOWED_LANGUAGES = [\n 'sv',\n 'da',\n 'fi',\n 'no',\n 'en',\n 'de',\n 'zh',\n 'fr',\n 'es',\n 'it',\n 'nl',\n] as const;\n\nexport const ALLOWED_MARKETS: MarketName[] = [\n 'se',\n 'dk',\n 'fi',\n 'no',\n 'com',\n 'de',\n 'tpl',\n 'group',\n];\n\nexport const WWW_MARKETS: MarketName[] = [\n 'se',\n 'dk',\n 'fi',\n 'no',\n 'de',\n 'com',\n];\n\nexport const DEVELOPMENT_DOMAINS = [\n 'localhost',\n '.local',\n 'local.',\n '.dev',\n 'dev.',\n] as const;\n\nexport const MARKETS: Record<MarketName, MarketConfig> = {\n se: {\n fallbackLanguage: 'sv',\n integration: 'se-inte.postnord.com',\n preproduction: 'se-prep.postnord.com',\n production: 'se-prod.postnord.com',\n live: 'www.postnord.se',\n },\n dk: {\n fallbackLanguage: 'da',\n integration: 'dk-inte.postnord.com',\n preproduction: 'dk-prep.postnord.com',\n production: 'dk-prod.postnord.com',\n live: 'www.postnord.dk',\n },\n fi: {\n fallbackLanguage: 'fi',\n integration: 'fi-inte.postnord.com',\n preproduction: 'fi-prep.postnord.com',\n production: 'fi-prod.postnord.com',\n live: 'www.postnord.fi',\n },\n no: {\n fallbackLanguage: 'no',\n integration: 'no-inte.postnord.com',\n preproduction: 'no-prep.postnord.com',\n production: 'no-prod.postnord.com',\n live: 'www.postnord.no',\n },\n com: {\n fallbackLanguage: 'en',\n integration: 'com-inte.postnord.com',\n preproduction: 'com-prep.postnord.com',\n production: 'com-prod.postnord.com',\n live: 'www.postnord.com',\n },\n de: {\n fallbackLanguage: 'en',\n integration: 'de-inte.postnord.com',\n preproduction: 'de-prep.postnord.com',\n production: 'de-prod.postnord.com',\n live: 'www.postnord.de',\n },\n tpl: {\n fallbackLanguage: 'sv',\n integration: 'tpl-inte.postnord.com',\n preproduction: 'tpl-prep.postnord.com',\n production: 'tpl-prod.postnord.com',\n live: 'www.tpl.postnord.com',\n },\n group: {\n fallbackLanguage: 'en',\n integration: 'group-inte.postnord.com',\n preproduction: 'group-prep.postnord.com',\n production: 'group-prod.postnord.com',\n live: 'group.postnord.com',\n },\n};\n\nexport const ENVIRONMENT_ALIASES: Record<string, EnvironmentName> = {\n integration: 'integration',\n inte: 'integration',\n preproduction: 'preproduction',\n prep: 'preproduction',\n production: 'production',\n prod: 'production',\n};"]}
|
package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.js
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { ALLOWED_LANGUAGES, ALLOWED_MARKETS, DEVELOPMENT_DOMAINS, ENVIRONMENT_ALIASES, MARKETS, WWW_MARKETS, } from "./pn-refined-marketweb-context.constants";
|
|
2
|
+
export class RefinedMarketWebContextService {
|
|
3
|
+
href;
|
|
4
|
+
doc;
|
|
5
|
+
constructor(options) {
|
|
6
|
+
this.href = options?.href ?? window.location.href;
|
|
7
|
+
this.doc = options?.doc ?? document;
|
|
8
|
+
}
|
|
9
|
+
resolve() {
|
|
10
|
+
const url = new URL(this.href);
|
|
11
|
+
const market = this.resolveMarket(url);
|
|
12
|
+
const environment = this.resolveEnvironment(url);
|
|
13
|
+
const language = this.resolveLanguage(market);
|
|
14
|
+
return {
|
|
15
|
+
market,
|
|
16
|
+
environment,
|
|
17
|
+
language,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
getMarket() {
|
|
21
|
+
return this.resolve().market;
|
|
22
|
+
}
|
|
23
|
+
getEnvironmentName() {
|
|
24
|
+
return this.resolve().environment;
|
|
25
|
+
}
|
|
26
|
+
getLanguage() {
|
|
27
|
+
return this.resolve().language;
|
|
28
|
+
}
|
|
29
|
+
isDevEnvironment() {
|
|
30
|
+
const hostname = new URL(this.href).hostname.toLowerCase();
|
|
31
|
+
return DEVELOPMENT_DOMAINS.some(fragment => hostname.includes(fragment));
|
|
32
|
+
}
|
|
33
|
+
getEndpoint(environment, market) {
|
|
34
|
+
if (environment === 'localhost') {
|
|
35
|
+
return '';
|
|
36
|
+
}
|
|
37
|
+
const currentHostname = new URL(this.href).hostname.toLowerCase();
|
|
38
|
+
const config = MARKETS[market];
|
|
39
|
+
if (environment === 'production' && currentHostname === config.live.toLowerCase()) {
|
|
40
|
+
return `https://${config.live}`;
|
|
41
|
+
}
|
|
42
|
+
if (environment !== 'production' && currentHostname === config[environment].toLowerCase()) {
|
|
43
|
+
return `https://${config[environment]}`;
|
|
44
|
+
}
|
|
45
|
+
if (environment === 'production') {
|
|
46
|
+
if (WWW_MARKETS.includes(market)) {
|
|
47
|
+
return `https://${config.live}`;
|
|
48
|
+
}
|
|
49
|
+
if (market === 'tpl') {
|
|
50
|
+
return 'https://www.tpl.postnord.com';
|
|
51
|
+
}
|
|
52
|
+
return `https://${config.live}`;
|
|
53
|
+
}
|
|
54
|
+
return `https://${config[environment]}`;
|
|
55
|
+
}
|
|
56
|
+
resolveEnvironment(url) {
|
|
57
|
+
const hostname = url.hostname.toLowerCase();
|
|
58
|
+
const matchedAlias = Object.keys(ENVIRONMENT_ALIASES).find(alias => hostname.includes(`-${alias}`));
|
|
59
|
+
if (matchedAlias) {
|
|
60
|
+
return ENVIRONMENT_ALIASES[matchedAlias];
|
|
61
|
+
}
|
|
62
|
+
const isKnownLiveHost = Object.values(MARKETS).some(config => config.live.toLowerCase() === hostname);
|
|
63
|
+
if (isKnownLiveHost || hostname.includes('www.')) {
|
|
64
|
+
return 'production';
|
|
65
|
+
}
|
|
66
|
+
return 'integration';
|
|
67
|
+
}
|
|
68
|
+
resolveMarket(url) {
|
|
69
|
+
const hostname = url.hostname.toLowerCase();
|
|
70
|
+
const fromLiveDomain = this.resolveMarketFromLiveDomain(hostname);
|
|
71
|
+
if (fromLiveDomain)
|
|
72
|
+
return fromLiveDomain;
|
|
73
|
+
const fromEnvironmentHost = this.resolveMarketFromEnvironmentHost(hostname);
|
|
74
|
+
if (fromEnvironmentHost)
|
|
75
|
+
return fromEnvironmentHost;
|
|
76
|
+
const fromPostnordSubdomain = this.resolveMarketFromPostnordSubdomain(hostname);
|
|
77
|
+
if (fromPostnordSubdomain)
|
|
78
|
+
return fromPostnordSubdomain;
|
|
79
|
+
if (this.isDevEnvironment()) {
|
|
80
|
+
const fromDevUrl = this.resolveMarketFromDevelopmentUrl(url);
|
|
81
|
+
if (fromDevUrl)
|
|
82
|
+
return fromDevUrl;
|
|
83
|
+
}
|
|
84
|
+
return 'se';
|
|
85
|
+
}
|
|
86
|
+
resolveLanguage(market) {
|
|
87
|
+
const candidates = [
|
|
88
|
+
this.doc?.documentElement?.getAttribute('lang'),
|
|
89
|
+
this.doc?.querySelector('meta[http-equiv="content-language"]')?.getAttribute('content'),
|
|
90
|
+
this.doc?.querySelector('meta[property="og:locale"]')?.getAttribute('content'),
|
|
91
|
+
this.doc?.querySelector('[lang]')?.getAttribute('lang'),
|
|
92
|
+
];
|
|
93
|
+
for (const candidate of candidates) {
|
|
94
|
+
const normalized = this.normalizeLanguage(candidate);
|
|
95
|
+
if (normalized) {
|
|
96
|
+
return normalized;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return MARKETS[market].fallbackLanguage;
|
|
100
|
+
}
|
|
101
|
+
normalizeLanguage(value) {
|
|
102
|
+
if (!value) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
const normalized = value.trim().toLowerCase().split(/[-_]/)[0];
|
|
106
|
+
return ALLOWED_LANGUAGES.includes(normalized)
|
|
107
|
+
? normalized
|
|
108
|
+
: undefined;
|
|
109
|
+
}
|
|
110
|
+
resolveMarketFromLiveDomain(hostname) {
|
|
111
|
+
const matched = Object.entries(MARKETS).find(([, config]) => config.live.toLowerCase() === hostname);
|
|
112
|
+
return matched?.[0];
|
|
113
|
+
}
|
|
114
|
+
resolveMarketFromEnvironmentHost(hostname) {
|
|
115
|
+
const matched = Object.entries(MARKETS).find(([, config]) => [config.integration, config.preproduction, config.production].some(envHost => envHost.toLowerCase() === hostname));
|
|
116
|
+
return matched?.[0];
|
|
117
|
+
}
|
|
118
|
+
resolveMarketFromPostnordSubdomain(hostname) {
|
|
119
|
+
if (hostname.includes('www')) {
|
|
120
|
+
return undefined;
|
|
121
|
+
}
|
|
122
|
+
if (!hostname.includes('.postnord.')) {
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
const postnordIndex = hostname.indexOf('.postnord.');
|
|
126
|
+
const beforePostnord = hostname.substring(0, postnordIndex);
|
|
127
|
+
const parts = beforePostnord.split('.').filter(Boolean);
|
|
128
|
+
if (parts.length === 0) {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
const closestSubdomain = parts[parts.length - 1];
|
|
132
|
+
return this.isMarketName(closestSubdomain) ? closestSubdomain : undefined;
|
|
133
|
+
}
|
|
134
|
+
resolveMarketFromDevelopmentUrl(url) {
|
|
135
|
+
const target = `${url.hostname}${url.pathname}`.toLowerCase();
|
|
136
|
+
const matchedMarket = ALLOWED_MARKETS.find(market => {
|
|
137
|
+
const patterns = [
|
|
138
|
+
`/${market}/`,
|
|
139
|
+
`/${market}`,
|
|
140
|
+
`.${market}.`,
|
|
141
|
+
`.${market}/`,
|
|
142
|
+
`${market}.`,
|
|
143
|
+
];
|
|
144
|
+
return patterns.some(pattern => target.includes(pattern));
|
|
145
|
+
});
|
|
146
|
+
if (matchedMarket) {
|
|
147
|
+
return matchedMarket;
|
|
148
|
+
}
|
|
149
|
+
const matchedByFallbackLanguage = Object.entries(MARKETS).find(([, config]) => {
|
|
150
|
+
const language = config.fallbackLanguage.toLowerCase();
|
|
151
|
+
const patterns = [
|
|
152
|
+
`/${language}/`,
|
|
153
|
+
`/${language}`,
|
|
154
|
+
`.${language}.`,
|
|
155
|
+
`.${language}/`,
|
|
156
|
+
`${language}.`,
|
|
157
|
+
];
|
|
158
|
+
return patterns.some(pattern => target.includes(pattern));
|
|
159
|
+
});
|
|
160
|
+
return matchedByFallbackLanguage?.[0];
|
|
161
|
+
}
|
|
162
|
+
isMarketName(value) {
|
|
163
|
+
return ALLOWED_MARKETS.includes(value);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=pn-refined-marketweb-context.service.js.map
|
package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pn-refined-marketweb-context.service.js","sourceRoot":"","sources":["../../../src/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,EACP,WAAW,GACd,MAAM,0CAA0C,CAAC;AAQlD,MAAM,OAAO,8BAA8B;IACtB,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CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEH,IAAI,aAAa,EAAE,CAAC;YAChB,OAAO,aAAa,CAAC;QACzB,CAAC;QAED,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE;YAC1E,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,QAAQ,GAAG;gBACb,IAAI,QAAQ,GAAG;gBACf,IAAI,QAAQ,EAAE;gBACd,IAAI,QAAQ,GAAG;gBACf,IAAI,QAAQ,GAAG;gBACf,GAAG,QAAQ,GAAG;aACjB,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEH,OAAO,yBAAyB,EAAE,CAAC,CAAC,CAA2B,CAAC;IACpE,CAAC;IAEO,YAAY,CAAC,KAAa;QAC9B,OAAO,eAAe,CAAC,QAAQ,CAAC,KAAmB,CAAC,CAAC;IACzD,CAAC;CACJ","sourcesContent":["import {\n ALLOWED_LANGUAGES,\n ALLOWED_MARKETS,\n DEVELOPMENT_DOMAINS,\n ENVIRONMENT_ALIASES,\n MARKETS,\n WWW_MARKETS,\n} from './pn-refined-marketweb-context.constants';\nimport type {\n EnvironmentInput,\n EnvironmentName,\n MarketName,\n MarketWebContext,\n} from './pn-refined-marketweb-context.types';\n\nexport class RefinedMarketWebContextService {\n private readonly href: string;\n private readonly doc?: Document;\n\n constructor(options?: {\n href?: string;\n doc?: Document;\n }) {\n this.href = options?.href ?? window.location.href;\n this.doc = options?.doc ?? document;\n }\n\n resolve(): MarketWebContext {\n const url = new URL(this.href);\n const market = this.resolveMarket(url);\n const environment = this.resolveEnvironment(url);\n const language = this.resolveLanguage(market);\n\n return {\n market,\n environment,\n language,\n };\n }\n\n getMarket(): MarketName {\n return this.resolve().market;\n }\n\n getEnvironmentName(): EnvironmentName {\n return this.resolve().environment;\n }\n\n getLanguage(): string {\n return this.resolve().language;\n }\n\n isDevEnvironment(): boolean {\n const hostname = new URL(this.href).hostname.toLowerCase();\n return DEVELOPMENT_DOMAINS.some(fragment => hostname.includes(fragment));\n }\n\n getEndpoint(environment: EnvironmentInput, market: MarketName): string {\n if (environment === 'localhost') {\n return '';\n }\n\n const currentHostname = new URL(this.href).hostname.toLowerCase();\n const config = MARKETS[market];\n\n if (environment === 'production' && currentHostname === config.live.toLowerCase()) {\n return `https://${config.live}`;\n }\n\n if (environment !== 'production' && currentHostname === config[environment].toLowerCase()) {\n return `https://${config[environment]}`;\n }\n\n if (environment === 'production') {\n if (WWW_MARKETS.includes(market)) {\n return `https://${config.live}`;\n }\n\n if (market === 'tpl') {\n return 'https://www.tpl.postnord.com';\n }\n\n return `https://${config.live}`;\n }\n\n return `https://${config[environment]}`;\n }\n\n private resolveEnvironment(url: URL): EnvironmentName {\n const hostname = url.hostname.toLowerCase();\n\n const matchedAlias = Object.keys(ENVIRONMENT_ALIASES).find(alias =>\n hostname.includes(`-${alias}`)\n );\n\n if (matchedAlias) {\n return ENVIRONMENT_ALIASES[matchedAlias];\n }\n\n const isKnownLiveHost = Object.values(MARKETS).some(\n config => config.live.toLowerCase() === hostname\n );\n\n if (isKnownLiveHost || hostname.includes('www.')) {\n return 'production';\n }\n\n return 'integration';\n }\n\n private resolveMarket(url: URL): MarketName {\n const hostname = url.hostname.toLowerCase();\n\n const fromLiveDomain = this.resolveMarketFromLiveDomain(hostname);\n if (fromLiveDomain) return fromLiveDomain;\n\n const fromEnvironmentHost = this.resolveMarketFromEnvironmentHost(hostname);\n if (fromEnvironmentHost) return fromEnvironmentHost;\n\n const fromPostnordSubdomain = this.resolveMarketFromPostnordSubdomain(hostname);\n if (fromPostnordSubdomain) return fromPostnordSubdomain;\n\n if (this.isDevEnvironment()) {\n const fromDevUrl = this.resolveMarketFromDevelopmentUrl(url);\n if (fromDevUrl) return fromDevUrl;\n }\n\n return 'se';\n }\n\n private resolveLanguage(market: MarketName): string {\n const candidates = [\n this.doc?.documentElement?.getAttribute('lang'),\n this.doc?.querySelector('meta[http-equiv=\"content-language\"]')?.getAttribute('content'),\n this.doc?.querySelector('meta[property=\"og:locale\"]')?.getAttribute('content'),\n this.doc?.querySelector('[lang]')?.getAttribute('lang'),\n ];\n\n for (const candidate of candidates) {\n const normalized = this.normalizeLanguage(candidate);\n if (normalized) {\n return normalized;\n }\n }\n\n return MARKETS[market].fallbackLanguage;\n }\n\n private normalizeLanguage(value?: string | null): string | undefined {\n if (!value) {\n return undefined;\n }\n\n const normalized = value.trim().toLowerCase().split(/[-_]/)[0];\n\n return ALLOWED_LANGUAGES.includes(\n normalized as (typeof ALLOWED_LANGUAGES)[number]\n )\n ? normalized\n : undefined;\n }\n\n private resolveMarketFromLiveDomain(hostname: string): MarketName | undefined {\n const matched = Object.entries(MARKETS).find(\n ([, config]) => config.live.toLowerCase() === hostname\n );\n\n return matched?.[0] as MarketName | undefined;\n }\n\n private resolveMarketFromEnvironmentHost(hostname: string): MarketName | undefined {\n const matched = Object.entries(MARKETS).find(([, config]) =>\n [config.integration, config.preproduction, config.production].some(\n envHost => envHost.toLowerCase() === hostname\n )\n );\n\n return matched?.[0] as MarketName | undefined;\n }\n\n private resolveMarketFromPostnordSubdomain(hostname: string): MarketName | undefined {\n if (hostname.includes('www')) {\n return undefined;\n }\n\n if (!hostname.includes('.postnord.')) {\n return undefined;\n }\n\n const postnordIndex = hostname.indexOf('.postnord.');\n const beforePostnord = hostname.substring(0, postnordIndex);\n const parts = beforePostnord.split('.').filter(Boolean);\n\n if (parts.length === 0) {\n return undefined;\n }\n\n const closestSubdomain = parts[parts.length - 1];\n return this.isMarketName(closestSubdomain) ? closestSubdomain : undefined;\n }\n\n private resolveMarketFromDevelopmentUrl(url: URL): MarketName | undefined {\n const target = `${url.hostname}${url.pathname}`.toLowerCase();\n\n const matchedMarket = ALLOWED_MARKETS.find(market => {\n const patterns = [\n `/${market}/`,\n `/${market}`,\n `.${market}.`,\n `.${market}/`,\n `${market}.`,\n ];\n\n return patterns.some(pattern => target.includes(pattern));\n });\n\n if (matchedMarket) {\n return matchedMarket;\n }\n\n const matchedByFallbackLanguage = Object.entries(MARKETS).find(([, config]) => {\n const language = config.fallbackLanguage.toLowerCase();\n const patterns = [\n `/${language}/`,\n `/${language}`,\n `.${language}.`,\n `.${language}/`,\n `${language}.`,\n ];\n\n return patterns.some(pattern => target.includes(pattern));\n });\n\n return matchedByFallbackLanguage?.[0] as MarketName | undefined;\n }\n\n private isMarketName(value: string): value is MarketName {\n return ALLOWED_MARKETS.includes(value as MarketName);\n }\n}"]}
|
package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pn-refined-marketweb-context.types.js","sourceRoot":"","sources":["../../../src/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.ts"],"names":[],"mappings":"","sourcesContent":["export type EnvironmentName = 'integration' | 'preproduction' | 'production';\n\nexport type EnvironmentInput = EnvironmentName | 'localhost';\n\nexport type MarketName =\n | 'se'\n | 'dk'\n | 'fi'\n | 'no'\n | 'com'\n | 'de'\n | 'tpl'\n | 'group';\n\nexport type MarketInput = MarketName;\n\nexport interface MarketWebContext {\n market: MarketName;\n language: string;\n environment: EnvironmentName;\n}\n\nexport interface MarketConfig {\n fallbackLanguage: string;\n integration: string;\n preproduction: string;\n production: string;\n live: string;\n}"]}
|
|
@@ -76,7 +76,7 @@ const PnAppBanner$1 = /*@__PURE__*/ proxyCustomElement(class PnAppBanner extends
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'bb5a692a664cf4ac468489c23277f9930997f12f', "data-is-closed": this.isClosed ? 'true' : 'false' }, h("div", { key: '922253cff363aee59e30fbcf4418c1b97022f768', class: "pn-app-banner__wrapper pn-app-banner__sticky" }, h("div", { key: '7bb7e90a5cebe49d0f9746b1ce44986f9f9431af', class: "icon-close", onClick: this.handleOnClose }, h("pn-icon", { key: 'fb110fcc7af1d4f1637f24c7c435f7f51d524941', icon: close_small, small: "false", color: "black" })), h("div", { key: '5b2b6ae7517cedaae7442112cb0ca10d955ca824', class: "pn-app-banner__icon" }, h("svg", { key: '2fc78aef304cb725e45429eb3ec673cd1dfc6b7f', width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '31f0608277956ae51fb99f10df7d6b0fd3945154', "clip-path": "url(#clip0_17800_45416)" }, h("path", { key: '1c30e7a3e8bdf57b7839090d1f466e0152d75082', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#F18D8D" }), h("mask", { key: '2f6bcb976612f6629b45d87e1cfde3da14ebad22', id: "mask0_17800_45416", style: { 'mask-type': 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "32", height: "32" }, h("path", { key: '671a12108274c3fb652397204aaadc7f1d8b47ea', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" })), h("g", { key: 'dca4f556965c83fb468451197b5c9370191ead3f', mask: "url(#mask0_17800_45416)" }, h("path", { key: '73b5a2127da6891c338c287dd6ad7aa5773b2437', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" }), h("path", { key: '69559c6b8b8f128f78c919281500b947e637bde1', d: "M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z", fill: "url(#paint0_linear_17800_45416)" }), h("path", { key: '646656b2d8c6b9931878b8027818c0402804503d', d: "M2.09375 31.375C2.09375 15.2379 15.1754 2.15625 31.3125 2.15625H31.9844V31.9844H2.09998C2.09583 31.7819 2.09375 31.5788 2.09375 31.375Z", fill: "#00A0D6" }), h("g", { key: 'd2748b51a56c2f89e518738935ac77cc55226fc6', filter: "url(#filter0_d_17800_45416)" }, h("path", { key: '72d52a14eaed722e619f87def6886c8eb99bfd60', d: "M7.40625 11.8062C7.40625 10.2661 7.40625 9.49603 7.70597 8.90778C7.96963 8.39034 8.39034 7.96963 8.90778 7.70597C9.49603 7.40625 10.2661 7.40625 11.8062 7.40625H20.1938C21.7339 7.40625 22.504 7.40625 23.0922 7.70597C23.6097 7.96963 24.0304 8.39034 24.294 8.90778C24.5938 9.49603 24.5938 10.2661 24.5938 11.8062V20.1938C24.5938 21.7339 24.5938 22.504 24.294 23.0922C24.0304 23.6097 23.6097 24.0304 23.0922 24.294C22.504 24.5938 21.7339 24.5938 20.1938 24.5938H11.8062C10.2661 24.5938 9.49603 24.5938 8.90778 24.294C8.39034 24.0304 7.96963 23.6097 7.70597 23.0922C7.40625 22.504 7.40625 21.7339 7.40625 20.1938V11.8062Z", fill: "#F1F7FA" }), h("path", { key: 'addc701b1c97bc1451c229d0e44a1b78cc5039a1', opacity: "0.6", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.5938 10.0625C10.3176 10.0625 10.0938 10.2863 10.0938 10.5625C10.0938 10.8387 10.3176 11.0625 10.5938 11.0625H12.875C13.1512 11.0625 13.375 10.8387 13.375 10.5625C13.375 10.2863 13.1512 10.0625 12.875 10.0625H10.5938ZM10.5938 12.3125C10.3176 12.3125 10.0938 12.5363 10.0938 12.8125C10.0938 13.0887 10.3176 13.3125 10.5938 13.3125H15.3125C15.5887 13.3125 15.8125 13.0887 15.8125 12.8125C15.8125 12.5363 15.5887 12.3125 15.3125 12.3125H10.5938ZM10.0938 14.75C10.0938 14.4738 10.3176 14.25 10.5938 14.25H13.5625C13.8387 14.25 14.0625 14.4738 14.0625 14.75C14.0625 15.0262 13.8387 15.25 13.5625 15.25H10.5938C10.3176 15.25 10.0938 15.0262 10.0938 14.75ZM15.1875 14.25C14.9113 14.25 14.6875 14.4738 14.6875 14.75C14.6875 15.0262 14.9113 15.25 15.1875 15.25C15.4637 15.25 15.6875 15.0262 15.6875 14.75C15.6875 14.4738 15.4637 14.25 15.1875 14.25Z", fill: "#A5C0CA" }), h("path", { key: '1efbbea95f38eaab6d34af1d1ea20b5cf98504bd', d: "M17.9375 10.5938C17.9375 10.3176 18.1613 10.0938 18.4375 10.0938H21.75C22.0262 10.0938 22.25 10.3176 22.25 10.5938C22.25 10.8699 22.0262 11.0938 21.75 11.0938H18.4375C18.1613 11.0938 17.9375 10.8699 17.9375 10.5938Z", fill: "#00A0D6" }), h("path", { key: 'be54da3ee727f5b7827099927c7afb1c8dd6c055', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.0938 19.3125C10.0938 18.8983 10.4295 18.5625 10.8438 18.5625C11.258 18.5625 11.5938 18.8983 11.5938 19.3125V21.25C11.5938 21.6642 11.258 22 10.8438 22C10.4295 22 10.0938 21.6642 10.0938 21.25V19.3125ZM19.3438 19.3125C19.3438 18.8983 19.6795 18.5625 20.0938 18.5625C20.508 18.5625 20.8438 18.8983 20.8438 19.3125V21.25C20.8438 21.6642 20.508 22 20.0938 22C19.6795 22 19.3438 21.6642 19.3438 21.25V19.3125ZM14.5938 18.5625C14.1795 18.5625 13.8438 18.8983 13.8438 19.3125V21.25C13.8438 21.6642 14.1795 22 14.5938 22C15.008 22 15.3438 21.6642 15.3438 21.25V19.3125C15.3438 18.8983 15.008 18.5625 14.5938 18.5625ZM12.5938 18.9375C12.5938 18.7304 12.7617 18.5625 12.9688 18.5625C13.1758 18.5625 13.3438 18.7304 13.3438 18.9375V21.625C13.3438 21.8321 13.1758 22 12.9688 22C12.7617 22 12.5938 21.8321 12.5938 21.625V18.9375ZM21.5938 18.5625C21.3867 18.5625 21.2188 18.7304 21.2188 18.9375V21.625C21.2188 21.8321 21.3867 22 21.5938 22C21.8008 22 21.9688 21.8321 21.9688 21.625V18.9375C21.9688 18.7304 21.8008 18.5625 21.5938 18.5625ZM17.5938 18.9375C17.5938 18.7304 17.7617 18.5625 17.9688 18.5625C18.1758 18.5625 18.3438 18.7304 18.3438 18.9375V21.625C18.3438 21.8321 18.1758 22 17.9688 22C17.7617 22 17.5938 21.8321 17.5938 21.625V18.9375ZM16.5938 18.5625C16.3176 18.5625 16.0938 18.7863 16.0938 19.0625V21.5C16.0938 21.7762 16.3176 22 16.5938 22C16.8699 22 17.0938 21.7762 17.0938 21.5V19.0625C17.0938 18.7863 16.8699 18.5625 16.5938 18.5625Z", fill: "#0D234B" })))), h("defs", { key: '2d2b614df17f56c528be25d27804cf9c4e8b1c9e' }, h("filter", { key: '1c7b412c254104658f3cec6a01a048908a36a915', id: "filter0_d_17800_45416", x: "-52.5938", y: "-48.5938", width: "137.188", height: "137.188", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB" }, h("feFlood", { key: '8e6d3f054d755175cc3d2e96b356f814b161d3b9', "flood-opacity": "0", result: "BackgroundImageFix" }), h("feColorMatrix", { key: '72cf185feec5f61c5ad0823818dd5d9d1aa3558e', in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), h("feOffset", { key: 'c12f651bcd4f62ee9fe2104634e4318a515c1e79', dy: "4" }), h("feGaussianBlur", { key: 'b6d0028d0387c47269488ae7ed7c870568c32023', stdDeviation: "30" }), h("feColorMatrix", { key: 'acc1052c4a65703d6cf4d2c7716bc9b299468d94', type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" }), h("feBlend", { key: '1bb14668ed99e2d3bd245527bdae646c78898c96', mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_17800_45416" }), h("feBlend", { key: '984158446c947700b92f356532860a3e8147e10c', mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_17800_45416", result: "shape" })), h("linearGradient", { key: '3f77cbf8722750bd894dae18f31e917693199b1b', id: "paint0_linear_17800_45416", x1: "29.2305", y1: "44.3441", x2: "51.5694", y2: "15.1782", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '14540eaae692cf53176cbec45737a43656072bb6', offset: "0.0800778", "stop-color": "#0D244C" }), h("stop", { key: 'b2003e2c029158a38fe68ff8bed0e75cd6ca000f', offset: "1", "stop-color": "#0D234B" })), h("clipPath", { key: 'b6945cc9461ca2b13a436fd38369e820ecfeb6e6', id: "clip0_17800_45416" }, h("rect", { key: 'db436fea1d119d0ea7f31b50e8ea0d848934d062', width: "32", height: "32", fill: "white" }))))), h("div", { key: '723e29b0368cc88e83ca90a2c8a29eb073fb2e53', class: "pn-app-banner__text" }, h("span", { key: '46af19bf9a8180a0503cc49ceeb0469cdccd4d01' }, this.appName), h("br", { key: 'dbc88ba7c81ade84156479d01e7665097b74e021' }), this.appDescription), h("div", { key: 'b5764d80dac817a9d9d4c6b7dddcedcfc7455240', class: "pn-app-banner__cta" }, h("pn-button", { key: '61bd60cb3b981b1894fae95b4cf2a78e350564ab', small: true, href: this.storeLink }, this.ctaText)))));
|
|
80
80
|
}
|
|
81
81
|
static get style() { return PnAppBannerStyle0; }
|
|
82
82
|
}, [0, "pn-app-banner", {
|
|
@@ -18,7 +18,7 @@ const PnBreakpoints$1 = /*@__PURE__*/ proxyCustomElement(class PnBreakpoints ext
|
|
|
18
18
|
return `breakpoints--${this.breakPointClass}`;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '2e319063d318d91845c901f33d783f5a1a57a7e0' }, h("div", { key: 'ccc2f74693cdf8bfcb6dd48ff766ea5f49264de7', class: `breakpoints ${this.createBreakpointClass()} ` }, `${this.currentWidth} px`, ' min-width: ', h("span", { key: 'a1077e0c367ec98d8a9fdb03ed4e5e019b015e4a', class: "reference" }, ' px'))));
|
|
22
22
|
}
|
|
23
23
|
static get style() { return PnBreakpointsStyle0; }
|
|
24
24
|
}, [0, "pn-breakpoints", {
|
|
@@ -43,7 +43,7 @@ const PnChatMessage = /*@__PURE__*/ proxyCustomElement(class PnChatMessage exten
|
|
|
43
43
|
render() {
|
|
44
44
|
const segmentClass = this.customerSegment?.toLowerCase() || '';
|
|
45
45
|
const categoryClass = this.category?.toLowerCase() || '';
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'f4d6fb578fe1167f9cc054f17d29ca6a72b9965f', class: this.getMessageClass() }, h("div", { key: '2c10c50f0c4ee106fb37c7dc7b934d38e014aadf', class: `message-container ${categoryClass}` }, this.getIcon() && (h("span", { key: '405d261fdf80ed7d10d6aa71272c4a12310a3d4d', class: "category" }, h("pn-icon", { key: 'b33a6dce15011c10510462165474c6f69d932ae1', icon: this.getIcon(), color: this.blue700, "aria-hidden": "true", role: "presentation" }))), h("span", { key: 'd524be9eae67f866b8db74dc038491892986393e', class: `message ${segmentClass}` }, h("slot", { key: 'f57298b5988e3de9912eec740a6dcf26c34d2ea6' })))));
|
|
47
47
|
}
|
|
48
48
|
static get style() { return PnChatMessageStyle0; }
|
|
49
49
|
}, [4, "pn-chat-message", {
|
package/components/pn-chat.js
CHANGED
|
@@ -466,9 +466,9 @@ const PnChat$1 = /*@__PURE__*/ proxyCustomElement(class PnChat extends HTMLEleme
|
|
|
466
466
|
const mainId = 'chat-main';
|
|
467
467
|
const inputId = 'chat-input';
|
|
468
468
|
const headerButton = this.messagesData?.header.button;
|
|
469
|
-
return (h(Host, { key: '
|
|
469
|
+
return (h(Host, { key: '83e45973c72da8db520a2772e21c707057f8ea05', class: this.customerSegment }, !this.isClosed && this.messagesData && (h("div", { key: 'bd879e2a4dae3f4e8d6ef1ba1eddf87d11eb027c', class: `pn-chat ${this.isMinimized ? 'minimized' : ''} ${this.isClosed ? 'closed' : ''}`, ref: el => (this.chatRef = el), role: "region", "aria-label": this.mainHeading }, !this.isMinimized && (h(Fragment, { key: '031dbbb2210546b96ab3e1e2780147b2ef3ccf8f' }, h("header", { key: 'cf4b00ebafc4d246c325ebaab7ceed86267f2cf4', class: "chat-header", role: "banner" }, h("h1", { key: '016ae1d0bd22835856fef753e8ee2ad6acdcdf9b', id: "chat-title" }, this.mainHeading), h("div", { key: 'f75f5e771c7ad7d8e07a6d858da5eccc6f4ab78f', class: "chat-controls", role: "toolbar", "aria-label": this.getTranslation('chatControlsAriaLabel') }, h("pn-button", { key: '99c86d30b29adba316f8a33294d2b29f48a05fea', icon: minus, "icon-only": "true", class: "minimize-btn", onClick: this.toggleChat, "aria-expanded": !this.isMinimized, "aria-controls": mainId, "aria-label": this.getTranslation('minimizeChatAriaLabel'), appearance: "light", tooltip: this.getTranslation('minimizeChatAriaLabel'), small: "true" }), h("pn-button", { key: 'd599bdc10e557ac09a71e30c9068d5a75477cf5f', icon: close, "icon-only": "true", class: "close-btn", onClick: this.closeChat, "aria-expanded": !this.isMinimized, "aria-label": this.getTranslation('closeChatAriaLabel'), appearance: "light", tooltip: this.getTranslation('closeChatAriaLabel'), small: "true" }))), (this.messagesData?.messages?.length ?? 0) > 0 ?
|
|
470
470
|
(h("main", { id: mainId, class: "chat-main", role: "main", "aria-labelledby": "chat-title" }, this.messagesData.header && (h("div", { class: "chat-overview" }, h("div", { class: "body" }, this.messagesData.header.body), headerButton && (h("pn-button", { href: headerButton.href, class: headerButton.class, appearance: headerButton.appearance, variant: headerButton.variant, small: headerButton.small, role: "button", onKeyDown: e => this.handleButtonKeyDown(e) }, headerButton.content)))), h("div", { ref: el => (this.chatMessagesContainer = el), class: "chat-messages", role: "log", "aria-live": "polite", "aria-label": this.getTranslation('chatMessagesAriaLabel') }, this.groupMessages()), h("pn-icon", { class: "indicator-icon", "aria-label": this.getTranslation('waitingForAnswerLabel'), role: "presentation" })))
|
|
471
|
-
: (h("main", { id: mainId, class: "chat-main loading-chat-main", role: "main", "aria-labelledby": "chat-title" }, h("div", { class: "chat-loading-spinner" }, h("pn-spinner", { light: "true", size: "1.5" })), h("span", { class: "chat-loading-content" }, this.getTranslation('loadingText')))), h("footer", { key: '
|
|
471
|
+
: (h("main", { id: mainId, class: "chat-main loading-chat-main", role: "main", "aria-labelledby": "chat-title" }, h("div", { class: "chat-loading-spinner" }, h("pn-spinner", { light: "true", size: "1.5" })), h("span", { class: "chat-loading-content" }, this.getTranslation('loadingText')))), h("footer", { key: '8a80e22c49ddc5fd2a3e8c0e6bf4ec19a01a9feb', class: "chat-footer", role: "contentinfo" }, h("div", { key: 'ca74ace2f94575115e14b324741d71be78483ebe', class: "form", role: "form", "aria-labelledby": inputId }, h("label", { key: 'f8d85aed60f7817834db48bfb6c9cbc71ee45def', htmlFor: inputId, class: "sr-only" }, this.getTranslation('writeChatMessagePlaceholder')), h("div", { key: '36cfef57c4a0c025cb3867fb9027713b51b68492', class: "chat-input-container" }, h("input", { key: '6a1cd7179a1e72a7635f4889576912f54012bdf4', id: inputId, class: "chat-text-input", ref: el => (this.inputRef = el), type: "text", placeholder: this.getTranslation('writeChatMessagePlaceholder'), value: this.message, onInput: (e) => (this.message = e.target.value), onKeyPress: this.handleKeyPress, maxLength: 3990 }), !this.message.trim() ? (h("div", { class: "chat-disabled-button", role: "button", "aria-label": this.getTranslation('sendButtonText'), "aria-disabled": "true", tabIndex: -1 }, h("pn-icon", { color: "gray400", icon: submit }))) : (h("pn-button", { "icon-only": "true", variant: "borderless", appearance: "light", icon: submit, onClick: this.handleSendMessage, disabled: !this.message.trim(), "aria-label": this.getTranslation('sendButtonText'), tooltip: this.getTranslation('sendButtonText') }))))))), this.isMinimized && (h("pn-button", { key: 'ae2cbbbc2e4570985655c27933e5db24368c8b8e', icon: talk_bubble, "icon-only": "true", class: "open-chat-btn", onClick: this.toggleChat, tooltip: this.getTranslation('openChatAriaLabel'), "aria-label": this.getTranslation('openChatAriaLabel'), "aria-expanded": !this.isMinimized }))))));
|
|
472
472
|
}
|
|
473
473
|
static get watchers() { return {
|
|
474
474
|
"messages": ["handleMessagesChange"],
|
|
@@ -13,7 +13,7 @@ const PnProfileSelectorOption = /*@__PURE__*/ proxyCustomElement(class PnProfile
|
|
|
13
13
|
}
|
|
14
14
|
get hostElement() { return this; }
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '52a320a2c3e4c67076f06179b5a68275e02722f7' }, h("a", { key: '879dc49030031d3a4d0525de3365b29c3de99a54', class: "customernumberoption", href: this.url }, h("span", { key: 'a3ad37f83889ec8d8b5f482c3e1a2e12fa80e56e', class: "customernumberoption-text" }, h("span", { key: 'a416904a3692d9e46956fa21f0b22ee85e11f471', class: "customernumberoption-title" }, this.heading), h("span", { key: 'f6bcfea52293afbf06564fd59ec3e400b63a9f8f', class: "customernumberoption-description" }, this.description), h("slot", { key: 'e1927cb59a62d1b746e10fbb14dd83756c09f34c' })))));
|
|
17
17
|
}
|
|
18
18
|
static get style() { return PnCustomernumberSelectorOptionStyle0; }
|
|
19
19
|
}, [4, "pn-customernumber-selector-option", {
|
|
@@ -48,7 +48,7 @@ const PnCustomernumberSelector$1 = /*@__PURE__*/ proxyCustomElement(class PnCust
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '4ed4d098d46f3f43275f4d67b863988c0b213277' }, h("div", { key: 'b1e7ca84ba39d50e6c22fc8106c0c874ac455259', class: "customernumber-container" }, h("button", { key: '3df56551a19812d700f72f9292be9255608050a4', class: "customernumber-toggle", "aria-label": this.i18n.toggleLinkTitleText, onClick: () => (this.open = !this.open) }, h("div", { key: '8bac61ed907a1a997ca05a27f02abec4f8552a31', class: "customernumber-selected" }, h("strong", { key: '778d6a52e2abac5451cec5de7e41d45bfc7c5c3d', class: "customernumber-selected-title" }, this.heading), h("div", { key: '3861b91b4cba5396c2ac11adf5e0325fe995afd5', class: "customernumber-selected-description" }, this.description)), h("pn-icon", { key: 'e71afd8c90fcf3fe80a4260898c865180431dc5c', icon: this.open ? angle_up : angle_down, small: "false", color: "blue700" })), h("div", { key: '0a1ba423416e5b2a3d28a3b0a1701fd7173c02f5', class: "customernumber-options" }, h("slot", { key: '3541a01d558b3df7f757bcaafa10849eabd8edbc' })))));
|
|
52
52
|
}
|
|
53
53
|
static get style() { return PnCustomernumberSelectorStyle0; }
|
|
54
54
|
}, [4, "pn-customernumber-selector", {
|
|
@@ -124,7 +124,7 @@ const PnfindPriceResult = /*@__PURE__*/ proxyCustomElement(class PnfindPriceResu
|
|
|
124
124
|
this.shopId = showServicepointLink ? '-servicepoint' : '-stampshop';
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: 'af7b0af45060ca1abcc68a8f9fc19761db996555' }, h("pn-product-card", { key: '5094e756231d749513bd7d0da43e5210164d6a0c', "data-productid": this.item.id }, h("pn-illustration", { key: '7651952ac7e502576425a9c0d2400758d504332f', slot: "illustration", illustration: this.item.illustration }), h("div", { key: '6caf7b394828e112dba6b2791f38f8b688631e0f', slot: "title" }, this.item.infopagelink ? (h("h2", null, h("a", { href: this.item.infopagelink, target: "_blank" }, this.item.name))) : (h("h2", null, this.item.name)), this.item.highestrankusp === 'Snabbast' ? (h("pn-titletag", { slot: "Snabbast", icon: bolt, color: "blue700" }, this.item.highestrankusp)) : this.item.highestrankusp === 'Billigast' ? (h("pn-titletag", { slot: "Billigast", icon: box_label, color: "green700" }, this.item.highestrankusp)) : null), h("div", { key: '68414684d0df71a845561aeb45f955be1781cc9a', slot: "content" }, h("div", { key: '8462265dce3c233b767921519096e9124926f09f', 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 ? h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle }) : null, h("div", { key: '61540d6124451b22b48932fe46b732732c3d203e', slot: "cardprice" }, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: sendDirectUrl, linkid: this.linkId + '-portal' })) : null, this.item.pricestamps ? (this.item.name.toLocaleLowerCase() !== 'riktiga vykort' ? (h("pn-product-card-price", { slot: "stampPrice", label: this.shopLabel, amount: this.item.pricestamps + '', currency: state.market.currency, url: this.shopUrl, linkid: this.linkId + this.shopId })) : (h("pn-product-card-price", { slot: "riktiga", label: state.i18n.realPostcard, amount: this.item.pricestamps + '', currency: state.market.currency, url: RealValues['WebUrl'], linkid: this.linkId + '-riktiga' }))) : null), h("div", { key: 'c7eefd3971a634eded0ec1d38eb45d296a777256', slot: "servicepoint" }, this.item.showservicepointlink ? (h("a", { href: state.market.servicePoint, target: "_blank" }, h("pn-icon", { icon: map_marker, color: "blue700" }), state.i18n.servicePointLink)) : null), h("div", { key: 'da8821941f5a0d4e1c71f0da64122923eacb21bd', slot: "mobiledownload" }, this.item.name.toLocaleLowerCase() === 'riktiga vykort' ? (h("div", { id: "riktiga" }, h("h4", null, state.i18n.realPostcardMobile), h("div", null, h("a", { href: RealValues['AndroidAppUrl'], target: "_blank" }, h("img", { class: "riktigaAndroidImg", src: RealValues['AndroidImg'] })), h("a", { href: RealValues['IosAppUrl'], target: "_blank" }, h("img", { class: "riktigaAppleImg", src: RealValues['IosImg'] }))))) : null))));
|
|
128
128
|
}
|
|
129
129
|
static get watchers() { return {
|
|
130
130
|
"item": ["composeItems"]
|
|
@@ -207,11 +207,11 @@ const PnfindPrice = /*@__PURE__*/ proxyCustomElement(class PnfindPrice extends H
|
|
|
207
207
|
this.filteredItems = weightFilteredData;
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
210
|
-
return (h("div", { key: '
|
|
210
|
+
return (h("div", { key: 'a87272a9316766c7cc8770bba1becf578619c731', class: "findprice-form" }, h("fieldset", { key: '20302323f0f34aebc4c7c3642ef0a4f320d936e8' }, h("legend", { key: '5333ad2f3d610f1d5e15515f1c73ab34a4f3bab9', class: "heading" }, state.i18n.sizeheading), h("div", { key: 'f738d920077c9c429d1f86d0a55e2f346585c748', class: "sizecategory" }, h("table", { key: '6b99b8ade6780a8764f008c770667f7a19fd166f', class: "sizeTable" }, h("img", { key: '5814f6873d2a7b5cf3c7c28cecff36d6448b1462', id: "clouds", src: cloudsSvg }), h("tr", { key: '7ecbe06255270535921cf41d3db05248a39dacb1' }, h("td", { key: '69af4b42b2cf107a6cfdcc35ecef0fe7b12e7993' }, h("img", { key: '54ab7b49042eb56f3642d843bd205df95b433c9b', class: "firstCell", src: postnordPerson1Svg })), h("td", { key: '3fd6c96b6c8af274da0b772263f050b15213feb9' }, h("img", { key: 'd329ec0a1023936fa32a5e1f8b7abadc804cadfb', src: smallPackageSvg })), h("td", { key: '802dfcc72142e0ae660d33a153dae4550ef88b5d' }, h("img", { key: '629121a3fad3ef08e7a70b634bf24bd06d9b25bd', src: mediumPackageSvg })), h("td", { key: '977429a1b104886f653b779142d35f9205e14c26' }, h("img", { key: '9adcdb575095ae89ab6d422b0b2ae7cf882d6bac', src: largePackageSvg }))), h("tr", { key: '43fb37f9188445510f9aad5dd9c8205de49271bc' }, h("td", { key: '7c0a22d52384a6030888eb9c26ffa0779f2f6b8d' }), 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: () => {
|
|
211
211
|
this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
|
|
212
212
|
this.weight = { value: 0, name: '' };
|
|
213
213
|
this.weightvalue = this.weight.value;
|
|
214
|
-
} })))))))), h("fieldset", { key: '
|
|
214
|
+
} })))))))), h("fieldset", { key: 'cf8eeff6d0f5737d2b977b6176886b64b4dd044d' }, h("legend", { key: '129f078e7ef8588f74f29ce3600d310542bac761', class: "heading" }, state.i18n.weightheading), this.sizecategory.value && weights[this.sizecategory.unit] ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights[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[this.sizecategory.unit].findIndex(x => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
|
|
215
215
|
this.weight = weights[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
|
|
216
216
|
this.weightvalue = this.weight.value;
|
|
217
217
|
} }, wght.name)))))) : null, this.filteredItems && this.filteredItems.length > 0 ? (h("div", { class: "resultlist" }, state.i18n.resultlistheading ? h("div", { class: "resultHeading" }, state.i18n.resultlistheading) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-price-result", { item: item })))))) : null)));
|
|
@@ -53,7 +53,7 @@ const PnfindServiceAndPriceResult = /*@__PURE__*/ proxyCustomElement(class Pnfin
|
|
|
53
53
|
// (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight/1000) + " kg" : this.item.maxweight + " g";
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '205e3dd24a65ea8a0420eee16f98529c1b4de1ad' }, 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.i18n.maxweightlabel, text: this.weightText }) : null, item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.stampshopcta, amount: item.pricestamps + '', currency: state.market.currency })) : null, item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null, item.note ? (h("small", { slot: "note" }, h("p", null, item.note))) : null)))));
|
|
57
57
|
}
|
|
58
58
|
static get watchers() { return {
|
|
59
59
|
"item": ["composeItems"]
|
|
@@ -217,7 +217,7 @@ const PnfindServiceAndPrice = /*@__PURE__*/ proxyCustomElement(class PnfindServi
|
|
|
217
217
|
this.filteredItems = weightFilteredData;
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
|
-
return (h("div", { key: '
|
|
220
|
+
return (h("div", { key: 'd415e3280e0bd4962e67771d8c5f3ac28b8db1ff' }, h("div", { key: '4ed7a5c9fa08ca698c422244d83d3bcfcc27b6a4', class: "findprice-form" }, state.i18n.componentheading ? h("h2", null, state.i18n.componentheading) : null, h("div", { key: 'c0679e75afcb1c196f1f7abf0426785919eca6ee', 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: () => {
|
|
221
221
|
this.postagetype = postagetypes.filter(x => x.value === postagetype.value)[0];
|
|
222
222
|
this.deliveryscope = { value: '', name: '', icon: '' };
|
|
223
223
|
this.weight = { value: 0, name: '' };
|
|
@@ -34,7 +34,7 @@ const PnHeroBlockInternational$1 = /*@__PURE__*/ proxyCustomElement(class PnHero
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'cd3a9ba8eb365ff05a13f22c217cf6518187344d', class: `hero-international ${this.centeredLayout ? 'hero-international--centered-layout' : ''} ${this.animateLogo ? 'hero-international--animate' : ''}` }, h("div", { key: 'ada4fbb353b6a20cf704beab8a2b3d03c1f242b7', class: "hero-international__content" }, h("div", { key: '79b742cee7177ac79d0c7a262e4e770e4c87161e', class: "flex-wrapper" }, h("div", { key: '8987b7d67a5d47799d9c3a28fbdfdbd4705aba59', class: "content-col" }, h("span", { key: '45775dada897e980f63f132498009a2cb1fc653f', class: "hero-international__content__site-tag" }, "International"), h("h1", { key: '64e02d12cb9f0fdd217337325e3688a074a68f2f', class: "hero-international__content__heading" }, this.heading, " ", h("span", { key: '41fd68780031bab9bd1661ee823fb2a5160efbc9' }, this.subHeading)), h("p", { key: '59a9e5e654c0eb0bb1a587a0516737db7c49e4a9', class: "hero-international__content__preamble" }, this.preamble), this.hasCtaButtonSlot && (h("div", { key: 'f6ddcfa3f618838abf2cfa9998f0d2199a719dff', class: "hero-international__content__cta" }, h("slot", { key: 'fc5282ee26529ab600854cd327d815013f4d719d', name: "hero-international-cta" })))), !this.centeredLayout && (h("div", { key: 'ed8a829af70e56eab2718e0f9f90a334c5d3c709', class: "hero-international__content__logo-col" }, h("div", { key: '79ea2b92017f13690d615e98083a773990a45978', class: "hero-international__content__logo-col__image" }, h("svg", { key: 'd3570ede2e968e22073d85583a716cc69ee3f902', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 919 336" }, h("circle", { key: 'bce0e197353421c3d2f44c13980910e243202b71', class: "cls-1", cx: "168", cy: "168", r: "168" }), h("circle", { key: '4f57bb01acabcd52546ce96a9195cdac7e5513cd', class: "cls-1", cx: "519", cy: "168", r: "168" }), h("path", { key: 'bc1b9a24cbd82f4285e8723201a1ff7c239b7807', class: "cls-1", d: "M510 0h409v336H510z" }), h("path", { key: '6db8c63917cccfc8b26e4831e18d8cba02da4f34', d: "M235.51 155.55c0 11.19-9.19 15.88-17.84 15.88s-17.46-4.58-17.46-15.4 9.02-15.88 17.84-15.88c8.6 0 17.46 4.63 17.46 15.4Zm-11.65.33c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.48 6.02 6.07 6.02s6.02-2.56 6.02-6.02Zm-147.53 0c0 8.53-5.91 15.56-15.1 15.56-5.64 0-8.27-2.77-8.27-2.77v10.34H42v-37.89h10.96V144s2.85-3.84 9.08-3.84c9.13 0 14.29 6.98 14.29 15.72Zm-11.6 0c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.47 6.02 6.07 6.02s6.02-2.56 6.02-6.02Zm184.35.47c0-4.47 2.74-5.86 6.4-5.86 2.25 0 3.71.53 3.71.53l.27-10.02s-.7-.32-2.58-.32c-6.12 0-7.79 3.84-7.79 3.84v-3.41h-10.96v29.42h10.96v-14.18ZM294 132v38.53h-10.96v-2.88s-2.85 3.84-9.08 3.84c-9.13 0-14.29-6.98-14.29-15.72s5.91-15.56 15.1-15.56c5.64 0 8.27 2.77 8.27 2.77v-8.85L294 132Zm-10.64 23.77c0-3.47-2.47-6.02-6.07-6.02s-6.02 2.56-6.02 6.02c0 3.67 2.42 6.18 6.02 6.18s6.07-2.51 6.07-6.18Zm-96.71-15.62c-6.39 0-8.71 3.84-8.71 3.84v-2.88h-10.96v29.42h10.96v-15.08c0-3.73 1.4-5.44 4.78-5.44s3.87 2.77 3.87 6.29v14.23h11.07v-18.07c0-8.1-3.92-12.31-11.01-12.31Zm-30.74-5.65h-10.96v36.03h10.96v-20.25h5.16l5-9.17h-10.16v-6.61Zm-24.55 17.27c-3.55-.53-5.11-.53-5.11-1.92 0-1.17 1.45-1.65 4.3-1.65 4.83 0 9.08 1.6 9.08 1.6l1.93-8.26s-4.67-1.33-10.91-1.33c-10.48 0-15.96 4-15.96 10.39 0 4.96 2.96 7.89 11.61 9 3.65.48 5 .69 5 2.03s-1.45 1.7-3.98 1.7c-5.48 0-10.64-2.29-10.64-2.29l-2.2 8.53s5.16 1.81 11.88 1.81c11.28 0 16.49-3.95 16.49-10.39 0-5.11-2.79-7.88-11.49-9.22Zm-17.9 3.78c0 11.19-9.19 15.88-17.84 15.88s-17.46-4.58-17.46-15.4 9.03-15.88 17.84-15.88c8.6 0 17.46 4.63 17.46 15.4Zm-11.66.33c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.47 6.02 6.07 6.02s6.02-2.56 6.02-6.02Z", class: "svg-path-style2" }), h("path", { key: '9169e1a186a9d655aeb07026c87cb8990f0cd6d7', d: "M167 197.67v-15.01h2.71v15.01H167Zm15.27-7.02c0-2.41-1.92-4.08-4.24-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.51-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm8-3.8h-2.8v-3.62H185v10.99c0 2.01 1.43 3.44 3.46 3.44h1.81v-2.29h-1.32c-.9 0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1Zm11.93 6.2c0-.15.04-.71.04-.97 0-3.31-2.25-5.56-5.49-5.56s-5.56 2.56-5.56 5.74 2.49 5.74 5.73 5.74c2.12 0 3.86-.84 4.98-2.58l-2.05-1.1c-.6.88-1.52 1.48-2.93 1.48-1.68 0-3-1.04-3.33-2.74h8.6m-8.53-1.94c.37-1.48 1.52-2.47 3.07-2.47 1.7 0 2.78.95 3.09 2.47h-6.16Zm16.03-4.26c-1.61 0-2.62.84-3.09 1.83v-1.83h-2.32v10.81h2.47v-5.25c0-1.68 1.1-3 2.71-3h1.08v-2.56h-.86Zm12.55 3.79c0-2.41-1.92-4.08-4.23-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.51-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm11.06-2.27c-.75-1.13-2.14-1.81-3.7-1.81-3.15 0-5.34 2.47-5.34 5.67s2.18 5.67 5.34 5.67c1.56 0 2.95-.68 3.7-1.83v1.59h2.32v-10.81h-2.32v1.52Zm0 3.86c0 1.87-1.32 3.35-3.29 3.35s-3.27-1.48-3.27-3.35 1.3-3.38 3.27-3.38 3.29 1.5 3.29 3.38Zm10.31-5.39h-2.8v-3.62h-2.47v10.99c0 2.01 1.43 3.44 3.46 3.44h1.81v-2.29h-1.32c-.91 0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1Zm1.84-3.22c0 .84.68 1.52 1.54 1.52s1.57-.68 1.57-1.52-.71-1.5-1.57-1.5-1.54.69-1.54 1.5Zm2.78 14.04v-10.81h-2.47v10.81h2.47Zm2.12-5.41c0 3.18 2.49 5.74 5.78 5.74s5.76-2.56 5.76-5.74-2.49-5.74-5.76-5.74-5.78 2.54-5.78 5.74Zm9.06 0c0 1.88-1.39 3.38-3.29 3.38s-3.29-1.5-3.29-3.38 1.37-3.38 3.29-3.38 3.29 1.48 3.29 3.38Zm14.41-1.61c0-2.41-1.92-4.08-4.23-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.52-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm11.06-2.27c-.75-1.13-2.14-1.81-3.7-1.81-3.15 0-5.34 2.47-5.34 5.67s2.18 5.67 5.34 5.67c1.57 0 2.95-.68 3.7-1.83v1.59h2.32v-10.81h-2.32v1.52Zm0 3.86c0 1.87-1.32 3.35-3.29 3.35s-3.26-1.48-3.26-3.35 1.3-3.38 3.26-3.38 3.29 1.5 3.29 3.38Zm9.12 3.2h-.46c-.77 0-1.15-.4-1.15-1.17V182h-2.47v12.69c0 1.81 1.23 2.98 3.13 2.98h.95v-2.23Z", class: "svg-path-style1" })))))), this.showSideLoader && !this.centeredLayout && (h("div", { key: '955802798141357badfa0dff8b208636700e6cd4', class: `hero-international__side-loader ${this.animateSideloader ? 'hero-international__side-loader--animate' : ''}` }, h("div", { key: 'b40db830d678ae7eea42886c4e58490709d16c89', class: "shape" }))))));
|
|
38
38
|
}
|
|
39
39
|
static get style() { return PnHeroBlockInternationalStyle0; }
|
|
40
40
|
}, [4, "pn-hero-block-international", {
|