@postnord/pn-marketweb-components 1.0.4 → 1.0.8

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 (229) hide show
  1. package/cjs/convert-57b3dd5e.js +1730 -0
  2. package/cjs/{index-0f43b450.js → index-b58d2618.js} +82 -0
  3. package/cjs/index-f472d191.js +181 -0
  4. package/cjs/loader.cjs.js +2 -2
  5. package/cjs/pn-choice-button_2.cjs.entry.js +78 -0
  6. package/cjs/pn-find-service-and-price-store-56d8b760.js +23 -0
  7. package/cjs/pn-find-service-and-price.cjs.entry.js +263 -0
  8. package/cjs/pn-language-selector_9.cjs.entry.js +646 -0
  9. package/cjs/pn-mainnav-link.cjs.entry.js +45 -0
  10. package/cjs/pn-mainnav-store-dda9827f.js +18 -0
  11. package/cjs/pn-market-web-components.cjs.js +2 -2
  12. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +145 -0
  13. package/cjs/{pn-siteheader.cjs.entry.js → pn-marketweb-siteheader.cjs.entry.js} +8 -8
  14. package/cjs/pn-product-pricelist-result.cjs.entry.js +45 -0
  15. package/cjs/pn-product-pricelist-store-e4f8503b.js +20 -0
  16. package/cjs/pn-product-pricelist.cjs.entry.js +219 -0
  17. package/cjs/pn-product-tile_3.cjs.entry.js +49 -0
  18. package/cjs/pn-site-footer_2.cjs.entry.js +36 -0
  19. package/collection/collection-manifest.json +22 -3
  20. package/collection/components/input/pn-choice-button/choice-button.stories.js +34 -0
  21. package/collection/components/input/pn-choice-button/pn-choice-button.css +66 -0
  22. package/collection/components/input/pn-choice-button/pn-choice-button.js +170 -0
  23. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.js +10 -0
  24. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.css +0 -0
  25. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +166 -0
  26. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.stories.js +54 -0
  27. package/collection/components/layout-components/{pn-siteheader → pn-marketweb-sitefooter}/translations.js +0 -0
  28. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +34 -0
  29. package/collection/components/layout-components/{pn-siteheader/pn-siteheader-login.js → pn-marketweb-siteheader/pn-marketweb-siteheader-login.js} +6 -6
  30. package/collection/components/layout-components/{pn-siteheader/pn-siteheader-loginmanager.js → pn-marketweb-siteheader/pn-marketweb-siteheader-loginmanager.js} +0 -0
  31. package/collection/components/layout-components/{pn-siteheader/pn-siteheader-search.css → pn-marketweb-siteheader/pn-marketweb-siteheader-search.css} +0 -0
  32. package/collection/components/layout-components/{pn-siteheader/pn-siteheader-search.js → pn-marketweb-siteheader/pn-marketweb-siteheader-search.js} +5 -6
  33. package/collection/components/layout-components/{pn-siteheader/pn-siteheader-types.js → pn-marketweb-siteheader/pn-marketweb-siteheader-types.js} +0 -0
  34. package/collection/components/layout-components/{pn-siteheader/pn-siteheader.css → pn-marketweb-siteheader/pn-marketweb-siteheader.css} +21 -21
  35. package/collection/components/layout-components/{pn-siteheader/pn-siteheader.js → pn-marketweb-siteheader/pn-marketweb-siteheader.js} +7 -7
  36. package/collection/components/layout-components/{pn-siteheader/pn-siteheader.stories.js → pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js} +2 -2
  37. package/collection/components/layout-components/pn-marketweb-siteheader/translations.js +47 -0
  38. package/collection/components/navigation/pn-language-selector/language-selector.stories.js +43 -0
  39. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.css +74 -0
  40. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +148 -0
  41. package/collection/components/navigation/pn-language-selector/pn-language-selector-types.js +1 -0
  42. package/collection/components/navigation/pn-language-selector/pn-language-selector.css +32 -0
  43. package/collection/components/navigation/pn-language-selector/pn-language-selector.js +92 -0
  44. package/collection/components/navigation/pn-language-selector/translations.js +17 -0
  45. package/collection/components/navigation/pn-mainnav/main-nav.stories.js +92 -0
  46. package/collection/components/navigation/pn-mainnav/pn-main-nav-mockdata.js +5851 -0
  47. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.css +139 -0
  48. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +93 -0
  49. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.css +221 -0
  50. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +126 -0
  51. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.css +51 -0
  52. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +46 -0
  53. package/collection/components/navigation/pn-mainnav/pn-mainnav-store.js +14 -0
  54. package/collection/components/navigation/pn-mainnav/pn-mainnav.css +100 -0
  55. package/collection/components/navigation/pn-mainnav/pn-mainnav.js +200 -0
  56. package/collection/components/navigation/pn-mainnav/translations.js +32 -0
  57. package/collection/components/navigation/pn-mainnav/types.js +1 -0
  58. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.css +20 -0
  59. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +14 -0
  60. package/collection/components/navigation/pn-site-footer/pn-site-footer.css +72 -0
  61. package/collection/components/navigation/pn-site-footer/pn-site-footer.js +50 -0
  62. package/collection/components/navigation/pn-site-footer/site-footer.stories.js +87 -0
  63. package/collection/components/navigation/pn-site-selector/pn-site-selector-i18n.js +18 -0
  64. package/collection/components/navigation/pn-site-selector/pn-site-selector-item.css +62 -0
  65. package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +103 -0
  66. package/collection/components/navigation/pn-site-selector/pn-site-selector-types.js +1 -0
  67. package/collection/components/navigation/pn-site-selector/pn-site-selector.css +29 -0
  68. package/collection/components/navigation/pn-site-selector/pn-site-selector.js +96 -0
  69. package/collection/components/navigation/pn-site-selector/site-selector.stories.js +35 -0
  70. package/collection/components/widgets/pn-find-service-and-price/data.js +53 -0
  71. package/collection/components/widgets/pn-find-service-and-price/find-service-and-price.stories.js +27 -0
  72. package/collection/components/widgets/pn-find-service-and-price/libs/convertnode.js +58 -0
  73. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.css +0 -0
  74. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +101 -0
  75. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-store.js +20 -0
  76. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-translations.js +71 -0
  77. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-types.js +1 -0
  78. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.css +56 -0
  79. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +236 -0
  80. package/collection/components/widgets/pn-find-service-and-price/runconvert.js +2 -0
  81. package/collection/components/widgets/pn-product-pricelist/data.js +53 -0
  82. package/collection/components/widgets/pn-product-pricelist/libs/convert.js +43 -0
  83. package/collection/components/widgets/pn-product-pricelist/libs/convertnode.js +58 -0
  84. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.css +0 -0
  85. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +101 -0
  86. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-store.js +17 -0
  87. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-translations.js +56 -0
  88. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-types.js +1 -0
  89. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +55 -0
  90. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +231 -0
  91. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +35 -0
  92. package/collection/components/widgets/pn-product-pricelist/runconvert.js +2 -0
  93. package/collection/components/widgets/pn-product-tile/pn-product-tile-info.css +3 -0
  94. package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +70 -0
  95. package/collection/components/widgets/pn-product-tile/pn-product-tile-price.css +23 -0
  96. package/collection/components/widgets/pn-product-tile/pn-product-tile-price.js +94 -0
  97. package/collection/components/widgets/pn-product-tile/pn-product-tile.css +48 -0
  98. package/collection/components/widgets/pn-product-tile/pn-product-tile.js +21 -0
  99. package/collection/components/widgets/pn-product-tile/product-tile.stories.js +50 -0
  100. package/collection/globals/shared/productprice/convert.js +43 -0
  101. package/collection/globals/shared/productprice/product-price-types.js +1 -0
  102. package/custom-elements/index.d.ts +126 -12
  103. package/custom-elements/index.js +3179 -24
  104. package/esm/convert-b49a0857.js +1728 -0
  105. package/esm/{index-1e3839a0.js → index-52dc19ca.js} +79 -1
  106. package/esm/index-7c277874.js +179 -0
  107. package/esm/loader.js +2 -2
  108. package/esm/pn-choice-button_2.entry.js +73 -0
  109. package/esm/pn-find-service-and-price-store-d02cbfe1.js +21 -0
  110. package/esm/pn-find-service-and-price.entry.js +259 -0
  111. package/esm/pn-language-selector_9.entry.js +634 -0
  112. package/esm/pn-mainnav-link.entry.js +41 -0
  113. package/esm/pn-mainnav-store-a0726338.js +15 -0
  114. package/esm/pn-market-web-components.js +2 -2
  115. package/esm/pn-marketweb-sitefooter.entry.js +141 -0
  116. package/esm/{pn-siteheader.entry.js → pn-marketweb-siteheader.entry.js} +8 -8
  117. package/esm/pn-product-pricelist-result.entry.js +41 -0
  118. package/esm/pn-product-pricelist-store-6259b354.js +18 -0
  119. package/esm/pn-product-pricelist.entry.js +215 -0
  120. package/esm/pn-product-tile_3.entry.js +43 -0
  121. package/esm/pn-site-footer_2.entry.js +31 -0
  122. package/esm-es5/convert-b49a0857.js +13 -0
  123. package/esm-es5/index-52dc19ca.js +1 -0
  124. package/esm-es5/index-7c277874.js +1 -0
  125. package/esm-es5/loader.js +1 -1
  126. package/esm-es5/pn-choice-button_2.entry.js +1 -0
  127. package/esm-es5/pn-find-service-and-price-store-d02cbfe1.js +1 -0
  128. package/esm-es5/pn-find-service-and-price.entry.js +1 -0
  129. package/esm-es5/pn-language-selector_9.entry.js +1 -0
  130. package/esm-es5/pn-mainnav-link.entry.js +1 -0
  131. package/esm-es5/pn-mainnav-store-a0726338.js +1 -0
  132. package/esm-es5/pn-market-web-components.js +1 -1
  133. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -0
  134. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -0
  135. package/esm-es5/pn-product-pricelist-result.entry.js +1 -0
  136. package/esm-es5/pn-product-pricelist-store-6259b354.js +1 -0
  137. package/esm-es5/pn-product-pricelist.entry.js +1 -0
  138. package/esm-es5/pn-product-tile_3.entry.js +1 -0
  139. package/esm-es5/pn-site-footer_2.entry.js +1 -0
  140. package/package.json +6 -3
  141. package/pn-market-web-components/p-05d06f7f.system.js +1 -0
  142. package/pn-market-web-components/p-0a756d7d.system.entry.js +1 -0
  143. package/pn-market-web-components/p-21e0e386.js +13 -0
  144. package/pn-market-web-components/p-27502f43.system.entry.js +1 -0
  145. package/pn-market-web-components/p-3ae134bf.system.entry.js +1 -0
  146. package/pn-market-web-components/p-3ae74105.system.entry.js +1 -0
  147. package/pn-market-web-components/p-43bb8707.system.js +1 -0
  148. package/pn-market-web-components/p-46018354.system.js +1 -0
  149. package/pn-market-web-components/p-4b4ee8d5.system.entry.js +1 -0
  150. package/pn-market-web-components/p-4bf9a9ff.js +1 -0
  151. package/pn-market-web-components/p-57a1db89.system.entry.js +1 -0
  152. package/pn-market-web-components/p-5f1ad0b7.entry.js +1 -0
  153. package/pn-market-web-components/p-62700d6e.system.js +1 -0
  154. package/pn-market-web-components/p-7331d3bb.system.js +1 -0
  155. package/pn-market-web-components/p-80fd4dd9.system.entry.js +1 -0
  156. package/pn-market-web-components/p-91624bd5.system.js +13 -0
  157. package/pn-market-web-components/p-926fc962.js +1 -0
  158. package/pn-market-web-components/p-986d3894.entry.js +1 -0
  159. package/pn-market-web-components/p-a04d0ba4.entry.js +1 -0
  160. package/pn-market-web-components/p-a5179982.system.entry.js +1 -0
  161. package/pn-market-web-components/p-af861bb5.js +1 -0
  162. package/pn-market-web-components/p-b129cc27.system.js +1 -0
  163. package/pn-market-web-components/p-b4904bdb.system.entry.js +1 -0
  164. package/pn-market-web-components/p-ba704cbf.entry.js +1 -0
  165. package/pn-market-web-components/p-ba8e9dfe.entry.js +1 -0
  166. package/pn-market-web-components/p-be245b29.entry.js +1 -0
  167. package/pn-market-web-components/p-bfc523fc.js +1 -0
  168. package/pn-market-web-components/p-ce136600.js +1 -0
  169. package/pn-market-web-components/p-d3590589.entry.js +1 -0
  170. package/pn-market-web-components/p-e367b055.system.entry.js +1 -0
  171. package/pn-market-web-components/p-e377410f.entry.js +1 -0
  172. package/pn-market-web-components/p-ec95bda3.entry.js +1 -0
  173. package/pn-market-web-components/p-fee1d1c9.entry.js +1 -0
  174. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  175. package/pn-market-web-components/pn-market-web-components.js +1 -1
  176. package/types/components/input/pn-choice-button/pn-choice-button.d.ts +20 -0
  177. package/types/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.d.ts +21 -0
  178. package/types/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.d.ts +23 -0
  179. package/types/components/layout-components/{pn-siteheader → pn-marketweb-sitefooter}/translations.d.ts +0 -0
  180. package/types/components/layout-components/{pn-siteheader/pn-siteheader-login.d.ts → pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts} +3 -3
  181. package/types/components/layout-components/{pn-siteheader/pn-siteheader-loginmanager.d.ts → pn-marketweb-siteheader/pn-marketweb-siteheader-loginmanager.d.ts} +0 -0
  182. package/types/components/layout-components/{pn-siteheader/pn-siteheader-search.d.ts → pn-marketweb-siteheader/pn-marketweb-siteheader-search.d.ts} +2 -2
  183. package/types/components/layout-components/{pn-siteheader/pn-siteheader-types.d.ts → pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts} +0 -0
  184. package/types/components/layout-components/{pn-siteheader/pn-siteheader.d.ts → pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts} +2 -2
  185. package/types/components/layout-components/pn-marketweb-siteheader/translations.d.ts +47 -0
  186. package/types/components/navigation/pn-language-selector/pn-language-selector-option.d.ts +12 -0
  187. package/types/components/navigation/pn-language-selector/pn-language-selector-types.d.ts +9 -0
  188. package/types/components/navigation/pn-language-selector/pn-language-selector.d.ts +15 -0
  189. package/types/components/navigation/pn-language-selector/translations.d.ts +17 -0
  190. package/types/components/navigation/pn-mainnav/pn-mainnav-level.d.ts +15 -0
  191. package/types/components/navigation/pn-mainnav/pn-mainnav-link.d.ts +19 -0
  192. package/types/components/navigation/pn-mainnav/pn-mainnav-list.d.ts +7 -0
  193. package/types/components/navigation/pn-mainnav/pn-mainnav-store.d.ts +21 -0
  194. package/types/components/navigation/pn-mainnav/pn-mainnav.d.ts +24 -0
  195. package/types/components/navigation/pn-mainnav/translations.d.ts +32 -0
  196. package/types/components/navigation/pn-mainnav/types.d.ts +6 -0
  197. package/types/components/navigation/pn-site-footer/pn-site-footer-col.d.ts +3 -0
  198. package/types/components/navigation/pn-site-footer/pn-site-footer.d.ts +6 -0
  199. package/types/components/navigation/pn-site-selector/pn-site-selector-item.d.ts +7 -0
  200. package/types/components/navigation/pn-site-selector/pn-site-selector-types.d.ts +3 -0
  201. package/types/components/navigation/pn-site-selector/pn-site-selector.d.ts +12 -0
  202. package/types/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.d.ts +9 -0
  203. package/types/components/widgets/pn-find-service-and-price/pn-find-service-and-price-store.d.ts +33 -0
  204. package/types/components/widgets/pn-find-service-and-price/pn-find-service-and-price-translations.d.ts +71 -0
  205. package/types/components/widgets/pn-find-service-and-price/pn-find-service-and-price-types.d.ts +29 -0
  206. package/types/components/widgets/pn-find-service-and-price/pn-find-service-and-price.d.ts +18 -0
  207. package/types/components/widgets/pn-product-pricelist/pn-product-pricelist-result.d.ts +9 -0
  208. package/types/components/widgets/pn-product-pricelist/pn-product-pricelist-store.d.ts +27 -0
  209. package/types/components/widgets/pn-product-pricelist/pn-product-pricelist-translations.d.ts +56 -0
  210. package/types/components/widgets/pn-product-pricelist/pn-product-pricelist-types.d.ts +16 -0
  211. package/types/components/widgets/pn-product-pricelist/pn-product-pricelist.d.ts +20 -0
  212. package/types/components/widgets/pn-product-tile/pn-product-tile-info.d.ts +6 -0
  213. package/types/components/widgets/pn-product-tile/pn-product-tile-price.d.ts +7 -0
  214. package/types/components/widgets/pn-product-tile/pn-product-tile.d.ts +3 -0
  215. package/types/components.d.ts +486 -28
  216. package/types/globals/shared/productprice/product-price-types.d.ts +19 -0
  217. package/cjs/pn-siteheader-login_2.cjs.entry.js +0 -295
  218. package/collection/components/layout-components/pn-siteheader/pn-siteheader-login.css +0 -34
  219. package/esm/pn-siteheader-login_2.entry.js +0 -290
  220. package/esm-es5/index-1e3839a0.js +0 -1
  221. package/esm-es5/pn-siteheader-login_2.entry.js +0 -1
  222. package/esm-es5/pn-siteheader.entry.js +0 -1
  223. package/pn-market-web-components/p-0e743863.system.js +0 -1
  224. package/pn-market-web-components/p-1e159db8.js +0 -1
  225. package/pn-market-web-components/p-2e901469.system.entry.js +0 -1
  226. package/pn-market-web-components/p-4d08fcb9.entry.js +0 -1
  227. package/pn-market-web-components/p-530b52d0.system.js +0 -1
  228. package/pn-market-web-components/p-9a654a14.system.entry.js +0 -1
  229. package/pn-market-web-components/p-a1045531.entry.js +0 -1
