@postnord/pn-marketweb-components 2.0.23-beta5 → 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.
Files changed (86) hide show
  1. package/cjs/loader.cjs.js +1 -1
  2. package/cjs/pn-customernumber-selector-option.cjs.entry.js +2 -2
  3. package/cjs/pn-customernumber-selector.cjs.entry.js +3 -3
  4. package/cjs/pn-language-selector_9.cjs.entry.js +51 -59
  5. package/cjs/pn-market-web-components.cjs.js +1 -1
  6. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +72 -0
  7. package/cjs/pn-marketweb-siteheader-login-links_2.cjs.entry.js +186 -0
  8. package/cjs/pn-marketweb-siteheader.cjs.entry.js +26 -7
  9. package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
  10. package/collection/collection-manifest.json +3 -1
  11. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +22 -0
  12. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +149 -0
  13. package/collection/components/layout-components/pn-marketweb-siteheader/{pn-marketweb-siteheader-profileselection.css → pn-marketweb-siteheader-login-links.css} +0 -0
  14. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +199 -0
  15. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +93 -0
  16. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +269 -0
  17. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +0 -17
  18. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +79 -72
  19. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +24 -2
  20. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +69 -2
  21. package/collection/components/layout-components/pn-marketweb-siteheader/translations.js +20 -5
  22. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +4 -4
  23. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +7 -7
  24. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.stories.js +3 -3
  25. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +4 -4
  26. package/custom-elements/index.d.ts +16 -4
  27. package/custom-elements/index.js +281 -174
  28. package/esm/loader.js +1 -1
  29. package/esm/pn-customernumber-selector-option.entry.js +2 -2
  30. package/esm/pn-customernumber-selector.entry.js +3 -3
  31. package/esm/pn-language-selector_9.entry.js +51 -59
  32. package/esm/pn-market-web-components.js +1 -1
  33. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +68 -0
  34. package/esm/pn-marketweb-siteheader-login-links_2.entry.js +181 -0
  35. package/esm/pn-marketweb-siteheader.entry.js +26 -7
  36. package/esm/pn-profile-selector-option.entry.js +2 -2
  37. package/esm-es5/loader.js +1 -1
  38. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  39. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  40. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  41. package/esm-es5/pn-market-web-components.js +1 -1
  42. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -0
  43. package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +1 -0
  44. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  45. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  46. package/package.json +1 -1
  47. package/pn-market-web-components/p-04240175.entry.js +1 -0
  48. package/pn-market-web-components/p-08411f5e.entry.js +1 -0
  49. package/pn-market-web-components/{p-77887623.system.entry.js → p-1924152a.system.entry.js} +1 -1
  50. package/pn-market-web-components/p-1f2d9304.entry.js +1 -0
  51. package/pn-market-web-components/p-67887512.system.js +1 -1
  52. package/pn-market-web-components/{p-2a7e6d3a.system.entry.js → p-93cecc43.system.entry.js} +1 -1
  53. package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
  54. package/pn-market-web-components/p-ba41a7c0.system.entry.js +1 -0
  55. package/pn-market-web-components/p-c5a97974.entry.js +1 -0
  56. package/pn-market-web-components/{p-7f5bee11.entry.js → p-dc1827a6.entry.js} +1 -1
  57. package/pn-market-web-components/p-e32dc098.entry.js +1 -0
  58. package/pn-market-web-components/p-e66a8bb8.system.entry.js +1 -0
  59. package/pn-market-web-components/{p-ddbd131f.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
  60. package/pn-market-web-components/p-ec96434c.system.entry.js +1 -0
  61. package/pn-market-web-components/{p-e23a18f4.system.entry.js → p-f7d1c0a0.system.entry.js} +1 -1
  62. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  63. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +13 -0
  64. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +14 -0
  65. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +20 -0
  66. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +6 -4
  67. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +21 -0
  68. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +4 -2
  69. package/types/components/layout-components/pn-marketweb-siteheader/translations.d.ts +15 -0
  70. package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.d.ts +1 -1
  71. package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector.d.ts +1 -1
  72. package/types/components/profile/pn-profile-selector/pn-profile-selector-option.d.ts +1 -1
  73. package/types/components.d.ts +89 -45
  74. package/umd/pn-marketweb-salesforce.js +1 -1
  75. package/cjs/pn-marketweb-siteheader-profileselection.cjs.entry.js +0 -161
  76. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.js +0 -319
  77. package/esm/pn-marketweb-siteheader-profileselection.entry.js +0 -157
  78. package/esm-es5/pn-marketweb-siteheader-profileselection.entry.js +0 -1
  79. package/pn-market-web-components/p-3a4b70d1.system.entry.js +0 -1
  80. package/pn-market-web-components/p-63a2ba1c.entry.js +0 -1
  81. package/pn-market-web-components/p-7e294268.entry.js +0 -1
  82. package/pn-market-web-components/p-a94593a9.system.entry.js +0 -1
  83. package/pn-market-web-components/p-ac8285b4.entry.js +0 -1
  84. package/pn-market-web-components/p-ea39d576.entry.js +0 -1
  85. package/pn-market-web-components/p-fcea21cb.entry.js +0 -1
  86. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.d.ts +0 -28
@@ -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.title = "Lorem ipsum";
187
- this.description = "123 654 123";
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.title), 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)))));
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.title = "";
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.title), h("span", { class: "customernumberoption-description" }, this.description), h("slot", null)))));
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; }
@@ -4039,7 +4039,8 @@ const translations$4 = {
4039
4039
  "menuHomeButton": "Hem",
4040
4040
  "menuGoBackButton": "Gå tillbaka",
4041
4041
  "mainMenuButton": "Meny",
4042
- "menuStartButton": "Start"
4042
+ "menuStartButton": "Start",
4043
+ "profileSelectionFlyoutHeading": "Inloggad som",
4043
4044
  },
