@postnord/pn-marketweb-components 2.7.0 → 2.8.0

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 (91) hide show
  1. package/cjs/{FetchHelper-f6a2cff4.js → FetchHelper-e2a3b779.js} +24 -24
  2. package/cjs/{data-5de56280.js → data-86e43c6a.js} +3 -3
  3. package/cjs/pn-address-autofill.cjs.entry.js +1 -1
  4. package/cjs/pn-find-price-result.cjs.entry.js +1 -1
  5. package/cjs/pn-find-price.cjs.entry.js +1 -1
  6. package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
  7. package/cjs/pn-language-selector_9.cjs.entry.js +1 -1
  8. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  9. package/cjs/pn-marketweb-siteheader.cjs.entry.js +1 -1
  10. package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
  11. package/cjs/pn-proxio-findprice.cjs.entry.js +1 -1
  12. package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
  13. package/collection/components/cards/pn-quote-card/pn-quote-card.stories.js +2 -2
  14. package/collection/components/cards/pn-teaser-card/pn-teaser-card.stories.js +2 -2
  15. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.stories.js +3 -3
  16. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.stories.js +6 -6
  17. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.stories.js +5 -5
  18. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.css +1 -1
  19. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +10 -10
  20. package/collection/components/navigation/pn-mainnav/pn-main-nav-mockdata.js +574 -574
  21. package/collection/components/widgets/pn-find-price/data.js +4 -4
  22. package/collection/components/widgets/pn-find-service-and-price/find-service-and-price.stories.js +1 -1
  23. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +2 -2
  24. package/collection/components/widgets/pn-product-pricelist/data.js +1 -1
  25. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -2
  26. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +1 -1
  27. package/collection/components/widgets/pn-proxio-findprice/data.js +3 -3
  28. package/collection/globals/MarketWebContextService.js +24 -24
  29. package/components/FetchHelper.js +24 -24
  30. package/components/pn-find-price-result2.js +3 -3
  31. package/components/pn-find-service-and-price.js +1 -1
  32. package/components/pn-marketweb-siteheader-search2.js +1 -1
  33. package/components/pn-product-pricelist.js +1 -1
  34. package/esm/{FetchHelper-eb0357e9.js → FetchHelper-90e30133.js} +24 -24
  35. package/esm/{data-82a26ab4.js → data-b2909ec8.js} +3 -3
  36. package/esm/pn-address-autofill.entry.js +1 -1
  37. package/esm/pn-find-price-result.entry.js +1 -1
  38. package/esm/pn-find-price.entry.js +1 -1
  39. package/esm/pn-find-service-and-price.entry.js +1 -1
  40. package/esm/pn-language-selector_9.entry.js +1 -1
  41. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  42. package/esm/pn-marketweb-siteheader.entry.js +1 -1
  43. package/esm/pn-product-pricelist.entry.js +1 -1
  44. package/esm/pn-proxio-findprice.entry.js +1 -1
  45. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  46. package/esm-es5/FetchHelper-90e30133.js +1 -0
  47. package/esm-es5/{data-82a26ab4.js → data-b2909ec8.js} +1 -1
  48. package/esm-es5/pn-address-autofill.entry.js +1 -1
  49. package/esm-es5/pn-find-price-result.entry.js +1 -1
  50. package/esm-es5/pn-find-price.entry.js +1 -1
  51. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  52. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  53. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  54. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  55. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  56. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  57. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  58. package/package.json +1 -1
  59. package/pn-market-web-components/{p-72ed65c3.js → p-0fe7d566.js} +1 -1
  60. package/pn-market-web-components/{p-a84cf081.entry.js → p-2974d1e2.entry.js} +1 -1
  61. package/pn-market-web-components/{p-4dd222be.system.entry.js → p-2c448c7e.system.entry.js} +1 -1
  62. package/pn-market-web-components/{p-517692db.entry.js → p-2c790fc8.entry.js} +1 -1
  63. package/pn-market-web-components/{p-3b4c1957.system.entry.js → p-3f97df73.system.entry.js} +1 -1
  64. package/pn-market-web-components/p-4b710959.entry.js +1 -0
  65. package/pn-market-web-components/{p-25e531e2.entry.js → p-4bf57a22.entry.js} +1 -1
  66. package/pn-market-web-components/{p-fd1d6d1f.system.entry.js → p-517602ef.system.entry.js} +1 -1
  67. package/pn-market-web-components/{p-9fbb1a52.system.entry.js → p-54ffd368.system.entry.js} +1 -1
  68. package/pn-market-web-components/p-602484e1.system.js +1 -0
  69. package/pn-market-web-components/p-67f5cd23.entry.js +1 -0
  70. package/pn-market-web-components/{p-42630ad8.system.entry.js → p-7587b935.system.entry.js} +1 -1
  71. package/pn-market-web-components/{p-5d2ef297.system.entry.js → p-75e56082.system.entry.js} +1 -1
  72. package/pn-market-web-components/{p-5685ac83.entry.js → p-7961f8f3.entry.js} +1 -1
  73. package/pn-market-web-components/{p-f8ad020c.system.entry.js → p-90d2f560.system.entry.js} +1 -1
  74. package/pn-market-web-components/{p-04f5fdcd.system.entry.js → p-936eab9c.system.entry.js} +1 -1
  75. package/pn-market-web-components/{p-d04e241e.system.js → p-9ad4e291.system.js} +1 -1
  76. package/pn-market-web-components/{p-b75c4de5.entry.js → p-9c477df8.entry.js} +1 -1
  77. package/pn-market-web-components/{p-2c1a9293.entry.js → p-9f856003.entry.js} +1 -1
  78. package/pn-market-web-components/p-a28fce54.system.js +1 -1
  79. package/pn-market-web-components/p-dbfeae15.js +1 -0
  80. package/pn-market-web-components/{p-d5c43a05.system.entry.js → p-e505ebd8.system.entry.js} +1 -1
  81. package/pn-market-web-components/{p-1fdcbca3.system.entry.js → p-e9d7d7af.system.entry.js} +1 -1
  82. package/pn-market-web-components/{p-4f237552.entry.js → p-f91cee83.entry.js} +1 -1
  83. package/pn-market-web-components/{p-e261ccbf.entry.js → p-fedeefd9.entry.js} +1 -1
  84. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  85. package/umd/pn-marketweb-init.js +1 -1
  86. package/umd/pn-marketweb-salesforce.js +2 -2
  87. package/esm-es5/FetchHelper-eb0357e9.js +0 -1
  88. package/pn-market-web-components/p-214cd6a4.entry.js +0 -1
  89. package/pn-market-web-components/p-6a71dc95.entry.js +0 -1
  90. package/pn-market-web-components/p-7f52f032.system.js +0 -1
  91. package/pn-market-web-components/p-aa2c8f12.js +0 -1
