@postnord/pn-marketweb-components 1.0.44-beta1 → 1.0.44-beta2
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/loader.cjs.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +5 -15
- package/cjs/{pn-find-price-store-85b100ba.js → pn-find-price-store-d9aabecb.js} +1 -0
- package/cjs/pn-find-price.cjs.entry.js +48 -65
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +49 -0
- package/collection/collection-manifest.json +3 -0
- package/collection/components/widgets/pn-find-price/data.js +36 -62
- package/collection/components/widgets/pn-find-price/pn-find-price-result.css +6 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +18 -24
- package/collection/components/widgets/pn-find-price/pn-find-price-store.js +1 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +6 -4
- package/collection/components/widgets/pn-find-price/pn-find-price.css +1 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.js +5 -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/custom-elements/index.d.ts +18 -0
- package/custom-elements/index.js +102 -79
- package/esm/loader.js +1 -1
- package/esm/pn-find-price-result.entry.js +5 -15
- package/esm/{pn-find-price-store-d2053b72.js → pn-find-price-store-8560f26c.js} +1 -0
- package/esm/pn-find-price.entry.js +48 -65
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-product-card_3.entry.js +43 -0
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-d2053b72.js → pn-find-price-store-8560f26c.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -0
- package/package.json +7 -6
- package/pn-market-web-components/p-0fb48ff6.entry.js +1 -0
- package/pn-market-web-components/p-1051c2d9.system.entry.js +1 -0
- package/pn-market-web-components/{p-c30207e6.js → p-390d9a03.js} +1 -1
- package/pn-market-web-components/p-492e6f0d.system.js +1 -0
- package/pn-market-web-components/p-80ca78f4.entry.js +1 -0
- package/pn-market-web-components/p-a22df959.system.js +1 -1
- package/pn-market-web-components/p-a425e095.system.entry.js +1 -0
- package/pn-market-web-components/p-b42fd0cb.entry.js +1 -0
- package/pn-market-web-components/p-f2898a60.system.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +2 -0
- package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +2 -0
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +6 -1
- 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 +57 -0
- package/pn-market-web-components/p-233ca151.system.js +0 -1
- package/pn-market-web-components/p-4fcabdb8.entry.js +0 -1
- package/pn-market-web-components/p-b30e348c.system.entry.js +0 -1
- package/pn-market-web-components/p-bea2dcc6.entry.js +0 -1
- package/pn-market-web-components/p-d8882f68.system.entry.js +0 -1
package/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
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",[[0,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"spamode":[4],"loginManager":[32],"loggedIn":[32],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["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-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);
|
|
17
|
+
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",[[0,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"spamode":[4],"loginManager":[32],"loggedIn":[32],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["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);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd08e313.js');
|
|
6
|
-
const pnFindPriceStore = require('./pn-find-price-store-
|
|
6
|
+
const pnFindPriceStore = require('./pn-find-price-store-d9aabecb.js');
|
|
7
7
|
require('./index-31d574c5.js');
|
|
8
8
|
|
|
9
|
-
const pnFindPriceResultCss = "pn-find-price-result .test{margin:3em 0}";
|
|
9
|
+
const pnFindPriceResultCss = "pn-find-price-result .test{margin:3em 0}.resultcontent{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
|
|
10
10
|
|
|
11
11
|
let PnfindPriceResult = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -19,21 +19,11 @@ let PnfindPriceResult = class {
|
|
|
19
19
|
this.composeItems();
|
|
20
20
|
}
|
|
21
21
|
composeItems() {
|
|
22
|
-
this.shownitems = [];
|
|
23
|
-
if (this.item.pricestamps) {
|
|
24
|
-
this.shownitems.push(Object.assign(Object.assign({}, this.item), { priceagent: null, pricesenddirect: null }));
|
|
25
|
-
}
|
|
26
|
-
if (this.item.priceagent) {
|
|
27
|
-
this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, pricesenddirect: null }));
|
|
28
|
-
}
|
|
29
|
-
if (this.item.pricesenddirect) {
|
|
30
|
-
this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, priceagent: null }));
|
|
31
|
-
}
|
|
32
|
-
this.weightText = (this.item.maxweight <= 20) ? this.item.maxweight + 'kg' :
|
|
33
|
-
(this.item.maxweight > 999) ? Math.round(this.item.maxweight / 1000) + " kg" : this.item.maxweight + " g";
|
|
34
22
|
}
|
|
35
23
|
render() {
|
|
36
|
-
return (index.h(index.Host, null,
|
|
24
|
+
return (index.h(index.Host, null, index.h("pn-product-card", null, index.h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }), index.h("div", { slot: "content" }, index.h("div", { class: "content" }, index.h("h3", null, this.item.name, (this.item.highestrankusp) ?
|
|
25
|
+
(this.item.highestrankusp === "Biligast") ?
|
|
26
|
+
(index.h("span", { slot: "Biligast" }, this.item.highestrankusp)) : (index.h("span", { slot: "Snabbast" }, this.item.highestrankusp)) : null), (this.item.description) ? (index.h("div", { class: "description" }, this.item.description)) : null, (this.item.info) ? (index.h("div", { class: "description" }, this.item.info)) : null)), this.item.note ? (index.h("small", { slot: "note" }, index.h("p", null, this.item.note))) : null, this.item.additionalusp ? (index.h("small", { slot: "additionalUSP" }, index.h("p", null, this.item.additionalusp))) : null, this.item.maximummeasurements ? (index.h("pn-product-card-info", { label: pnFindPriceStore.state.i18n.maxmeasurementlabel, text: this.item.maximummeasurements })) : null, this.item.paket ? (index.h("pn-product-card-info", { paket: this.item.paket, rulle: this.item.rulle })) : null, this.item.priceagent ? (index.h("pn-product-card-price", { slot: "price", label: "", amount: this.item.priceagent + '', currency: pnFindPriceStore.state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null, this.item.pricesenddirect ? (index.h("pn-product-card-price", { slot: "sendDirectPrice", label: pnFindPriceStore.state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: pnFindPriceStore.state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null, this.item.pricestamps ? (index.h("pn-product-card-price", { slot: "stampPrice", label: pnFindPriceStore.state.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: pnFindPriceStore.state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", note: pnFindPriceStore.state.i18n.message })) : null)));
|
|
37
27
|
}
|
|
38
28
|
static get watchers() { return {
|
|
39
29
|
"item": ["composeItems"]
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd08e313.js');
|
|
6
6
|
const convert = require('./convert-b8a6d658.js');
|
|
7
|
-
const pnFindPriceStore = require('./pn-find-price-store-
|
|
7
|
+
const pnFindPriceStore = require('./pn-find-price-store-d9aabecb.js');
|
|
8
8
|
require('./index-31d574c5.js');
|
|
9
9
|
|
|
10
10
|
const translations = {
|
|
@@ -16,8 +16,9 @@ const translations = {
|
|
|
16
16
|
'weightlabel': 'Vikt',
|
|
17
17
|
'maxweightlabel': 'Maxvikt',
|
|
18
18
|
'maxmeasurementlabel': 'Maxvolym',
|
|
19
|
-
'senddirectcta': 'Köp
|
|
20
|
-
'stampshopcta': '
|
|
19
|
+
'senddirectcta': 'Köp portokod online',
|
|
20
|
+
'stampshopcta': 'Beställ fysiska frimärken',
|
|
21
|
+
'message': '*Vid köp hos valfritt ombud'
|
|
21
22
|
},
|
|
22
23
|
'en': {
|
|
23
24
|
'componentheading': 'What do you want to send?',
|
|
@@ -27,8 +28,9 @@ const translations = {
|
|
|
27
28
|
'weightlabel': 'Weight',
|
|
28
29
|
'maxweightlabel': 'Max weight',
|
|
29
30
|
'maxmeasurementlabel': 'Maximum measurement',
|
|
30
|
-
'senddirectcta': 'Buy
|
|
31
|
-
'stampshopcta': 'Order
|
|
31
|
+
'senddirectcta': 'Buy postcode online',
|
|
32
|
+
'stampshopcta': 'Order physical stamps',
|
|
33
|
+
'message': 'When buying from any agent'
|
|
32
34
|
},
|
|
33
35
|
'da': {
|
|
34
36
|
'componentheading': 'Vad vill du skicka?',
|
|
@@ -80,70 +82,46 @@ const markets = {
|
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
const sizeCategories = [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
];
|
|
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
|
+
];
|
|
88
89
|
|
|
89
90
|
const weights = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
{ name: "100g", abbreviation: 'g', value: 100 },
|
|
122
|
-
{ name: "250g", abbreviation: 'g', value: 250 },
|
|
123
|
-
{ name: "500g", abbreviation: 'g', value: 500 },
|
|
124
|
-
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
125
|
-
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
126
|
-
{ name: "3kg", abbreviation: 'kg', value: 3 },
|
|
127
|
-
{ name: "4kg", abbreviation: 'kg', value: 4 },
|
|
128
|
-
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
129
|
-
{ name: "6kg", abbreviation: 'kg', value: 6 },
|
|
130
|
-
{ name: "7Kg", abbreviation: 'kg', value: 7 },
|
|
131
|
-
{ name: "8kg", abbreviation: 'kg', value: 8 },
|
|
132
|
-
{ name: "9kg", abbreviation: 'kg', value: 9 },
|
|
133
|
-
{ name: "10kg", abbreviation: 'kg', value: 10 },
|
|
134
|
-
{ name: "11kg", abbreviation: 'kg', value: 11 },
|
|
135
|
-
{ name: "12kg", abbreviation: 'kg', value: 12 },
|
|
136
|
-
{ name: "13kg", abbreviation: 'kg', value: 13 },
|
|
137
|
-
{ name: "14kg", abbreviation: 'kg', value: 14 },
|
|
138
|
-
{ name: "15kg", abbreviation: 'kg', value: 15 },
|
|
139
|
-
{ name: "16kg", abbreviation: 'kg', value: 16 },
|
|
140
|
-
{ name: "17kg", abbreviation: 'kg', value: 17 },
|
|
141
|
-
{ name: "18kg", abbreviation: 'kg', value: 18 },
|
|
142
|
-
{ name: "20kg", abbreviation: 'kg', value: 20 },
|
|
143
|
-
]
|
|
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
|
+
]
|
|
144
122
|
};
|
|
145
123
|
|
|
146
|
-
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}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}";
|
|
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}";
|
|
147
125
|
|
|
148
126
|
let PnfindPrice = class {
|
|
149
127
|
constructor(hostRef) {
|
|
@@ -211,6 +189,11 @@ let PnfindPrice = class {
|
|
|
211
189
|
}
|
|
212
190
|
}
|
|
213
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
|
+
});
|
|
214
197
|
this.filteredItems = weightFilteredData;
|
|
215
198
|
}
|
|
216
199
|
render() {
|
|
@@ -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-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",[[0,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"spamode":[4],"loginManager":[32],"loggedIn":[32],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["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-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);
|
|
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",[[0,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"spamode":[4],"loginManager":[32],"loggedIn":[32],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["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
|
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-cd08e313.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;
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
"./components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js",
|
|
29
29
|
"./components/widgets/pn-find-service-and-price/pn-find-service-and-price.js",
|
|
30
30
|
"./components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js",
|
|
31
|
+
"./components/widgets/pn-product-card/pn-product-card-info.js",
|
|
32
|
+
"./components/widgets/pn-product-card/pn-product-card-price.js",
|
|
33
|
+
"./components/widgets/pn-product-card/pn-product-card.js",
|
|
31
34
|
"./components/widgets/pn-product-pricelist/pn-product-pricelist-result.js",
|
|
32
35
|
"./components/widgets/pn-product-pricelist/pn-product-pricelist.js",
|
|
33
36
|
"./components/widgets/pn-product-tile/pn-product-tile-info.js",
|
|
@@ -1,68 +1,42 @@
|
|
|
1
1
|
|
|
2
2
|
const sizeCategories = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
];
|
|
3
|
+
{ name: "Dokument eller paket upp till 2 kg", value: "upto2kg", illustration: "package-letter-calendar", unit: "2kg", maxWeight:2 },
|
|
4
|
+
{ name: "Större paket M-L upp till 5 kg", value: "upto5kg", illustration: "packages-in-a-pile", unit: "5kg", maxWeight:5},
|
|
5
|
+
{ name: "Tyngre paket upp till 20 kg", value: "upto20kg", illustration: "scale-package-16-abroad", unit: "20kg", maxWeight: 20 },
|
|
6
|
+
];
|
|
8
7
|
|
|
9
8
|
const weights = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
{ name: "100g", abbreviation: 'g', value: 100 },
|
|
42
|
-
{ name: "250g", abbreviation: 'g', value: 250 },
|
|
43
|
-
{ name: "500g", abbreviation: 'g', value: 500 },
|
|
44
|
-
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
45
|
-
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
46
|
-
{ name: "3kg", abbreviation: 'kg', value: 3 },
|
|
47
|
-
{ name: "4kg", abbreviation: 'kg', value: 4 },
|
|
48
|
-
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
49
|
-
{ name: "6kg", abbreviation: 'kg', value: 6 },
|
|
50
|
-
{ name: "7Kg", abbreviation: 'kg', value: 7 },
|
|
51
|
-
{ name: "8kg", abbreviation: 'kg', value: 8 },
|
|
52
|
-
{ name: "9kg", abbreviation: 'kg', value: 9 },
|
|
53
|
-
{ name: "10kg", abbreviation: 'kg', value: 10 },
|
|
54
|
-
{ name: "11kg", abbreviation: 'kg', value: 11 },
|
|
55
|
-
{ name: "12kg", abbreviation: 'kg', value: 12 },
|
|
56
|
-
{ name: "13kg", abbreviation: 'kg', value: 13 },
|
|
57
|
-
{ name: "14kg", abbreviation: 'kg', value: 14 },
|
|
58
|
-
{ name: "15kg", abbreviation: 'kg', value: 15 },
|
|
59
|
-
{ name: "16kg", abbreviation: 'kg', value: 16 },
|
|
60
|
-
{ name: "17kg", abbreviation: 'kg', value: 17 },
|
|
61
|
-
{ name: "18kg", abbreviation: 'kg', value: 18 },
|
|
62
|
-
{ name: "20kg", abbreviation: 'kg', value: 20 },
|
|
63
|
-
]
|
|
9
|
+
"2kg": [
|
|
10
|
+
{ name: "50g", abbreviation: 'g', value: 50 },
|
|
11
|
+
{ name: "100g", abbreviation: 'g', value: 100 },
|
|
12
|
+
{ name: "250g", abbreviation: 'g', value: 250 },
|
|
13
|
+
{ name: "500g", abbreviation: 'g', value: 500 },
|
|
14
|
+
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
15
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
16
|
+
],
|
|
17
|
+
"5kg": [
|
|
18
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
19
|
+
{ name: "3kg", abbreviation: 'kg', value: 3 },
|
|
20
|
+
{ name: "4kg", abbreviation: 'kg', value: 4 },
|
|
21
|
+
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
22
|
+
],
|
|
23
|
+
"20kg": [
|
|
24
|
+
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
25
|
+
{ name: "6kg", abbreviation: 'kg', value: 6 },
|
|
26
|
+
{ name: "7Kg", abbreviation: 'kg', value: 7 },
|
|
27
|
+
{ name: "8kg", abbreviation: 'kg', value: 8 },
|
|
28
|
+
{ name: "9kg", abbreviation: 'kg', value: 9 },
|
|
29
|
+
{ name: "10kg", abbreviation: 'kg', value: 10 },
|
|
30
|
+
{ name: "11kg", abbreviation: 'kg', value: 11 },
|
|
31
|
+
{ name: "12kg", abbreviation: 'kg', value: 12 },
|
|
32
|
+
{ name: "13kg", abbreviation: 'kg', value: 13 },
|
|
33
|
+
{ name: "14kg", abbreviation: 'kg', value: 14 },
|
|
34
|
+
{ name: "15kg", abbreviation: 'kg', value: 15 },
|
|
35
|
+
{ name: "16kg", abbreviation: 'kg', value: 16 },
|
|
36
|
+
{ name: "17kg", abbreviation: 'kg', value: 17 },
|
|
37
|
+
{ name: "18kg", abbreviation: 'kg', value: 18 },
|
|
38
|
+
{ name: "20kg", abbreviation: 'kg', value: 20 },
|
|
39
|
+
]
|
|
64
40
|
};
|
|
65
41
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
export { weights, sizeCategories};
|
|
42
|
+
export { weights, sizeCategories};
|
|
@@ -10,34 +10,28 @@ export class PnfindPriceResult {
|
|
|
10
10
|
this.composeItems();
|
|
11
11
|
}
|
|
12
12
|
composeItems() {
|
|
13
|
-
this.shownitems = [];
|
|
14
|
-
if (this.item.pricestamps) {
|
|
15
|
-
this.shownitems.push(Object.assign(Object.assign({}, this.item), { priceagent: null, pricesenddirect: null }));
|
|
16
|
-
}
|
|
17
|
-
if (this.item.priceagent) {
|
|
18
|
-
this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, pricesenddirect: null }));
|
|
19
|
-
}
|
|
20
|
-
if (this.item.pricesenddirect) {
|
|
21
|
-
this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, priceagent: null }));
|
|
22
|
-
}
|
|
23
|
-
this.weightText = (this.item.maxweight <= 20) ? this.item.maxweight + 'kg' :
|
|
24
|
-
(this.item.maxweight > 999) ? Math.round(this.item.maxweight / 1000) + " kg" : this.item.maxweight + " g";
|
|
25
13
|
}
|
|
26
14
|
render() {
|
|
27
|
-
return (h(Host, null,
|
|
28
|
-
h("pn-illustration", { slot: "illustration", illustration: item.illustration }),
|
|
15
|
+
return (h(Host, null, h("pn-product-card", null,
|
|
16
|
+
h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }),
|
|
29
17
|
h("div", { slot: "content" },
|
|
30
18
|
h("div", { class: "content" },
|
|
31
|
-
h("h3", null,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
item.
|
|
39
|
-
|
|
40
|
-
item.
|
|
19
|
+
h("h3", null,
|
|
20
|
+
this.item.name,
|
|
21
|
+
(this.item.highestrankusp) ?
|
|
22
|
+
(this.item.highestrankusp === "Biligast") ?
|
|
23
|
+
(h("span", { slot: "Biligast" }, this.item.highestrankusp)) : (h("span", { slot: "Snabbast" }, this.item.highestrankusp)) : null),
|
|
24
|
+
(this.item.description) ? (h("div", { class: "description" }, this.item.description)) : null,
|
|
25
|
+
(this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)),
|
|
26
|
+
this.item.note ? (h("small", { slot: "note" },
|
|
27
|
+
h("p", null, this.item.note))) : null,
|
|
28
|
+
this.item.additionalusp ? (h("small", { slot: "additionalUSP" },
|
|
29
|
+
h("p", null, this.item.additionalusp))) : null,
|
|
30
|
+
this.item.maximummeasurements ? (h("pn-product-card-info", { label: state.i18n.maxmeasurementlabel, text: this.item.maximummeasurements })) : null,
|
|
31
|
+
this.item.paket ? (h("pn-product-card-info", { paket: this.item.paket, rulle: this.item.rulle })) : null,
|
|
32
|
+
this.item.priceagent ? (h("pn-product-card-price", { slot: "price", label: "", amount: this.item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null,
|
|
33
|
+
this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null,
|
|
34
|
+
this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", note: state.i18n.message })) : null)));
|
|
41
35
|
}
|
|
42
36
|
static get is() { return "pn-find-price-result"; }
|
|
43
37
|
static get originalStyleUrls() { return {
|
|
@@ -7,8 +7,9 @@ export const translations = {
|
|
|
7
7
|
'weightlabel': 'Vikt',
|
|
8
8
|
'maxweightlabel': 'Maxvikt',
|
|
9
9
|
'maxmeasurementlabel': 'Maxvolym',
|
|
10
|
-
'senddirectcta': 'Köp
|
|
11
|
-
'stampshopcta': '
|
|
10
|
+
'senddirectcta': 'Köp portokod online',
|
|
11
|
+
'stampshopcta': 'Beställ fysiska frimärken',
|
|
12
|
+
'message': '*Vid köp hos valfritt ombud'
|
|
12
13
|
},
|
|
13
14
|
'en': {
|
|
14
15
|
'componentheading': 'What do you want to send?',
|
|
@@ -18,8 +19,9 @@ export const translations = {
|
|
|
18
19
|
'weightlabel': 'Weight',
|
|
19
20
|
'maxweightlabel': 'Max weight',
|
|
20
21
|
'maxmeasurementlabel': 'Maximum measurement',
|
|
21
|
-
'senddirectcta': 'Buy
|
|
22
|
-
'stampshopcta': 'Order
|
|
22
|
+
'senddirectcta': 'Buy postcode online',
|
|
23
|
+
'stampshopcta': 'Order physical stamps',
|
|
24
|
+
'message': 'When buying from any agent'
|
|
23
25
|
},
|
|
24
26
|
'da': {
|
|
25
27
|
'componentheading': 'Vad vill du skicka?',
|
|
@@ -68,6 +68,11 @@ export class PnfindPrice {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
weightFilteredData.sort((a, b) => {
|
|
72
|
+
var rankA = a.highestrankusp ? a.highestrankusp.toLowerCase() : "z";
|
|
73
|
+
var rankB = b.highestrankusp ? b.highestrankusp.toLowerCase() : "z";
|
|
74
|
+
return (rankA.localeCompare(rankB));
|
|
75
|
+
});
|
|
71
76
|
this.filteredItems = weightFilteredData;
|
|
72
77
|
}
|
|
73
78
|
render() {
|