@postnord/pn-marketweb-components 2.0.23-beta4 → 2.0.24
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-store-a2728ff4.js → pn-find-price-store-0b8c195c.js} +2 -0
- package/cjs/pn-find-price.cjs.entry.js +17 -9
- 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-pricelist.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 +4 -4
- package/collection/components/widgets/pn-find-price/pn-find-price-store.js +2 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +6 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.css +6 -3
- package/collection/components/widgets/pn-find-price/pn-find-price.js +9 -5
- package/custom-elements/index.d.ts +16 -4
- package/custom-elements/index.js +303 -186
- 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-store-f531ab7e.js → pn-find-price-store-b4556c9b.js} +2 -0
- package/esm/pn-find-price.entry.js +17 -9
- 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-pricelist.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-store-b4556c9b.js +1 -0
- 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-pricelist.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-0d5d05cc.system.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-37017f68.system.js +1 -0
- package/pn-market-web-components/p-4791c81b.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-845d6b0a.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-1f5b2d7a.entry.js → p-b32a8507.entry.js} +1 -1
- package/pn-market-web-components/p-ba41a7c0.system.entry.js +1 -0
- package/pn-market-web-components/p-c4254e9e.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-f4630c00.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/{p-c1c79c65.system.entry.js → p-fecc53bb.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-store.d.ts +4 -0
- package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +6 -0
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +3 -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-find-price-store-f531ab7e.js +0 -1
- 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-4cea6bf3.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-893206f2.js +0 -1
- package/pn-market-web-components/p-a702dcfd.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-b0053a2d.entry.js +0 -1
- package/pn-market-web-components/p-c2670af1.system.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; }
|
|
@@ -290,6 +290,8 @@ const translations$9 = {
|
|
|
290
290
|
'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
|
|
291
291
|
'deliveryscopeheading': 'Endast leveranser inom Sverige',
|
|
292
292
|
'resultlistheading': 'Några bra alternativ för dig',
|
|
293
|
+
'sizeheading': 'Uppskatta storleken på din försändelse',
|
|
294
|
+
'weightheading': 'Uppskatta vikten på din försändelse',
|
|
293
295
|
'weightlabel': 'Vikt',
|
|
294
296
|
'maxweightlabel': 'Maxvikt',
|
|
295
297
|
'maxmeasurementlabel': 'Maxvolym',
|
|
@@ -306,6 +308,8 @@ const translations$9 = {
|
|
|
306
308
|
'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
|
|
307
309
|
'deliveryscopeheading': 'Deliveries within Sweden only',
|
|
308
310
|
'resultlistheading': 'Some suitable options for you',
|
|
311
|
+
'sizeheading': 'Estimate the size of your shipment',
|
|
312
|
+
'weightheading': 'Estimate the weight of your shipment',
|
|
309
313
|
'weightlabel': 'Weight',
|
|
310
314
|
'maxweightlabel': 'Max weight',
|
|
311
315
|
'maxmeasurementlabel': 'Maximum measurement',
|
|
@@ -322,6 +326,8 @@ const translations$9 = {
|
|
|
322
326
|
'componentheading': 'Vad vill du skicka?',
|
|
323
327
|
'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
|
|
324
328
|
'resultlistheading': 'Nogle passende muligheder for dig',
|
|
329
|
+
'sizeheading': 'Anslå størrelsen på din forsendelse',
|
|
330
|
+
'weightheading': 'Anslå vægten af din forsendelse',
|
|
325
331
|
'weightlabel': 'Vægt',
|
|
326
332
|
'maxweightlabel': 'Max vægt',
|
|
327
333
|
'maxmeasurementlabel': 'Maks. Volumen',
|
|
@@ -2455,6 +2461,8 @@ const { state: state$5, onChange: onChange$5 } = createStore({
|
|
|
2455
2461
|
componentheading: '',
|
|
2456
2462
|
deliveryscopeheading: '',
|
|
2457
2463
|
resultlistheading: '',
|
|
2464
|
+
sizeheading: '',
|
|
2465
|
+
weightheading: '',
|
|
2458
2466
|
weightlabel: '',
|
|
2459
2467
|
maxweightlabel: '',
|
|
2460
2468
|
maxmeasurementlabel: '',
|
|
@@ -2484,7 +2492,7 @@ const postnordPerson1Svg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA0IiBoZW
|
|
|
2484
2492
|
|
|
2485
2493
|
const cloudsSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjc4IiBoZWlnaHQ9IjU1IiB2aWV3Qm94PSIwIDAgMjc4IDU1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMjQ3LjM1NSA0OS42ODE1QzI0Ny42OTQgNTIuNDc5IDI0OS43MjIgNTQuNjI2MSAyNTIuMTgxIDU0LjYyNjFIMjcyLjkyNkMyNzUuNjIgNTQuNjI2MSAyNzcuNzk4IDUyLjA1MjIgMjc3Ljc5OCA0OC44Njg2VjQ4LjgwMDhDMjc3Ljc5OCA0NS42MTczIDI3NS42MiA0My4wNDMzIDI3Mi45MjYgNDMuMDQzM0gyNzAuNTM3QzI2OS42MDggMzkuMjQzOSAyNjYuODQ2IDM2LjQ3MyAyNjMuNTg1IDM2LjQ3M0gyNTkuNzE3QzI1OS4zNzMgMzEuODQxIDI1Ni4xMDEgMjguMjA5MiAyNTIuMTI0IDI4LjIwOTJDMjQ4LjE0NiAyOC4yMDkyIDI0NC44OCAzMS44NDEgMjQ0LjUzIDM2LjQ3M0gyNDIuMDk1QzIzOC4wODMgMzYuNDczIDIzNC44MTYgNDAuNjcyNiAyMzQuODE2IDQ1LjgyMDVWNDkuNjgxNUgyNDcuMzU1WiIgZmlsbD0iI0UwRjhGRiIvPgo8cGF0aCBkPSJNMTIuMDM5MSA0Ni4xMDIyQzEyLjMxNzYgNDguNTU2OSAxNC4wODY3IDUwLjQzNzMgMTYuMjQyMSA1MC40MzczSDM0LjU4MDdDMzYuOTMwNCA1MC40MzczIDM4LjgyMTYgNDguMjAyIDM4LjgyMTYgNDUuNDI0OFY0NS4zNTcxQzM4LjgyMTYgNDIuNTc5OSAzNi45MzA0IDQwLjM0NDYgMzQuNTgwNyA0MC4zNDQ2SDMyLjQ2ODRDMzEuNjY3OCAzNy4wMjA5IDI5LjIyNyAzNC41ODcyIDI2LjMyODMgMzQuNTg3MkgyMi45MTc5QzIyLjYwMDQgMzAuNTU5NyAxOS43MzI3IDI3LjQwNzEgMTYuMjQyMSAyNy40MDcxQzEyLjc1MTQgMjcuNDA3MSA5Ljg4MzcxIDMwLjU1OTcgOS41NjYyMiAzNC41ODcySDcuNDE2NThDMy44NjM0NiAzNC41ODcyIDAuOTk4MDQ3IDM4LjI0NDggMC45OTgwNDcgNDIuNzE1NFY0Ni4xMDIySDEyLjAzOTFaIiBmaWxsPSIjRTBGOEZGIi8+CjxwYXRoIGQ9Ik0xMzEuMDU2IDI2LjU4NjRDMTMxLjQ0OSAzMC4wNDIzIDEzMy45NDggMzIuNjg5NSAxMzYuOTkxIDMyLjY4OTVIMTYyLjg5MUMxNjYuMjA5IDMyLjY4OTUgMTY4Ljg4IDI5LjU0MjYgMTY4Ljg4IDI1LjYzMjhWMjUuNTM3NUMxNjguODggMjEuNjI3NyAxNjYuMjA5IDE4LjQ4MDggMTYyLjg5MSAxOC40ODA4SDE1OS45MDdDMTU4Ljc3NyAxMy44MDE1IDE1NS4zMyAxMC4zNzUzIDE1MS4yMzYgMTAuMzc1M0gxNDYuNDJDMTQ1Ljk3MSA0LjcwNTMzIDE0MS45MjEgMC4yNjcwOSAxMzYuOTkxIDAuMjY3MDlDMTMyLjA2MiAwLjI2NzA5IDEyOC4wMTIgNC43MDUzMyAxMjcuNTYzIDEwLjM3NTNIMTI0LjUyOEMxMTkuNTEgMTAuMzc1MyAxMTUuNDYzIDE1LjUyNDcgMTE1LjQ2MyAyMS44MTg0VjI2LjU4NjRIMTMxLjA1NloiIGZpbGw9IiNFMEY4RkYiLz4KPC9zdmc+Cg==';
|
|
2486
2494
|
|
|
2487
|
-
const pnFindPriceCss = "@charset \"UTF-8\";pn-find-price .sizeTable{border-style:none !important;border:0 !important;position:relative}pn-find-price .sizeTable>tr td{margin-bottom:1em;text-align:center;vertical-align:bottom;padding-right:1em;padding-top:1em}pn-find-price .sizeTable #clouds{position:absolute;top:0em;left:4em;z-index:-1}pn-find-price .firstCell{margin-right:0;margin-left:auto}pn-find-price .findprice-form{max-width:60em;margin:
|
|
2495
|
+
const pnFindPriceCss = "@charset \"UTF-8\";pn-find-price .sizeTable{border-style:none !important;border:0 !important;position:relative}pn-find-price .sizeTable>tr td{margin-bottom:1em;text-align:center;vertical-align:bottom;padding-right:1em;padding-top:1em}pn-find-price .sizeTable #clouds{position:absolute;top:0em;left:4em;z-index:-1}pn-find-price .firstCell{margin-right:0;margin-left:auto}pn-find-price .findprice-form{max-width:60em;margin:2em auto 3em auto}pn-find-price h2{text-align:center;margin-bottom:1rem}pn-find-price .heading{text-align:center;line-height:1.1;font-weight:bold;margin-bottom:1rem;color:#005D92}pn-find-price .resultHeading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:2em}pn-find-price .sizecategory{margin-top:1em;margin-bottom:3rem;font-size:0.9em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption{font-size:0.9em;max-width:41rem;margin:0 auto}pn-find-price .weightoption-content{text-align:center}pn-find-price .weightoption-content pn-choice-button{width:7em;line-height:3.3em;font-size:0.9em;vertical-align:bottom}pn-find-price .weightoption-content pn-choice-button>label{-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption-content pn-choice-button ::before{content:\"Max \";font-weight:lighter}pn-find-price .resultlist{margin:3.2rem 0}pn-find-price .servicePoint{text-align:center}pn-find-price .servicePoint pn-illustration{display:block;max-width:5em;max-height:5em;margin:1.5em auto 0 auto}pn-find-price .servicePoint h3{margin-top:0.8em;margin-bottom:0.9em}pn-find-price .servicePoint a{color:#005D92;text-decoration:none}pn-find-price .servicePoint a:hover{color:#0D234B;text-decoration:underline}";
|
|
2488
2496
|
|
|
2489
2497
|
let PnfindPrice = class extends HTMLElement {
|
|
2490
2498
|
constructor() {
|
|
@@ -2538,14 +2546,16 @@ let PnfindPrice = class extends HTMLElement {
|
|
|
2538
2546
|
return;
|
|
2539
2547
|
}
|
|
2540
2548
|
const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory.toLocaleLowerCase() === this.sizecategory.value.toLocaleLowerCase());
|
|
2541
|
-
if (this.weight
|
|
2549
|
+
if (!this.weight) {
|
|
2542
2550
|
return;
|
|
2543
2551
|
}
|
|
2544
2552
|
const comparisonWeight = this.weight.value <= 20 ? this.weight.value * 1000 : this.weight.value;
|
|
2545
|
-
let
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2553
|
+
let weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) === comparisonWeight);
|
|
2554
|
+
if (this.weightvalue !== 0) {
|
|
2555
|
+
let clubbedProducts = sizeItemData.filter(x => x.maxweight.toString().includes("upto")).
|
|
2556
|
+
filter(x => (Number(x.maxweight.toString().toLocaleLowerCase().replace("upto", '')) - comparisonWeight) >= 0);
|
|
2557
|
+
weightFilteredData = weightFilteredData.concat(clubbedProducts);
|
|
2558
|
+
}
|
|
2549
2559
|
if (weightFilteredData.length === 0 && this.weightvalue !== 0) {
|
|
2550
2560
|
weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) >= comparisonWeight);
|
|
2551
2561
|
if (weightFilteredData.length > 0) {
|
|
@@ -2571,11 +2581,11 @@ let PnfindPrice = class extends HTMLElement {
|
|
|
2571
2581
|
this.filteredItems = weightFilteredData;
|
|
2572
2582
|
}
|
|
2573
2583
|
render() {
|
|
2574
|
-
return (h("div", { class: "findprice-form" }, h("div", null, h("div", { class: "sizecategory" }, h("table", { class: "sizeTable" }, h("img", { id: "clouds", src: cloudsSvg }), h("tr", null, h("td", null, h("img", { class: "firstCell", src: postnordPerson1Svg })), h("td", null, h("img", { src: smallPackageSvg })), h("td", null, h("img", { src: mediumPackageSvg })), h("td", null, h("img", { src: largePackageSvg }))), h("tr", null, h("td", null), sizeCategories.map((sizeCategory) => (h("td", null, h("pn-radio-button", { radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
|
|
2584
|
+
return (h("div", { class: "findprice-form" }, h("div", null, h("h4", { class: "heading" }, state$5.i18n.sizeheading), h("div", { class: "sizecategory" }, h("table", { class: "sizeTable" }, h("img", { id: "clouds", src: cloudsSvg }), h("tr", null, h("td", null, h("img", { class: "firstCell", src: postnordPerson1Svg })), h("td", null, h("img", { src: smallPackageSvg })), h("td", null, h("img", { src: mediumPackageSvg })), h("td", null, h("img", { src: largePackageSvg }))), h("tr", null, h("td", null), sizeCategories.map((sizeCategory) => (h("td", null, h("pn-radio-button", { radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
|
|
2575
2585
|
this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
|
|
2576
2586
|
this.weight = { value: 0, name: "" };
|
|
2577
2587
|
this.weightvalue = this.weight.value;
|
|
2578
|
-
} })))))))), (this.sizecategory.value && weights$2[this.sizecategory.unit]) ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights$2[this.sizecategory.unit].map((wght) => (h("pn-choice-button", { choiceid: this.sizecategory.value + wght.value, name: "weight", type: "radio", value: (!this.weight.value) ? 0 : weights$2[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
|
|
2588
|
+
} })))))))), h("h4", { class: "heading" }, state$5.i18n.weightheading), (this.sizecategory.value && weights$2[this.sizecategory.unit]) ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights$2[this.sizecategory.unit].map((wght) => (h("pn-choice-button", { choiceid: this.sizecategory.value + wght.value, name: "weight", type: "radio", value: (!this.weight.value) ? 0 : weights$2[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
|
|
2579
2589
|
this.weight = weights$2[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
|
|
2580
2590
|
this.weightvalue = this.weight.value;
|
|
2581
2591
|
} }, wght.name)))))) : null, (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$5.i18n.resultlistheading) ? (h("div", { class: "resultHeading" }, state$5.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-price-result", { item: item })))))) : null));
|
|
@@ -2620,10 +2630,10 @@ let PnfindPriceResult = class extends HTMLElement {
|
|
|
2620
2630
|
}
|
|
2621
2631
|
this.showMeasurement = (this.item.maxmått !== null) || (this.item.rulle !== null);
|
|
2622
2632
|
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 =
|
|
2633
|
+
var showServicepointLink = (this.item.ombudpurchase === "Yes");
|
|
2634
|
+
this.shopLabel = showServicepointLink ? state$5.i18n.ombudHeader : state$5.i18n.stampshopcta;
|
|
2635
|
+
this.shopUrl = showServicepointLink ? state$5.market.servicePoint : stampShopUrl$1;
|
|
2636
|
+
this.shopId = showServicepointLink ? '-servicepoint' : '-stampshop';
|
|
2627
2637
|
}
|
|
2628
2638
|
render() {
|
|
2629
2639
|
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 ?
|
|
@@ -4037,7 +4047,8 @@ const translations$4 = {
|
|
|
4037
4047
|
"menuHomeButton": "Hem",
|
|
4038
4048
|
"menuGoBackButton": "Gå tillbaka",
|
|
4039
4049
|
"mainMenuButton": "Meny",
|
|
4040
|
-
"menuStartButton": "Start"
|
|
4050
|
+
"menuStartButton": "Start",
|
|
4051
|
+
"profileSelectionFlyoutHeading": "Inloggad som",
|
|
4041
4052
|
},
|
|
4042
4053
|
'en': {
|
|
4043
4054
|
"searchlabel": "Search",
|
|
@@ -4046,7 +4057,8 @@ const translations$4 = {
|
|
|
4046
4057
|
"menuHomeButton": "Home",
|
|
4047
4058
|
"menuGoBackButton": "Go back",
|
|
4048
4059
|
"mainMenuButton": "Menu",
|
|
4049
|
-
"menuStartButton": "Start"
|
|
4060
|
+
"menuStartButton": "Start",
|
|
4061
|
+
"profileSelectionFlyoutHeading": "Logged in as",
|
|
4050
4062
|
},
|
|
4051
4063
|
'da': {
|
|
4052
4064
|
"searchlabel": "Søg",
|
|
@@ -4055,7 +4067,8 @@ const translations$4 = {
|
|
|
4055
4067
|
"menuHomeButton": "Hjem",
|
|
4056
4068
|
"menuGoBackButton": "Gå tilbage",
|
|
4057
4069
|
"mainMenuButton": "Menu",
|
|
4058
|
-
"menuStartButton": "Start"
|
|
4070
|
+
"menuStartButton": "Start",
|
|
4071
|
+
"profileSelectionFlyoutHeading": "Logget ind som",
|
|
4059
4072
|
},
|
|
4060
4073
|
'no': {
|
|
4061
4074
|
"searchlabel": "Søk",
|
|
@@ -4064,7 +4077,8 @@ const translations$4 = {
|
|
|
4064
4077
|
"menuHomeButton": "Hjem",
|
|
4065
4078
|
"menuGoBackButton": "Gå tilbake",
|
|
4066
4079
|
"mainMenuButton": "Meny",
|
|
4067
|
-
"menuStartButton": "Start"
|
|
4080
|
+
"menuStartButton": "Start",
|
|
4081
|
+
"profileSelectionFlyoutHeading": "Logget på som",
|
|
4068
4082
|
},
|
|
4069
4083
|
'fi': {
|
|
4070
4084
|
"searchlabel": "Hae",
|
|
@@ -4073,7 +4087,18 @@ const translations$4 = {
|
|
|
4073
4087
|
"menuHomeButton": "Koti",
|
|
4074
4088
|
"menuGoBackButton": "Mene takaisin",
|
|
4075
4089
|
"mainMenuButton": "Valikko",
|
|
4076
|
-
"menuStartButton": "Alkaa"
|
|
4090
|
+
"menuStartButton": "Alkaa",
|
|
4091
|
+
"profileSelectionFlyoutHeading": "Kirjautunut sisään nimellä",
|
|
4092
|
+
},
|
|
4093
|
+
'de': {
|
|
4094
|
+
"searchlabel": "Suche",
|
|
4095
|
+
"searchplaceholder": "Wonach suchen Sie?",
|
|
4096
|
+
"searchbuttontext": "Suche",
|
|
4097
|
+
"menuHomeButton": "Heim",
|
|
4098
|
+
"menuGoBackButton": "Geh zurück",
|
|
4099
|
+
"mainMenuButton": "Menü",
|
|
4100
|
+
"menuStartButton": "Start",
|
|
4101
|
+
"profileSelectionFlyoutHeading": "Eingeloggt als",
|
|
4077
4102
|
}
|
|
4078
4103
|
};
|
|
4079
4104
|
|
|
@@ -4335,6 +4360,8 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4335
4360
|
this.hideSearch = false;
|
|
4336
4361
|
/** Hides the login if set to true*/
|
|
4337
4362
|
this.hideLogin = false;
|
|
4363
|
+
/** If this is selected we will show the new profile selection dropdown instead of the login version */
|
|
4364
|
+
this.showProfileSelection = false;
|
|
4338
4365
|
/** Autocomplete endpoint */
|
|
4339
4366
|
this.AutocompleteEndpoint = "";
|
|
4340
4367
|
/** Forward session to backend */
|
|
@@ -4343,6 +4370,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4343
4370
|
this.cache = false;
|
|
4344
4371
|
/** Event based only language switch */
|
|
4345
4372
|
this.spaMode = false;
|
|
4373
|
+
this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
|
|
4346
4374
|
this.gotData = false;
|
|
4347
4375
|
this.fetchingData = false;
|
|
4348
4376
|
this.homePageLink = "/";
|
|
@@ -4505,6 +4533,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4505
4533
|
}
|
|
4506
4534
|
onLoginStateChange(e) {
|
|
4507
4535
|
var _a, _b, _c;
|
|
4536
|
+
console.log('onLoginStateChange(e', e);
|
|
4508
4537
|
if (((_a = e.detail) === null || _a === void 0 ? void 0 : _a.loggedIn) && ((_b = e.detail) === null || _b === void 0 ? void 0 : _b.token)) {
|
|
4509
4538
|
this.loggedIn = ((_c = e.detail) === null || _c === void 0 ? void 0 : _c.loggedIn) === true;
|
|
4510
4539
|
}
|
|
@@ -4552,7 +4581,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4552
4581
|
var _a, _b, _c, _d, _e, _f;
|
|
4553
4582
|
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
4583
|
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 &&
|
|
4584
|
+
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
4585
|
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
4586
|
document.body.setAttribute("data-siteheader-menuopen", (e.detail + ''));
|
|
4558
4587
|
} }, h("pn-mainnav-level", null, h("pn-mainnav-list", null, this.menuItems.map((item) => {
|
|
@@ -4564,7 +4593,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4564
4593
|
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
4594
|
})), (item.promotedMenuItems && item.promotedMenuItems.length > 0) &&
|
|
4566
4595
|
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 &&
|
|
4596
|
+
})), 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
4597
|
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
4598
|
h("pn-site-selector", { language: this.language }, (this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
|
|
4570
4599
|
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 +4606,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
|
|
|
4577
4606
|
static get style() { return pnMarketwebSiteheaderCss; }
|
|
4578
4607
|
};
|
|
4579
4608
|
|
|
4580
|
-
const pnMarketwebSiteheaderLoginCss = "pn-marketweb-siteheader-login{padding:1rem 0;max-height:5.2rem;position:relative}pn-marketweb-siteheader-login
|
|
4609
|
+
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
4610
|
|
|
4582
4611
|
let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
4583
4612
|
constructor() {
|
|
@@ -4588,12 +4617,15 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4588
4617
|
this.endpoint = "";
|
|
4589
4618
|
/** Access token passed from backend */
|
|
4590
4619
|
this.token = "";
|
|
4620
|
+
this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
|
|
4591
4621
|
this.emitEvents = true;
|
|
4592
4622
|
// Login dialog
|
|
4593
4623
|
this.loginDialog = null;
|
|
4594
4624
|
/** User Fullname */
|
|
4595
4625
|
this.fullname = "";
|
|
4596
4626
|
this.loggedin = false;
|
|
4627
|
+
/** If this is selected we will show the new profile selection dropdown instead of the login version */
|
|
4628
|
+
this.showProfileSelection = false;
|
|
4597
4629
|
this.loginManager = null;
|
|
4598
4630
|
this.toggleButtonText = "";
|
|
4599
4631
|
this.username = this.fullname;
|
|
@@ -4617,6 +4649,47 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4617
4649
|
this.toggleButtonText = this.loginDialog.loginMenuLinkText;
|
|
4618
4650
|
this.loginManager.init(this.emitEvents);
|
|
4619
4651
|
this.setToggleButtonText();
|
|
4652
|
+
this.adjustLoginLinks();
|
|
4653
|
+
}
|
|
4654
|
+
adjustLoginLinks() {
|
|
4655
|
+
var _a, _b, _c;
|
|
4656
|
+
if (!((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loginMenuLinks)) {
|
|
4657
|
+
return;
|
|
4658
|
+
}
|
|
4659
|
+
const adjustLink = (link, i) => {
|
|
4660
|
+
link.isLogoutLink = (link.href.indexOf('logout') !== -1);
|
|
4661
|
+
if (link.isLogoutLink) {
|
|
4662
|
+
link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
|
|
4663
|
+
}
|
|
4664
|
+
if (i === 0 && !link.href) {
|
|
4665
|
+
link.href = this.loginManager.getLoginUrl();
|
|
4666
|
+
link.linkType = 'primary';
|
|
4667
|
+
}
|
|
4668
|
+
if (link.primaryLinkApperance && !link.linkType) {
|
|
4669
|
+
link.linkType = 'primary';
|
|
4670
|
+
}
|
|
4671
|
+
};
|
|
4672
|
+
(_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loginMenuLinks.forEach(adjustLink);
|
|
4673
|
+
(_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks.forEach(adjustLink);
|
|
4674
|
+
this.loginDialog.legacyLoginLinks = [
|
|
4675
|
+
{
|
|
4676
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl),
|
|
4677
|
+
linkText: this.loginDialog.loginLinkText,
|
|
4678
|
+
openInNewWindow: false,
|
|
4679
|
+
isLogoutLink: false,
|
|
4680
|
+
pageLink: null,
|
|
4681
|
+
linkType: 'primary',
|
|
4682
|
+
primaryLinkApperance: true
|
|
4683
|
+
},
|
|
4684
|
+
{
|
|
4685
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.registerUrl),
|
|
4686
|
+
linkText: this.loginDialog.createLoginLinkText,
|
|
4687
|
+
openInNewWindow: false,
|
|
4688
|
+
isLogoutLink: false,
|
|
4689
|
+
pageLink: null,
|
|
4690
|
+
primaryLinkApperance: false
|
|
4691
|
+
}
|
|
4692
|
+
];
|
|
4620
4693
|
}
|
|
4621
4694
|
setUserName() {
|
|
4622
4695
|
const userInfo = this.loginManager.getUserInfo();
|
|
@@ -4654,74 +4727,22 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4654
4727
|
this.setToggleButtonText();
|
|
4655
4728
|
}
|
|
4656
4729
|
}
|
|
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
4730
|
render() {
|
|
4695
|
-
var _a, _b, _c;
|
|
4696
4731
|
if (!this.loginDialog) {
|
|
4697
4732
|
return;
|
|
4698
4733
|
}
|
|
4699
4734
|
let hostElementAttribute = {
|
|
4700
|
-
username: null
|
|
4735
|
+
username: null,
|
|
4736
|
+
loggedin: 'false',
|
|
4701
4737
|
};
|
|
4702
4738
|
if (this.username) {
|
|
4703
4739
|
hostElementAttribute.username = this.username;
|
|
4740
|
+
hostElementAttribute.loggedin = this.loggedin + '';
|
|
4704
4741
|
}
|
|
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
|
-
}))))
|
|
4742
|
+
return (h(Host, Object.assign({}, hostElementAttribute), h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" }, this.loggedin && this.showProfileSelection ?
|
|
4743
|
+
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
4744
|
:
|
|
4724
|
-
h("
|
|
4745
|
+
h("pn-marketweb-siteheader-login-links", { loginDialog: this.loginDialog, loginManager: this.loginManager, loggedin: this.loggedin, idNamespace: this.emitEvents ? '1' : '2', username: this.username }))));
|
|
4725
4746
|
}
|
|
4726
4747
|
get hostElement() { return this; }
|
|
4727
4748
|
static get watchers() { return {
|
|
@@ -4731,85 +4752,21 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
|
|
|
4731
4752
|
static get style() { return pnMarketwebSiteheaderLoginCss; }
|
|
4732
4753
|
};
|
|
4733
4754
|
|
|
4734
|
-
const
|
|
4755
|
+
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
4756
|
|
|
4736
|
-
let
|
|
4757
|
+
let PnMarketwebSiteheaderLoginLinklist$1 = class extends HTMLElement {
|
|
4737
4758
|
constructor() {
|
|
4738
4759
|
super();
|
|
4739
4760
|
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;
|
|
4761
|
+
this.heading = null;
|
|
4762
|
+
this.links = [];
|
|
4763
|
+
this.idNamespace = "";
|
|
4751
4764
|
this.loginManager = null;
|
|
4752
|
-
this.toggleButtonText = "";
|
|
4753
|
-
this.username = this.fullname;
|
|
4754
4765
|
}
|
|
4755
4766
|
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
4767
|
}
|
|
4811
4768
|
uniqueId(text) {
|
|
4812
|
-
return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" +
|
|
4769
|
+
return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" + this.idNamespace;
|
|
4813
4770
|
}
|
|
4814
4771
|
linkAppearanceAttributes(link) {
|
|
4815
4772
|
let attributes = {};
|
|
@@ -4846,43 +4803,199 @@ let PnMarketwebSiteheaderProfileSelection = class extends HTMLElement {
|
|
|
4846
4803
|
return attributes;
|
|
4847
4804
|
}
|
|
4848
4805
|
render() {
|
|
4849
|
-
|
|
4806
|
+
if (!this.links || this.links.length === 0) {
|
|
4807
|
+
return;
|
|
4808
|
+
}
|
|
4809
|
+
return (h(Host, null, this.heading ? h("strong", null, this.heading) : null, h("ul", null, this.links.map((link) => {
|
|
4810
|
+
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: () => {
|
|
4811
|
+
if (link.isLogoutLink) {
|
|
4812
|
+
this.loginManager.clearUserData();
|
|
4813
|
+
}
|
|
4814
|
+
} }), link.linkText)));
|
|
4815
|
+
}))));
|
|
4816
|
+
}
|
|
4817
|
+
get hostElement() { return this; }
|
|
4818
|
+
static get style() { return pnMarketwebSiteheaderLoginLinklistCss; }
|
|
4819
|
+
};
|
|
4820
|
+
|
|
4821
|
+
const pnMarketwebSiteheaderLoginLinksCss = "";
|
|
4822
|
+
|
|
4823
|
+
let PnMarketwebSiteheaderLoginLinks$1 = class extends HTMLElement {
|
|
4824
|
+
constructor() {
|
|
4825
|
+
super();
|
|
4826
|
+
this.__registerHost();
|
|
4827
|
+
// Login dialog
|
|
4828
|
+
this.loginDialog = null;
|
|
4829
|
+
this.loginManager = null;
|
|
4830
|
+
this.idNamespace = "";
|
|
4831
|
+
this.loggedin = false;
|
|
4832
|
+
this.username = "";
|
|
4833
|
+
}
|
|
4834
|
+
componentWillLoad() {
|
|
4835
|
+
this.init();
|
|
4836
|
+
console.log('from links', this.loggedin);
|
|
4837
|
+
}
|
|
4838
|
+
async init() {
|
|
4839
|
+
this.adjustLoginLinks();
|
|
4840
|
+
}
|
|
4841
|
+
adjustLoginLinks() {
|
|
4842
|
+
var _a, _b, _c, _d;
|
|
4843
|
+
if (!this.loginDialog) {
|
|
4844
|
+
return;
|
|
4845
|
+
}
|
|
4846
|
+
const adjustLink = (link, i) => {
|
|
4847
|
+
link.isLogoutLink = (link.href.indexOf('logout') !== -1);
|
|
4848
|
+
if (link.isLogoutLink) {
|
|
4849
|
+
link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
|
|
4850
|
+
}
|
|
4851
|
+
if (i === 0 && !link.href) {
|
|
4852
|
+
link.href = this.loginManager.getLoginUrl();
|
|
4853
|
+
link.linkType = 'primary';
|
|
4854
|
+
}
|
|
4855
|
+
if (link.primaryLinkApperance && !link.linkType) {
|
|
4856
|
+
link.linkType = 'primary';
|
|
4857
|
+
}
|
|
4858
|
+
};
|
|
4859
|
+
if ((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loginMenuLinks) {
|
|
4860
|
+
(_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loginMenuLinks.forEach(adjustLink);
|
|
4861
|
+
}
|
|
4862
|
+
if ((_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks) {
|
|
4863
|
+
(_d = this.loginDialog) === null || _d === void 0 ? void 0 : _d.loggedInLinks.forEach(adjustLink);
|
|
4864
|
+
}
|
|
4865
|
+
this.loginDialog.legacyLoginLinks = [
|
|
4866
|
+
{
|
|
4867
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl),
|
|
4868
|
+
linkText: this.loginDialog.loginLinkText,
|
|
4869
|
+
openInNewWindow: false,
|
|
4870
|
+
isLogoutLink: false,
|
|
4871
|
+
pageLink: null,
|
|
4872
|
+
linkType: 'primary',
|
|
4873
|
+
primaryLinkApperance: true
|
|
4874
|
+
},
|
|
4875
|
+
{
|
|
4876
|
+
href: this.loginManager.getLoginUrl(this.loginDialog.registerUrl),
|
|
4877
|
+
linkText: this.loginDialog.createLoginLinkText,
|
|
4878
|
+
openInNewWindow: false,
|
|
4879
|
+
isLogoutLink: false,
|
|
4880
|
+
pageLink: null,
|
|
4881
|
+
primaryLinkApperance: false
|
|
4882
|
+
}
|
|
4883
|
+
];
|
|
4884
|
+
}
|
|
4885
|
+
render() {
|
|
4886
|
+
var _a;
|
|
4850
4887
|
if (!this.loginDialog) {
|
|
4851
4888
|
return;
|
|
4852
4889
|
}
|
|
4853
4890
|
let hostElementAttribute = {
|
|
4854
|
-
username: null
|
|
4891
|
+
username: null,
|
|
4892
|
+
loggedin: false,
|
|
4855
4893
|
};
|
|
4856
4894
|
if (this.username) {
|
|
4857
4895
|
hostElementAttribute.username = this.username;
|
|
4896
|
+
hostElementAttribute.loggedin = this.loggedin;
|
|
4858
4897
|
}
|
|
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)))))
|
|
4898
|
+
return (h(Host, Object.assign({}, hostElementAttribute), (!this.loginDialog.overrideLoginMenu) ?
|
|
4899
|
+
h("div", { "data-loggedin": this.loggedin + '' }, (this.loggedin) ?
|
|
4900
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
|
|
4867
4901
|
:
|
|
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))))))));
|
|
4902
|
+
h("div", null, ((_a = this.loginDialog.loginMenuLinks) === null || _a === void 0 ? void 0 : _a.length) > 0 ?
|
|
4903
|
+
h("pn-marketweb-siteheader-login-linklist", { heading: this.loginDialog.loginTitle, links: this.loginDialog.loginMenuLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
|
|
4904
|
+
:
|
|
4905
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.legacyLoginLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })))
|
|
4906
|
+
: null, (this.loginDialog.overrideLoginMenu) ?
|
|
4907
|
+
h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loginMenuLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
|
|
4908
|
+
: null));
|
|
4879
4909
|
}
|
|
4880
4910
|
get hostElement() { return this; }
|
|
4881
4911
|
static get watchers() { return {
|
|
4882
|
-
"i18n": ["init"],
|
|
4883
4912
|
"loginDialog": ["init"]
|
|
4884
4913
|
}; }
|
|
4885
|
-
static get style() { return
|
|
4914
|
+
static get style() { return pnMarketwebSiteheaderLoginLinksCss; }
|
|
4915
|
+
};
|
|
4916
|
+
|
|
4917
|
+
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}";
|
|
4918
|
+
|
|
4919
|
+
let PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
4920
|
+
constructor() {
|
|
4921
|
+
super();
|
|
4922
|
+
this.__registerHost();
|
|
4923
|
+
// Login dialog
|
|
4924
|
+
this.loginDialog = null;
|
|
4925
|
+
this.loginManager = null;
|
|
4926
|
+
this.endpoint = "";
|
|
4927
|
+
this.loggedin = false;
|
|
4928
|
+
this.idNamespace = "";
|
|
4929
|
+
this.heading = "";
|
|
4930
|
+
this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
|
|
4931
|
+
this.user = null;
|
|
4932
|
+
this.logoutLink = null;
|
|
4933
|
+
this.profileSelectorDialog = {
|
|
4934
|
+
currentProfile: {
|
|
4935
|
+
name: 'Hedin',
|
|
4936
|
+
customerid: '5560230053'
|
|
4937
|
+
},
|
|
4938
|
+
profiles: [
|
|
4939
|
+
{
|
|
4940
|
+
name: 'Bilmetro AB',
|
|
4941
|
+
customerid: '5560612789'
|
|
4942
|
+
}
|
|
4943
|
+
]
|
|
4944
|
+
};
|
|
4945
|
+
}
|
|
4946
|
+
componentWillLoad() {
|
|
4947
|
+
var _a;
|
|
4948
|
+
console.log('loginDialog', this.loginDialog);
|
|
4949
|
+
console.log('this.loginManager', this.loginManager);
|
|
4950
|
+
console.log('### this.loggedin', this.loggedin);
|
|
4951
|
+
console.log('this.endpoint', this.endpoint);
|
|
4952
|
+
if (!this.heading && ((_a = this.i18n) === null || _a === void 0 ? void 0 : _a.profileSelectionFlyoutHeading)) {
|
|
4953
|
+
this.heading = this.i18n.profileSelectionFlyoutHeading;
|
|
4954
|
+
}
|
|
4955
|
+
this.init();
|
|
4956
|
+
}
|
|
4957
|
+
init() {
|
|
4958
|
+
this.updateUserInfo();
|
|
4959
|
+
this.adjustLoginLinks();
|
|
4960
|
+
}
|
|
4961
|
+
adjustLoginLinks() {
|
|
4962
|
+
var _a, _b, _c, _d;
|
|
4963
|
+
const adjustLink = (link, i) => {
|
|
4964
|
+
link.isLogoutLink = (link.href.indexOf('logout') !== -1);
|
|
4965
|
+
if (link.isLogoutLink) {
|
|
4966
|
+
link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
|
|
4967
|
+
}
|
|
4968
|
+
if (i === 0 && !link.href) {
|
|
4969
|
+
link.href = this.loginManager.getLoginUrl();
|
|
4970
|
+
link.linkType = 'primary';
|
|
4971
|
+
}
|
|
4972
|
+
if (link.primaryLinkApperance && !link.linkType) {
|
|
4973
|
+
link.linkType = 'primary';
|
|
4974
|
+
}
|
|
4975
|
+
};
|
|
4976
|
+
if ((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loggedInLinks) {
|
|
4977
|
+
(_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loggedInLinks.forEach(adjustLink);
|
|
4978
|
+
}
|
|
4979
|
+
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;
|
|
4980
|
+
}
|
|
4981
|
+
updateUserInfo() {
|
|
4982
|
+
const userInfo = this.loginManager.getUserInfo();
|
|
4983
|
+
this.user = userInfo;
|
|
4984
|
+
console.log('this.user', this.user);
|
|
4985
|
+
}
|
|
4986
|
+
render() {
|
|
4987
|
+
if (!this.loginDialog || !this.profileSelectorDialog) {
|
|
4988
|
+
return;
|
|
4989
|
+
}
|
|
4990
|
+
let hostElementAttribute = {};
|
|
4991
|
+
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) => {
|
|
4992
|
+
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" }))));
|
|
4993
|
+
}), this.logoutLink ?
|
|
4994
|
+
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))
|
|
4995
|
+
: null));
|
|
4996
|
+
}
|
|
4997
|
+
get hostElement() { return this; }
|
|
4998
|
+
static get style() { return pnMarketwebSiteheaderLoginProfileselectionCss; }
|
|
4886
4999
|
};
|
|
4887
5000
|
|
|
4888
5001
|
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
@@ -5560,12 +5673,12 @@ let PnProfileSelectorOption$1 = class extends HTMLElement {
|
|
|
5560
5673
|
constructor() {
|
|
5561
5674
|
super();
|
|
5562
5675
|
this.__registerHost();
|
|
5563
|
-
this.
|
|
5676
|
+
this.heading = "";
|
|
5564
5677
|
this.description = "";
|
|
5565
5678
|
this.url = "";
|
|
5566
5679
|
}
|
|
5567
5680
|
render() {
|
|
5568
|
-
return (h(Host, null, h("a", { class: "profileselectoroption", href: this.url }, h("span", { class: "profileselectoroption-text" }, h("span", { class: "profileselectoroption-title" }, this.
|
|
5681
|
+
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
5682
|
}
|
|
5570
5683
|
get hostElement() { return this; }
|
|
5571
5684
|
static get style() { return pnProfileSelectorOptionCss; }
|
|
@@ -5885,8 +5998,8 @@ let PnTiletag = class extends HTMLElement {
|
|
|
5885
5998
|
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
5999
|
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
6000
|
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",{"
|
|
6001
|
+
const PnCustomernumberSelector = /*@__PURE__*/proxyCustomElement(PnCustomernumberSelector$1, [4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"heading":[1],"description":[1],"i18n":[32]}]);
|
|
6002
|
+
const PnCustomernumberSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$2, [4,"pn-customernumber-selector-option",{"heading":[1],"description":[1],"url":[1]}]);
|
|
5890
6003
|
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
6004
|
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
6005
|
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 +6014,11 @@ const PnMainnavList = /*@__PURE__*/proxyCustomElement(PnMainnavList$1, [4,"pn-ma
|
|
|
5901
6014
|
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
6015
|
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
6016
|
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
|
|
6017
|
+
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"]]]);
|
|
6018
|
+
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]}]);
|
|
6019
|
+
const PnMarketwebSiteheaderLoginLinklist = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinklist$1, [0,"pn-marketweb-siteheader-login-linklist",{"heading":[1],"links":[16],"idNamespace":[1,"id-namespace"],"loginManager":[16]}]);
|
|
6020
|
+
const PnMarketwebSiteheaderLoginLinks = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginLinks$1, [0,"pn-marketweb-siteheader-login-links",{"loginDialog":[1040],"loginManager":[16],"idNamespace":[1,"id-namespace"],"loggedin":[516],"username":[1]}]);
|
|
6021
|
+
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
6022
|
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
6023
|
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
6024
|
const PnProductCard = /*@__PURE__*/proxyCustomElement(PnProductCard$1, [4,"pn-product-card"]);
|
|
@@ -5915,7 +6030,7 @@ const PnProductTile = /*@__PURE__*/proxyCustomElement(PnProductTile$1, [4,"pn-pr
|
|
|
5915
6030
|
const PnProductTileInfo = /*@__PURE__*/proxyCustomElement(PnProductTileInfo$1, [0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}]);
|
|
5916
6031
|
const PnProductTilePrice = /*@__PURE__*/proxyCustomElement(PnProductTilePrice$1, [0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]);
|
|
5917
6032
|
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",{"
|
|
6033
|
+
const PnProfileSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$1, [0,"pn-profile-selector-option",{"heading":[1],"description":[1],"url":[1]}]);
|
|
5919
6034
|
const PnSidenav = /*@__PURE__*/proxyCustomElement(PnSidenav$1, [4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]);
|
|
5920
6035
|
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
6036
|
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 +6063,9 @@ const defineCustomElements = (opts) => {
|
|
|
5948
6063
|
PnMarketwebSitefooter,
|
|
5949
6064
|
PnMarketwebSiteheader,
|
|
5950
6065
|
PnMarketwebSiteheaderLogin,
|
|
5951
|
-
|
|
6066
|
+
PnMarketwebSiteheaderLoginLinklist,
|
|
6067
|
+
PnMarketwebSiteheaderLoginLinks,
|
|
6068
|
+
PnMarketwebSiteheaderLoginProfileselection,
|
|
5952
6069
|
PnMarketwebSiteheaderSearch,
|
|
5953
6070
|
PnPexPricefinder,
|
|
5954
6071
|
PnProductCard,
|
|
@@ -5977,4 +6094,4 @@ const defineCustomElements = (opts) => {
|
|
|
5977
6094
|
}
|
|
5978
6095
|
};
|
|
5979
6096
|
|
|
5980
|
-
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin,
|
|
6097
|
+
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 };
|