@@ -34,17 +34,17 @@ const weights = {
34
34
  const RealValues = {
35
35
  WebUrl: "https://riktigavykort.postnord.se/sv",
36
36
  AndroidAppUrl: "https://play.google.com/store/apps/details?id=se.posten.riktigavykort&hl=sv",
37
- AndroidImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
37
+ AndroidImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
38
38
  IosAppUrl: "https://apps.apple.com/se/app/riktiga-vykort/id444458799?l=sv",
39
- IosImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
39
+ IosImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
40
40
  };
41
41
 
42
- const fileLocation = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
42
+ const fileLocation = "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
43
43
 
44
44
  const sendDirectUrl = "https://portal.postnord.com/skickadirekt/";
45
45
 
46
46
  const stampShopUrl = "https://shop.postnord.se/ebutik/default.aspx";
47
47
 
48
- const productDescriptionUrl = "https://se-integration.postnord.com/skicka-forsandelser/brev-och-vykort/";
48
+ const productDescriptionUrl = "https://se-inte.postnord.com/skicka-forsandelser/brev-och-vykort/";
49
49
 
50
50
  export { weights, sizeCategories, fileLocation, sendDirectUrl, stampShopUrl, RealValues };
@@ -21,7 +21,7 @@ const Template = ({ ...args }) => {
21
21
 
22
22
  export const Primary = Template.bind({});
23
23
  Primary.args = {
24
- source: "https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx",
24
+ source: "https://com-inte.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx",
25
25
  language: "sv",
26
26
  market: "se",
27
27
  };
@@ -5,7 +5,7 @@ import { convertFileFromStream } from "../../../globals/shared/productprice/conv
5
5
  import { state } from "./pn-find-service-and-price-store";
6
6
  export class PnfindServiceAndPrice {
7
7
  constructor() {
8
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
8
+ this.source = "https://com-inte.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
9
9
  this.language = "sv";
10
10
  this.market = "se";
11
11
  this.filteredItems = [];
@@ -168,7 +168,7 @@ export class PnfindServiceAndPrice {
168
168
  },
169
169
  "attribute": "source",
170
170
  "reflect": false,
171
- "defaultValue": "\"https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx\""
171
+ "defaultValue": "\"https://com-inte.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx\""
172
172
  },
173
173
  "language": {
174
174
  "type": "string",
@@ -47,7 +47,7 @@ const weights = {
47
47
  ],
48
48
  };
49
49
 
50
- const fileLocation = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
50
+ const fileLocation = "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
51
51
 
52
52
  const servicePointUrl = "https://www.postnord.se/vara-verktyg/sok-brevlada-eller-servicestalle";
53
53
 
@@ -6,7 +6,7 @@ import { convertFileFromStream } from "../../../globals/shared/productprice/conv
6
6
  import { state } from "../pn-find-price/pn-find-price-store";
7
7
  export class PnFindProductPricelist {
8
8
  constructor() {
9
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
9
+ this.source = "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
10
10
  this.language = "sv";
11
11
  this.market = "se";
12
12
  this.productid = "";
@@ -153,7 +153,7 @@ export class PnFindProductPricelist {
153
153
  },
154
154
  "attribute": "source",
155
155
  "reflect": false,
156
- "defaultValue": "\"https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx\""
156
+ "defaultValue": "\"https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx\""
157
157
  },
158
158
  "language": {
159
159
  "type": "string",
@@ -26,7 +26,7 @@ export const Primary = Template.bind({});
26
26
  Primary.args = {
27
27
  heading: "",
28
28
  description: "",
29
- source: "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx",
29
+ source: "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx",
30
30
  language: "sv",
31
31
  market: "se",
32
32
  productid: "letter",
@@ -77,15 +77,15 @@ const weights = {
77
77
  const RealValues = {
78
78
  WebUrl: "https://riktigavykort.postnord.se/sv",
79
79
  AndroidAppUrl: "https://play.google.com/store/apps/details?id=se.posten.riktigavykort&hl=sv",
80
- AndroidImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
80
+ AndroidImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
81
81
  IosAppUrl: "https://apps.apple.com/se/app/riktiga-vykort/id444458799?l=sv",
82
- IosImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
82
+ IosImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
83
83
  };
84
84
 
85
85
  const sendDirectUrl = "https://portal.postnord.com/skickadirekt/";
86
86
 
87
87
  const stampShopUrl = "https://shop.postnord.se/ebutik/default.aspx";
88
88
 
89
- const productDescriptionUrl = "https://se-integration.postnord.com/skicka-forsandelser/brev-och-vykort/";
89
+ const productDescriptionUrl = "https://se-inte.postnord.com/skicka-forsandelser/brev-och-vykort/";
90
90
 
91
91
  export { weights, sizeCategories, sendDirectUrl, stampShopUrl, RealValues };
@@ -12,55 +12,55 @@ class MarketWebContextService {
12
12
  this.markets = {
13
13
  se: {
14
14
  fallbackLanguage: "sv",
15
- integration: "se-integration.postnord.com",
16
- preproduction: "se-preproduction.postnord.com",
17
- production: "se-production.postnord.com",
15
+ integration: "se-inte.postnord.com",
16
+ preproduction: "se-prep.postnord.com",
17
+ production: "se-prod.postnord.com",
18
18
  live: "www.postnord.se",
19
19
  },
20
20
  dk: {
21
21
  fallbackLanguage: "da",
22
- integration: "dk-integration.postnord.com",
23
- preproduction: "dk-preproduction.postnord.com",
24
- production: "dk-production.postnord.com",
22
+ integration: "dk-inte.postnord.com",
23
+ preproduction: "dk-prep.postnord.com",
24
+ production: "dk-prod.postnord.com",
25
25
  live: "www.postnord.dk",
26
26
  },
27
27
  fi: {
28
28
  fallbackLanguage: "fi",
29
- integration: "fi-integration.postnord.com",
30
- preproduction: "fi-preproduction.postnord.com",
31
- production: "fi-production.postnord.com",
29
+ integration: "fi-inte.postnord.com",
30
+ preproduction: "fi-prep.postnord.com",
31
+ production: "fi-prod.postnord.com",
32
32
  live: "www.postnord.fi",
33
33
  },
34
34
  no: {
35
35
  fallbackLanguage: "no",
36
- integration: "no-integration.postnord.com",
37
- preproduction: "no-preproduction.postnord.com",
38
- production: "no-production.postnord.com",
36
+ integration: "no-inte.postnord.com",
37
+ preproduction: "no-prep.postnord.com",
38
+ production: "no-prod.postnord.com",
39
39
  live: "www.postnord.no",
40
40
  },
41
41
  com: {
42
42
  fallbackLanguage: "en",
43
- integration: "com-integration.postnord.com",
44
- preproduction: "com-preproduction.postnord.com",
45
- production: "com-production.postnord.com",
43
+ integration: "com-inte.postnord.com",
44
+ preproduction: "com-prep.postnord.com",
45
+ production: "com-prod.postnord.com",
46
46
  live: "www.postnord.com",
47
47
  },
48
48
  de: {
49
49
  fallbackLanguage: "en",
50
- integration: "de-integration.postnord.com",
51
- preproduction: "de-preproduction.postnord.com",
52
- production: "de-production.postnord.com",
50
+ integration: "de-inte.postnord.com",
51
+ preproduction: "de-prep.postnord.com",
52
+ production: "de-prod.postnord.com",
53
53
  live: "www.postnord.de",
54
54
  },
55
55
  tpl: {
56
56
  fallbackLanguage: "sv",
57
- integration: "tpl-integration.postnord.com",
58
- preproduction: "tpl-preproduction.postnord.com",
59
- production: "tpl-production.postnord.com",
57
+ integration: "tpl-inte.postnord.com",
58
+ preproduction: "tpl-prep.postnord.com",
59
+ production: "tpl-prod.postnord.com",
60
60
  live: "tpl.postnord.com",
61
61
  },
62
62
  };
63
- this.environmentTypes = ["integration", "preproduction", "production"];
63
+ this.environmentTypes = ["integration", "preproduction", "production", "inte", "prep", "prod"];
64
64
  this.environments = {
65
65
  production: {
66
66
  name: "production",
@@ -68,11 +68,11 @@ class MarketWebContextService {
68
68
  },
69
69
  preproduction: {
70
70
  name: "preproduction",
71
- url: "https://com-preproduction.postnord.com/",
71
+ url: "https://com-prep.postnord.com/",
72
72
  },
73
73
  integration: {
74
74
  name: "integration",
75
- url: "https://com-integration.postnord.com/",
75
+ url: "https://com-inte.postnord.com/",
76
76
  },
77
77
  };
78
78
  this.href = href;
@@ -12,55 +12,55 @@ class MarketWebContextService {
12
12
  this.markets = {
13
13
  se: {
14
14
  fallbackLanguage: "sv",
15
- integration: "se-integration.postnord.com",
16
- preproduction: "se-preproduction.postnord.com",
17
- production: "se-production.postnord.com",
15
+ integration: "se-inte.postnord.com",
16
+ preproduction: "se-prep.postnord.com",
17
+ production: "se-prod.postnord.com",
18
18
  live: "www.postnord.se",
19
19
  },
20
20
  dk: {
21
21
  fallbackLanguage: "da",
22
- integration: "dk-integration.postnord.com",
23
- preproduction: "dk-preproduction.postnord.com",
24
- production: "dk-production.postnord.com",
22
+ integration: "dk-inte.postnord.com",
23
+ preproduction: "dk-prep.postnord.com",
24
+ production: "dk-prod.postnord.com",
25
25
  live: "www.postnord.dk",
26
26
  },
27
27
  fi: {
28
28
  fallbackLanguage: "fi",
29
- integration: "fi-integration.postnord.com",
30
- preproduction: "fi-preproduction.postnord.com",
31
- production: "fi-production.postnord.com",
29
+ integration: "fi-inte.postnord.com",
30
+ preproduction: "fi-prep.postnord.com",
31
+ production: "fi-prod.postnord.com",
32
32
  live: "www.postnord.fi",
33
33
  },
34
34
  no: {
35
35
  fallbackLanguage: "no",
36
- integration: "no-integration.postnord.com",
37
- preproduction: "no-preproduction.postnord.com",
38
- production: "no-production.postnord.com",
36
+ integration: "no-inte.postnord.com",
37
+ preproduction: "no-prep.postnord.com",
38
+ production: "no-prod.postnord.com",
39
39
  live: "www.postnord.no",
40
40
  },
41
41
  com: {
42
42
  fallbackLanguage: "en",
43
- integration: "com-integration.postnord.com",
44
- preproduction: "com-preproduction.postnord.com",
45
- production: "com-production.postnord.com",
43
+ integration: "com-inte.postnord.com",
44
+ preproduction: "com-prep.postnord.com",
45
+ production: "com-prod.postnord.com",
46
46
  live: "www.postnord.com",
47
47
  },
48
48
  de: {
49
49
  fallbackLanguage: "en",
50
- integration: "de-integration.postnord.com",
51
- preproduction: "de-preproduction.postnord.com",
52
- production: "de-production.postnord.com",
50
+ integration: "de-inte.postnord.com",
51
+ preproduction: "de-prep.postnord.com",
52
+ production: "de-prod.postnord.com",
53
53
  live: "www.postnord.de",
54
54
  },
55
55
  tpl: {
56
56
  fallbackLanguage: "sv",
57
- integration: "tpl-integration.postnord.com",
58
- preproduction: "tpl-preproduction.postnord.com",
59
- production: "tpl-production.postnord.com",
57
+ integration: "tpl-inte.postnord.com",
58
+ preproduction: "tpl-prep.postnord.com",
59
+ production: "tpl-prod.postnord.com",
60
60
  live: "tpl.postnord.com",
61
61
  },
62
62
  };
63
- this.environmentTypes = ["integration", "preproduction", "production"];
63
+ this.environmentTypes = ["integration", "preproduction", "production", "inte", "prep", "prod"];
64
64
  this.environments = {
65
65
  production: {
66
66
  name: "production",
@@ -68,11 +68,11 @@ class MarketWebContextService {
68
68
  },
69
69
  preproduction: {
70
70
  name: "preproduction",
71
- url: "https://com-preproduction.postnord.com/",
71
+ url: "https://com-prep.postnord.com/",
72
72
  },
73
73
  integration: {
74
74
  name: "integration",
75
- url: "https://com-integration.postnord.com/",
75
+ url: "https://com-inte.postnord.com/",
76
76
  },
77
77
  };
78
78
  this.href = href;
@@ -41,12 +41,12 @@ const weights = {
41
41
  const RealValues = {
42
42
  WebUrl: "https://riktigavykort.postnord.se/sv",
43
43
  AndroidAppUrl: "https://play.google.com/store/apps/details?id=se.posten.riktigavykort&hl=sv",
44
- AndroidImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
44
+ AndroidImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
45
45
  IosAppUrl: "https://apps.apple.com/se/app/riktiga-vykort/id444458799?l=sv",
46
- IosImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
46
+ IosImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
47
47
  };
48
48
 
49
- const fileLocation = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
49
+ const fileLocation = "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
50
50
 
51
51
  const sendDirectUrl = "https://portal.postnord.com/skickadirekt/";
52
52
 
@@ -134,7 +134,7 @@ const PnfindServiceAndPrice = /*@__PURE__*/ proxyCustomElement(class extends HTM
134
134
  constructor() {
135
135
  super();
136
136
  this.__registerHost();
137
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
137
+ this.source = "https://com-inte.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
138
138
  this.language = "sv";
139
139
  this.market = "se";
140
140
  this.filteredItems = [];
@@ -8,7 +8,7 @@ const { state, onChange } = createStore({
8
8
  requestAbortController: new AbortController()
9
9
  });
10
10
 
11
- const pnMarketwebSiteheaderSearchCss = ".siteheader-search a{display:none}@media screen and (min-width: 48em){.siteheader-search a{display:block}}.siteheader-search pn-search-field>.input-container button{background:#FFFFFF}.siteheader-search pn-search-field.button-icon pn-button,.siteheader-search pn-button{display:-ms-inline-flexbox;display:inline-flex}.siteheader-search pn-search-field.button-icon pn-button button,.siteheader-search pn-button button{-ms-flex-item-align:center;align-self:center;padding:0;height:2.3em;width:2.3em;line-height:0;min-height:unset;min-width:unset}.siteheader-search pn-search-field.button-icon pn-button pn-icon,.siteheader-search pn-button pn-icon{margin-left:0}.siteheader-search pn-search-field.button-icon pn-button .button-tooltip,.siteheader-search pn-button .button-tooltip{line-height:initial}.siteheader-search form{-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:stretch;align-items:stretch;width:auto;-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;padding:0;margin:0 0 0 0.4rem;position:relative;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 60em){.siteheader-search form{margin-right:1.6rem}}.siteheader-search form pn-search-field{min-width:13.5em}.siteheader-search form pn-search-field .input-container{-ms-flex-item-align:center;align-self:center}.siteheader-search form pn-search-field input{height:auto;min-height:1em;padding:0.6em 0.75em}";
11
+ const pnMarketwebSiteheaderSearchCss = ".siteheader-search a{display:none}@media screen and (min-width: 48em){.siteheader-search a{display:block}}.siteheader-search pn-search-field>.input-container button{background:#FFFFFF}.siteheader-search pn-search-field.button-icon pn-button,.siteheader-search pn-button{display:-ms-inline-flexbox;display:inline-flex}.siteheader-search pn-search-field.button-icon pn-button button,.siteheader-search pn-button button{-ms-flex-item-align:center;align-self:center;padding:0;height:2.3em;width:2.3em;line-height:0;min-height:unset;min-width:unset}.siteheader-search pn-search-field.button-icon pn-button pn-icon,.siteheader-search pn-button pn-icon{margin-left:0}.siteheader-search pn-search-field.button-icon pn-button .button-tooltip,.siteheader-search pn-button .button-tooltip{line-height:initial !important}.siteheader-search form{-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:stretch;align-items:stretch;width:auto;-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;padding:0;margin:0 0 0 0.4rem;position:relative;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 60em){.siteheader-search form{margin-right:1.6rem}}.siteheader-search form pn-search-field{min-width:13.5em}.siteheader-search form pn-search-field .input-container{-ms-flex-item-align:center;align-self:center}.siteheader-search form pn-search-field input{height:auto;min-height:1em;padding:0.6em 0.75em}";
12
12
 
13
13
  const PnMarketwebSiteheaderSearch = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
14
14
  constructor() {
@@ -86,7 +86,7 @@ const PnFindProductPricelist = /*@__PURE__*/ proxyCustomElement(class extends HT
86
86
  constructor() {
87
87
  super();
88
88
  this.__registerHost();
89
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
89
+ this.source = "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
90
90
  this.language = "sv";
91
91
  this.market = "se";
92
92
  this.productid = "";
@@ -12,55 +12,55 @@ class MarketWebContextService {
12
12
  this.markets = {
13
13
  se: {
14
14
  fallbackLanguage: "sv",
15
- integration: "se-integration.postnord.com",
16
- preproduction: "se-preproduction.postnord.com",
17
- production: "se-production.postnord.com",
15
+ integration: "se-inte.postnord.com",
16
+ preproduction: "se-prep.postnord.com",
17
+ production: "se-prod.postnord.com",
18
18
  live: "www.postnord.se",
19
19
  },
20
20
  dk: {
21
21
  fallbackLanguage: "da",
22
- integration: "dk-integration.postnord.com",
23
- preproduction: "dk-preproduction.postnord.com",
24
- production: "dk-production.postnord.com",
22
+ integration: "dk-inte.postnord.com",
23
+ preproduction: "dk-prep.postnord.com",
24
+ production: "dk-prod.postnord.com",
25
25
  live: "www.postnord.dk",
26
26
  },
27
27
  fi: {
28
28
  fallbackLanguage: "fi",
29
- integration: "fi-integration.postnord.com",
30
- preproduction: "fi-preproduction.postnord.com",
31
- production: "fi-production.postnord.com",
29
+ integration: "fi-inte.postnord.com",
30
+ preproduction: "fi-prep.postnord.com",
31
+ production: "fi-prod.postnord.com",
32
32
  live: "www.postnord.fi",
33
33
  },
34
34
  no: {
35
35
  fallbackLanguage: "no",
36
- integration: "no-integration.postnord.com",
37
- preproduction: "no-preproduction.postnord.com",
38
- production: "no-production.postnord.com",
36
+ integration: "no-inte.postnord.com",
37
+ preproduction: "no-prep.postnord.com",
38
+ production: "no-prod.postnord.com",
39
39
  live: "www.postnord.no",
40
40
  },
41
41
  com: {
42
42
  fallbackLanguage: "en",
43
- integration: "com-integration.postnord.com",
44
- preproduction: "com-preproduction.postnord.com",
45
- production: "com-production.postnord.com",
43
+ integration: "com-inte.postnord.com",
44
+ preproduction: "com-prep.postnord.com",
45
+ production: "com-prod.postnord.com",
46
46
  live: "www.postnord.com",
47
47
  },
48
48
  de: {
49
49
  fallbackLanguage: "en",
50
- integration: "de-integration.postnord.com",
51
- preproduction: "de-preproduction.postnord.com",
52
- production: "de-production.postnord.com",
50
+ integration: "de-inte.postnord.com",
51
+ preproduction: "de-prep.postnord.com",
52
+ production: "de-prod.postnord.com",
53
53
  live: "www.postnord.de",
54
54
  },
55
55
  tpl: {
56
56
  fallbackLanguage: "sv",
57
- integration: "tpl-integration.postnord.com",
58
- preproduction: "tpl-preproduction.postnord.com",
59
- production: "tpl-production.postnord.com",
57
+ integration: "tpl-inte.postnord.com",
58
+ preproduction: "tpl-prep.postnord.com",
59
+ production: "tpl-prod.postnord.com",
60
60
  live: "tpl.postnord.com",
61
61
  },
62
62
  };
63
- this.environmentTypes = ["integration", "preproduction", "production"];
63
+ this.environmentTypes = ["integration", "preproduction", "production", "inte", "prep", "prod"];
64
64
  this.environments = {
65
65
  production: {
66
66
  name: "production",
@@ -68,11 +68,11 @@ class MarketWebContextService {
68
68
  },
69
69
  preproduction: {
70
70
  name: "preproduction",
71
- url: "https://com-preproduction.postnord.com/",
71
+ url: "https://com-prep.postnord.com/",
72
72
  },
73
73
  integration: {
74
74
  name: "integration",
75
- url: "https://com-integration.postnord.com/",
75
+ url: "https://com-inte.postnord.com/",
76
76
  },
77
77
  };
78
78
  this.href = href;
@@ -34,12 +34,12 @@ const weights = {
34
34
  const RealValues = {
35
35
  WebUrl: "https://riktigavykort.postnord.se/sv",
36
36
  AndroidAppUrl: "https://play.google.com/store/apps/details?id=se.posten.riktigavykort&hl=sv",
37
- AndroidImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
37
+ AndroidImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",
38
38
  IosAppUrl: "https://apps.apple.com/se/app/riktiga-vykort/id444458799?l=sv",
39
- IosImg: "https://com-integration.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
39
+ IosImg: "https://com-inte.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg",
40
40
  };
41
41
 
42
- const fileLocation = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
42
+ const fileLocation = "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
43
43
 
44
44
  const sendDirectUrl = "https://portal.postnord.com/skickadirekt/";
45
45
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-be8c3299.js';
2
- import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-eb0357e9.js';
2
+ import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-90e30133.js';
3
3
  import { d as debounce_1 } from './index-8976f360.js';
4
4
 
5
5
  const pnAddressAutofillCss = "pn-address-autofill pn-marketweb-input{width:50%}pn-address-autofill .input-container-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-address-autofill .label-container{color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-address-autofill .autocomplete-items{position:absolute;border-radius:0.8rem;border:0.1rem solid #5E554A;width:100%;max-height:30rem;overflow-y:auto}pn-address-autofill .autocomplete-items:hover,pn-address-autofill .autocomplete-items :focus{border:0.1rem solid #00A0D6}pn-address-autofill .autocomplete-items div{padding:1.6rem;cursor:pointer;background-color:#fff;border:0.1rem solid transparent}pn-address-autofill .autocomplete-items div:first-child{border-radius:0.8rem 0.8rem 0 0}pn-address-autofill .autocomplete-items div:last-child{border-radius:0 0 0.8rem 0.8rem}pn-address-autofill .autocomplete-items div:hover{background-color:#e0f8ff}pn-address-autofill .autocomplete-items .autocomplete-active{background-color:#e0f8ff}";
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-be8c3299.js';
2
2
  import { s as state } from './pn-find-price-store-9d2df21a.js';
3
- import { a as stampShopUrl, b as sendDirectUrl, R as RealValues } from './data-82a26ab4.js';
3
+ import { a as stampShopUrl, b as sendDirectUrl, R as RealValues } from './data-b2909ec8.js';
4
4
  import './index-e6fbe66d.js';
5
5
 
6
6
  const pnFindPriceResultCss = "pn-find-price-result .test{margin:3em 0}.resultcontent{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-be8c3299.js';
2
- import { f as fileLocation, s as sizeCategories, w as weights } from './data-82a26ab4.js';
2
+ import { f as fileLocation, s as sizeCategories, w as weights } from './data-b2909ec8.js';
3
3
  import { c as convertFileForSizeCategogy } from './convert-f6377d13.js';
4
4
  import { s as state } from './pn-find-price-store-9d2df21a.js';
5
5
  import './_commonjsHelpers-27f122dd.js';
@@ -131,7 +131,7 @@ const pnFindServiceAndPriceCss = "pn-find-service-and-price .findprice-form{max-
131
131
  const PnfindServiceAndPrice = class {
132
132
  constructor(hostRef) {
133
133
  registerInstance(this, hostRef);
134
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
134
+ this.source = "https://com-inte.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
135
135
  this.language = "sv";
136
136
  this.market = "se";
137
137
  this.filteredItems = [];
@@ -908,7 +908,7 @@ const { state, onChange } = createStore({
908
908
  requestAbortController: new AbortController()
909
909
  });
910
910
 
911
- const pnMarketwebSiteheaderSearchCss = ".siteheader-search a{display:none}@media screen and (min-width: 48em){.siteheader-search a{display:block}}.siteheader-search pn-search-field>.input-container button{background:#FFFFFF}.siteheader-search pn-search-field.button-icon pn-button,.siteheader-search pn-button{display:-ms-inline-flexbox;display:inline-flex}.siteheader-search pn-search-field.button-icon pn-button button,.siteheader-search pn-button button{-ms-flex-item-align:center;align-self:center;padding:0;height:2.3em;width:2.3em;line-height:0;min-height:unset;min-width:unset}.siteheader-search pn-search-field.button-icon pn-button pn-icon,.siteheader-search pn-button pn-icon{margin-left:0}.siteheader-search pn-search-field.button-icon pn-button .button-tooltip,.siteheader-search pn-button .button-tooltip{line-height:initial}.siteheader-search form{-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:stretch;align-items:stretch;width:auto;-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;padding:0;margin:0 0 0 0.4rem;position:relative;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 60em){.siteheader-search form{margin-right:1.6rem}}.siteheader-search form pn-search-field{min-width:13.5em}.siteheader-search form pn-search-field .input-container{-ms-flex-item-align:center;align-self:center}.siteheader-search form pn-search-field input{height:auto;min-height:1em;padding:0.6em 0.75em}";
911
+ const pnMarketwebSiteheaderSearchCss = ".siteheader-search a{display:none}@media screen and (min-width: 48em){.siteheader-search a{display:block}}.siteheader-search pn-search-field>.input-container button{background:#FFFFFF}.siteheader-search pn-search-field.button-icon pn-button,.siteheader-search pn-button{display:-ms-inline-flexbox;display:inline-flex}.siteheader-search pn-search-field.button-icon pn-button button,.siteheader-search pn-button button{-ms-flex-item-align:center;align-self:center;padding:0;height:2.3em;width:2.3em;line-height:0;min-height:unset;min-width:unset}.siteheader-search pn-search-field.button-icon pn-button pn-icon,.siteheader-search pn-button pn-icon{margin-left:0}.siteheader-search pn-search-field.button-icon pn-button .button-tooltip,.siteheader-search pn-button .button-tooltip{line-height:initial !important}.siteheader-search form{-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:stretch;align-items:stretch;width:auto;-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;padding:0;margin:0 0 0 0.4rem;position:relative;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 60em){.siteheader-search form{margin-right:1.6rem}}.siteheader-search form pn-search-field{min-width:13.5em}.siteheader-search form pn-search-field .input-container{-ms-flex-item-align:center;align-self:center}.siteheader-search form pn-search-field input{height:auto;min-height:1em;padding:0.6em 0.75em}";
912
912
 
913
913
  const PnMarketwebSiteheaderSearch = class {
914
914
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host, g as getElement } from './index-be8c3299.js';
2
- import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-eb0357e9.js';
2
+ import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-90e30133.js';
3
3
 
4
4
  const getSocialMediaIconsByType = (linkType = '', fill = '#005D92') => {
5
5
  switch (linkType) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-be8c3299.js';
2
- import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-eb0357e9.js';
2
+ import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-90e30133.js';
3
3
  import { s as state } from './pn-marketweb-siteheader-store-aba9e86a.js';
4
4
  import './index-e6fbe66d.js';
5
5
 
@@ -83,7 +83,7 @@ const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}p
83
83
  const PnFindProductPricelist = class {
84
84
  constructor(hostRef) {
85
85
  registerInstance(this, hostRef);
86
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
86
+ this.source = "https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
87
87
  this.language = "sv";
88
88
  this.market = "se";
89
89
  this.productid = "";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-be8c3299.js';
2
- import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-eb0357e9.js';
2
+ import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-90e30133.js';
3
3
  import { c as createStore } from './index-e6fbe66d.js';
4
4
 
5
5
  const translations = {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, a as Host } from './index-be8c3299.js';
2
- import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-eb0357e9.js';
2
+ import { F as FetchHelper, M as MarketWebContextService } from './FetchHelper-90e30133.js';
3
3
  import { t as translations } from './translations-0c395f8d.js';
4
4
 
5
5
  const pnProxioPricegroupCss = "pn-proxio-pricegroup div.proxio-pricegroup-container{max-width:99.4rem}pn-proxio-pricegroup div.weightcontainer{margin:2.8rem 0}pn-proxio-pricegroup div.weightvaluecontainer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}pn-proxio-pricegroup div.weightvaluecontainer pn-button{-webkit-transform:translateY(-0.4rem);transform:translateY(-0.4rem)}pn-proxio-pricegroup div.weightvaluecontainer pn-button button::before{display:none}pn-proxio-pricegroup div.weightradios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:#005D92;width:80%;margin:0 3.6rem;position:relative;width:0%}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:45%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{width:65%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{margin-right:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:45%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{width:65%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{margin-left:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{-ms-flex:0 0 auto;flex:0 0 auto;width:80%}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{width:65%}}pn-proxio-pricegroup div.weightdata{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;gap:1.2rem;min-width:4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata label{font-size:1.4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata[data-carousel-position=\"0\"]{font-size:2rem;font-weight:700}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightdata[data-carousel-position=\"2\"],pn-proxio-pricegroup div.weightdata[data-carousel-position=\"-2\"]{display:none}}pn-proxio-pricegroup div.weightdata[data-carousel-position=outside]{display:none}pn-proxio-pricegroup div.weightdata input[type=radio]{-webkit-appearance:none;-moz-appearance:none;width:1.2rem;height:1.2rem;background-color:#005D92;border-radius:50%;margin:0;cursor:pointer}pn-proxio-pricegroup div.weightdata input[type=radio]:checked{z-index:1;-webkit-transform:translateY(-0.1rem);transform:translateY(-0.1rem);height:1.4rem;width:1.4rem;-webkit-box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92}pn-proxio-pricegroup div.weightline{width:100%;background-color:#F3F2F2;z-index:-1;height:0.8rem;-webkit-transform:translateX(2.1rem) translateY(1.32rem);transform:translateX(2.1rem) translateY(1rem);border-radius:2rem;margin-right:3.5rem}pn-proxio-pricegroup pn-button[disabled=disabled]{opacity:0.2}pn-proxio-pricegroup pn-button[disabled=disabled] button{cursor:default}pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after{background-color:#FFFFFF}pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before{display:none}pn-proxio-pricegroup pn-button button div.button-tooltip{display:none}pn-proxio-pricegroup pn-button button:focus .pn-button-bg{-webkit-box-shadow:none;box-shadow:none}";
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{u(r.next(t))}catch(e){i(e)}}function s(t){try{u(r["throw"](t))}catch(e){i(e)}}function u(t){t.done?n(t.value):o(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return u([t,e])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(u){s=[6,u];o=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var MarketWebContextService=function(){function t(t){if(t===void 0){t=window.location.href}this.href="";this.market="";this.language="";this.environment="";this.url=null;this.allowedLanguages=["sv","da","fi","no","en","de","zh","fr","es","it","nl"];this.allowedMarkets=["se","dk","fi","no","com","de","tpl"];this.wwwMarkets=["se","dk","fi","no","de","com"];this.developmentDomains=["localhost",".local","local.",".dev","dev."];this.markets={se:{fallbackLanguage:"sv",integration:"se-inte.postnord.com",preproduction:"se-prep.postnord.com",production:"se-prod.postnord.com",live:"www.postnord.se"},dk:{fallbackLanguage:"da",integration:"dk-inte.postnord.com",preproduction:"dk-prep.postnord.com",production:"dk-prod.postnord.com",live:"www.postnord.dk"},fi:{fallbackLanguage:"fi",integration:"fi-inte.postnord.com",preproduction:"fi-prep.postnord.com",production:"fi-prod.postnord.com",live:"www.postnord.fi"},no:{fallbackLanguage:"no",integration:"no-inte.postnord.com",preproduction:"no-prep.postnord.com",production:"no-prod.postnord.com",live:"www.postnord.no"},com:{fallbackLanguage:"en",integration:"com-inte.postnord.com",preproduction:"com-prep.postnord.com",production:"com-prod.postnord.com",live:"www.postnord.com"},de:{fallbackLanguage:"en",integration:"de-inte.postnord.com",preproduction:"de-prep.postnord.com",production:"de-prod.postnord.com",live:"www.postnord.de"},tpl:{fallbackLanguage:"sv",integration:"tpl-inte.postnord.com",preproduction:"tpl-prep.postnord.com",production:"tpl-prod.postnord.com",live:"tpl.postnord.com"}};this.environmentTypes=["integration","preproduction","production","inte","prep","prod"];this.environments={production:{name:"production",url:"https://www.postnord.xx/"},preproduction:{name:"preproduction",url:"https://com-prep.postnord.com/"},integration:{name:"integration",url:"https://com-inte.postnord.com/"}};this.href=t;this.url=new URL(this.href)}t.prototype.getLanguage=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(this.language){return[2,this.language]}return[4,this.resolveLanguage()];case 1:t.sent();return[2,this.language]}}))}))};t.prototype.getMarket=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(this.market){return[2,this.market]}return[4,this.resolveMarket()];case 1:t.sent();return[2,this.market]}}))}))};t.prototype.getEndpoint=function(t,e){if(e===void 0){e=""}return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=this.environments.production.url;if(this.markets[e]&&this.markets[e][t]){if(t==="production"&&window.location.hostname.indexOf(this.markets[e]["live"])===0){return[2,"https://"+this.markets[e]["live"]]}if(window.location.hostname.indexOf(this.markets[e][t])===0){return[2,"https://"+this.markets[e][t]]}}if(this.environments[t]){n=this.environments[t].url;if(t===this.environments.production.name){if(this.wwwMarkets.indexOf(e)!==-1){n=n.replace(".xx","."+e)}else{n=n.replace(".xx",".com");n=n.replace("www.",e+".")}}}return[2,n]}))}))};t.prototype.getEnvironmentName=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(n){t=this.environmentTypes.filter((function(t){return e.url.hostname.indexOf("-"+t)!==-1}))[0];if(t){this.environment=t;return[2,this.environment]}if(this.url.hostname.indexOf("www.")!==-1){this.environment=this.environments.production.name;return[2,this.environment]}this.environment=this.environments.integration.name;return[2,this.environment]}))}))};t.prototype.isDevEnvironment=function(){var t=this;var e=this.developmentDomains.filter((function(e){return t.url.hostname.indexOf(e)!==-1}))[0];return e.length>0};t.prototype.resolveMarket=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,r,o,i,a,s,u,l;var c=this;return __generator(this,(function(f){if(this.href.indexOf("//www.")!==-1){t=this.url.hostname.substring(this.url.hostname.lastIndexOf(".")+1,this.url.hostname.length);if(t&&this.markets[t]){this.market=t}else{console.warn("Unable to define market from www. domain",this.href)}}e=this.environmentTypes.filter((function(t){return c.url.hostname.indexOf("-"+t)!==-1}));if(!this.market&&e&&e.length>0){n=e[0];r=this.url.hostname.substring(0,this.url.hostname.indexOf("-"+n));if(r&&this.markets[r]){this.market=r}else{console.warn("Unable to define market from preset environment names",this.href)}}if(!this.market){if(this.url.hostname.indexOf("www")===-1&&this.url.hostname.indexOf(".postnord.")>0){o=this.url.hostname.indexOf(".")!==this.url.hostname.indexOf(".postnord")?this.url.hostname.indexOf("."):0;i=this.url.hostname.substring(o,this.url.hostname.indexOf(".postnord."));if(this.allowedMarkets.indexOf(i)!==-1){this.market=i;return[2]}}}if(!this.market){a=this.developmentDomains.filter((function(t){return c.url.hostname.indexOf(t)!==-1}))[0];if(!a){this.market=this.allowedMarkets[0];return[2]}s=this.href.replace(a,"");u=this.allowedMarkets.filter((function(t){var e=["."+t,t+".","/"+t+"/"];var n=e.filter((function(t){return s.indexOf(t)!==-1}));return n.length>0}))[0];if(u){this.market=u}else{l=Object.entries(this.markets).filter((function(t){var e=["."+t[1].fallbackLanguage,t[1].fallbackLanguage+".","/"+t[1].fallbackLanguage+"/"];var n=e.filter((function(t){return s.indexOf(t)!==-1}));return n.length>0}))[0];if(l&&l[0]){this.market=l[0]}}}if(!this.market){console.info("Was unable to detect market, used fallback");this.market=this.allowedMarkets[0]}return[2]}))}))};t.prototype.resolveLanguage=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,r,o;var i=this;return __generator(this,(function(a){if(this.language){return[2]}o=[(t=document.querySelector("html[lang]"))===null||t===void 0?void 0:t.getAttribute("lang"),(e=document.querySelector('[http-equiv="content-language"][content]'))===null||e===void 0?void 0:e.getAttribute("content"),(n=document.querySelector('[property="og:locale"][content]'))===null||n===void 0?void 0:n.getAttribute("content"),(r=document.querySelector("[lang]"))===null||r===void 0?void 0:r.getAttribute("lang")];o.filter((function(t){return t})).forEach((function(t){if(i.allowedLanguages.indexOf(t)){i.language=t;return}}));if(!this.language&&this.market){this.language=this.markets[this.market].fallbackLanguage}return[2]}))}))};return t}();var FetchHelper=function(){function t(t){if(t===void 0){t=""}var e=this;this.storagePrefix="";this.store={get:function(t,n){if(n===void 0){n=false}var r=n?window.localStorage:window.sessionStorage;var o=n?window.sessionStorage:window.localStorage;var i=r.getItem("".concat(e.storagePrefix,"-").concat(t));if(!i){i=o.getItem("".concat(e.storagePrefix,"-").concat(t))}if(!i){return i}if(i.indexOf("{")===0){try{return JSON.parse(i)}catch(a){}}if(i.indexOf(",")!==-1){return i.split(",")}return i},set:function(t,n,r){if(r===void 0){r=false}var o=r?window.localStorage:window.sessionStorage;if(typeof n==="object"&&typeof n.length==="undefined"){o.setItem("".concat(e.storagePrefix,"-").concat(t),JSON.stringify(n));return}o.setItem("".concat(e.storagePrefix,"-").concat(t),n)},remove:function(t){window.sessionStorage.removeItem("".concat(e.storagePrefix,"-").concat(t))}};this.storagePrefix=t}t.prototype.fetchJson=function(t,e,n,r){if(e===void 0){e={}}if(n===void 0){n=false}if(r===void 0){r=null}return __awaiter(this,void 0,void 0,(function(){var o;var i=this;return __generator(this,(function(a){o=new Promise((function(o){return __awaiter(i,void 0,void 0,(function(){var i,a,s,u,l,c;return __generator(this,(function(f){switch(f.label){case 0:i=true;a=typeof t==="string"?t:t.url;s=a;u=null;l=null;if(n){l=this.store.get(s);if(l&&!l.permanent){i=false}if(l&&l.data){u=l.data;o(u)}}if(!i)return[3,3];return[4,window.fetch(t,e)];case 1:c=f.sent();return[4,c.json()];case 2:u=f.sent();o(u);if(n){if(typeof r==="function"&&l!=null){r(u)}this.store.set(s,this.wrapJson(u,true),true);this.store.set(s,this.wrapJson(u,false),false)}f.label=3;case 3:return[2]}}))}))}));return[2,o]}))}))};t.prototype.wrapJson=function(t,e){if(e===void 0){e=false}var n=new Date;return{timestamp:n.getTime(),time:n.toISOString(),data:t,permanent:e}};return t}();export{FetchHelper as F,MarketWebContextService as M};
@@ -1 +1 @@
1
- var sizeCategories=[{name:"Small",value:"Small",illustration:"eli1n",unit:"small"},{name:"Medium",value:"Medium",illustration:"medium-package",unit:"medium"},{name:"Large",value:"Large",illustration:"large-package",unit:"large"}];var weights={small:[{name:"50 g",abbreviation:"g",value:50},{name:"100 g",abbreviation:"g",value:100},{name:"250 g",abbreviation:"g",value:250},{name:"500 g",abbreviation:"g",value:500},{name:"1 kg",abbreviation:"kg",value:1},{name:"2 kg",abbreviation:"kg",value:2}],medium:[{name:"1 kg",abbreviation:"kg",value:1},{name:"2 kg",abbreviation:"kg",value:2},{name:"3 kg",abbreviation:"kg",value:3},{name:"5 kg",abbreviation:"kg",value:5},{name:"10 kg",abbreviation:"kg",value:10},{name:"15 kg",abbreviation:"kg",value:15},{name:"20 kg",abbreviation:"kg",value:20}],large:[{name:"3 kg",abbreviation:"kg",value:3},{name:"5 kg",abbreviation:"kg",value:5},{name:"10 kg",abbreviation:"kg",value:10},{name:"15 kg",abbreviation:"kg",value:15},{name:"20 kg",abbreviation:"kg",value:20}]};var RealValues={WebUrl:"https://riktigavykort.postnord.se/sv",AndroidAppUrl:"https://play.google.com/store/apps/details?id=se.posten.riktigavykort&hl=sv",AndroidImg:"https://com-integration.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",IosAppUrl:"https://apps.apple.com/se/app/riktiga-vykort/id444458799?l=sv",IosImg:"https://com-integration.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg"};var fileLocation="https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";var sendDirectUrl="https://portal.postnord.com/skickadirekt/";var stampShopUrl="https://shop.postnord.se/ebutik/default.aspx";export{RealValues as R,stampShopUrl as a,sendDirectUrl as b,fileLocation as f,sizeCategories as s,weights as w};
1
+ var sizeCategories=[{name:"Small",value:"Small",illustration:"eli1n",unit:"small"},{name:"Medium",value:"Medium",illustration:"medium-package",unit:"medium"},{name:"Large",value:"Large",illustration:"large-package",unit:"large"}];var weights={small:[{name:"50 g",abbreviation:"g",value:50},{name:"100 g",abbreviation:"g",value:100},{name:"250 g",abbreviation:"g",value:250},{name:"500 g",abbreviation:"g",value:500},{name:"1 kg",abbreviation:"kg",value:1},{name:"2 kg",abbreviation:"kg",value:2}],medium:[{name:"1 kg",abbreviation:"kg",value:1},{name:"2 kg",abbreviation:"kg",value:2},{name:"3 kg",abbreviation:"kg",value:3},{name:"5 kg",abbreviation:"kg",value:5},{name:"10 kg",abbreviation:"kg",value:10},{name:"15 kg",abbreviation:"kg",value:15},{name:"20 kg",abbreviation:"kg",value:20}],large:[{name:"3 kg",abbreviation:"kg",value:3},{name:"5 kg",abbreviation:"kg",value:5},{name:"10 kg",abbreviation:"kg",value:10},{name:"15 kg",abbreviation:"kg",value:15},{name:"20 kg",abbreviation:"kg",value:20}]};var RealValues={WebUrl:"https://riktigavykort.postnord.se/sv",AndroidAppUrl:"https://play.google.com/store/apps/details?id=se.posten.riktigavykort&hl=sv",AndroidImg:"https://com-inte.postnord.com/globalassets/icons/logos-and-badges/google-play-badge_se.svg",IosAppUrl:"https://apps.apple.com/se/app/riktiga-vykort/id444458799?l=sv",IosImg:"https://com-inte.postnord.com/globalassets/icons/logos-and-badges/app_store_badge_se_rgb_blk.svg"};var fileLocation="https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";var sendDirectUrl="https://portal.postnord.com/skickadirekt/";var stampShopUrl="https://shop.postnord.se/ebutik/default.aspx";export{RealValues as R,stampShopUrl as a,sendDirectUrl as b,fileLocation as f,sizeCategories as s,weights as w};