4044
4045
  'en': {
4045
4046
  "searchlabel": "Search",
@@ -4048,7 +4049,8 @@ const translations$4 = {
4048
4049
  "menuHomeButton": "Home",
4049
4050
  "menuGoBackButton": "Go back",
4050
4051
  "mainMenuButton": "Menu",
4051
- "menuStartButton": "Start"
4052
+ "menuStartButton": "Start",
4053
+ "profileSelectionFlyoutHeading": "Logged in as",
4052
4054
  },
4053
4055
  'da': {
4054
4056
  "searchlabel": "Søg",
@@ -4057,7 +4059,8 @@ const translations$4 = {
4057
4059
  "menuHomeButton": "Hjem",
4058
4060
  "menuGoBackButton": "Gå tilbage",
4059
4061
  "mainMenuButton": "Menu",
4060
- "menuStartButton": "Start"
4062
+ "menuStartButton": "Start",
4063
+ "profileSelectionFlyoutHeading": "Logget ind som",
4061
4064
  },
4062
4065
  'no': {
4063
4066
  "searchlabel": "Søk",
@@ -4066,7 +4069,8 @@ const translations$4 = {
4066
4069
  "menuHomeButton": "Hjem",
4067
4070
  "menuGoBackButton": "Gå tilbake",
4068
4071
  "mainMenuButton": "Meny",
4069
- "menuStartButton": "Start"
4072
+ "menuStartButton": "Start",
4073
+ "profileSelectionFlyoutHeading": "Logget på som",
4070
4074
  },
4071
4075
  'fi': {
4072
4076
  "searchlabel": "Hae",
@@ -4075,7 +4079,18 @@ const translations$4 = {
4075
4079
  "menuHomeButton": "Koti",
4076
4080
  "menuGoBackButton": "Mene takaisin",
4077
4081
  "mainMenuButton": "Valikko",
4078
- "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",
4079
4094
  }
4080
4095
  };
4081
4096
 
@@ -4337,6 +4352,8 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4337
4352
  this.hideSearch = false;
4338
4353
  /** Hides the login if set to true*/
4339
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;
4340
4357
  /** Autocomplete endpoint */
4341
4358
  this.AutocompleteEndpoint = "";
4342
4359
  /** Forward session to backend */
@@ -4345,6 +4362,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4345
4362
  this.cache = false;
4346
4363
  /** Event based only language switch */
4347
4364
  this.spaMode = false;
4365
+ this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
4348
4366
  this.gotData = false;
4349
4367
  this.fetchingData = false;
4350
4368
  this.homePageLink = "/";
@@ -4507,6 +4525,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4507
4525
  }
4508
4526
  onLoginStateChange(e) {
4509
4527
  var _a, _b, _c;
4528
+ console.log('onLoginStateChange(e', e);
4510
4529
  if (((_a = e.detail) === null || _a === void 0 ? void 0 : _a.loggedIn) && ((_b = e.detail) === null || _b === void 0 ? void 0 : _b.token)) {
4511
4530
  this.loggedIn = ((_c = e.detail) === null || _c === void 0 ? void 0 : _c.loggedIn) === true;
4512
4531
  }
@@ -4554,7 +4573,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4554
4573
  var _a, _b, _c, _d, _e, _f;
4555
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) &&
4556
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)) &&
4557
- 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 &&
4558
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) => {
4559
4578
  document.body.setAttribute("data-siteheader-menuopen", (e.detail + ''));
4560
4579
  } }, h("pn-mainnav-level", null, h("pn-mainnav-list", null, this.menuItems.map((item) => {
@@ -4566,7 +4585,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4566
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 }));
4567
4586
  })), (item.promotedMenuItems && item.promotedMenuItems.length > 0) &&
