@postnord/pn-marketweb-components 2.0.150-test → 2.0.150-test2

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 (152) hide show
  1. package/cjs/{data-b5ef4f7c.js → data-4fa6b08d.js} +2 -2
  2. package/cjs/loader.cjs.js +1 -1
  3. package/cjs/pn-find-price-result.cjs.entry.js +4 -4
  4. package/cjs/{pn-find-price-store-0b8c195c.js → pn-find-price-store-a91ce3f6.js} +2 -2
  5. package/cjs/pn-find-price.cjs.entry.js +7 -7
  6. package/cjs/pn-language-selector_9.cjs.entry.js +5 -2
  7. package/cjs/pn-market-web-components.cjs.js +1 -1
  8. package/cjs/{pn-marketweb-siteheader-login-button_3.cjs.entry.js → pn-marketweb-siteheader-login-button_4.cjs.entry.js} +49 -32
  9. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +7 -42
  10. package/cjs/pn-marketweb-siteheader.cjs.entry.js +2 -2
  11. package/cjs/{pn-product-card_4.cjs.entry.js → pn-product-card_3.cjs.entry.js} +0 -18
  12. package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
  13. package/cjs/pn-proxio-findprice-result.cjs.entry.js +63 -0
  14. package/cjs/pn-proxio-findprice.cjs.entry.js +311 -0
  15. package/cjs/pn-proxio-pricegroup.cjs.entry.js +6 -22
  16. package/cjs/pn-titletag.cjs.entry.js +24 -0
  17. package/cjs/translations-585711ff.js +21 -0
  18. package/collection/collection-manifest.json +3 -0
  19. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.css +0 -3
  20. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +42 -34
  21. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +25 -13
  22. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +14 -45
  23. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +13 -23
  24. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.css +0 -0
  25. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +55 -0
  26. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +25 -4
  27. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +26 -0
  28. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +3 -3
  29. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +4 -5
  30. package/collection/components/widgets/pn-find-price/data.js +2 -2
  31. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +7 -7
  32. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +2 -2
  33. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +5 -5
  34. package/collection/components/widgets/pn-proxio-findprice/data.js +52 -0
  35. package/collection/components/widgets/pn-proxio-findprice/find-price.stories.js +27 -0
  36. package/collection/components/widgets/pn-proxio-findprice/img/clouds.svg +5 -0
  37. package/collection/components/widgets/pn-proxio-findprice/img/large-package.svg +9 -0
  38. package/collection/components/widgets/pn-proxio-findprice/img/medium-package.svg +9 -0
  39. package/collection/components/widgets/pn-proxio-findprice/img/postnord-person1.svg +52 -0
  40. package/collection/components/widgets/pn-proxio-findprice/img/postnord-person2.svg +56 -0
  41. package/collection/components/widgets/pn-proxio-findprice/img/small-package.svg +23 -0
  42. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.css +9 -0
  43. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +234 -0
  44. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-store.js +29 -0
  45. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-translations.js +106 -0
  46. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-types.js +1 -0
  47. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.css +105 -0
  48. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +250 -0
  49. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.css +3 -0
  50. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -0
  51. package/collection/globals/MarketWebLoginManager.js +1 -1
  52. package/custom-elements/index.d.ts +18 -0
  53. package/custom-elements/index.js +592 -241
  54. package/esm/{data-9c9c5f41.js → data-059c2a58.js} +2 -2
  55. package/esm/loader.js +1 -1
  56. package/esm/pn-find-price-result.entry.js +4 -4
  57. package/esm/{pn-find-price-store-b4556c9b.js → pn-find-price-store-bde5071d.js} +2 -2
  58. package/esm/pn-find-price.entry.js +7 -7
  59. package/esm/pn-language-selector_9.entry.js +5 -2
  60. package/esm/pn-market-web-components.js +1 -1
  61. package/esm/{pn-marketweb-siteheader-login-button_3.entry.js → pn-marketweb-siteheader-login-button_4.entry.js} +49 -33
  62. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +7 -42
  63. package/esm/pn-marketweb-siteheader.entry.js +2 -2
  64. package/esm/{pn-product-card_4.entry.js → pn-product-card_3.entry.js} +2 -19
  65. package/esm/pn-product-pricelist.entry.js +1 -1
  66. package/esm/pn-proxio-findprice-result.entry.js +59 -0
  67. package/esm/pn-proxio-findprice.entry.js +307 -0
  68. package/esm/pn-proxio-pricegroup.entry.js +3 -19
  69. package/esm/pn-titletag.entry.js +20 -0
  70. package/esm/translations-022fefa0.js +19 -0
  71. package/esm-es5/{data-9c9c5f41.js → data-059c2a58.js} +1 -1
  72. package/esm-es5/loader.js +1 -1
  73. package/esm-es5/pn-find-price-result.entry.js +1 -1
  74. package/esm-es5/{pn-find-price-store-b4556c9b.js → pn-find-price-store-bde5071d.js} +1 -1
  75. package/esm-es5/pn-find-price.entry.js +1 -1
  76. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  77. package/esm-es5/pn-market-web-components.js +1 -1
  78. package/esm-es5/pn-marketweb-siteheader-login-button_4.entry.js +1 -0
  79. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  80. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  81. package/esm-es5/pn-product-card_3.entry.js +1 -0
  82. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  83. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -0
  84. package/esm-es5/pn-proxio-findprice.entry.js +1 -0
  85. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  86. package/esm-es5/pn-titletag.entry.js +1 -0
  87. package/esm-es5/translations-022fefa0.js +1 -0
  88. package/package.json +1 -1
  89. package/pn-market-web-components/p-10eafcd7.entry.js +1 -0
  90. package/pn-market-web-components/p-20be85a1.system.entry.js +1 -0
  91. package/pn-market-web-components/p-27bcc4a1.system.entry.js +1 -0
  92. package/pn-market-web-components/{p-37017f68.system.js → p-3738a2df.system.js} +1 -1
  93. package/pn-market-web-components/p-3969ec4d.entry.js +1 -0
  94. package/pn-market-web-components/p-499bb3ac.entry.js +1 -0
  95. package/pn-market-web-components/p-4a03854b.system.entry.js +1 -0
  96. package/pn-market-web-components/p-557328e3.system.entry.js +1 -0
  97. package/pn-market-web-components/{p-ac0e3c22.system.entry.js → p-59be826b.system.entry.js} +1 -1
  98. package/pn-market-web-components/p-67887512.system.js +1 -1
  99. package/pn-market-web-components/{p-5882d613.entry.js → p-70b360dd.entry.js} +1 -1
  100. package/pn-market-web-components/{p-d11a5fbb.system.entry.js → p-7f9c643c.system.entry.js} +1 -1
  101. package/pn-market-web-components/p-8afa354b.system.entry.js +1 -0
  102. package/pn-market-web-components/{p-aab2e28f.entry.js → p-8b684578.entry.js} +1 -1
  103. package/pn-market-web-components/p-951861fa.entry.js +1 -0
  104. package/pn-market-web-components/{p-736e5b84.system.entry.js → p-98a7ddd1.system.entry.js} +1 -1
  105. package/pn-market-web-components/p-a120063f.js +1 -0
  106. package/pn-market-web-components/p-b501b216.system.js +1 -0
  107. package/pn-market-web-components/{p-3ae38e63.entry.js → p-b9a84e67.entry.js} +1 -1
  108. package/pn-market-web-components/p-dd01024a.system.entry.js +1 -0
  109. package/pn-market-web-components/p-de823255.entry.js +1 -0
  110. package/pn-market-web-components/p-e0b034c2.entry.js +1 -0
  111. package/pn-market-web-components/p-e397e11b.entry.js +1 -0
  112. package/pn-market-web-components/p-e4ebf17d.system.entry.js +1 -0
  113. package/pn-market-web-components/{p-e4a4e68f.system.entry.js → p-ecdf2b69.system.entry.js} +1 -1
  114. package/pn-market-web-components/p-f58bde56.js +1 -0
  115. package/pn-market-web-components/p-f782ce94.system.entry.js +1 -0
  116. package/pn-market-web-components/p-fe95397b.entry.js +1 -0
  117. package/pn-market-web-components/p-ff83e974.entry.js +1 -0
  118. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  119. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.d.ts +5 -4
  120. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +1 -2
  121. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +1 -1
  122. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.d.ts +6 -0
  123. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +1 -0
  124. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +10 -8
  125. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +4 -4
  126. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +5 -5
  127. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +2 -2
  128. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.d.ts +22 -0
  129. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-store.d.ts +51 -0
  130. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-translations.d.ts +106 -0
  131. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-types.d.ts +39 -0
  132. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice.d.ts +24 -0
  133. package/types/components/widgets/pn-proxio-pricegroup/types.d.ts +1 -1
  134. package/types/components.d.ts +72 -5
  135. package/umd/pn-marketweb-init.js +1 -1
  136. package/umd/pn-marketweb-salesforce.js +2 -2
  137. package/esm-es5/pn-marketweb-siteheader-login-button_3.entry.js +0 -1
  138. package/esm-es5/pn-product-card_4.entry.js +0 -1
  139. package/pn-market-web-components/p-022d9a78.entry.js +0 -1
  140. package/pn-market-web-components/p-198d9c77.system.entry.js +0 -1
  141. package/pn-market-web-components/p-332e9005.entry.js +0 -1
  142. package/pn-market-web-components/p-3c0d63fb.system.entry.js +0 -1
  143. package/pn-market-web-components/p-4a026c9d.system.entry.js +0 -1
  144. package/pn-market-web-components/p-6b33db5b.system.entry.js +0 -1
  145. package/pn-market-web-components/p-77557da8.entry.js +0 -1
  146. package/pn-market-web-components/p-8a05dbb6.entry.js +0 -1
  147. package/pn-market-web-components/p-92fd28e6.entry.js +0 -1
  148. package/pn-market-web-components/p-a119cb8e.entry.js +0 -1
  149. package/pn-market-web-components/p-c4254e9e.js +0 -1
  150. package/pn-market-web-components/p-d542a52b.system.entry.js +0 -1
  151. /package/pn-market-web-components/{p-bfa7c83f.system.js → p-1534926e.system.js} +0 -0
  152. /package/pn-market-web-components/{p-86b52823.js → p-a07906d5.js} +0 -0
