@postnord/pn-marketweb-components 2.4.29 → 2.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/{index-95e5b7f9.js → index-7ebb05d7.js} +1 -1
- package/cjs/{index-4199ff85.js → index-d6f2e2f9.js} +6 -0
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-price-store-e0d1e412.js → pn-find-price-store-1f005e0d.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +3 -3
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-service-and-price-store-6e26630d.js → pn-find-service-and-price-store-0b544d1e.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
- package/cjs/pn-line-shape.cjs.entry.js +1 -1
- package/cjs/pn-link-list.cjs.entry.js +57 -0
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-8c337865.js → pn-mainnav-store-a31c1d1e.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
- package/cjs/{pn-marketweb-siteheader-store-5ced6902.js → pn-marketweb-siteheader-store-a939014c.js} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +2 -2
- package/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-play-on-scroll.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 +2 -2
- package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
- 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 +3 -3
- package/cjs/{pn-profile-modal-store-947b08ae.js → pn-profile-modal-store-2525eee2.js} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal.cjs.entry.js +3 -3
- 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 +25 -3
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
- package/cjs/pn-quick-cta.cjs.entry.js +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +1 -1
- package/cjs/pn-share-item.cjs.entry.js +1 -1
- package/cjs/pn-share.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
- package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
- package/cjs/{pn-sidenav-store-d2389306.js → pn-sidenav-store-18b8c3ff.js} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +1 -1
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js +1 -1
- package/collection/components/widgets/pn-link-list/link-list.stories.js +50 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.css +140 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.js +185 -0
- package/collection/components/widgets/pn-proxio-findprice/data.js +20 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +21 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/pn-link-list.d.ts +11 -0
- package/components/pn-link-list.js +80 -0
- package/components/pn-multi-row-connected-dropdown.js +1 -1
- package/components/pn-proxio-findprice.js +24 -1
- package/esm/{index-ee44c065.js → index-be8c3299.js} +6 -0
- package/esm/{index-b71e0f8e.js → index-e6fbe66d.js} +1 -1
- package/esm/loader.js +3 -3
- package/esm/pn-address-autofill.entry.js +1 -1
- package/esm/pn-animated-tile.entry.js +1 -1
- package/esm/pn-app-banner.entry.js +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/pn-breakpoints.entry.js +1 -1
- package/esm/pn-chart.entry.js +1 -1
- package/esm/pn-charts-card.entry.js +1 -1
- package/esm/pn-choice-button.entry.js +1 -1
- package/esm/pn-cta-block.entry.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-date-and-time.entry.js +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +3 -3
- package/esm/{pn-find-price-store-5810a2b9.js → pn-find-price-store-9d2df21a.js} +1 -1
- package/esm/pn-find-price.entry.js +3 -3
- package/esm/pn-find-service-and-price-result.entry.js +3 -3
- package/esm/{pn-find-service-and-price-store-0b1b3ab7.js → pn-find-service-and-price-store-60025dfc.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-language-selector_9.entry.js +4 -4
- package/esm/pn-line-shape.entry.js +1 -1
- package/esm/pn-link-list.entry.js +53 -0
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-8c221c2f.js → pn-mainnav-store-35a91e97.js} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-input.entry.js +1 -1
- package/esm/pn-marketweb-search.entry.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
- package/esm/{pn-marketweb-siteheader-store-cea5016e.js → pn-marketweb-siteheader-store-aba9e86a.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-multi-formfield.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +2 -2
- package/esm/pn-multiple-input.entry.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-play-on-scroll.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +2 -2
- package/esm/pn-product-pricelist.entry.js +3 -3
- 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 +3 -3
- package/esm/{pn-profile-modal-store-e08316b5.js → pn-profile-modal-store-12c5acf9.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +3 -3
- package/esm/pn-profile-modal.entry.js +3 -3
- 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 +25 -3
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-quote-card.entry.js +1 -1
- package/esm/pn-scroll_2.entry.js +1 -1
- package/esm/pn-share-item.entry.js +1 -1
- package/esm/pn-share.entry.js +1 -1
- package/esm/pn-sidenav-level.entry.js +3 -3
- package/esm/pn-sidenav-link.entry.js +3 -3
- package/esm/{pn-sidenav-store-9530b0da.js → pn-sidenav-store-a515dd69.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +3 -3
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_3.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +1 -1
- package/esm/pn-stats-info.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +1 -1
- package/esm/pn-titletag.entry.js +1 -1
- package/esm-es5/{index-ee44c065.js → index-be8c3299.js} +1 -1
- package/esm-es5/{index-b71e0f8e.js → index-e6fbe66d.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-address-autofill.entry.js +1 -1
- package/esm-es5/pn-animated-tile.entry.js +1 -1
- package/esm-es5/pn-app-banner.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-breakpoints.entry.js +1 -1
- package/esm-es5/pn-chart.entry.js +1 -1
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -1
- package/esm-es5/pn-cta-block.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-date-and-time.entry.js +1 -1
- package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-5810a2b9.js → pn-find-price-store-9d2df21a.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-service-and-price-store-0b1b3ab7.js → pn-find-service-and-price-store-60025dfc.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-line-shape.entry.js +1 -1
- package/esm-es5/pn-link-list.entry.js +1 -0
- package/esm-es5/pn-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-8c221c2f.js → pn-mainnav-store-35a91e97.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-store-aba9e86a.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-multi-formfield.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm-es5/pn-multiple-input.entry.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-play-on-scroll.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -1
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
- package/esm-es5/pn-product-tile.entry.js +1 -1
- package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
- package/esm-es5/{pn-profile-modal-store-e08316b5.js → pn-profile-modal-store-12c5acf9.js} +1 -1
- package/esm-es5/pn-profile-modal-type.entry.js +1 -1
- package/esm-es5/pn-profile-modal.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-quote-card.entry.js +1 -1
- package/esm-es5/pn-scroll_2.entry.js +1 -1
- package/esm-es5/pn-share-item.entry.js +1 -1
- package/esm-es5/pn-share.entry.js +1 -1
- package/esm-es5/pn-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-9530b0da.js → pn-sidenav-store-a515dd69.js} +1 -1
- package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_3.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/esm-es5/pn-teaser-card.entry.js +1 -1
- package/esm-es5/pn-titletag.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-cde2fce7.entry.js → p-00d87476.entry.js} +1 -1
- package/pn-market-web-components/{p-b28cf3a3.system.entry.js → p-027911c8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e3a65e18.js → p-03d7d79b.js} +1 -1
- package/pn-market-web-components/{p-4fbea675.entry.js → p-0412e417.entry.js} +1 -1
- package/pn-market-web-components/{p-83c85053.system.entry.js → p-05257edc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fba780f8.system.entry.js → p-087a6e41.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3f2bc920.entry.js → p-0a3aa74f.entry.js} +1 -1
- package/pn-market-web-components/{p-f9b8baf0.system.entry.js → p-0f6f212a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e47abff1.system.entry.js → p-0f73d268.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c2415b38.entry.js → p-103c054e.entry.js} +1 -1
- package/pn-market-web-components/{p-e5d994ff.system.js → p-11f6fb30.system.js} +1 -1
- package/pn-market-web-components/{p-1b282c2b.entry.js → p-132feb89.entry.js} +1 -1
- package/pn-market-web-components/{p-b1527c0c.entry.js → p-13f2cbda.entry.js} +1 -1
- package/pn-market-web-components/{p-bbcd8889.system.entry.js → p-14ebd1f5.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3a897643.system.entry.js → p-1565d46e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9d517155.entry.js → p-15fd32d4.entry.js} +1 -1
- package/pn-market-web-components/{p-16fedd71.entry.js → p-1998b5b1.entry.js} +1 -1
- package/pn-market-web-components/{p-267fc52b.entry.js → p-1e0fd641.entry.js} +1 -1
- package/pn-market-web-components/{p-57957809.entry.js → p-26869f6d.entry.js} +1 -1
- package/pn-market-web-components/{p-af1be0d9.entry.js → p-294cb592.entry.js} +1 -1
- package/pn-market-web-components/{p-62bceebe.system.entry.js → p-29a7c74f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0be5cbf5.entry.js → p-2e6d5633.entry.js} +1 -1
- package/pn-market-web-components/p-2ef39f23.entry.js +1 -0
- package/pn-market-web-components/{p-c954c090.entry.js → p-2f4aa8c6.entry.js} +1 -1
- package/pn-market-web-components/{p-70ef1b2d.system.entry.js → p-30571cc1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0ee378ea.system.entry.js → p-332d070d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e00b1afa.entry.js → p-335d95b7.entry.js} +1 -1
- package/pn-market-web-components/{p-436857a8.entry.js → p-345648e8.entry.js} +1 -1
- package/pn-market-web-components/{p-38c861d5.system.entry.js → p-35b5ea63.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ad952e14.system.entry.js → p-390895ec.system.entry.js} +1 -1
- package/pn-market-web-components/{p-738c179b.system.entry.js → p-39f2c4d3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a953d346.entry.js → p-3c2b6fb6.entry.js} +1 -1
- package/pn-market-web-components/{p-ca04e415.system.entry.js → p-3d0c3caa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7877ce39.system.entry.js → p-3ee0f67f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8e9e0c04.entry.js → p-4069761c.entry.js} +1 -1
- package/pn-market-web-components/{p-e5d9f268.entry.js → p-42ea5bd1.entry.js} +1 -1
- package/pn-market-web-components/{p-7364721d.system.entry.js → p-43b76595.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1bf35bf0.entry.js → p-4572f290.entry.js} +1 -1
- package/pn-market-web-components/{p-1b4a75b3.system.entry.js → p-463a5975.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e247fdf4.system.entry.js → p-476c4f58.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6fe471aa.system.entry.js → p-48a38770.system.entry.js} +1 -1
- package/pn-market-web-components/{p-420c307b.system.js → p-48da3826.system.js} +1 -1
- package/pn-market-web-components/{p-759a2b20.system.entry.js → p-49896e47.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4b510969.entry.js → p-4e73bb67.entry.js} +1 -1
- package/pn-market-web-components/{p-96729f36.system.entry.js → p-550b2b29.system.entry.js} +1 -1
- package/pn-market-web-components/p-583df48e.system.entry.js +1 -0
- package/pn-market-web-components/{p-7bf30d19.entry.js → p-5840be2e.entry.js} +1 -1
- package/pn-market-web-components/{p-153b4454.system.entry.js → p-592360ba.system.entry.js} +1 -1
- package/pn-market-web-components/{p-196b2316.system.entry.js → p-595e8f54.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2744b30a.entry.js → p-5e61eb13.entry.js} +1 -1
- package/pn-market-web-components/{p-3e5d59f2.system.entry.js → p-609f1695.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c02fc405.entry.js → p-6125c132.entry.js} +1 -1
- package/pn-market-web-components/{p-7ffa5533.system.js → p-6259e4f4.system.js} +1 -1
- package/pn-market-web-components/{p-59d44719.entry.js → p-63679401.entry.js} +1 -1
- package/pn-market-web-components/{p-c0961278.system.entry.js → p-63b48e94.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4afba818.entry.js → p-64048a03.entry.js} +1 -1
- package/pn-market-web-components/{p-4f2bdae2.entry.js → p-64691d51.entry.js} +1 -1
- package/pn-market-web-components/{p-fec3dc66.entry.js → p-666d2bfb.entry.js} +1 -1
- package/pn-market-web-components/{p-4d2d81b8.system.entry.js → p-688d183e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ad7a00b6.system.entry.js → p-69342caf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a7d52aee.js → p-6a230cb1.js} +1 -1
- package/pn-market-web-components/{p-e6e7e18a.entry.js → p-6a71dc95.entry.js} +1 -1
- package/pn-market-web-components/{p-e05b6e0c.entry.js → p-6aab92c0.entry.js} +1 -1
- package/pn-market-web-components/{p-3aef506c.entry.js → p-6aaf35c7.entry.js} +1 -1
- package/pn-market-web-components/{p-f074da8f.system.js → p-6b02dc02.system.js} +1 -1
- package/pn-market-web-components/p-6d945626.system.entry.js +1 -0
- package/pn-market-web-components/{p-f02617fc.entry.js → p-6d9f011f.entry.js} +1 -1
- package/pn-market-web-components/{p-fdb1905d.js → p-746a2620.js} +1 -1
- package/pn-market-web-components/{p-7c1e5042.entry.js → p-7e6853a7.entry.js} +1 -1
- package/pn-market-web-components/{p-1024c80b.entry.js → p-80b04869.entry.js} +1 -1
- package/pn-market-web-components/{p-2ee328d2.entry.js → p-81876fba.entry.js} +1 -1
- package/pn-market-web-components/{p-81902554.system.entry.js → p-825bdb78.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d3511e86.entry.js → p-83d7a808.entry.js} +1 -1
- package/pn-market-web-components/p-85101fc7.entry.js +1 -0
- package/pn-market-web-components/{p-ce1805f0.entry.js → p-865ee8f6.entry.js} +1 -1
- package/pn-market-web-components/{p-b3831534.entry.js → p-88fb2035.entry.js} +1 -1
- package/pn-market-web-components/p-8bafabe5.js +1 -0
- package/pn-market-web-components/{p-7c876907.entry.js → p-8c7787eb.entry.js} +1 -1
- package/pn-market-web-components/{p-9482937b.system.entry.js → p-8cb21818.system.entry.js} +1 -1
- package/pn-market-web-components/p-8d5a041f.js +1 -0
- package/pn-market-web-components/{p-0739fdcf.system.entry.js → p-8eb8e8b2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-47576a14.system.entry.js → p-8f28f717.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8cc12089.entry.js → p-9294451c.entry.js} +1 -1
- package/pn-market-web-components/{p-37abc8d3.system.entry.js → p-944d00e3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c86c624a.entry.js → p-94e96fcf.entry.js} +1 -1
- package/pn-market-web-components/{p-eab25822.entry.js → p-9556936e.entry.js} +1 -1
- package/pn-market-web-components/{p-62de103d.system.entry.js → p-9685af07.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d2ebaf52.system.entry.js → p-98690006.system.entry.js} +1 -1
- package/pn-market-web-components/{p-b4416838.entry.js → p-9cfde6aa.entry.js} +1 -1
- package/pn-market-web-components/{p-83f39020.entry.js → p-9d0074fb.entry.js} +1 -1
- package/pn-market-web-components/{p-4e7d4e69.entry.js → p-9d331ab6.entry.js} +1 -1
- package/pn-market-web-components/{p-4529f4b7.system.entry.js → p-9db7d43b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-38183dee.system.js → p-a0a92f86.system.js} +1 -1
- package/pn-market-web-components/p-a28fce54.system.js +1 -0
- package/pn-market-web-components/{p-4f1df02c.entry.js → p-a2ced6e6.entry.js} +1 -1
- package/pn-market-web-components/{p-1afc6f8f.entry.js → p-a53b3be1.entry.js} +1 -1
- package/pn-market-web-components/{p-1dc6c4ac.system.entry.js → p-a83c758d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3bc31e82.system.entry.js → p-a8c25cad.system.entry.js} +1 -1
- package/pn-market-web-components/{p-01a37a82.entry.js → p-aa485f7f.entry.js} +1 -1
- package/pn-market-web-components/{p-85ce2d47.system.entry.js → p-aad5018c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9e47435e.entry.js → p-b2fc3594.entry.js} +1 -1
- package/pn-market-web-components/{p-220140a0.entry.js → p-b407caff.entry.js} +1 -1
- package/pn-market-web-components/{p-28912c0c.system.entry.js → p-b49d0553.system.entry.js} +1 -1
- package/pn-market-web-components/{p-169ccf69.entry.js → p-b6301b42.entry.js} +1 -1
- package/pn-market-web-components/{p-7787ca3b.entry.js → p-b8266eeb.entry.js} +1 -1
- package/pn-market-web-components/{p-47239bce.system.entry.js → p-ba1cce09.system.entry.js} +1 -1
- package/pn-market-web-components/{p-52e8d0ec.system.entry.js → p-bb93f102.system.entry.js} +1 -1
- package/pn-market-web-components/p-bdcedfe9.system.js +1 -0
- package/pn-market-web-components/{p-612adfb3.system.entry.js → p-bf1f69fa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f1962610.js → p-c02ddf82.js} +1 -1
- package/pn-market-web-components/{p-a8aff7ab.system.entry.js → p-c1204325.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d2ba5b69.entry.js → p-c1ec42a6.entry.js} +1 -1
- package/pn-market-web-components/{p-2cc52ba6.entry.js → p-c3015b3f.entry.js} +1 -1
- package/pn-market-web-components/{p-c06e3588.system.entry.js → p-c3899747.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8aec3e9e.entry.js → p-c633a40e.entry.js} +1 -1
- package/pn-market-web-components/{p-5d2a19e3.entry.js → p-c6409b81.entry.js} +1 -1
- package/pn-market-web-components/{p-31b84367.system.entry.js → p-c6f91f94.system.entry.js} +1 -1
- package/pn-market-web-components/{p-81608e33.system.entry.js → p-cb9d36ab.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3fab06aa.system.entry.js → p-cc5c611e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7a33e360.entry.js → p-cd8185a6.entry.js} +1 -1
- package/pn-market-web-components/{p-5afd892a.entry.js → p-cd8ae615.entry.js} +1 -1
- package/pn-market-web-components/{p-592b66fc.system.entry.js → p-d0c8d951.system.entry.js} +1 -1
- package/pn-market-web-components/{p-57d37022.js → p-d0e65d70.js} +1 -1
- package/pn-market-web-components/{p-969d310d.system.entry.js → p-d5c43a05.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1bd7e641.entry.js → p-d6492b8a.entry.js} +1 -1
- package/pn-market-web-components/{p-e2613cc5.system.entry.js → p-d6893c90.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4bd36d2c.system.entry.js → p-dc91c260.system.entry.js} +1 -1
- package/pn-market-web-components/{p-356a937e.system.entry.js → p-dd4efba9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-793bb22f.system.entry.js → p-dda5e084.system.entry.js} +1 -1
- package/pn-market-web-components/{p-41f5086b.system.entry.js → p-e07ff731.system.entry.js} +1 -1
- package/pn-market-web-components/{p-46a4dbdd.system.entry.js → p-e13a6bab.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2156e251.entry.js → p-e2892448.entry.js} +1 -1
- package/pn-market-web-components/{p-4b71d79d.system.entry.js → p-e4e67dad.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d1150166.system.entry.js → p-e5c7627c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f4adb442.system.js → p-e5f99384.system.js} +1 -1
- package/pn-market-web-components/{p-5032302f.entry.js → p-e62c4259.entry.js} +1 -1
- package/pn-market-web-components/{p-743b1d06.system.entry.js → p-e64e95a8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0d0e9547.system.js → p-e76bd03c.system.js} +1 -1
- package/pn-market-web-components/{p-71740e7e.system.entry.js → p-e7a1e178.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0c1a0814.system.entry.js → p-eaad04e5.system.entry.js} +1 -1
- package/pn-market-web-components/p-eb110830.js +1 -0
- package/pn-market-web-components/{p-56ac01d0.entry.js → p-eb42a545.entry.js} +1 -1
- package/pn-market-web-components/{p-1135350f.system.entry.js → p-eb9a3c2d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a400365f.entry.js → p-eba15c54.entry.js} +1 -1
- package/pn-market-web-components/{p-313658e7.entry.js → p-ed9dd574.entry.js} +1 -1
- package/pn-market-web-components/{p-e8b144ff.system.entry.js → p-eea5ac80.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7e81b501.system.entry.js → p-f737524e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-70cc4002.system.entry.js → p-f80e46eb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a4fcfc3c.entry.js → p-fab635c7.entry.js} +1 -1
- package/pn-market-web-components/{p-00287dc7.entry.js → p-fba12f1d.entry.js} +1 -1
- package/pn-market-web-components/{p-bed03b9c.system.entry.js → p-fbafd07a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-76ce7256.entry.js → p-fc583d96.entry.js} +1 -1
- package/pn-market-web-components/{p-794af3d3.system.entry.js → p-fce10fa7.system.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -1
- package/types/components/widgets/pn-link-list/pn-link-list.d.ts +17 -0
- package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice.d.ts +1 -0
- package/types/components.d.ts +25 -0
- package/esm-es5/pn-marketweb-siteheader-store-cea5016e.js +0 -1
- package/pn-market-web-components/p-18aca162.system.entry.js +0 -1
- package/pn-market-web-components/p-372b4cad.entry.js +0 -1
- package/pn-market-web-components/p-6f2e839c.js +0 -1
- package/pn-market-web-components/p-ba06f541.system.js +0 -1
- package/pn-market-web-components/p-d8e0d7e7.js +0 -1
- package/pn-market-web-components/p-f5eddbe2.js +0 -1
- package/pn-market-web-components/p-fcdb7381.system.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as c,a as n,g as a}from"./p-
|
|
1
|
+
import{r as t,h as c,a as n,g as a}from"./p-d0e65d70.js";const e=class{constructor(c){t(this,c),this.heading=null,this.preamble=null}render(){return c(n,null,c("div",{class:"quick-cta__content"},c("h2",{class:"quick-cta__content__heading"},this.heading),c("p",{class:"quick-cta__content__preamble"},this.preamble),c("slot",{name:"quick-cta-cta"})))}get hostElement(){return a(this)}};e.style="pn-quick-cta{width:100%}pn-quick-cta .quick-cta__content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;gap:2.4rem;width:100%}pn-quick-cta .quick-cta__content .quick-cta__content__heading{padding:0;margin:0;font-size:2.4rem;font-weight:500;color:#0D234B}@media screen and (max-width: 768px){pn-quick-cta .quick-cta__content .quick-cta__content__heading{display:none}}@media screen and (min-width: 1640px){pn-quick-cta .quick-cta__content .quick-cta__content__heading{font-size:2.8rem;font-weight:700}}pn-quick-cta .quick-cta__content .quick-cta__content__preamble{font-weight:400;font-size:1.6rem;line-height:140%;padding:0;margin:0;color:#2D2013}pn-quick-cta .quick-cta__content [slot=quick-cta-cta] a{white-space:nowrap}pn-quick-cta .quick-cta__content [slot=quick-cta-cta] a:hover{text-decoration:none}pn-spotlight[data-cta-color=business] .quick-cta__content__heading{color:#F06365}pn-spotlight[data-cta-color=business] .quick-cta__content__preamble{color:#EFFBFF}pn-spotlight[data-cta-color=private] .quick-cta__content__heading,pn-spotlight[data-cta-color=private] .quick-cta__content__preamble{color:#FFFFFF}pn-spotlight[data-cta-color=hybrid] .quick-cta__content__heading{color:#005D92}pn-spotlight[data-cta-color=hybrid] .quick-cta__content__preamble{color:#2D2013}";export{e as pn_quick_cta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js","./p-e351523a.system.js"],(function(t){"use strict";var n,e,a,i;return{setters:[function(t){n=t.r;e=t.h;a=t.a},function(t){i=t.v}],execute:function(){var o=function(t,n,e,a,i,o){if(n===void 0){n=0}if(e===void 0){e=100}if(a===void 0){a=1e3}if(i===void 0){i="Sv-SE"}var s=new Intl.NumberFormat(i,o);if(a<=0){t.textContent=s.format(e);return}var r=null;var c=function(i){if(!r)r=i;var o=Math.min((i-r)/a,1);if(o<1){var d=Math.round((o*(e-n)+n)*10)/10;t.textContent=s.format(d);window.requestAnimationFrame(c)}else{t.textContent=s.format(e)}};window.requestAnimationFrame(c)};var s={Sv:{lang:"Sv",code:"Sv-SE"},En:{lang:"En",code:"En-GB"}};var r={Decimal:{style:"decimal"},Currency:{style:"currency",currency:"SEK"},Percent:{style:"percent"},None:{style:"decimal",useGrouping:false}};var c=function(t,n,e){t.forEach((function(t){t.target.classList.toggle(n,t.isIntersecting);e(t)}))};var d="pn-stats-info-data{width:50%}pn-stats-info-data .pn-stats-info-data__container{width:100%;background-color:transparent;color:#F06365;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;padding:2rem}@media screen and (min-width: 768px){pn-stats-info-data .pn-stats-info-data__container{-ms-flex-pack:center;justify-content:center;min-height:102px;padding:0 2rem}}@media screen and (min-width: 1200px){pn-stats-info-data .pn-stats-info-data__container{min-height:125px}}pn-stats-info-data .pn-stats-info-data__container__content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}pn-stats-info-data .pn-stats-info-data__container__content__data{font-weight:700;font-size:3rem;line-height:110%}@media screen and (min-width: 1200px){pn-stats-info-data .pn-stats-info-data__container__content__data{font-size:5.6rem}}pn-stats-info-data .pn-stats-info-data__container__content__unit{font-weight:700;font-size:3rem;line-height:110%;margin-left:0.8rem}@media screen and (min-width: 1200px){pn-stats-info-data .pn-stats-info-data__container__content__unit{font-size:5.6rem}}pn-stats-info-data .pn-stats-info-data__container__content__preamble{text-align:center;font-weight:400;font-size:1.4rem;line-height:110%;color:#FFFFFF}";var f=t("pn_stats_info_data",function(){function t(t){var e=this;n(this,t);this.inViewPortCallback=function(t){if(t.isIntersecting){e.hasBeenShown=true}};this.format="En";this.formatStyle="Decimal";this.startValue=0;this.data=0;this.unit=null;this.preamble=null;this.duration=1e3;this.index=null;this.hasBeenShown=false;this.compId=null}t.prototype.generateUniqueId=function(){return i()};t.prototype.componentWillLoad=function(){this.compId=this.generateUniqueId()};t.prototype.watchStateHandlder=function(t,n){var e=document.getElementById("pn-stats-info-data-".concat(this.compId,"-").concat(this.index));if(e.classList.contains("is-inViewport")&&t!==n){o(e,this.startValue,this.data,this.duration,s[this.format].code,r[this.formatStyle])}};t.prototype.render=function(){return e(a,null,e("div",{class:"pn-stats-info-data__container"},e("div",{class:"pn-stats-info-data__container__content"},e("div",{class:"pn-stats-info-data__container__content__data",id:"pn-stats-info-data-".concat(this.compId,"-").concat(this.index)}),this.unit&&e("div",{class:"pn-stats-info-data__container__content__unit"},this.unit)),e("div",{class:"pn-stats-info-data__container__content__preamble"},this.preamble)))};t.prototype.componentDidRender=function(){var t=this;var n=new IntersectionObserver((function(n){return c(n,"is-inViewport",t.inViewPortCallback)}));var e=document.getElementById("pn-stats-info-data-".concat(this.compId,"-").concat(this.index));n.observe(e)};Object.defineProperty(t,"watchers",{get:function(){return{hasBeenShown:["watchStateHandlder"]}},enumerable:false,configurable:true});return t}());f.style=d}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e,f as t}from"./p-
|
|
1
|
+
import{e,f as t}from"./p-d0e65d70.js";const s=e=>!("isConnected"in e)||e.isConnected,n=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(s))})(...t)}),2e3)}})(),o=(s,o)=>{const r=((e,t=((e,t)=>e!==t))=>{let s=new Map(Object.entries(null!=e?e:{}));const n={dispose:[],get:[],set:[],reset:[]},o=()=>{s=new Map(Object.entries(null!=e?e:{})),n.reset.forEach((e=>e()))},r=e=>(n.get.forEach((t=>t(e))),s.get(e)),c=(e,o)=>{const r=s.get(e);t(o,r,e)&&(s.set(e,o),n.set.forEach((t=>t(e,o,r))))},u="undefined"==typeof Proxy?{}:new Proxy(e,{get:(e,t)=>r(t),ownKeys:()=>Array.from(s.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>s.has(t),set:(e,t,s)=>(c(t,s),!0)}),p=(e,t)=>(n[e].push(t),()=>{((e,t)=>{const s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)})(n[e],t)});return{state:u,get:r,set:c,on:p,onChange:(t,s)=>{const n=p("set",((e,n)=>{e===t&&s(n)})),o=p("reset",(()=>s(e[t])));return()=>{n(),o()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(p("set",t.set)),t.get&&e.push(p("get",t.get)),t.reset&&e.push(p("reset",t.reset)),t.dispose&&e.push(p("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),o()},reset:o,forceUpdate:e=>{const t=s.get(e);n.set.forEach((s=>s(e,t,t)))}}})(s,o);return r.use((()=>{if("function"!=typeof e)return{};const s=new Map;return{dispose:()=>s.clear(),get:t=>{const n=e();n&&((e,t,s)=>{const n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])})(s,t,n)},set:e=>{const o=s.get(e);o&&s.set(e,o.filter(t)),n(s)},reset:()=>{s.forEach((e=>e.forEach(t))),n(s)}}})()),r};export{o as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,a as o,g as l}from"./p-
|
|
1
|
+
import{r as s,h as t,a as o,g as l}from"./p-d0e65d70.js";import{v as e}from"./p-d3d7fec8.js";const i={root:null,threshold:1,rootMargin:"0px 0px 0px 0px"},r=class{constructor(t){s(this,t),this.testAdditionalParamIntoCallback=!0,this.handlePlayPauseClicked=()=>{this.video.paused||this.video.ended?(this.video.play(),this.isManuallyPaused=!1,this.isPaused=!1):(this.video.pause(),this.isManuallyPaused=!0,this.isPaused=!0)},this.togglePaused=s=>{this.isPaused=s},this.videoSrc="",this.videoId="",this.isManuallyPaused=!1,this.isPaused=!1}generateUniqueId(){return e()}componentWillLoad(){this.videoId=this.generateUniqueId()}componentDidLoad(){this.video=document.getElementById(this.videoId),this.video.addEventListener("click",this.handlePlayPauseClicked)}render(){return t(o,null,t("pn-scroll",{intersectFunc:()=>{return s=this.video,t=this.togglePaused,void(this.isManuallyPaused||(s&&s.play(),t(!1)));var s,t},notIntersectFunc:()=>{return t=this.togglePaused,(s=this.video)&&s.pause(),void t(!0);var s,t},shouldLoop:!0,behaviourClasses:"some-behaviour-class",observerOptions:i},t("div",{slot:"scroll-affected"},t("video",{muted:!0,autoPlay:!0,id:`${this.videoId}`},t("source",{src:this.videoSrc,type:"video/mp4"})),t("pn-video-overlay",{isPaused:this.isManuallyPaused||this.isPaused,onPlayPauseClicked:this.handlePlayPauseClicked}))))}get hostElement(){return l(this)}};r.style="pn-play-on-scroll pn-scroll [slot=scroll-affected]{position:relative;display:-ms-flexbox;display:flex}pn-play-on-scroll pn-scroll [slot=scroll-affected] video{width:100%}pn-play-on-scroll pn-scroll [slot=scroll-affected] video:hover{cursor:pointer}pn-play-on-scroll pn-scroll [slot=scroll-affected] pn-video-overlay{position:absolute;bottom:8px;left:8px}@media screen and (min-width: 768px){pn-play-on-scroll pn-scroll [slot=scroll-affected] pn-video-overlay{bottom:16px;left:16px}}";export{r as pn_play_on_scroll}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var l=0,n=t.length,o;l<n;l++){if(o||!(l in t)){if(!o)o=Array.prototype.slice.call(t,0,l);o[l]=t[l]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var l=0,n=t.length,o;l<n;l++){if(o||!(l in t)){if(!o)o=Array.prototype.slice.call(t,0,l);o[l]=t[l]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-6259e4f4.system.js","./p-e351523a.system.js"],(function(e){"use strict";var t,a,l,n,o,s;return{setters:[function(e){t=e.r;a=e.c;l=e.h;n=e.a;o=e.g},function(e){s=e.v}],execute:function(){var d="pn-multi-row-connected-dropdown{gap:1rem}pn-multi-row-connected-dropdown .connected-dropdown__row{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:1rem;margin-bottom:1rem;-ms-flex-pack:justify;justify-content:space-between}pn-multi-row-connected-dropdown .connected-dropdown__row__no-margin{margin:0}pn-multi-row-connected-dropdown .connected-dropdown__button-right{margin-left:auto}";var i=e("pn_multi_row_connected_dropdown",function(){function e(e){t(this,e);this.allFormValues=a(this,"allFormValues",7);this._buttonValueName=null;this._firstDropdownValueName=null;this._secondDropdownValueName=null;this._inputValueName=null;this._dateValueName=null;this._defaultRow={id:this.generateUniqueId(),buttons:[],firstDropdown:[],secondDropdown:[],input:"",dates:"",dateRange:{days:[],startDate:"",endDate:""}};this.dropdownData=null;this.languageCode=null;this.label=null;this.firstDropdownLabel=null;this.secondDropdownLabel=null;this.dropdownPlaceholder=null;this.addRowText=null;this.inputFildLabel=null;this.inputFildPlaceholder=null;this.dateButtonText=null;this.datePlaceholder=null;this.dateDaysFromToday=null;this.allowMultipleRows=false;this.allowMultipleDates=false;this.startDateLabel=null;this.endDateLabel=null;this.multiDateHelperText=null;this.generateDatesButtonText=null;this.saveDateButtonText=null;this.noDatesText=null;this.yearsToAddToEndDate=null;this.rowCount=null;this.rowData=null;this.formValues=null}e.prototype.componentWillLoad=function(){var e,t,a,l,n;this.setDaysArr();this.formValues=[];this.rowData=[this._defaultRow];this.rowCount=this.rowData.length;this._buttonValueName=((e=this.label)===null||e===void 0?void 0:e.length)?this.label:"value0";this._firstDropdownValueName=((t=this.firstDropdownLabel)===null||t===void 0?void 0:t.length)?this.firstDropdownLabel:"value1";this._secondDropdownValueName=((a=this.secondDropdownLabel)===null||a===void 0?void 0:a.length)?this.secondDropdownLabel:"value2";this._inputValueName=((l=this.inputFildLabel)===null||l===void 0?void 0:l.length)?this.inputFildLabel:"value3";this._dateValueName=((n=this.dateButtonText)===null||n===void 0?void 0:n.length)?this.dateButtonText:"value4"};e.prototype.componentDidLoad=function(){};e.prototype.emittValuesIfValid=function(){var e=this;this.formValues=[];this.rowData.forEach((function(t){var a={row:[]};var l=t.buttons.find((function(e){return e.selected===true}));if(l){var n={name:e._buttonValueName,value:l.caption};a.row.push(n)}var o=t.firstDropdown.find((function(e){return e.selected===true}));if(o){var s={name:e._firstDropdownValueName,value:o.caption};a.row.push(s)}var d=t.secondDropdown.find((function(e){return e.selected===true}));if(d){var i={name:e._secondDropdownValueName,value:d.caption};a.row.push(i)}var r=t.input;if(r===null||r===void 0?void 0:r.length){var u={name:e._inputValueName,value:r};a.row.push(u)}var c=t.dates;if(c===null||c===void 0?void 0:c.length){var p={name:e._dateValueName,value:c};a.row.push(p)}if(a.row.length===5){e.formValues.push(a)}}));if(this.formValues.length===this.rowData.length){var t=JSON.stringify(this.formValues);this.allFormValues.emit(t)}else{this.allFormValues.emit("")}};e.prototype.predefinedValueChange=function(e){var t=this.rowData.findIndex((function(t){return t.id===e.detail.id}));var a=e.detail;this.rowData[t]=Object.assign(Object.assign({},this.rowData[t]),{buttons:a.buttons,firstDropdown:a.firstDropdown,secondDropdown:a.secondDropdown,input:a.input,dates:a.dates,dateRange:a.dateRange});this.emittValuesIfValid()};e.prototype.deleteRowEvent=function(e){var t=this.rowData.findIndex((function(t){return t.id===e.detail}));this.rowData.splice(t,1);this.rowData=__spreadArray([],this.rowData,true);this.rowCount=this.rowData.length;this.emittValuesIfValid()};e.prototype.generateUniqueId=function(){return s()};e.prototype.addRow=function(){var e=this._defaultRow;e.id=this.generateUniqueId();this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false);this.rowCount=this.rowData.length};e.prototype.setDaysArr=function(){var e=this.languageCode.toLowerCase();switch(e){case"en":this._defaultRow.dateRange.days=[{caption:"Monday",value:"1",selected:false},{caption:"Tuesday",value:"2",selected:false},{caption:"Wednesday",value:"3",selected:false},{caption:"Thursday",value:"4",selected:false},{caption:"Friday",value:"5",selected:false}];break;case"sv":this._defaultRow.dateRange.days=[{caption:"Måndag",value:"1",selected:false},{caption:"Tisdag",value:"2",selected:false},{caption:"Onsdag",value:"3",selected:false},{caption:"Torsdag",value:"4",selected:false},{caption:"Fredag",value:"5",selected:false}];break;case"da":this._defaultRow.dateRange.days=[{caption:"Mandag",value:"1",selected:false},{caption:"Tirsdag",value:"2",selected:false},{caption:"Onsdag",value:"3",selected:false},{caption:"Torsdag",value:"4",selected:false},{caption:"Fredag",value:"5",selected:false}];break;case"fi":this._defaultRow.dateRange.days=[{caption:"Maanantai",value:"1",selected:false},{caption:"Tiistai",value:"2",selected:false},{caption:"Keskiviikko",value:"3",selected:false},{caption:"Torstai",value:"4",selected:false},{caption:"Perjantai",value:"5",selected:false}];break;case"no":this._defaultRow.dateRange.days=[{caption:"Mandag",value:"1",selected:false},{caption:"Tirsdag",value:"2",selected:false},{caption:"Onsdag",value:"3",selected:false},{caption:"Torsdag",value:"4",selected:false},{caption:"Fredag",value:"5",selected:false}];break;default:this._defaultRow.dateRange.days=[{caption:"Monday",value:"1",selected:false},{caption:"Tuesday",value:"2",selected:false},{caption:"Wednesday",value:"3",selected:false},{caption:"Thursday",value:"4",selected:false},{caption:"Friday",value:"5",selected:false}];break}};e.prototype.render=function(){var e=this;var t;return l(n,null,(t=this.rowData)===null||t===void 0?void 0:t.map((function(t,a){return l("div",{class:"generated-row-"+a,id:"generated-row-connected-dropdown-"+a},l("pn-multi-row-connected-dropdown-row",{"dropdown-data":e.dropdownData,"language-code":e.languageCode,label:e.label,"first-dropdown-label":e.firstDropdownLabel,"second-dropdown-label":e.secondDropdownLabel,"dropdown-placeholder":e.dropdownPlaceholder,"add-row-text":e.addRowText,"input-fild-label":e.inputFildLabel,"input-fild-placeholder":e.inputFildPlaceholder,"date-button-text":e.dateButtonText,"date-placeholder":e.datePlaceholder,"date-days-from-today":e.dateDaysFromToday,"allow-multiple-dates":e.allowMultipleDates,"start-date-label":e.startDateLabel,"end-date-label":e.endDateLabel,"multi-date-helper-text":e.multiDateHelperText,"generate-dates-button-text":e.generateDatesButtonText,"save-date-button-text":e.saveDateButtonText,"no-dates-text":e.noDatesText,index:a,"predefined-value":JSON.stringify(t),"years-to-add-to-end-date":e.yearsToAddToEndDate}))})),this.allowMultipleRows?l("div",{class:"connected-dropdown__row"},l("pn-button",{"icon-only":this.addRowText?false:true,"left-icon":"true","aria-label":"Add",icon:"plus",appearance:"light",variant:"borderless",class:"connected-dropdown__button-right",onClick:function(){e.addRow()}},this.addRowText)):null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());i.style=d}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js"],(function(e){"use strict";var t,i,n,a;return{setters:[function(e){t=e.r;i=e.h;n=e.a;a=e.g}],execute:function(){var r="pn-app-banner .pn-app-banner__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:1rem;background-color:#F3F2F2;padding:1rem;margin:0 auto}pn-app-banner .pn-app-banner__sticky{position:relative;top:0;width:100%;z-index:999}pn-app-banner .icon-close:hover{cursor:pointer}pn-app-banner .pn-app-banner__icon{height:3.2rem}pn-app-banner .pn-app-banner__text{font-size:1.2rem;line-height:1}pn-app-banner .pn-app-banner__text span{font-weight:600}pn-app-banner .pn-app-banner__cta{margin-left:auto}pn-app-banner[data-is-closed=true]{display:none}";var l=e("pn_app_banner",function(){function e(e){var i=this;t(this,e);this.CLOSED_STORAGE_KEY="SmartAppBannerClosed";this.CLOSED_COOKIE_EXPIRY_DAYS=7;this.handleOnClose=function(){i.isClosed=true;if(i.isLocalStorageAvailable){localStorage.setItem(i.CLOSED_STORAGE_KEY,"true")}else{var e=new Date;e.setDate(e.getDate()+i.CLOSED_COOKIE_EXPIRY_DAYS);document.cookie="".concat(i.CLOSED_STORAGE_KEY,"=true; expires=").concat(e.toUTCString())}};this.appName=undefined;this.appDescription=undefined;this.ctaText=undefined;this.appleStoreLink=undefined;this.googleStoreLink=undefined;this.isClosed=false;this.storeLink=undefined;this.isLocalStorageAvailable=true}e.prototype.checkLocalStorage=function(){try{var e="__test__";localStorage.setItem(e,e);localStorage.removeItem(e)}catch(t){this.isLocalStorageAvailable=false}};e.prototype.detectDeviceAndSetStoreLink=function(){var e=navigator.userAgent;if(e.match(/Android/i)){this.storeLink=this.googleStoreLink}else if(e.match(/iPhone|iPad|iPod/i)){this.storeLink=this.appleStoreLink}else{this.storeLink=null;this.isClosed=true}};e.prototype.componentWillLoad=function(){this.checkLocalStorage();if(this.isLocalStorageAvailable){this.isClosed=localStorage.getItem(this.CLOSED_STORAGE_KEY)==="true"}else{var e=document.cookie.split(";");for(var t=0,i=e;t<i.length;t++){var n=i[t];var a=n.trim().split("="),r=a[0],l=a[1];if(r===this.CLOSED_STORAGE_KEY&&l==="true"){this.isClosed=true;break}}}if(!this.isClosed){this.detectDeviceAndSetStoreLink()}};e.prototype.render=function(){return i(n,{"data-is-closed":this.isClosed?"true":"false"},i("div",{class:"pn-app-banner__wrapper pn-app-banner__sticky"},i("div",{class:"icon-close",onClick:this.handleOnClose},i("pn-icon",{symbol:"close-small",small:"false",color:"black"})),i("div",{class:"pn-app-banner__icon"},i("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{"clip-path":"url(#clip0_17800_45416)"},i("path",{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"}),i("mask",{id:"mask0_17800_45416",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32"},i("path",{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"})),i("g",{mask:"url(#mask0_17800_45416)"},i("path",{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"}),i("path",{d:"M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z",fill:"url(#paint0_linear_17800_45416)"}),i("path",{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"}),i("g",{filter:"url(#filter0_d_17800_45416)"},i("path",{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"}),i("path",{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"}),i("path",{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"}),i("path",{"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"})))),i("defs",null,i("filter",{id:"filter0_d_17800_45416",x:"-52.5938",y:"-48.5938",width:"137.188",height:"137.188",filterUnits:"userSpaceOnUse","color-interpolation-filters":"s-rGB"},i("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),i("feColorMatrix",{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"}),i("feOffset",{dy:"4"}),i("feGaussianBlur",{stdDeviation:"30"}),i("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),i("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_17800_45416"}),i("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_17800_45416",result:"shape"})),i("linearGradient",{id:"paint0_linear_17800_45416",x1:"29.2305",y1:"44.3441",x2:"51.5694",y2:"15.1782",gradientUnits:"userSpaceOnUse"},i("stop",{offset:"0.0800778","stop-color":"#0D244C"}),i("stop",{offset:"1","stop-color":"#0D234B"})),i("clipPath",{id:"clip0_17800_45416"},i("rect",{width:"32",height:"32",fill:"white"}))))),i("div",{class:"pn-app-banner__text"},i("span",null,this.appName),i("br",null),this.appDescription),i("div",{class:"pn-app-banner__cta"},i("pn-button",{small:true,href:this.storeLink},this.ctaText))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());l.style=r}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,a as r,g as s}from"./p-
|
|
1
|
+
import{r as e,h as t,a as r,g as s}from"./p-d0e65d70.js";const i={sv:{toggleLinkTitleText:"Välj kundnummer"},en:{toggleLinkTitleText:"Choose customernumber"},da:{toggleLinkTitleText:"Vælg kundenummer"},no:{toggleLinkTitleText:"Velg kundenummer"},fi:{toggleLinkTitleText:"Valitse asiakasnumero"},de:{toggleLinkTitleText:"Kundennummer auswählen"}},o=class{constructor(t){e(this,t),this.language="sv",this.open=!1,this.heading="",this.description="",this.i18n=i.en}componentWillLoad(){this.init()}init(){this.setTranslations()}setTranslations(){this.language&&i[this.language]&&(this.i18n=i[this.language])}render(){return t(r,null,t("div",{class:"customernumber-container"},t("button",{class:"customernumber-toggle","aria-label":this.i18n.toggleLinkTitleText,onClick:()=>this.open=!this.open},t("div",{class:"customernumber-selected"},t("strong",{class:"customernumber-selected-title"},this.heading),t("div",{class:"customernumber-selected-description"},this.description)),t("pn-icon",{symbol:this.open?"angle-up":"angle-down",small:"false",color:"blue700"})),t("div",{class:"customernumber-options"},t("slot",null))))}get hostElement(){return s(this)}};o.style=".customernumber-container{position:relative;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:0.8rem;border:0.1rem solid #969087;-webkit-transition:border 0.15s ease;transition:border 0.15s ease}.customernumber-container:hover,pn-customernumber-selector[open] .customernumber-container{border-color:#005D92}pn-customernumber-selector[open] .customernumber-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.customernumber-toggle{display:-ms-flexbox;display:flex;z-index:11;position:relative;margin:0;border-radius:0.8rem;padding:1rem;border:0;background:transparent;font-size:1em;text-align:left;outline:0;cursor:pointer}.customernumber-toggle pn-icon{-ms-flex-item-align:center;align-self:center}.customernumber-selected{-ms-flex-positive:1;flex-grow:1;max-width:calc(100% - 2.4rem);overflow:hidden}.customernumber-selected-title{color:#005D92}.customernumber-selected-description{font-size:0.875em;width:100%;overflow:hidden;text-overflow:ellipsis}.customernumber-options{position:absolute;z-index:10;left:-0.1rem;right:-0.1rem;top:100%;border:0.1rem solid #005D92;border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem;max-height:0;opacity:0;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;overflow-y:auto}pn-customernumber-selector[open] .customernumber-options{opacity:1;-webkit-transition-delay:0s;transition-delay:0s;max-height:500rem}";export{o as pn_customernumber_selector}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js"],(function(n){"use strict";var t,e,l;return{setters:[function(n){t=n.r;e=n.h;l=n.a}],execute:function(){var i="pn-product-tile-info{-ms-flex-item-align:center;align-self:center}";var r=n("pn_product_tile_info",function(){function n(n){t(this,n);this.label=undefined;this.text=undefined;this.icon=undefined}n.prototype.render=function(){return e(l,null,this.label?e("p",null,e("small",null,this.label)):null,this.text?e("h3",null,this.text):null)};return n}());e("pn-icon",{symbol:"align-center",small:"false",color:"black"});r.style=i;var u="pn-product-tile-price{margin-top:1em;white-space:nowrap;text-align:right}pn-product-tile-price span{font-size:3em;font-size:clamp(2em, 6vw, 3em)}pn-product-tile-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-tile-price+pn-product-tile-price{margin-left:1.5em}pn-product-tile-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-tile-price a{text-decoration:none;color:#005D92}pn-product-tile-price a h3{text-decoration:underline}";var c=n("pn_product_tile_price",function(){function n(n){t(this,n);this.label=undefined;this.amount=undefined;this.currency=undefined;this.url=undefined}n.prototype.render=function(){if(!this.amount){return}return this.url?e(l,null,e("h3",null,this.amount?e("span",null,this.amount):null,this.currency?e("span",null,this.currency):null),this.label?e("a",{href:this.url},e("pn-button",{small:"true",icon:"arrow-right"},this.label)):null):e(l,null,e("h3",null,this.amount?e("span",null,this.amount):null,this.currency?e("span",null,this.currency):null))};return n}());c.style=u}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js"],(function(e){"use strict";var t,r,i,n;return{setters:[function(e){t=e.r;r=e.h;i=e.a;n=e.g}],execute:function(){var o={sv:{toggleLinkTitleText:"Välj kundnummer"},en:{toggleLinkTitleText:"Choose customernumber"},da:{toggleLinkTitleText:"Vælg kundenummer"},no:{toggleLinkTitleText:"Velg kundenummer"},fi:{toggleLinkTitleText:"Valitse asiakasnumero"},de:{toggleLinkTitleText:"Kundennummer auswählen"}};var s=".customernumber-container{position:relative;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:0.8rem;border:0.1rem solid #969087;-webkit-transition:border 0.15s ease;transition:border 0.15s ease}.customernumber-container:hover,pn-customernumber-selector[open] .customernumber-container{border-color:#005D92}pn-customernumber-selector[open] .customernumber-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.customernumber-toggle{display:-ms-flexbox;display:flex;z-index:11;position:relative;margin:0;border-radius:0.8rem;padding:1rem;border:0;background:transparent;font-size:1em;text-align:left;outline:0;cursor:pointer}.customernumber-toggle pn-icon{-ms-flex-item-align:center;align-self:center}.customernumber-selected{-ms-flex-positive:1;flex-grow:1;max-width:calc(100% - 2.4rem);overflow:hidden}.customernumber-selected-title{color:#005D92}.customernumber-selected-description{font-size:0.875em;width:100%;overflow:hidden;text-overflow:ellipsis}.customernumber-options{position:absolute;z-index:10;left:-0.1rem;right:-0.1rem;top:100%;border:0.1rem solid #005D92;border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem;max-height:0;opacity:0;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;overflow-y:auto}pn-customernumber-selector[open] .customernumber-options{opacity:1;-webkit-transition-delay:0s;transition-delay:0s;max-height:500rem}";var l=e("pn_customernumber_selector",function(){function e(e){t(this,e);this.language="sv";this.open=false;this.heading="";this.description="";this.i18n=o["en"]}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){this.setTranslations()};e.prototype.setTranslations=function(){if(this.language&&o[this.language]){this.i18n=o[this.language]}};e.prototype.render=function(){var e=this;return r(i,null,r("div",{class:"customernumber-container"},r("button",{class:"customernumber-toggle","aria-label":this.i18n.toggleLinkTitleText,onClick:function(){return e.open=!e.open}},r("div",{class:"customernumber-selected"},r("strong",{class:"customernumber-selected-title"},this.heading),r("div",{class:"customernumber-selected-description"},this.description)),r("pn-icon",{symbol:this.open?"angle-up":"angle-down",small:"false",color:"blue700"})),r("div",{class:"customernumber-options"},r("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());l.style=s}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,a,g as s}from"./p-
|
|
1
|
+
import{r as e,h as t,a,g as s}from"./p-d0e65d70.js";const r={sv:{sharelabel:"Dela med"},en:{sharelabel:"Share to"},da:{sharelabel:"Del med"},no:{sharelabel:"Dele med"},fi:{sharelabel:"Jakaa"},zh:{sharelabel:"Share to"},it:{sharelabel:"Share to"},nl:{sharelabel:"Share to"}},n=[{platform:"linkedin",url:"https://www.linkedin.com/sharing/share-offsite/?url=",text:"LinkedIn"},{platform:"twitter",url:"https://twitter.com/intent/tweet?url=",text:"Twitter"},{platform:"facebook",url:"https://www.facebook.com/sharer/sharer.php?u=",text:"Facebook"}],i=class{constructor(t){e(this,t),this.link=null,this.language="sv",this.i18n=void 0}componentWillLoad(){this.setTranslations()}setTranslations(){"nb"===this.language&&(this.language="no"),this.language&&r[this.language]&&(this.i18n=r[this.language])}onLanguageChange(){this.setTranslations()}render(){return t(a,null,t("div",{class:"pn-share__container"},t("h3",{class:"pn-share__heading"},this.i18n.sharelabel,":"),t("div",{class:"pn-share__items"},n.map((e=>t("pn-share-item",{link:`${e.url}${this.link}`,text:e.text},t("pn-icon",{slot:"icon",symbol:e.platform})))))))}get hostElement(){return s(this)}static get watchers(){return{language:["onLanguageChange"]}}};i.style='pn-share .pn-share__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0.8rem}pn-share .pn-share__heading{font-size:1.6rem;font-weight:500}pn-share .pn-share__heading:after{content:"";display:block;height:0.2rem;background-color:#F3F2F2;margin-top:0.4rem;margin-bottom:0.8rem}pn-share .pn-share__items{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:0.8rem;-ms-flex-align:center;align-items:center}';export{i as pn_share}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-bdcedfe9.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.c}],execute:function(){var n=t({openLevel:"",currentLevel:1,openMenu:false,i18n:{menuHomeButton:"",menuGoBackButton:"",mainMenuButton:"",menuStartButton:"",navLabel:""}}),u=n.state,o=n.onChange;e({s:u,o:o})}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as t,a as o}from"./p-
|
|
1
|
+
import{r as i,h as t,a as o}from"./p-d0e65d70.js";import{F as r,M as e}from"./p-9ad0ceb0.js";import{t as n}from"./p-1694828e.js";const a=class{constructor(t){i(this,t),this.fetchHelper=new r("proxiopricegroup"),this.endpoint=null,this.language="sv",this.market="se",this.tariffid="",this.cache=!0,this.activeWeightIndex=0,this.data=null,this.i18n=n.sv}componentWillLoad(){this.setInitialValues().then((()=>{this.init()}))}async setInitialValues(i=window.location.href){const t=new e(i),o=await t.getEnvironmentName();if(!this.endpoint&&-1===(null==o?void 0:o.indexOf("local"))){const i=await t.getMarket();this.endpoint=await t.getEndpoint(o,i)}this.endpoint||(this.endpoint="")}init(){this.setLanguage(),this.fetchData()}async fetchData(){if(!this.market||!this.language||!this.tariffid)return;const i=`${this.endpoint.lastIndexOf("/")===this.endpoint.length-1?this.endpoint.substring(0,this.endpoint.length-1):this.endpoint}/api/proxio/price-list-group?tariffId=${this.tariffid}&market=${this.market}&language=${this.language}&cached=${this.cache}`,t=await this.fetchHelper.fetchJson(i,{mode:"cors"},this.cache,this.onFetchData.bind(this));(null==t?void 0:t.proxioProduct)&&(this.data=t)}onFetchData(i){this.data=i}setActiveWeightIndex(i){var t,o,r;let e=null!==(r=(null===(o=null===(t=this.data.proxioProduct)||void 0===t?void 0:t.weightAndPriceList)||void 0===o?void 0:o.length)-1)&&void 0!==r?r:0;this.activeWeightIndex=i=(i=i>e?e:i)<0?0:i}setLanguage(){n[this.language]&&(this.i18n=n[this.language])}getPriceString(i){var t;let o=i.weightAndPriceList?null===(t=null==i?void 0:i.weightAndPriceList[this.activeWeightIndex])||void 0===t?void 0:t.item2:"";return o?this.i18n.from+o:""}getProductLink(i,t){var o;let r=null===(o=t[this.activeWeightIndex])||void 0===o?void 0:o.item2,e=i.productLink?null==i?void 0:i.productLink:"";return e?e+(r?"?productId="+r:""):""}isActive(i){return i===this.activeWeightIndex}getCarouselPosition(i){switch(i){case this.activeWeightIndex-2:return-2;case this.activeWeightIndex-1:return-1;case this.activeWeightIndex:return 0;case this.activeWeightIndex+1:return 1;case this.activeWeightIndex+2:return 2;default:return"outside"}}getContainerPosition(){let i=this.data.proxioProduct.weightAndPriceList.length-1;switch(this.activeWeightIndex){case 0:return"end50";case 1:return"end75";case i-1:return"start75";case i:return"start50";default:return"default"}}render(){var i,r,e;return t(o,null,(null===(i=this.data)||void 0===i?void 0:i.proxioProduct)?t("div",{class:"proxio-pricegroup-container"},t("div",{class:"weightcontainer"},this.data.proxioProduct.weightAndPriceList?t("div",{class:"weightvaluecontainer"},t("pn-button",{disabled:0===this.activeWeightIndex?"disabled":null,"icon-only":"true",icon:"arrow-left",appearance:"light",small:"true",onClick:()=>this.setActiveWeightIndex(this.activeWeightIndex-1)}),t("div",{class:"weightradios ","data-carousel-container-position":this.getContainerPosition()},t("div",{class:"weightline"}),this.data.proxioProduct.weightAndPriceList.map(((i,o)=>null!==this.getCarouselPosition(o)?t("div",{class:"weightdata","data-carousel-position":this.getCarouselPosition(o),onClick:()=>this.setActiveWeightIndex(o)},t("input",{type:"radio",id:"weightradio"+o,name:"weightradio",value:o,checked:this.isActive(o)}),t("label",{htmlFor:"weightradio"+o},i.item1)):null))),t("pn-button",{disabled:this.activeWeightIndex===(null===(e=null===(r=this.data.proxioProduct)||void 0===r?void 0:r.weightAndPriceList)||void 0===e?void 0:e.length)-1?"disabled":null,icon:"arrow-right",appearance:"light","icon-only":"true",small:"true",onClick:()=>this.setActiveWeightIndex(this.activeWeightIndex+1)})):null),t("pn-proxio-productcard",null,t("pn-illustration",{slot:"illustrationmobile",illustration:this.data.proxioProduct.productIcon}),t("h2",{slot:"title"},this.data.proxioProduct.productTitle),t("pn-proxio-productcard-description",{slot:"description",heading:this.data.proxioProduct.productPreamble,highlight:this.data.proxioProduct.deliveryDateInformation,list:this.data.proxioProduct.productDescriptionBulletListItems}),t("div",{slot:"information"},t("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensions,information:this.data.proxioProduct.productPackageDimensionsList}),t("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensionsRoll,information:this.data.proxioProduct.productRollDimensionsList})),t("div",{slot:"bottomtags"},this.data.proxioProduct.usp1?t("pn-titletag",{color:"gray50"},this.data.proxioProduct.usp1):null,this.data.proxioProduct.usp2?t("pn-titletag",{color:"gray50"},this.data.proxioProduct.usp2):null,this.data.proxioProduct.usp3?t("pn-titletag",{color:"gray50"},this.data.proxioProduct.usp3):null),t("pn-illustration",{slot:"illustration",illustration:this.data.proxioProduct.productIcon}),t("div",{slot:"pricelink"},t("pn-proxio-productcard-pricelink",{price:this.getPriceString(this.data.proxioProduct),link:this.getProductLink(this.data.proxioProduct,this.data.proxioProduct.productWeightGroupList),linktext:this.data.proxioProduct.productLinkText}),this.data.relatedProxioProducts?this.data.relatedProxioProducts.map((i=>t("pn-proxio-productcard-pricelink",{price:this.getPriceString(i),link:i.productLink,linktext:i.productLinkText}))):null))):null)}};a.style='pn-proxio-pricegroup div.proxio-pricegroup-container{max-width:99.4rem}pn-proxio-pricegroup div.weightcontainer{margin:2.8rem 0}pn-proxio-pricegroup div.weightvaluecontainer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}pn-proxio-pricegroup div.weightvaluecontainer pn-button{-webkit-transform:translateY(-0.4rem);transform:translateY(-0.4rem)}pn-proxio-pricegroup div.weightvaluecontainer pn-button button::before{display:none}pn-proxio-pricegroup div.weightradios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:#005D92;width:80%;margin:0 3.6rem;position:relative;width:0%}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:45%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{width:65%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{margin-right:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:45%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{width:65%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{margin-left:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{-ms-flex:0 0 auto;flex:0 0 auto;width:80%}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{width:65%}}pn-proxio-pricegroup div.weightdata{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;gap:1.2rem;min-width:4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata label{font-size:1.4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata[data-carousel-position="0"]{font-size:2rem;font-weight:700}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightdata[data-carousel-position="2"],pn-proxio-pricegroup div.weightdata[data-carousel-position="-2"]{display:none}}pn-proxio-pricegroup div.weightdata[data-carousel-position=outside]{display:none}pn-proxio-pricegroup div.weightdata input[type=radio]{-webkit-appearance:none;-moz-appearance:none;width:1.2rem;height:1.2rem;background-color:#005D92;border-radius:50%;margin:0;cursor:pointer}pn-proxio-pricegroup div.weightdata input[type=radio]:checked{z-index:1;-webkit-transform:translateY(-0.1rem);transform:translateY(-0.1rem);height:1.4rem;width:1.4rem;-webkit-box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92}pn-proxio-pricegroup div.weightline{width:100%;background-color:#F3F2F2;z-index:-1;height:0.8rem;-webkit-transform:translateX(2.1rem) translateY(1.32rem);transform:translateX(2.1rem) translateY(1rem);border-radius:2rem;margin-right:3.5rem}pn-proxio-pricegroup pn-button[disabled=disabled]{opacity:0.2}pn-proxio-pricegroup pn-button[disabled=disabled] button{cursor:default}pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after{background-color:#FFFFFF}pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before{display:none}pn-proxio-pricegroup pn-button button div.button-tooltip{display:none}pn-proxio-pricegroup pn-button button:focus .pn-button-bg{-webkit-box-shadow:none;box-shadow:none}';export{a as pn_proxio_pricegroup}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,a as l,g as e}from"./p-57d37022.js";import{F as o,M as h}from"./p-9ad0ceb0.js";import{d as n}from"./p-4e3d7a56.js";const a=class{constructor(s){t(this,s),this.addresscomplete=i(this,"addresscomplete",7),this.pnInputPostalCode=null,this.pnInputCity=null,this.pnInputStreetAddress=null,this.pnInputStreetNumber=null,this.postalCodeInputField=null,this.streetAddressInputField=null,this.streetNumberInputField=null,this.pnInputHiddenValue=null,this.endpointPath="/api/location/get-by-location",this._postalCodeProps=null,this._cityProps=null,this._streetAddressProps=null,this._streetNumberProps=null,this.fetchHelper=new o("PostalCodeCityAutofill"),this.filterStreetNames=t=>{const i=[];this.streetAdressArr=null,t.addresses.forEach((t=>{t.postalCode.postalCity!==this.city||i.includes(t.street)||i.push(t.street)})),this.streetAdressArr=i},this.filterStreetNumbers=t=>{const i=[];t.addresses.forEach((t=>{if(t.postalCode.postalCode===this.postalCode){const{numberFrom:s,numberTo:l}=t,e=parseInt(s),o=parseInt(l);for(let t=e;t<=o;t++){const s=t.toString();i.includes(s)||i.push(t.toString())}}})),this.streetNumberArr=i},this.market=null,this.environment=null,this.endpoint=null,this.cache=!0,this.countryCode=null,this.postalCodeProps=null,this.cityProps=null,this.streetAddressProps=null,this.streetNumberProps=null,this.streetAdressArr=null,this.streetNumberArr=null,this.city=null,this.postalCode=null,this.streetAddress=null,this.streetNumber=null,this.fullAddress=null}componentWillLoad(){this.setInitialValues(),this._postalCodeProps=this.setProps(this.postalCodeProps),this._cityProps=this.setProps(this.cityProps),this._streetAddressProps=this.setProps(this.streetAddressProps),this._streetNumberProps=this.setProps(this.streetNumberProps)}setProps(t){return"string"==typeof t?JSON.parse(t):t}componentDidLoad(){this.postalCodeInputField=this.pnInputPostalCode.querySelector("input"),this.streetAddressInputField=this.pnInputStreetAddress.querySelector("input"),this.streetNumberInputField=this.pnInputStreetNumber.querySelector("input"),this.addEventHandlers()}async setInitialValues(t=window.location.href){var i;const s=new h(t);this.environment||(this.environment=await s.getEnvironmentName()),this.endpoint||-1!==(null===(i=this.environment)||void 0===i?void 0:i.indexOf("local"))||(this.endpoint=await s.getEndpoint(this.environment,this.market)),this.endpoint||(this.endpoint="")}addEventHandlers(){const t=n.debounce(this.fetchData.bind(this,this.postalCodeInputField),1e3);this.postalCodeInputField.addEventListener("keyup",t),this.streetAddressInputField.addEventListener("keyup",this.handleStreetAddressDropdown.bind(this)),this.streetNumberInputField.addEventListener("focus",this.handleStreetNumberDropdown.bind(this)),this.addFormFieldEvent()}addFormFieldEvent(){this.hostElement.querySelectorAll("input").forEach((t=>{["keyup","change"].forEach((i=>{const s=n.debounce(this.updateHiddenValue.bind(this),1e3);t.addEventListener(i,s)}))}))}updateHiddenValue(t){t.target===this.streetNumberInputField&&(this.streetNumber=this.streetNumberInputField.value),this.fullAddress=this.postalCode&&this.city&&this.streetAddress&&this.streetNumber?`${this.streetAddress} ${this.streetNumber}, ${this.city} ${this.postalCode}`:"",this.addresscomplete.emit(this.fullAddress)}async fetchData(t,i){var s;if(i&&(i.preventDefault(),"Tab"===i.key&&this.city))return;let l="";const e=i&&i.target===this.postalCodeInputField,o=t===this.streetAddressInputField&&this.city&&this.city.length,h=t===this.streetNumberInputField&&this.city&&this.city.length&&this.streetAddress&&this.streetAddress.length;if(e&&(l=this.postalCodeInputField.value,this.streetAdressArr=null,this.streetAddressInputField.value="",this.streetNumberArr=null,this.streetNumberInputField.value="",this.city=null,this.streetAddress=null,this.streetNumber=null),o&&(l=`${this.streetAddressInputField.value}, ${this.city}`,this.streetNumberArr=null,this.streetNumberInputField.value="",this.streetNumber=null),h&&(this.streetAdressArr=null,l=`${this.streetAddress}, ${this.city}`),l.length>0){const t=`${this.endpoint.lastIndexOf("/")===this.endpoint.length-1?this.endpoint.substring(0,this.endpoint.length-1):this.endpoint}${this.endpointPath}?countryCode=${this.countryCode}&query=${l}`,i=await this.fetchHelper.fetchJson(t,{mode:"cors"},this.cache);i&&(e&&(this.city=i.postalCodes?null===(s=i.postalCodes[0])||void 0===s?void 0:s.postalCity:null),o&&i.addresses&&(this.postalCode=this.postalCodeInputField.value,this.filterStreetNames(i)),h&&i.addresses&&this.filterStreetNumbers(i))}}async handleStreetAddressDropdown(t){const i=t.target;i===this.streetAddressInputField&&i.value.length&&(this.streetAdressArr&&this.streetAdressArr.length||await this.fetchData(this.streetAddressInputField,null)),i.value&&i.value.length||(this.streetAdressArr=null),this.streetAdressArr&&this.streetAdressArr.length&&this.autoComplete(t,this.streetAdressArr)}async handleStreetNumberDropdown(t){t.preventDefault(),t.target===this.streetNumberInputField&&(this.streetNumberArr&&this.streetNumberArr.length||await this.fetchData(this.streetNumberInputField,null),this.streetNumberArr&&this.autoComplete(t,this.streetNumberArr))}autoComplete(t,i){const s=t.target;if(i.length<1)return;let l=0;s.addEventListener("input",(()=>{const t=s.value;if(this.closeAllLists(s),!t)return;l=-1;let e=document.createElement("div");e.setAttribute("id","autocomplete-list"+s.name),e.setAttribute("class","autocomplete-items"),s.parentElement.appendChild(e);for(let l=0;l<i.length;l++)if(i[l].substring(0,t.length).toUpperCase()==t.toUpperCase()){let o=document.createElement("div");o.innerHTML="<strong>"+i[l].substring(0,t.length)+"</strong>",o.innerHTML+=i[l].substring(t.length),o.innerHTML+="<input type='hidden' value='"+i[l]+"'>",o.addEventListener("click",(t=>{const i=s.closest("pn-marketweb-input");let l=t.target;"STRONG"===l.nodeName&&(l=l.parentElement),i.value=l.getElementsByTagName("input")[0].value,s===this.streetNumberInputField&&(this.streetNumber=i.value),s===this.streetAddressInputField&&(this.streetAddress=i.value),this.closeAllLists(t.target),s.focus()})),e.appendChild(o)}})),s.addEventListener("keydown",(t=>{const i=document.getElementById("autocomplete-list"+s.name);let e;e=i?i.getElementsByTagName("div"):i,40==t.keyCode&&(l++,this.addActive(e,l)),38==t.keyCode&&(l--,this.addActive(e,l)),13==t.keyCode&&(t.preventDefault(),l>-1&&e&&e[l].click())}))}closeAllLists(t){const i=document.getElementsByClassName("autocomplete-items");for(let s=0;s<i.length;s++)t!=i[s]&&i[s].parentNode.removeChild(i[s])}addActive(t,i){t&&(this.removeActive(t),i>=t.length&&(i=0),i<0&&(i=t.length-1),t[i].classList.add("autocomplete-active"))}removeActive(t){for(let i=0;i<t.length;i++)t[i].classList.remove("autocomplete-active")}render(){var t,i,e,o,h,n,a,u,d,r,p,c,m,v,f,b,w;return s(l,{class:"pn-address-autofill"},(null===(t=this._postalCodeProps)||void 0===t?void 0:t.postalCodeCityLabel)?s("div",{class:"label-container"},s("label",null,`${this._postalCodeProps.postalCodeCityLabel}`)):null,s("div",{class:"input-container-row"},s("pn-marketweb-input",{type:"text",name:null===(i=this._postalCodeProps)||void 0===i?void 0:i.postalCodeInputName,required:null===(e=this._postalCodeProps)||void 0===e?void 0:e.postalCodeInputRequired,placeholder:null===(o=this._postalCodeProps)||void 0===o?void 0:o.postalCodeInputPlaceholder,ref:t=>this.pnInputPostalCode=t,autocomplete:"off",helpertext:null===(h=this._postalCodeProps)||void 0===h?void 0:h.postalCodeInputHelpertext}),s("pn-marketweb-input",{type:"text",name:null===(n=this._cityProps)||void 0===n?void 0:n.cityInputName,disabled:!0,value:this.city,placeholder:null===(a=this._cityProps)||void 0===a?void 0:a.cityInputPlaceholder,autocomplete:"off",helpertext:null===(u=this._cityProps)||void 0===u?void 0:u.cityInputHelpertext})),(null===(d=this._streetAddressProps)||void 0===d?void 0:d.streetAddressNumberLabel)?s("div",{class:"label-container"},s("label",null,`${this._streetAddressProps.streetAddressNumberLabel}`)):null,s("div",{class:"input-container-row"},s("pn-marketweb-input",{type:"text",name:null===(r=this._streetAddressProps)||void 0===r?void 0:r.streetAddressInputName,required:null===(p=this._streetAddressProps)||void 0===p?void 0:p.streetAddressInputRequired,value:this.streetAddress,placeholder:null===(c=this._streetAddressProps)||void 0===c?void 0:c.streetAddressInputPlaceholder,ref:t=>this.pnInputStreetAddress=t,autocomplete:"off",helpertext:null===(m=this._streetAddressProps)||void 0===m?void 0:m.streetAddressInputHelpertext}),s("pn-marketweb-input",{type:"text",name:null===(v=this._streetNumberProps)||void 0===v?void 0:v.streetNumberInputName,required:null===(f=this._streetNumberProps)||void 0===f?void 0:f.streetNumberInputRequired,value:this.streetNumber,placeholder:null===(b=this._streetNumberProps)||void 0===b?void 0:b.streetNumberInputPlaceholder,ref:t=>this.pnInputStreetNumber=t,autocomplete:"off",helpertext:null===(w=this._streetNumberProps)||void 0===w?void 0:w.streetNumberInputHelpertext})))}get hostElement(){return e(this)}};a.style="pn-address-autofill pn-marketweb-input{width:50%}pn-address-autofill .input-container-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-address-autofill .label-container{color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-address-autofill .autocomplete-items{position:absolute;border-radius:0.8rem;border:0.1rem solid #5E554A;width:100%;max-height:30rem;overflow-y:auto}pn-address-autofill .autocomplete-items:hover,pn-address-autofill .autocomplete-items :focus{border:0.1rem solid #00A0D6}pn-address-autofill .autocomplete-items div{padding:1.6rem;cursor:pointer;background-color:#fff;border:0.1rem solid transparent}pn-address-autofill .autocomplete-items div:first-child{border-radius:0.8rem 0.8rem 0 0}pn-address-autofill .autocomplete-items div:last-child{border-radius:0 0 0.8rem 0.8rem}pn-address-autofill .autocomplete-items div:hover{background-color:#e0f8ff}pn-address-autofill .autocomplete-items .autocomplete-active{background-color:#e0f8ff}";export{a as pn_address_autofill}
|
|
1
|
+
import{r as t,c as i,h as s,a as l,g as e}from"./p-d0e65d70.js";import{F as o,M as h}from"./p-9ad0ceb0.js";import{d as n}from"./p-4e3d7a56.js";const a=class{constructor(s){t(this,s),this.addresscomplete=i(this,"addresscomplete",7),this.pnInputPostalCode=null,this.pnInputCity=null,this.pnInputStreetAddress=null,this.pnInputStreetNumber=null,this.postalCodeInputField=null,this.streetAddressInputField=null,this.streetNumberInputField=null,this.pnInputHiddenValue=null,this.endpointPath="/api/location/get-by-location",this._postalCodeProps=null,this._cityProps=null,this._streetAddressProps=null,this._streetNumberProps=null,this.fetchHelper=new o("PostalCodeCityAutofill"),this.filterStreetNames=t=>{const i=[];this.streetAdressArr=null,t.addresses.forEach((t=>{t.postalCode.postalCity!==this.city||i.includes(t.street)||i.push(t.street)})),this.streetAdressArr=i},this.filterStreetNumbers=t=>{const i=[];t.addresses.forEach((t=>{if(t.postalCode.postalCode===this.postalCode){const{numberFrom:s,numberTo:l}=t,e=parseInt(s),o=parseInt(l);for(let t=e;t<=o;t++){const s=t.toString();i.includes(s)||i.push(t.toString())}}})),this.streetNumberArr=i},this.market=null,this.environment=null,this.endpoint=null,this.cache=!0,this.countryCode=null,this.postalCodeProps=null,this.cityProps=null,this.streetAddressProps=null,this.streetNumberProps=null,this.streetAdressArr=null,this.streetNumberArr=null,this.city=null,this.postalCode=null,this.streetAddress=null,this.streetNumber=null,this.fullAddress=null}componentWillLoad(){this.setInitialValues(),this._postalCodeProps=this.setProps(this.postalCodeProps),this._cityProps=this.setProps(this.cityProps),this._streetAddressProps=this.setProps(this.streetAddressProps),this._streetNumberProps=this.setProps(this.streetNumberProps)}setProps(t){return"string"==typeof t?JSON.parse(t):t}componentDidLoad(){this.postalCodeInputField=this.pnInputPostalCode.querySelector("input"),this.streetAddressInputField=this.pnInputStreetAddress.querySelector("input"),this.streetNumberInputField=this.pnInputStreetNumber.querySelector("input"),this.addEventHandlers()}async setInitialValues(t=window.location.href){var i;const s=new h(t);this.environment||(this.environment=await s.getEnvironmentName()),this.endpoint||-1!==(null===(i=this.environment)||void 0===i?void 0:i.indexOf("local"))||(this.endpoint=await s.getEndpoint(this.environment,this.market)),this.endpoint||(this.endpoint="")}addEventHandlers(){const t=n.debounce(this.fetchData.bind(this,this.postalCodeInputField),1e3);this.postalCodeInputField.addEventListener("keyup",t),this.streetAddressInputField.addEventListener("keyup",this.handleStreetAddressDropdown.bind(this)),this.streetNumberInputField.addEventListener("focus",this.handleStreetNumberDropdown.bind(this)),this.addFormFieldEvent()}addFormFieldEvent(){this.hostElement.querySelectorAll("input").forEach((t=>{["keyup","change"].forEach((i=>{const s=n.debounce(this.updateHiddenValue.bind(this),1e3);t.addEventListener(i,s)}))}))}updateHiddenValue(t){t.target===this.streetNumberInputField&&(this.streetNumber=this.streetNumberInputField.value),this.fullAddress=this.postalCode&&this.city&&this.streetAddress&&this.streetNumber?`${this.streetAddress} ${this.streetNumber}, ${this.city} ${this.postalCode}`:"",this.addresscomplete.emit(this.fullAddress)}async fetchData(t,i){var s;if(i&&(i.preventDefault(),"Tab"===i.key&&this.city))return;let l="";const e=i&&i.target===this.postalCodeInputField,o=t===this.streetAddressInputField&&this.city&&this.city.length,h=t===this.streetNumberInputField&&this.city&&this.city.length&&this.streetAddress&&this.streetAddress.length;if(e&&(l=this.postalCodeInputField.value,this.streetAdressArr=null,this.streetAddressInputField.value="",this.streetNumberArr=null,this.streetNumberInputField.value="",this.city=null,this.streetAddress=null,this.streetNumber=null),o&&(l=`${this.streetAddressInputField.value}, ${this.city}`,this.streetNumberArr=null,this.streetNumberInputField.value="",this.streetNumber=null),h&&(this.streetAdressArr=null,l=`${this.streetAddress}, ${this.city}`),l.length>0){const t=`${this.endpoint.lastIndexOf("/")===this.endpoint.length-1?this.endpoint.substring(0,this.endpoint.length-1):this.endpoint}${this.endpointPath}?countryCode=${this.countryCode}&query=${l}`,i=await this.fetchHelper.fetchJson(t,{mode:"cors"},this.cache);i&&(e&&(this.city=i.postalCodes?null===(s=i.postalCodes[0])||void 0===s?void 0:s.postalCity:null),o&&i.addresses&&(this.postalCode=this.postalCodeInputField.value,this.filterStreetNames(i)),h&&i.addresses&&this.filterStreetNumbers(i))}}async handleStreetAddressDropdown(t){const i=t.target;i===this.streetAddressInputField&&i.value.length&&(this.streetAdressArr&&this.streetAdressArr.length||await this.fetchData(this.streetAddressInputField,null)),i.value&&i.value.length||(this.streetAdressArr=null),this.streetAdressArr&&this.streetAdressArr.length&&this.autoComplete(t,this.streetAdressArr)}async handleStreetNumberDropdown(t){t.preventDefault(),t.target===this.streetNumberInputField&&(this.streetNumberArr&&this.streetNumberArr.length||await this.fetchData(this.streetNumberInputField,null),this.streetNumberArr&&this.autoComplete(t,this.streetNumberArr))}autoComplete(t,i){const s=t.target;if(i.length<1)return;let l=0;s.addEventListener("input",(()=>{const t=s.value;if(this.closeAllLists(s),!t)return;l=-1;let e=document.createElement("div");e.setAttribute("id","autocomplete-list"+s.name),e.setAttribute("class","autocomplete-items"),s.parentElement.appendChild(e);for(let l=0;l<i.length;l++)if(i[l].substring(0,t.length).toUpperCase()==t.toUpperCase()){let o=document.createElement("div");o.innerHTML="<strong>"+i[l].substring(0,t.length)+"</strong>",o.innerHTML+=i[l].substring(t.length),o.innerHTML+="<input type='hidden' value='"+i[l]+"'>",o.addEventListener("click",(t=>{const i=s.closest("pn-marketweb-input");let l=t.target;"STRONG"===l.nodeName&&(l=l.parentElement),i.value=l.getElementsByTagName("input")[0].value,s===this.streetNumberInputField&&(this.streetNumber=i.value),s===this.streetAddressInputField&&(this.streetAddress=i.value),this.closeAllLists(t.target),s.focus()})),e.appendChild(o)}})),s.addEventListener("keydown",(t=>{const i=document.getElementById("autocomplete-list"+s.name);let e;e=i?i.getElementsByTagName("div"):i,40==t.keyCode&&(l++,this.addActive(e,l)),38==t.keyCode&&(l--,this.addActive(e,l)),13==t.keyCode&&(t.preventDefault(),l>-1&&e&&e[l].click())}))}closeAllLists(t){const i=document.getElementsByClassName("autocomplete-items");for(let s=0;s<i.length;s++)t!=i[s]&&i[s].parentNode.removeChild(i[s])}addActive(t,i){t&&(this.removeActive(t),i>=t.length&&(i=0),i<0&&(i=t.length-1),t[i].classList.add("autocomplete-active"))}removeActive(t){for(let i=0;i<t.length;i++)t[i].classList.remove("autocomplete-active")}render(){var t,i,e,o,h,n,a,u,d,r,p,c,m,v,f,b,w;return s(l,{class:"pn-address-autofill"},(null===(t=this._postalCodeProps)||void 0===t?void 0:t.postalCodeCityLabel)?s("div",{class:"label-container"},s("label",null,`${this._postalCodeProps.postalCodeCityLabel}`)):null,s("div",{class:"input-container-row"},s("pn-marketweb-input",{type:"text",name:null===(i=this._postalCodeProps)||void 0===i?void 0:i.postalCodeInputName,required:null===(e=this._postalCodeProps)||void 0===e?void 0:e.postalCodeInputRequired,placeholder:null===(o=this._postalCodeProps)||void 0===o?void 0:o.postalCodeInputPlaceholder,ref:t=>this.pnInputPostalCode=t,autocomplete:"off",helpertext:null===(h=this._postalCodeProps)||void 0===h?void 0:h.postalCodeInputHelpertext}),s("pn-marketweb-input",{type:"text",name:null===(n=this._cityProps)||void 0===n?void 0:n.cityInputName,disabled:!0,value:this.city,placeholder:null===(a=this._cityProps)||void 0===a?void 0:a.cityInputPlaceholder,autocomplete:"off",helpertext:null===(u=this._cityProps)||void 0===u?void 0:u.cityInputHelpertext})),(null===(d=this._streetAddressProps)||void 0===d?void 0:d.streetAddressNumberLabel)?s("div",{class:"label-container"},s("label",null,`${this._streetAddressProps.streetAddressNumberLabel}`)):null,s("div",{class:"input-container-row"},s("pn-marketweb-input",{type:"text",name:null===(r=this._streetAddressProps)||void 0===r?void 0:r.streetAddressInputName,required:null===(p=this._streetAddressProps)||void 0===p?void 0:p.streetAddressInputRequired,value:this.streetAddress,placeholder:null===(c=this._streetAddressProps)||void 0===c?void 0:c.streetAddressInputPlaceholder,ref:t=>this.pnInputStreetAddress=t,autocomplete:"off",helpertext:null===(m=this._streetAddressProps)||void 0===m?void 0:m.streetAddressInputHelpertext}),s("pn-marketweb-input",{type:"text",name:null===(v=this._streetNumberProps)||void 0===v?void 0:v.streetNumberInputName,required:null===(f=this._streetNumberProps)||void 0===f?void 0:f.streetNumberInputRequired,value:this.streetNumber,placeholder:null===(b=this._streetNumberProps)||void 0===b?void 0:b.streetNumberInputPlaceholder,ref:t=>this.pnInputStreetNumber=t,autocomplete:"off",helpertext:null===(w=this._streetNumberProps)||void 0===w?void 0:w.streetNumberInputHelpertext})))}get hostElement(){return e(this)}};a.style="pn-address-autofill pn-marketweb-input{width:50%}pn-address-autofill .input-container-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-address-autofill .label-container{color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-address-autofill .autocomplete-items{position:absolute;border-radius:0.8rem;border:0.1rem solid #5E554A;width:100%;max-height:30rem;overflow-y:auto}pn-address-autofill .autocomplete-items:hover,pn-address-autofill .autocomplete-items :focus{border:0.1rem solid #00A0D6}pn-address-autofill .autocomplete-items div{padding:1.6rem;cursor:pointer;background-color:#fff;border:0.1rem solid transparent}pn-address-autofill .autocomplete-items div:first-child{border-radius:0.8rem 0.8rem 0 0}pn-address-autofill .autocomplete-items div:last-child{border-radius:0 0 0.8rem 0.8rem}pn-address-autofill .autocomplete-items div:hover{background-color:#e0f8ff}pn-address-autofill .autocomplete-items .autocomplete-active{background-color:#e0f8ff}";export{a as pn_address_autofill}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-6259e4f4.system.js"],(function(e){"use strict";var n,o,t,r;return{setters:[function(e){n=e.r;o=e.h;t=e.a;r=e.g}],execute:function(){var i='pn-breakpoints{width:100%}pn-breakpoints .breakpoints--dotcom{width:100%;background-color:aliceblue;text-align:center;margin-bottom:2.4rem;background-color:aliceblue}pn-breakpoints .breakpoints--dotcom .reference::before{content:"less than 321"}@media screen and (min-width: 321px){pn-breakpoints .breakpoints--dotcom{background-color:yellow}pn-breakpoints .breakpoints--dotcom .reference::before{content:"321 (xs)"}}@media screen and (min-width: 576px){pn-breakpoints .breakpoints--dotcom{background-color:aqua}pn-breakpoints .breakpoints--dotcom .reference::before{content:"576 (sm)"}}@media screen and (min-width: 768px){pn-breakpoints .breakpoints--dotcom{background-color:red;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"768 (md)"}}@media screen and (min-width: 992px){pn-breakpoints .breakpoints--dotcom{background-color:green;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"992 (lg)"}}@media screen and (min-width: 1200px){pn-breakpoints .breakpoints--dotcom{background-color:blue;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1200 (xl)"}}@media screen and (min-width: 1640px){pn-breakpoints .breakpoints--dotcom{background-color:pink}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1640 (xxl)"}}@media screen and (min-width: 1920px){pn-breakpoints .breakpoints--dotcom{background-color:orange}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1920 (fhd)"}}';var a=e("pn_breakpoints",function(){function e(e){n(this,e);this.currentWidth=window.innerWidth;this.breakPointClass="dotcom"}e.prototype.handleViewportSizeChange=function(e){this.currentWidth=e.target.innerWidth};e.prototype.createBreakpointClass=function(){return"breakpoints--".concat(this.breakPointClass)};e.prototype.render=function(){return o(t,null,o("div",{class:"breakpoints ".concat(this.createBreakpointClass()," ")},"".concat(this.currentWidth," px")," min-width: ",o("span",{class:"reference"}," px")))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());a.style=i}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++){if(a||!(r in t)){if(!a)a=Array.prototype.slice.call(t,0,r);a[r]=t[r]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++){if(a||!(r in t)){if(!a)a=Array.prototype.slice.call(t,0,r);a[r]=t[r]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-6259e4f4.system.js","./p-296637c0.system.js"],(function(e){"use strict";var t,o,r,n,a,d;return{setters:[function(e){t=e.r;o=e.c;r=e.h;n=e.a;a=e.g},function(e){d=e.d}],execute:function(){var i="pn-dropdown-choice-adds-row{gap:1rem}pn-dropdown-choice-adds-row .dropdown-choice-form-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:50%;margin-bottom:1rem}@media only screen and (max-width: 640px){pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:100%}}pn-dropdown-choice-adds-row .pn-dropdown-choice-table{width:100%;border-spacing:0rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th{text-align:left;padding:1rem 0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th label{color:#5E554A;font-size:1.4rem;font-weight:400}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--name{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--dropdown{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--input{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--delete{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody td{padding:0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody tr:nth-child(even){background-color:#effbff}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody .tr-delete{text-align:center}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td small{color:#A70707;vertical-align:middle}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td pn-icon{margin-right:0.25em;vertical-align:middle}";var l=e("pn_dropdown_choice_adds_row",function(){function e(e){var r=this;t(this,e);this.rowvalues=o(this,"rowvalues",7);this.pnRowSelectDropdown=null;this.tableHead=null;this.tableBody=null;this.formRowEvent=function(e){var t;var o=d.debounce(r.updateHiddenFieldValue.bind(r),500);if(e.target.matches("input")){["change","keyup"].forEach((function(t){e.target.addEventListener(t,o)}))}else{var n=(t=e.target.closest(".generated-table-row"))===null||t===void 0?void 0:t.querySelector("pn-select");if(n){n.addEventListener("selectchange",o)}}};this.dropdownData=null;this.addRowDropdownName="";this.addRowDropdownPlaceholder="";this.addRowDropdownLabel="";this.rowNameLabel="";this.rowHasDropdown=true;this.rowDropdownLabel="";this.rowDropdownPlaceholder="";this.rowInputLabel="";this.rowDeleteButtonText="";this.totalInputLimit=0;this.inputLimitWarning=null;this.nextRowIndex=null;this.rowSelectDropdownArr=null;this.columnCount=null;this.showWarning=false;this.formValue=null}e.prototype.dropdownDataWatcher=function(){if(typeof this.dropdownData==="string"){this._dropdownData=JSON.parse(this.dropdownData)}else{this._dropdownData=this.dropdownData}};e.prototype.componentWillLoad=function(){this.dropdownDataWatcher()};e.prototype.componentDidLoad=function(){this.setInitialValues();this.addEventHandlers()};e.prototype.addEventHandlers=function(){this.pnRowSelectDropdown.addEventListener("selectchange",this.addRowElement.bind(this))};e.prototype.setInitialValues=function(){this.nextRowIndex=0;this.columnCount=this.rowHasDropdown?4:3;this.setRowSelectDropdownArr()};e.prototype.setRowSelectDropdownArr=function(){var e=this;this.rowSelectDropdownArr=[];this._dropdownData.forEach((function(t){e.rowSelectDropdownArr.push(t.caption)}))};e.prototype.updateHiddenFieldValue=function(){var e=this;var t=__spreadArray([],this.tableBody.querySelectorAll("tr"),true);var o=this.rowHasDropdown?3:2;var r=[];if(t.length){t.forEach((function(t){var n,a,d;var i={row:[]};var l=t.querySelector(".tr-name");var c=t.querySelector(".tr-dropdown");var p=t.querySelector(".tr-input");var s={name:e.rowNameLabel,value:l===null||l===void 0?void 0:l.innerHTML};i.row.push(s);var h=c.querySelector(".current-selection");if(h){var u=(n=h.textContent)!==null&&n!==void 0?n:"";if(u.length){var w={name:e.rowDropdownLabel,value:u};i.row.push(w)}}if(!h&&o===3){var w={name:e.rowDropdownLabel,value:""};i.row.push(w)}var f=parseInt((d=(a=p.querySelector("input"))===null||a===void 0?void 0:a.value)!==null&&d!==void 0?d:"0");if(f>0){var m={name:e.rowInputLabel,value:f.toString()};i.row.push(m)}if(i.row.length===o){r.push(i)}}))}if(r.length&&r.length===t.length){var n=JSON.stringify(r);this.formValue="PN-JSON|".concat(n)}else{this.formValue=""}this.rowvalues.emit(this.formValue);this.checkInputTotal()};e.prototype.addRowElement=function(){var e=this;var t=this.pnRowSelectDropdown.querySelector(".current-selection .pn-option-content");var o=t===null||t===void 0?void 0:t.textContent;var r=this.tableBody;var n=document.createElement("tr");n.setAttribute("index","".concat(this.nextRowIndex));n.setAttribute("class","generated-table-row");n.onclick=function(t){return e.formRowEvent(t)};var a=document.createElement("td");a.setAttribute("class","tr-name");a.innerHTML=o;n.appendChild(a);if(this.rowHasDropdown){var d=this.createDropdownColumn(o);n.appendChild(d)}var i=this.createInputColumn(o);n.appendChild(i);var l=this.createDeleteButtonColumn();n.appendChild(l);r.appendChild(n);this.updateRowSelectDropdown();this.nextRowIndex++};e.prototype.createDropdownColumn=function(e){var t=document.createElement("td");t.setAttribute("class","tr-dropdown");var o=this._dropdownData.find((function(t){return t.caption===e}));if(Array.isArray(o.values)&&o.values.length){var r=document.createElement("pn-select");r.setAttribute("name","".concat(e,"-dropdown"));r.setAttribute("placeholder",this.rowDropdownPlaceholder);o.values.forEach((function(e){var t=document.createElement("pn-option");t.innerHTML=e.caption;r.appendChild(t)}));t.appendChild(r)}return t};e.prototype.createInputColumn=function(e){var t=document.createElement("td");t.setAttribute("class","tr-input");var o=document.createElement("pn-marketweb-input");o.setAttribute("type","number");o.setAttribute("name","".concat(e,"-input"));o.setAttribute("placeholder","0");t.appendChild(o);return t};e.prototype.createDeleteButtonColumn=function(){var e=this;var t=document.createElement("td");t.setAttribute("class","tr-delete");var o=document.createElement("pn-button");o.onclick=function(t){return e.deleteRow(t)};o.setAttribute("appearance","warning");o.setAttribute("small","true");o.appendChild(document.createTextNode(this.rowDeleteButtonText));t.appendChild(o);return t};e.prototype.updateRowSelectDropdown=function(){var e=this;var t=[].map.call(this.tableBody.querySelectorAll(".tr-name"),(function(e){return e.innerHTML}));if(t.length){this.rowSelectDropdownArr=[];this._dropdownData.forEach((function(o){if(!t.includes(o.caption)){e.rowSelectDropdownArr.push(o.caption)}}))}else{this.setRowSelectDropdownArr()}var o=this.pnRowSelectDropdown.querySelectorAll("pn-option");o.forEach((function(e){e.removeAttribute("selected")}));var r=this.pnRowSelectDropdown.querySelector(".pn-option-content");r.innerHTML=this.addRowDropdownPlaceholder;this.updateHiddenFieldValue()};e.prototype.deleteRow=function(e){e.preventDefault();this.nextRowIndex--;var t=e.currentTarget;var o=t.closest("tr");o.remove();var r=__spreadArray([],this.tableBody.querySelectorAll("tr"),true);r.map((function(e,t){e.setAttribute("index","".concat(t))}));this.updateRowSelectDropdown()};e.prototype.checkInputTotal=function(){var e=this.tableBody.querySelectorAll("tr");if(this.totalInputLimit===0||e.length<1){this.showWarning=false;return}var t=0;e.forEach((function(e){var o;var r=e.querySelector("pn-marketweb-input");if(r.value){t+=(o=parseInt(r.value))!==null&&o!==void 0?o:0}}));this.showWarning=t>this.totalInputLimit?true:false};e.prototype.render=function(){var e=this;var t;return r(n,null,r("div",{class:"dropdown-choice-form-row"},r("pn-select",{ref:function(t){return e.pnRowSelectDropdown=t},name:this.addRowDropdownName,placeholder:this.addRowDropdownPlaceholder,label:this.addRowDropdownLabel,class:"pn-row-select-dropdown"},(t=this.rowSelectDropdownArr)===null||t===void 0?void 0:t.map((function(e){return r("pn-option",null,e)})))),r("div",{class:"dropdown-choice-form-row"},r("table",{class:"pn-dropdown-choice-table"},r("thead",{ref:function(t){return e.tableHead=t}},this.nextRowIndex===0?null:r("tr",null,r("th",{class:"table-header--name"},r("label",null,this.rowNameLabel)),this.rowHasDropdown?r("th",{class:"table-header--dropdown"},r("label",null,this.rowDropdownLabel)):null,r("th",{class:"table-header--input"},r("label",null,this.rowInputLabel)),r("th",{class:"table-header--delete"}))),r("tbody",{ref:function(t){return e.tableBody=t},class:"pn-dropdown-choice-table-slot"},r("slot",null)),r("tfoot",null,this.showWarning?r("tr",null,r("td",{colSpan:this.columnCount},r("pn-icon",{symbol:"alert-exclamation-circle",small:true,color:"warning"}),r("small",{class:"dropdown-choice-error-message"},this.inputLimitWarning))):null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dropdownData:["dropdownDataWatcher"]}},enumerable:false,configurable:true});return e}());l.style=i}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as o,a as n,g as r}from"./p-
|
|
1
|
+
import{r as e,h as o,a as n,g as r}from"./p-d0e65d70.js";const t=class{constructor(o){e(this,o),this.currentWidth=window.innerWidth,this.breakPointClass="dotcom"}handleViewportSizeChange(e){this.currentWidth=e.target.innerWidth}createBreakpointClass(){return`breakpoints--${this.breakPointClass}`}render(){return o(n,null,o("div",{class:`breakpoints ${this.createBreakpointClass()} `},`${this.currentWidth} px`," min-width: ",o("span",{class:"reference"}," px")))}get hostElement(){return r(this)}};t.style='pn-breakpoints{width:100%}pn-breakpoints .breakpoints--dotcom{width:100%;background-color:aliceblue;text-align:center;margin-bottom:2.4rem;background-color:aliceblue}pn-breakpoints .breakpoints--dotcom .reference::before{content:"less than 321"}@media screen and (min-width: 321px){pn-breakpoints .breakpoints--dotcom{background-color:yellow}pn-breakpoints .breakpoints--dotcom .reference::before{content:"321 (xs)"}}@media screen and (min-width: 576px){pn-breakpoints .breakpoints--dotcom{background-color:aqua}pn-breakpoints .breakpoints--dotcom .reference::before{content:"576 (sm)"}}@media screen and (min-width: 768px){pn-breakpoints .breakpoints--dotcom{background-color:red;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"768 (md)"}}@media screen and (min-width: 992px){pn-breakpoints .breakpoints--dotcom{background-color:green;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"992 (lg)"}}@media screen and (min-width: 1200px){pn-breakpoints .breakpoints--dotcom{background-color:blue;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1200 (xl)"}}@media screen and (min-width: 1640px){pn-breakpoints .breakpoints--dotcom{background-color:pink}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1640 (xxl)"}}@media screen and (min-width: 1920px){pn-breakpoints .breakpoints--dotcom{background-color:orange}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1920 (fhd)"}}';export{t as pn_breakpoints}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as r,a as n,g as t}from"./p-
|
|
1
|
+
import{r as e,h as r,a as n,g as t}from"./p-d0e65d70.js";const a=class{constructor(r){e(this,r),this.formActionUrl=null,this.heading="Track your parcel",this.buttonLabel=null,this.locale="en",this.placeholder="Enter shipment ID",this.inputName="shipmentID",this.currentWidth=window.innerWidth}handleViewportSizeChange(e){this.currentWidth=e.target.innerWidth}render(){return r(n,null,r("div",{class:"pn-parcel-tracker__container"},r("form",{method:"GET",action:this.formActionUrl},r("h3",{class:"pn-parcel-tracker__container__heading"},this.heading),r("pn-marketweb-input",{name:this.inputName,placeholder:this.placeholder}),r("pn-button",{type:"submit",icon:"search","icon-only":this.currentWidth<412},this.currentWidth>=412&&this.buttonLabel))))}get hostElement(){return t(this)}};a.style="pn-spotlight .pn-spotlight__container:has(pn-parcel-tracker) [slot=mobile-heading]{color:#005D92}.pn-spotlight__container__wrapper__content [slot=content]:has(pn-parcel-tracker){padding-left:2rem}pn-parcel-tracker{width:100%}pn-parcel-tracker .pn-parcel-tracker__container form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;gap:1.6rem}pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{color:#005D92;font-weight:500;margin-bottom:0}@media screen and (max-width: 768px){pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{display:none}}@media screen and (min-width: 1640px){pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{font-size:2.4rem;font-weight:700}}pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{-ms-flex-positive:1;flex-grow:1;max-width:80%}@media screen and (min-width: 768px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:50%}}@media screen and (min-width: 992px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:45%}}@media screen and (min-width: 1640px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:35%}}pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input input{border-radius:6.4rem}";export{a as pn_parcel_tracker}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,a,g as o}from"./p-57d37022.js";const n=class{constructor(t){e(this,t),this.quote=null,this.name=null,this.occupation=null}render(){return t(a,null,t("div",{class:"pn-quote-card__section"},t("div",{class:"pn-quote-card__container"},t("slot",{name:"vertical-line"}," "),t("div",{class:"pn-quote-card__quote__container"},t("blockquote",{class:"pn-quote-card__quote"},t("svg",{width:"25",height:"18",viewBox:"0 0 25 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M10.483 0V7.391C10.483 13.095 6.752 16.961 1.5 18L0.505 15.849C2.937 14.932 4.5 12.211 4.5 10H0.5V0H10.483ZM24.5 0V7.391C24.5 13.095 20.752 16.962 15.5 18L14.504 15.849C16.937 14.932 18.5 12.211 18.5 10H14.517V0H24.5Z",fill:"white"})),this.quote),t("slot",{name:"horizontal-line"}),t("div",{class:"pn-quote-card__reference__container"},t("slot",{name:"illustration"}),t("div",{class:"pn-quote-card__reference"},t("span",{class:"pn-quote-card__reference__name"},this.name),t("span",{class:"pn-quote-card__reference__occupation"},this.occupation)))),t("div",{class:"pn-quote-card__large-photo"},t("slot",{name:"illustration-big"})))))}get hostElement(){return o(this)}};n.style="pn-quote-card .pn-quote-card__container{margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;min-height:262px;padding:0 2.4rem}pn-quote-card .pn-quote-card__quote__container{padding:0 3.2rem}pn-quote-card .pn-quote-card__quote{position:relative;font-weight:400;font-size:2rem;line-height:140%;margin:0}pn-quote-card .pn-quote-card__quote svg{position:absolute;left:-3.2rem;top:0.2rem}pn-quote-card .pn-quote-card__reference__container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;gap:1.6rem;-ms-flex-align:center;align-items:center}pn-quote-card .pn-quote-card__reference__name{display:block;font-weight:400;font-size:2.4rem;line-height:2.9rem}pn-quote-card .pn-quote-card__reference__occupation{display:block;font-weight:400;font-size:1.4rem;line-height:1.7rem}pn-quote-card [slot=illustration]{padding:0}pn-quote-card [slot=illustration-big]{padding:0.8rem 0}pn-quote-card [slot=illustration],pn-quote-card [slot=illustration-big]{aspect-ratio:1/1}pn-quote-card [slot=illustration] picture,pn-quote-card [slot=illustration-big] picture{aspect-ratio:1/1}pn-quote-card [slot=illustration] picture img,pn-quote-card [slot=illustration-big] picture img{-webkit-clip-path:circle(50%);clip-path:circle(50%);max-width:unset}pn-quote-card [slot=horizontal-line],pn-quote-card [slot=vertical-line]{display:-ms-flexbox;display:flex}pn-quote-card[data-line-color=white] .pn-quote-card__section{background-color:#005D92;color:#FFFFFF}pn-quote-card[data-line-color=white] .pn-line-shape__line,pn-quote-card[data-line-color=white] .pn-line-shape__dot{border-color:#FFFFFF;background-color:#FFFFFF}pn-quote-card[data-line-color=white] .pn-quote-card__quote svg>path{fill:#FFFFFF}pn-quote-card[data-line-color=blue] .pn-quote-card__section{background-color:#FFFFFF}pn-quote-card[data-line-color=blue] .pn-line-shape__line,pn-quote-card[data-line-color=blue] .pn-line-shape__dot{border-color:#00A0D6;background-color:#00A0D6}pn-quote-card[data-line-color=blue] .pn-quote-card__quote svg>path{fill:#00A0D6}pn-quote-card[data-line-color=blue900] .pn-quote-card__section{background-color:#FFFFFF}pn-quote-card[data-line-color=blue900] .pn-line-shape__line,pn-quote-card[data-line-color=blue900] .pn-line-shape__dot{border-color:#0D234B;background-color:#0D234B}pn-quote-card[data-line-color=blue900] .pn-quote-card__quote svg>path{fill:#0D234B}pn-quote-card[data-card-style=standalone][data-line-color=white] .pn-quote-card__section{border-radius:2.4rem}pn-quote-card[data-card-style=standalone][data-line-color=white] .pn-quote-card__container{padding:2.4rem}pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:100%;margin:0 auto}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:70%}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:60%}}pn-quote-card[data-card-style=standalone] .pn-quote-card__container{min-height:unset;padding:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=standalone] .pn-quote-card__container{padding:0 2.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;gap:3.2rem;padding:2.4rem 1.6rem 1.6rem 1.6rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=standalone] .pn-quote-card__quote__container{padding:2.4rem 3.2rem 1.6rem 3.2rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote{font-size:1.6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__quote{font-size:2rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote svg{display:block;margin-bottom:0.8rem;position:relative;top:0;left:0}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__container [slot=illustration] picture img{height:6rem;width:6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__container [slot=illustration] picture img{height:9rem;width:9rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__name{font-size:1.6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__name{font-size:2.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__occupation{font-size:1.2rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__occupation{font-size:1.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__large-photo{display:none}pn-quote-card[data-card-style=combo] .pn-quote-card__section{width:100%;margin:0 auto;padding-top:4rem;padding-bottom:4rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__section{padding-bottom:0}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__section{padding-top:10rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__container{min-height:10rem;padding-bottom:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:90%;width:100%}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:768px;width:100%}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:1140px;width:100%;padding:0 5.6rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:1440px;width:100%;padding:0 12rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__quote__container{padding-bottom:0;padding-left:0;padding-right:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote__container{padding-left:2.4rem;padding-right:2.4rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:2rem;padding-left:2.4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-0.8rem;top:0.2rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{padding-left:4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:0}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:2.4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:0;top:0.4rem;scale:1.3}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{padding-left:0;font-size:3.2rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-4.8rem;top:1rem;scale:1.4}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:3.8rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-6.4rem;top:1.6rem;scale:1.8}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}pn-quote-card[data-card-style=combo] [slot=illustration] picture>img{max-width:6rem;max-height:6rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] [slot=illustration] picture>img{max-width:10rem;max-height:10rem}}@media screen and (min-width: 1140px){pn-quote-card[data-card-style=combo] [slot=illustration]{display:none}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference{text-align:right}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{display:block;font-size:1.4rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:1.6rem}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:2rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:3.2rem;margin-bottom:1rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{display:block;font-size:1.2rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{font-size:1.4rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{font-size:1.6rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:none}@media screen and (min-width: 1140px){pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:block}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]{width:18rem;height:18rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big] picture>img{width:18rem;height:18rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:block;width:24rem;height:24rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]{position:relative;z-index:1;width:24rem;height:24rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]>picture>img{width:24rem;height:24rem}}";export{n as pn_quote_card}
|
|
1
|
+
import{r as e,h as t,a,g as o}from"./p-d0e65d70.js";const n=class{constructor(t){e(this,t),this.quote=null,this.name=null,this.occupation=null}render(){return t(a,null,t("div",{class:"pn-quote-card__section"},t("div",{class:"pn-quote-card__container"},t("slot",{name:"vertical-line"}," "),t("div",{class:"pn-quote-card__quote__container"},t("blockquote",{class:"pn-quote-card__quote"},t("svg",{width:"25",height:"18",viewBox:"0 0 25 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M10.483 0V7.391C10.483 13.095 6.752 16.961 1.5 18L0.505 15.849C2.937 14.932 4.5 12.211 4.5 10H0.5V0H10.483ZM24.5 0V7.391C24.5 13.095 20.752 16.962 15.5 18L14.504 15.849C16.937 14.932 18.5 12.211 18.5 10H14.517V0H24.5Z",fill:"white"})),this.quote),t("slot",{name:"horizontal-line"}),t("div",{class:"pn-quote-card__reference__container"},t("slot",{name:"illustration"}),t("div",{class:"pn-quote-card__reference"},t("span",{class:"pn-quote-card__reference__name"},this.name),t("span",{class:"pn-quote-card__reference__occupation"},this.occupation)))),t("div",{class:"pn-quote-card__large-photo"},t("slot",{name:"illustration-big"})))))}get hostElement(){return o(this)}};n.style="pn-quote-card .pn-quote-card__container{margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;min-height:262px;padding:0 2.4rem}pn-quote-card .pn-quote-card__quote__container{padding:0 3.2rem}pn-quote-card .pn-quote-card__quote{position:relative;font-weight:400;font-size:2rem;line-height:140%;margin:0}pn-quote-card .pn-quote-card__quote svg{position:absolute;left:-3.2rem;top:0.2rem}pn-quote-card .pn-quote-card__reference__container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;gap:1.6rem;-ms-flex-align:center;align-items:center}pn-quote-card .pn-quote-card__reference__name{display:block;font-weight:400;font-size:2.4rem;line-height:2.9rem}pn-quote-card .pn-quote-card__reference__occupation{display:block;font-weight:400;font-size:1.4rem;line-height:1.7rem}pn-quote-card [slot=illustration]{padding:0}pn-quote-card [slot=illustration-big]{padding:0.8rem 0}pn-quote-card [slot=illustration],pn-quote-card [slot=illustration-big]{aspect-ratio:1/1}pn-quote-card [slot=illustration] picture,pn-quote-card [slot=illustration-big] picture{aspect-ratio:1/1}pn-quote-card [slot=illustration] picture img,pn-quote-card [slot=illustration-big] picture img{-webkit-clip-path:circle(50%);clip-path:circle(50%);max-width:unset}pn-quote-card [slot=horizontal-line],pn-quote-card [slot=vertical-line]{display:-ms-flexbox;display:flex}pn-quote-card[data-line-color=white] .pn-quote-card__section{background-color:#005D92;color:#FFFFFF}pn-quote-card[data-line-color=white] .pn-line-shape__line,pn-quote-card[data-line-color=white] .pn-line-shape__dot{border-color:#FFFFFF;background-color:#FFFFFF}pn-quote-card[data-line-color=white] .pn-quote-card__quote svg>path{fill:#FFFFFF}pn-quote-card[data-line-color=blue] .pn-quote-card__section{background-color:#FFFFFF}pn-quote-card[data-line-color=blue] .pn-line-shape__line,pn-quote-card[data-line-color=blue] .pn-line-shape__dot{border-color:#00A0D6;background-color:#00A0D6}pn-quote-card[data-line-color=blue] .pn-quote-card__quote svg>path{fill:#00A0D6}pn-quote-card[data-line-color=blue900] .pn-quote-card__section{background-color:#FFFFFF}pn-quote-card[data-line-color=blue900] .pn-line-shape__line,pn-quote-card[data-line-color=blue900] .pn-line-shape__dot{border-color:#0D234B;background-color:#0D234B}pn-quote-card[data-line-color=blue900] .pn-quote-card__quote svg>path{fill:#0D234B}pn-quote-card[data-card-style=standalone][data-line-color=white] .pn-quote-card__section{border-radius:2.4rem}pn-quote-card[data-card-style=standalone][data-line-color=white] .pn-quote-card__container{padding:2.4rem}pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:100%;margin:0 auto}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:70%}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=standalone] .pn-quote-card__section{max-width:60%}}pn-quote-card[data-card-style=standalone] .pn-quote-card__container{min-height:unset;padding:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=standalone] .pn-quote-card__container{padding:0 2.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;gap:3.2rem;padding:2.4rem 1.6rem 1.6rem 1.6rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=standalone] .pn-quote-card__quote__container{padding:2.4rem 3.2rem 1.6rem 3.2rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote{font-size:1.6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__quote{font-size:2rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__quote svg{display:block;margin-bottom:0.8rem;position:relative;top:0;left:0}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__container [slot=illustration] picture img{height:6rem;width:6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__container [slot=illustration] picture img{height:9rem;width:9rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__name{font-size:1.6rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__name{font-size:2.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__occupation{font-size:1.2rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=standalone] .pn-quote-card__reference__occupation{font-size:1.4rem}}pn-quote-card[data-card-style=standalone] .pn-quote-card__large-photo{display:none}pn-quote-card[data-card-style=combo] .pn-quote-card__section{width:100%;margin:0 auto;padding-top:4rem;padding-bottom:4rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__section{padding-bottom:0}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__section{padding-top:10rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__container{min-height:10rem;padding-bottom:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:90%;width:100%}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:768px;width:100%}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:1140px;width:100%;padding:0 5.6rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__container{max-width:1440px;width:100%;padding:0 12rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__quote__container{padding-bottom:0;padding-left:0;padding-right:0}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote__container{padding-left:2.4rem;padding-right:2.4rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:2rem;padding-left:2.4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-0.8rem;top:0.2rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{padding-left:4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:0}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:2.4rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:0;top:0.4rem;scale:1.3}}@media screen and (min-width: 1200px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{padding-left:0;font-size:3.2rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-4.8rem;top:1rem;scale:1.4}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__quote{font-size:3.8rem}pn-quote-card[data-card-style=combo] .pn-quote-card__quote svg{left:-6.4rem;top:1.6rem;scale:1.8}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__container{-ms-flex-direction:row-reverse;flex-direction:row-reverse}pn-quote-card[data-card-style=combo] [slot=illustration] picture>img{max-width:6rem;max-height:6rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] [slot=illustration] picture>img{max-width:10rem;max-height:10rem}}@media screen and (min-width: 1140px){pn-quote-card[data-card-style=combo] [slot=illustration]{display:none}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference{text-align:right}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{display:block;font-size:1.4rem}@media screen and (min-width: 768px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:1.6rem}}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:2rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__name{font-size:3.2rem;margin-bottom:1rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{display:block;font-size:1.2rem}@media screen and (min-width: 992px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{font-size:1.4rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__reference__occupation{font-size:1.6rem}}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:none}@media screen and (min-width: 1140px){pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:block}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]{width:18rem;height:18rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big] picture>img{width:18rem;height:18rem}}@media screen and (min-width: 1640px){pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo{display:block;width:24rem;height:24rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]{position:relative;z-index:1;width:24rem;height:24rem}pn-quote-card[data-card-style=combo] .pn-quote-card__large-photo>[slot=illustration-big]>picture>img{width:24rem;height:24rem}}";export{n as pn_quote_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,a as i}from"./p-
|
|
1
|
+
import{r as e,h as t,a as i}from"./p-d0e65d70.js";const l=class{constructor(t){e(this,t)}render(){return t(i,null,t("slot",{name:"illustration"}),t("div",{class:"tilecontent"},t("div",{class:"details"},t("slot",{name:"content"}),t("div",{class:"info"},t("slot",null)),t("slot",{name:"note"})),t("slot",{name:"price"})))}};l.style="pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-tile .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";export{l as pn_product_tile}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,a as i}from"./p-
|
|
1
|
+
import{r as t,h as e,a as i}from"./p-d0e65d70.js";import{w as s}from"./p-4e9a272d.js";import{a as n}from"./p-bfe239ca.js";import{s as a}from"./p-746a2620.js";import"./p-814af281.js";import"./p-03d7d79b.js";const r={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",resultlistheading:"Några bra alternativ för dig",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp online",stampshopcta:"Köp frimärken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Sök serviceställe eller brevlåda"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",resultlistheading:"Some suitable options for you",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy Online",stampshopcta:"Buy Stamps",message:"When buying from any agent",servicePointHeader:"Or find nearest service point",servicePointLink:"Search letter-box or service point"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}},o={se:{currency:"kr"},dk:{currency:"dk"},fi:{currency:" €"},no:{currency:"kr"}},l=class{constructor(e){t(this,e),this.source="https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx",this.language="sv",this.market="se",this.productid="",this.filteredItems=[],this.sourceData={types:[],data:[]},this.gotData=!1,this.loading=!1,this.postagetype={value:""},this.weight={value:0,name:""},this.weightvalue=0}componentWillLoad(){this.setState(),this.getDataSource().then((()=>{}))}setState(){this.market&&(a.market=o[this.market]),this.language&&r[this.language]&&(a.i18n=r[this.language])}async getDataSource(){if(!this.productid)return;this.loading=!0;const t=`?cache=${Math.floor(9999*Math.random()+1)}`,e=await fetch(this.source+t),i=await e.blob();try{const t=await n(i);this.sourceData=t,this.filterItems()}catch(s){this.loading=!1,console.warn("Unable to parse data")}}filterItems(){var t;if(!(null===(t=this.sourceData)||void 0===t?void 0:t.data))return void console.info("Data has not yet been loaded");this.loading=!1;const e=this.sourceData.data.filter((t=>t.id===this.productid));if(0===e.length)return;if(this.postagetype.value=e[0].what,!s[this.postagetype.value]||0===s[this.postagetype.value].length)return;0===this.weightvalue&&(this.weight=s[this.postagetype.value][0],this.weightvalue=this.weight.value);const i="kg"===this.weight.abbreviation.toLocaleLowerCase()&&"letter"===this.postagetype.value?1e3*this.weight.value:this.weight.value;let n=e.filter((t=>t.maxweight===i));if(0===n.length&&(n=e.filter((t=>t.maxweight>=i)),n.length>0)){const t=[...new Map(n.reverse().map((t=>[t.id,t]))).values()];t.length>0&&(n=t)}this.filteredItems=n,this.gotData=this.filteredItems.length>0}render(){return e(i,null,e("div",{class:"content"},e("slot",null)),this.loading?e("pn-spinner",null):null,this.postagetype.value&&s[this.postagetype.value]?e("div",{class:"weightselection"},e("div",{class:"weightoption"},e("div",{class:"weightoption-input"},e("pn-input",{inputid:"weightvalue",name:"weightvalue",type:"number",label:a.i18n.weightlabel,value:this.weightvalue,onChange:t=>{if(t&&t.target&&t.target.value){const e=parseInt(t.target.value,10);if(!isNaN(e)){let t=s[this.postagetype.value].filter((t=>("kg"===t.abbreviation?1e3*t.value:t.value)>=e));t&&t.length>0&&(this.weight=t[0],this.weightvalue=this.weight.value)}}}}),e("span",{class:"weightoption-input-abbreviation"},this.weight.abbreviation)),e("div",{class:"weightoption-range"},e("input",{type:"range",id:"weightrange",name:"weightrange",list:"weightlist",value:this.weight.value?s[this.postagetype.value].findIndex((t=>t.value===this.weightvalue)):0,onChange:t=>{this.weight=s[this.postagetype.value][t.target.value],this.weightvalue=this.weight.value},min:"0",max:s[this.postagetype.value].length-1}),e("datalist",{id:"weightlist"},s[this.postagetype.value].map(((t,i)=>{let n=t.name;return s[this.postagetype.value].length>6&&(n=i%5==0||0===i||i===s[this.postagetype.value].length-1?t.name:""),e("option",Object.assign({value:i},n?{label:n}:{}))})))))):null,e("div",{class:"resultlist","data-list-count":this.filteredItems.length},this.filteredItems.map((t=>e("div",null,e("pn-find-price-result",{item:t}))))))}static get watchers(){return{market:["setState"],language:["setState"],postagetype:["filterItems"],weightvalue:["filterItems"]}}};l.style='pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count="0"]){margin-top:2em}';export{l as pn_product_pricelist}
|