4568
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 })))))));
4569
- })), 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 &&
4570
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 &&
4571
4590
  h("pn-site-selector", { language: this.language }, (this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
4572
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 })))));
@@ -4579,7 +4598,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4579
4598
  static get style() { return pnMarketwebSiteheaderCss; }
4580
4599
  };
4581
4600
 
4582
- const pnMarketwebSiteheaderLoginCss = "pn-marketweb-siteheader-login{padding:1rem 0;max-height:5.2rem;position:relative}pn-marketweb-siteheader-login strong{padding:0.8rem 1.6rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}pn-marketweb-siteheader-login ul,pn-marketweb-siteheader-login li{list-style:none;margin:0;padding:0}pn-marketweb-siteheader-login li{padding:0.8rem 1.6rem}pn-marketweb-siteheader-login li pn-button{display:block;width:100%}pn-marketweb-siteheader-login pn-nav-dropdown{display:none}pn-marketweb-siteheader-login.hydrated pn-nav-dropdown{display:block}";
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}";
4583
4602
 
4584
4603
  let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
4585
4604
  constructor() {
@@ -4590,12 +4609,15 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
4590
4609
  this.endpoint = "";
4591
4610
  /** Access token passed from backend */
4592
4611
  this.token = "";
4612
+ this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
4593
4613
  this.emitEvents = true;
4594
4614
  // Login dialog
4595
4615
  this.loginDialog = null;
4596
4616
  /** User Fullname */
4597
4617
  this.fullname = "";
4598
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;
4599
4621
  this.loginManager = null;
4600
4622
  this.toggleButtonText = "";
4601
4623
  this.username = this.fullname;
@@ -4619,6 +4641,47 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
4619
4641
  this.toggleButtonText = this.loginDialog.loginMenuLinkText;
4620
4642
  this.loginManager.init(this.emitEvents);
4621
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
+ ];
4622
4685
  }
4623
4686
  setUserName() {
4624
4687
  const userInfo = this.loginManager.getUserInfo();
@@ -4656,74 +4719,22 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
4656
4719
  this.setToggleButtonText();
4657
4720
  }
4658
4721
  }