@@ -13,8 +13,8 @@ export declare const translations: {
13
13
  message: string;
14
14
  servicePointHeader: string;
15
15
  servicePointLink: string;
16
- riktigaVykort: string;
17
- riktigaVykortMobile: string;
16
+ realPostcard: string;
17
+ realPostcardMobile: string;
18
18
  ombudHeader: string;
19
19
  };
20
20
  en: {
@@ -31,8 +31,8 @@ export declare const translations: {
31
31
  message: string;
32
32
  servicePointHeader: string;
33
33
  servicePointLink: string;
34
- riktigaVykort: string;
35
- riktigaVykortMobile: string;
34
+ realPostcard: string;
35
+ realPostcardMobile: string;
36
36
  ombudHeader: string;
37
37
  };
38
38
  da: {
@@ -49,7 +49,7 @@ export declare const translations: {
49
49
  message: string;
50
50
  servicePointHeader: string;
51
51
  servicePointLink: string;
52
- riktigaVykort: string;
52
+ realPostcard: string;
53
53
  ombudHeader: string;
54
54
  };
55
55
  no: {
@@ -24,8 +24,8 @@ export interface PnfindPricei18n {
24
24
  message: string;
25
25
  servicePointHeader: string;
26
26
  servicePointLink: string;
27
- riktigaVykort: string;
28
- riktigaVykortMobile: string;
27
+ realPostcard: string;
28
+ realPostcardMobile: string;
29
29
  ombudHeader: string;
30
30
  }
31
31
  export interface PnfindPriceMarket {
@@ -0,0 +1,22 @@
1
+ import { ProxioPriceGroupi18n, ProxioProduct, ProductWeightGroupListItem, ProxioPriceListGroupResponse } from "../pn-proxio-pricegroup/types";
2
+ export declare class PnProxioFindPriceResult {
3
+ item: ProxioPriceListGroupResponse;
4
+ activeweight: number;
5
+ shownitems: ProxioPriceListGroupResponse[];
6
+ Usp1?: string;
7
+ Usp2?: string;
8
+ Usp3?: string;
9
+ description?: string[];
10
+ showMeasurement?: boolean;
11
+ weightText: string;
12
+ linkId: string;
13
+ shopLabel: string;
14
+ shopUrl: string;
15
+ shopId: string;
16
+ i18n: ProxioPriceGroupi18n;
17
+ componentWillLoad(): void;
18
+ composeItems(): void;
19
+ getPriceString(product: ProxioProduct): string;
20
+ getProductLink(product: ProxioProduct, productWeightGroupList: ProductWeightGroupListItem[]): string;
21
+ render(): any;
22
+ }
@@ -0,0 +1,51 @@
1
+ declare const state: {
2
+ i18n: {
3
+ componentheading: string;
4
+ deliveryscopeheading: string;
5
+ resultlistheading: string;
6
+ sizeheading: string;
7
+ weightheading: string;
8
+ weightlabel: string;
9
+ maxweightlabel: string;
10
+ maxmeasurementlabel: string;
11
+ senddirectcta: string;
12
+ stampshopcta: string;
13
+ message: string;
14
+ servicePointHeader: string;
15
+ servicePointLink: string;
16
+ realPostcard: string;
17
+ realPostcardMobile: string;
18
+ ombudHeader: string;
19
+ };
20
+ market: {
21
+ currency: string;
22
+ country: string;
23
+ servicePoint: string;
24
+ };
25
+ }, onChange: import("@stencil/store/dist/types").OnChangeHandler<{
26
+ i18n: {
27
+ componentheading: string;
28
+ deliveryscopeheading: string;
29
+ resultlistheading: string;
30
+ sizeheading: string;
31
+ weightheading: string;
32
+ weightlabel: string;
33
+ maxweightlabel: string;
34
+ maxmeasurementlabel: string;
35
+ senddirectcta: string;
36
+ stampshopcta: string;
37
+ message: string;
38
+ servicePointHeader: string;
39
+ servicePointLink: string;
40
+ realPostcard: string;
41
+ realPostcardMobile: string;
42
+ ombudHeader: string;
43
+ };
44
+ market: {
45
+ currency: string;
46
+ country: string;
47
+ servicePoint: string;
48
+ };
49
+ }>;
50
+ export { state, onChange };
51
+ export default state;
@@ -0,0 +1,106 @@
1
+ export declare const translations: {
2
+ sv: {
3
+ componentheading: string;
4
+ deliveryscopeheading: string;
5
+ resultlistheading: string;
6
+ sizeheading: string;
7
+ weightheading: string;
8
+ weightlabel: string;
9
+ maxweightlabel: string;
10
+ maxmeasurementlabel: string;
11
+ senddirectcta: string;
12
+ stampshopcta: string;
13
+ message: string;
14
+ servicePointHeader: string;
15
+ servicePointLink: string;
16
+ realPostcard: string;
17
+ realPostcardMobile: string;
18
+ ombudHeader: string;
19
+ from: string;
20
+ labelMaxDimensionsRoll: string;
21
+ labelMaxDimensions: string;
22
+ };
23
+ en: {
24
+ componentheading: string;
25
+ deliveryscopeheading: string;
26
+ resultlistheading: string;
27
+ sizeheading: string;
28
+ weightheading: string;
29
+ weightlabel: string;
30
+ maxweightlabel: string;
31
+ maxmeasurementlabel: string;
32
+ senddirectcta: string;
33
+ stampshopcta: string;
34
+ message: string;
35
+ servicePointHeader: string;
36
+ servicePointLink: string;
37
+ realPostcard: string;
38
+ realPostcardMobile: string;
39
+ ombudHeader: string;
40
+ from: string;
41
+ labelMaxDimensionsRoll: string;
42
+ labelMaxDimensions: string;
43
+ };
44
+ da: {
45
+ componentheading: string;
46
+ deliveryscopeheading: string;
47
+ resultlistheading: string;
48
+ sizeheading: string;
49
+ weightheading: string;
50
+ weightlabel: string;
51
+ maxweightlabel: string;
52
+ maxmeasurementlabel: string;
53
+ senddirectcta: string;
54
+ stampshopcta: string;
55
+ message: string;
56
+ servicePointHeader: string;
57
+ servicePointLink: string;
58
+ realPostcard: string;
59
+ ombudHeader: string;
60
+ from: string;
61
+ labelMaxDimensionsRoll: string;
62
+ labelMaxDimensions: string;
63
+ };
64
+ no: {
65
+ componentheading: string;
66
+ deliveryscopeheading: string;
67
+ resultlistheading: string;
68
+ weightlabel: string;
69
+ maxweightlabel: string;
70
+ maxmeasurementlabel: string;
71
+ senddirectcta: string;
72
+ stampshopcta: string;
73
+ };
74
+ fi: {
75
+ componentheading: string;
76
+ deliveryscopeheading: string;
77
+ resultlistheading: string;
78
+ weightlabel: string;
79
+ maxweightlabel: string;
80
+ maxmeasurementlabel: string;
81
+ senddirectcta: string;
82
+ stampshopcta: string;
83
+ };
84
+ };
85
+ export declare const markets: {
86
+ se: {
87
+ currency: string;
88
+ country: string;
89
+ servicePoint: string;
90
+ };
91
+ dk: {
92
+ currency: string;
93
+ country: string;
94
+ servicePoint: string;
95
+ };
96
+ fi: {
97
+ currency: string;
98
+ country: string;
99
+ servicePoint: string;
100
+ };
101
+ no: {
102
+ currency: string;
103
+ country: string;
104
+ servicePoint: string;
105
+ };
106
+ };
@@ -0,0 +1,39 @@
1
+ import { ProxioPriceListGroupResponse } from "../pn-proxio-pricegroup/types";
2
+ export interface ProxioPriceListGroupsResponse {
3
+ proxioProducts: ProxioPriceListGroupResponse[];
4
+ }
5
+ export interface ProxioProductFindPriceWeight {
6
+ name: string;
7
+ abbreviation: string;
8
+ value: number;
9
+ }
10
+ export interface ProxioProductFindPriceSizeCategory {
11
+ name: string;
12
+ value: string;
13
+ icon: string;
14
+ unit: string;
15
+ maxWeight: number;
16
+ }
17
+ export interface ProxioProductFindPriceMarket {
18
+ country: string;
19
+ currency: string;
20
+ servicePoint: string;
21
+ }
22
+ export interface ProxioFindPricei18n {
23
+ componentheading: string;
24
+ deliveryscopeheading: string;
25
+ resultlistheading: string;
26
+ sizeheading: string;
27
+ weightheading: string;
28
+ weightlabel: string;
29
+ maxweightlabel: string;
30
+ maxmeasurementlabel: string;
31
+ senddirectcta: string;
32
+ stampshopcta: string;
33
+ message: string;
34
+ servicePointHeader: string;
35
+ servicePointLink: string;
36
+ realPostcard: string;
37
+ realPostcardMobile: string;
38
+ ombudHeader: string;
39
+ }
@@ -0,0 +1,24 @@
1
+ import { ProxioPriceListGroupResponse } from "../pn-proxio-pricegroup/types";
2
+ import { ProxioPriceListGroupsResponse, ProxioProductFindPriceWeight, ProxioProductFindPriceSizeCategory } from "./pn-proxio-findprice-types";
3
+ import { FetchHelper } from "../../../globals/FetchHelper";
4
+ export declare class PnProxioFindPrice {
5
+ endpoint: string;
6
+ language: string;
7
+ market: string;
8
+ cache: boolean;
9
+ filteredItems: ProxioPriceListGroupResponse[];
10
+ weight: ProxioProductFindPriceWeight;
11
+ weightvalue: number;
12
+ sizecategory: ProxioProductFindPriceSizeCategory;
13
+ data: ProxioPriceListGroupsResponse;
14
+ fetchHelper: FetchHelper;
15
+ componentWillLoad(): void;
16
+ setInitialValues(href?: string): Promise<void>;
17
+ init(): void;
18
+ getDataSource(): Promise<void>;
19
+ fetchData(): Promise<void>;
20
+ onFetchData(data: any): void;
21
+ setState(): void;
22
+ filterItems(): void;
23
+ render(): any;
24
+ }
@@ -34,7 +34,7 @@ export interface ProductGenericItem {
34
34
  item2: string;
35
35
  }
36
36
  export interface ProductWeightGroupListItem {
37
- item1: string;
37
+ item1: number;
38
38
  item2: string;
39
39
  item3: string[];
40
40
  }
@@ -8,7 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { ProductPriceItem } from "./components/widgets/pn-find-price/pn-find-price-types";
9
9
  import { ProductPriceItem as ProductPriceItem1 } from "./globals/shared/productprice/product-price-types";
10
10
  import { LoginDialog, LoginDialogLink, ProfileSelectorCustomerItem, ProfileSelectorOrganization, SiteHeaderI18N, SiteHeaderSearch } from "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types";
11
- import { ProductGenericItem } from "./components/widgets/pn-proxio-pricegroup/types";
11
+ import { ProductGenericItem, ProxioPriceListGroupResponse } from "./components/widgets/pn-proxio-pricegroup/types";
12
12
  export namespace Components {
13
13
  interface PnBonusProgressbar {
14
14
  "bonuspercentage": string;
@@ -364,6 +364,7 @@ export namespace Components {
364
364
  * Specifies which endpoint domain we should load from
365
365
  */
366
366
  "endpoint": string;
367
+ "environment"?: string;
367
368
  /**
368
369
  * User Fullname
369
370
  */
@@ -382,8 +383,7 @@ export namespace Components {
382
383
  "token": string;
383
384
  }
384
385
  interface PnMarketwebSiteheaderLoginButton {
385
- "active"?: boolean;
386
- "label": any;
386
+ "label": string;
387
387
  }
388
388
  interface PnMarketwebSiteheaderLoginLinklist {
389
389
  "heading": string;
@@ -396,6 +396,10 @@ export namespace Components {
396
396
  "loginDialog": LoginDialog;
397
397
  "username": string;
398
398
  }
399
+ interface PnMarketwebSiteheaderLoginMypageButton {
400
+ "label": string;
401
+ "myPageUrl": string;
402
+ }
399
403
  interface PnMarketwebSiteheaderLoginProfileselection {
400
404
  "currentProfile": ProfileSelectorCustomerItem;
401
405
  "endpoint": string;
@@ -523,6 +527,22 @@ export namespace Components {
523
527
  "heading": string;
524
528
  "url": string;
525
529
  }
530
+ interface PnProxioFindprice {
531
+ "cache": boolean;
532
+ "endpoint": string;
533
+ "language": string;
534
+ "market": string;
535
+ }
536
+ interface PnProxioFindpriceResult {
537
+ "Usp1"?: string;
538
+ "Usp2"?: string;
539
+ "Usp3"?: string;
540
+ "activeweight": number;
541
+ "description"?: string[];
542
+ "item": ProxioPriceListGroupResponse;
543
+ "showMeasurement"?: boolean;
544
+ "shownitems": ProxioPriceListGroupResponse[];
545
+ }
526
546
  interface PnProxioPricegroup {
527
547
  "cache": boolean;
528
548
  /**
@@ -831,6 +851,12 @@ declare global {
831
851
  prototype: HTMLPnMarketwebSiteheaderLoginLinksElement;
832
852
  new (): HTMLPnMarketwebSiteheaderLoginLinksElement;
833
853
  };
854
+ interface HTMLPnMarketwebSiteheaderLoginMypageButtonElement extends Components.PnMarketwebSiteheaderLoginMypageButton, HTMLStencilElement {
855
+ }
856
+ var HTMLPnMarketwebSiteheaderLoginMypageButtonElement: {
857
+ prototype: HTMLPnMarketwebSiteheaderLoginMypageButtonElement;
858
+ new (): HTMLPnMarketwebSiteheaderLoginMypageButtonElement;
859
+ };
834
860
  interface HTMLPnMarketwebSiteheaderLoginProfileselectionElement extends Components.PnMarketwebSiteheaderLoginProfileselection, HTMLStencilElement {
835
861
  }
836
862
  var HTMLPnMarketwebSiteheaderLoginProfileselectionElement: {
@@ -939,6 +965,18 @@ declare global {
939
965
  prototype: HTMLPnProfileSelectorOptionElement;
940
966
  new (): HTMLPnProfileSelectorOptionElement;
941
967
  };
968
+ interface HTMLPnProxioFindpriceElement extends Components.PnProxioFindprice, HTMLStencilElement {
969
+ }
970
+ var HTMLPnProxioFindpriceElement: {
971
+ prototype: HTMLPnProxioFindpriceElement;
972
+ new (): HTMLPnProxioFindpriceElement;
973
+ };
974
+ interface HTMLPnProxioFindpriceResultElement extends Components.PnProxioFindpriceResult, HTMLStencilElement {
975
+ }
976
+ var HTMLPnProxioFindpriceResultElement: {
977
+ prototype: HTMLPnProxioFindpriceResultElement;
978
+ new (): HTMLPnProxioFindpriceResultElement;
979
+ };
942
980
  interface HTMLPnProxioPricegroupElement extends Components.PnProxioPricegroup, HTMLStencilElement {
943
981
  }
944
982
  var HTMLPnProxioPricegroupElement: {
@@ -1088,6 +1126,7 @@ declare global {
1088
1126
  "pn-marketweb-siteheader-login-button": HTMLPnMarketwebSiteheaderLoginButtonElement;
1089
1127
  "pn-marketweb-siteheader-login-linklist": HTMLPnMarketwebSiteheaderLoginLinklistElement;
1090
1128
  "pn-marketweb-siteheader-login-links": HTMLPnMarketwebSiteheaderLoginLinksElement;
1129
+ "pn-marketweb-siteheader-login-mypage-button": HTMLPnMarketwebSiteheaderLoginMypageButtonElement;
1091
1130
  "pn-marketweb-siteheader-login-profileselection": HTMLPnMarketwebSiteheaderLoginProfileselectionElement;
1092
1131
  "pn-marketweb-siteheader-search": HTMLPnMarketwebSiteheaderSearchElement;
1093
1132
  "pn-parcel-tracker": HTMLPnParcelTrackerElement;
@@ -1106,6 +1145,8 @@ declare global {
1106
1145
  "pn-profile-modal-type": HTMLPnProfileModalTypeElement;
1107
1146
  "pn-profile-selector": HTMLPnProfileSelectorElement;
1108
1147
  "pn-profile-selector-option": HTMLPnProfileSelectorOptionElement;
1148
+ "pn-proxio-findprice": HTMLPnProxioFindpriceElement;
1149
+ "pn-proxio-findprice-result": HTMLPnProxioFindpriceResultElement;
1109
1150
  "pn-proxio-pricegroup": HTMLPnProxioPricegroupElement;
1110
1151
  "pn-proxio-productcard": HTMLPnProxioProductcardElement;
1111
1152
  "pn-proxio-productcard-description": HTMLPnProxioProductcardDescriptionElement;
@@ -1498,6 +1539,7 @@ declare namespace LocalJSX {
1498
1539
  * Specifies which endpoint domain we should load from
1499
1540
  */
1500
1541
  "endpoint"?: string;
1542
+ "environment"?: string;
1501
1543
  /**
1502
1544
  * User Fullname
1503
1545
  */
@@ -1517,8 +1559,7 @@ declare namespace LocalJSX {
1517
1559
  "token"?: string;
1518
1560
  }
1519
1561
  interface PnMarketwebSiteheaderLoginButton {
1520
- "active"?: boolean;
1521
- "label"?: any;
1562
+ "label"?: string;
1522
1563
  }
1523
1564
  interface PnMarketwebSiteheaderLoginLinklist {
1524
1565
  "heading"?: string;
@@ -1531,6 +1572,10 @@ declare namespace LocalJSX {
1531
1572
  "loginDialog"?: LoginDialog;
1532
1573
  "username"?: string;
1533
1574
  }
1575
+ interface PnMarketwebSiteheaderLoginMypageButton {
1576
+ "label"?: string;
1577
+ "myPageUrl"?: string;
1578
+ }
1534
1579
  interface PnMarketwebSiteheaderLoginProfileselection {
1535
1580
  "currentProfile"?: ProfileSelectorCustomerItem;
1536
1581
  "endpoint"?: string;
@@ -1661,6 +1706,22 @@ declare namespace LocalJSX {
1661
1706
  "heading"?: string;
1662
1707
  "url"?: string;
1663
1708
  }
1709
+ interface PnProxioFindprice {
1710
+ "cache"?: boolean;
1711
+ "endpoint"?: string;
1712
+ "language"?: string;
1713
+ "market"?: string;
1714
+ }
1715
+ interface PnProxioFindpriceResult {
1716
+ "Usp1"?: string;
1717
+ "Usp2"?: string;
1718
+ "Usp3"?: string;
1719
+ "activeweight"?: number;
1720
+ "description"?: string[];
1721
+ "item"?: ProxioPriceListGroupResponse;
1722
+ "showMeasurement"?: boolean;
1723
+ "shownitems"?: ProxioPriceListGroupResponse[];
1724
+ }
1664
1725
  interface PnProxioPricegroup {
1665
1726
  "cache"?: boolean;
1666
1727
  /**
@@ -1828,6 +1889,7 @@ declare namespace LocalJSX {
1828
1889
  "pn-marketweb-siteheader-login-button": PnMarketwebSiteheaderLoginButton;
1829
1890
  "pn-marketweb-siteheader-login-linklist": PnMarketwebSiteheaderLoginLinklist;
1830
1891
  "pn-marketweb-siteheader-login-links": PnMarketwebSiteheaderLoginLinks;
1892
+ "pn-marketweb-siteheader-login-mypage-button": PnMarketwebSiteheaderLoginMypageButton;
1831
1893
  "pn-marketweb-siteheader-login-profileselection": PnMarketwebSiteheaderLoginProfileselection;
1832
1894
  "pn-marketweb-siteheader-search": PnMarketwebSiteheaderSearch;
1833
1895
  "pn-parcel-tracker": PnParcelTracker;
@@ -1846,6 +1908,8 @@ declare namespace LocalJSX {
1846
1908
  "pn-profile-modal-type": PnProfileModalType;
1847
1909
  "pn-profile-selector": PnProfileSelector;
1848
1910
  "pn-profile-selector-option": PnProfileSelectorOption;
1911
+ "pn-proxio-findprice": PnProxioFindprice;
1912
+ "pn-proxio-findprice-result": PnProxioFindpriceResult;
1849
1913
  "pn-proxio-pricegroup": PnProxioPricegroup;
1850
1914
  "pn-proxio-productcard": PnProxioProductcard;
1851
1915
  "pn-proxio-productcard-description": PnProxioProductcardDescription;
@@ -1900,6 +1964,7 @@ declare module "@stencil/core" {
1900
1964
  "pn-marketweb-siteheader-login-button": LocalJSX.PnMarketwebSiteheaderLoginButton & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderLoginButtonElement>;
1901
1965
  "pn-marketweb-siteheader-login-linklist": LocalJSX.PnMarketwebSiteheaderLoginLinklist & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderLoginLinklistElement>;
1902
1966
  "pn-marketweb-siteheader-login-links": LocalJSX.PnMarketwebSiteheaderLoginLinks & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderLoginLinksElement>;
1967
+ "pn-marketweb-siteheader-login-mypage-button": LocalJSX.PnMarketwebSiteheaderLoginMypageButton & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderLoginMypageButtonElement>;
1903
1968
  "pn-marketweb-siteheader-login-profileselection": LocalJSX.PnMarketwebSiteheaderLoginProfileselection & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderLoginProfileselectionElement>;
1904
1969
  "pn-marketweb-siteheader-search": LocalJSX.PnMarketwebSiteheaderSearch & JSXBase.HTMLAttributes<HTMLPnMarketwebSiteheaderSearchElement>;
1905
1970
  "pn-parcel-tracker": LocalJSX.PnParcelTracker & JSXBase.HTMLAttributes<HTMLPnParcelTrackerElement>;
@@ -1918,6 +1983,8 @@ declare module "@stencil/core" {
1918
1983
  "pn-profile-modal-type": LocalJSX.PnProfileModalType & JSXBase.HTMLAttributes<HTMLPnProfileModalTypeElement>;
1919
1984
  "pn-profile-selector": LocalJSX.PnProfileSelector & JSXBase.HTMLAttributes<HTMLPnProfileSelectorElement>;
1920
1985
  "pn-profile-selector-option": LocalJSX.PnProfileSelectorOption & JSXBase.HTMLAttributes<HTMLPnProfileSelectorOptionElement>;
1986
+ "pn-proxio-findprice": LocalJSX.PnProxioFindprice & JSXBase.HTMLAttributes<HTMLPnProxioFindpriceElement>;
1987
+ "pn-proxio-findprice-result": LocalJSX.PnProxioFindpriceResult & JSXBase.HTMLAttributes<HTMLPnProxioFindpriceResultElement>;
1921
1988
  "pn-proxio-pricegroup": LocalJSX.PnProxioPricegroup & JSXBase.HTMLAttributes<HTMLPnProxioPricegroupElement>;
1922
1989
  "pn-proxio-productcard": LocalJSX.PnProxioProductcard & JSXBase.HTMLAttributes<HTMLPnProxioProductcardElement>;
1923
1990
  "pn-proxio-productcard-description": LocalJSX.PnProxioProductcardDescription & JSXBase.HTMLAttributes<HTMLPnProxioProductcardDescriptionElement>;
@@ -37,7 +37,7 @@
37
37
 
38
38
  const s = document.createElement('script');
39
39
  const currentScriptTag = document.querySelector('script[src*="pn-marketweb-init.js"]');
40
- const currentScriptSrc = currentScriptTag.getAttribute('src').replace('@latest', '@2.0.150-test');
40
+ const currentScriptSrc = currentScriptTag.getAttribute('src').replace('@latest', '@2.0.150-test2');
41
41
  checkParameters(currentScriptSrc);
42
42
  const loaderScriptSrc = currentScriptSrc.replace('pn-marketweb-init.js', 'standalone-loader.js');
43
43
  s.setAttribute('type', 'module');
@@ -24,12 +24,12 @@
24
24
 
25
25
  const s = document.createElement('script');
26
26
  s.setAttribute('type', 'module');
27
- s.setAttribute('src', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.0.150-test/umd/standalone-loader-salesforce.js');
27
+ s.setAttribute('src', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.0.150-test2/umd/standalone-loader-salesforce.js');
28
28
  document.querySelector('head').appendChild(s);
29
29
 
30
30
  const style = document.createElement('link');
31
31
  style.setAttribute('rel', 'stylesheet');
32
- style.setAttribute('href', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.0.150-test/umd/pn-marketweb-wrongrembase.css');
32
+ style.setAttribute('href', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.0.150-test2/umd/pn-marketweb-wrongrembase.css');
33
33
  document.querySelector('head').appendChild(style);
34
34
 
35
35
  window['bindLanguageSelector'] = function () {
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,i,n,t){function o(e){return e instanceof n?e:new n((function(i){i(e)}))}return new(n||(n=Promise))((function(n,r){function l(e){try{s(t.next(e))}catch(i){r(i)}}function a(e){try{s(t["throw"](e))}catch(i){r(i)}}function s(e){e.done?n(e.value):o(e.value).then(l,a)}s((t=t.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(i){return s([e,i])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(n)try{if(t=1,o&&(r=l[0]&2?o["return"]:l[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;if(o=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;o=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){n.label=l[1];break}if(l[0]===6&&n.label<r[1]){n.label=r[1];r=l;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(l);break}if(r[2])n.ops.pop();n.trys.pop();continue}l=i.call(e,n)}catch(a){l=[6,a];o=0}finally{t=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,h,a as Host,g as getElement}from"./index-5397620b.js";import{s as state}from"./pn-marketweb-siteheader-store-cd0a1dab.js";import"./index-7b21ecff.js";var pnMarketwebSiteheaderLoginButtonCss="pn-marketweb-siteheader-login-button button{background-color:red}";var PnMarketwebSiteheaderLoginButton=function(){function e(e){registerInstance(this,e)}e.prototype.createLoginUrl=function(){var e=window.location.origin;console.log("base: ",window.location.origin);if(e.includes("portal")){return e.concat("/api/unified-login/backend/authorization?redirectionUrl=".concat(window.location.href))}return e.concat("/login?returnUrl=".concat(window.location.href))};e.prototype.navigateToLogin=function(){this.loginUrl=this.createLoginUrl();if(this.active){location.href=this.loginUrl}else{console.log("loginurl with its redirect: ",this.loginUrl)}};e.prototype.render=function(){var e=this;return h(Host,null,h("pn-button",{onClick:function(){return e.navigateToLogin()}},this.label))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnMarketwebSiteheaderLoginButton.style=pnMarketwebSiteheaderLoginButtonCss;var pnMarketwebSiteheaderLoginLinksCss="";var PnMarketwebSiteheaderLoginLinks=function(){function e(e){registerInstance(this,e);this.loginDialog=null;this.idNamespace="";this.loggedin=false;this.username=""}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.adjustLoginLinks();return[2]}))}))};e.prototype.adjustLoginLinks=function(){var e,i,n,t;if(!this.loginDialog){return}var o=function(e,i){if(!e.isLogoutLink){e.isLogoutLink=e.pageLink.indexOf("location.href")!==-1&&e.pageLink.indexOf("logout")!==-1}if(e.isLogoutLink){e.href=state.loginManager.getLogoutUrl(e.href)}e.href=e.href.replace("window.location.href",window.location.href);if(i===0&&!e.href){e.href=state.loginManager.getLoginUrl();e.linkType="primary"}if(e.primaryLinkApperance&&!e.linkType){e.linkType="primary"}};if((e=this.loginDialog)===null||e===void 0?void 0:e.loginMenuLinks){(i=this.loginDialog)===null||i===void 0?void 0:i.loginMenuLinks.forEach(o)}if((n=this.loginDialog)===null||n===void 0?void 0:n.loggedInLinks){(t=this.loginDialog)===null||t===void 0?void 0:t.loggedInLinks.forEach(o)}this.loginDialog.legacyLoginLinks=[{href:state.loginManager.getLoginUrl(this.loginDialog.loginUrl),linkText:this.loginDialog.loginLinkText,openInNewWindow:false,isLogoutLink:false,pageLink:null,linkType:"primary",primaryLinkApperance:true},{href:state.loginManager.getLoginUrl(this.loginDialog.registerUrl),linkText:this.loginDialog.createLoginLinkText,openInNewWindow:false,isLogoutLink:false,pageLink:null,primaryLinkApperance:false}]};e.prototype.render=function(){var e;if(!this.loginDialog){return}var i={username:null,loggedin:false};if(this.username){i.username=this.username;i.loggedin=this.loggedin}return h(Host,Object.assign({},i),!this.loginDialog.overrideLoginMenu?h("div",{"data-loggedin":this.loggedin+""},this.loggedin?h("pn-marketweb-siteheader-login-linklist",{links:this.loginDialog.loggedInLinks,idNamespace:this.idNamespace}):h("div",null,((e=this.loginDialog.loginMenuLinks)===null||e===void 0?void 0:e.length)>0?h("pn-marketweb-siteheader-login-linklist",{heading:this.loginDialog.loginTitle,links:this.loginDialog.loginMenuLinks,idNamespace:this.idNamespace}):h("pn-marketweb-siteheader-login-linklist",{links:this.loginDialog.legacyLoginLinks,idNamespace:this.idNamespace}))):null,this.loginDialog.overrideLoginMenu?h("pn-marketweb-siteheader-login-linklist",{links:this.loginDialog.loginMenuLinks,idNamespace:this.idNamespace}):null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{loginDialog:["init"]}},enumerable:false,configurable:true});return e}();PnMarketwebSiteheaderLoginLinks.style=pnMarketwebSiteheaderLoginLinksCss;var 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}';var PnMarketwebSiteheaderLoginProfileselection=function(){function e(e){registerInstance(this,e);this.loginDialog=null;this.endpoint="";this.loggedin=false;this.idNamespace="";this.heading=null;this.i18n={searchlabel:"",searchplaceholder:"",searchbuttontext:"",menuHomeButton:"",menuGoBackButton:"",mainMenuButton:"",menuStartButton:"",profileSelectionFlyoutHeading:""};this.user=null;this.logoutLink=null;this.userName=null;this.userEmail="";this.currentProfile=null;this.profileoptions=[]}e.prototype.componentWillLoad=function(){var e;if(this.heading===null&&((e=this.i18n)===null||e===void 0?void 0:e.profileSelectionFlyoutHeading)){this.heading=this.i18n.profileSelectionFlyoutHeading}this.init()};e.prototype.init=function(){this.updateUserInfo();this.adjustLoginLinks();this.fetchProfiles()};e.prototype.fetchProfiles=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n,t,o,r,l;var a=this;return __generator(this,(function(s){switch(s.label){case 0:if(!this.loggedin||this.profileoptions.length>0){return[2]}e="".concat(this.endpoint).concat(this.endpoint.lastIndexOf("/")>-1&&this.endpoint.lastIndexOf("/")===this.endpoint.length-1?"":"/","api/user/parentorganizations");return[4,fetch(e)];case 1:i=s.sent();return[4,i.json()];case 2:n=s.sent();t={loggedin:true,organizations:[{name:"Forsheda Livs AB",customerNumber:"5564513603",id:"dbba867d-1dff-3dbb-b420-c57b4b828b73",selected:true,profiles:[{name:"Forsheda Livs AB",customerNumber:"20685482",id:"f757ba28-9a73-15a2-f128-4b394d970f3f",ssid:"",selected:false,customerGroup:"Business"},{name:"ICA MAXI KUNGSBACKA",customerNumber:"20831191",id:"5aea41df-32b0-3f7e-2946-78598360177d",ssid:"259686",selected:true,customerGroup:"Agent"}]},{name:"Hem Livs i Kungsbacka AB",customerNumber:"5565271250",id:"97ca363c-40ef-cca9-7a3c-9e7f025567c2",selected:false,profiles:[{name:"ICA KVANTUM KUNGSBACKA",customerNumber:"20831193",id:"fbd61ffd-41c6-2206-b88e-cfef91e1dc39",ssid:"259691",selected:false,customerGroup:"Agent"}]},{name:"ICA SUPERMARKET TORGET",customerNumber:"5568902679",id:"7cb76a94-e1a5-5f57-58fd-bc563851b28e",selected:false,profiles:[{name:"ICA SUPERMARKET TORGET",customerNumber:"20831212",id:"3a2db017-b68f-6fa0-fe70-542c08cd97ce",ssid:"",selected:false,customerGroup:"Agent"}]}]};o=window.location.href.indexOf("localhost:6008")!==-1?t:n;if(!o||!o.organizations||!o.organizations.length){return[2]}o.organizations.forEach((function(e){if(e.selected===true&&e.profiles){var i=e.profiles.filter((function(e){return e.selected===true}));if(i&&i[0]&&i[0].customerGroup.toLocaleLowerCase()==="agent"&&i[0].ssid){e.customerNumber=i[0].ssid}}else{if(e.customerNumber.length===10&&e.customerNumber.substring(0,2)==="55"){e.customerNumber=e.customerNumber.substring(0,6)+"-"+e.customerNumber.substring(6)}a.profileoptions.push(e)}}));r=o.organizations.filter((function(e){return e.selected===true}))[0];l={name:this.userName,customerNumber:"",id:"",selected:!r,profiles:[]};if(!r){r=l}if(r&&r.name){this.currentProfile=r}this.profileoptions.push(l);return[2]}}))}))};e.prototype.adjustLoginLinks=function(){var e,i,n,t;var o=function(e,i){if(!e.isLogoutLink){e.isLogoutLink=e.pageLink.indexOf("location.href")!==-1&&e.pageLink.indexOf("logout")!==-1}if(e.isLogoutLink){e.href=state.loginManager.getLogoutUrl(e.href)}if(i===0&&!e.href){e.href=state.loginManager.getLoginUrl();e.linkType="primary"}if(e.primaryLinkApperance&&!e.linkType){e.linkType="primary"}};if((e=this.loginDialog)===null||e===void 0?void 0:e.loggedInLinks){(i=this.loginDialog)===null||i===void 0?void 0:i.loggedInLinks.forEach(o)}this.logoutLink=(t=(n=this.loginDialog)===null||n===void 0?void 0:n.loggedInLinks.filter((function(e){return e.isLogoutLink}))[0])!==null&&t!==void 0?t:null};e.prototype.updateUserInfo=function(){var e=state.loginManager.getUserInfo();this.user=e;if(!e){return}if(e&&e.email){this.userEmail=e.email}if(e&&e.given_name){this.userName=e.given_name+((e===null||e===void 0?void 0:e.family_name)?" ".concat(e===null||e===void 0?void 0:e.family_name):"")}if(e&&e.given_name){this.userName=e.given_name;return}if(e&&e.family_name){this.userName=e.family_name;return}if(e&&e.username){this.userName=e.username;return}};e.prototype.render=function(){var e=this;if(!this.loginDialog){return}var i={};return h(Host,Object.assign({},i),this.heading?h("strong",{class:"pn-marketweb-siteheader-login-profileselection-heading"},this.heading):null,this.currentProfile!==null&&this.currentProfile.name?h("div",{class:"pn-marketweb-siteheader-login-profileselection-currentprofile"},h("div",{class:"pn-marketweb-siteheader-login-profileselection-currentprofile-name"},this.currentProfile.name),h("div",{class:"pn-marketweb-siteheader-login-profileselection-currentprofile-description"},this.currentProfile.customerNumber?this.currentProfile.customerNumber:this.userEmail)):null,h("pn-marketweb-siteheader-login-linklist",{links:this.loginDialog.loggedInLinks,idNamespace:this.idNamespace}),h("div",{class:"pn-marketweb-siteheader-login-profileselection-divider"}),this.profileoptions.filter((function(e){return e.selected!==true})).map((function(i){var n=i.profiles.length>0?i.profiles[0].customerNumber:i.customerNumber;return h("div",{class:"pn-marketweb-siteheader-login-profileselection-profileoption"},h("a",{href:"".concat(e.endpoint,"/api/user/setprofile?customernumber=").concat(n,"&returnUrl=").concat(window.location.href),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"},i.name),h("div",{class:"pn-marketweb-siteheader-login-profileselection-profileoption-description"},i.customerNumber?i.customerNumber:e.userEmail)),h("pn-icon",{symbol:"arrow-right",small:"false",color:"blue700"})))})),this.logoutLink?h("div",{class:"pn-marketweb-siteheader-login-profileselection-logout"},h("a",{href:this.logoutLink.href,rel:"nofollower noopener",id:"pn-marketweb-header-logoutlink",onClick:function(){return state.loginManager.clearUserData()},class:"pn-marketweb-siteheader-login-profileselection-logout-link"},this.logoutLink.linkText)):null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnMarketwebSiteheaderLoginProfileselection.style=pnMarketwebSiteheaderLoginProfileselectionCss;export{PnMarketwebSiteheaderLoginButton as pn_marketweb_siteheader_login_button,PnMarketwebSiteheaderLoginLinks as pn_marketweb_siteheader_login_links,PnMarketwebSiteheaderLoginProfileselection as pn_marketweb_siteheader_login_profileselection};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-5397620b.js";var pnProductCardCss='pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:"" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:"" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}';var PnProductCard=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null,h("slot",{name:"illustration"}),h("div",{class:"cardcontent"},h("div",{class:"details"},h("slot",{name:"title"}),h("slot",{name:"content"}),h("div",{class:"info"},h("slot",null)),h("slot",{name:"note"}),h("slot",{name:"additionalUSP"})),h("div",{class:"cardprice"},h("slot",{name:"cardprice"}),h("slot",{name:"mobiledownload"}),h("slot",{name:"servicepoint"}))))};return e}();PnProductCard.style=pnProductCardCss;var pnProductCardInfoCss='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';var PnProductCardInfo=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return this.label?h(Host,null,h("div",{class:"cardinfocontent"},this.text?h("pre",{slot:"formatPre"},this.text):null)):h(Host,null,h("div",{class:"cardinfocontent"},this.paket?h("div",{class:"cardinfocontent-item"},h("strong",null,"Maxmått"),this.paket.split("/").map((function(e){return e.split(":").length>1?h("p",null,h("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):h("p",null,e)}))):null,this.rulle?h("div",{class:"cardinfocontent-item"},h("strong",null,"Rulle"),this.rulle.split("/").map((function(e){return e.split(":").length>0?h("p",null,h("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):h("p",null,e)}))):null))};return e}();h("pn-icon",{symbol:"align-center",small:"false",color:"black"});PnProductCardInfo.style=pnProductCardInfoCss;var pnProductCardPriceCss="pn-product-card-price{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}";var PnProductCardPrice=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){if(!this.amount){return}return this.url?h(Host,{id:this.linkid},h("div",{class:"price"},this.amount?h("span",null,this.amount):null,this.currency?h("span",null," "+this.currency):null),this.note?h("p",null,this.note):null,this.label?h("pn-button",{id:"pricecta-"+this.linkid,small:"true",icon:"open-in-new",appearance:"light",href:this.url,target:"_blank"},this.label):null):h(Host,null,h("div",{class:"price"},this.amount?h("span",null,this.amount):null,this.currency?h("span",null,this.currency):null))};return e}();PnProductCardPrice.style=pnProductCardPriceCss;var pnTitletagCss="pn-titletag{display:-ms-inline-flexbox;display:inline-flex;border-radius:0.4rem;min-height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem;gap:0.6em}pn-titletag[color=green700],pn-titletag[color=green]{color:#005E41;background:#DCF6E7}pn-titletag[color=blue700],pn-titletag[color=blue]{background:#E0F8FF;color:#005D92}pn-titletag[color=coral700],pn-titletag[color=coral]{background:#FDEFEE;color:#9B1C2E}pn-titletag[color=gray900],pn-titletag[color=gray],pn-titletag[color=grey]{background:#D3CECB;color:#2D2013}pn-titletag[color=gray50],pn-titletag[color=lightgray],pn-titletag[color=lightgrey]{background:#F3F2F2;color:#2D2013}";var PnTiletag=function(){function e(e){registerInstance(this,e);this.icon=null;this.color="green700"}e.prototype.render=function(){return h(Host,null,h("slot",null),this.icon?h("pn-icon",{symbol:this.icon,small:"false",color:this.color}):null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnTiletag.style=pnTitletagCss;export{PnProductCard as pn_product_card,PnProductCardInfo as pn_product_card_info,PnProductCardPrice as pn_product_card_price,PnTiletag as pn_titletag};
@@ -1 +0,0 @@
1
- import{r as e,h as t,a as n,g as i}from"./p-58e8d7d5.js";let r=class{constructor(t){e(this,t)}render(){return t(n,null,t("slot",{name:"illustration"}),t("div",{class:"cardcontent"},t("div",{class:"details"},t("slot",{name:"title"}),t("slot",{name:"content"}),t("div",{class:"info"},t("slot",null)),t("slot",{name:"note"}),t("slot",{name:"additionalUSP"})),t("div",{class:"cardprice"},t("slot",{name:"cardprice"}),t("slot",{name:"mobiledownload"}),t("slot",{name:"servicepoint"}))))}};r.style='pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:"" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:"" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}';let o=class{constructor(t){e(this,t)}render(){return t(n,null,this.label?t("div",{class:"cardinfocontent"},this.text?t("pre",{slot:"formatPre"},this.text):null):t("div",{class:"cardinfocontent"},this.paket?t("div",{class:"cardinfocontent-item"},t("strong",null,"Maxmått"),this.paket.split("/").map((e=>e.split(":").length>1?t("p",null,t("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):t("p",null,e)))):null,this.rulle?t("div",{class:"cardinfocontent-item"},t("strong",null,"Rulle"),this.rulle.split("/").map((e=>e.split(":").length>0?t("p",null,t("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):t("p",null,e)))):null))}};t("pn-icon",{symbol:"align-center",small:"false",color:"black"}),o.style='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';let l=class{constructor(t){e(this,t)}render(){if(this.amount)return this.url?t(n,{id:this.linkid},t("div",{class:"price"},this.amount?t("span",null,this.amount):null,this.currency?t("span",null," "+this.currency):null),this.note?t("p",null,this.note):null,this.label?t("pn-button",{id:"pricecta-"+this.linkid,small:"true",icon:"open-in-new",appearance:"light",href:this.url,target:"_blank"},this.label):null):t(n,null,t("div",{class:"price"},this.amount?t("span",null,this.amount):null,this.currency?t("span",null,this.currency):null))}};l.style="pn-product-card-price{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}";let a=class{constructor(t){e(this,t),this.icon=null,this.color="green700"}render(){return t(n,null,t("slot",null),this.icon?t("pn-icon",{symbol:this.icon,small:"false",color:this.color}):null)}get hostElement(){return i(this)}};a.style="pn-titletag{display:-ms-inline-flexbox;display:inline-flex;border-radius:0.4rem;min-height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem;gap:0.6em}pn-titletag[color=green700],pn-titletag[color=green]{color:#005E41;background:#DCF6E7}pn-titletag[color=blue700],pn-titletag[color=blue]{background:#E0F8FF;color:#005D92}pn-titletag[color=coral700],pn-titletag[color=coral]{background:#FDEFEE;color:#9B1C2E}pn-titletag[color=gray900],pn-titletag[color=gray],pn-titletag[color=grey]{background:#D3CECB;color:#2D2013}pn-titletag[color=gray50],pn-titletag[color=lightgray],pn-titletag[color=lightgrey]{background:#F3F2F2;color:#2D2013}";export{r as pn_product_card,o as pn_product_card_info,l as pn_product_card_price,a as pn_titletag}
@@ -1 +0,0 @@
1
- System.register(["./p-36654f2a.system.js"],(function(e){"use strict";var t,n,i,r;return{setters:[function(e){t=e.r;n=e.h;i=e.a;r=e.g}],execute:function(){var o='pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:"" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:"" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}';var l=e("pn_product_card",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(i,null,n("slot",{name:"illustration"}),n("div",{class:"cardcontent"},n("div",{class:"details"},n("slot",{name:"title"}),n("slot",{name:"content"}),n("div",{class:"info"},n("slot",null)),n("slot",{name:"note"}),n("slot",{name:"additionalUSP"})),n("div",{class:"cardprice"},n("slot",{name:"cardprice"}),n("slot",{name:"mobiledownload"}),n("slot",{name:"servicepoint"}))))};return e}());l.style=o;var a='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';var c=e("pn_product_card_info",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.label?n(i,null,n("div",{class:"cardinfocontent"},this.text?n("pre",{slot:"formatPre"},this.text):null)):n(i,null,n("div",{class:"cardinfocontent"},this.paket?n("div",{class:"cardinfocontent-item"},n("strong",null,"Maxmått"),this.paket.split("/").map((function(e){return e.split(":").length>1?n("p",null,n("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):n("p",null,e)}))):null,this.rulle?n("div",{class:"cardinfocontent-item"},n("strong",null,"Rulle"),this.rulle.split("/").map((function(e){return e.split(":").length>0?n("p",null,n("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):n("p",null,e)}))):null))};return e}());n("pn-icon",{symbol:"align-center",small:"false",color:"black"});c.style=a;var d="pn-product-card-price{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}";var s=e("pn_product_card_price",function(){function e(e){t(this,e)}e.prototype.render=function(){if(!this.amount){return}return this.url?n(i,{id:this.linkid},n("div",{class:"price"},this.amount?n("span",null,this.amount):null,this.currency?n("span",null," "+this.currency):null),this.note?n("p",null,this.note):null,this.label?n("pn-button",{id:"pricecta-"+this.linkid,small:"true",icon:"open-in-new",appearance:"light",href:this.url,target:"_blank"},this.label):null):n(i,null,n("div",{class:"price"},this.amount?n("span",null,this.amount):null,this.currency?n("span",null,this.currency):null))};return e}());s.style=d;var p="pn-titletag{display:-ms-inline-flexbox;display:inline-flex;border-radius:0.4rem;min-height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem;gap:0.6em}pn-titletag[color=green700],pn-titletag[color=green]{color:#005E41;background:#DCF6E7}pn-titletag[color=blue700],pn-titletag[color=blue]{background:#E0F8FF;color:#005D92}pn-titletag[color=coral700],pn-titletag[color=coral]{background:#FDEFEE;color:#9B1C2E}pn-titletag[color=gray900],pn-titletag[color=gray],pn-titletag[color=grey]{background:#D3CECB;color:#2D2013}pn-titletag[color=gray50],pn-titletag[color=lightgray],pn-titletag[color=lightgrey]{background:#F3F2F2;color:#2D2013}";var m=e("pn_titletag",function(){function e(e){t(this,e);this.icon=null;this.color="green700"}e.prototype.render=function(){return n(i,null,n("slot",null),this.icon?n("pn-icon",{symbol:this.icon,small:"false",color:this.color}):null)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());m.style=p}}}));