@postnord/pn-marketweb-components 2.1.0 → 2.1.2

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 (158) 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 +32 -19
  7. package/cjs/pn-market-web-components.cjs.js +1 -1
  8. package/cjs/{pn-marketweb-siteheader-login-links_2.cjs.entry.js → pn-marketweb-siteheader-login-button_5.cjs.entry.js} +109 -18
  9. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +27 -15
  10. package/cjs/pn-marketweb-siteheader.cjs.entry.js +74 -58
  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 +5 -0
  19. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.css +0 -0
  20. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +47 -0
  21. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +27 -13
  22. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +51 -16
  23. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +32 -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 +112 -25
  27. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.css +0 -0
  28. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +88 -0
  29. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +33 -0
  30. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +26 -4
  31. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +3 -4
  32. package/collection/components/layout-components/pn-marketweb-siteheader/translations.js +67 -55
  33. package/collection/components/layout-components/pn-marketweb-siteheader/unifiedLoginHelper.js +46 -0
  34. package/collection/components/widgets/pn-find-price/data.js +2 -2
  35. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +7 -7
  36. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +2 -2
  37. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +5 -5
  38. package/collection/components/widgets/pn-proxio-findprice/data.js +52 -0
  39. package/collection/components/widgets/pn-proxio-findprice/find-price.stories.js +27 -0
  40. package/collection/components/widgets/pn-proxio-findprice/img/clouds.svg +5 -0
  41. package/collection/components/widgets/pn-proxio-findprice/img/large-package.svg +9 -0
  42. package/collection/components/widgets/pn-proxio-findprice/img/medium-package.svg +9 -0
  43. package/collection/components/widgets/pn-proxio-findprice/img/postnord-person1.svg +52 -0
  44. package/collection/components/widgets/pn-proxio-findprice/img/postnord-person2.svg +56 -0
  45. package/collection/components/widgets/pn-proxio-findprice/img/small-package.svg +23 -0
  46. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.css +9 -0
  47. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +234 -0
  48. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-store.js +29 -0
  49. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-translations.js +106 -0
  50. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-types.js +1 -0
  51. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.css +119 -0
  52. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +250 -0
  53. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.css +3 -0
  54. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -0
  55. package/collection/globals/MarketWebLoginManager.js +1 -1
  56. package/custom-elements/index.d.ts +30 -0
  57. package/custom-elements/index.js +775 -273
  58. package/esm/{data-9c9c5f41.js → data-059c2a58.js} +2 -2
  59. package/esm/loader.js +1 -1
  60. package/esm/pn-find-price-result.entry.js +4 -4
  61. package/esm/{pn-find-price-store-b4556c9b.js → pn-find-price-store-bde5071d.js} +2 -2
  62. package/esm/pn-find-price.entry.js +7 -7
  63. package/esm/pn-language-selector_9.entry.js +32 -19
  64. package/esm/pn-market-web-components.js +1 -1
  65. package/esm/{pn-marketweb-siteheader-login-links_2.entry.js → pn-marketweb-siteheader-login-button_5.entry.js} +107 -19
  66. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +27 -15
  67. package/esm/pn-marketweb-siteheader.entry.js +74 -58
  68. package/esm/{pn-product-card_4.entry.js → pn-product-card_3.entry.js} +2 -19
  69. package/esm/pn-product-pricelist.entry.js +1 -1
  70. package/esm/pn-proxio-findprice-result.entry.js +59 -0
  71. package/esm/pn-proxio-findprice.entry.js +307 -0
  72. package/esm/pn-proxio-pricegroup.entry.js +3 -19
  73. package/esm/pn-titletag.entry.js +20 -0
  74. package/esm/translations-022fefa0.js +19 -0
  75. package/esm-es5/{data-9c9c5f41.js → data-059c2a58.js} +1 -1
  76. package/esm-es5/loader.js +1 -1
  77. package/esm-es5/pn-find-price-result.entry.js +1 -1
  78. package/esm-es5/{pn-find-price-store-b4556c9b.js → pn-find-price-store-bde5071d.js} +1 -1
  79. package/esm-es5/pn-find-price.entry.js +1 -1
  80. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  81. package/esm-es5/pn-market-web-components.js +1 -1
  82. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -0
  83. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  84. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  85. package/esm-es5/pn-product-card_3.entry.js +1 -0
  86. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  87. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -0
  88. package/esm-es5/pn-proxio-findprice.entry.js +1 -0
  89. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  90. package/esm-es5/pn-titletag.entry.js +1 -0
  91. package/esm-es5/translations-022fefa0.js +1 -0
  92. package/package.json +2 -2
  93. package/pn-market-web-components/p-10eafcd7.entry.js +1 -0
  94. package/pn-market-web-components/p-2b4c41aa.system.entry.js +1 -0
  95. package/pn-market-web-components/p-3120cc66.system.entry.js +1 -0
  96. package/pn-market-web-components/{p-37017f68.system.js → p-3738a2df.system.js} +1 -1
  97. package/pn-market-web-components/p-3969ec4d.entry.js +1 -0
  98. package/pn-market-web-components/{p-0b0727dc.entry.js → p-39b54d40.entry.js} +1 -1
  99. package/pn-market-web-components/p-499bb3ac.entry.js +1 -0
  100. package/pn-market-web-components/p-4a03854b.system.entry.js +1 -0
  101. package/pn-market-web-components/p-4b0020a0.system.entry.js +1 -0
  102. package/pn-market-web-components/p-557328e3.system.entry.js +1 -0
  103. package/pn-market-web-components/{p-ac0e3c22.system.entry.js → p-59be826b.system.entry.js} +1 -1
  104. package/pn-market-web-components/p-67887512.system.js +1 -1
  105. package/pn-market-web-components/p-6995075c.entry.js +1 -0
  106. package/pn-market-web-components/p-8afa354b.system.entry.js +1 -0
  107. package/pn-market-web-components/{p-aab2e28f.entry.js → p-8b684578.entry.js} +1 -1
  108. package/pn-market-web-components/p-951861fa.entry.js +1 -0
  109. package/pn-market-web-components/{p-736e5b84.system.entry.js → p-98a7ddd1.system.entry.js} +1 -1
  110. package/pn-market-web-components/p-a120063f.js +1 -0
  111. package/pn-market-web-components/p-b501b216.system.js +1 -0
  112. package/pn-market-web-components/p-b7adbd6d.system.entry.js +1 -0
  113. package/pn-market-web-components/{p-3ae38e63.entry.js → p-b9a84e67.entry.js} +1 -1
  114. package/pn-market-web-components/p-c8ceda2e.entry.js +1 -0
  115. package/pn-market-web-components/p-e397e11b.entry.js +1 -0
  116. package/pn-market-web-components/p-e7a1cda9.entry.js +1 -0
  117. package/pn-market-web-components/{p-d0653c80.system.entry.js → p-e881d111.system.entry.js} +1 -1
  118. package/pn-market-web-components/{p-e4a4e68f.system.entry.js → p-ecdf2b69.system.entry.js} +1 -1
  119. package/pn-market-web-components/p-f58bde56.js +1 -0
  120. package/pn-market-web-components/p-f782ce94.system.entry.js +1 -0
  121. package/pn-market-web-components/p-fefc9629.entry.js +1 -0
  122. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  123. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.d.ts +8 -0
  124. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +4 -1
  125. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +2 -1
  126. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.d.ts +6 -0
  127. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +7 -2
  128. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +10 -8
  129. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.d.ts +8 -0
  130. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +2 -0
  131. package/types/components/layout-components/pn-marketweb-siteheader/translations.d.ts +12 -0
  132. package/types/components/layout-components/pn-marketweb-siteheader/unifiedLoginHelper.d.ts +1 -0
  133. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +4 -4
  134. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +5 -5
  135. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +2 -2
  136. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.d.ts +22 -0
  137. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-store.d.ts +51 -0
  138. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-translations.d.ts +106 -0
  139. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-types.d.ts +39 -0
  140. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice.d.ts +24 -0
  141. package/types/components/widgets/pn-proxio-pricegroup/types.d.ts +1 -1
  142. package/types/components.d.ts +130 -1
  143. package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +0 -1
  144. package/esm-es5/pn-product-card_4.entry.js +0 -1
  145. package/pn-market-web-components/p-022d9a78.entry.js +0 -1
  146. package/pn-market-web-components/p-198d9c77.system.entry.js +0 -1
  147. package/pn-market-web-components/p-332e9005.entry.js +0 -1
  148. package/pn-market-web-components/p-3c0d63fb.system.entry.js +0 -1
  149. package/pn-market-web-components/p-63c30175.entry.js +0 -1
  150. package/pn-market-web-components/p-6b33db5b.system.entry.js +0 -1
  151. package/pn-market-web-components/p-77557da8.entry.js +0 -1
  152. package/pn-market-web-components/p-92fd28e6.entry.js +0 -1
  153. package/pn-market-web-components/p-a119cb8e.entry.js +0 -1
  154. package/pn-market-web-components/p-c4254e9e.js +0 -1
  155. package/pn-market-web-components/p-d542a52b.system.entry.js +0 -1
  156. package/pn-market-web-components/p-eb662559.system.entry.js +0 -1
  157. /package/pn-market-web-components/{p-bfa7c83f.system.js → p-1534926e.system.js} +0 -0
  158. /package/pn-market-web-components/{p-86b52823.js → p-a07906d5.js} +0 -0