4659
- uniqueId(text) {
4660
- return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" + (this.emitEvents ? "1" : "2");
4661
- }
4662
- linkAppearanceAttributes(link) {
4663
- let attributes = {};
4664
- if (link.linkType) {
4665
- switch (link.linkType) {
4666
- case 'primary':
4667
- attributes = {
4668
- appearance: '',
4669
- variant: ''
4670
- };
4671
- break;
4672
- case 'secondary':
4673
- attributes = {
4674
- appearance: 'light',
4675
- variant: 'outlined'
4676
- };
4677
- break;
4678
- case 'regularlink':
4679
- default:
4680
- attributes = {
4681
- appearance: 'light',
4682
- variant: 'borderless',
4683
- icon: 'arrow-right'
4684
- };
4685
- break;
4686
- }
4687
- return attributes;
4688
- }
4689
- if (!link.linkType) {
4690
- attributes = {
4691
- appearance: link.primaryLinkApperance ? "dark" : "light"
4692
- };
4693
- }
4694
- return attributes;
4695
- }
4696
4722
  render() {
4697
- var _a, _b, _c;
4698
4723
  if (!this.loginDialog) {
4699
4724
  return;
4700
4725
  }
4701
4726
  let hostElementAttribute = {
4702
- username: null
4727
+ username: null,
4728
+ loggedin: 'false',
4703
4729
  };
4704
4730
  if (this.username) {
4705
4731
  hostElementAttribute.username = this.username;
4732
+ hostElementAttribute.loggedin = this.loggedin + '';
4706
4733
  }
4707
- return (h(Host, Object.assign({}, hostElementAttribute), h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" }, (!this.loginDialog.overrideLoginMenu) ?
4708
- h("div", { "data-loggedin": this.loggedin + '' }, (!this.loggedin) ?
4709
- 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 ?
4710
- h("ul", null, this.loginDialog.loginMenuLinks.map((link, i) => {
4711
- const href = (i === 0 && !link.href) ? this.loginManager.getLoginUrl() : link.href;
4712
- 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)));
4713
- }))
4714
- : (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)))))
4715
- :
4716
- h("div", null, h("ul", null, this.loginDialog.loggedInLinks.map((link) => {
4717
- const isLogoutLink = link.href.indexOf('logout') !== -1;
4718
- const href = (isLogoutLink) ? this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', '')) : link.href;
4719
- return (h("li", null, h("pn-button", Object.assign({ href: href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => {
4720
- if (isLogoutLink) {
4721
- this.loginManager.clearUserData();
4722
- }
4723
- } }), link.linkText)));
4724
- }))))
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 })
4725
4736
  :
4726
- 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))))))));
4737
+ h("pn-marketweb-siteheader-login-links", { loginDialog: this.loginDialog, loginManager: this.loginManager, loggedin: this.loggedin, idNamespace: this.emitEvents ? '1' : '2', username: this.username }))));
4727
4738
  }
4728
4739
  get hostElement() { return this; }
4729
4740
  static get watchers() { return {
@@ -4733,85 +4744,21 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
4733
4744
  static get style() { return pnMarketwebSiteheaderLoginCss; }
4734
4745
  };
4735
4746
 
4736
- const pnMarketwebSiteheaderProfileselectionCss = "";
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%}";
4737
4748
 
4738
- let PnMarketwebSiteheaderProfileSelection = class extends HTMLElement {
4749
+ let PnMarketwebSiteheaderLoginLinklist$1 = class extends HTMLElement {
4739
4750
  constructor() {
4740
4751
  super();
4741
4752
  this.__registerHost();
4742
- this.loginStateChange = createEvent(this, "loginStateChange", 7);
4743
- /** Specifies which endpoint domain we should load from */
4744
- this.endpoint = "";
4745
- /** Access token passed from backend */
4746
- this.token = "";
4747
- this.emitEvents = true;
4748
- // Login dialog
4749
- this.loginDialog = null;
4750
- /** User Fullname */
4751
- this.fullname = "";
4752
- this.loggedin = false;
4753
+ this.heading = null;
4754
+ this.links = [];
4755
+ this.idNamespace = "";
4753
4756
  this.loginManager = null;
4754
- this.toggleButtonText = "";
4755
- this.username = this.fullname;
4756
4757
  }
4757
4758
  componentWillLoad() {
4758
- const userInfo = this.loggedin && this.fullname ? { given_name: this.fullname } : null;
4759
- this.loginManager = new MarketWebLoginManager({ endpoint: this.endpoint, eventTarget: this.hostElement, userInfo });
4760
- this.hostElement["loginmanager"] = this.loginManager;
4761
- if (this.token) {
4762
- this.loginManager.registerToken(this.token, 'backend');
4763
- }
4764
- else if (this.emitEvents) { // The primary login instance
4765
- this.loginManager.invalidateTokenOfType('backend');
4766
- }
4767
- this.hostElement.addEventListener(this.loginManager.events.loginstatechange, this.onLoginStateChange.bind(this));
4768
- this.init();
4769
- this.setUserName();
4770
- this.setToggleButtonText();
4771
- }
4772
- async init() {
4773
- this.toggleButtonText = this.loginDialog.loginMenuLinkText;
4774
- this.loginManager.init(this.emitEvents);
4775
- this.setToggleButtonText();
4776
- }
4777
- setUserName() {
4778
- const userInfo = this.loginManager.getUserInfo();
4779
- let name = "";
4780
- if (!this.loggedin || !userInfo) {
4781
- this.username = name;
4782
- }
4783
- if (userInfo && userInfo.given_name) {
4784
- name = userInfo.given_name + ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name) ? ` ${userInfo === null || userInfo === void 0 ? void 0 : userInfo.family_name}` : "");
4785
- }
4786
- if (!name && userInfo && userInfo.email) {
4787
- name = userInfo.email;
4788
- }
4789
- if (!name && this.fullname) {
4790
- name = this.fullname;
4791
- }
4792
- this.username = name;
4793
- }
4794
- setToggleButtonText() {
4795
- if (this.loggedin) {
4796
- this.toggleButtonText = this.username;
4797
- if (!this.toggleButtonText) {
4798
- this.toggleButtonText = this.loginDialog.loggedInButtonText;
4799
- }
4800
- }
4801
- else {
4802
- this.toggleButtonText = this.loginDialog.loginMenuLinkText;
4803
- }
4804
- }
4805
- onLoginStateChange(e) {
4806
- if (this.loggedin !== e.detail && this.emitEvents) {
4807
- this.loggedin = e.detail;
4808
- this.loginStateChange.emit({ loggedIn: this.loggedin, token: this.loginManager.getToken() });
4809
- this.setUserName();
4810
- this.setToggleButtonText();
4811
- }
4812
4759
  }