@@ -0,0 +1,236 @@
1
+ import { Component, h, Prop, State, Watch } from "@stencil/core";
2
+ import { translations, markets } from "./pn-find-service-and-price-translations";
3
+ import { postagetypes, weights, deliveryscopes } from "./data.js";
4
+ import { convertFileFromStream } from "../../../globals/shared/productprice/convert.js";
5
+ import { state } from "./pn-find-service-and-price-store";
6
+ export class PnfindServiceAndPrice {
7
+ constructor() {
8
+ this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
9
+ this.language = "sv";
10
+ this.market = "se";
11
+ this.filteredItems = [];
12
+ this.postagetype = { value: "", name: "", icon: "" };
13
+ this.weight = { value: 0, name: "" };
14
+ this.weightvalue = 0;
15
+ this.deliveryscope = { value: "", name: "", icon: "" };
16
+ this.sourceData = { types: [], data: [] };
17
+ }
18
+ componentWillLoad() {
19
+ this.setState();
20
+ this.getDataSource();
21
+ // window.setTimeout(() => {
22
+ // this.postagetype = postagetypes[0];
23
+ // this.deliveryscope = deliveryscopes[this.postagetype.value][0];
24
+ // this.weight = weights[this.postagetype.value][0];
25
+ // this.weightvalue = this.weight.value;
26
+ // }, 500)
27
+ }
28
+ async getDataSource() {
29
+ const cacheBusting = `?cache=${Math.floor(Math.random() * (10000 - 1) + 1)}`;
30
+ const req = await fetch(this.source + cacheBusting);
31
+ const reqbody = await req.blob();
32
+ try {
33
+ const convertedData = await convertFileFromStream(reqbody);
34
+ this.sourceData = convertedData;
35
+ this.filterItems();
36
+ }
37
+ catch (e) {
38
+ console.log('Unable to parse data');
39
+ }
40
+ }
41
+ setState() {
42
+ if (this.market) {
43
+ state.market = markets[this.market];
44
+ }
45
+ if (this.language && translations[this.language]) {
46
+ state.i18n = translations[this.language];
47
+ }
48
+ }
49
+ filterItems() {
50
+ var _a;
51
+ // this.debug = `Postagetype: ${this.postagetype.value}. <br/>Weight: ${ this.weight.value }`;
52
+ if (!((_a = this.sourceData) === null || _a === void 0 ? void 0 : _a.data)) {
53
+ console.log('Data has not yet been loaded');
54
+ return;
55
+ }
56
+ if (!this.postagetype) {
57
+ return;
58
+ }
59
+ const typeData = this.sourceData.data.filter((x) => x.what === this.postagetype.value);
60
+ if (!this.deliveryscope) {
61
+ return;
62
+ }
63
+ const deliveryScopeData = typeData.filter((x) => x.deliveryscope === this.deliveryscope.value);
64
+ if (!this.weight || !this.weight.value) {
65
+ return;
66
+ }
67
+ // For letters we use grams. Otherwise we use KG
68
+ const comparisonWeight = (this.weight.abbreviation.toLocaleLowerCase() === "kg" && this.postagetype.value === 'letter') ? this.weight.value * 1000 : this.weight.value;
69
+ let weightFilteredData = deliveryScopeData.filter(x => x.maxweight === comparisonWeight);
70
+ // In parcels the maxwidths don't necessarily start at 1kg so we fetch any type below the user selected value
71
+ if (weightFilteredData.length === 0) {
72
+ weightFilteredData = deliveryScopeData.filter(x => x.maxweight >= comparisonWeight);
73
+ if (weightFilteredData.length > 0) {
74
+ // We reverse the result array since the map will take the last unique item instead of the first
75
+ const uniqueWeightOptions = [...new Map(weightFilteredData.reverse().map(item => [item["id"], item])).values()];
76
+ if (uniqueWeightOptions.length > 0) {
77
+ weightFilteredData = uniqueWeightOptions;
78
+ }
79
+ }
80
+ }
81
+ console.log('weightFilteredData', weightFilteredData);
82
+ this.filteredItems = weightFilteredData;
83
+ }
84
+ render() {
85
+ return (h("div", null,
86
+ h("div", { class: "findprice-form" },
87
+ (state.i18n.componentheading) ? (h("h2", null, state.i18n.componentheading)) : null,
88
+ h("div", { class: "postagetypes" }, postagetypes.map((postagetype) => (h("pn-choice-button", { choiceid: postagetype.value, value: postagetype.value, name: "postagetype", type: "radio", checked: postagetype.value === this.postagetype.value, onChange: () => {
89
+ this.postagetype = postagetypes.filter(x => x.value === postagetype.value)[0];
90
+ this.deliveryscope = { value: "", name: "", icon: "" };
91
+ this.weight = { value: 0, name: "" };
92
+ this.weightvalue = this.weight.value;
93
+ } },
94
+ h("pn-illustration", { illustration: postagetype.illustration }),
95
+ " ",
96
+ postagetype.name)))),
97
+ this.postagetype.value && deliveryscopes[this.postagetype.value] ? (h("div", null,
98
+ (state.i18n.deliveryscopeheading) ? (h("div", { class: "heading" }, state.i18n.deliveryscopeheading)) : null,
99
+ h("div", { class: "deliveryscope" }, deliveryscopes[this.postagetype.value].map((deliveryscope) => (h("pn-choice-button", { choiceid: this.postagetype.value + deliveryscope.value, value: deliveryscope.value, name: "deliveryscope", type: "radio", checked: deliveryscope.value === this.deliveryscope.value, onChange: () => {
100
+ this.deliveryscope = deliveryscopes[this.postagetype.value].filter(x => x.value === deliveryscope.value)[0];
101
+ if (this.weight.value === 0) {
102
+ this.weight = weights[this.postagetype.value][0];
103
+ this.weightvalue = this.weight.value;
104
+ }
105
+ } },
106
+ h("pn-illustration", { illustration: deliveryscope.illustration }),
107
+ " ",
108
+ deliveryscope.name)))))) : null,
109
+ (this.postagetype.value && weights[this.postagetype.value] && this.deliveryscope.value) ? (h("div", null,
110
+ (state.i18n.sizeheading) ? (h("div", { class: "heading" }, state.i18n.sizeheading)) : null,
111
+ h("div", { class: "weightoption" },
112
+ h("div", { class: "weightoption-input" },
113
+ h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: state.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
114
+ if (e && e.target && e.target.value) {
115
+ const weightNum = parseInt(e.target.value, 10);
116
+ if (!isNaN(weightNum)) {
117
+ let matchingWeights = weights[this.postagetype.value].filter((x) => {
118
+ let weightInGrams = (x.abbreviation === "kg") ? x.value * 1000 : x.value;
119
+ return weightInGrams >= weightNum;
120
+ });
121
+ if (matchingWeights && matchingWeights.length > 0) {
122
+ this.weight = matchingWeights[0];
123
+ this.weightvalue = this.weight.value;
124
+ }
125
+ }
126
+ }
127
+ } }),
128
+ h("span", { class: "weightoption-input-abbreviation" }, this.weight.abbreviation)),
129
+ h("div", { class: "weightoption-range" },
130
+ h("input", { type: "range", id: "weightrange", name: "weightrange", list: "weightlist", value: (!this.weight.value) ? 0 : weights[this.postagetype.value].findIndex((x) => x.value === this.weightvalue), onChange: (e) => {
131
+ const value = e.target.value;
132
+ this.weight = weights[this.postagetype.value][value];
133
+ this.weightvalue = this.weight.value;
134
+ }, min: "0",
135
+ // max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }
136
+ max: weights[this.postagetype.value].length - 1 }),
137
+ h("datalist", { id: "weightlist" }, weights[this.postagetype.value].map((weight, weightindex) => {
138
+ let labelText = weight.name;
139
+ if (weights[this.postagetype.value].length > 6) {
140
+ labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.postagetype.value].length - 1) ? weight.name : '';
141
+ }
142
+ return (h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
143
+ })))))) : null),
144
+ (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" },
145
+ (state.i18n.resultlistheading) ? (h("div", { class: "heading" }, state.i18n.resultlistheading)) : null,
146
+ this.filteredItems.map((item) => (h("div", null,
147
+ h("pn-find-service-and-price-result", { item: item })))))) : null));
148
+ }
149
+ static get is() { return "pn-find-service-and-price"; }
150
+ static get originalStyleUrls() { return {
151
+ "$": ["pn-find-service-and-price.scss"]
152
+ }; }
153
+ static get styleUrls() { return {
154
+ "$": ["pn-find-service-and-price.css"]
155
+ }; }
156
+ static get properties() { return {
157
+ "source": {
158
+ "type": "string",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "string",
162
+ "resolved": "string",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "attribute": "source",
172
+ "reflect": false,
173
+ "defaultValue": "\"https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx\""
174
+ },
175
+ "language": {
176
+ "type": "string",
177
+ "mutable": true,
178
+ "complexType": {
179
+ "original": "string",
180
+ "resolved": "string",
181
+ "references": {}
182
+ },
183
+ "required": false,
184
+ "optional": false,
185
+ "docs": {
186
+ "tags": [],
187
+ "text": ""
188
+ },
189
+ "attribute": "language",
190
+ "reflect": false,
191
+ "defaultValue": "\"sv\""
192
+ },
193
+ "market": {
194
+ "type": "string",
195
+ "mutable": true,
196
+ "complexType": {
197
+ "original": "string",
198
+ "resolved": "string",
199
+ "references": {}
200
+ },
201
+ "required": false,
202
+ "optional": false,
203
+ "docs": {
204
+ "tags": [],
205
+ "text": ""
206
+ },
207
+ "attribute": "market",
208
+ "reflect": false,
209
+ "defaultValue": "\"se\""
210
+ }
211
+ }; }
212
+ static get states() { return {
213
+ "filteredItems": {},
214
+ "postagetype": {},
215
+ "weight": {},
216
+ "weightvalue": {},
217
+ "deliveryscope": {},
218
+ "sourceData": {}
219
+ }; }
220
+ static get watchers() { return [{
221
+ "propName": "market",
222
+ "methodName": "setState"
223
+ }, {
224
+ "propName": "language",
225
+ "methodName": "setState"
226
+ }, {
227
+ "propName": "postagetype",
228
+ "methodName": "filterItems"
229
+ }, {
230
+ "propName": "deliveryscope",
231
+ "methodName": "filterItems"
232
+ }, {
233
+ "propName": "weightvalue",
234
+ "methodName": "filterItems"
235
+ }]; }
236
+ }
@@ -0,0 +1,2 @@
1
+ const convert = require("./libs/convertnode.js");
2
+ convert();
@@ -0,0 +1,53 @@
1
+ const postagetypes = [
2
+ { name: "Brev", value: "letter", illustration: "letterbox-reply-letter-plants" },
3
+ { name: "Paket", value: "parcel", illustration: "tracking" }
4
+ ];
5
+
6
+ const deliveryscopes = {
7
+ "letter": [
8
+ { name: "Sweden", value: "sweden", illustration: "letterboxes" },
9
+ { name: "Abroad", value: "abroad", illustration: "character-box-letters-globe" },
10
+
11
+ ],
12
+ "parcel": [
13
+ { name: "Sweden", value: "sweden", illustration: "letterboxes" },
14
+ { name: "Within Europe", value:"withineurope", illustration: "character-box-letters-globe" },
15
+ { name: "Outside Europe", value:"outsideeurope", illustration: "discover" },
16
+ ]
17
+ };
18
+
19
+ const weights = {
20
+ "letter": [
21
+ { name: "50g", abbreviation: 'g', value: 50 },
22
+ { name: "100g", abbreviation: 'g', value: 100 },
23
+ { name: "250g", abbreviation: 'g', value: 250 },
24
+ { name: "500g", abbreviation: 'g', value: 500 },
25
+ { name: "1kg", abbreviation: 'kg', value: 1 },
26
+ { name: "2kg", abbreviation: 'kg', value: 2 },
27
+ ],
28
+ "parcel": [
29
+ { name: "1kg", abbreviation: 'kg', value: 1 },
30
+ { name: "2kg", abbreviation: 'kg', value: 2 },
31
+ { name: "3kg", abbreviation: 'kg', value: 3 },
32
+ { name: "4kg", abbreviation: 'kg', value: 4 },
33
+ { name: "5kg", abbreviation: 'kg', value: 5 },
34
+ { name: "6kg", abbreviation: 'kg', value: 6 },
35
+ { name: "7Kg", abbreviation: 'kg', value: 7 },
36
+ { name: "8kg", abbreviation: 'kg', value: 8 },
37
+ { name: "9kg", abbreviation: 'kg', value: 9 },
38
+ { name: "10kg", abbreviation: 'kg', value: 10 },
39
+ { name: "11kg", abbreviation: 'kg', value: 11 },
40
+ { name: "12kg", abbreviation: 'kg', value: 12 },
41
+ { name: "13kg", abbreviation: 'kg', value: 13 },
42
+ { name: "14kg", abbreviation: 'kg', value: 14 },
43
+ { name: "15kg", abbreviation: 'kg', value: 15 },
44
+ { name: "16kg", abbreviation: 'kg', value: 16 },
45
+ { name: "17kg", abbreviation: 'kg', value: 17 },
46
+ { name: "18kg", abbreviation: 'kg', value: 18 },
47
+ { name: "20kg", abbreviation: 'kg', value: 20 },
48
+ ]
49
+ };
50
+
51
+
52
+
53
+ export { postagetypes, weights, deliveryscopes};
@@ -0,0 +1,43 @@
1
+ import readXlsxFile from 'read-excel-file';
2
+
3
+ async function convertFileFromStream(stream, filterColumnNames = ["what", "deliveryscope"]) {
4
+ const toFilterValue = (x) => x.toLowerCase().replace(/\s+/g, '');
5
+ const sheets = await readXlsxFile(stream, { getSheets: true })
6
+ let dataRows = [];
7
+ let sheetsData = await Promise.all(sheets.map(async (sheet) => { return await readXlsxFile(stream, { sheet: sheet.name }) }));
8
+
9
+ let types = {};
10
+ sheetsData.forEach(sheetData => {
11
+ const firstRow = sheetData.shift().map(x => toFilterValue(x));
12
+ // Set up column for adding options
13
+ firstRow.forEach((col, i) => {
14
+ if (typeof types[col] === "undefined" && filterColumnNames.includes(col)) {
15
+ types[col] = [];
16
+ }
17
+ });
18
+ sheetData.forEach((row, rowindex) => {
19
+ const dataRow = {};
20
+ firstRow.forEach(async (col, i) => {
21
+ const rowVal = row[i];
22
+ dataRow[col] = rowVal;
23
+ // Add to types options
24
+ if (filterColumnNames.includes(col)) {
25
+ const filterVal = toFilterValue(rowVal);
26
+ dataRow[col] = filterVal;
27
+ if (!types[col].includes(filterVal)) {
28
+ types[col].push(filterVal);
29
+ }
30
+ }
31
+ });
32
+ dataRows.push(dataRow);
33
+ });
34
+ });
35
+
36
+ const fileData = {
37
+ "types": types,
38
+ "data": dataRows
39
+ };
40
+ return fileData;
41
+ }
42
+
43
+ export { convertFileFromStream };
@@ -0,0 +1,58 @@
1
+ const fs = require("fs-extra");
2
+ const path = require("path");
3
+ const readXlsxFile = require('read-excel-file/node');
4
+
5
+ async function getFiles(dirpath = "./data") {
6
+ const allFiles = await fs.readdir(dirpath);
7
+ const xslxFiles = allFiles.filter(x => (x.indexOf('.xlsx') !== -1 && x.indexOf('~') !== 0));
8
+ return xslxFiles.map((file) => path.join(dirpath, file));
9
+ }
10
+
11
+ async function convertFile(filepath) {
12
+ const toFilterValue = (x) => x.toLowerCase().replace(/\s+/g, '');
13
+ const outputFilename = filepath.substring(0, filepath.lastIndexOf('.') + 1) + 'json';
14
+ console.log(`Reading file "${filepath}" and converting to "${outputFilename}"`);
15
+ const sheets = await readXlsxFile(filepath, { getSheets: true })
16
+ let dataRows = [];
17
+ let sheetsData = await Promise.all(sheets.map(async (sheet) => { return await readXlsxFile(filepath, { sheet: sheet.name }) })); //await readXlsxFile(filepath, { sheet: sheet.name });
18
+ const filterColumnNames = ["what", "deliveryscope"];
19
+ let types = {};
20
+ sheetsData.forEach(sheetData => {
21
+ const firstRow = sheetData.shift().map(x => toFilterValue(x));
22
+ // Set up column for adding options
23
+ firstRow.forEach(async (col, i) => {
24
+ if (typeof types[col] === "undefined" && filterColumnNames.includes(col)) {
25
+ types[col] = [];
26
+ }
27
+ });
28
+ sheetData.forEach((row, rowindex) => {
29
+ const dataRow = {};
30
+ firstRow.forEach(async (col, i) => {
31
+ const rowVal = row[i];
32
+ dataRow[col] = rowVal;
33
+ // Add to types options
34
+ if (filterColumnNames.includes(col)) {
35
+ const filterVal = toFilterValue(rowVal);
36
+ dataRow[col] = filterVal;
37
+ if (!types[col].includes(filterVal)) {
38
+ types[col].push(filterVal);
39
+ }
40
+ }
41
+ });
42
+ dataRows.push(dataRow);
43
+ });
44
+ });
45
+ const dataFile = filepath;
46
+ const fileData = {
47
+ "file": filepath,
48
+ "types": types,
49
+ "data": dataRows
50
+ };
51
+ console.log(`Stored ${dataRows.length} rows from ${sheetsData.length} sheets. ${Object.keys(types).length} filter types identified`)
52
+ fs.writeJsonSync(outputFilename, fileData)
53
+ }
54
+
55
+ async function convert(dirpath = "./data") {
56
+ const files = await getFiles(dirpath);
57
+ files.forEach(convertFile);
58
+ }
@@ -0,0 +1,101 @@
1
+ import { Component, h, Prop, Host, State, Watch } from "@stencil/core";
2
+ import { state } from "./pn-product-pricelist-store";
3
+ export class PnFindProductPricelistResult {
4
+ constructor() {
5
+ this.item = null;
6
+ this.shownitems = [];
7
+ this.weightText = "";
8
+ }
9
+ componentWillLoad() {
10
+ this.composeItems();
11
+ }
12
+ composeItems() {
13
+ this.shownitems = [];
14
+ if (this.item.pricestamps) {
15
+ this.shownitems.push(Object.assign(Object.assign({}, this.item), { priceagent: null, pricesenddirect: null }));
16
+ }
17
+ if (this.item.priceagent) {
18
+ this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, pricesenddirect: null }));
19
+ }
20
+ if (this.item.pricesenddirect) {
21
+ this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, priceagent: null }));
22
+ }
23
+ // Parcels are always in KG. Letter KG must be converted from grams
24
+ this.weightText = (this.item.what === "parcel") ? this.item.maxweight + 'kg' :
25
+ (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight / 1000) + " kg" : this.item.maxweight + " g";
26
+ }
27
+ render() {
28
+ return (h(Host, null, this.shownitems.map((item) => (h("pn-product-tile", null,
29
+ h("pn-illustration", { slot: "illustration", illustration: item.illustration }),
30
+ h("div", { slot: "content" },
31
+ h("div", { class: "content" },
32
+ h("h3", null, item.name),
33
+ (item.description) ? (h("div", { class: "description" }, item.description)) : null,
34
+ (item.info) ? (h("div", { class: "description" }, item.info)) : null)),
35
+ item.maxweight ? (h("pn-product-tile-info", { label: state.i18n.maxweightlabel, text: this.weightText })) : null,
36
+ item.maximummeasurements ? (h("pn-product-tile-info", { label: state.i18n.maxmeasurementlabel, text: item.maximummeasurements })) : null,
37
+ item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.stampshopcta, amount: item.pricestamps + '', currency: state.market.currency })) : null,
38
+ item.priceagent ? (h("pn-product-tile-price", { slot: "price", label: "", amount: item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null,
39
+ item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null,
40
+ item.note ? (h("small", { slot: "note" },
41
+ h("p", null, item.note))) : null)))));
42
+ }
43
+ static get is() { return "pn-product-pricelist-result"; }
44
+ static get originalStyleUrls() { return {
45
+ "$": ["pn-product-pricelist-result.scss"]
46
+ }; }
47
+ static get styleUrls() { return {
48
+ "$": ["pn-product-pricelist-result.css"]
49
+ }; }
50
+ static get properties() { return {
51
+ "item": {
52
+ "type": "unknown",
53
+ "mutable": true,
54
+ "complexType": {
55
+ "original": "ProductPriceItem",
56
+ "resolved": "ProductPriceItem",
57
+ "references": {
58
+ "ProductPriceItem": {
59
+ "location": "import",
60
+ "path": "../../../globals/shared/productprice/product-price-types"
61
+ }
62
+ }
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": ""
69
+ },
70
+ "defaultValue": "null"
71
+ },
72
+ "shownitems": {
73
+ "type": "unknown",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "ProductPriceItem[]",
77
+ "resolved": "ProductPriceItem[]",
78
+ "references": {
79
+ "ProductPriceItem": {
80
+ "location": "import",
81
+ "path": "../../../globals/shared/productprice/product-price-types"
82
+ }
83
+ }
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": ""
90
+ },
91
+ "defaultValue": "[]"
92
+ }
93
+ }; }
94
+ static get states() { return {
95
+ "weightText": {}
96
+ }; }
97
+ static get watchers() { return [{
98
+ "propName": "item",
99
+ "methodName": "composeItems"
100
+ }]; }
101
+ }
@@ -0,0 +1,17 @@
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
+ maxweightlabel: '',
6
+ weightlabel: '',
7
+ maxmeasurementlabel: '',
8
+ sizeheading: '',
9
+ senddirectcta: '',
10
+ stampshopcta: '',
11
+ },
12
+ market: {
13
+ currency: ""
14
+ }
15
+ });
16
+ export { state, onChange };
17
+ export default state;
@@ -0,0 +1,56 @@
1
+ export const translations = {
2
+ 'sv': {
3
+ 'maxweightlabel': 'Maxvikt',
4
+ 'weightlabel': 'Vikt',
5
+ 'maxmeasurementlabel': 'Maxvolym',
6
+ 'sizeheading': 'Hur mycket väger det?',
7
+ 'senddirectcta': 'Köp frakt via Skicka Direkt',
8
+ 'stampshopcta': 'Köp frimärken via vår webshop',
9
+ },
10
+ 'en': {
11
+ 'maxweightlabel': 'Max weight',
12
+ 'weightlabel': 'Weight',
13
+ 'maxmeasurementlabel': 'Maximum measurement',
14
+ 'sizeheading': 'How much does it weigh?',
15
+ 'senddirectcta': 'Buy shipping in Send Direct',
16
+ 'stampshopcta': 'Order home stamps from the webshop',
17
+ },
18
+ 'da': {
19
+ 'maxweightlabel': 'Max vægt',
20
+ 'weightlabel': 'Vægt',
21
+ 'maxmeasurementlabel': 'Maks. Volumen',
22
+ 'sizeheading': 'How much does it weigh?',
23
+ 'senddirectcta': 'Buy shipping in Send Direct',
24
+ 'stampshopcta': 'Order home stamps from the webshop',
25
+ },
26
+ 'no': {
27
+ 'maxweightlabel': 'Maks vekt',
28
+ 'weightlabel': 'Vekt',
29
+ 'maxmeasurementlabel': 'Maks volum',
30
+ 'sizeheading': 'How much does it weigh?',
31
+ 'senddirectcta': 'Buy shipping in Send Direct',
32
+ 'stampshopcta': 'Order home stamps from the webshop',
33
+ },
34
+ 'fi': {
35
+ 'maxweightlabel': 'Max paino',
36
+ 'weightlabel': 'Piano',
37
+ 'maxmeasurementlabel': 'Max äänenvoimakkuus',
38
+ 'sizeheading': 'How much does it weigh?',
39
+ 'senddirectcta': 'Buy shipping in Send Direct',
40
+ 'stampshopcta': 'Order home stamps from the webshop',
41
+ }
42
+ };
43
+ export const markets = {
44
+ 'se': {
45
+ "currency": "kr",
46
+ },
47
+ 'dk': {
48
+ "currency": "dk",
49
+ },
50
+ 'fi': {
51
+ "currency": " €",
52
+ },
53
+ 'no': {
54
+ "currency": "kr",
55
+ }
56
+ };
@@ -0,0 +1,55 @@
1
+ pn-product-pricelist pn-spinner {
2
+ margin: 1em auto;
3
+ }
4
+ pn-product-pricelist h2,
5
+ pn-product-pricelist .heading {
6
+ text-align: center;
7
+ font-size: 1.5em;
8
+ line-height: 1.1;
9
+ font-weight: bold;
10
+ margin-bottom: 1rem;
11
+ }
12
+ pn-product-pricelist .content,
13
+ pn-product-pricelist .weightselection {
14
+ max-width: 50em;
15
+ margin: 0 auto 1em;
16
+ }
17
+ pn-product-pricelist .weightoption {
18
+ display: flex;
19
+ gap: 1em;
20
+ }
21
+ pn-product-pricelist .weightoption-input {
22
+ width: 5em;
23
+ position: relative;
24
+ }
25
+ pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,
26
+ pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button {
27
+ -webkit-appearance: none;
28
+ margin: 0;
29
+ }
30
+ pn-product-pricelist .weightoption-input-abbreviation {
31
+ position: absolute;
32
+ top: 50%;
33
+ transform: translateY(-50%);
34
+ right: 1.2em;
35
+ margin-top: 1.55rem;
36
+ font-weight: 500;
37
+ }
38
+ pn-product-pricelist .weightoption-range {
39
+ flex-grow: 1;
40
+ align-self: flex-end;
41
+ position: relative;
42
+ top: 0.5em;
43
+ }
44
+ pn-product-pricelist .weightoption-range input {
45
+ width: calc(100% - 1.5em);
46
+ }
47
+ pn-product-pricelist .weightoption-range datalist {
48
+ width: 100%;
49
+ display: flex;
50
+ justify-content: space-between;
51
+ font-size: 0.75em;
52
+ }
53
+ pn-product-pricelist .resultlist:not([data-list-count="0"]) {
54
+ margin-top: 2em;
55
+ }