@postnord/pn-marketweb-components 1.0.43 → 1.0.45
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/{MarketWebContextService-bdc46f40.js → FetchHelper-fb0de0d3.js} +85 -0
- package/cjs/{MarketWebLoginManager-1282a883.js → MarketWebLoginManager-3c2f4423.js} +16 -1
- package/cjs/{convert-57b3dd5e.js → convert-362ef5e6.js} +134 -24
- package/cjs/{index-cd08e313.js → index-0a6b1eef.js} +23 -0
- package/cjs/{index-31d574c5.js → index-9027dc96.js} +1 -1
- package/cjs/loader.cjs.js +3 -3
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +39 -0
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-filter-search.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +34 -0
- package/cjs/pn-find-price-store-346abc1a.js +24 -0
- package/cjs/pn-find-price.cjs.entry.js +243 -0
- package/cjs/{pn-choice-button_2.cjs.entry.js → pn-find-service-and-price-result.cjs.entry.js} +3 -36
- package/cjs/{pn-find-service-and-price-store-bded912f.js → pn-find-service-and-price-store-914d170b.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +4 -4
- package/cjs/pn-language-selector_9.cjs.entry.js +8 -5
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-4a3492cd.js → pn-mainnav-store-f8bacb50.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +3 -3
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +3 -4
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +4 -5
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +49 -0
- package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
- package/cjs/{pn-product-pricelist-store-8dda97db.js → pn-product-pricelist-store-d101b50e.js} +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
- package/cjs/pn-product-tile_3.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector-option.cjs.entry.js +23 -0
- package/cjs/pn-profile-selector.cjs.entry.js +12 -65
- 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-044d6595.js → pn-sidenav-store-eed02285.js} +1 -1
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +8 -2
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +4 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +1 -1
- package/collection/components/navigation/pn-profile-selector/pn-profile-selector-option.css +53 -0
- package/collection/components/navigation/pn-profile-selector/pn-profile-selector-option.js +80 -0
- package/collection/components/navigation/pn-profile-selector/pn-profile-selector.css +18 -7
- package/collection/components/navigation/pn-profile-selector/pn-profile-selector.js +12 -86
- package/collection/components/navigation/pn-profile-selector/pn-profile-selector.stories.js +5 -2
- package/collection/components/navigation/pn-profile-selector/translations.js +5 -5
- package/collection/components/widgets/pn-find-price/data.js +42 -0
- package/collection/components/widgets/pn-find-price/find-price.stories.js +27 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.css +9 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +94 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-store.js +21 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +73 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-types.js +1 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.css +56 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.js +217 -0
- package/collection/components/widgets/pn-product-card/pn-product-card-info.css +30 -0
- package/collection/components/widgets/pn-product-card/pn-product-card-info.js +92 -0
- package/collection/components/widgets/pn-product-card/pn-product-card-price.css +37 -0
- package/collection/components/widgets/pn-product-card/pn-product-card-price.js +112 -0
- package/collection/components/widgets/pn-product-card/pn-product-card.css +86 -0
- package/collection/components/widgets/pn-product-card/pn-product-card.js +26 -0
- package/collection/components/widgets/pn-product-card/product-card.stories.js +50 -0
- package/collection/docs/no-webpack/no-webpack.stories.js +21 -0
- package/collection/docs/no-webpack/nowebpack-loader.js +16 -0
- package/collection/docs/no-webpack/test-loader.js +19 -0
- package/collection/globals/MarketWebLoginManager.js +16 -1
- package/collection/globals/shared/productprice/convert.js +55 -1
- package/custom-elements/index.d.ts +36 -0
- package/custom-elements/index.js +574 -147
- package/esm/{MarketWebContextService-ab7796c6.js → FetchHelper-41adaded.js} +85 -1
- package/esm/{MarketWebLoginManager-310d2552.js → MarketWebLoginManager-3bb0a307.js} +16 -1
- package/esm/{convert-b49a0857.js → convert-ae809f9c.js} +134 -25
- package/esm/{index-b26d0794.js → index-70b099b5.js} +23 -0
- package/esm/{index-94746173.js → index-d3007e8f.js} +1 -1
- package/esm/loader.js +3 -3
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/{pn-choice-button_2.entry.js → pn-choice-button.entry.js} +2 -40
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-filter-search.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +30 -0
- package/esm/pn-find-price-store-24d31717.js +22 -0
- package/esm/pn-find-price.entry.js +239 -0
- package/esm/pn-find-service-and-price-result.entry.js +41 -0
- package/esm/{pn-find-service-and-price-store-2ddc6cfa.js → pn-find-service-and-price-store-012f2e49.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +4 -4
- package/esm/pn-language-selector_9.entry.js +8 -5
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-c14ad7e8.js → pn-mainnav-store-395ee066.js} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-sitefooter.entry.js +2 -3
- package/esm/pn-marketweb-siteheader.entry.js +3 -4
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +43 -0
- package/esm/pn-product-pricelist-result.entry.js +3 -3
- package/esm/{pn-product-pricelist-store-a287a3f5.js → pn-product-pricelist-store-909c5238.js} +1 -1
- package/esm/pn-product-pricelist.entry.js +4 -4
- package/esm/pn-product-tile_3.entry.js +1 -1
- package/esm/pn-profile-selector-option.entry.js +19 -0
- package/esm/pn-profile-selector.entry.js +12 -65
- package/esm/pn-sidenav-level.entry.js +3 -3
- package/esm/pn-sidenav-link.entry.js +3 -3
- package/esm/{pn-sidenav-store-6f25eef9.js → pn-sidenav-store-f0db4a1f.js} +1 -1
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_2.entry.js +1 -1
- package/esm/polyfills/css-shim.js +1 -1
- package/esm-es5/{MarketWebContextService-ab7796c6.js → FetchHelper-41adaded.js} +1 -1
- package/esm-es5/MarketWebLoginManager-3bb0a307.js +1 -0
- package/esm-es5/{convert-b49a0857.js → convert-ae809f9c.js} +1 -1
- package/esm-es5/index-70b099b5.js +1 -0
- package/esm-es5/{index-94746173.js → index-d3007e8f.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -0
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-filter-search.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -0
- package/esm-es5/pn-find-price-store-24d31717.js +1 -0
- package/esm-es5/pn-find-price.entry.js +1 -0
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -0
- package/esm-es5/{pn-find-service-and-price-store-2ddc6cfa.js → pn-find-service-and-price-store-012f2e49.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-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-c14ad7e8.js → pn-mainnav-store-395ee066.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -0
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/{pn-product-pricelist-store-a287a3f5.js → pn-product-pricelist-store-909c5238.js} +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile_3.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -0
- package/esm-es5/pn-profile-selector.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-6f25eef9.js → pn-sidenav-store-f0db4a1f.js} +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_2.entry.js +1 -1
- package/package.json +12 -10
- package/pn-market-web-components/{p-cce32042.entry.js → p-00d6033e.entry.js} +1 -1
- package/pn-market-web-components/{p-7d92e5c7.system.entry.js → p-0b796318.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4d6fce0c.js → p-0d61dd29.js} +1 -1
- package/pn-market-web-components/{p-91624bd5.system.js → p-0ea97ca0.system.js} +2 -2
- package/pn-market-web-components/{p-0d975e39.entry.js → p-0eef21d9.entry.js} +1 -1
- package/pn-market-web-components/p-1060d686.system.entry.js +1 -0
- package/pn-market-web-components/p-15836764.js +1 -0
- package/pn-market-web-components/{p-942f590f.entry.js → p-1ccd3831.entry.js} +1 -1
- package/pn-market-web-components/p-23fc4303.system.entry.js +1 -0
- package/pn-market-web-components/{p-789e1b30.js → p-24df62a2.js} +1 -1
- package/pn-market-web-components/{p-043f460c.system.entry.js → p-2b120338.system.entry.js} +1 -1
- package/pn-market-web-components/{p-38ff23f5.entry.js → p-2b34c4bd.entry.js} +1 -1
- package/pn-market-web-components/p-2c361d9e.system.entry.js +1 -0
- package/pn-market-web-components/p-31ecebd2.system.js +1 -0
- package/pn-market-web-components/p-3552ae09.entry.js +1 -0
- package/pn-market-web-components/p-37e26384.system.entry.js +1 -0
- package/pn-market-web-components/p-3826548d.system.entry.js +1 -0
- package/pn-market-web-components/{p-21463fc1.system.entry.js → p-38e0dc75.system.entry.js} +1 -1
- package/pn-market-web-components/{p-478ac9b4.system.entry.js → p-39760c45.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c127e22c.system.entry.js → p-3ae3eda4.system.entry.js} +1 -1
- package/pn-market-web-components/p-3ba257c5.entry.js +1 -0
- package/pn-market-web-components/{p-02a985d9.system.entry.js → p-3f8b459a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-eb049e9d.system.entry.js → p-42da096a.system.entry.js} +1 -1
- package/pn-market-web-components/p-45bb8f15.entry.js +1 -0
- package/pn-market-web-components/{p-1611123a.system.entry.js → p-48d29c10.system.entry.js} +1 -1
- package/pn-market-web-components/p-4c9b1ae9.system.js +1 -0
- package/pn-market-web-components/{p-b8af690a.entry.js → p-4d5aa13e.entry.js} +1 -1
- package/pn-market-web-components/{p-1caf4231.system.entry.js → p-4f0f8e9f.system.entry.js} +1 -1
- package/pn-market-web-components/p-518b1864.entry.js +1 -0
- package/pn-market-web-components/{p-dde2cf1c.entry.js → p-544f8fb9.entry.js} +1 -1
- package/pn-market-web-components/p-55513980.system.js +1 -0
- package/pn-market-web-components/{p-77d43e30.entry.js → p-56ba3951.entry.js} +1 -1
- package/pn-market-web-components/p-5cfed9ad.js +1 -0
- package/pn-market-web-components/p-5d34bb8f.system.entry.js +1 -0
- package/pn-market-web-components/p-6423bacf.js +1 -0
- package/pn-market-web-components/{p-a25fc106.entry.js → p-66fb0f57.entry.js} +1 -1
- package/pn-market-web-components/p-69b751a8.system.entry.js +1 -0
- package/pn-market-web-components/{p-98bc5c17.system.js → p-6fea1ae6.system.js} +1 -1
- package/pn-market-web-components/{p-12297437.system.entry.js → p-702f06b7.system.entry.js} +1 -1
- package/pn-market-web-components/p-71a31b15.entry.js +1 -0
- package/pn-market-web-components/p-7a7f380b.system.js +1 -0
- package/pn-market-web-components/{p-26f72169.system.js → p-7ce21cb3.system.js} +1 -1
- package/pn-market-web-components/p-7fca7510.entry.js +1 -0
- package/pn-market-web-components/{p-b7fdc5cb.system.entry.js → p-802afa1f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-52787ac9.entry.js → p-8325d608.entry.js} +1 -1
- package/pn-market-web-components/p-87a4810e.system.entry.js +1 -0
- package/pn-market-web-components/{p-020f1667.js → p-99e471b8.js} +1 -1
- package/pn-market-web-components/p-9aac6bd5.entry.js +1 -0
- package/pn-market-web-components/{p-21e0e386.js → p-9adc3940.js} +1 -1
- package/pn-market-web-components/{p-4832a520.js → p-9ae8e043.js} +1 -1
- package/pn-market-web-components/p-a439468a.system.entry.js +1 -0
- package/pn-market-web-components/{p-d1053abf.entry.js → p-ab699e09.entry.js} +1 -1
- package/pn-market-web-components/{p-a37ea453.entry.js → p-ac5a749b.entry.js} +1 -1
- package/pn-market-web-components/{p-9860fea8.system.js → p-ac917958.system.js} +1 -1
- package/pn-market-web-components/p-acd9d186.system.entry.js +1 -0
- package/pn-market-web-components/{p-3359dac6.js → p-ad5b20ce.js} +1 -1
- package/pn-market-web-components/{p-772c078c.entry.js → p-aea09ac6.entry.js} +1 -1
- package/pn-market-web-components/p-b425e079.system.entry.js +1 -0
- package/pn-market-web-components/{p-33cefc5e.system.entry.js → p-b4a0e5fd.system.entry.js} +1 -1
- package/pn-market-web-components/p-b4b6ab95.system.js +1 -0
- package/pn-market-web-components/{p-915cef83.system.js → p-b4f843da.system.js} +1 -1
- package/pn-market-web-components/p-c799bf36.entry.js +1 -0
- package/pn-market-web-components/{p-ec0adffe.js → p-cf516409.js} +0 -0
- package/pn-market-web-components/p-cfe1550c.entry.js +1 -0
- package/pn-market-web-components/{p-02c8dcd0.entry.js → p-d26967cb.entry.js} +1 -1
- package/pn-market-web-components/{p-53e14b27.entry.js → p-d546d0c3.entry.js} +1 -1
- package/pn-market-web-components/{p-0ba9ae69.system.entry.js → p-e732c60a.system.entry.js} +1 -1
- package/pn-market-web-components/p-f1c3003f.entry.js +1 -0
- package/pn-market-web-components/p-ff678bef.system.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -1
- package/types/components/navigation/pn-profile-selector/pn-profile-selector-option.d.ts +7 -0
- package/types/components/navigation/pn-profile-selector/pn-profile-selector-types.d.ts +1 -1
- package/types/components/navigation/pn-profile-selector/pn-profile-selector.d.ts +1 -10
- package/types/components/navigation/pn-profile-selector/translations.d.ts +5 -5
- package/types/components/widgets/pn-find-price/pn-find-price-result.d.ts +9 -0
- package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +35 -0
- package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +73 -0
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +51 -0
- package/types/components/widgets/pn-find-price/pn-find-price.d.ts +16 -0
- package/types/components/widgets/pn-product-card/pn-product-card-info.d.ts +7 -0
- package/types/components/widgets/pn-product-card/pn-product-card-price.d.ts +8 -0
- package/types/components/widgets/pn-product-card/pn-product-card.d.ts +3 -0
- package/types/components.d.ts +113 -2
- package/types/globals/MarketWebLoginManager.d.ts +3 -1
- package/types/stencil-public-runtime.d.ts +6 -4
- package/cjs/FetchHelper-f80943bf.js +0 -87
- package/esm/FetchHelper-a0c8aa54.js +0 -85
- package/esm-es5/FetchHelper-a0c8aa54.js +0 -1
- package/esm-es5/MarketWebLoginManager-310d2552.js +0 -1
- package/esm-es5/index-b26d0794.js +0 -1
- package/esm-es5/pn-choice-button_2.entry.js +0 -1
- package/pn-market-web-components/p-038b8060.system.js +0 -1
- package/pn-market-web-components/p-2456901a.js +0 -1
- package/pn-market-web-components/p-2e6644ea.system.entry.js +0 -1
- package/pn-market-web-components/p-37801e32.entry.js +0 -1
- package/pn-market-web-components/p-3cf489ac.js +0 -1
- package/pn-market-web-components/p-5510f188.system.js +0 -1
- package/pn-market-web-components/p-5f8ef634.entry.js +0 -1
- package/pn-market-web-components/p-861210ae.entry.js +0 -1
- package/pn-market-web-components/p-93d8620b.entry.js +0 -1
- package/pn-market-web-components/p-97dc5687.js +0 -1
- package/pn-market-web-components/p-a22df959.system.js +0 -1
- package/pn-market-web-components/p-a5284c78.entry.js +0 -1
- package/pn-market-web-components/p-cec6130e.system.js +0 -1
- package/pn-market-web-components/p-d133f30d.system.entry.js +0 -1
- package/pn-market-web-components/p-d6a17042.system.js +0 -1
- package/pn-market-web-components/p-da370548.system.entry.js +0 -1
- package/pn-market-web-components/p-e04f8d34.system.entry.js +0 -1
- package/pn-market-web-components/p-e6a209c6.system.entry.js +0 -1
- package/pn-market-web-components/p-ec1127de.system.entry.js +0 -1
- package/pn-market-web-components/p-f1311662.system.js +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-9027dc96.js');
|
|
4
|
+
|
|
5
|
+
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
6
|
+
const { state, onChange } = index.createStore({
|
|
7
|
+
i18n: {
|
|
8
|
+
componentheading: '',
|
|
9
|
+
deliveryscopeheading: '',
|
|
10
|
+
sizeheading: '',
|
|
11
|
+
resultlistheading: '',
|
|
12
|
+
weightlabel: '',
|
|
13
|
+
maxweightlabel: '',
|
|
14
|
+
maxmeasurementlabel: '',
|
|
15
|
+
senddirectcta: '',
|
|
16
|
+
stampshopcta: '',
|
|
17
|
+
message: ''
|
|
18
|
+
},
|
|
19
|
+
market: {
|
|
20
|
+
currency: ""
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
exports.state = state;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const convert = require('./convert-362ef5e6.js');
|
|
7
|
+
const pnFindPriceStore = require('./pn-find-price-store-346abc1a.js');
|
|
8
|
+
require('./index-9027dc96.js');
|
|
9
|
+
|
|
10
|
+
const translations = {
|
|
11
|
+
'sv': {
|
|
12
|
+
'componentheading': 'Vad vill du skicka?',
|
|
13
|
+
'deliveryscopeheading': 'Endast leveranser inom Sverige',
|
|
14
|
+
'sizeheading': 'Hur mycket väger det?',
|
|
15
|
+
'resultlistheading': 'Några utvalda val',
|
|
16
|
+
'weightlabel': 'Vikt',
|
|
17
|
+
'maxweightlabel': 'Maxvikt',
|
|
18
|
+
'maxmeasurementlabel': 'Maxvolym',
|
|
19
|
+
'senddirectcta': 'Köp portokod online',
|
|
20
|
+
'stampshopcta': 'Beställ fysiska frimärken',
|
|
21
|
+
'message': '*Vid köp hos valfritt ombud'
|
|
22
|
+
},
|
|
23
|
+
'en': {
|
|
24
|
+
'componentheading': 'What do you want to send?',
|
|
25
|
+
'deliveryscopeheading': 'Deliveries within Sweden only',
|
|
26
|
+
'sizeheading': 'How much does it weigh?',
|
|
27
|
+
'resultlistheading': 'Some suitable options for you',
|
|
28
|
+
'weightlabel': 'Weight',
|
|
29
|
+
'maxweightlabel': 'Max weight',
|
|
30
|
+
'maxmeasurementlabel': 'Maximum measurement',
|
|
31
|
+
'senddirectcta': 'Buy postcode online',
|
|
32
|
+
'stampshopcta': 'Order physical stamps',
|
|
33
|
+
'message': 'When buying from any agent'
|
|
34
|
+
},
|
|
35
|
+
'da': {
|
|
36
|
+
'componentheading': 'Vad vill du skicka?',
|
|
37
|
+
'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
|
|
38
|
+
'sizeheading': 'How much does it weigh?',
|
|
39
|
+
'resultlistheading': 'Some suitable options for you',
|
|
40
|
+
'weightlabel': 'Vægt',
|
|
41
|
+
'maxweightlabel': 'Max vægt',
|
|
42
|
+
'maxmeasurementlabel': 'Maks. Volumen',
|
|
43
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
44
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
45
|
+
},
|
|
46
|
+
'no': {
|
|
47
|
+
'componentheading': 'Vad vill du skicka?',
|
|
48
|
+
'deliveryscopeheading': 'Kun leveranser innen Sverige',
|
|
49
|
+
'sizeheading': 'How much does it weigh?',
|
|
50
|
+
'resultlistheading': 'Some suitable options for you',
|
|
51
|
+
'weightlabel': 'Vekt',
|
|
52
|
+
'maxweightlabel': 'Maks vekt',
|
|
53
|
+
'maxmeasurementlabel': 'Maks volum',
|
|
54
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
55
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
56
|
+
},
|
|
57
|
+
'fi': {
|
|
58
|
+
'componentheading': 'Vad vill du skicka?',
|
|
59
|
+
'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
|
|
60
|
+
'sizeheading': 'How much does it weigh?',
|
|
61
|
+
'resultlistheading': 'Some suitable options for you',
|
|
62
|
+
'weightlabel': 'Paino',
|
|
63
|
+
'maxweightlabel': 'Max paino',
|
|
64
|
+
'maxmeasurementlabel': 'Max äänenvoimakkuus',
|
|
65
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
66
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const markets = {
|
|
70
|
+
'se': {
|
|
71
|
+
"currency": "kr",
|
|
72
|
+
},
|
|
73
|
+
'dk': {
|
|
74
|
+
"currency": "dk",
|
|
75
|
+
},
|
|
76
|
+
'fi': {
|
|
77
|
+
"currency": " €",
|
|
78
|
+
},
|
|
79
|
+
'no': {
|
|
80
|
+
"currency": "kr",
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const sizeCategories = [
|
|
85
|
+
{ name: "Dokument eller paket upp till 2 kg", value: "upto2kg", illustration: "package-letter-calendar", unit: "2kg", maxWeight:2 },
|
|
86
|
+
{ name: "Större paket M-L upp till 5 kg", value: "upto5kg", illustration: "packages-in-a-pile", unit: "5kg", maxWeight:5},
|
|
87
|
+
{ name: "Tyngre paket upp till 20 kg", value: "upto20kg", illustration: "scale-package-16-abroad", unit: "20kg", maxWeight: 20 },
|
|
88
|
+
];
|
|
89
|
+
|
|
90
|
+
const weights = {
|
|
91
|
+
"2kg": [
|
|
92
|
+
{ name: "50g", abbreviation: 'g', value: 50 },
|
|
93
|
+
{ name: "100g", abbreviation: 'g', value: 100 },
|
|
94
|
+
{ name: "250g", abbreviation: 'g', value: 250 },
|
|
95
|
+
{ name: "500g", abbreviation: 'g', value: 500 },
|
|
96
|
+
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
97
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
98
|
+
],
|
|
99
|
+
"5kg": [
|
|
100
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
101
|
+
{ name: "3kg", abbreviation: 'kg', value: 3 },
|
|
102
|
+
{ name: "4kg", abbreviation: 'kg', value: 4 },
|
|
103
|
+
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
104
|
+
],
|
|
105
|
+
"20kg": [
|
|
106
|
+
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
107
|
+
{ name: "6kg", abbreviation: 'kg', value: 6 },
|
|
108
|
+
{ name: "7Kg", abbreviation: 'kg', value: 7 },
|
|
109
|
+
{ name: "8kg", abbreviation: 'kg', value: 8 },
|
|
110
|
+
{ name: "9kg", abbreviation: 'kg', value: 9 },
|
|
111
|
+
{ name: "10kg", abbreviation: 'kg', value: 10 },
|
|
112
|
+
{ name: "11kg", abbreviation: 'kg', value: 11 },
|
|
113
|
+
{ name: "12kg", abbreviation: 'kg', value: 12 },
|
|
114
|
+
{ name: "13kg", abbreviation: 'kg', value: 13 },
|
|
115
|
+
{ name: "14kg", abbreviation: 'kg', value: 14 },
|
|
116
|
+
{ name: "15kg", abbreviation: 'kg', value: 15 },
|
|
117
|
+
{ name: "16kg", abbreviation: 'kg', value: 16 },
|
|
118
|
+
{ name: "17kg", abbreviation: 'kg', value: 17 },
|
|
119
|
+
{ name: "18kg", abbreviation: 'kg', value: 18 },
|
|
120
|
+
{ name: "20kg", abbreviation: 'kg', value: 20 },
|
|
121
|
+
]
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const pnFindPriceCss = "pn-find-price .findprice-form{max-width:50em;margin:0 auto}pn-find-price h2,pn-find-price .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-find-price .sizecategory{text-align:center;margin-bottom:3rem;font-size:0.9em}pn-find-price .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-find-price .weightoption-input{width:5em;position:relative}pn-find-price .weightoption-input input::-webkit-outer-spin-button,pn-find-price .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-find-price .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-find-price .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-find-price .weightoption-range input{width:calc(100% - 1.5em)}pn-find-price .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-find-price .resultlist{margin:3em 0}";
|
|
125
|
+
|
|
126
|
+
let PnfindPrice = class {
|
|
127
|
+
constructor(hostRef) {
|
|
128
|
+
index.registerInstance(this, hostRef);
|
|
129
|
+
this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice.xlsx";
|
|
130
|
+
this.language = "sv";
|
|
131
|
+
this.market = "se";
|
|
132
|
+
this.filteredItems = [];
|
|
133
|
+
this.weight = { value: 0, name: "" };
|
|
134
|
+
this.weightvalue = 0;
|
|
135
|
+
this.sourceData = { types: [], data: [] };
|
|
136
|
+
this.sizecategory = { value: "", name: "", icon: "", unit: "" };
|
|
137
|
+
}
|
|
138
|
+
componentWillLoad() {
|
|
139
|
+
this.setState();
|
|
140
|
+
this.getDataSource();
|
|
141
|
+
}
|
|
142
|
+
async getDataSource() {
|
|
143
|
+
const cacheBusting = `?cache=${Math.floor(Math.random() * (10000 - 1) + 1)}`;
|
|
144
|
+
const req = await fetch(this.source + cacheBusting);
|
|
145
|
+
const reqbody = await req.blob();
|
|
146
|
+
try {
|
|
147
|
+
const convertedData = await convert.convertFileForSizeCategogy(reqbody);
|
|
148
|
+
this.sourceData = convertedData;
|
|
149
|
+
this.filterItems();
|
|
150
|
+
}
|
|
151
|
+
catch (e) {
|
|
152
|
+
console.log('Unable to parse data');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
setState() {
|
|
156
|
+
if (this.market) {
|
|
157
|
+
pnFindPriceStore.state.market = markets[this.market];
|
|
158
|
+
}
|
|
159
|
+
if (this.language && translations[this.language]) {
|
|
160
|
+
pnFindPriceStore.state.i18n = translations[this.language];
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
filterItems() {
|
|
164
|
+
var _a;
|
|
165
|
+
if (!((_a = this.sourceData) === null || _a === void 0 ? void 0 : _a.data)) {
|
|
166
|
+
console.log('Data has not yet been loaded');
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope === "Sweden");
|
|
170
|
+
if (!this.sizecategory) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory === this.sizecategory.value);
|
|
174
|
+
if (!this.weight || !this.weight.value) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const comparisonWeight = this.weight.value <= 20 ? this.weight.value * 1000 : this.weight.value;
|
|
178
|
+
let weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) === comparisonWeight);
|
|
179
|
+
// if no value found select the next available value
|
|
180
|
+
if (weightFilteredData.length === 0) {
|
|
181
|
+
weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) >= comparisonWeight);
|
|
182
|
+
if (weightFilteredData.length > 0) {
|
|
183
|
+
//sort based on the maxvalue
|
|
184
|
+
weightFilteredData.sort((a, b) => { return (a.maxweight - b.maxweight); });
|
|
185
|
+
// map to get the next unique item
|
|
186
|
+
const uniqueWeightOptions = [...new Map(weightFilteredData.reverse().map(item => [item["id"], item])).values()];
|
|
187
|
+
if (uniqueWeightOptions.length > 0) {
|
|
188
|
+
weightFilteredData = uniqueWeightOptions;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
weightFilteredData.sort((a, b) => {
|
|
193
|
+
var rankA = a.highestrankusp ? a.highestrankusp.toLowerCase() : "z";
|
|
194
|
+
var rankB = b.highestrankusp ? b.highestrankusp.toLowerCase() : "z";
|
|
195
|
+
return (rankA.localeCompare(rankB));
|
|
196
|
+
});
|
|
197
|
+
this.filteredItems = weightFilteredData;
|
|
198
|
+
}
|
|
199
|
+
render() {
|
|
200
|
+
return (index.h("div", null, index.h("div", { class: "findprice-form" }, index.h("div", null, (index.h("div", { class: "heading" }, pnFindPriceStore.state.i18n.deliveryscopeheading))), index.h("div", null, (index.h("div", { class: "heading" }, pnFindPriceStore.state.i18n.componentheading)), index.h("div", { class: "sizecategory" }, sizeCategories.map((sizeCategory) => (index.h("pn-choice-button", { choiceid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", type: "radio", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
|
|
201
|
+
this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
|
|
202
|
+
if (this.weight.value === 0) {
|
|
203
|
+
this.weight = weights[this.sizecategory.unit][0];
|
|
204
|
+
this.weightvalue = this.weight.value;
|
|
205
|
+
}
|
|
206
|
+
} }, index.h("pn-illustration", { illustration: sizeCategory.illustration }), " ", sizeCategory.name))))), (this.sizecategory.value && weights[this.sizecategory.unit]) ? (index.h("div", null, (pnFindPriceStore.state.i18n.sizeheading) ? (index.h("div", { class: "heading" }, pnFindPriceStore.state.i18n.sizeheading)) : null, index.h("div", { class: "weightoption" }, index.h("div", { class: "weightoption-input" }, index.h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: pnFindPriceStore.state.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
|
|
207
|
+
if (e && e.target && e.target.value) {
|
|
208
|
+
const weightNum = parseInt(e.target.value, 10);
|
|
209
|
+
if (!isNaN(weightNum)) {
|
|
210
|
+
let matchingWeights = weights[this.sizecategory.unit].filter((x) => {
|
|
211
|
+
let weightInGrams = (x.abbreviation === "kg") ? x.value * 1000 : x.value;
|
|
212
|
+
return weightInGrams >= weightNum;
|
|
213
|
+
});
|
|
214
|
+
if (matchingWeights && matchingWeights.length > 0) {
|
|
215
|
+
this.weight = matchingWeights[0];
|
|
216
|
+
this.weightvalue = this.weight.value;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
} }), index.h("span", { class: "weightoption-input-abbreviation" }, this.weight.abbreviation)), index.h("div", { class: "weightoption-range" }, index.h("input", { type: "range", id: "weightrange", name: "weightrange", list: "weightlist", value: (!this.weight.value) ? 0 : weights[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), onChange: (e) => {
|
|
221
|
+
const value = e.target.value;
|
|
222
|
+
this.weight = weights[this.sizecategory.unit][value];
|
|
223
|
+
this.weightvalue = this.weight.value;
|
|
224
|
+
}, min: "0",
|
|
225
|
+
// max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }
|
|
226
|
+
max: weights[this.sizecategory.unit].length - 1 }), index.h("datalist", { id: "weightlist" }, weights[this.sizecategory.unit].map((weight, weightindex) => {
|
|
227
|
+
let labelText = weight.name;
|
|
228
|
+
if (weights[this.sizecategory.unit].length > 6) {
|
|
229
|
+
labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.sizecategory.unit].length - 1) ? weight.name : '';
|
|
230
|
+
}
|
|
231
|
+
return (index.h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
|
|
232
|
+
})))))) : null), (this.filteredItems && this.filteredItems.length > 0) ? (index.h("div", { class: "resultlist" }, (pnFindPriceStore.state.i18n.resultlistheading) ? (index.h("div", { class: "heading" }, pnFindPriceStore.state.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (index.h("div", null, index.h("pn-find-price-result", { item: item })))))) : null));
|
|
233
|
+
}
|
|
234
|
+
static get watchers() { return {
|
|
235
|
+
"market": ["setState"],
|
|
236
|
+
"language": ["setState"],
|
|
237
|
+
"weightvalue": ["filterItems"],
|
|
238
|
+
"sizecategory": ["filterItems"]
|
|
239
|
+
}; }
|
|
240
|
+
};
|
|
241
|
+
PnfindPrice.style = pnFindPriceCss;
|
|
242
|
+
|
|
243
|
+
exports.pn_find_price = PnfindPrice;
|
package/cjs/{pn-choice-button_2.cjs.entry.js → pn-find-service-and-price-result.cjs.entry.js}
RENAMED
|
@@ -2,41 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const pnFindServiceAndPriceStore = require('./pn-find-service-and-price-store-
|
|
7
|
-
require('./index-
|
|
8
|
-
|
|
9
|
-
const pnChoiceButtonCss = "pn-choice-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative;margin:0.2em 0.4em}pn-choice-button input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-button label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0.4rem 0.8rem;border:0.1rem solid #D3CECB;color:#005D92;font-weight:500;border-radius:0.8rem;text-align:center;cursor:pointer;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s;transition:background 0.2s, -webkit-box-shadow 0.1s;transition:box-shadow 0.1s, background 0.2s;transition:box-shadow 0.1s, background 0.2s, -webkit-box-shadow 0.1s}pn-choice-button label pn-illustration{display:inline-block;width:3rem;height:3rem;margin-right:0.9rem}pn-choice-button>input:checked+label.pn-choice-button{background:#E0F8FF;color:#005D92;border-color:#005D92;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13)}pn-choice-button>input:indeterminate+label.pn-choice-button{background:#FFFFFF;color:#005D92}pn-choice-button>input:hover+label.pn-choice-button{background:#E0F8FF}pn-choice-button>input:focus+label.pn-choice-button,pn-choice-button>input:active+label.pn-choice-button{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-choice-button>input:active+label.pn-choice-button{background:#8EDDF9}pn-choice-button>input:disabled+label.pn-choice-button{background-color:#D3CECB}pn-choice-button>input:checked+label.pn-choice-button:hover{background:#8EDDF9}pn-choice-button>input:checked+label.pn-choice-button:active{background:#8EDDF9;border:0.1rem solid #00A0D6}";
|
|
10
|
-
|
|
11
|
-
let PnChoiceButton = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.type = "checkbox";
|
|
15
|
-
this.disabled = false;
|
|
16
|
-
this.checked = false;
|
|
17
|
-
this.indeterminate = false;
|
|
18
|
-
}
|
|
19
|
-
handlechange() {
|
|
20
|
-
this.indeterminate = false;
|
|
21
|
-
}
|
|
22
|
-
componentDidLoad() {
|
|
23
|
-
this.checkAndSetIndeterminateState();
|
|
24
|
-
}
|
|
25
|
-
componentDidUpdate() {
|
|
26
|
-
this.checkAndSetIndeterminateState();
|
|
27
|
-
}
|
|
28
|
-
checkAndSetIndeterminateState() {
|
|
29
|
-
let checkbox = this.hostElement.querySelector(`#${this.choiceid}`);
|
|
30
|
-
if (checkbox) {
|
|
31
|
-
checkbox.indeterminate = this.indeterminate;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return (index.h(index.Host, null, index.h("input", { type: this.type, id: this.choiceid, value: this.value, name: this.name || this.choiceid, disabled: this.disabled, checked: this.checked }), index.h("label", { htmlFor: this.choiceid, class: "pn-choice-button" }, index.h("slot", null))));
|
|
36
|
-
}
|
|
37
|
-
get hostElement() { return index.getElement(this); }
|
|
38
|
-
};
|
|
39
|
-
PnChoiceButton.style = pnChoiceButtonCss;
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const pnFindServiceAndPriceStore = require('./pn-find-service-and-price-store-914d170b.js');
|
|
7
|
+
require('./index-9027dc96.js');
|
|
40
8
|
|
|
41
9
|
const pnFindServiceAndPriceResultCss = "";
|
|
42
10
|
|
|
@@ -74,5 +42,4 @@ let PnfindServiceAndPriceResult = class {
|
|
|
74
42
|
};
|
|
75
43
|
PnfindServiceAndPriceResult.style = pnFindServiceAndPriceResultCss;
|
|
76
44
|
|
|
77
|
-
exports.pn_choice_button = PnChoiceButton;
|
|
78
45
|
exports.pn_find_service_and_price_result = PnfindServiceAndPriceResult;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const convert = require('./convert-
|
|
7
|
-
const pnFindServiceAndPriceStore = require('./pn-find-service-and-price-store-
|
|
8
|
-
require('./index-
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const convert = require('./convert-362ef5e6.js');
|
|
7
|
+
const pnFindServiceAndPriceStore = require('./pn-find-service-and-price-store-914d170b.js');
|
|
8
|
+
require('./index-9027dc96.js');
|
|
9
9
|
|
|
10
10
|
const translations = {
|
|
11
11
|
'sv': {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const pnMainnavStore = require('./pn-mainnav-store-
|
|
7
|
-
const MarketWebLoginManager = require('./MarketWebLoginManager-
|
|
8
|
-
require('./index-
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const pnMainnavStore = require('./pn-mainnav-store-f8bacb50.js');
|
|
7
|
+
const MarketWebLoginManager = require('./MarketWebLoginManager-3c2f4423.js');
|
|
8
|
+
require('./index-9027dc96.js');
|
|
9
9
|
|
|
10
10
|
const translations$1 = {
|
|
11
11
|
'sv': {
|
|
@@ -355,7 +355,10 @@ let PnMarketwebSiteheaderLogin = class {
|
|
|
355
355
|
this.loginManager = new MarketWebLoginManager.MarketWebLoginManager({ endpoint: this.endpoint, eventTarget: this.hostElement });
|
|
356
356
|
this.hostElement["loginmanager"] = this.loginManager;
|
|
357
357
|
if (this.token) {
|
|
358
|
-
this.loginManager.registerToken(this.token);
|
|
358
|
+
this.loginManager.registerToken(this.token, 'backend');
|
|
359
|
+
}
|
|
360
|
+
else if (this.emitEvents) { // The primary login instance
|
|
361
|
+
this.loginManager.invalidateTokenOfType('backend');
|
|
359
362
|
}
|
|
360
363
|
this.hostElement.addEventListener(this.loginManager.events.loginstatechange, this.onLoginStateChange.bind(this));
|
|
361
364
|
this.init();
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const pnMainnavStore = require('./pn-mainnav-store-
|
|
7
|
-
require('./index-
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const pnMainnavStore = require('./pn-mainnav-store-f8bacb50.js');
|
|
7
|
+
require('./index-9027dc96.js');
|
|
8
8
|
|
|
9
9
|
const pnMainnavLinkCss = "pn-mainnav-link{display:block}pn-mainnav-link button,pn-mainnav-link a{font-weight:normal;position:relative;border:0 none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;color:#005D92}pn-mainnav-link button:hover,pn-mainnav-link button:focus,pn-mainnav-link a:hover,pn-mainnav-link a:focus{background-color:#FFFFFF;color:#005D92;outline:0;-webkit-box-shadow:none;box-shadow:none}pn-mainnav-link button:active,pn-mainnav-link a:active{background-color:#F3F2F2;color:#00A0D6;-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link{height:100%;padding-left:0;position:relative;scroll-snap-align:center}}[data-level=\"1\"] pn-mainnav-link:first-child{border-top:0.1rem solid #F3F2F2}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link:first-child{border:0}}[data-level=\"1\"] pn-mainnav-link>button,[data-level=\"1\"] pn-mainnav-link>a{font-size:2rem;width:100%;border-bottom:0.1rem solid #F3F2F2;height:auto;padding:1.9rem 0 1.9rem 3rem}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link>button,[data-level=\"1\"] pn-mainnav-link>a{height:100%;border:0;font-size:1.6rem;font-weight:normal;position:relative;outline:0;overflow:hidden;padding:1.6rem 1.6rem;white-space:nowrap}[data-level=\"1\"] pn-mainnav-link>button::before,[data-level=\"1\"] pn-mainnav-link>a::before{content:\"\";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}[data-level=\"1\"] pn-mainnav-link>button:hover::before,[data-level=\"1\"] pn-mainnav-link>button:focus::before,[data-level=\"1\"] pn-mainnav-link>a:hover::before,[data-level=\"1\"] pn-mainnav-link>a:focus::before{-webkit-transform:translateY(0);transform:translateY(0)}[data-level=\"1\"] pn-mainnav-link>button:active,[data-level=\"1\"] pn-mainnav-link>a:active{outline:0;-webkit-box-shadow:none;box-shadow:none;color:#005D92}[data-level=\"1\"] pn-mainnav-link>button:active::before,[data-level=\"1\"] pn-mainnav-link>a:active::before{background-color:#8EDDF9;-webkit-transform:translateY(0);transform:translateY(0)}}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link>button:hover,[data-level=\"1\"] pn-mainnav-link>button:focus,[data-level=\"1\"] pn-mainnav-link>a:hover,[data-level=\"1\"] pn-mainnav-link>a:focus{text-decoration:none}}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link>button[aria-expanded=true]::before,[data-level=\"1\"] pn-mainnav-link>a[aria-expanded=true]::before{content:\"\";background-color:#00A0D6;position:absolute;bottom:0;left:0;width:100%;height:0.5em;border-radius:0.5em 0.5em 0 0;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:-webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92);transition:transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92), -webkit-transform 0.1s cubic-bezier(0.64, 0.01, 0.67, 0.92)}}[data-level=\"1\"] pn-mainnav-link [aria-expanded=true] .first-level_icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_icon{-webkit-transition:0.25s linear transform;transition:0.25s linear transform;width:1.92rem;height:1.92rem;display:none}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_icon{display:block}}[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_arrow{display:block;position:absolute;height:2.4rem;width:2.4rem;right:2.4rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media screen and (min-width: 64em){[data-level=\"1\"] pn-mainnav-link pn-icon.first-level_arrow{display:none}}[data-level=\"1\"] pn-mainnav-link pn-icon svg{pointer-events:none;speak:none;width:100%;height:100%}@media screen and (min-width: 64em){pn-mainnav-level[data-level=\"2\"]:not([data-level-listcount=\"1\"]) pn-mainnav-list:last-child pn-mainnav-link>a{min-width:unset}}[data-level=\"2\"] pn-mainnav-link{position:static;display:inline-block;width:100%;height:auto}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link{padding-left:0;margin-bottom:1.6rem}}[data-level=\"2\"] pn-mainnav-link>a{font-size:1.6rem;border-bottom:0.1rem solid #F3F2F2;padding:2.2rem 0 2.2rem 3rem;white-space:normal}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link>a{min-width:16em;border:0;border-radius:1rem;padding:1.4rem 1.6rem}}[data-level=\"2\"] pn-mainnav-link>a:hover{background-color:#FFFFFF;color:#005D92}[data-level=\"2\"] pn-mainnav-link>a:hover,[data-level=\"2\"] pn-mainnav-link>a:focus{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link>a:hover,[data-level=\"2\"] pn-mainnav-link>a:focus{background-color:#F3F2F2;color:#005D92;text-decoration:underline;outline:0}}[data-level=\"2\"] pn-mainnav-link>a:hover::before,[data-level=\"2\"] pn-mainnav-link>a:focus::before{content:none}[data-level=\"2\"] pn-mainnav-link>a:active{-webkit-box-shadow:none;box-shadow:none}@media screen and (min-width: 64em){[data-level=\"2\"] pn-mainnav-link>a:active{background-color:#F3F2F2;color:#00A0D6;outline:0}}[data-level=\"2\"] pn-mainnav-link>a:active::before{content:none}[data-level=\"2\"] pn-mainnav-link pn-icon{display:inline-block;margin-left:0.2em;min-width:1.5rem;width:1.5rem;height:1.5rem}";
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-0a6b1eef.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.14.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
{
|
|
@@ -55,5 +55,5 @@ const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
patchBrowser().then(options => {
|
|
58
|
-
return index.bootstrapLazy([["pn-marketweb-siteheader.cjs",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-service-and-price.cjs",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist.cjs",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-marketweb-sitefooter.cjs",[[0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar.cjs",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-filter-checkbox.cjs",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-filter-search.cjs",[[1,"pn-filter-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4]},[[0,"input","inputHandler"]]]]],["pn-pex-pricefinder.cjs",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-profile-selector.cjs",[[
|
|
58
|
+
return index.bootstrapLazy([["pn-marketweb-siteheader.cjs",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price.cjs",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price.cjs",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist.cjs",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-marketweb-sitefooter.cjs",[[0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar.cjs",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-filter-checkbox.cjs",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-filter-search.cjs",[[1,"pn-filter-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4]},[[0,"input","inputHandler"]]]]],["pn-pex-pricefinder.cjs",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-profile-selector.cjs",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option.cjs",[[0,"pn-profile-selector-option",{"name":[1],"identifier":[1],"url":[1]}]]],["pn-sidenav.cjs",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level.cjs",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link.cjs",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-find-price-result.cjs",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-find-service-and-price-result.cjs",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-product-pricelist-result.cjs",[[0,"pn-product-pricelist-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level.cjs",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-site-footer_2.cjs",[[4,"pn-site-footer",{"url":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button.cjs",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link.cjs",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-product-card_3.cjs",[[4,"pn-product-card"],[0,"pn-product-card-info",{"rulle":[1],"paket":[1],"label":[1],"text":[1]}],[0,"pn-product-card-price",{"label":[1],"amount":[1],"currency":[1],"note":[1],"url":[1]}]]],["pn-language-selector_9.cjs",[[4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}],[4,"pn-language-selector",{"value":[1537],"selectedLanguageName":[32],"options":[32],"i18n":[32]}],[0,"pn-language-selector-option",{"name":[1],"code":[1],"url":[1],"selected":[4],"currentLanguage":[1,"current-language"]}],[4,"pn-mainnav",{"market":[1],"language":[1],"navigationId":[1,"navigation-id"],"openMenu":[1028,"open-menu"],"navLabel":[1,"nav-label"]},[[0,"language","setLanguage"],[0,"market","setMarket"],[0,"menuLanguageChange","onLanguageChange"],[0,"setmenuopenstate","setMenuOpenState"],[0,"openMenuLevelChange","onOpenMenuLevelChange"]]],[4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}],[0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"loginManager":[32],"loggedIn":[32],"toggleButtonText":[32],"username":[32]}],[0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"search":[1040]}],[4,"pn-site-selector",{"buttontext":[1537],"heading":[1537],"language":[1537],"i18n":[32]}],[0,"pn-site-selector-item",{"url":[1],"heading":[1],"description":[1],"newwindow":[4]}]]],["pn-product-tile_3.cjs",[[4,"pn-product-tile"],[0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}],[0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]]]], options);
|
|
59
59
|
});
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const FetchHelper = require('./FetchHelper-f80943bf.js');
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const FetchHelper = require('./FetchHelper-fb0de0d3.js');
|
|
8
7
|
|
|
9
8
|
const translations = {
|
|
10
9
|
'sv': {
|
|
@@ -82,7 +81,7 @@ let PnMarketwebSiteheader = class {
|
|
|
82
81
|
}
|
|
83
82
|
async setInitialValues(href = window.location.href) {
|
|
84
83
|
var _a;
|
|
85
|
-
const marketWebContextService = new
|
|
84
|
+
const marketWebContextService = new FetchHelper.MarketWebContextService(href);
|
|
86
85
|
if (!this.market) {
|
|
87
86
|
const resolvedMarket = await marketWebContextService.getMarket();
|
|
88
87
|
this.market = resolvedMarket;
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const MarketWebLoginManager = require('./MarketWebLoginManager-
|
|
8
|
-
const FetchHelper = require('./FetchHelper-f80943bf.js');
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const FetchHelper = require('./FetchHelper-fb0de0d3.js');
|
|
7
|
+
const MarketWebLoginManager = require('./MarketWebLoginManager-3c2f4423.js');
|
|
9
8
|
|
|
10
9
|
const translations = {
|
|
11
10
|
'sv': {
|
|
@@ -118,7 +117,7 @@ let PnMarketwebSiteheader = class {
|
|
|
118
117
|
}
|
|
119
118
|
async setInitialValues(href = window.location.href) {
|
|
120
119
|
var _a;
|
|
121
|
-
const marketWebContextService = new
|
|
120
|
+
const marketWebContextService = new FetchHelper.MarketWebContextService(href);
|
|
122
121
|
if (!this.market) {
|
|
123
122
|
const resolvedMarket = await marketWebContextService.getMarket();
|
|
124
123
|
this.market = resolvedMarket;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
|
|
7
|
+
const pnProductCardCss = "pn-product-card{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-card [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.5em}pn-product-card [slot=content] h3>[slot=Biligast]{font-size:0.6em;background:#005E41;color:white;border-radius:0.37em;width:4em;line-height:2em;text-align:center;margin-left:0.6em;font-weight:normal}pn-product-card [slot=content] h3>[slot=Snabbast]{font-size:0.6em;background:#005D92;color:white;border-radius:0.37em;width:5em;line-height:2em;text-align:center;vertical-align:bottom;margin-left:0.6em;font-weight:normal}pn-product-card [slot=additionalUSP]{font-size:0.6em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-card .cardcontent{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-card .cardprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-card .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";
|
|
8
|
+
|
|
9
|
+
let PnProductCard = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (index.h(index.Host, null, index.h("slot", { name: "illustration" }), index.h("div", { class: "cardcontent" }, index.h("div", { class: "details" }, index.h("slot", { name: "content" }), index.h("div", { class: "info" }, index.h("slot", null)), index.h("slot", { name: "note" }), index.h("slot", { name: "additionalUSP" })), index.h("div", { class: "cardprice" }, index.h("div", null, index.h("slot", { name: "price" }), index.h("slot", { name: "sendDirectPrice" }), index.h("slot", { name: "stampPrice" }))))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
PnProductCard.style = pnProductCardCss;
|
|
18
|
+
|
|
19
|
+
const pnProductCardInfoCss = "pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em}.cardinfocontent>div{margin:10px}[slot=formatPre]{font-size:1em;font-family:\"PostNordSans\", \"Verdana\"}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
|
|
20
|
+
|
|
21
|
+
let PnProductCardInfo = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
index.registerInstance(this, hostRef);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (this.label) ? (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, (this.text) ? (index.h("pre", { slot: "formatPre" }, this.text)) : null))) : (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, index.h("div", null, index.h("h4", null, "Paket:"), index.h("pre", { slot: "formatPre" }, this.paket)), index.h("div", null, index.h("h4", null, "Rulle:"), index.h("pre", { slot: "formatPre" }, this.rulle)))));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
index.h("pn-icon", { symbol: "align-center", small: "false", color: "black" });
|
|
30
|
+
PnProductCardInfo.style = pnProductCardInfoCss;
|
|
31
|
+
|
|
32
|
+
const pnProductCardPriceCss = "pn-product-card-price{margin-top:1em;white-space:nowrap;text-align:center}pn-product-card-price span{font-size:1.25em}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-left:1.5em}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price pn-button{width:12.8em;margin-bottom:1em;margin-top:0.5em}pn-product-card-price p{font-weight:lighter;font-size:0.6em;-ms-flex-item-align:center;align-self:center;margin-top:0.5em}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";
|
|
33
|
+
|
|
34
|
+
let PnProductCardPrice = class {
|
|
35
|
+
constructor(hostRef) {
|
|
36
|
+
index.registerInstance(this, hostRef);
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
if (!this.amount) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
return (this.url) ? (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, this.currency)) : null, (this.note) ? (index.h("p", null, this.note)) : null), (this.label) ? (index.h("a", { href: this.url }, index.h("pn-button", { small: "true", icon: "arrow-right", appearance: "secondary" }, this.label))) : null)) : (index.h(index.Host, null, index.h("h3", null, (this.amount) ? (index.h("span", null, this.amount)) : null, (this.currency) ? (index.h("span", null, this.currency)) : null)));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
PnProductCardPrice.style = pnProductCardPriceCss;
|
|
46
|
+
|
|
47
|
+
exports.pn_product_card = PnProductCard;
|
|
48
|
+
exports.pn_product_card_info = PnProductCardInfo;
|
|
49
|
+
exports.pn_product_card_price = PnProductCardPrice;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const pnProductPricelistStore = require('./pn-product-pricelist-store-
|
|
7
|
-
require('./index-
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const pnProductPricelistStore = require('./pn-product-pricelist-store-d101b50e.js');
|
|
7
|
+
require('./index-9027dc96.js');
|
|
8
8
|
|
|
9
9
|
const pnProductPricelistResultCss = "";
|
|
10
10
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const convert = require('./convert-
|
|
7
|
-
const pnProductPricelistStore = require('./pn-product-pricelist-store-
|
|
8
|
-
require('./index-
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
|
+
const convert = require('./convert-362ef5e6.js');
|
|
7
|
+
const pnProductPricelistStore = require('./pn-product-pricelist-store-d101b50e.js');
|
|
8
|
+
require('./index-9027dc96.js');
|
|
9
9
|
|
|
10
10
|
const translations = {
|
|
11
11
|
'sv': {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0a6b1eef.js');
|
|
6
6
|
|
|
7
7
|
const pnProductTileCss = "pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-tile .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";
|
|
8
8
|
|