4813
4760
  uniqueId(text) {
4814
- return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" + (this.emitEvents ? "1" : "2");
4761
+ return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" + this.idNamespace;
4815
4762
  }
4816
4763
  linkAppearanceAttributes(link) {
4817
4764
  let attributes = {};
@@ -4848,43 +4795,199 @@ let PnMarketwebSiteheaderProfileSelection = class extends HTMLElement {
4848
4795
  return attributes;
4849
4796
  }
4850
4797
  render() {
4851
- var _a, _b, _c;
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;
4852
4879
  if (!this.loginDialog) {
4853
4880
  return;
4854
4881
  }
4855
4882
  let hostElementAttribute = {
4856
- username: null
4883
+ username: null,
4884
+ loggedin: false,
4857
4885
  };
4858
4886
  if (this.username) {
4859
4887
  hostElementAttribute.username = this.username;
4888
+ hostElementAttribute.loggedin = this.loggedin;
4860
4889
  }
4861
- return (h(Host, Object.assign({}, hostElementAttribute), h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" }, (!this.loginDialog.overrideLoginMenu) ?
4862
- h("div", { "data-loggedin": this.loggedin + '' }, (!this.loggedin) ?
4863
- 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 ?
4864
- h("ul", null, this.loginDialog.loginMenuLinks.map((link, i) => {
4865
- const href = (i === 0 && !link.href) ? this.loginManager.getLoginUrl() : link.href;
4866
- 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)));
4867
- }))
4868
- : (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 })
4869
4893
  :
4870
- h("div", null, h("ul", null, this.loginDialog.loggedInLinks.map((link) => {
4871
- const isLogoutLink = link.href.indexOf('logout') !== -1;
4872
- const href = (isLogoutLink) ? this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', '')) : link.href;
4873
- return (h("li", null, h("pn-button", Object.assign({ href: href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => {
4874
- if (isLogoutLink) {
4875
- this.loginManager.clearUserData();
4876
- }
4877
- } }), link.linkText)));
4878
- }))))
4879
- :
4880
- 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));
4881
4901
  }
4882
4902
  get hostElement() { return this; }
4883
4903
  static get watchers() { return {
4884
- "i18n": ["init"],
4885
4904
  "loginDialog": ["init"]
4886
4905
  }; }
4887
- static get style() { return pnMarketwebSiteheaderProfileselectionCss; }
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; }
4888
4991
  };
4889
4992
 