@@ -0,0 +1,23 @@
1
+ <svg width="54" height="38" viewBox="0 0 54 38" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M44.3848 38H50.3017C51.9339 38 53.3111 36.2357 53.3111 33.9964V4.00357C53.3111 1.83214 51.9849 0 50.3017 0H44.3848V38Z" fill="#005D92"/>
3
+ <path d="M47.3433 38H13.321C11.6887 38 10.3115 36.2357 10.3115 33.9964V4.00357C10.3115 1.83214 11.6377 0 13.321 0H44.8439C46.2211 0 47.3433 1.49286 47.3433 3.325V38Z" fill="#00A0D6"/>
4
+ <path d="M43.3143 10.7895C43.3143 12.9609 41.9881 14.7252 40.3559 14.7252H35.9692C34.3369 14.7252 33.0107 12.9609 33.0107 10.7895C33.0107 8.61804 34.3369 6.85376 35.9692 6.85376H40.3559C42.0391 6.92162 43.3143 8.61804 43.3143 10.7895Z" fill="#8EDDF9"/>
5
+ <g clip-path="url(#clip0_1246_34703)">
6
+ <path d="M23.3114 32.6772H0.688477V23.2348L10.3784 13.4694C11.3047 12.5358 12.7849 12.5389 13.7074 13.4763L23.3114 23.2348V32.6772Z" fill="#005D92"/>
7
+ <path d="M5.28627 17.0176H18.7132C19.3401 17.0176 19.9414 17.2013 20.3847 17.5284C20.828 17.8555 21.0771 18.2991 21.0771 18.7617V33.3734H2.92285V18.7617C2.92285 18.2991 3.1719 17.8555 3.61521 17.5284C4.05852 17.2013 4.65978 17.0176 5.28671 17.0176H5.28627Z" fill="#F9F8F8"/>
8
+ <path d="M12.0776 23.7432H7.41657C7.19891 23.7432 7.02246 23.9256 7.02246 24.1507V24.1508C7.02246 24.3759 7.19891 24.5583 7.41657 24.5583H12.0776C12.2952 24.5583 12.4717 24.3759 12.4717 24.1508V24.1507C12.4717 23.9256 12.2952 23.7432 12.0776 23.7432Z" fill="#D3CECB"/>
9
+ <path d="M16.987 25.761H7.41657C7.19891 25.761 7.02246 25.9434 7.02246 26.1685V26.1686C7.02246 26.3937 7.19891 26.5762 7.41657 26.5762H16.987C17.2046 26.5762 17.3811 26.3937 17.3811 26.1686V26.1685C17.3811 25.9434 17.2046 25.761 16.987 25.761Z" fill="#D3CECB"/>
10
+ <path d="M16.987 27.6598H7.41657C7.19891 27.6598 7.02246 27.8422 7.02246 28.0673V28.0674C7.02246 28.2925 7.19891 28.475 7.41657 28.475H16.987C17.2046 28.475 17.3811 28.2925 17.3811 28.0674V28.0673C17.3811 27.8422 17.2046 27.6598 16.987 27.6598Z" fill="#D3CECB"/>
11
+ <path d="M10.3217 30.2231H7.41657C7.19891 30.2231 7.02246 30.4056 7.02246 30.6307V30.6308C7.02246 30.8559 7.19891 31.0383 7.41657 31.0383H10.3217C10.5394 31.0383 10.7158 30.8559 10.7158 30.6308V30.6307C10.7158 30.4056 10.5394 30.2231 10.3217 30.2231Z" fill="#D3CECB"/>
12
+ <path d="M0.688813 23.2346L19.8537 37.9165H3.10689C1.77124 37.9165 0.688477 36.7997 0.688477 35.4219L0.688813 23.2346Z" fill="#00A0D6"/>
13
+ <path d="M23.3119 23.3242L4.13477 37.9161H20.8934C22.2291 37.9161 23.3119 36.7993 23.3119 35.4215V23.3242Z" fill="#8EDDF9"/>
14
+ <path d="M12.0378 21.9537C12.9492 21.9537 13.6881 21.1916 13.6881 20.2513C13.6881 19.3111 12.9489 18.549 12.0378 18.549C11.1267 18.549 10.3877 19.3111 10.3877 20.2513C10.3877 21.1916 11.1265 21.9537 12.0378 21.9537Z" fill="#005D92"/>
15
+ <path d="M13.6778 20.0662C13.4119 20.1936 13.1318 20.3163 12.8714 20.4306C12.3538 20.6581 11.865 20.8728 11.5107 21.0907C11.3925 21.1632 11.1087 21.3375 10.9971 21.5725C11.0876 21.6481 11.1857 21.7135 11.2896 21.7677C11.2888 21.6813 11.4305 21.5431 11.6825 21.3883C12.0173 21.1828 12.4961 20.9725 13.003 20.7498C13.233 20.6486 13.4597 20.5487 13.6758 20.4487C13.691 20.3218 13.6916 20.1935 13.6774 20.0665L13.6778 20.0662Z" fill="#00A0D6"/>
16
+ <path d="M13.2568 19.3703C13.2131 19.2881 13.1603 19.2102 13.0992 19.1378C12.7291 19.3731 12.2814 19.6447 11.7601 19.8243C11.2262 20.0084 10.8085 20.0936 10.4639 20.0738C10.4729 20.1672 10.4928 20.2594 10.5231 20.3489C10.9281 20.3572 11.3749 20.2487 11.8664 20.0793C12.4144 19.8904 12.8755 19.6122 13.2568 19.3703Z" fill="#00A0D6"/>
17
+ </g>
18
+ <defs>
19
+ <clipPath id="clip0_1246_34703">
20
+ <rect width="22.623" height="27.5625" fill="white" transform="translate(0.688477 10.3541)"/>
21
+ </clipPath>
22
+ </defs>
23
+ </svg>
@@ -0,0 +1,9 @@
1
+ pn-proxio-find-price-result .test {
2
+ margin: 3em 0;
3
+ }
4
+
5
+ .resultcontent {
6
+ display: flex;
7
+ justify-content: center;
8
+ flex-grow: 1;
9
+ }
@@ -0,0 +1,234 @@
1
+ import { Component, h, Prop, Host, Watch, State } from "@stencil/core";
2
+ import { translations } from "../pn-proxio-pricegroup/translations";
3
+ export class PnProxioFindPriceResult {
4
+ constructor() {
5
+ this.item = null;
6
+ this.activeweight = null;
7
+ this.shownitems = [];
8
+ this.description = [];
9
+ this.showMeasurement = false;
10
+ this.weightText = "";
11
+ this.linkId = '';
12
+ this.shopLabel = '';
13
+ this.shopUrl = '';
14
+ this.shopId = '';
15
+ this.i18n = translations["sv"];
16
+ }
17
+ componentWillLoad() {
18
+ this.composeItems();
19
+ }
20
+ composeItems() {
21
+ this.shownitems = [this.item];
22
+ }
23
+ getPriceString(product) {
24
+ var _a;
25
+ if (product.productWeightGroupList) {
26
+ const activeIndex = product.productWeightGroupList.findIndex((item) => item.item1 === this.activeweight);
27
+ let price = product.weightAndPriceList ? (_a = product === null || product === void 0 ? void 0 : product.weightAndPriceList[activeIndex]) === null || _a === void 0 ? void 0 : _a.item2 : '';
28
+ return price ? this.i18n.from + price : '';
29
+ }
30
+ return null;
31
+ }
32
+ getProductLink(product, productWeightGroupList) {
33
+ var _a;
34
+ if (product.productWeightGroupList) {
35
+ const activeIndex = product.productWeightGroupList.findIndex((item) => item.item1 === this.activeweight);
36
+ let productId = (_a = productWeightGroupList[activeIndex]) === null || _a === void 0 ? void 0 : _a.item2;
37
+ let productLink = product.productLink ? product === null || product === void 0 ? void 0 : product.productLink : '';
38
+ return productLink ? productLink + (productId ? "?productId=" + productId : '') : '';
39
+ }
40
+ return null;
41
+ }
42
+ render() {
43
+ return (h(Host, null, h("pn-proxio-productcard", null,
44
+ h("pn-illustration", { slot: "illustrationmobile", illustration: this.item.proxioProduct.productIcon }),
45
+ h("h2", { slot: "title" }, this.item.proxioProduct.productTitle),
46
+ h("pn-proxio-productcard-description", { slot: "description", heading: this.item.proxioProduct.productPreamble, highlight: this.item.proxioProduct.deliveryDateInformation, list: this.item.proxioProduct.productDescriptionBulletListItems }),
47
+ h("div", { slot: "information" },
48
+ h("pn-proxio-productcard-information", { label: this.i18n.labelMaxDimensions, information: this.item.proxioProduct.productPackageDimensionsList }),
49
+ h("pn-proxio-productcard-information", { label: this.i18n.labelMaxDimensionsRoll, information: this.item.proxioProduct.productRollDimensionsList })),
50
+ h("div", { slot: "bottomtags" },
51
+ this.item.proxioProduct.usp1 ?
52
+ (h("pn-titletag", { color: "gray50" }, this.item.proxioProduct.usp1)) : (null),
53
+ this.item.proxioProduct.usp2 ?
54
+ (h("pn-titletag", { color: "gray50" }, this.item.proxioProduct.usp2)) : (null),
55
+ this.item.proxioProduct.usp3 ?
56
+ (h("pn-titletag", { color: "gray50" }, this.item.proxioProduct.usp3)) : (null)),
57
+ h("pn-illustration", { slot: "illustration", illustration: this.item.proxioProduct.productIcon }),
58
+ h("div", { slot: "pricelink" },
59
+ h("pn-proxio-productcard-pricelink", { price: this.getPriceString(this.item.proxioProduct), link: this.getProductLink(this.item.proxioProduct, this.item.proxioProduct.productWeightGroupList), linktext: this.item.proxioProduct.productLinkText }),
60
+ this.item.relatedProxioProducts ? (this.item.relatedProxioProducts.map((product) => (h("pn-proxio-productcard-pricelink", { price: this.getPriceString(product), link: product.productLink, linktext: product.productLinkText })))) : (null)))));
61
+ }
62
+ static get is() { return "pn-proxio-findprice-result"; }
63
+ static get originalStyleUrls() { return {
64
+ "$": ["pn-proxio-findprice-result.scss"]
65
+ }; }
66
+ static get styleUrls() { return {
67
+ "$": ["pn-proxio-findprice-result.css"]
68
+ }; }
69
+ static get properties() { return {
70
+ "item": {
71
+ "type": "unknown",
72
+ "mutable": true,
73
+ "complexType": {
74
+ "original": "ProxioPriceListGroupResponse",
75
+ "resolved": "ProxioPriceListGroupResponse",
76
+ "references": {
77
+ "ProxioPriceListGroupResponse": {
78
+ "location": "import",
79
+ "path": "../pn-proxio-pricegroup/types"
80
+ }
81
+ }
82
+ },
83
+ "required": false,
84
+ "optional": false,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": ""
88
+ },
89
+ "defaultValue": "null"
90
+ },
91
+ "activeweight": {
92
+ "type": "number",
93
+ "mutable": true,
94
+ "complexType": {
95
+ "original": "number",
96
+ "resolved": "number",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": ""
104
+ },
105
+ "attribute": "activeweight",
106
+ "reflect": false,
107
+ "defaultValue": "null"
108
+ },
109
+ "shownitems": {
110
+ "type": "unknown",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "ProxioPriceListGroupResponse[]",
114
+ "resolved": "ProxioPriceListGroupResponse[]",
115
+ "references": {
116
+ "ProxioPriceListGroupResponse": {
117
+ "location": "import",
118
+ "path": "../pn-proxio-pricegroup/types"
119
+ }
120
+ }
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": ""
127
+ },
128
+ "defaultValue": "[]"
129
+ },
130
+ "Usp1": {
131
+ "type": "string",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "string",
135
+ "resolved": "string",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": true,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": ""
143
+ },
144
+ "attribute": "usp-1",
145
+ "reflect": false
146
+ },
147
+ "Usp2": {
148
+ "type": "string",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "string",
152
+ "resolved": "string",
153
+ "references": {}
154
+ },
155
+ "required": false,
156
+ "optional": true,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": ""
160
+ },
161
+ "attribute": "usp-2",
162
+ "reflect": false
163
+ },
164
+ "Usp3": {
165
+ "type": "string",
166
+ "mutable": false,
167
+ "complexType": {
168
+ "original": "string",
169
+ "resolved": "string",
170
+ "references": {}
171
+ },
172
+ "required": false,
173
+ "optional": true,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": ""
177
+ },
178
+ "attribute": "usp-3",
179
+ "reflect": false
180
+ },
181
+ "description": {
182
+ "type": "unknown",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "string[]",
186
+ "resolved": "string[]",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": true,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": ""
194
+ },
195
+ "defaultValue": "[]"
196
+ },
197
+ "showMeasurement": {
198
+ "type": "boolean",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "boolean",
202
+ "resolved": "boolean",
203
+ "references": {}
204
+ },
205
+ "required": false,
206
+ "optional": true,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": ""
210
+ },
211
+ "attribute": "show-measurement",
212
+ "reflect": false,
213
+ "defaultValue": "false"
214
+ }
215
+ }; }
216
+ static get states() { return {
217
+ "weightText": {},
218
+ "linkId": {},
219
+ "shopLabel": {},
220
+ "shopUrl": {},
221
+ "shopId": {},
222
+ "i18n": {}
223
+ }; }
224
+ static get watchers() { return [{
225
+ "propName": "item",
226
+ "methodName": "composeItems"
227
+ }, {
228
+ "propName": "activeweight",
229
+ "methodName": "getPriceString"
230
+ }, {
231
+ "propName": "activeweight",
232
+ "methodName": "getProductLink"
233
+ }]; }
234
+ }
@@ -0,0 +1,29 @@
1
+ import { createStore } from "@stencil/store";
2
+ // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
3
+ const { state, onChange } = createStore({
4
+ i18n: {
5
+ componentheading: '',
6
+ deliveryscopeheading: '',
7
+ resultlistheading: '',
8
+ sizeheading: '',
9
+ weightheading: '',
10
+ weightlabel: '',
11
+ maxweightlabel: '',
12
+ maxmeasurementlabel: '',
13
+ senddirectcta: '',
14
+ stampshopcta: '',
15
+ message: '',
16
+ servicePointHeader: '',
17
+ servicePointLink: '',
18
+ realPostcard: '',
19
+ realPostcardMobile: '',
20
+ ombudHeader: ''
21
+ },
22
+ market: {
23
+ currency: "",
24
+ country: "",
25
+ servicePoint: "",
26
+ }
27
+ });
28
+ export { state, onChange };
29
+ export default state;
@@ -0,0 +1,106 @@
1
+ export const translations = {
2
+ 'sv': {
3
+ 'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
4
+ 'deliveryscopeheading': 'Endast leveranser inom Sverige',
5
+ 'resultlistheading': 'Några bra alternativ för dig',
6
+ 'sizeheading': 'Uppskatta storleken på din försändelse',
7
+ 'weightheading': 'Uppskatta vikten på din försändelse',
8
+ 'weightlabel': 'Vikt',
9
+ 'maxweightlabel': 'Maxvikt',
10
+ 'maxmeasurementlabel': 'Maxvolym',
11
+ 'senddirectcta': 'Köp online',
12
+ 'stampshopcta': 'Till butiken',
13
+ 'message': '*Vid köp hos valfritt ombud',
14
+ 'servicePointHeader': 'Eller hitta närmaste serviceställe',
15
+ 'servicePointLink': 'Hitta Serviceställe',
16
+ 'realPostcard': 'Köp Riktiga Vykort',
17
+ 'realPostcardMobile': 'Ladda ner appen',
18
+ 'ombudHeader': 'Köp via ombud',
19
+ "from": "Från ",
20
+ "labelMaxDimensionsRoll": "Rulle",
21
+ "labelMaxDimensions": "Maxmått"
22
+ },
23
+ 'en': {
24
+ 'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
25
+ 'deliveryscopeheading': 'Deliveries within Sweden only',
26
+ 'resultlistheading': 'Some suitable options for you',
27
+ 'sizeheading': 'Estimate the size of your shipment',
28
+ 'weightheading': 'Estimate the weight of your shipment',
29
+ 'weightlabel': 'Weight',
30
+ 'maxweightlabel': 'Max weight',
31
+ 'maxmeasurementlabel': 'Maximum measurement',
32
+ 'senddirectcta': 'Buy Online',
33
+ 'stampshopcta': 'To the Store',
34
+ 'message': 'When buying from any agent',
35
+ 'servicePointHeader': 'Find service point',
36
+ 'servicePointLink': 'Find service point',
37
+ 'realPostcard': 'Buy Postcards',
38
+ 'realPostcardMobile': 'Download the app',
39
+ 'ombudHeader': 'Purchase by agent',
40
+ "from": "From ",
41
+ "labelMaxDimensionsRoll": "Roll",
42
+ "labelMaxDimensions": "Maximum dimensions"
43
+ },
44
+ 'da': {
45
+ 'componentheading': 'Vad vill du skicka?',
46
+ 'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
47
+ 'resultlistheading': 'Nogle passende muligheder for dig',
48
+ 'sizeheading': 'Anslå størrelsen på din forsendelse',
49
+ 'weightheading': 'Anslå vægten af din forsendelse',
50
+ 'weightlabel': 'Vægt',
51
+ 'maxweightlabel': 'Max vægt',
52
+ 'maxmeasurementlabel': 'Maks. Volumen',
53
+ 'senddirectcta': 'Køb Online',
54
+ 'stampshopcta': 'Til butikken',
55
+ 'message': 'When buying from any agent',
56
+ 'servicePointHeader': 'Find nærmeste servicested',
57
+ 'servicePointLink': 'Find nærmeste servicested',
58
+ 'realPostcard': 'Køb Riktiga Vykort',
59
+ 'ombudHeader': 'Køb af agent',
60
+ "from": "Från ",
61
+ "labelMaxDimensionsRoll": "Rulle",
62
+ "labelMaxDimensions": "Maks måle"
63
+ },
64
+ 'no': {
65
+ 'componentheading': 'Vad vill du skicka?',
66
+ 'deliveryscopeheading': 'Kun leveranser innen Sverige',
67
+ 'resultlistheading': 'Some suitable options for you',
68
+ 'weightlabel': 'Vekt',
69
+ 'maxweightlabel': 'Maks vekt',
70
+ 'maxmeasurementlabel': 'Maks volum',
71
+ 'senddirectcta': 'Buy shipping in Send Direct',
72
+ 'stampshopcta': 'Order home stamps from the webshop',
73
+ },
74
+ 'fi': {
75
+ 'componentheading': 'Vad vill du skicka?',
76
+ 'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
77
+ 'resultlistheading': 'Some suitable options for you',
78
+ 'weightlabel': 'Paino',
79
+ 'maxweightlabel': 'Max paino',
80
+ 'maxmeasurementlabel': 'Max äänenvoimakkuus',
81
+ 'senddirectcta': 'Buy shipping in Send Direct',
82
+ 'stampshopcta': 'Order home stamps from the webshop',
83
+ }
84
+ };
85
+ export const markets = {
86
+ 'se': {
87
+ "currency": "kr",
88
+ "country": "Sweden",
89
+ "servicePoint": "https://www.postnord.se/vara-verktyg/sok-brevlada-eller-servicestalle",
90
+ },
91
+ 'dk': {
92
+ "currency": "dk",
93
+ "country": "Denmark",
94
+ "servicePoint": "https://www.postnord.dk/varktojer/find-os",
95
+ },
96
+ 'fi': {
97
+ "currency": " €",
98
+ "country": "Finland",
99
+ "servicePoint": "",
100
+ },
101
+ 'no': {
102
+ "currency": "kr",
103
+ "country": "Norway",
104
+ "servicePoint": "",
105
+ }
106
+ };
@@ -0,0 +1,119 @@
1
+ @charset "UTF-8";
2
+ pn-proxio-findprice .findprice-form {
3
+ margin: 0em auto 3em auto;
4
+ }
5
+ pn-proxio-findprice .findprice-form-wrapper {
6
+ background-color: #EFFBFF;
7
+ padding: 3.2rem;
8
+ }
9
+ pn-proxio-findprice .sizeTable {
10
+ border-style: none !important;
11
+ border: 0 !important;
12
+ position: relative;
13
+ }
14
+ pn-proxio-findprice .sizeTable > tr td {
15
+ margin-bottom: 1em;
16
+ text-align: center;
17
+ vertical-align: bottom;
18
+ padding-right: 1em;
19
+ padding-top: 1em;
20
+ position: relative;
21
+ z-index: 1;
22
+ }
23
+ pn-proxio-findprice .sizeTable #clouds {
24
+ position: absolute;
25
+ top: 3rem;
26
+ width: 100%;
27
+ }
28
+ pn-proxio-findprice .firstCell {
29
+ margin-right: 0;
30
+ margin-left: auto;
31
+ }
32
+ pn-proxio-findprice [slot=title] {
33
+ margin-bottom: 1rem;
34
+ }
35
+ pn-proxio-findprice h2 {
36
+ text-align: center;
37
+ }
38
+ pn-proxio-findprice .findprice__heading {
39
+ text-align: center;
40
+ line-height: 1.1;
41
+ font-weight: bold;
42
+ color: #000000;
43
+ font-size: 3.2rem;
44
+ font-weight: 700;
45
+ }
46
+ pn-proxio-findprice .findprice__subheading {
47
+ font-size: 2.4rem;
48
+ margin-bottom: 2.4rem;
49
+ }
50
+ pn-proxio-findprice .resultHeading {
51
+ text-align: center;
52
+ font-size: 1.5em;
53
+ line-height: 1.1;
54
+ font-weight: bold;
55
+ margin-bottom: 2em;
56
+ }
57
+ pn-proxio-findprice .sizecategory {
58
+ margin-top: 1em;
59
+ margin-bottom: 3rem;
60
+ font-size: 0.9em;
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ }
65
+ pn-proxio-findprice .weightoption {
66
+ font-size: 0.9em;
67
+ margin: 0 auto;
68
+ }
69
+ pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content {
70
+ text-align: center;
71
+ display: flex;
72
+ flex-wrap: wrap;
73
+ justify-content: center;
74
+ flex-direction: row;
75
+ }
76
+ pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content pn-choice-button {
77
+ width: 7em;
78
+ line-height: 3.3em;
79
+ font-size: 0.9em;
80
+ vertical-align: bottom;
81
+ background: #FFFFFF;
82
+ border-radius: 1rem;
83
+ }
84
+ pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content pn-choice-button > label {
85
+ align-content: center;
86
+ justify-content: center;
87
+ color: #000000;
88
+ margin-bottom: 0;
89
+ }
90
+ pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content pn-choice-button ::before {
91
+ content: "Max  ";
92
+ font-weight: lighter;
93
+ color: #5E554A;
94
+ }
95
+ pn-proxio-findprice .resultlist {
96
+ max-width: 60em;
97
+ margin: 3.2rem auto 3.2rem auto;
98
+ }
99
+ pn-proxio-findprice .servicePoint {
100
+ text-align: center;
101
+ }
102
+ pn-proxio-findprice .servicePoint pn-illustration {
103
+ display: block;
104
+ max-width: 5em;
105
+ max-height: 5em;
106
+ margin: 1.5em auto 0 auto;
107
+ }
108
+ pn-proxio-findprice .servicePoint h3 {
109
+ margin-top: 0.8em;
110
+ margin-bottom: 0.9em;
111
+ }
112
+ pn-proxio-findprice .servicePoint a {
113
+ color: #005D92;
114
+ text-decoration: none;
115
+ }
116
+ pn-proxio-findprice .servicePoint a:hover {
117
+ color: #0D234B;
118
+ text-decoration: underline;
119
+ }