@postnord/pn-marketweb-components 1.0.41 → 1.0.44-beta1
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/{MarketWebLoginManager-859590e2.js → MarketWebLoginManager-1282a883.js} +1 -2
- package/cjs/{convert-57b3dd5e.js → convert-b8a6d658.js} +55 -0
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +39 -0
- package/cjs/pn-find-price-result.cjs.entry.js +44 -0
- package/cjs/pn-find-price-store-85b100ba.js +23 -0
- package/cjs/pn-find-price.cjs.entry.js +260 -0
- package/cjs/{pn-choice-button_2.cjs.entry.js → pn-find-service-and-price-result.cjs.entry.js} +0 -33
- package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
- package/cjs/pn-language-selector_9.cjs.entry.js +17 -2
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +0 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +5 -6
- package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +2 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +0 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +28 -30
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js +15 -0
- package/collection/components/widgets/pn-find-price/data.js +68 -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 +3 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +100 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-store.js +20 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +71 -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 +55 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.js +212 -0
- package/collection/globals/MarketWebLoginManager.js +1 -2
- package/collection/globals/shared/productprice/convert.js +55 -1
- package/custom-elements/index.d.ts +12 -0
- package/custom-elements/index.js +412 -37
- package/esm/{MarketWebLoginManager-83f2e86a.js → MarketWebLoginManager-310d2552.js} +1 -2
- package/esm/{convert-b49a0857.js → convert-8cce67c4.js} +55 -1
- package/esm/loader.js +1 -1
- package/esm/{pn-choice-button_2.entry.js → pn-choice-button.entry.js} +1 -39
- package/esm/pn-find-price-result.entry.js +40 -0
- package/esm/pn-find-price-store-d2053b72.js +21 -0
- package/esm/pn-find-price.entry.js +256 -0
- package/esm/pn-find-service-and-price-result.entry.js +41 -0
- package/esm/pn-find-service-and-price.entry.js +1 -1
- package/esm/pn-language-selector_9.entry.js +17 -2
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +0 -1
- package/esm/pn-marketweb-siteheader.entry.js +5 -6
- package/esm/pn-product-pricelist.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm-es5/{MarketWebLoginManager-83f2e86a.js → MarketWebLoginManager-310d2552.js} +1 -1
- package/esm-es5/{convert-b49a0857.js → convert-8cce67c4.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -0
- package/esm-es5/pn-find-price-result.entry.js +1 -0
- package/esm-es5/pn-find-price-store-d2053b72.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.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.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-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-e6a209c6.system.entry.js → p-0d0ea574.system.entry.js} +1 -1
- package/pn-market-web-components/p-1611123a.system.entry.js +1 -0
- package/pn-market-web-components/{p-b8af690a.entry.js → p-22738646.entry.js} +1 -1
- package/pn-market-web-components/p-233ca151.system.js +1 -0
- package/pn-market-web-components/p-2456901a.js +1 -0
- package/pn-market-web-components/p-2e6644ea.system.entry.js +1 -0
- package/pn-market-web-components/p-325a7cae.entry.js +1 -0
- package/pn-market-web-components/p-38ff23f5.entry.js +1 -0
- package/pn-market-web-components/p-4fcabdb8.entry.js +1 -0
- package/pn-market-web-components/p-50454694.system.entry.js +1 -0
- package/pn-market-web-components/{p-91624bd5.system.js → p-5ce5be4f.system.js} +2 -2
- package/pn-market-web-components/p-5f8ef634.entry.js +1 -0
- package/pn-market-web-components/p-6ee881ea.system.entry.js +1 -0
- package/pn-market-web-components/p-725e4377.entry.js +1 -0
- package/pn-market-web-components/{p-21e0e386.js → p-7dd91709.js} +1 -1
- package/pn-market-web-components/p-93d8620b.entry.js +1 -0
- package/pn-market-web-components/p-a22df959.system.js +1 -1
- package/pn-market-web-components/{p-9aca0bae.entry.js → p-a5284c78.entry.js} +1 -1
- package/pn-market-web-components/p-b30e348c.system.entry.js +1 -0
- package/pn-market-web-components/p-bea2dcc6.entry.js +1 -0
- package/pn-market-web-components/p-c30207e6.js +1 -0
- package/pn-market-web-components/{p-f4fda846.system.entry.js → p-d133f30d.system.entry.js} +1 -1
- package/pn-market-web-components/p-d8882f68.system.entry.js +1 -0
- package/pn-market-web-components/p-da370548.system.entry.js +1 -0
- package/pn-market-web-components/p-dd4de1a9.entry.js +1 -0
- package/pn-market-web-components/{p-e04f8d34.system.entry.js → p-eb75d0cf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-58cdf3a6.system.js → p-f1311662.system.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/navigation/pn-language-selector/pn-language-selector.d.ts +1 -0
- 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 +33 -0
- package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +71 -0
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +46 -0
- package/types/components/widgets/pn-find-price/pn-find-price.d.ts +16 -0
- package/types/components.d.ts +37 -0
- package/esm-es5/pn-choice-button_2.entry.js +0 -1
- package/pn-market-web-components/p-37801e32.entry.js +0 -1
- package/pn-market-web-components/p-3f876199.entry.js +0 -1
- package/pn-market-web-components/p-4aa3b95d.entry.js +0 -1
- package/pn-market-web-components/p-861210ae.entry.js +0 -1
- package/pn-market-web-components/p-a924001f.system.entry.js +0 -1
- package/pn-market-web-components/p-ac36097e.system.entry.js +0 -1
- package/pn-market-web-components/p-b2383083.system.entry.js +0 -1
- package/pn-market-web-components/p-c254cfdf.js +0 -1
- package/pn-market-web-components/p-e9d8a991.entry.js +0 -1
- package/pn-market-web-components/p-ec1127de.system.entry.js +0 -1
|
@@ -89,8 +89,7 @@ class MarketWebLoginManager {
|
|
|
89
89
|
return `${this.getBaseUrl()}${this.endpoints.authorizationEndpoint}?redirectionUrl=${redirectPage}`;
|
|
90
90
|
}
|
|
91
91
|
getLogoutUrl(redirectPage = "") {
|
|
92
|
-
|
|
93
|
-
redirectPage = redirectPage ? redirectPage : currentPage;
|
|
92
|
+
redirectPage = window.location.origin + '/logout';
|
|
94
93
|
return `${this.getBaseUrl()}${this.endpoints.logoutEndpoint}?redirectionUrl=${redirectPage}&authorization=${this.store.get(this.keys.token)}`;
|
|
95
94
|
}
|
|
96
95
|
getUserInfo() {
|
|
@@ -1727,4 +1727,59 @@ async function convertFileFromStream(stream, filterColumnNames = ["what", "deliv
|
|
|
1727
1727
|
return fileData;
|
|
1728
1728
|
}
|
|
1729
1729
|
|
|
1730
|
+
async function convertFileForSizeCategogy(stream, filterColumnNames = ["sizecategory"]) {
|
|
1731
|
+
const toFilterValue = (x) => x.toLowerCase().replace(/\s+/g, '');
|
|
1732
|
+
const sheets = await readXlsxFile(stream, { getSheets: true });
|
|
1733
|
+
let dataRows = [];
|
|
1734
|
+
let sizecategoryColumn;
|
|
1735
|
+
let sheetsData = await Promise.all(sheets.map(async (sheet) => { return await readXlsxFile(stream, { sheet: sheet.name }) }));
|
|
1736
|
+
|
|
1737
|
+
let types = {};
|
|
1738
|
+
sheetsData.forEach(sheetData => {
|
|
1739
|
+
const firstRow = sheetData.shift().map(x => toFilterValue(x));
|
|
1740
|
+
// Set up column for adding options
|
|
1741
|
+
firstRow.forEach((col, i) => {
|
|
1742
|
+
if (typeof types[col] === "undefined" && filterColumnNames.includes(col)) {
|
|
1743
|
+
types[col] = [];
|
|
1744
|
+
}
|
|
1745
|
+
if(col === "sizecategory")
|
|
1746
|
+
sizecategoryColumn = i;
|
|
1747
|
+
});
|
|
1748
|
+
|
|
1749
|
+
sheetData.forEach((row, rowindex) => {
|
|
1750
|
+
// read sizeCategory column of each row and split it to save data for each item
|
|
1751
|
+
const firstColRow = row[sizecategoryColumn];
|
|
1752
|
+
const sizeCatColumnValue = firstColRow.split('/');
|
|
1753
|
+
|
|
1754
|
+
sizeCatColumnValue.forEach((value, j) => {
|
|
1755
|
+
const dataRow = {};
|
|
1756
|
+
|
|
1757
|
+
firstRow.forEach(async (col, i) => {
|
|
1758
|
+
const rowVal = (i === sizecategoryColumn) ? value : row[i];
|
|
1759
|
+
dataRow[col] = rowVal;
|
|
1760
|
+
|
|
1761
|
+
// Add to types options
|
|
1762
|
+
if (filterColumnNames.includes(col)) {
|
|
1763
|
+
const filterVal = toFilterValue(rowVal);
|
|
1764
|
+
dataRow[col] = filterVal;
|
|
1765
|
+
|
|
1766
|
+
if (!types[col].includes(filterVal)) {
|
|
1767
|
+
types[col].push(filterVal);
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
});
|
|
1771
|
+
dataRows.push(dataRow);
|
|
1772
|
+
});
|
|
1773
|
+
});
|
|
1774
|
+
});
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
const fileData = {
|
|
1778
|
+
"types": types,
|
|
1779
|
+
"data": dataRows
|
|
1780
|
+
};
|
|
1781
|
+
return fileData;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
exports.convertFileForSizeCategogy = convertFileForSizeCategogy;
|
|
1730
1785
|
exports.convertFileFromStream = convertFileFromStream;
|
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-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-
|
|
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);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-cd08e313.js');
|
|
6
|
+
|
|
7
|
+
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}";
|
|
8
|
+
|
|
9
|
+
let PnChoiceButton = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.type = "checkbox";
|
|
13
|
+
this.disabled = false;
|
|
14
|
+
this.checked = false;
|
|
15
|
+
this.indeterminate = false;
|
|
16
|
+
}
|
|
17
|
+
handlechange() {
|
|
18
|
+
this.indeterminate = false;
|
|
19
|
+
}
|
|
20
|
+
componentDidLoad() {
|
|
21
|
+
this.checkAndSetIndeterminateState();
|
|
22
|
+
}
|
|
23
|
+
componentDidUpdate() {
|
|
24
|
+
this.checkAndSetIndeterminateState();
|
|
25
|
+
}
|
|
26
|
+
checkAndSetIndeterminateState() {
|
|
27
|
+
let checkbox = this.hostElement.querySelector(`#${this.choiceid}`);
|
|
28
|
+
if (checkbox) {
|
|
29
|
+
checkbox.indeterminate = this.indeterminate;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
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))));
|
|
34
|
+
}
|
|
35
|
+
get hostElement() { return index.getElement(this); }
|
|
36
|
+
};
|
|
37
|
+
PnChoiceButton.style = pnChoiceButtonCss;
|
|
38
|
+
|
|
39
|
+
exports.pn_choice_button = PnChoiceButton;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-cd08e313.js');
|
|
6
|
+
const pnFindPriceStore = require('./pn-find-price-store-85b100ba.js');
|
|
7
|
+
require('./index-31d574c5.js');
|
|
8
|
+
|
|
9
|
+
const pnFindPriceResultCss = "pn-find-price-result .test{margin:3em 0}";
|
|
10
|
+
|
|
11
|
+
let PnfindPriceResult = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.item = null;
|
|
15
|
+
this.shownitems = [];
|
|
16
|
+
this.weightText = "";
|
|
17
|
+
}
|
|
18
|
+
componentWillLoad() {
|
|
19
|
+
this.composeItems();
|
|
20
|
+
}
|
|
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
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return (index.h(index.Host, null, this.shownitems.map((item) => (index.h("pn-product-tile", null, index.h("pn-illustration", { slot: "illustration", illustration: item.illustration }), index.h("div", { slot: "content" }, index.h("div", { class: "content" }, index.h("h3", null, item.name), (item.description) ? (index.h("div", { class: "description" }, item.description)) : null, (item.info) ? (index.h("div", { class: "description" }, item.info)) : null)), item.note ? (index.h("small", { slot: "note" }, index.h("p", null, item.note))) : null, item.maxweight ? (index.h("pn-product-tile-info", { label: pnFindPriceStore.state.i18n.maxweightlabel, text: this.weightText })) : null, item.maximummeasurements ? (index.h("pn-product-tile-info", { label: pnFindPriceStore.state.i18n.maxmeasurementlabel, text: item.maximummeasurements })) : null, item.priceagent ? (index.h("pn-product-tile-price", { slot: "price", label: "", amount: item.priceagent + '', currency: pnFindPriceStore.state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null, item.pricestamps ? (index.h("pn-product-tile-price", { slot: "price", label: pnFindPriceStore.state.i18n.stampshopcta, amount: item.pricestamps + '', currency: pnFindPriceStore.state.market.currency })) : null, item.pricesenddirect ? (index.h("pn-product-tile-price", { slot: "price", label: pnFindPriceStore.state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: pnFindPriceStore.state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null)))));
|
|
37
|
+
}
|
|
38
|
+
static get watchers() { return {
|
|
39
|
+
"item": ["composeItems"]
|
|
40
|
+
}; }
|
|
41
|
+
};
|
|
42
|
+
PnfindPriceResult.style = pnFindPriceResultCss;
|
|
43
|
+
|
|
44
|
+
exports.pn_find_price_result = PnfindPriceResult;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-31d574c5.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
|
+
},
|
|
18
|
+
market: {
|
|
19
|
+
currency: ""
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
exports.state = state;
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-cd08e313.js');
|
|
6
|
+
const convert = require('./convert-b8a6d658.js');
|
|
7
|
+
const pnFindPriceStore = require('./pn-find-price-store-85b100ba.js');
|
|
8
|
+
require('./index-31d574c5.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 frakt via Skicka Direkt',
|
|
20
|
+
'stampshopcta': 'Köp frimärken via vår webshop',
|
|
21
|
+
},
|
|
22
|
+
'en': {
|
|
23
|
+
'componentheading': 'What do you want to send?',
|
|
24
|
+
'deliveryscopeheading': 'Deliveries within Sweden only',
|
|
25
|
+
'sizeheading': 'How much does it weigh?',
|
|
26
|
+
'resultlistheading': 'Some suitable options for you',
|
|
27
|
+
'weightlabel': 'Weight',
|
|
28
|
+
'maxweightlabel': 'Max weight',
|
|
29
|
+
'maxmeasurementlabel': 'Maximum measurement',
|
|
30
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
31
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
32
|
+
},
|
|
33
|
+
'da': {
|
|
34
|
+
'componentheading': 'Vad vill du skicka?',
|
|
35
|
+
'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
|
|
36
|
+
'sizeheading': 'How much does it weigh?',
|
|
37
|
+
'resultlistheading': 'Some suitable options for you',
|
|
38
|
+
'weightlabel': 'Vægt',
|
|
39
|
+
'maxweightlabel': 'Max vægt',
|
|
40
|
+
'maxmeasurementlabel': 'Maks. Volumen',
|
|
41
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
42
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
43
|
+
},
|
|
44
|
+
'no': {
|
|
45
|
+
'componentheading': 'Vad vill du skicka?',
|
|
46
|
+
'deliveryscopeheading': 'Kun leveranser innen Sverige',
|
|
47
|
+
'sizeheading': 'How much does it weigh?',
|
|
48
|
+
'resultlistheading': 'Some suitable options for you',
|
|
49
|
+
'weightlabel': 'Vekt',
|
|
50
|
+
'maxweightlabel': 'Maks vekt',
|
|
51
|
+
'maxmeasurementlabel': 'Maks volum',
|
|
52
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
53
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
54
|
+
},
|
|
55
|
+
'fi': {
|
|
56
|
+
'componentheading': 'Vad vill du skicka?',
|
|
57
|
+
'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
|
|
58
|
+
'sizeheading': 'How much does it weigh?',
|
|
59
|
+
'resultlistheading': 'Some suitable options for you',
|
|
60
|
+
'weightlabel': 'Paino',
|
|
61
|
+
'maxweightlabel': 'Max paino',
|
|
62
|
+
'maxmeasurementlabel': 'Max äänenvoimakkuus',
|
|
63
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
64
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const markets = {
|
|
68
|
+
'se': {
|
|
69
|
+
"currency": "kr",
|
|
70
|
+
},
|
|
71
|
+
'dk': {
|
|
72
|
+
"currency": "dk",
|
|
73
|
+
},
|
|
74
|
+
'fi': {
|
|
75
|
+
"currency": " €",
|
|
76
|
+
},
|
|
77
|
+
'no': {
|
|
78
|
+
"currency": "kr",
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const sizeCategories = [
|
|
83
|
+
{ name: "Document", value: "document", illustration: "claims", unit: "gram" },
|
|
84
|
+
{ name: "Box Of Chocolate", value: "boxofchocolate", illustration: "outgoing", unit: "gram" },
|
|
85
|
+
{ name: "Rubber Boots", value: "rubberboots", illustration: "christmas", unit: "combo" },
|
|
86
|
+
{ name: "Moving Box", value:"movingbox", illustration: "outgoing", unit: "kgram" },
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
const weights = {
|
|
90
|
+
"gram": [
|
|
91
|
+
{ name: "50g", abbreviation: 'g', value: 50 },
|
|
92
|
+
{ name: "100g", abbreviation: 'g', value: 100 },
|
|
93
|
+
{ name: "250g", abbreviation: 'g', value: 250 },
|
|
94
|
+
{ name: "500g", abbreviation: 'g', value: 500 },
|
|
95
|
+
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
96
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
97
|
+
],
|
|
98
|
+
"kgram": [
|
|
99
|
+
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
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
|
+
{ name: "6kg", abbreviation: 'kg', value: 6 },
|
|
105
|
+
{ name: "7Kg", abbreviation: 'kg', value: 7 },
|
|
106
|
+
{ name: "8kg", abbreviation: 'kg', value: 8 },
|
|
107
|
+
{ name: "9kg", abbreviation: 'kg', value: 9 },
|
|
108
|
+
{ name: "10kg", abbreviation: 'kg', value: 10 },
|
|
109
|
+
{ name: "11kg", abbreviation: 'kg', value: 11 },
|
|
110
|
+
{ name: "12kg", abbreviation: 'kg', value: 12 },
|
|
111
|
+
{ name: "13kg", abbreviation: 'kg', value: 13 },
|
|
112
|
+
{ name: "14kg", abbreviation: 'kg', value: 14 },
|
|
113
|
+
{ name: "15kg", abbreviation: 'kg', value: 15 },
|
|
114
|
+
{ name: "16kg", abbreviation: 'kg', value: 16 },
|
|
115
|
+
{ name: "17kg", abbreviation: 'kg', value: 17 },
|
|
116
|
+
{ name: "18kg", abbreviation: 'kg', value: 18 },
|
|
117
|
+
{ name: "20kg", abbreviation: 'kg', value: 20 },
|
|
118
|
+
],
|
|
119
|
+
"combo": [
|
|
120
|
+
{ name: "50g", abbreviation: 'g', value: 50 },
|
|
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
|
+
]
|
|
144
|
+
};
|
|
145
|
+
|
|
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}";
|
|
147
|
+
|
|
148
|
+
let PnfindPrice = class {
|
|
149
|
+
constructor(hostRef) {
|
|
150
|
+
index.registerInstance(this, hostRef);
|
|
151
|
+
this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice.xlsx";
|
|
152
|
+
this.language = "sv";
|
|
153
|
+
this.market = "se";
|
|
154
|
+
this.filteredItems = [];
|
|
155
|
+
this.weight = { value: 0, name: "" };
|
|
156
|
+
this.weightvalue = 0;
|
|
157
|
+
this.sourceData = { types: [], data: [] };
|
|
158
|
+
this.sizecategory = { value: "", name: "", icon: "", unit: "" };
|
|
159
|
+
}
|
|
160
|
+
componentWillLoad() {
|
|
161
|
+
this.setState();
|
|
162
|
+
this.getDataSource();
|
|
163
|
+
}
|
|
164
|
+
async getDataSource() {
|
|
165
|
+
const cacheBusting = `?cache=${Math.floor(Math.random() * (10000 - 1) + 1)}`;
|
|
166
|
+
const req = await fetch(this.source + cacheBusting);
|
|
167
|
+
const reqbody = await req.blob();
|
|
168
|
+
try {
|
|
169
|
+
const convertedData = await convert.convertFileForSizeCategogy(reqbody);
|
|
170
|
+
this.sourceData = convertedData;
|
|
171
|
+
this.filterItems();
|
|
172
|
+
}
|
|
173
|
+
catch (e) {
|
|
174
|
+
console.log('Unable to parse data');
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
setState() {
|
|
178
|
+
if (this.market) {
|
|
179
|
+
pnFindPriceStore.state.market = markets[this.market];
|
|
180
|
+
}
|
|
181
|
+
if (this.language && translations[this.language]) {
|
|
182
|
+
pnFindPriceStore.state.i18n = translations[this.language];
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
filterItems() {
|
|
186
|
+
var _a;
|
|
187
|
+
if (!((_a = this.sourceData) === null || _a === void 0 ? void 0 : _a.data)) {
|
|
188
|
+
console.log('Data has not yet been loaded');
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope === "Sweden");
|
|
192
|
+
if (!this.sizecategory) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory === this.sizecategory.value);
|
|
196
|
+
if (!this.weight || !this.weight.value) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const comparisonWeight = this.weight.value <= 20 ? this.weight.value * 1000 : this.weight.value;
|
|
200
|
+
let weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) === comparisonWeight);
|
|
201
|
+
// if no value found select the next available value
|
|
202
|
+
if (weightFilteredData.length === 0) {
|
|
203
|
+
weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) >= comparisonWeight);
|
|
204
|
+
if (weightFilteredData.length > 0) {
|
|
205
|
+
//sort based on the maxvalue
|
|
206
|
+
weightFilteredData.sort((a, b) => { return (a.maxweight - b.maxweight); });
|
|
207
|
+
// map to get the next unique item
|
|
208
|
+
const uniqueWeightOptions = [...new Map(weightFilteredData.reverse().map(item => [item["id"], item])).values()];
|
|
209
|
+
if (uniqueWeightOptions.length > 0) {
|
|
210
|
+
weightFilteredData = uniqueWeightOptions;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
this.filteredItems = weightFilteredData;
|
|
215
|
+
}
|
|
216
|
+
render() {
|
|
217
|
+
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: () => {
|
|
218
|
+
this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
|
|
219
|
+
if (this.weight.value === 0) {
|
|
220
|
+
this.weight = weights[this.sizecategory.unit][0];
|
|
221
|
+
this.weightvalue = this.weight.value;
|
|
222
|
+
}
|
|
223
|
+
} }, 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) => {
|
|
224
|
+
if (e && e.target && e.target.value) {
|
|
225
|
+
const weightNum = parseInt(e.target.value, 10);
|
|
226
|
+
if (!isNaN(weightNum)) {
|
|
227
|
+
let matchingWeights = weights[this.sizecategory.unit].filter((x) => {
|
|
228
|
+
let weightInGrams = (x.abbreviation === "kg") ? x.value * 1000 : x.value;
|
|
229
|
+
return weightInGrams >= weightNum;
|
|
230
|
+
});
|
|
231
|
+
if (matchingWeights && matchingWeights.length > 0) {
|
|
232
|
+
this.weight = matchingWeights[0];
|
|
233
|
+
this.weightvalue = this.weight.value;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
} }), 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) => {
|
|
238
|
+
const value = e.target.value;
|
|
239
|
+
this.weight = weights[this.sizecategory.unit][value];
|
|
240
|
+
this.weightvalue = this.weight.value;
|
|
241
|
+
}, min: "0",
|
|
242
|
+
// max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }
|
|
243
|
+
max: weights[this.sizecategory.unit].length - 1 }), index.h("datalist", { id: "weightlist" }, weights[this.sizecategory.unit].map((weight, weightindex) => {
|
|
244
|
+
let labelText = weight.name;
|
|
245
|
+
if (weights[this.sizecategory.unit].length > 6) {
|
|
246
|
+
labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.sizecategory.unit].length - 1) ? weight.name : '';
|
|
247
|
+
}
|
|
248
|
+
return (index.h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
|
|
249
|
+
})))))) : 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));
|
|
250
|
+
}
|
|
251
|
+
static get watchers() { return {
|
|
252
|
+
"market": ["setState"],
|
|
253
|
+
"language": ["setState"],
|
|
254
|
+
"weightvalue": ["filterItems"],
|
|
255
|
+
"sizecategory": ["filterItems"]
|
|
256
|
+
}; }
|
|
257
|
+
};
|
|
258
|
+
PnfindPrice.style = pnFindPriceCss;
|
|
259
|
+
|
|
260
|
+
exports.pn_find_price = PnfindPrice;
|
package/cjs/{pn-choice-button_2.cjs.entry.js → pn-find-service-and-price-result.cjs.entry.js}
RENAMED
|
@@ -6,38 +6,6 @@ const index = require('./index-cd08e313.js');
|
|
|
6
6
|
const pnFindServiceAndPriceStore = require('./pn-find-service-and-price-store-bded912f.js');
|
|
7
7
|
require('./index-31d574c5.js');
|
|
8
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;
|
|
40
|
-
|
|
41
9
|
const pnFindServiceAndPriceResultCss = "";
|
|
42
10
|
|
|
43
11
|
let PnfindServiceAndPriceResult = class {
|
|
@@ -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;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd08e313.js');
|
|
6
|
-
const convert = require('./convert-
|
|
6
|
+
const convert = require('./convert-b8a6d658.js');
|
|
7
7
|
const pnFindServiceAndPriceStore = require('./pn-find-service-and-price-store-bded912f.js');
|
|
8
8
|
require('./index-31d574c5.js');
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd08e313.js');
|
|
6
6
|
const pnMainnavStore = require('./pn-mainnav-store-4a3492cd.js');
|
|
7
|
-
const MarketWebLoginManager = require('./MarketWebLoginManager-
|
|
7
|
+
const MarketWebLoginManager = require('./MarketWebLoginManager-1282a883.js');
|
|
8
8
|
require('./index-31d574c5.js');
|
|
9
9
|
|
|
10
10
|
const translations$1 = {
|
|
@@ -37,6 +37,7 @@ let PnlanguageSelector = class {
|
|
|
37
37
|
this.options = [];
|
|
38
38
|
}
|
|
39
39
|
componentWillLoad() {
|
|
40
|
+
this.setInitialSelectedLanguageName();
|
|
40
41
|
this.setTranslations();
|
|
41
42
|
}
|
|
42
43
|
componentDidLoad() {
|
|
@@ -46,6 +47,20 @@ let PnlanguageSelector = class {
|
|
|
46
47
|
this.setSelectedLanguageName();
|
|
47
48
|
this.addEventBindingsToOptions();
|
|
48
49
|
}
|
|
50
|
+
setInitialSelectedLanguageName() {
|
|
51
|
+
if (!window.Intl || !this.value) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const langs = new Intl.DisplayNames([this.value], { type: 'language' });
|
|
55
|
+
if (!langs) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const languageName = langs.of(this.value);
|
|
59
|
+
if (!languageName) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
this.selectedLanguageName = languageName.charAt(0).toUpperCase() + languageName.slice(1);
|
|
63
|
+
}
|
|
49
64
|
addEventBindingsToOptions() {
|
|
50
65
|
const options = [].slice.apply(this.hostElement.querySelectorAll("pn-language-selector-option"));
|
|
51
66
|
options.map((option) => {
|
|
@@ -441,7 +456,7 @@ let PnMarketwebSiteheaderLogin = class {
|
|
|
441
456
|
: (index.h("ul", null, index.h("li", null, index.h("pn-button", { href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl), target: "_top" }, this.loginDialog.loginLinkText)), index.h("li", null, index.h("pn-button", { href: this.loginDialog.registerUrl, target: "_top", appearance: "light", variant: "outlined" }, this.loginDialog.createLoginLinkText)))))
|
|
442
457
|
:
|
|
443
458
|
index.h("div", null, index.h("ul", null, this.loginDialog.loggedInLinks.map((link) => {
|
|
444
|
-
const isLogoutLink = link.href.indexOf('logout');
|
|
459
|
+
const isLogoutLink = link.href.indexOf('logout') !== -1;
|
|
445
460
|
const href = (isLogoutLink) ? this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', '')) : link.href;
|
|
446
461
|
return (index.h("li", null, index.h("pn-button", Object.assign({ href: href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => {
|
|
447
462
|
if (isLogoutLink) {
|
|
@@ -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",[[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-
|
|
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);
|
|
59
59
|
});
|