@postnord/pn-marketweb-components 2.0.23-beta3 → 2.0.23-beta6
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-customernumber-selector-option.cjs.entry.js +2 -2
- package/cjs/pn-customernumber-selector.cjs.entry.js +3 -3
- package/cjs/pn-find-price-result.cjs.entry.js +5 -5
- package/cjs/pn-find-price.cjs.entry.js +7 -5
- package/cjs/pn-language-selector_9.cjs.entry.js +51 -59
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +72 -0
- package/cjs/pn-marketweb-siteheader-login-links_2.cjs.entry.js +186 -0
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +26 -7
- package/cjs/pn-product-card_4.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
- package/collection/collection-manifest.json +3 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +22 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +149 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/{pn-marketweb-siteheader-profileselection.css → pn-marketweb-siteheader-login-links.css} +0 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +199 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +93 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +269 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +0 -17
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +79 -72
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +24 -2
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +69 -2
- package/collection/components/layout-components/pn-marketweb-siteheader/translations.js +20 -5
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +4 -4
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +7 -7
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.stories.js +3 -3
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +4 -4
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +5 -5
- package/collection/components/widgets/pn-find-price/pn-find-price.js +7 -5
- package/collection/components/widgets/pn-product-card/pn-product-card.css +1 -0
- package/custom-elements/index.d.ts +16 -4
- package/custom-elements/index.js +294 -185
- package/esm/loader.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +2 -2
- package/esm/pn-customernumber-selector.entry.js +3 -3
- package/esm/pn-find-price-result.entry.js +5 -5
- package/esm/pn-find-price.entry.js +7 -5
- package/esm/pn-language-selector_9.entry.js +51 -59
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +68 -0
- package/esm/pn-marketweb-siteheader-login-links_2.entry.js +181 -0
- package/esm/pn-marketweb-siteheader.entry.js +26 -7
- package/esm/pn-product-card_4.entry.js +1 -1
- package/esm/pn-profile-selector-option.entry.js +2 -2
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/pn-find-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-siteheader-login-linklist.entry.js +1 -0
- package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-product-card_4.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-04240175.entry.js +1 -0
- package/pn-market-web-components/p-08411f5e.entry.js +1 -0
- package/pn-market-web-components/{p-77887623.system.entry.js → p-1924152a.system.entry.js} +1 -1
- package/pn-market-web-components/p-1f2d9304.entry.js +1 -0
- package/pn-market-web-components/p-2ac481d7.entry.js +1 -0
- package/pn-market-web-components/{p-4cea6bf3.system.entry.js → p-2afc5570.system.entry.js} +1 -1
- package/pn-market-web-components/p-5cc29b6e.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-6ce5a56d.system.entry.js +1 -0
- package/pn-market-web-components/p-77c9b601.entry.js +1 -0
- package/pn-market-web-components/p-8a763bfd.system.entry.js +1 -0
- package/pn-market-web-components/{p-2a7e6d3a.system.entry.js → p-93cecc43.system.entry.js} +1 -1
- package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
- package/pn-market-web-components/p-ba41a7c0.system.entry.js +1 -0
- package/pn-market-web-components/p-c5a97974.entry.js +1 -0
- package/pn-market-web-components/{p-7f5bee11.entry.js → p-dc1827a6.entry.js} +1 -1
- package/pn-market-web-components/p-e32dc098.entry.js +1 -0
- package/pn-market-web-components/p-e66a8bb8.system.entry.js +1 -0
- package/pn-market-web-components/{p-ddbd131f.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
- package/pn-market-web-components/p-ec96434c.system.entry.js +1 -0
- package/pn-market-web-components/{p-e23a18f4.system.entry.js → p-f7d1c0a0.system.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +13 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +14 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +20 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +6 -4
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +21 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +4 -2
- package/types/components/layout-components/pn-marketweb-siteheader/translations.d.ts +15 -0
- package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.d.ts +1 -1
- package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector.d.ts +1 -1
- package/types/components/profile/pn-profile-selector/pn-profile-selector-option.d.ts +1 -1
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +1 -1
- package/types/components.d.ts +89 -45
- package/umd/pn-marketweb-salesforce.js +1 -1
- package/cjs/pn-marketweb-siteheader-profileselection.cjs.entry.js +0 -161
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.js +0 -319
- package/esm/pn-marketweb-siteheader-profileselection.entry.js +0 -157
- package/esm-es5/pn-marketweb-siteheader-profileselection.entry.js +0 -1
- package/pn-market-web-components/p-39c42017.entry.js +0 -1
- package/pn-market-web-components/p-3a4b70d1.system.entry.js +0 -1
- package/pn-market-web-components/p-47cf8713.system.entry.js +0 -1
- package/pn-market-web-components/p-63a2ba1c.entry.js +0 -1
- package/pn-market-web-components/p-7e294268.entry.js +0 -1
- package/pn-market-web-components/p-a26e5490.system.entry.js +0 -1
- package/pn-market-web-components/p-a94593a9.system.entry.js +0 -1
- package/pn-market-web-components/p-ac8285b4.entry.js +0 -1
- package/pn-market-web-components/p-b1685197.entry.js +0 -1
- package/pn-market-web-components/p-e08a29ff.entry.js +0 -1
- package/pn-market-web-components/p-ea39d576.entry.js +0 -1
- package/pn-market-web-components/p-fcea21cb.entry.js +0 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.d.ts +0 -28
package/custom-elements/index.js
CHANGED
|
@@ -183,8 +183,8 @@ let PnCustomernumberSelector$1 = class extends HTMLElement {
|
|
|
183
183
|
this.__registerHost();
|
|
184
184
|
this.language = "sv";
|
|
185
185
|
this.open = false;
|
|
186
|
-
this.
|
|
187
|
-
this.description = "
|
|
186
|
+
this.heading = "";
|
|
187
|
+
this.description = "";
|
|
188
188
|
this.i18n = translations$a["en"];
|
|
189
189
|
}
|
|
190
190
|
componentWillLoad() {
|
|
@@ -199,7 +199,7 @@ let PnCustomernumberSelector$1 = class extends HTMLElement {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
render() {
|
|
202
|
-
return (h(Host, null, h("div", { class: "customernumber-container" }, h("button", { class: "customernumber-toggle", "aria-label": this.i18n.toggleLinkTitleText, onClick: () => this.open = !this.open }, h("div", { class: "customernumber-selected" }, h("strong", { class: "customernumber-selected-title" }, this.
|
|
202
|
+
return (h(Host, null, h("div", { class: "customernumber-container" }, h("button", { class: "customernumber-toggle", "aria-label": this.i18n.toggleLinkTitleText, onClick: () => this.open = !this.open }, h("div", { class: "customernumber-selected" }, h("strong", { class: "customernumber-selected-title" }, this.heading), h("div", { class: "customernumber-selected-description" }, this.description)), h("pn-icon", { symbol: this.open ? 'angle-up' : 'angle-down', small: "false", color: "blue700" })), h("div", { class: "customernumber-options" }, h("slot", null)))));
|
|
203
203
|
}
|
|
204
204
|
get hostElement() { return this; }
|
|
205
205
|
static get style() { return pnCustomernumberSelectorCss; }
|
|
@@ -211,12 +211,12 @@ let PnProfileSelectorOption$2 = class extends HTMLElement {
|
|
|
211
211
|
constructor() {
|
|
212
212
|
super();
|
|
213
213
|
this.__registerHost();
|
|
214
|
-
this.
|
|
214
|
+
this.heading = "";
|
|
215
215
|
this.description = "";
|
|
216
216
|
this.url = "";
|
|
217
217
|
}
|
|
218
218
|
render() {
|
|
219
|
-
return (h(Host, null, h("a", { class: "customernumberoption", href: this.url }, h("span", { class: "customernumberoption-text" }, h("span", { class: "customernumberoption-title" }, this.
|
|
219
|
+
return (h(Host, null, h("a", { class: "customernumberoption", href: this.url }, h("span", { class: "customernumberoption-text" }, h("span", { class: "customernumberoption-title" }, this.heading), h("span", { class: "customernumberoption-description" }, this.description), h("slot", null)))));
|
|
220
220
|
}
|
|
221
221
|
get hostElement() { return this; }
|
|
222
222
|
static get style() { return pnCustomernumberSelectorOptionCss; }
|
|
@@ -2538,14 +2538,16 @@ let PnfindPrice = class extends HTMLElement {
|
|
|
2538
2538
|
return;
|
|
2539
2539
|
}
|
|
2540
2540
|
const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory.toLocaleLowerCase() === this.sizecategory.value.toLocaleLowerCase());
|
|
2541
|
-
if (this.weight
|
|
2541
|
+
if (!this.weight) {
|
|
2542
2542
|
return;
|
|
2543
2543
|
}
|
|
2544
2544
|
const comparisonWeight = this.weight.value <= 20 ? this.weight.value * 1000 : this.weight.value;
|
|
2545
|
-
let
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2545
|
+
let weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) === comparisonWeight);
|
|
2546
|
+
if (this.weightvalue !== 0) {
|
|
2547
|
+
let clubbedProducts = sizeItemData.filter(x => x.maxweight.toString().includes("upto")).
|
|
2548
|
+
filter(x => (Number(x.maxweight.toString().toLocaleLowerCase().replace("upto", '')) - comparisonWeight) >= 0);
|
|
2549
|
+
weightFilteredData = weightFilteredData.concat(clubbedProducts);
|
|
2550
|
+
}
|
|
2549
2551
|
if (weightFilteredData.length === 0 && this.weightvalue !== 0) {
|
|
2550
2552
|
weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) >= comparisonWeight);
|
|
2551
2553
|
if (weightFilteredData.length > 0) {
|
|
@@ -2620,10 +2622,10 @@ let PnfindPriceResult = class extends HTMLElement {
|
|
|
2620
2622
|
}
|
|
2621
2623
|
this.showMeasurement = (this.item.maxmått !== null) || (this.item.rulle !== null);
|
|
2622
2624
|
this.linkId = `${this.item.id}-${this.item.name.toLocaleLowerCase().replace(/[^a-zA-Z0-9]/g, '')}`;
|
|
2623
|
-
var
|
|
2624
|
-
this.shopLabel =
|
|
2625
|
-
this.shopUrl =
|
|
2626
|
-
this.shopId =
|
|
2625
|
+
var showServicepointLink = (this.item.ombudpurchase === "Yes");
|
|
2626
|
+
this.shopLabel = showServicepointLink ? state$5.i18n.ombudHeader : state$5.i18n.stampshopcta;
|
|
2627
|
+
this.shopUrl = showServicepointLink ? state$5.market.servicePoint : stampShopUrl$1;
|
|
2628
|
+
this.shopId = showServicepointLink ? '-servicepoint' : '-stampshop';
|
|
2627
2629
|
}
|
|
2628
2630
|
render() {
|
|
2629
2631
|
return (h(Host, null, h("pn-product-card", { "data-productid": this.item.id }, h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }), h("div", { slot: "title" }, this.item.infopagelink ?
|
|
@@ -2632,7 +2634,7 @@ let PnfindPriceResult = class extends HTMLElement {
|
|
|
2632
2634
|
(h("pn-titletag", { slot: "Snabbast", icon: "bolt", color: "blue700" }, this.item.highestrankusp))
|
|
2633
2635
|
: (this.item.highestrankusp === "Billigast") ?
|
|
2634
2636
|
(h("pn-titletag", { slot: "Billigast", icon: "box-label", color: "green700" }, this.item.highestrankusp))
|
|
2635
|
-
: null), h("div", { slot: "content" }, h("div", { class: "content" }, (this.item.description) ? (h("div", { class: "description" }, this.description.map((desc) => (h("li", null, desc))))) : null, (this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)), this.item.note ? (h("
|
|
2637
|
+
: null), h("div", { slot: "content" }, h("div", { class: "content" }, (this.item.description) ? (h("div", { class: "description" }, this.description.map((desc) => (h("li", null, desc))))) : null, (this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)), this.item.note ? (h("div", { slot: "note" }, h("p", null, this.item.note))) : null, this.item.additionalusp ? (h("div", { slot: "additionalUSP" }, this.Usp1 ? (h("span", null, this.Usp1)) : null, this.Usp2 ? (h("span", null, this.Usp2)) : null, this.Usp3 ? (h("span", null, this.Usp3)) : null)) : null, this.showMeasurement ?
|
|
2636
2638
|
(h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle })) : null, h("div", { slot: "cardprice" }, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state$5.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state$5.market.currency, url: sendDirectUrl$1, linkid: this.linkId + '-portal' })) : null, this.item.pricestamps ? ((this.item.name.toLocaleLowerCase() !== "riktiga vykort") ?
|
|
2637
2639
|
(h("pn-product-card-price", { slot: "stampPrice", label: this.shopLabel, amount: this.item.pricestamps + '', currency: state$5.market.currency, url: this.shopUrl, linkid: this.linkId + this.shopId })) :
|
|
2638
2640
|
(h("pn-product-card-price", { slot: "riktiga", label: state$5.i18n.riktigaVykort, amount: this.item.pricestamps + '', currency: state$5.market.currency, url: RiktigaValues["WebUrl"], linkid: this.linkId + '-riktiga' }))) : null), h("div", { slot: "servicepoint" }, (this.item.showservicepointlink) ? (h("a", { href: state$5.market.servicePoint, target: "_blank" }, h("pn-icon", { symbol: "map-marker", color: "blue700" }), state$5.i18n.servicePointLink)) : null), h("div", { slot: "mobiledownload" }, (this.item.name.toLocaleLowerCase() === "riktiga vykort") ?
|
|
@@ -4037,7 +4039,8 @@ const translations$4 = {
|
|
|
4037
4039
|
"menuHomeButton": "Hem",
|
|
4038
4040
|
"menuGoBackButton": "Gå tillbaka",
|
|
4039
4041
|
"mainMenuButton": "Meny",
|
|
4040
|
-
"menuStartButton": "Start"
|
|
4042
|
+
"menuStartButton": "Start",
|
|
4043
|
+
"profileSelectionFlyoutHeading": "Inloggad som",
|
|
4041
4044
|
},
|
|
4042
4045
|
'en': {
|
|
4043
4046
|
"searchlabel": "Search",
|
|
@@ -4046,7 +4049,8 @@ const translations$4 = {
|
|
|
4046
4049
|
"menuHomeButton": "Home",
|
|
4047
4050
|
"menuGoBackButton": "Go back",
|
|
4048
4051
|
"mainMenuButton": "Menu",
|
|
4049
|
-
"menuStartButton": "Start"
|
|
4052
|
+
"menuStartButton": "Start",
|
|
4053
|
+
"profileSelectionFlyoutHeading": "Logged in as",
|
|
4050
4054
|
},
|
|
4051
4055
|
'da': {
|
|
4052
4056
|
"searchlabel": "Søg",
|
|
@@ -4055,7 +4059,8 @@ const translations$4 = {
|
|
|
4055
4059
|
"menuHomeButton": "Hjem",
|
|
4056
4060
|
"menuGoBackButton": "Gå tilbage",
|
|
4057
4061
|
"mainMenuButton": "Menu",
|
|
4058
|
-
"menuStartButton": "Start"
|
|
4062
|
+
"menuStartButton": "Start",
|
|
4063
|
+
"profileSelectionFlyoutHeading": "Logget ind som",
|
|
4059
4064
|
},
|
|
4060
4065
|
'no': {
|
|
4061
4066
|
"searchlabel": "Søk",
|
|
@@ -4064,7 +4069,8 @@ const translations$4 = {
|
|
|
4064
4069
|
"menuHomeButton": "Hjem",
|
|
4065
4070
|
"menuGoBackButton": "Gå tilbake",
|
|
4066
4071
|
"mainMenuButton": "Meny",
|
|
4067
|
-
"menuStartButton": "Start"
|
|
4072
|
+
"menuStartButton": "Start",
|
|
4073
|
+
"profileSelectionFlyoutHeading": "Logget på som",
|
|
4068
4074
|
},
|
|
4069
4075
|
'fi': {
|
|
4070
4076
|
"searchlabel": "Hae",
|
|
@@ -4073,7 +4079,18 @@ const translations$4 = {
|
|
|
4073
4079
|
"menuHomeButton": "Koti",
|
|
4074
4080
|
"menuGoBackButton": "Mene takaisin",
|
|
4075
4081
|
"mainMenuButton": "Valikko",
|
|
4076
|
-
"menuStartButton": "Alkaa"
|
|
4082
|
+
"menuStartButton": "Alkaa",
|
|
4083
|
+
"profileSelectionFlyoutHeading": "Kirjautunut sisään nimellä",
|
|
4084
|
+
},
|
|
4085
|
+
'de': {
|
|
4086
|
+
"searchlabel": "Suche",
|
|
4087
|
+
"searchplaceholder": "Wonach suchen Sie?",
|
|
4088
|
+
"searchbuttontext": "Suche",
|
|
4089
|
+
"menuHomeButton": "Heim",
|
|
4090
|
+
"menuGoBackButton": "Geh zurück",
|
|
4091
|
+
"mainMenuButton": "Menü",
|
|
4092
|
+
"menuStartButton": "Start",
|
|
4093
|
+
"profileSelectionFlyoutHeading": "Eingeloggt als",
|
|
4077
4094
|
}
|
|
4078
4095
|
};
|
|
4079
4096
|
|
|
@@ -4335,6 +4352,8 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4335
4352
|
this.hideSearch = false;
|
|
4336
4353
|
/** Hides the login if set to true*/
|
|
4337
4354
|
this.hideLogin = false;
|
|
4355
|
+
/** If this is selected we will show the new profile selection dropdown instead of the login version */
|
|
4356
|
+
this.showProfileSelection = false;
|
|
4338
4357
|
/** Autocomplete endpoint */
|
|
4339
4358
|
this.AutocompleteEndpoint = "";
|
|
4340
4359
|
/** Forward session to backend */
|
|
@@ -4343,6 +4362,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4343
4362
|
this.cache = false;
|
|
4344
4363
|
/** Event based only language switch */
|
|
4345
4364
|
this.spaMode = false;
|
|
4365
|
+
this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
|
|
4346
4366
|
this.gotData = false;
|
|
4347
4367
|
this.fetchingData = false;
|
|
4348
4368
|
this.homePageLink = "/";
|
|
@@ -4505,6 +4525,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4505
4525
|
}
|
|
4506
4526
|
onLoginStateChange(e) {
|
|
4507
4527
|
var _a, _b, _c;
|
|
4528
|
+
console.log('onLoginStateChange(e', e);
|
|
4508
4529
|
if (((_a = e.detail) === null || _a === void 0 ? void 0 : _a.loggedIn) && ((_b = e.detail) === null || _b === void 0 ? void 0 : _b.token)) {
|
|
4509
4530
|
this.loggedIn = ((_c = e.detail) === null || _c === void 0 ? void 0 : _c.loggedIn) === true;
|
|
4510
4531
|
}
|
|
@@ -4552,7 +4573,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4552
4573
|
var _a, _b, _c, _d, _e, _f;
|
|
4553
4574
|
return (h(Host, { language: this.language, market: this.market, environment: this.environment }, h("header", null, h("div", { class: "siteheader-row" }, h("div", { class: "siteheader-topleft" }, h("slot", { name: "topleft" }), (this.gotData && this.siteSelector && !this.hideSiteSelector) &&
|
|
4554
4575
|
h("pn-site-selector", { language: this.language, buttontext: (_b = (_a = this.siteSelector) === null || _a === void 0 ? void 0 : _a.currentSiteTitle) !== null && _b !== void 0 ? _b : 'postnord' }, (this.gotData && ((_c = this.siteSelector) === null || _c === void 0 ? void 0 : _c.currentSiteTitle)) &&
|
|
4555
|
-
h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle + ' ', description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_d = this.siteSelector) === null || _d === void 0 ? void 0 : _d.siteSelections)) && this.siteSelector.siteSelections.map((site) => h("pn-site-selector-item", { heading: site.linkText + ' ', description: site.linkDescription, url: this.adjustSiteSelectorUrl(site.href), newwindow: site.openInNewWindow })))), h("div", { class: "siteheader-logocontainer" }, h("a", { href: this.homePageLink, title: "Home", class: "siteheader-logolink" }, h("slot", { name: "logo" }, h("svg", { class: "siteheader-logo", xmlns: "http://www.w3.org/2000/svg", width: "12.7rem", height: "2.4rem", viewBox: "0 0 141.73 26.65" }, h("path", { d: "M108.84,13.35c0,6.34-5.17,9-10,9S89,19.76,89,13.63c0-6.28,5.08-9,10-9S108.84,7.25,108.84,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.29,3.29,0,0,0,3.42,3.41A3.24,3.24,0,0,0,102.28,13.54Zm-83,0c0,4.83-3.32,8.82-8.49,8.82a6.54,6.54,0,0,1-4.65-1.57v5.86H0V5.16H6.17V6.8a6.43,6.43,0,0,1,5.11-2.18C16.41,4.62,19.31,8.58,19.31,13.54Zm-6.53,0A3.27,3.27,0,0,0,9.4,10,3.28,3.28,0,0,0,6,13.54,3.29,3.29,0,0,0,9.4,16.95,3.24,3.24,0,0,0,12.78,13.54Zm103.69,0.27c0-2.54,1.54-3.32,3.6-3.32a6.56,6.56,0,0,1,2.08.3L122.3,5.1a3.92,3.92,0,0,0-1.45-.18c-3.45,0-4.38,2.18-4.38,2.18V5.16H110.3V21.84h6.17v-8ZM141.73,0V21.84h-6.16V20.21a6.43,6.43,0,0,1-5.11,2.18c-5.14,0-8-4-8-8.91s3.32-8.82,8.49-8.82a6.54,6.54,0,0,1,4.65,1.57v-5Zm-6,13.48a3.28,3.28,0,0,0-3.41-3.41A3.24,3.24,0,0,0,129,13.47,3.4,3.4,0,1,0,135.75,13.47ZM81.35,4.62c-3.6,0-4.9,2.18-4.9,2.18V5.16H70.29V21.84h6.16V13.29c0-2.11.79-3.08,2.69-3.08s2.18,1.57,2.18,3.57v8.07h6.22V11.6C87.55,7,85.34,4.62,81.35,4.62ZM64.07,1.42H57.9V21.84h6.16V10.36H67l2.81-5.2H64.07V1.42ZM50.26,11.21c-2-.3-2.87-0.3-2.87-1.09s0.81-.94,2.42-0.94a16.15,16.15,0,0,1,5.11.91L56,5.41a24.56,24.56,0,0,0-6.13-.75c-5.89,0-9,2.27-9,5.89,0,2.81,1.66,4.47,6.53,5.11,2.06,0.27,2.81.39,2.81,1.15s-0.82,1-2.24,1a16.67,16.67,0,0,1-6-1.3L40.77,21.3a22.14,22.14,0,0,0,6.68,1c6.35,0,9.28-2.24,9.28-5.89C56.72,13.54,55.15,12,50.26,11.21ZM40.19,13.35c0,6.34-5.17,9-10,9s-9.82-2.6-9.82-8.73c0-6.28,5.08-9,10-9S40.19,7.25,40.19,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.28,3.28,0,0,0,3.41,3.41A3.24,3.24,0,0,0,33.63,13.54Z", fill: "#00A0D6", transform: "translate(0 0)" }))))), h("div", { class: "siteheader-topright" }, h("slot", { name: "toprightstart" }), (this.gotData && this.loginDialog && !this.hideLogin) && (h("pn-marketweb-siteheader-login", { token: this.userToken, fullname: this.userFullname, loggedin: this.userLoggedin, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
|
|
4576
|
+
h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle + ' ', description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_d = this.siteSelector) === null || _d === void 0 ? void 0 : _d.siteSelections)) && this.siteSelector.siteSelections.map((site) => h("pn-site-selector-item", { heading: site.linkText + ' ', description: site.linkDescription, url: this.adjustSiteSelectorUrl(site.href), newwindow: site.openInNewWindow })))), h("div", { class: "siteheader-logocontainer" }, h("a", { href: this.homePageLink, title: "Home", class: "siteheader-logolink" }, h("slot", { name: "logo" }, h("svg", { class: "siteheader-logo", xmlns: "http://www.w3.org/2000/svg", width: "12.7rem", height: "2.4rem", viewBox: "0 0 141.73 26.65" }, h("path", { d: "M108.84,13.35c0,6.34-5.17,9-10,9S89,19.76,89,13.63c0-6.28,5.08-9,10-9S108.84,7.25,108.84,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.29,3.29,0,0,0,3.42,3.41A3.24,3.24,0,0,0,102.28,13.54Zm-83,0c0,4.83-3.32,8.82-8.49,8.82a6.54,6.54,0,0,1-4.65-1.57v5.86H0V5.16H6.17V6.8a6.43,6.43,0,0,1,5.11-2.18C16.41,4.62,19.31,8.58,19.31,13.54Zm-6.53,0A3.27,3.27,0,0,0,9.4,10,3.28,3.28,0,0,0,6,13.54,3.29,3.29,0,0,0,9.4,16.95,3.24,3.24,0,0,0,12.78,13.54Zm103.69,0.27c0-2.54,1.54-3.32,3.6-3.32a6.56,6.56,0,0,1,2.08.3L122.3,5.1a3.92,3.92,0,0,0-1.45-.18c-3.45,0-4.38,2.18-4.38,2.18V5.16H110.3V21.84h6.17v-8ZM141.73,0V21.84h-6.16V20.21a6.43,6.43,0,0,1-5.11,2.18c-5.14,0-8-4-8-8.91s3.32-8.82,8.49-8.82a6.54,6.54,0,0,1,4.65,1.57v-5Zm-6,13.48a3.28,3.28,0,0,0-3.41-3.41A3.24,3.24,0,0,0,129,13.47,3.4,3.4,0,1,0,135.75,13.47ZM81.35,4.62c-3.6,0-4.9,2.18-4.9,2.18V5.16H70.29V21.84h6.16V13.29c0-2.11.79-3.08,2.69-3.08s2.18,1.57,2.18,3.57v8.07h6.22V11.6C87.55,7,85.34,4.62,81.35,4.62ZM64.07,1.42H57.9V21.84h6.16V10.36H67l2.81-5.2H64.07V1.42ZM50.26,11.21c-2-.3-2.87-0.3-2.87-1.09s0.81-.94,2.42-0.94a16.15,16.15,0,0,1,5.11.91L56,5.41a24.56,24.56,0,0,0-6.13-.75c-5.89,0-9,2.27-9,5.89,0,2.81,1.66,4.47,6.53,5.11,2.06,0.27,2.81.39,2.81,1.15s-0.82,1-2.24,1a16.67,16.67,0,0,1-6-1.3L40.77,21.3a22.14,22.14,0,0,0,6.68,1c6.35,0,9.28-2.24,9.28-5.89C56.72,13.54,55.15,12,50.26,11.21ZM40.19,13.35c0,6.34-5.17,9-10,9s-9.82-2.6-9.82-8.73c0-6.28,5.08-9,10-9S40.19,7.25,40.19,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.28,3.28,0,0,0,3.41,3.41A3.24,3.24,0,0,0,33.63,13.54Z", fill: "#00A0D6", transform: "translate(0 0)" }))))), h("div", { class: "siteheader-topright" }, h("slot", { name: "toprightstart" }), (this.gotData && this.loginDialog && !this.hideLogin) && (h("pn-marketweb-siteheader-login", { token: this.userToken, fullname: this.userFullname, loggedin: this.userLoggedin, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n, showProfileSelection: this.showProfileSelection })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
|
|
4556
4577
|
h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))), h("slot", { name: "toprightend" }))), h("div", { class: "siteheader-row" }, h("div", { class: "siteheader-menu" }, (this.gotData && this.menuItems) && (h("pn-mainnav", { market: this.market, language: this.language, onMenuOpenChange: (e) => {
|
|
4557
4578
|
document.body.setAttribute("data-siteheader-menuopen", (e.detail + ''));
|
|
4558
4579
|
} }, h("pn-mainnav-level", null, h("pn-mainnav-list", null, this.menuItems.map((item) => {
|
|
@@ -4564,7 +4585,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4564
4585
|
return (h("pn-mainnav-link", { name: childitem.name, href: childitem.href, target: (_a = childitem.linkTarget) !== null && _a !== void 0 ? _a : "_self", linkid: childitem.trackingId }));
|
|
4565
4586
|
})), (item.promotedMenuItems && item.promotedMenuItems.length > 0) &&
|
|
4566
4587
|
h("pn-mainnav-list", { heading: item.promotedMenuItemsHeader }, item.promotedMenuItems.map((childitem) => (h("pn-mainnav-link", { href: childitem.href, name: childitem.linkText, target: childitem.openInNewWindow ? "_blank" : "_self", linkid: this.promotedItemId(childitem) + item.id })))))));
|
|
4567
|
-
})), h("div", { slot: "footer", class: "siteheader-menu-footer" }, (this.gotData && this.loginDialog && !this.hideLogin) && (h("pn-marketweb-siteheader-login", { emitEvents: false, loginDialog: this.loginDialog, endpoint: this.endpoint, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
|
|
4588
|
+
})), h("div", { slot: "footer", class: "siteheader-menu-footer" }, (this.gotData && this.loginDialog && !this.hideLogin) && (h("pn-marketweb-siteheader-login", { emitEvents: false, loginDialog: this.loginDialog, endpoint: this.endpoint, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n, showProfileSelection: this.showProfileSelection })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
|
|
4568
4589
|
h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))), !this.hideSiteSelector &&
|
|
4569
4590
|
h("pn-site-selector", { language: this.language }, (this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
|
|
4570
4591
|
h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))), h("div", { slot: "top", class: "siteheader-menu-top" }, h("pn-marketweb-siteheader-search", { language: this.language, search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), h("pn-marketweb-siteheader-search", { language: this.language, primary: true, search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
|
|
@@ -4577,7 +4598,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4577
4598
|
static get style() { return pnMarketwebSiteheaderCss; }
|
|
4578
4599
|
};
|
|
4579
4600
|
|
|
4580
|
-
const pnMarketwebSiteheaderLoginCss = "pn-marketweb-siteheader-login{padding:1rem 0;max-height:5.2rem;position:relative}pn-marketweb-siteheader-login
|
|
4601
|
+
const pnMarketwebSiteheaderLoginCss = "pn-marketweb-siteheader-login{padding:1rem 0;max-height:5.2rem;position:relative}pn-marketweb-siteheader-login pn-nav-dropdown{display:none}pn-marketweb-siteheader-login.hydrated pn-nav-dropdown{display:block}";
|
|
4581
4602
|
|
|
4582
4603
|
let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
4583
4604
|
constructor() {
|
|
@@ -4588,12 +4609,15 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4588
4609
|
this.endpoint = "";
|
|
4589
4610
|
/** Access token passed from backend */
|
|
4590
4611
|
this.token = "";
|
|
4612
|
+
this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
|
|
4591
4613
|
this.emitEvents = true;
|
|
4592
4614
|
// Login dialog
|
|
4593
4615
|
this.loginDialog = null;
|
|
4594
4616
|
/** User Fullname */
|
|
4595
4617
|
this.fullname = "";
|
|
4596
4618
|
this.loggedin = false;
|
|
4619
|
+
/** If this is selected we will show the new profile selection dropdown instead of the login version */
|
|
4620
|
+
this.showProfileSelection = false;
|
|
4597
4621
|
this.loginManager = null;
|
|
4598
4622
|
this.toggleButtonText = "";
|
|
4599
4623
|
this.username = this.fullname;
|
|
@@ -4617,6 +4641,47 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4617
4641
|
this.toggleButtonText = this.loginDialog.loginMenuLinkText;
|
|
4618
4642
|
this.loginManager.init(this.emitEvents);
|
|
4619
4643
|
this.setToggleButtonText();
|
|
4644
|
+
this.adjustLoginLinks();
|
|
4645
|
+
}
|
|
4646
|
+
adjustLoginLinks() {
|
|
4647
|
+
var _a, _b, _c;
|
|
4648
|
+
if (!((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loginMenuLinks)) {
|
|
4649
|
+
return;
|
|
4650
|
+
}
|
|
4651
|
+
const adjustLink = (link, i) => {
|
|
4652
|
+
link.isLogoutLink = (link.href.indexOf('logout') !== -1);
|
|
4653
|
+
if (link.isLogoutLink) {
|
|
4654
|
+
link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
|
|
4655
|
+
}
|
|
4656
|
+
if (i === 0 && !link.href) {
|
|
4657
|
+
link.href = this.loginManager.getLoginUrl();
|
|
4658
|
+
link.linkType = 'primary';
|
|
4659
|
+
}
|
|
4660
|
+
if (link.primaryLinkApperance && !link.linkType) {
|
|
4661
|
+
link.linkType = 'primary';
|
|
4662
|
+
}
|
|
4663
|
+
};
|
|
4664
|
+
(_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loginMenuLinks.forEach(adjustLink);
|
|
4665
|
+
(_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks.forEach(adjustLink);
|
|
4666
|
+
this.loginDialog.legacyLoginLinks = [
|
|
4667
|
+
{
|
|
4668
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl),
|
|
4669
|
+
linkText: this.loginDialog.loginLinkText,
|
|
4670
|
+
openInNewWindow: false,
|
|
4671
|
+
isLogoutLink: false,
|
|
4672
|
+
pageLink: null,
|
|
4673
|
+
linkType: 'primary',
|
|
4674
|
+
primaryLinkApperance: true
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.registerUrl),
|
|
4678
|
+
linkText: this.loginDialog.createLoginLinkText,
|
|
4679
|
+
openInNewWindow: false,
|
|
4680
|
+
isLogoutLink: false,
|
|
4681
|
+
pageLink: null,
|
|
4682
|
+
primaryLinkApperance: false
|
|
4683
|
+
}
|
|
4684
|
+
];
|
|
4620
4685
|
}
|
|
4621
4686
|
setUserName() {
|
|
4622
4687
|
const userInfo = this.loginManager.getUserInfo();
|
|
@@ -4654,74 +4719,22 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4654
4719
|
this.setToggleButtonText();
|
|
4655
4720
|
}
|
|
4656
4721
|
}
|
|
4657
|
-
uniqueId(text) {
|
|
4658
|
-
return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" + (this.emitEvents ? "1" : "2");
|
|
4659
|
-
}
|
|
4660
|
-
linkAppearanceAttributes(link) {
|
|
4661
|
-
let attributes = {};
|
|
4662
|
-
if (link.linkType) {
|
|
4663
|
-
switch (link.linkType) {
|
|
4664
|
-
case 'primary':
|
|
4665
|
-
attributes = {
|
|
4666
|
-
appearance: '',
|
|
4667
|
-
variant: ''
|
|
4668
|
-
};
|
|
4669
|
-
break;
|
|
4670
|
-
case 'secondary':
|
|
4671
|
-
attributes = {
|
|
4672
|
-
appearance: 'light',
|
|
4673
|
-
variant: 'outlined'
|
|
4674
|
-
};
|
|
4675
|
-
break;
|
|
4676
|
-
case 'regularlink':
|
|
4677
|
-
default:
|
|
4678
|
-
attributes = {
|
|
4679
|
-
appearance: 'light',
|
|
4680
|
-
variant: 'borderless',
|
|
4681
|
-
icon: 'arrow-right'
|
|
4682
|
-
};
|
|
4683
|
-
break;
|
|
4684
|
-
}
|
|
4685
|
-
return attributes;
|
|
4686
|
-
}
|
|
4687
|
-
if (!link.linkType) {
|
|
4688
|
-
attributes = {
|
|
4689
|
-
appearance: link.primaryLinkApperance ? "dark" : "light"
|
|
4690
|
-
};
|
|
4691
|
-
}
|
|
4692
|
-
return attributes;
|
|
4693
|
-
}
|
|
4694
4722
|
render() {
|
|
4695
|
-
var _a, _b, _c;
|
|
4696
4723
|
if (!this.loginDialog) {
|
|
4697
4724
|
return;
|
|
4698
4725
|
}
|
|
4699
4726
|
let hostElementAttribute = {
|
|
4700
|
-
username: null
|
|
4727
|
+
username: null,
|
|
4728
|
+
loggedin: 'false',
|
|
4701
4729
|
};
|
|
4702
4730
|
if (this.username) {
|
|
4703
4731
|
hostElementAttribute.username = this.username;
|
|
4732
|
+
hostElementAttribute.loggedin = this.loggedin + '';
|
|
4704
4733
|
}
|
|
4705
|
-
return (h(Host, Object.assign({}, hostElementAttribute), h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" },
|
|
4706
|
-
h("
|
|
4707
|
-
h("div", null, (_a = this.loginDialog.loginTitle) !== null && _a !== void 0 ? _a : h("strong", null, this.loginDialog.loginTitle), ((_b = this.loginDialog.loginMenuLinks) === null || _b === void 0 ? void 0 : _b.length) > 0 ?
|
|
4708
|
-
h("ul", null, this.loginDialog.loginMenuLinks.map((link, i) => {
|
|
4709
|
-
const href = (i === 0 && !link.href) ? this.loginManager.getLoginUrl() : link.href;
|
|
4710
|
-
return (h("li", null, h("pn-button", Object.assign({ href: href, id: this.uniqueId(link.linkText) }, this.linkAppearanceAttributes(link), (link.openInNewWindow && { target: '_blank' })), link.linkText)));
|
|
4711
|
-
}))
|
|
4712
|
-
: (h("ul", null, h("li", null, h("pn-button", { href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl), target: "_top" }, this.loginDialog.loginLinkText)), h("li", null, h("pn-button", { href: this.loginDialog.registerUrl, target: "_top", appearance: "light", variant: "outlined" }, this.loginDialog.createLoginLinkText)))))
|
|
4713
|
-
:
|
|
4714
|
-
h("div", null, h("ul", null, this.loginDialog.loggedInLinks.map((link) => {
|
|
4715
|
-
const isLogoutLink = link.href.indexOf('logout') !== -1;
|
|
4716
|
-
const href = (isLogoutLink) ? this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', '')) : link.href;
|
|
4717
|
-
return (h("li", null, h("pn-button", Object.assign({ href: href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => {
|
|
4718
|
-
if (isLogoutLink) {
|
|
4719
|
-
this.loginManager.clearUserData();
|
|
4720
|
-
}
|
|
4721
|
-
} }), link.linkText)));
|
|
4722
|
-
}))))
|
|
4734
|
+
return (h(Host, Object.assign({}, hostElementAttribute), h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" }, this.loggedin && this.showProfileSelection ?
|
|
4735
|
+
h("pn-marketweb-siteheader-login-profileselection", { loginDialog: this.loginDialog, loginManager: this.loginManager, loggedin: this.loggedin, i18n: this.i18n, idNamespace: this.emitEvents ? '1' : '2', endpoint: this.endpoint })
|
|
4723
4736
|
:
|
|
4724
|
-
h("
|
|
4737
|
+
h("pn-marketweb-siteheader-login-links", { loginDialog: this.loginDialog, loginManager: this.loginManager, loggedin: this.loggedin, idNamespace: this.emitEvents ? '1' : '2', username: this.username }))));
|
|
4725
4738
|
}
|
|
4726
4739
|
get hostElement() { return this; }
|
|
4727
4740
|
static get watchers() { return {
|
|
@@ -4731,85 +4744,21 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4731
4744
|
static get style() { return pnMarketwebSiteheaderLoginCss; }
|
|
4732
4745
|
};
|
|
4733
4746
|
|
|
4734
|
-
const
|
|
4747
|
+
const pnMarketwebSiteheaderLoginLinklistCss = "pn-marketweb-siteheader-login-linklist{padding:1rem 0;max-height:5.2rem;position:relative}pn-marketweb-siteheader-login-linklist strong{padding:0.8rem 1.6rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}pn-marketweb-siteheader-login-linklist ul,pn-marketweb-siteheader-login-linklist li{list-style:none;margin:0;padding:0}pn-marketweb-siteheader-login-linklist li{padding:0.8rem 1.6rem}pn-marketweb-siteheader-login-linklist li pn-button{display:block;width:100%}";
|
|
4735
4748
|
|
|
4736
|
-
let
|
|
4749
|
+
let PnMarketwebSiteheaderLoginLinklist$1 = class extends HTMLElement {
|
|
4737
4750
|
constructor() {
|
|
4738
4751
|
super();
|
|
4739
4752
|
this.__registerHost();
|
|
4740
|
-
this.
|
|
4741
|
-
|
|
4742
|
-
this.
|
|
4743
|
-
/** Access token passed from backend */
|
|
4744
|
-
this.token = "";
|
|
4745
|
-
this.emitEvents = true;
|
|
4746
|
-
// Login dialog
|
|
4747
|
-
this.loginDialog = null;
|
|
4748
|
-
/** User Fullname */
|
|
4749
|
-
this.fullname = "";
|
|
4750
|
-
this.loggedin = false;
|
|
4753
|
+
this.heading = null;
|
|
4754
|
+
this.links = [];
|
|
4755
|
+
this.idNamespace = "";
|
|
4751
4756
|
this.loginManager = null;
|
|
4752
|
-
this.toggleButtonText = "";
|
|
4753
|
-
this.username = this.fullname;
|
|
4754
4757
|
}
|
|
4755
4758
|
componentWillLoad() {
|
|
4756
|
-
const userInfo = this.loggedin && this.fullname ? { given_name: this.fullname } : null;
|
|
4757
|
-
this.loginManager = new MarketWebLoginManager({ endpoint: this.endpoint, eventTarget: this.hostElement, userInfo });
|
|
4758
|
-
this.hostElement["loginmanager"] = this.loginManager;
|
|
4759
|
-
if (this.token) {
|
|
4760
|
-
this.loginManager.registerToken(this.token, 'backend');
|
|
4761
|
-
}
|
|
4762
|
-
else if (this.emitEvents) { // The primary login instance
|
|
4763
|
-
this.loginManager.invalidateTokenOfType('backend');
|
|
4764
|
-
}
|
|
4765
|
-
this.hostElement.addEventListener(this.loginManager.events.loginstatechange, this.onLoginStateChange.bind(this));
|
|
4766
|
-
this.init();
|
|
4767
|
-
this.setUserName();
|
|
4768
|
-
this.setToggleButtonText();
|
|
4769
|
-
}
|
|
4770
|
-
async init() {
|
|
4771
|
-
this.toggleButtonText = this.loginDialog.loginMenuLinkText;
|
|
4772
|
-
this.loginManager.init(this.emitEvents);
|
|
4773
|
-
this.setToggleButtonText();
|
|
4774
|
-
}
|
|
4775
|
-
setUserName() {
|
|
4776
|
-
const userInfo = this.loginManager.getUserInfo();
|
|
4777
|
-
let name = "";
|
|
4778
|
-
if (!this.loggedin || !userInfo) {
|
|
4779
|
-
this.username = name;
|
|
4780
|
-
}
|
|
4781
|
-
if (userInfo && userInfo.given_name) {
|
|
4782
|
-
name = userInfo.given_name + ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name) ? ` ${userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name}` : "");
|
|
4783
|
-
}
|
|
4784
|
-
if (!name && userInfo && userInfo.email) {
|
|
4785
|
-
name = userInfo.email;
|
|
4786
|
-
}
|
|
4787
|
-
if (!name && this.fullname) {
|
|
4788
|
-
name = this.fullname;
|
|
4789
|
-
}
|
|
4790
|
-
this.username = name;
|
|
4791
|
-
}
|
|
4792
|
-
setToggleButtonText() {
|
|
4793
|
-
if (this.loggedin) {
|
|
4794
|
-
this.toggleButtonText = this.username;
|
|
4795
|
-
if (!this.toggleButtonText) {
|
|
4796
|
-
this.toggleButtonText = this.loginDialog.loggedInButtonText;
|
|
4797
|
-
}
|
|
4798
|
-
}
|
|
4799
|
-
else {
|
|
4800
|
-
this.toggleButtonText = this.loginDialog.loginMenuLinkText;
|
|
4801
|
-
}
|
|
4802
|
-
}
|
|
4803
|
-
onLoginStateChange(e) {
|
|
4804
|
-
if (this.loggedin !== e.detail && this.emitEvents) {
|
|
4805
|
-
this.loggedin = e.detail;
|
|
4806
|
-
this.loginStateChange.emit({ loggedIn: this.loggedin, token: this.loginManager.getToken() });
|
|
4807
|
-
this.setUserName();
|
|
4808
|
-
this.setToggleButtonText();
|
|
4809
|
-
}
|
|
4810
4759
|
}
|
|
4811
4760
|
uniqueId(text) {
|
|
4812
|
-
return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" +
|
|
4761
|
+
return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" + this.idNamespace;
|
|
4813
4762
|
}
|
|
4814
4763
|
linkAppearanceAttributes(link) {
|
|
4815
4764
|
let attributes = {};
|
|
@@ -4846,43 +4795,199 @@ let PnMarketwebSiteheaderProfileSelection = class extends HTMLElement {
|
|
|
4846
4795
|
return attributes;
|
|
4847
4796
|
}
|
|
4848
4797
|
render() {
|
|
4849
|
-
|
|
4798
|
+
if (!this.links || this.links.length === 0) {
|
|
4799
|
+
return;
|
|
4800
|
+
}
|
|
4801
|
+
return (h(Host, null, this.heading ? h("strong", null, this.heading) : null, h("ul", null, this.links.map((link) => {
|
|
4802
|
+
return (h("li", null, h("pn-button", Object.assign({ href: link.href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => {
|
|
4803
|
+
if (link.isLogoutLink) {
|
|
4804
|
+
this.loginManager.clearUserData();
|
|
4805
|
+
}
|
|
4806
|
+
} }), link.linkText)));
|
|
4807
|
+
}))));
|
|
4808
|
+
}
|
|
4809
|
+
get hostElement() { return this; }
|
|
4810
|
+
static get style() { return pnMarketwebSiteheaderLoginLinklistCss; }
|
|
4811
|
+
};
|
|
4812
|
+
|
|
4813
|
+
const pnMarketwebSiteheaderLoginLinksCss = "";
|
|
4814
|
+
|
|
4815
|
+
let PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
4816
|
+
constructor() {
|
|
4817
|
+
super();
|
|
4818
|
+
this.__registerHost();
|
|
4819
|
+
// Login dialog
|
|
4820
|
+
this.loginDialog = null;
|
|
4821
|
+
this.loginManager = null;
|
|
4822
|
+
this.idNamespace = "";
|
|
4823
|
+
this.loggedin = false;
|
|
4824
|
+
this.username = "";
|
|
4825
|
+
}
|
|
4826
|
+
componentWillLoad() {
|
|
4827
|
+
this.init();
|
|
4828
|
+
console.log('from links', this.loggedin);
|
|
4829
|
+
}
|
|
4830
|
+
async init() {
|
|
4831
|
+
this.adjustLoginLinks();
|
|
4832
|
+
}
|
|
4833
|
+
adjustLoginLinks() {
|
|
4834
|
+
var _a, _b, _c, _d;
|
|
4835
|
+
if (!this.loginDialog) {
|
|
4836
|
+
return;
|
|
4837
|
+
}
|
|
4838
|
+
const adjustLink = (link, i) => {
|
|
4839
|
+
link.isLogoutLink = (link.href.indexOf('logout') !== -1);
|
|
4840
|
+
if (link.isLogoutLink) {
|
|
4841
|
+
link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
|
|
4842
|
+
}
|
|
4843
|
+
if (i === 0 && !link.href) {
|
|
4844
|
+
link.href = this.loginManager.getLoginUrl();
|
|
4845
|
+
link.linkType = 'primary';
|
|
4846
|
+
}
|
|
4847
|
+
if (link.primaryLinkApperance && !link.linkType) {
|
|
4848
|
+
link.linkType = 'primary';
|
|
4849
|
+
}
|
|
4850
|
+
};
|
|
4851
|
+
if ((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loginMenuLinks) {
|
|
4852
|
+
(_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loginMenuLinks.forEach(adjustLink);
|
|
4853
|
+
}
|
|
4854
|
+
if ((_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks) {
|
|
4855
|
+
(_d = this.loginDialog) === null || _d === void 0 ? void 0 : _d.loggedInLinks.forEach(adjustLink);
|
|
4856
|
+
}
|
|
4857
|
+
this.loginDialog.legacyLoginLinks = [
|
|
4858
|
+
{
|
|
4859
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl),
|
|
4860
|
+
linkText: this.loginDialog.loginLinkText,
|
|
4861
|
+
openInNewWindow: false,
|
|
4862
|
+
isLogoutLink: false,
|
|
4863
|
+
pageLink: null,
|
|
4864
|
+
linkType: 'primary',
|
|
4865
|
+
primaryLinkApperance: true
|
|
4866
|
+
},
|
|
4867
|
+
{
|
|
4868
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.registerUrl),
|
|
4869
|
+
linkText: this.loginDialog.createLoginLinkText,
|
|
4870
|
+
openInNewWindow: false,
|
|
4871
|
+
isLogoutLink: false,
|
|
4872
|
+
pageLink: null,
|
|
4873
|
+
primaryLinkApperance: false
|
|
4874
|
+
}
|
|
4875
|
+
];
|
|
4876
|
+
}
|
|
4877
|
+
render() {
|
|
4878
|
+
var _a;
|
|
4850
4879
|
if (!this.loginDialog) {
|
|
4851
4880
|
return;
|
|
4852
4881
|
}
|
|
4853
4882
|
let hostElementAttribute = {
|
|
4854
|
-
username: null
|
|
4883
|
+
username: null,
|
|
4884
|
+
loggedin: false,
|
|
4855
4885
|
};
|
|
4856
4886
|
if (this.username) {
|
|
4857
4887
|
hostElementAttribute.username = this.username;
|
|
4888
|
+
hostElementAttribute.loggedin = this.loggedin;
|
|
4858
4889
|
}
|
|
4859
|
-
return (h(Host, Object.assign({}, hostElementAttribute),
|
|
4860
|
-
h("div", { "data-loggedin": this.loggedin + '' }, (
|
|
4861
|
-
h("
|
|
4862
|
-
h("ul", null, this.loginDialog.loginMenuLinks.map((link, i) => {
|
|
4863
|
-
const href = (i === 0 && !link.href) ? this.loginManager.getLoginUrl() : link.href;
|
|
4864
|
-
return (h("li", null, h("pn-button", Object.assign({ href: href, id: this.uniqueId(link.linkText) }, this.linkAppearanceAttributes(link), (link.openInNewWindow && { target: '_blank' })), link.linkText)));
|
|
4865
|
-
}))
|
|
4866
|
-
: (h("ul", null, h("li", null, h("pn-button", { href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl), target: "_top" }, this.loginDialog.loginLinkText)), h("li", null, h("pn-button", { href: this.loginDialog.registerUrl, target: "_top", appearance: "light", variant: "outlined" }, this.loginDialog.createLoginLinkText)))))
|
|
4890
|
+
return (h(Host, Object.assign({}, hostElementAttribute), (!this.loginDialog.overrideLoginMenu) ?
|
|
4891
|
+
h("div", { "data-loggedin": this.loggedin + '' }, (this.loggedin) ?
|
|
4892
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
|
|
4867
4893
|
:
|
|
4868
|
-
h("div", null,
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
} }), link.linkText)));
|
|
4876
|
-
}))))
|
|
4877
|
-
:
|
|
4878
|
-
h("div", null, h("ul", null, (_c = this.loginDialog.loginMenuLinks) === null || _c === void 0 ? void 0 : _c.map(link => h("li", null, h("a", { href: link.href, target: link.openInNewWindow ? "_blank" : "_self", class: "btn btn-link" }, link.linkText))))))));
|
|
4894
|
+
h("div", null, ((_a = this.loginDialog.loginMenuLinks) === null || _a === void 0 ? void 0 : _a.length) > 0 ?
|
|
4895
|
+
h("pn-marketweb-siteheader-login-linklist", { heading: this.loginDialog.loginTitle, links: this.loginDialog.loginMenuLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
|
|
4896
|
+
:
|
|
4897
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.legacyLoginLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })))
|
|
4898
|
+
: null, (this.loginDialog.overrideLoginMenu) ?
|
|
4899
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loginMenuLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
|
|
4900
|
+
: null));
|
|
4879
4901
|
}
|
|
4880
4902
|
get hostElement() { return this; }
|
|
4881
4903
|
static get watchers() { return {
|
|
4882
|
-
"i18n": ["init"],
|
|
4883
4904
|
"loginDialog": ["init"]
|
|
4884
4905
|
}; }
|
|
4885
|
-
static get style() { return
|
|
4906
|
+
static get style() { return pnMarketwebSiteheaderLoginLinksCss; }
|
|
4907
|
+
};
|
|
4908
|
+
|
|
4909
|
+
const pnMarketwebSiteheaderLoginProfileselectionCss = ".pn-marketweb-siteheader-login-profileselection-heading{display:block;padding:0.5rem 0 1rem}.pn-marketweb-siteheader-login-profileselection-user,.pn-marketweb-siteheader-login-profileselection-currentprofile{margin-top:1rem;margin-bottom:1rem}.pn-marketweb-siteheader-login-profileselection-user-name,.pn-marketweb-siteheader-login-profileselection-currentprofile-name{line-height:1}.pn-marketweb-siteheader-login-profileselection-user-description,.pn-marketweb-siteheader-login-profileselection-currentprofile-description{font-weight:400;white-space:normal;word-break:break-all;color:#5E554A;font-size:0.75em}.pn-marketweb-siteheader-login-profileselection-divider{height:1rem;width:100%;background:#00A0D6;position:relative;margin-left:-1em;margin-top:1.6rem;margin-bottom:1.6rem;border-radius:0 0.6em 0.6em 0;padding:0}.pn-marketweb-siteheader-login-profileselection-divider::after{content:\"\";width:0.6em;height:0.6em;border-radius:50%;position:absolute;right:0;top:0;background:inherit;-webkit-transform:translateX(calc(100% + 0.2em));transform:translateX(calc(100% + 0.2em))}.pn-marketweb-siteheader-login-profileselection-profileoption-link{display:-ms-flexbox;display:flex;background:#FFFFFF;-webkit-transition:background 0.15s ease-in-out;transition:background 0.15s ease-in-out;margin:0 -1em;padding:0.6rem 1.6rem;text-decoration:none;color:#005D92;-ms-flex-align:center;align-items:center}.pn-marketweb-siteheader-login-profileselection-profileoption-link:hover,.pn-marketweb-siteheader-login-profileselection-profileoption-link:focus,.pn-marketweb-siteheader-login-profileselection-profileoption-link:active{background:#F3F2F2}.pn-marketweb-siteheader-login-profileselection-profileoption-content{-ms-flex-positive:1;flex-grow:1}.pn-marketweb-siteheader-login-profileselection-profileoption-name{font-weight:700}.pn-marketweb-siteheader-login-profileselection-profileoption-description{font-weight:400;white-space:normal;word-break:break-all;color:#5E554A;font-size:0.75em}.pn-marketweb-siteheader-login-profileselection-logout{padding:1.6rem;text-align:center;width:100%}.pn-marketweb-siteheader-login-profileselection-logout-link{display:inline-block;font-weight:500;color:#005D92;text-decoration:none}.pn-marketweb-siteheader-login-profileselection-logout-link:hover,.pn-marketweb-siteheader-login-profileselection-logout-link:focus,.pn-marketweb-siteheader-login-profileselection-logout-link:active{text-decoration:underline}";
|
|
4910
|
+
|
|
4911
|
+
let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
4912
|
+
constructor() {
|
|
4913
|
+
super();
|
|
4914
|
+
this.__registerHost();
|
|
4915
|
+
// Login dialog
|
|
4916
|
+
this.loginDialog = null;
|
|
4917
|
+
this.loginManager = null;
|
|
4918
|
+
this.endpoint = "";
|
|
4919
|
+
this.loggedin = false;
|
|
4920
|
+
this.idNamespace = "";
|
|
4921
|
+
this.heading = "";
|
|
4922
|
+
this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
|
|
4923
|
+
this.user = null;
|
|
4924
|
+
this.logoutLink = null;
|
|
4925
|
+
this.profileSelectorDialog = {
|
|
4926
|
+
currentProfile: {
|
|
4927
|
+
name: 'Hedin',
|
|
4928
|
+
customerid: '5560230053'
|
|
4929
|
+
},
|
|
4930
|
+
profiles: [
|
|
4931
|
+
{
|
|
4932
|
+
name: 'Bilmetro AB',
|
|
4933
|
+
customerid: '5560612789'
|
|
4934
|
+
}
|
|
4935
|
+
]
|
|
4936
|
+
};
|
|
4937
|
+
}
|
|
4938
|
+
componentWillLoad() {
|
|
4939
|
+
var _a;
|
|
4940
|
+
console.log('loginDialog', this.loginDialog);
|
|
4941
|
+
console.log('this.loginManager', this.loginManager);
|
|
4942
|
+
console.log('### this.loggedin', this.loggedin);
|
|
4943
|
+
console.log('this.endpoint', this.endpoint);
|
|
4944
|
+
if (!this.heading && ((_a = this.i18n) === null || _a === void 0 ? void 0 : _a.profileSelectionFlyoutHeading)) {
|
|
4945
|
+
this.heading = this.i18n.profileSelectionFlyoutHeading;
|
|
4946
|
+
}
|
|
4947
|
+
this.init();
|
|
4948
|
+
}
|
|
4949
|
+
init() {
|
|
4950
|
+
this.updateUserInfo();
|
|
4951
|
+
this.adjustLoginLinks();
|
|
4952
|
+
}
|
|
4953
|
+
adjustLoginLinks() {
|
|
4954
|
+
var _a, _b, _c, _d;
|
|
4955
|
+
const adjustLink = (link, i) => {
|
|
4956
|
+
link.isLogoutLink = (link.href.indexOf('logout') !== -1);
|
|
4957
|
+
if (link.isLogoutLink) {
|
|
4958
|
+
link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
|
|
4959
|
+
}
|
|
4960
|
+
if (i === 0 && !link.href) {
|
|
4961
|
+
link.href = this.loginManager.getLoginUrl();
|
|
4962
|
+
link.linkType = 'primary';
|
|
4963
|
+
}
|
|
4964
|
+
if (link.primaryLinkApperance && !link.linkType) {
|
|
4965
|
+
link.linkType = 'primary';
|
|
4966
|
+
}
|
|
4967
|
+
};
|
|
4968
|
+
if ((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loggedInLinks) {
|
|
4969
|
+
(_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loggedInLinks.forEach(adjustLink);
|
|
4970
|
+
}
|
|
4971
|
+
this.logoutLink = (_d = (_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks.filter(x => x.isLogoutLink)[0]) !== null && _d !== void 0 ? _d : null;
|
|
4972
|
+
}
|
|
4973
|
+
updateUserInfo() {
|
|
4974
|
+
const userInfo = this.loginManager.getUserInfo();
|
|
4975
|
+
this.user = userInfo;
|
|
4976
|
+
console.log('this.user', this.user);
|
|
4977
|
+
}
|
|
4978
|
+
render() {
|
|
4979
|
+
if (!this.loginDialog || !this.profileSelectorDialog) {
|
|
4980
|
+
return;
|
|
4981
|
+
}
|
|
4982
|
+
let hostElementAttribute = {};
|
|
4983
|
+
return (h(Host, Object.assign({}, hostElementAttribute), this.heading ? h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null, h("div", { class: "pn-marketweb-siteheader-login-profileselection-user" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-user-name" }, this.user.given_name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-user-description" }, this.user.username)), h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-name" }, this.profileSelectorDialog.currentProfile.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-description" }, this.profileSelectorDialog.currentProfile.customerid)), h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks.filter(x => x.isLogoutLink === false), loginManager: this.loginManager, idNamespace: this.idNamespace }), h("div", { class: "pn-marketweb-siteheader-login-profileselection-divider" }), this.profileSelectorDialog.profiles.map((profile) => {
|
|
4984
|
+
return (h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, h("a", { href: `${this.endpoint}?selectprofile=${profile.customerid}}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, profile.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, profile.customerid)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
4985
|
+
}), this.logoutLink ?
|
|
4986
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText))
|
|
4987
|
+
: null));
|
|
4988
|
+
}
|
|
4989
|
+
get hostElement() { return this; }
|
|
4990
|
+
static get style() { return pnMarketwebSiteheaderLoginProfileselectionCss; }
|
|
4886
4991
|
};
|
|
4887
4992
|
|
|
4888
4993
|
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
@@ -5105,7 +5210,7 @@ let PnPexPricefinder$1 = class extends HTMLElement {
|
|
|
5105
5210
|
static get style() { return pnPexPricefinderCss; }
|
|
5106
5211
|
};
|
|
5107
5212
|
|
|
5108
|
-
const pnProductCardCss = "pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-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;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:\"\" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;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;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-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);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:\"\" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}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;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}";
|
|
5213
|
+
const pnProductCardCss = "pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-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;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:\"\" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;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;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-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);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:\"\" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}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;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}";
|
|
5109
5214
|
|
|
5110
5215
|
let PnProductCard$1 = class extends HTMLElement {
|
|
5111
5216
|
constructor() {
|
|
@@ -5560,12 +5665,12 @@ let PnProfileSelectorOption$1 = class extends HTMLElement {
|
|
|
5560
5665
|
constructor() {
|
|
5561
5666
|
super();
|
|
5562
5667
|
this.__registerHost();
|
|
5563
|
-
this.
|
|
5668
|
+
this.heading = "";
|
|
5564
5669
|
this.description = "";
|
|
5565
5670
|
this.url = "";
|
|
5566
5671
|
}
|
|
5567
5672
|
render() {
|
|
5568
|
-
return (h(Host, null, h("a", { class: "profileselectoroption", href: this.url }, h("span", { class: "profileselectoroption-text" }, h("span", { class: "profileselectoroption-title" }, this.
|
|
5673
|
+
return (h(Host, null, h("a", { class: "profileselectoroption", href: this.url }, h("span", { class: "profileselectoroption-text" }, h("span", { class: "profileselectoroption-title" }, this.heading), h("span", { class: "profileselectoroption-description" }, this.description)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
5569
5674
|
}
|
|
5570
5675
|
get hostElement() { return this; }
|
|
5571
5676
|
static get style() { return pnProfileSelectorOptionCss; }
|
|
@@ -5885,8 +5990,8 @@ let PnTiletag = class extends HTMLElement {
|
|
|
5885
5990
|
const PnBonusProgressbar = /*@__PURE__*/proxyCustomElement(PnBonusProgressbar$1, [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]}]);
|
|
5886
5991
|
const PnBonusProgressbarLevel = /*@__PURE__*/proxyCustomElement(PnBonusProgressbarLevel$1, [0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]);
|
|
5887
5992
|
const PnChoiceButton = /*@__PURE__*/proxyCustomElement(PnChoiceButton$1, [4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
|
|
5888
|
-
const PnCustomernumberSelector = /*@__PURE__*/proxyCustomElement(PnCustomernumberSelector$1, [4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"
|
|
5889
|
-
const PnCustomernumberSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$2, [4,"pn-customernumber-selector-option",{"
|
|
5993
|
+
const PnCustomernumberSelector = /*@__PURE__*/proxyCustomElement(PnCustomernumberSelector$1, [4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"heading":[1],"description":[1],"i18n":[32]}]);
|
|
5994
|
+
const PnCustomernumberSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$2, [4,"pn-customernumber-selector-option",{"heading":[1],"description":[1],"url":[1]}]);
|
|
5890
5995
|
const PnFilterCheckbox = /*@__PURE__*/proxyCustomElement(PnFilterCheckbox$1, [1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
|
|
5891
5996
|
const PnFindPrice = /*@__PURE__*/proxyCustomElement(PnfindPrice, [0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]);
|
|
5892
5997
|
const PnFindPriceResult = /*@__PURE__*/proxyCustomElement(PnfindPriceResult, [0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"showMeasurement":[4,"show-measurement"],"weightText":[32],"linkId":[32],"shopLabel":[32],"shopUrl":[32],"shopId":[32]}]);
|
|
@@ -5901,9 +6006,11 @@ const PnMainnavList = /*@__PURE__*/proxyCustomElement(PnMainnavList$1, [4,"pn-ma
|
|
|
5901
6006
|
const PnMarketwebInput = /*@__PURE__*/proxyCustomElement(PnMarketwebInput$1, [0,"pn-marketweb-input",{"disabled":[4],"error":[1],"invalid":[4],"helpertext":[1],"label":[1],"placeholder":[1],"inputid":[1],"name":[1],"required":[4],"type":[1025],"autocomplete":[1],"valid":[4],"value":[1],"maxlength":[1],"min":[1],"max":[1],"step":[1],"pattern":[1],"showText":[32]}]);
|
|
5902
6007
|
const PnMarketwebSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSearch$1, [1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]);
|
|
5903
6008
|
const PnMarketwebSitefooter = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$2, [4,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]);
|
|
5904
|
-
const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[4,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"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"]]]);
|
|
5905
|
-
const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[
|
|
5906
|
-
const
|
|
6009
|
+
const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"userToken":[1,"user-token"],"userFullname":[1,"user-fullname"],"userLoggedin":[4,"user-loggedin"],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"showProfileSelection":[1540,"show-profile-selection"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"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"]]]);
|
|
6010
|
+
const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[16],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"showProfileSelection":[1028,"show-profile-selection"],"loginManager":[32],"loginLinks":[32],"toggleButtonText":[32],"username":[32]}]);
|
|
6011
|
+
const PnMarketwebSiteheaderLoginLinklist = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinklist$1, [0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"],"loginManager":[16]}]);
|
|
6012
|
+
const PnMarketwebSiteheaderLoginLinks = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinks$1, [0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"loginManager":[16],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}]);
|
|
6013
|
+
const PnMarketwebSiteheaderLoginProfileselection = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginProfileselection$1, [0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"loginManager":[16],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"profileSelectorDialog":[16],"user":[32],"logoutLink":[32]}]);
|
|
5907
6014
|
const PnMarketwebSiteheaderSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderSearch$1, [0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"language":[1537],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}]);
|
|
5908
6015
|
const PnPexPricefinder = /*@__PURE__*/proxyCustomElement(PnPexPricefinder$1, [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"]]]);
|
|
5909
6016
|
const PnProductCard = /*@__PURE__*/proxyCustomElement(PnProductCard$1, [4,"pn-product-card"]);
|
|
@@ -5915,7 +6022,7 @@ const PnProductTile = /*@__PURE__*/proxyCustomElement(PnProductTile$1, [4,"pn-pr
|
|
|
5915
6022
|
const PnProductTileInfo = /*@__PURE__*/proxyCustomElement(PnProductTileInfo$1, [0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}]);
|
|
5916
6023
|
const PnProductTilePrice = /*@__PURE__*/proxyCustomElement(PnProductTilePrice$1, [0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]);
|
|
5917
6024
|
const PnProfileSelector = /*@__PURE__*/proxyCustomElement(PnProfileSelector$1, [4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"heading":[1],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]);
|
|
5918
|
-
const PnProfileSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$1, [0,"pn-profile-selector-option",{"
|
|
6025
|
+
const PnProfileSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$1, [0,"pn-profile-selector-option",{"heading":[1],"description":[1],"url":[1]}]);
|
|
5919
6026
|
const PnSidenav = /*@__PURE__*/proxyCustomElement(PnSidenav$1, [4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]);
|
|
5920
6027
|
const PnSidenavLevel = /*@__PURE__*/proxyCustomElement(PnSidenavLevel$1, [4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]);
|
|
5921
6028
|
const PnSidenavLink = /*@__PURE__*/proxyCustomElement(PnSidenavLink$1, [4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]);
|
|
@@ -5948,7 +6055,9 @@ const defineCustomElements = (opts) => {
|
|
|
5948
6055
|
PnMarketwebSitefooter,
|
|
5949
6056
|
PnMarketwebSiteheader,
|
|
5950
6057
|
PnMarketwebSiteheaderLogin,
|
|
5951
|
-
|
|
6058
|
+
PnMarketwebSiteheaderLoginLinklist,
|
|
6059
|
+
PnMarketwebSiteheaderLoginLinks,
|
|
6060
|
+
PnMarketwebSiteheaderLoginProfileselection,
|
|
5952
6061
|
PnMarketwebSiteheaderSearch,
|
|
5953
6062
|
PnPexPricefinder,
|
|
5954
6063
|
PnProductCard,
|
|
@@ -5977,4 +6086,4 @@ const defineCustomElements = (opts) => {
|
|
|
5977
6086
|
}
|
|
5978
6087
|
};
|
|
5979
6088
|
|
|
5980
|
-
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin,
|
|
6089
|
+
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderLoginLinklist, PnMarketwebSiteheaderLoginLinks, PnMarketwebSiteheaderLoginProfileselection, PnMarketwebSiteheaderSearch, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileSelector, PnProfileSelectorOption, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, PnTitletag, defineCustomElements };
|