4890
4993
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
@@ -5562,12 +5665,12 @@ let PnProfileSelectorOption$1 = class extends HTMLElement {
5562
5665
  constructor() {
5563
5666
  super();
5564
5667
  this.__registerHost();
5565
- this.title = "";
5668
+ this.heading = "";
5566
5669
  this.description = "";
5567
5670
  this.url = "";
5568
5671
  }
5569
5672
  render() {
5570
- return (h(Host, null, h("a", { class: "profileselectoroption", href: this.url }, h("span", { class: "profileselectoroption-text" }, h("span", { class: "profileselectoroption-title" }, this.title), h("span", { class: "profileselectoroption-description" }, this.description)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
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" }))));
5571
5674
  }
5572
5675
  get hostElement() { return this; }
5573
5676
  static get style() { return pnProfileSelectorOptionCss; }
@@ -5887,8 +5990,8 @@ let PnTiletag = class extends HTMLElement {
5887
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]}]);
5888
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]}]);
5889
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"]]]);
5890
- const PnCustomernumberSelector = /*@__PURE__*/proxyCustomElement(PnCustomernumberSelector$1, [4,"pn-customernumber-selector",{"language":[1537],"open":[1540],"title":[1],"description":[1],"i18n":[32]}]);
5891
- const PnCustomernumberSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$2, [4,"pn-customernumber-selector-option",{"title":[1],"description":[1],"url":[1]}]);
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]}]);
5892
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"]]]);
5893
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]}]);
5894
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]}]);
@@ -5903,9 +6006,11 @@ const PnMainnavList = /*@__PURE__*/proxyCustomElement(PnMainnavList$1, [4,"pn-ma
5903
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]}]);
5904
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"]]]);
5905
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]}]);
5906
- 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"]]]);
5907
- const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"loginManager":[32],"toggleButtonText":[32],"username":[32]}]);
5908
- const PnMarketwebSiteheaderProfileselection = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderProfileSelection, [0,"pn-marketweb-siteheader-profileselection",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"fullname":[1],"loggedin":[4],"loginManager":[32],"toggleButtonText":[32],"username":[32]}]);
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]}]);
5909
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]}]);
5910
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"]]]);
5911
6016
  const PnProductCard = /*@__PURE__*/proxyCustomElement(PnProductCard$1, [4,"pn-product-card"]);
@@ -5917,7 +6022,7 @@ const PnProductTile = /*@__PURE__*/proxyCustomElement(PnProductTile$1, [4,"pn-pr
5917
6022
  const PnProductTileInfo = /*@__PURE__*/proxyCustomElement(PnProductTileInfo$1, [0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}]);
5918
6023
  const PnProductTilePrice = /*@__PURE__*/proxyCustomElement(PnProductTilePrice$1, [0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]);
5919
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]}]);
5920
- const PnProfileSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$1, [0,"pn-profile-selector-option",{"title":[1],"description":[1],"url":[1]}]);
6025
+ const PnProfileSelectorOption = /*@__PURE__*/proxyCustomElement(PnProfileSelectorOption$1, [0,"pn-profile-selector-option",{"heading":[1],"description":[1],"url":[1]}]);
5921
6026
  const PnSidenav = /*@__PURE__*/proxyCustomElement(PnSidenav$1, [4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]);
5922
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]}]);
5923
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]}]);
@@ -5950,7 +6055,9 @@ const defineCustomElements = (opts) => {
5950
6055
  PnMarketwebSitefooter,
5951
6056
  PnMarketwebSiteheader,
5952
6057
  PnMarketwebSiteheaderLogin,
5953
- PnMarketwebSiteheaderProfileselection,
6058
+ PnMarketwebSiteheaderLoginLinklist,
6059
+ PnMarketwebSiteheaderLoginLinks,
6060
+ PnMarketwebSiteheaderLoginProfileselection,
5954
6061
  PnMarketwebSiteheaderSearch,
5955
6062
  PnPexPricefinder,
5956
6063
  PnProductCard,
@@ -5979,4 +6086,4 @@ const defineCustomElements = (opts) => {
5979
6086
  }
5980
6087
  };
5981
6088
 
5982
- export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderProfileselection, PnMarketwebSiteheaderSearch, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileSelector, PnProfileSelectorOption, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, PnTitletag, defineCustomElements };
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 };