@postnord/pn-marketweb-components 1.0.49-beta4 → 2.0.1

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 (237) hide show
  1. package/cjs/{index-9027dc96.js → index-28bbc937.js} +1 -1
  2. package/cjs/{index-0a6b1eef.js → index-e3e27c79.js} +6 -0
  3. package/cjs/loader.cjs.js +2 -2
  4. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  5. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  6. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  7. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  8. package/cjs/pn-find-price-result.cjs.entry.js +5 -5
  9. package/cjs/{pn-find-price-store-f9766c41.js → pn-find-price-store-6aab7fd0.js} +1 -2
  10. package/cjs/pn-find-price.cjs.entry.js +9 -12
  11. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  12. package/cjs/{pn-find-service-and-price-store-914d170b.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
  13. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  14. package/cjs/pn-language-selector_9.cjs.entry.js +65 -5
  15. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  16. package/cjs/{pn-mainnav-store-f8bacb50.js → pn-mainnav-store-61a75ea0.js} +1 -1
  17. package/cjs/pn-market-web-components.cjs.js +2 -2
  18. package/cjs/pn-marketweb-input.cjs.entry.js +76 -0
  19. package/cjs/pn-marketweb-search.cjs.entry.js +103 -0
  20. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  21. package/cjs/pn-marketweb-siteheader.cjs.entry.js +6 -4
  22. package/cjs/pn-pex-pricefinder.cjs.entry.js +11 -3
  23. package/cjs/pn-product-card_3.cjs.entry.js +9 -9
  24. package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
  25. package/cjs/{pn-product-pricelist-store-d101b50e.js → pn-product-pricelist-store-86310b5a.js} +1 -1
  26. package/cjs/pn-product-pricelist.cjs.entry.js +4 -4
  27. package/cjs/pn-product-tile_3.cjs.entry.js +1 -1
  28. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  29. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  30. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  31. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  32. package/cjs/{pn-sidenav-store-eed02285.js → pn-sidenav-store-d9bd9e00.js} +1 -1
  33. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  34. package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
  35. package/collection/collection-manifest.json +2 -1
  36. package/collection/components/input/pn-marketweb-input/marketweb-input.stories.js +51 -0
  37. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +156 -0
  38. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +412 -0
  39. package/collection/components/input/{pn-filter-search/search-field.stories.js → pn-marketweb-search/marketweb-search-field.stories.js} +15 -3
  40. package/collection/components/input/{pn-filter-search/pn-filter-search.css → pn-marketweb-search/pn-marketweb-search.css} +22 -17
  41. package/collection/components/input/{pn-filter-search/pn-filter-search.js → pn-marketweb-search/pn-marketweb-search.js} +67 -9
  42. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search-store.js +9 -0
  43. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +79 -3
  44. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +23 -3
  45. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +3 -3
  46. package/collection/components/widgets/pn-find-price/img/clouds.svg +5 -0
  47. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +2 -2
  48. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +0 -1
  49. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +1 -6
  50. package/collection/components/widgets/pn-find-price/pn-find-price.css +14 -4
  51. package/collection/components/widgets/pn-find-price/pn-find-price.js +4 -3
  52. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +10 -2
  53. package/collection/components/widgets/pn-product-card/pn-product-card-info.css +6 -7
  54. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +2 -3
  55. package/collection/components/widgets/pn-product-card/pn-product-card-price.css +22 -5
  56. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +1 -1
  57. package/collection/components/widgets/pn-product-card/pn-product-card.css +88 -30
  58. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
  59. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +1 -0
  60. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +1 -1
  61. package/custom-elements/index.d.ts +12 -6
  62. package/custom-elements/index.js +298 -126
  63. package/esm/{index-70b099b5.js → index-5397620b.js} +7 -1
  64. package/esm/{index-d3007e8f.js → index-7b21ecff.js} +1 -1
  65. package/esm/loader.js +2 -2
  66. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  67. package/esm/pn-bonus-progressbar.entry.js +1 -1
  68. package/esm/pn-choice-button.entry.js +1 -1
  69. package/esm/pn-filter-checkbox.entry.js +1 -1
  70. package/esm/pn-find-price-result.entry.js +5 -5
  71. package/esm/{pn-find-price-store-ddd3f427.js → pn-find-price-store-3301df0a.js} +1 -2
  72. package/esm/pn-find-price.entry.js +9 -12
  73. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  74. package/esm/{pn-find-service-and-price-store-012f2e49.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  75. package/esm/pn-find-service-and-price.entry.js +3 -3
  76. package/esm/pn-language-selector_9.entry.js +79 -19
  77. package/esm/pn-mainnav-link.entry.js +3 -3
  78. package/esm/{pn-mainnav-store-395ee066.js → pn-mainnav-store-28571e54.js} +1 -1
  79. package/esm/pn-market-web-components.js +2 -2
  80. package/esm/pn-marketweb-input.entry.js +72 -0
  81. package/esm/pn-marketweb-search.entry.js +99 -0
  82. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  83. package/esm/pn-marketweb-siteheader.entry.js +6 -4
  84. package/esm/pn-pex-pricefinder.entry.js +11 -3
  85. package/esm/pn-product-card_3.entry.js +9 -9
  86. package/esm/pn-product-pricelist-result.entry.js +3 -3
  87. package/esm/{pn-product-pricelist-store-909c5238.js → pn-product-pricelist-store-2c336043.js} +1 -1
  88. package/esm/pn-product-pricelist.entry.js +4 -4
  89. package/esm/pn-product-tile_3.entry.js +1 -1
  90. package/esm/pn-profile-selector-option.entry.js +1 -1
  91. package/esm/pn-profile-selector.entry.js +1 -1
  92. package/esm/pn-sidenav-level.entry.js +3 -3
  93. package/esm/pn-sidenav-link.entry.js +3 -3
  94. package/esm/{pn-sidenav-store-f0db4a1f.js → pn-sidenav-store-50b186d6.js} +1 -1
  95. package/esm/pn-sidenav.entry.js +3 -3
  96. package/esm/pn-site-footer_2.entry.js +1 -1
  97. package/esm-es5/{index-70b099b5.js → index-5397620b.js} +1 -1
  98. package/esm-es5/{index-d3007e8f.js → index-7b21ecff.js} +1 -1
  99. package/esm-es5/loader.js +1 -1
  100. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  101. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  102. package/esm-es5/pn-choice-button.entry.js +1 -1
  103. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  104. package/esm-es5/pn-find-price-result.entry.js +1 -1
  105. package/esm-es5/pn-find-price-store-3301df0a.js +1 -0
  106. package/esm-es5/pn-find-price.entry.js +1 -1
  107. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  108. package/esm-es5/{pn-find-service-and-price-store-012f2e49.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
  109. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  110. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  111. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  112. package/esm-es5/{pn-mainnav-store-395ee066.js → pn-mainnav-store-28571e54.js} +1 -1
  113. package/esm-es5/pn-market-web-components.js +1 -1
  114. package/esm-es5/pn-marketweb-input.entry.js +1 -0
  115. package/esm-es5/pn-marketweb-search.entry.js +1 -0
  116. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  117. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  118. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  119. package/esm-es5/pn-product-card_3.entry.js +1 -1
  120. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  121. package/esm-es5/{pn-product-pricelist-store-909c5238.js → pn-product-pricelist-store-2c336043.js} +1 -1
  122. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  123. package/esm-es5/pn-product-tile_3.entry.js +1 -1
  124. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  125. package/esm-es5/pn-profile-selector.entry.js +1 -1
  126. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  127. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  128. package/esm-es5/{pn-sidenav-store-f0db4a1f.js → pn-sidenav-store-50b186d6.js} +1 -1
  129. package/esm-es5/pn-sidenav.entry.js +1 -1
  130. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  131. package/package.json +1 -1
  132. package/pn-market-web-components/{p-b49c9d34.system.entry.js → p-01fbbbbc.system.entry.js} +1 -1
  133. package/pn-market-web-components/{p-7ce21cb3.system.js → p-02ea55ad.system.js} +1 -1
  134. package/pn-market-web-components/{p-71a31b15.entry.js → p-045a349a.entry.js} +1 -1
  135. package/pn-market-web-components/p-07cc9f6b.system.entry.js +1 -0
  136. package/pn-market-web-components/{p-24df62a2.js → p-0cacf9fb.js} +1 -1
  137. package/pn-market-web-components/{p-d26967cb.entry.js → p-10b95894.entry.js} +1 -1
  138. package/pn-market-web-components/p-13eb4c66.system.entry.js +1 -0
  139. package/pn-market-web-components/{p-9aac6bd5.entry.js → p-15112837.entry.js} +1 -1
  140. package/pn-market-web-components/{p-69b751a8.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
  141. package/pn-market-web-components/{p-d546d0c3.entry.js → p-227e1d46.entry.js} +1 -1
  142. package/pn-market-web-components/{p-39760c45.system.entry.js → p-2718b89a.system.entry.js} +1 -1
  143. package/pn-market-web-components/{p-702f06b7.system.entry.js → p-2870b0c5.system.entry.js} +1 -1
  144. package/pn-market-web-components/p-36654f2a.system.js +1 -0
  145. package/pn-market-web-components/p-3971ddb9.system.js +1 -0
  146. package/pn-market-web-components/{p-5d34bb8f.system.entry.js → p-401b57b1.system.entry.js} +1 -1
  147. package/pn-market-web-components/{p-7598c3ac.entry.js → p-40264b65.entry.js} +1 -1
  148. package/pn-market-web-components/{p-aea09ac6.entry.js → p-51df9292.entry.js} +1 -1
  149. package/pn-market-web-components/{p-a439468a.system.entry.js → p-57cc0679.system.entry.js} +1 -1
  150. package/pn-market-web-components/p-58e8d7d5.js +1 -0
  151. package/pn-market-web-components/{p-3ba257c5.entry.js → p-5c41acb2.entry.js} +1 -1
  152. package/pn-market-web-components/p-5d587499.js +1 -0
  153. package/pn-market-web-components/p-5e78891a.entry.js +1 -0
  154. package/pn-market-web-components/{p-42da096a.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
  155. package/pn-market-web-components/p-67887512.system.js +1 -0
  156. package/pn-market-web-components/{p-544f8fb9.entry.js → p-715d1ef7.entry.js} +1 -1
  157. package/pn-market-web-components/p-72195bd8.entry.js +1 -0
  158. package/pn-market-web-components/{p-4d5aa13e.entry.js → p-774b7a9f.entry.js} +1 -1
  159. package/pn-market-web-components/{p-802afa1f.system.entry.js → p-7b93d570.system.entry.js} +1 -1
  160. package/pn-market-web-components/{p-56ba3951.entry.js → p-7d75ea68.entry.js} +1 -1
  161. package/pn-market-web-components/p-7e494e9d.system.entry.js +1 -0
  162. package/pn-market-web-components/p-80dce81e.system.entry.js +1 -0
  163. package/pn-market-web-components/{p-acd9d186.system.entry.js → p-8144bcbc.system.entry.js} +1 -1
  164. package/pn-market-web-components/{p-ac5a749b.entry.js → p-81d764a0.entry.js} +1 -1
  165. package/pn-market-web-components/p-825b8fb8.system.js +1 -0
  166. package/pn-market-web-components/{p-99e471b8.js → p-84699999.js} +1 -1
  167. package/pn-market-web-components/{p-ab699e09.entry.js → p-86b271f4.entry.js} +1 -1
  168. package/pn-market-web-components/p-86f06e26.js +1 -0
  169. package/pn-market-web-components/{p-38e0dc75.system.entry.js → p-885bc8d7.system.entry.js} +1 -1
  170. package/pn-market-web-components/p-8fc7732d.system.entry.js +1 -0
  171. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  172. package/pn-market-web-components/p-9e8c5793.system.entry.js +1 -0
  173. package/pn-market-web-components/p-9edaf6b6.system.entry.js +1 -0
  174. package/pn-market-web-components/p-a5bc1695.system.js +1 -0
  175. package/pn-market-web-components/{p-b4f843da.system.js → p-a5f75560.system.js} +1 -1
  176. package/pn-market-web-components/{p-8897e421.entry.js → p-adc639c8.entry.js} +1 -1
  177. package/pn-market-web-components/{p-6fea1ae6.system.js → p-add7d76c.system.js} +1 -1
  178. package/pn-market-web-components/{p-9ae8e043.js → p-ae2bd55f.js} +1 -1
  179. package/pn-market-web-components/{p-2c361d9e.system.entry.js → p-aeb26d10.system.entry.js} +1 -1
  180. package/pn-market-web-components/{p-3552ae09.entry.js → p-b4f0228c.entry.js} +1 -1
  181. package/pn-market-web-components/p-bb626ab4.js +1 -0
  182. package/pn-market-web-components/p-c0c52dc6.entry.js +1 -0
  183. package/pn-market-web-components/{p-8325d608.entry.js → p-c240b614.entry.js} +1 -1
  184. package/pn-market-web-components/p-c34db063.entry.js +1 -0
  185. package/pn-market-web-components/{p-da2fa398.system.entry.js → p-c418bb48.system.entry.js} +1 -1
  186. package/pn-market-web-components/{p-3f8b459a.system.entry.js → p-d46d9b6e.system.entry.js} +1 -1
  187. package/pn-market-web-components/{p-0b796318.system.entry.js → p-d7776336.system.entry.js} +1 -1
  188. package/pn-market-web-components/{p-7fca7510.entry.js → p-e056d2c6.entry.js} +1 -1
  189. package/pn-market-web-components/p-e474b831.entry.js +1 -0
  190. package/pn-market-web-components/p-e5fffc92.entry.js +1 -0
  191. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  192. package/pn-market-web-components/p-f4cb2104.system.entry.js +1 -0
  193. package/pn-market-web-components/{p-00d6033e.entry.js → p-f774e2cc.entry.js} +1 -1
  194. package/pn-market-web-components/{p-4f0f8e9f.system.entry.js → p-f7b013a7.system.entry.js} +1 -1
  195. package/pn-market-web-components/{p-2b120338.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
  196. package/pn-market-web-components/p-fc6a09e0.system.entry.js +1 -0
  197. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  198. package/pn-market-web-components/pn-market-web-components.js +1 -1
  199. package/types/components/input/pn-marketweb-input/pn-marketweb-input.d.ts +32 -0
  200. package/types/components/input/{pn-filter-search/pn-filter-search.d.ts → pn-marketweb-search/pn-marketweb-search.d.ts} +9 -1
  201. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search-store.d.ts +11 -0
  202. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.d.ts +6 -0
  203. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +1 -0
  204. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +2 -0
  205. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +0 -2
  206. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +0 -5
  207. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +0 -1
  208. package/types/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.d.ts +1 -0
  209. package/types/components.d.ts +156 -65
  210. package/cjs/pn-filter-search.cjs.entry.js +0 -69
  211. package/esm/pn-filter-search.entry.js +0 -65
  212. package/esm-es5/pn-filter-search.entry.js +0 -1
  213. package/esm-es5/pn-find-price-store-ddd3f427.js +0 -1
  214. package/pn-market-web-components/p-15836764.js +0 -1
  215. package/pn-market-web-components/p-1ccd3831.entry.js +0 -1
  216. package/pn-market-web-components/p-208a0a7b.entry.js +0 -1
  217. package/pn-market-web-components/p-28316927.js +0 -1
  218. package/pn-market-web-components/p-39ecfda9.system.entry.js +0 -1
  219. package/pn-market-web-components/p-39ff2013.system.entry.js +0 -1
  220. package/pn-market-web-components/p-4c9b1ae9.system.js +0 -1
  221. package/pn-market-web-components/p-4f8537fb.system.js +0 -1
  222. package/pn-market-web-components/p-58623439.entry.js +0 -1
  223. package/pn-market-web-components/p-66fb0f57.entry.js +0 -1
  224. package/pn-market-web-components/p-6df0b06e.entry.js +0 -1
  225. package/pn-market-web-components/p-731efb7b.system.entry.js +0 -1
  226. package/pn-market-web-components/p-7a7f380b.system.js +0 -1
  227. package/pn-market-web-components/p-87a4810e.system.entry.js +0 -1
  228. package/pn-market-web-components/p-ad5b20ce.js +0 -1
  229. package/pn-market-web-components/p-b4a0e5fd.system.entry.js +0 -1
  230. package/pn-market-web-components/p-b4b6ab95.system.js +0 -1
  231. package/pn-market-web-components/p-cf516409.js +0 -1
  232. package/pn-market-web-components/p-cfa3be4a.entry.js +0 -1
  233. package/pn-market-web-components/p-dc48d8f8.system.entry.js +0 -1
  234. package/pn-market-web-components/p-e732c60a.system.entry.js +0 -1
  235. package/pn-market-web-components/p-fbdc9ea5.system.entry.js +0 -1
  236. package/pn-market-web-components/p-fdad9fb6.entry.js +0 -1
  237. package/pn-market-web-components/p-ff678bef.system.js +0 -1
@@ -1,4 +1,4 @@
1
- import { HTMLElement, h, Host, createEvent, getRenderingRef, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
1
+ import { HTMLElement, h, Host, getRenderingRef, forceUpdate, createEvent, proxyCustomElement } from '@stencil/core/internal/client';
2
2
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
3
3
 
4
4
  const pnBonusProgressbarCss = "pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-top-percentage{margin-left:auto;padding:0.5em}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";
@@ -217,75 +217,10 @@ let PnFilterCheckbox$1 = class extends HTMLElement {
217
217
  static get style() { return pnFilterCheckboxCss; }
218
218
  };
219
219
 
220
- const pnFilterSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;border:none;color:#005D92;padding:0.3rem;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;background:#8EDDF9}:host>.input-container button:hover{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host.searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host.searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none input,:host.button-icon-inline input{padding-right:3.3em}:host.button-none pn-spinner,:host.button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host.button-none button.search,:host.button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.loading button,:host.button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-none.loading pn-spinner,:host.button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
221
-
222
- let PnFilterSearch$1 = class extends HTMLElement {
223
- constructor() {
224
- super();
225
- this.__registerHost();
226
- this.__attachShadow();
227
- this.search = createEvent(this, "search", 7);
228
- this.update = createEvent(this, "update", 7);
229
- this.disabled = false;
230
- this.placeholder = null;
231
- this.inputid = null;
232
- this.name = null;
233
- this.autocomplete = null;
234
- this.value = null;
235
- /** Label for the button */
236
- this.label = null;
237
- /** Loading animation */
238
- this.loading = false;
239
- /** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
240
- this.button = '';
241
- /** Light instead of dark search button */
242
- this.light = false;
243
- }
244
- inputHandler() {
245
- this.update.emit(this.value);
246
- }
247
- emitSearch(e) {
248
- if (e.type === 'click' ||
249
- (e.type === 'keydown' && e.key === 'Enter')) {
250
- // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
251
- e.preventDefault();
252
- this.search.emit(this.value);
253
- }
254
- }
255
- setVal(e) {
256
- this.value = e.target.value;
257
- }
258
- clearInput() {
259
- this.value = '';
260
- this.update.emit(this.value);
261
- this.hostElement.querySelector('input').focus();
262
- }
263
- getClassNames() {
264
- let classNames = '';
265
- const buttonTypes = ['none', 'icon', 'icon-inline'];
266
- if (this.value)
267
- classNames += 'searching ';
268
- if (this.loading)
269
- classNames += 'loading ';
270
- if (buttonTypes.includes(this.button))
271
- classNames += `button-${this.button} `;
272
- return classNames;
273
- }
274
- render() {
275
- return (h(Host, { class: this.getClassNames() }, h("div", { class: "input-container" }, h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
276
- h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
277
- h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
278
- h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label)));
279
- }
280
- get hostElement() { return this; }
281
- static get style() { return pnFilterSearchCss; }
282
- };
283
-
284
220
  const translations$9 = {
285
221
  'sv': {
286
222
  'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
287
223
  'deliveryscopeheading': 'Endast leveranser inom Sverige',
288
- 'sizeheading': 'Uppskatta storlek och vikt på din försändelse',
289
224
  'resultlistheading': 'Några bra alternativ för dig',
290
225
  'weightlabel': 'Vikt',
291
226
  'maxweightlabel': 'Maxvikt',
@@ -294,12 +229,11 @@ const translations$9 = {
294
229
  'stampshopcta': 'Beställ fysiska frimärken',
295
230
  'message': '*Vid köp hos valfritt ombud',
296
231
  'servicePointHeader': 'Eller hitta närmaste serviceställe',
297
- 'servicePointLink': 'Sök brevlåda eller serviceställe'
232
+ 'servicePointLink': 'Sök serviceställe eller brevlåda'
298
233
  },
299
234
  'en': {
300
235
  'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
301
236
  'deliveryscopeheading': 'Deliveries within Sweden only',
302
- 'sizeheading': 'Estimate the size and weight of your shipment',
303
237
  'resultlistheading': 'Some suitable options for you',
304
238
  'weightlabel': 'Weight',
305
239
  'maxweightlabel': 'Max weight',
@@ -313,7 +247,6 @@ const translations$9 = {
313
247
  'da': {
314
248
  'componentheading': 'Vad vill du skicka?',
315
249
  'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
316
- 'sizeheading': 'How much does it weigh?',
317
250
  'resultlistheading': 'Some suitable options for you',
318
251
  'weightlabel': 'Vægt',
319
252
  'maxweightlabel': 'Max vægt',
@@ -324,7 +257,6 @@ const translations$9 = {
324
257
  'no': {
325
258
  'componentheading': 'Vad vill du skicka?',
326
259
  'deliveryscopeheading': 'Kun leveranser innen Sverige',
327
- 'sizeheading': 'How much does it weigh?',
328
260
  'resultlistheading': 'Some suitable options for you',
329
261
  'weightlabel': 'Vekt',
330
262
  'maxweightlabel': 'Maks vekt',
@@ -335,7 +267,6 @@ const translations$9 = {
335
267
  'fi': {
336
268
  'componentheading': 'Vad vill du skicka?',
337
269
  'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
338
- 'sizeheading': 'How much does it weigh?',
339
270
  'resultlistheading': 'Some suitable options for you',
340
271
  'weightlabel': 'Paino',
341
272
  'maxweightlabel': 'Max paino',
@@ -2417,11 +2348,10 @@ const createStore = (defaultState, shouldUpdate) => {
2417
2348
  };
2418
2349
 
2419
2350
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
2420
- const { state: state$4, onChange: onChange$4 } = createStore({
2351
+ const { state: state$5, onChange: onChange$5 } = createStore({
2421
2352
  i18n: {
2422
2353
  componentheading: '',
2423
2354
  deliveryscopeheading: '',
2424
- sizeheading: '',
2425
2355
  resultlistheading: '',
2426
2356
  weightlabel: '',
2427
2357
  maxweightlabel: '',
@@ -2445,7 +2375,9 @@ const largePackageSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdod
2445
2375
 
2446
2376
  const postnordPerson1Svg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA0IiBoZWlnaHQ9IjE2MiIgdmlld0JveD0iMCAwIDEwNCAxNjIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yOS4wMDE2IDE0My4zOTlIMTkuNjAxNlYxNTIuMTk5SDI5LjAwMTZWMTQzLjM5OVoiIGZpbGw9IiM5OTI5MEEiLz4KPHBhdGggZD0iTTE5LjYgMTUyLjJMMTcgMTU5SDMyTDI4LjkgMTUwLjNMMTkuNiAxNTIuMloiIGZpbGw9IiMwRDIzNEIiLz4KPHBhdGggZD0iTTQ5LjEgMTQ3LjVIMzlWMTU0LjhINDkuMVYxNDcuNVoiIGZpbGw9IiM5OTI5MEEiLz4KPHBhdGggZD0iTTM5IDE1Mi45VjE1OS4ySDY1LjVMNDkuMSAxNTEuNVYxNDkuM0wzOSAxNTIuOVoiIGZpbGw9IiMwRDIzNEIiLz4KPHBhdGggZD0iTTY1LjUgMTU5LjE5OUgzOVYxNjEuNzk5SDY1LjVWMTU5LjE5OVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik00NC41MDE2IDE1Ny4xQzQ1LjU1MDkgMTU3LjEgNDYuNDAxNiAxNTYuMjQ5IDQ2LjQwMTYgMTU1LjJDNDYuNDAxNiAxNTQuMTUgNDUuNTUwOSAxNTMuMyA0NC41MDE2IDE1My4zQzQzLjQ1MjIgMTUzLjMgNDIuNjAxNiAxNTQuMTUgNDIuNjAxNiAxNTUuMkM0Mi42MDE2IDE1Ni4yNDkgNDMuNDUyMiAxNTcuMSA0NC41MDE2IDE1Ny4xWiIgZmlsb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iBoZWlnaHQ9IjEwIiByeD0iNSIgZmlsbD0iI0ZCQzJDMSIvPgo8cGF0aCBvcGFjaXR5PSIwLjIiIGQ9Ik01NC41IDQ3TDUzIDUwTDU3IDQ3SDU0LjVaIiBmaWxsPSIjRTU0NzRDIi8+Cjwvc3ZnPgo=';
2447
2377
 
2448
- const pnFindPriceCss = "@charset \"UTF-8\";pn-find-price .sizeTable{border-style:none !important;border:0 !important}pn-find-price .sizeTable>tr td{margin-bottom:1em;text-align:center;vertical-align:bottom;padding-right:1em}pn-find-price .firstCell{margin-right:0;margin-left:auto}pn-find-price .findprice-form{max-width:60em;margin:0 auto 3em auto}pn-find-price h2,pn-find-price .heading,pn-find-price .resultHeading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-find-price .sizeheading{text-align:center;font-size:1.25em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-find-price .sizecategory{margin-top:5em;margin-bottom:3rem;font-size:0.9em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption{font-size:0.9em;max-width:41rem;margin:0 auto}pn-find-price .weightoption-content{text-align:center}pn-find-price .weightoption-content pn-choice-button{width:7em;line-height:3.3em;font-size:0.9em;vertical-align:bottom}pn-find-price .weightoption-content pn-choice-button>label{-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption-content pn-choice-button ::before{content:\"Max  \";font-weight:lighter}pn-find-price .resultlist{margin:3em 0}pn-find-price .servicePoint{text-align:center}pn-find-price .servicePoint pn-illustration{display:block;max-width:5em;max-height:5em;margin:1.5em auto 0 auto}pn-find-price .servicePoint h3{margin-top:1.8em;margin-bottom:0.9em}pn-find-price .servicePoint a{color:#005D92}";
2378
+ const cloudsSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjc4IiBoZWlnaHQ9IjU1IiB2aWV3Qm94PSIwIDAgMjc4IDU1IiBmaWxs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g4MzcxIDMwLjU1OTcgOS41NjYyMiAzNC41ODcySDcuNDE2NThDMy44NjM0NiAzNC41ODcyIDAuOTk4MDQ3IDM4LjI0NDggMC45OTgwNDcgNDIuNzE1NFY0Ni4xMDIySDEyLjAzOTFaIiBmaWxsPSIjRTBGOEZGIi8+CjxwYXRoIGQ9Ik0xMzEuMDU2IDI2LjU4NjRDMTMxLjQ0OSAzMC4wNDIzIDEzMy45NDggMzIuNjg5NSAxMzYuOTkxIDMyLjY4OTVIMTYyLjg5MUMxNjYuMjA5IDMyLjY4OTUgMTY4Ljg4IDI5LjU0MjYgMTY4Ljg4IDI1LjYzMjhWMjUuNTM3NUMxNjguODggMjEuNjI3NyAxNjYuMjA5IDE4LjQ4MDggMTYyLjg5MSAxOC40ODA4SDE1OS45MDdDMTU4Ljc3NyAxMy44MDE1IDE1NS4zMyAxMC4zNzUzIDE1MS4yMzYgMTAuMzc1M0gxNDYuNDJDMTQ1Ljk3MSA0LjcwNTMzIDE0MS45MjEgMC4yNjcwOSAxMzYuOTkxIDAuMjY3MDlDMTMyLjA2MiAwLjI2NzA5IDEyOC4wMTIgNC43MDUzMyAxMjcuNTYzIDEwLjM3NTNIMTI0LjUyOEMxMTkuNTEgMTAuMzc1MyAxMTUuNDYzIDE1LjUyNDcgMTE1LjQ2MyAyMS44MTg0VjI2LjU4NjRIMTMxLjA1NloiIGZpbGw9IiNFMEY4RkYiLz4KPC9zdmc+Cg==';
2379
+
2380
+ const pnFindPriceCss = "@charset \"UTF-8\";pn-find-price .sizeTable{border-style:none !important;border:0 !important}pn-find-price .sizeTable>tr td{margin-bottom:1em;text-align:center;vertical-align:bottom;padding-right:1em}pn-find-price .firstCell{margin-right:0;margin-left:auto}pn-find-price .findprice-form{max-width:60em;margin:0 auto 3em auto}pn-find-price h2,pn-find-price .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-find-price .resultHeading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:2em}pn-find-price .sizecategory{margin-top:5em;margin-bottom:3rem;font-size:0.9em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}pn-find-price .sizecategory #clouds{position:absolute;top:4.87em;left:26.3em}pn-find-price .weightoption{font-size:0.9em;max-width:41rem;margin:0 auto}pn-find-price .weightoption-content{text-align:center}pn-find-price .weightoption-content pn-choice-button{width:7em;line-height:3.3em;font-size:0.9em;vertical-align:bottom}pn-find-price .weightoption-content pn-choice-button>label{-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:center;justify-content:center}pn-find-price .weightoption-content pn-choice-button ::before{content:\"Max  \";font-weight:lighter}pn-find-price .resultlist{margin:3em 0}pn-find-price .servicePoint{text-align:center}pn-find-price .servicePoint pn-illustration{display:block;max-width:5em;max-height:5em;margin:1.5em auto 0 auto}pn-find-price .servicePoint h3{margin-top:1.8em;margin-bottom:0.9em}pn-find-price .servicePoint a{color:#005D92;text-decoration:none}pn-find-price .servicePoint a:hover{color:#0D234B;text-decoration:underline}";
2449
2381
 
2450
2382
  let PnfindPrice = class extends HTMLElement {
2451
2383
  constructor() {
@@ -2481,10 +2413,10 @@ let PnfindPrice = class extends HTMLElement {
2481
2413
  }
2482
2414
  setState() {
2483
2415
  if (this.market) {
2484
- state$4.market = markets$2[this.market];
2416
+ state$5.market = markets$2[this.market];
2485
2417
  }
2486
2418
  if (this.language && translations$9[this.language]) {
2487
- state$4.i18n = translations$9[this.language];
2419
+ state$5.i18n = translations$9[this.language];
2488
2420
  }
2489
2421
  }
2490
2422
  filterItems() {
@@ -2524,14 +2456,14 @@ let PnfindPrice = class extends HTMLElement {
2524
2456
  this.filteredItems = weightFilteredData;
2525
2457
  }
2526
2458
  render() {
2527
- return (h("div", { class: "findprice-form" }, h("div", null, (h("div", { class: "sizeheading" }, state$4.i18n.sizeheading)), h("div", { class: "sizecategory" }, h("table", { class: "sizeTable" }, h("tr", null, h("td", null, h("img", { class: "firstCell", src: postnordPerson1Svg })), h("td", null, h("img", { src: smallPackageSvg })), h("td", null, h("img", { src: mediumPackageSvg })), h("td", null, h("img", { src: largePackageSvg }))), h("tr", null, h("td", null), sizeCategories.map((sizeCategory) => (h("td", null, h("pn-radio-button", { radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
2459
+ return (h("div", { class: "findprice-form" }, h("div", null, h("div", { class: "sizecategory" }, h("img", { id: "clouds", src: cloudsSvg }), h("table", { class: "sizeTable" }, h("tr", null, h("td", null, h("img", { class: "firstCell", src: postnordPerson1Svg })), h("td", null, h("img", { src: smallPackageSvg })), h("td", null, h("img", { src: mediumPackageSvg })), h("td", null, h("img", { src: largePackageSvg }))), h("tr", null, h("td", null), sizeCategories.map((sizeCategory) => (h("td", null, h("pn-radio-button", { radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
2528
2460
  this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
2529
2461
  this.weight = { value: 0, name: "" };
2530
2462
  this.weightvalue = this.weight.value;
2531
2463
  } })))))))), (this.sizecategory.value && weights$2[this.sizecategory.unit]) ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights$2[this.sizecategory.unit].map((wght) => (h("pn-choice-button", { choiceid: this.sizecategory.value + wght.value, name: "weight", type: "radio", value: (!this.weight.value) ? 0 : weights$2[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
2532
2464
  this.weight = weights$2[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
2533
2465
  this.weightvalue = this.weight.value;
2534
- } }, wght.name)))))) : null, (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$4.i18n.resultlistheading) ? (h("div", { class: "resultHeading" }, state$4.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-price-result", { item: item })))), h("div", { class: "servicePoint" }, h("pn-illustration", { illustration: "character-box-letters-house" }), h("h3", null, state$4.i18n.servicePointHeader), h("a", { href: ServicePointUrl, target: "_blank" }, state$4.i18n.servicePointLink, h("pn-icon", { symbol: "map-marker", color: "blue700" }))))) : null));
2466
+ } }, wght.name)))))) : null, (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$5.i18n.resultlistheading) ? (h("div", { class: "resultHeading" }, state$5.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-price-result", { item: item })))), h("div", { class: "servicePoint" }, h("pn-illustration", { illustration: "character-box-letters-house" }), h("h3", null, state$5.i18n.servicePointHeader), h("a", { href: ServicePointUrl, target: "_blank" }, h("pn-icon", { symbol: "map-marker", color: "blue700" }), state$5.i18n.servicePointLink)))) : null));
2535
2467
  }
2536
2468
  static get watchers() { return {
2537
2469
  "market": ["setState"],
@@ -2570,8 +2502,8 @@ let PnfindPriceResult = class extends HTMLElement {
2570
2502
  render() {
2571
2503
  return (h(Host, null, h("pn-product-card", null, h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }), h("div", { slot: "title" }, h("h2", null, this.item.name, " "), (this.item.highestrankusp) ?
2572
2504
  (this.item.highestrankusp === "Billigast") ?
2573
- (h("span", { slot: "Biligast" }, this.item.highestrankusp, h("pn-icon", { symbol: "box-label", small: "false", color: "green700" })))
2574
- : (h("span", { slot: "Snabbast" }, this.item.highestrankusp, h("pn-icon", { symbol: "bolt", small: "false", color: "blue700" }))) : null), h("div", { slot: "content" }, h("div", { class: "content" }, (this.item.description) ? (h("div", { class: "description" }, this.description.map((desc) => (h("li", null, desc))))) : null, (this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)), this.item.note ? (h("small", { slot: "note" }, h("p", null, this.item.note))) : null, this.item.additionalusp ? (h("div", { slot: "additionalUSP" }, this.Usp1 ? (h("span", null, this.Usp1)) : null, this.Usp2 ? (h("span", null, this.Usp2)) : null, this.Usp3 ? (h("span", null, this.Usp3)) : null)) : null, this.item.paket ? (h("pn-product-card-info", { paket: this.item.paket, rulle: this.item.rulle })) : null, h("div", { slot: "cardprice" }, this.item.priceagent ? (h("pn-product-card-price", { slot: "price", label: "", amount: this.item.priceagent + '', currency: state$4.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", service: this.item.name + "-eshop" })) : null, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state$4.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state$4.market.currency, url: "https://portal.postnord.com/skickadirekt/", service: this.item.name + "-portal" })) : null, this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state$4.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state$4.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", service: this.item.name + "-eshop", note: state$4.i18n.message })) : null))));
2505
+ (h("span", { slot: "Billigast" }, this.item.highestrankusp, h("pn-icon", { symbol: "box-label", small: "false", color: "green700" })))
2506
+ : (h("span", { slot: "Snabbast" }, this.item.highestrankusp, h("pn-icon", { symbol: "bolt", small: "false", color: "blue700" }))) : null), h("div", { slot: "content" }, h("div", { class: "content" }, (this.item.description) ? (h("div", { class: "description" }, this.description.map((desc) => (h("li", null, desc))))) : null, (this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)), this.item.note ? (h("small", { slot: "note" }, h("p", null, this.item.note))) : null, this.item.additionalusp ? (h("div", { slot: "additionalUSP" }, this.Usp1 ? (h("span", null, this.Usp1)) : null, this.Usp2 ? (h("span", null, this.Usp2)) : null, this.Usp3 ? (h("span", null, this.Usp3)) : null)) : null, this.item.paket ? (h("pn-product-card-info", { paket: this.item.paket, rulle: this.item.rulle })) : null, h("div", { slot: "cardprice" }, this.item.priceagent ? (h("pn-product-card-price", { slot: "price", label: "", amount: this.item.priceagent + '', currency: state$5.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", service: this.item.name + "-eshop" })) : null, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state$5.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state$5.market.currency, url: "https://portal.postnord.com/skickadirekt/", service: this.item.name + "-portal" })) : null, this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state$5.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state$5.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx", service: this.item.name + "-eshop" })) : null))));
2575
2507
  }
2576
2508
  static get watchers() { return {
2577
2509
  "item": ["composeItems"]
@@ -2702,7 +2634,7 @@ const weights$1 = {
2702
2634
  };
2703
2635
 
2704
2636
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
2705
- const { state: state$3, onChange: onChange$3 } = createStore({
2637
+ const { state: state$4, onChange: onChange$4 } = createStore({
2706
2638
  i18n: {
2707
2639
  componentheading: '',
2708
2640
  deliveryscopeheading: '',
@@ -2760,10 +2692,10 @@ let PnfindServiceAndPrice = class extends HTMLElement {
2760
2692
  }
2761
2693
  setState() {
2762
2694
  if (this.market) {
2763
- state$3.market = markets$1[this.market];
2695
+ state$4.market = markets$1[this.market];
2764
2696
  }
2765
2697
  if (this.language && translations$8[this.language]) {
2766
- state$3.i18n = translations$8[this.language];
2698
+ state$4.i18n = translations$8[this.language];
2767
2699
  }
2768
2700
  }
2769
2701
  filterItems() {
@@ -2801,18 +2733,18 @@ let PnfindServiceAndPrice = class extends HTMLElement {
2801
2733
  this.filteredItems = weightFilteredData;
2802
2734
  }
2803
2735
  render() {
2804
- return (h("div", null, h("div", { class: "findprice-form" }, (state$3.i18n.componentheading) ? (h("h2", null, state$3.i18n.componentheading)) : null, 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: () => {
2736
+ return (h("div", null, h("div", { class: "findprice-form" }, (state$4.i18n.componentheading) ? (h("h2", null, state$4.i18n.componentheading)) : null, 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: () => {
2805
2737
  this.postagetype = postagetypes.filter(x => x.value === postagetype.value)[0];
2806
2738
  this.deliveryscope = { value: "", name: "", icon: "" };
2807
2739
  this.weight = { value: 0, name: "" };
2808
2740
  this.weightvalue = this.weight.value;
2809
- } }, h("pn-illustration", { illustration: postagetype.illustration }), " ", postagetype.name)))), this.postagetype.value && deliveryscopes[this.postagetype.value] ? (h("div", null, (state$3.i18n.deliveryscopeheading) ? (h("div", { class: "heading" }, state$3.i18n.deliveryscopeheading)) : null, 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: () => {
2741
+ } }, h("pn-illustration", { illustration: postagetype.illustration }), " ", postagetype.name)))), this.postagetype.value && deliveryscopes[this.postagetype.value] ? (h("div", null, (state$4.i18n.deliveryscopeheading) ? (h("div", { class: "heading" }, state$4.i18n.deliveryscopeheading)) : null, 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: () => {
2810
2742
  this.deliveryscope = deliveryscopes[this.postagetype.value].filter(x => x.value === deliveryscope.value)[0];
2811
2743
  if (this.weight.value === 0) {
2812
2744
  this.weight = weights$1[this.postagetype.value][0];
2813
2745
  this.weightvalue = this.weight.value;
2814
2746
  }
2815
- } }, h("pn-illustration", { illustration: deliveryscope.illustration }), " ", deliveryscope.name)))))) : null, (this.postagetype.value && weights$1[this.postagetype.value] && this.deliveryscope.value) ? (h("div", null, (state$3.i18n.sizeheading) ? (h("div", { class: "heading" }, state$3.i18n.sizeheading)) : null, h("div", { class: "weightoption" }, h("div", { class: "weightoption-input" }, h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: state$3.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
2747
+ } }, h("pn-illustration", { illustration: deliveryscope.illustration }), " ", deliveryscope.name)))))) : null, (this.postagetype.value && weights$1[this.postagetype.value] && this.deliveryscope.value) ? (h("div", null, (state$4.i18n.sizeheading) ? (h("div", { class: "heading" }, state$4.i18n.sizeheading)) : null, h("div", { class: "weightoption" }, h("div", { class: "weightoption-input" }, h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: state$4.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
2816
2748
  if (e && e.target && e.target.value) {
2817
2749
  const weightNum = parseInt(e.target.value, 10);
2818
2750
  if (!isNaN(weightNum)) {
@@ -2838,7 +2770,7 @@ let PnfindServiceAndPrice = class extends HTMLElement {
2838
2770
  labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights$1[this.postagetype.value].length - 1) ? weight.name : '';
2839
2771
  }
2840
2772
  return (h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
2841
- })))))) : null), (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$3.i18n.resultlistheading) ? (h("div", { class: "heading" }, state$3.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-service-and-price-result", { item: item })))))) : null));
2773
+ })))))) : null), (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" }, (state$4.i18n.resultlistheading) ? (h("div", { class: "heading" }, state$4.i18n.resultlistheading)) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-service-and-price-result", { item: item })))))) : null));
2842
2774
  }
2843
2775
  static get watchers() { return {
2844
2776
  "market": ["setState"],
@@ -2879,7 +2811,7 @@ let PnfindServiceAndPriceResult = class extends HTMLElement {
2879
2811
  (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight / 1000) + " kg" : this.item.maxweight + " g";
2880
2812
  }
2881
2813
  render() {
2882
- return (h(Host, null, this.shownitems.map((item) => (h("pn-product-tile", null, h("pn-illustration", { slot: "illustration", illustration: item.illustration }), h("div", { slot: "content" }, h("div", { class: "content" }, h("h3", null, item.name), (item.description) ? (h("div", { class: "description" }, item.description)) : null, (item.info) ? (h("div", { class: "description" }, item.info)) : null)), item.maxweight ? (h("pn-product-tile-info", { label: state$3.i18n.maxweightlabel, text: this.weightText })) : null, item.maximummeasurements ? (h("pn-product-tile-info", { label: state$3.i18n.maxmeasurementlabel, text: item.maximummeasurements })) : null, item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state$3.i18n.stampshopcta, amount: item.pricestamps + '', currency: state$3.market.currency })) : null, item.priceagent ? (h("pn-product-tile-price", { slot: "price", label: "", amount: item.priceagent + '', currency: state$3.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null, item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state$3.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state$3.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null, item.note ? (h("small", { slot: "note" }, h("p", null, item.note))) : null)))));
2814
+ return (h(Host, null, this.shownitems.map((item) => (h("pn-product-tile", null, h("pn-illustration", { slot: "illustration", illustration: item.illustration }), h("div", { slot: "content" }, h("div", { class: "content" }, h("h3", null, item.name), (item.description) ? (h("div", { class: "description" }, item.description)) : null, (item.info) ? (h("div", { class: "description" }, item.info)) : null)), item.maxweight ? (h("pn-product-tile-info", { label: state$4.i18n.maxweightlabel, text: this.weightText })) : null, item.maximummeasurements ? (h("pn-product-tile-info", { label: state$4.i18n.maxmeasurementlabel, text: item.maximummeasurements })) : null, item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state$4.i18n.stampshopcta, amount: item.pricestamps + '', currency: state$4.market.currency })) : null, item.priceagent ? (h("pn-product-tile-price", { slot: "price", label: "", amount: item.priceagent + '', currency: state$4.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null, item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state$4.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state$4.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null, item.note ? (h("small", { slot: "note" }, h("p", null, item.note))) : null)))));
2883
2815
  }
2884
2816
  static get watchers() { return {
2885
2817
  "item": ["composeItems"]
@@ -3062,7 +2994,7 @@ const translations$6 = {
3062
2994
  };
3063
2995
 
3064
2996
  // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
3065
- const { state: state$2, onChange: onChange$2 } = createStore({
2997
+ const { state: state$3, onChange: onChange$3 } = createStore({
3066
2998
  openLevel: '',
3067
2999
  currentLevel: 1,
3068
3000
  openMenu: false,
@@ -3107,7 +3039,7 @@ let PnMainnav$1 = class extends HTMLElement {
3107
3039
  _onClickOutside(event) {
3108
3040
  const clickedOutside = !this.hostElement.contains(event.target);
3109
3041
  if (clickedOutside) {
3110
- state$2.openLevel = "";
3042
+ state$3.openLevel = "";
3111
3043
  }
3112
3044
  }
3113
3045
  setLanguage() {
@@ -3118,21 +3050,21 @@ let PnMainnav$1 = class extends HTMLElement {
3118
3050
  }
3119
3051
  onLanguageChange(event) {
3120
3052
  if (translations$6[event.detail]) {
3121
- state$2.i18n = translations$6[event.detail];
3053
+ state$3.i18n = translations$6[event.detail];
3122
3054
  if (!this.navLabel) {
3123
- this.navLabel = state$2.i18n.navLabel;
3055
+ this.navLabel = state$3.i18n.navLabel;
3124
3056
  }
3125
3057
  }
3126
3058
  }
3127
3059
  setMenuOpenState() {
3128
- state$2.openMenu = (!state$2.openMenu);
3129
- this.menuOpenChange.emit(state$2.openMenu);
3060
+ state$3.openMenu = (!state$3.openMenu);
3061
+ this.menuOpenChange.emit(state$3.openMenu);
3130
3062
  }
3131
3063
  onOpenMenuLevelChange(event) {
3132
- state$2.openLevel = event.detail;
3064
+ state$3.openLevel = event.detail;
3133
3065
  }
3134
3066
  render() {
3135
- return (h(Host, null, h("div", { class: "mainnav-toggle" }, h("button", { "aria-controls": this.navigationId, "aria-expanded": state$2.openMenu + '', onClick: this.setMenuOpenState.bind(this) }, state$2.i18n.mainMenuButton, h("pn-icon", { symbol: state$2.openMenu ? "close" : "bars", color: "white" }))), h("nav", { class: "mainnav", "aria-label": this.navLabel, "data-menu-open": state$2.openMenu + '', "data-menu-currentlevel": state$2.currentLevel, id: this.navigationId }, h("slot", null))));
3067
+ return (h(Host, null, h("div", { class: "mainnav-toggle" }, h("button", { "aria-controls": this.navigationId, "aria-expanded": state$3.openMenu + '', onClick: this.setMenuOpenState.bind(this) }, state$3.i18n.mainMenuButton, h("pn-icon", { symbol: state$3.openMenu ? "close" : "bars", color: "white" }))), h("nav", { class: "mainnav", "aria-label": this.navLabel, "data-menu-open": state$3.openMenu + '', "data-menu-currentlevel": state$3.currentLevel, id: this.navigationId }, h("slot", null))));
3136
3068
  }
3137
3069
  get hostElement() { return this; }
3138
3070
  static get style() { return pnMainnavCss; }
@@ -3166,7 +3098,7 @@ let PnMainnavLevel$1 = class extends HTMLElement {
3166
3098
  const parentLinkName = this.parentName.toLowerCase().replace(/\W/gi, '_');
3167
3099
  this.levelId = `mainnav-lvl${this.level}-${parentLinkName}`;
3168
3100
  }
3169
- onChange$2("openLevel", () => {
3101
+ onChange$3("openLevel", () => {
3170
3102
  this.onChangeOpenLevel();
3171
3103
  });
3172
3104
  }
@@ -3197,14 +3129,14 @@ let PnMainnavLevel$1 = class extends HTMLElement {
3197
3129
  }
3198
3130
  }
3199
3131
  onChangeOpenLevel() {
3200
- this.isOpen = state$2.openLevel === this.levelId;
3201
- state$2.currentLevel = this.level;
3132
+ this.isOpen = state$3.openLevel === this.levelId;
3133
+ state$3.currentLevel = this.level;
3202
3134
  }
3203
3135
  render() {
3204
- return (h(Host, Object.assign({ role: "navigation" }, ((this.level > 1 && this.levelId) ? { 'aria-hidden': (!this.isOpen) + '' } : {}), { "data-level-listcount": this.listCount + '', "data-level-alignment": this.alignment, "data-level": this.level + '' }, (this.levelId ? { id: this.levelId } : {})), (this.level > 1) ? (h("div", { class: "mainnav-level-header" }, h("label", { htmlFor: this.levelId }, state$2.i18n.menuGoBackButton), h("button", { class: "secondlevel-backbtn", onClick: () => {
3205
- state$2.openLevel = '';
3206
- state$2.currentLevel = 1;
3207
- }, "aria-expanded": (state$2.openLevel === this.levelId) + '' }, h("pn-icon", { symbol: "arrow-left", color: "blue700" }), state$2.i18n.menuStartButton), (this.parentHref && this.parentName) ? h("pn-mainnav-link", { href: this.parentHref, name: this.parentName, linkid: this.parentLinkId }) : null)) : null, h("slot", { name: "top" }), h("slot", null), h("slot", { name: "additional" }), h("slot", { name: "footer" })));
3136
+ return (h(Host, Object.assign({ role: "navigation" }, ((this.level > 1 && this.levelId) ? { 'aria-hidden': (!this.isOpen) + '' } : {}), { "data-level-listcount": this.listCount + '', "data-level-alignment": this.alignment, "data-level": this.level + '' }, (this.levelId ? { id: this.levelId } : {})), (this.level > 1) ? (h("div", { class: "mainnav-level-header" }, h("label", { htmlFor: this.levelId }, state$3.i18n.menuGoBackButton), h("button", { class: "secondlevel-backbtn", onClick: () => {
3137
+ state$3.openLevel = '';
3138
+ state$3.currentLevel = 1;
3139
+ }, "aria-expanded": (state$3.openLevel === this.levelId) + '' }, h("pn-icon", { symbol: "arrow-left", color: "blue700" }), state$3.i18n.menuStartButton), (this.parentHref && this.parentName) ? h("pn-mainnav-link", { href: this.parentHref, name: this.parentName, linkid: this.parentLinkId }) : null)) : null, h("slot", { name: "top" }), h("slot", null), h("slot", { name: "additional" }), h("slot", { name: "footer" })));
3208
3140
  }
3209
3141
  get hostElement() { return this; }
3210
3142
  static get watchers() { return {
@@ -3241,10 +3173,10 @@ let PnMainnavLink$1 = class extends HTMLElement {
3241
3173
  }
3242
3174
  }
3243
3175
  setOpenMenuLevel() {
3244
- state$2.openLevel = (state$2.openLevel + "" === this.levelId + "") ? '' : this.levelId;
3176
+ state$3.openLevel = (state$3.openLevel + "" === this.levelId + "") ? '' : this.levelId;
3245
3177
  }
3246
3178
  render() {
3247
- return (h(Host, { role: "listitem", name: this.name, href: this.href, linkid: this.linkid }, this.hasChildren ? (h("button", { onClick: this.setOpenMenuLevel.bind(this), "aria-controls": this.levelId, "aria-pressed": "", "aria-expanded": ((state$2.openLevel + "" === this.levelId + "")) + '' }, this.name, h("pn-icon", { class: "first-level_icon", symbol: "angle-small-down", color: "blue700" }), h("pn-icon", { class: "first-level_arrow", symbol: "arrow-right", color: "blue700" }))) : (h("a", Object.assign({ href: this.href }, (this.target ? { target: this.target } : {}), (this.target === "_blank" ? { rel: "nofollow noopener" } : {}), (this.linkid ? { id: this.linkid } : {})), this.name, this.target === "_blank" ? (h("pn-icon", { symbol: "open-in-new", color: "blue700" })) : null)), h("slot", null)));
3179
+ return (h(Host, { role: "listitem", name: this.name, href: this.href, linkid: this.linkid }, this.hasChildren ? (h("button", { onClick: this.setOpenMenuLevel.bind(this), "aria-controls": this.levelId, "aria-pressed": "", "aria-expanded": ((state$3.openLevel + "" === this.levelId + "")) + '' }, this.name, h("pn-icon", { class: "first-level_icon", symbol: "angle-small-down", color: "blue700" }), h("pn-icon", { class: "first-level_arrow", symbol: "arrow-right", color: "blue700" }))) : (h("a", Object.assign({ href: this.href }, (this.target ? { target: this.target } : {}), (this.target === "_blank" ? { rel: "nofollow noopener" } : {}), (this.linkid ? { id: this.linkid } : {})), this.name, this.target === "_blank" ? (h("pn-icon", { symbol: "open-in-new", color: "blue700" })) : null)), h("slot", null)));
3248
3180
  }
3249
3181
  get hostElement() { return this; }
3250
3182
  static get style() { return pnMainnavLinkCss; }
@@ -3269,6 +3201,174 @@ let PnMainnavList$1 = class extends HTMLElement {
3269
3201
  static get style() { return pnMainnavListCss; }
3270
3202
  };
3271
3203
 
3204
+ const pnMarketwebInputCss = "pn--marketweb-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}pn-marketweb-input input{padding:0.75em;font-size:1em;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:0.8rem;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}pn-marketweb-input input::-webkit-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-moz-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::-ms-input-placeholder{color:#969087;font-weight:normal}pn-marketweb-input input::placeholder{color:#969087;font-weight:normal}pn-marketweb-input input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-marketweb-input input:hover{border:0.1rem solid #00A0D6}pn-marketweb-input input:disabled{background:#F3F2F2;border:none}pn-marketweb-input>.input-container{position:relative}pn-marketweb-input>.input-container>button{position:absolute;right:1.2rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#005D92;padding:0.6rem;border-radius:0.8rem;outline:none;-webkit-transition:border 0.1s, background 0.2s, color 0.1s;transition:border 0.1s, background 0.2s, color 0.1s;border:0.1rem solid transparent}pn-marketweb-input>.input-container>button:focus{border:0.1rem solid #005D92}pn-marketweb-input>.input-container>button:hover{background:#E0F8FF}pn-marketweb-input>.input-container>button:active{background:#005D92;color:white}pn-marketweb-input>.input-container>svg{position:absolute;right:0.75em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:1.5em;width:1.5em;pointer-events:none}pn-marketweb-input>.input-container>svg polyline{stroke-linecap:round;-webkit-transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86)}pn-marketweb-input>.input-container>svg.pn-input-checkmark polyline{stroke:#005E41;stroke-dashoffset:23;stroke-dasharray:23}pn-marketweb-input .label-container{margin-bottom:0.4rem;color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-marketweb-input .label-container label{cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.label-container label.char-count{-ms-flex-negative:0;flex-shrink:0;padding-left:0.5em}pn-marketweb-input small{font-size:0.75em;font-size:max(.6em, 1.2rem);-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:-webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86), -webkit-transform 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86);margin-top:0.5em;color:#5E554A}pn-input.error{color:#A70707}pn-input.error label{color:#A70707}pn-input.error small{color:#A70707}pn-input.error small>pn-icon{margin-right:0.25em}pn-input.error input{border:0.1rem solid #A70707}pn-input.error input:focus{border:0.1rem solid #A70707;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707}pn-input.error input:hover{border:0.1rem solid #F06365}pn-input.valid{color:#005E41}pn-input.valid .input-container>svg.pn-input-checkmark polyline{stroke-dashoffset:0}pn-input.valid label{color:#005E41}pn-input.valid input{border:0.1rem solid #005E41}pn-input.valid input:focus{border:0.1rem solid #005E41;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005E41}pn-input.valid input:hover{border:0.1rem solid #5EC584}pn-marketweb-input.password input{padding-right:4em}pn-marketweb-input.icon input{padding-right:2.3em}";
3205
+
3206
+ let PnMarketwebInput$1 = class extends HTMLElement {
3207
+ constructor() {
3208
+ super();
3209
+ this.__registerHost();
3210
+ this.disabled = false;
3211
+ /** Error message; will take precedence over helpertext if both are provided (applies invalid styles automatically) */
3212
+ this.error = '';
3213
+ /** Error state without message (If you want to control the error messaging on your own) */
3214
+ this.invalid = false;
3215
+ /** Text message placed underneath the input field */
3216
+ this.helpertext = '';
3217
+ /** Text label placed above the input field */
3218
+ this.label = '';
3219
+ this.placeholder = '';
3220
+ this.inputid = `${Math.random()}`;
3221
+ this.name = '';
3222
+ this.required = null;
3223
+ this.type = 'text';
3224
+ this.autocomplete = '';
3225
+ this.valid = null;
3226
+ this.value = '';
3227
+ /** The maximum number of characters the user should be able to add, also adds a visible counter */
3228
+ this.maxlength = '';
3229
+ this.min = '';
3230
+ this.max = '';
3231
+ this.step = '';
3232
+ this.pattern = '';
3233
+ this.showText = false;
3234
+ }
3235
+ getTextMessage() {
3236
+ if (this.error)
3237
+ return this.error;
3238
+ if (this.helpertext)
3239
+ return this.helpertext;
3240
+ return null;
3241
+ }
3242
+ toggleTextVisibility() {
3243
+ this.showText = !this.showText;
3244
+ }
3245
+ getInputType() {
3246
+ let types = ['text', 'password', 'url', 'tel', 'search', 'number', 'email', 'date', 'datetime-local', 'month', 'week', 'time'];
3247
+ return (types.includes(this.type) && !this.showText) ? this.type : 'text';
3248
+ }
3249
+ setVal(e) {
3250
+ var _a;
3251
+ const target = (_a = e.composedPath) === null || _a === void 0 ? void 0 : _a.call(e)[0];
3252
+ this.value = target.value;
3253
+ }
3254
+ getClassNames() {
3255
+ let classNames = 'pn-input ';
3256
+ if (this.error.length > 0 || this.invalid)
3257
+ classNames += 'error ';
3258
+ if (this.valid)
3259
+ classNames += 'valid ';
3260
+ if (this.type === 'password')
3261
+ classNames += 'password ';
3262
+ if (this.error || this.invalid || this.valid)
3263
+ classNames += 'icon ';
3264
+ return classNames;
3265
+ }
3266
+ render() {
3267
+ return (h(Host, { class: this.getClassNames() }, (this.label || this.maxlength) &&
3268
+ h("div", { class: "label-container" }, this.label && h("label", { htmlFor: this.inputid }, this.label), parseInt(this.maxlength) > 0 && h("label", { class: "char-count", htmlFor: this.inputid }, `${this.value.length}/${this.maxlength}`)), h("div", { class: "input-container" }, h("input", { type: this.getInputType(), value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onInput: (e) => this.setVal(e), maxlength: this.maxlength ? this.maxlength : null, min: (this.min ? this.min : null), max: (this.max ? this.max : null), step: (this.step ? this.step : null), pattern: (this.pattern ? this.pattern : null) }), h("svg", { class: "pn-input-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, h("polyline", { class: "checkmark-path", points: "4,12 9,17 20,6", "stroke-width": "3" })), this.type === 'password' && !this.disabled && h("button", { onClick: () => this.toggleTextVisibility() }, "Show")), this.getTextMessage() &&
3269
+ h("small", null, this.error && h("pn-icon", { symbol: "alert-exclamation-circle", small: true, color: "warning" }), this.getTextMessage())));
3270
+ }
3271
+ static get style() { return pnMarketwebInputCss; }
3272
+ };
3273
+
3274
+ const pnMarketwebSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host[list] :host>.input-container .button-container{display:none}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:#FFFFFF;border:none;color:#005D92;padding:0.3rem;margin:0;font-size:0.875em;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent;-webkit-tap-highlight-color:transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host>.input-container button:hover,:host>.input-container button:focus{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host .searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host .searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none input,:host .button-icon-inline input{padding-right:3.3em}:host .button-none pn-spinner,:host .button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host .button-none button.search,:host .button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.loading button,:host .button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-none.loading pn-spinner,:host .button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host .button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
3275
+
3276
+ let PnMarketwebSearch$1 = class extends HTMLElement {
3277
+ constructor() {
3278
+ super();
3279
+ this.__registerHost();
3280
+ this.__attachShadow();
3281
+ this.search = createEvent(this, "search", 7);
3282
+ this.update = createEvent(this, "update", 7);
3283
+ this.disabled = false;
3284
+ this.placeholder = null;
3285
+ this.inputid = null;
3286
+ this.name = null;
3287
+ this.autocomplete = null;
3288
+ this.list = null;
3289
+ this.value = null;
3290
+ /** Label for the button */
3291
+ this.label = null;
3292
+ /** Loading animation */
3293
+ this.loading = false;
3294
+ /** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
3295
+ this.button = '';
3296
+ /** Light instead of dark search button */
3297
+ this.light = false;
3298
+ this.suggestionObserver = null;
3299
+ this.hasClonedInput = false;
3300
+ this.listSuggestion = [];
3301
+ }
3302
+ inputHandler() {
3303
+ this.update.emit(this.value);
3304
+ }
3305
+ emitSearch(e) {
3306
+ if (e.type === 'click' ||
3307
+ (e.type === 'keydown' && e.key === 'Enter')) {
3308
+ // We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
3309
+ e.preventDefault();
3310
+ this.search.emit(this.value);
3311
+ }
3312
+ }
3313
+ setVal(e) {
3314
+ this.value = e.target.value;
3315
+ }
3316
+ clearInput() {
3317
+ this.value = '';
3318
+ this.update.emit(this.value);
3319
+ this.hostElement.querySelector('input').focus();
3320
+ }
3321
+ getClassNames() {
3322
+ let classNames = '';
3323
+ const buttonTypes = ['none', 'icon', 'icon-inline'];
3324
+ if (this.value)
3325
+ classNames += 'searching ';
3326
+ if (this.loading)
3327
+ classNames += 'loading ';
3328
+ if (buttonTypes.includes(this.button))
3329
+ classNames += `button-${this.button} `;
3330
+ return classNames;
3331
+ }
3332
+ componentWillRender() {
3333
+ this.cloneListContent();
3334
+ this.autocompleteEventBinding();
3335
+ }
3336
+ onSuggestionUpdate() {
3337
+ this.cloneListContent();
3338
+ }
3339
+ autocompleteEventBinding() {
3340
+ if (this.suggestionObserver !== null || !this.list || (!this.hostElement) || !document.getElementById(this.list)) {
3341
+ return;
3342
+ }
3343
+ const targetNode = document.getElementById(this.list);
3344
+ this.suggestionObserver = new MutationObserver(this.onSuggestionUpdate.bind(this));
3345
+ this.suggestionObserver.observe(targetNode, { attributes: true, childList: true, subtree: true });
3346
+ }
3347
+ cloneListContent() {
3348
+ if (!this.list || (!this.hostElement) || !document.getElementById(this.list)) {
3349
+ return;
3350
+ }
3351
+ const options = [...document.getElementById(this.list).querySelectorAll('option')];
3352
+ this.listSuggestion = options.map((item) => {
3353
+ if (item.hasAttribute('value')) {
3354
+ return item.getAttribute('value');
3355
+ }
3356
+ return item.innerText;
3357
+ });
3358
+ }
3359
+ render() {
3360
+ return (h(Host, null, h("div", { class: `input-container ${this.getClassNames()}`, "data-haslist": (this.list !== null) + '' }, h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, list: this.list, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
3361
+ h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
3362
+ h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
3363
+ h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label), (this.list) &&
3364
+ h("datalist", { id: this.list }, this.listSuggestion.map((item) => {
3365
+ return (h("option", null, item));
3366
+ }))));
3367
+ }
3368
+ get hostElement() { return this; }
3369
+ static get style() { return pnMarketwebSearchCss; }
3370
+ };
3371
+
3272
3372
  const translations$5 = {
3273
3373
  'sv': {
3274
3374
  "searchlabel": "Sök",
@@ -4029,6 +4129,8 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4029
4129
  this.hideSearch = false;
4030
4130
  /** Hides the login if set to true*/
4031
4131
  this.hideLogin = false;
4132
+ /** Autocomplete endpoint */
4133
+ this.AutocompleteEndpoint = "";
4032
4134
  /** Forward session to backend */
4033
4135
  this.sessionForward = false;
4034
4136
  /** If the component should use cached requests */
@@ -4041,7 +4143,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4041
4143
  // Menu state
4042
4144
  this.menuItems = [];
4043
4145
  // Search
4044
- this.search = {};
4146
+ this.search = { AutocompleteEndpoint: this.AutocompleteEndpoint };
4045
4147
  // Site selector
4046
4148
  this.siteSelector = null;
4047
4149
  // Language Selector
@@ -4155,7 +4257,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4155
4257
  });
4156
4258
  }
4157
4259
  // Set search
4158
- this.search = data.search;
4260
+ this.search = Object.assign(Object.assign({}, data.search), { AutocompleteEndpoint: this.AutocompleteEndpoint });
4159
4261
  // Set site selector
4160
4262
  this.siteSelector = data.siteSelectorViewModel;
4161
4263
  // Set language selector
@@ -4259,7 +4361,7 @@ let PnMarketwebSiteheader$1 = class extends HTMLElement {
4259
4361
  })), h("div", { slot: "footer", class: "siteheader-menu-footer" }, (this.gotData && this.loginDialog && !this.hideLogin) && (h("pn-marketweb-siteheader-login", { emitEvents: false, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
4260
4362
  h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))), !this.hideSiteSelector &&
4261
4363
  h("pn-site-selector", { language: this.language }, (this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
4262
- h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))), h("div", { slot: "top", class: "siteheader-menu-top" }, h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
4364
+ h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))), h("div", { slot: "top", class: "siteheader-menu-top" }, h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), h("pn-marketweb-siteheader-search", { primary: true, search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
4263
4365
  }
4264
4366
  get hostElement() { return this; }
4265
4367
  static get watchers() { return {
@@ -4415,6 +4517,13 @@ let PnMarketwebSiteheaderLogin$1 = class extends HTMLElement {
4415
4517
  static get style() { return pnMarketwebSiteheaderLoginCss; }
4416
4518
  };
4417
4519
 
4520
+ // Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
4521
+ const { state: state$2, onChange: onChange$2 } = createStore({
4522
+ searchValue: '',
4523
+ autocompleteSuggestions: {},
4524
+ requestAbortController: new AbortController()
4525
+ });
4526
+
4418
4527
  const pnMarketwebSiteheaderSearchCss = ".siteheader-search a{display:none}@media screen and (min-width: 48em){.siteheader-search a{display:block}}.siteheader-search pn-search-field.button-icon pn-button,.siteheader-search pn-button{display:-ms-inline-flexbox;display:inline-flex}.siteheader-search pn-search-field.button-icon pn-button button,.siteheader-search pn-button button{-ms-flex-item-align:center;align-self:center;padding:0;height:2.3em;width:2.3em;line-height:0;min-height:unset;min-width:unset}.siteheader-search pn-search-field.button-icon pn-button pn-icon,.siteheader-search pn-button pn-icon{margin-left:0}.siteheader-search form{-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:auto;-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;padding:0;margin:0 0 0 0.4rem;position:relative}@media screen and (min-width: 60em){.siteheader-search form{margin-right:1.6rem}}.siteheader-search form pn-search-field{min-width:13.5em}.siteheader-search form pn-search-field .input-container{-ms-flex-item-align:center;align-self:center}.siteheader-search form pn-search-field input{height:auto;min-height:1em;padding:0.6em 0.75em}";
4419
4528
 
4420
4529
  let PnMarketwebSiteheaderSearch$1 = class extends HTMLElement {
@@ -4427,20 +4536,73 @@ let PnMarketwebSiteheaderSearch$1 = class extends HTMLElement {
4427
4536
  this.hideSearch = false;
4428
4537
  // Search data
4429
4538
  this.search = {};
4539
+ // Is this the primary instance?
4540
+ this.primary = false;
4541
+ // Autocomplete options
4542
+ this.autoCompleteOptions = [];
4543
+ }
4544
+ onSearchValueUpdate() {
4545
+ this.getAutocomplete(state$2.searchValue);
4546
+ }
4547
+ async getAutocomplete(prefix) {
4548
+ if (!this.search.AutocompleteEndpoint || (prefix.length < 2)) {
4549
+ this.autoCompleteOptions = [];
4550
+ return;
4551
+ }
4552
+ if (state$2.autocompleteSuggestions[prefix]) {
4553
+ this.setAutocompleteSuggestions(state$2.autocompleteSuggestions[prefix]);
4554
+ return;
4555
+ }
4556
+ const req = await fetch(`${this.search.AutocompleteEndpoint}?prefix=${prefix}&size=10`, { signal: state$2.requestAbortController.signal }).catch((e) => {
4557
+ console.log('Unable to fetch autocomplete suggestions', e);
4558
+ });
4559
+ if (!req) {
4560
+ return;
4561
+ }
4562
+ const data = await req.json();
4563
+ if (!data || !data.hits || !data.hits.length) {
4564
+ return;
4565
+ }
4566
+ const suggestions = data.hits.map((item) => {
4567
+ return item.query;
4568
+ });
4569
+ // Store query in store
4570
+ state$2.autocompleteSuggestions[prefix] = suggestions;
4571
+ this.setAutocompleteSuggestions(suggestions);
4572
+ }
4573
+ setAutocompleteSuggestions(suggestions) {
4574
+ if (typeof suggestions !== "object" || typeof suggestions.length !== "number" || suggestions.length === 0) {
4575
+ return;
4576
+ }
4577
+ this.autoCompleteOptions = suggestions;
4430
4578
  }
4431
4579
  componentWillLoad() {
4580
+ onChange$2("searchValue", () => {
4581
+ this.onSearchValueUpdate();
4582
+ });
4583
+ }
4584
+ componentDidRender() {
4585
+ const inputSearchElm = this.hostElement.querySelector('pn-search-field input:not([list])');
4586
+ if (inputSearchElm && this.search.AutocompleteEndpoint) {
4587
+ inputSearchElm.setAttribute("list", "siteheader-search-autocomplete");
4588
+ }
4432
4589
  }
4433
4590
  render() {
4434
4591
  if (!this.search.formActionUrl || this.hideSearch) {
4435
4592
  return;
4436
4593
  }
4594
+ const autocompleteAttribute = (this.search.AutocompleteEndpoint) ? { "list": "siteheader-search-autocomplete" } : {};
4437
4595
  return (h("div", { class: "siteheader-search" }, (this.showOnlyLink) ? (h("a", { href: this.search.formActionUrl, title: this.i18n.searchlabel }, h("pn-button", { appearance: "light", icon: "search" }))) :
4438
- (h("form", { method: "get", action: this.search.formActionUrl, role: "search" }, h("pn-search-field", { label: this.i18n.searchlabel, name: "q", button: "icon", onSearch: () => {
4596
+ (h("form", { method: "get", action: this.search.formActionUrl, role: "search" }, h("pn-search-field", Object.assign({ label: this.i18n.searchlabel, name: "q", button: "icon" }, autocompleteAttribute, { onUpdate: (e) => {
4597
+ state$2.searchValue = e.detail;
4598
+ }, onSearch: () => {
4439
4599
  const form = this.hostElement.querySelector('form');
4440
4600
  if (form) {
4441
4601
  form.submit();
4442
4602
  }
4443
- }, placeholder: this.i18n.searchplaceholder })))));
4603
+ }, placeholder: this.i18n.searchplaceholder })), this.primary && this.search.AutocompleteEndpoint ? (h("datalist", { id: "siteheader-search-autocomplete" }, this.autoCompleteOptions.map((item) => {
4604
+ return (h("option", null, item));
4605
+ }))) : null))));
4444
4606
  }
4445
4607
  get hostElement() { return this; }
4446
4608
  static get style() { return pnMarketwebSiteheaderSearchCss; }
@@ -4485,16 +4647,24 @@ let PnPexPricefinder$1 = class extends HTMLElement {
4485
4647
  this.fromzip = null;
4486
4648
  this.tozip = null;
4487
4649
  this.weight = 100;
4488
- this.when = (new Date()).toISOString().split('T')[0];
4650
+ this.when = '';
4489
4651
  this.response = null;
4490
4652
  }
4491
4653
  componentWillLoad() {
4492
4654
  this.init();
4493
4655
  }
4494
4656
  async init() {
4657
+ this.setInitialTime();
4495
4658
  this.checkParameters();
4496
4659
  this.setLanguage();
4497
4660
  }
4661
+ setInitialTime() {
4662
+ const initialTime = (new Date());
4663
+ initialTime.setHours(initialTime.getHours() + 1);
4664
+ initialTime.setMinutes(0);
4665
+ const splitTime = initialTime.toLocaleString('sv', { timeZoneName: 'short' }).split(' ');
4666
+ this.when = `${splitTime[0]}T${splitTime[1].substring(0, 5)}`;
4667
+ }
4498
4668
  checkParameters() {
4499
4669
  const params = new URLSearchParams(window.location.href);
4500
4670
  if (!params) {
@@ -4555,13 +4725,13 @@ let PnPexPricefinder$1 = class extends HTMLElement {
4555
4725
  console.error('onFetchError(error', error);
4556
4726
  }
4557
4727
  render() {
4558
- return (h(Host, null, h("div", { class: "pex-pricefinder-top" }, h("pn-illustration", { illustration: "PEX-truck" }), h("h2", null, this.i18n.heading)), h("form", { method: "get", action: "", class: "pex-pricefinder-form", onSubmit: this.onSubmit.bind(this) }, h("fieldset", null, h("div", null, h("pn-input", { type: "number", label: this.i18n.labelFrom, inputid: "fromzip", name: "fromzip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.fromzip }), h("pn-input", { type: "number", label: this.i18n.labelTo, inputid: "tozip", name: "tozip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.tozip }))), h("fieldset", null, h("div", null, h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }), h("div", { class: "datepicker" }, h("label", { htmlFor: "when" }, this.i18n.labelWhen), h("pn-date-picker", { inputid: "when", name: "when", "start-of-week": "1", min: (new Date()).toISOString().split('T')[0], language: this.language, value: this.when })))), h("fieldset", null, h("div", null, h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))), this.response ? (h("div", { class: "pex-pricefinder-response" }, h("strong", null, this.response.data.value, " ", this.currency))) : null));
4728
+ return (h(Host, null, h("div", { class: "pex-pricefinder-top" }, h("pn-illustration", { illustration: "PEX-truck" }), h("h2", null, this.i18n.heading)), h("form", { method: "get", action: "", class: "pex-pricefinder-form", onSubmit: this.onSubmit.bind(this) }, h("fieldset", null, h("div", null, h("pn-input", { type: "number", label: this.i18n.labelFrom, inputid: "fromzip", name: "fromzip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.fromzip }), h("pn-input", { type: "number", label: this.i18n.labelTo, inputid: "tozip", name: "tozip", placeholder: this.i18n.zipPlaceholder, required: true, value: this.tozip }))), h("fieldset", null, h("div", null, h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }), h("div", { class: "datepicker" }, h("label", { htmlFor: "when" }, this.i18n.labelWhen), h("pn-marketweb-input", { inputid: "when", name: "when", type: "datetime-local", min: (new Date()).toISOString().split('T')[0], value: this.when })))), h("fieldset", null, h("div", null, h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))), this.response ? (h("div", { class: "pex-pricefinder-response" }, h("strong", null, this.response.data.value, " ", this.currency))) : null));
4559
4729
  }
4560
4730
  get hostElement() { return this; }
4561
4731
  static get style() { return pnPexPricefinderCss; }
4562
4732
  };
4563
4733
 
4564
- const pnProductCardCss = "pn-product-card{margin-bottom:1em;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;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.5em}pn-product-card [slot=title]>[slot=Biligast]{color:#005E41;background:#DCF6E7;border-radius:0.37em;width:6.3em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Biligast] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=title]>[slot=Snabbast]{background:#E0F8FF;color:#005D92;border-radius:0.37em;width:7em;height:2em;margin-left:1.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding-top:0.25em}pn-product-card [slot=title]>[slot=Snabbast] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em}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;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-card [slot=cardprice]{display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}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 2em 0.5em 0}";
4734
+ const 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]>[slot]{border-radius:0.4rem;height:2.5em;font-weight:normal;font-size:0.75em;text-align:center;vertical-align:bottom;padding:0.6rem}pn-product-card [slot=title]>[slot] pn-icon{vertical-align:middle;margin-left:0.6em}pn-product-card [slot=title]>[slot=Billigast]{color:#005E41;background:#DCF6E7}pn-product-card [slot=title]>[slot=Snabbast]{background:#E0F8FF;color:#005D92}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em}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 .cardcontent .description :first-child{max-width:calc(100% - 10rem)}@media screen and (min-width: 48em){pn-product-card .cardcontent .description :first-child{max-width:none}}pn-product-card [slot=cardprice]{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: 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 .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 2em 0.5em 0}";
4565
4735
 
4566
4736
  let PnProductCard$1 = class extends HTMLElement {
4567
4737
  constructor() {
@@ -4569,12 +4739,12 @@ let PnProductCard$1 = class extends HTMLElement {
4569
4739
  this.__registerHost();
4570
4740
  }
4571
4741
  render() {
4572
- 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", null, h("slot", { name: "cardprice" })))));
4742
+ 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" })))));
4573
4743
  }
4574
4744
  static get style() { return pnProductCardCss; }
4575
4745
  };
4576
4746
 
4577
- const pnProductCardInfoCss = "pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent #sp{width: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}";
4747
+ const 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}}[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}";
4578
4748
 
4579
4749
  let PnProductCardInfo$1 = class extends HTMLElement {
4580
4750
  constructor() {
@@ -4582,10 +4752,10 @@ let PnProductCardInfo$1 = class extends HTMLElement {
4582
4752
  this.__registerHost();
4583
4753
  }
4584
4754
  render() {
4585
- 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" }, h("div", null, h("strong", null, "Paket:"), this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
4755
+ 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" }, h("div", { class: "cardinfocontent-item" }, h("strong", null, "Paket:"), this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
4586
4756
  h("p", null, h("strong", null, item.split(":")[0] + ": "), " ", item.split(":")[1]) :
4587
- h("p", null, item)))), h("div", { id: "sp" }), (this.rulle) ?
4588
- (h("div", null, h("strong", null, "Rulle:"), this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
4757
+ h("p", null, item)))), (this.rulle) ?
4758
+ (h("div", { class: "cardinfocontent-item" }, h("strong", null, "Rulle:"), this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
4589
4759
  h("p", null, h("strong", null, item.split(":")[0] + ": "), " ", item.split(":")[1]) :
4590
4760
  h("p", null, item))))) : null)));
4591
4761
  }
@@ -4593,7 +4763,7 @@ let PnProductCardInfo$1 = class extends HTMLElement {
4593
4763
  };
4594
4764
  h("pn-icon", { symbol: "align-center", small: "false", color: "black" });
4595
4765
 
4596
- const pnProductCardPriceCss = "pn-product-card-price{margin-top:1em;white-space:nowrap;text-align:center}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 pn-button{width:12.8em;margin-bottom:1em;margin-top:0.5em;font-size:1.25}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.5em}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";
4766
+ const pnProductCardPriceCss = "pn-product-card-price{margin-top:1.6rem;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 pn-button{min-width:12.8em;margin-top:0.8rem;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 h3{-ms-flex-order:1;order:1}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}}pn-product-card-price a{text-decoration:none;color:#005D92}pn-product-card-price a h3{text-decoration:underline}";
4597
4767
 
4598
4768
  let PnProductCardPrice$1 = class extends HTMLElement {
4599
4769
  constructor() {
@@ -4604,7 +4774,7 @@ let PnProductCardPrice$1 = class extends HTMLElement {
4604
4774
  if (!this.amount) {
4605
4775
  return;
4606
4776
  }
4607
- return (this.url) ? (h(Host, null, h("h3", null, (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", { small: "true", icon: "arrow-right", appearance: "secondary", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (h(Host, null, h("h3", null, (this.amount) ? (h("span", null, this.amount)) : null, (this.currency) ? (h("span", null, this.currency)) : null)));
4777
+ return (this.url) ? (h(Host, null, h("h3", null, (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", { small: "true", icon: "open-in-new", appearance: "light", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (h(Host, null, h("h3", null, (this.amount) ? (h("span", null, this.amount)) : null, (this.currency) ? (h("span", null, this.currency)) : null)));
4608
4778
  }
4609
4779
  static get style() { return pnProductCardPriceCss; }
4610
4780
  };
@@ -4713,7 +4883,7 @@ const { state: state$1, onChange: onChange$1 } = createStore({
4713
4883
  }
4714
4884
  });
4715
4885
 
4716
- const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection{max-width:50em;margin:0 auto 1em}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-product-pricelist .weightoption-input{width:5em;position:relative}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
4886
+ const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection{max-width:50em;margin:0 auto 1em}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
4717
4887
 
4718
4888
  let PnFindProductPricelist = class extends HTMLElement {
4719
4889
  constructor() {
@@ -5277,7 +5447,6 @@ const PnBonusProgressbar = /*@__PURE__*/proxyCustomElement(PnBonusProgressbar$1,
5277
5447
  const PnBonusProgressbarLevel = /*@__PURE__*/proxyCustomElement(PnBonusProgressbarLevel$1, [0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]);
5278
5448
  const PnChoiceButton = /*@__PURE__*/proxyCustomElement(PnChoiceButton$1, [4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
5279
5449
  const PnFilterCheckbox = /*@__PURE__*/proxyCustomElement(PnFilterCheckbox$1, [1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
5280
- const PnFilterSearch = /*@__PURE__*/proxyCustomElement(PnFilterSearch$1, [1,"pn-filter-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4]},[[0,"input","inputHandler"]]]);
5281
5450
  const PnFindPrice = /*@__PURE__*/proxyCustomElement(PnfindPrice, [0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]);
5282
5451
  const PnFindPriceResult = /*@__PURE__*/proxyCustomElement(PnfindPriceResult, [0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"weightText":[32]}]);
5283
5452
  const PnFindServiceAndPrice = /*@__PURE__*/proxyCustomElement(PnfindServiceAndPrice, [0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]);
@@ -5288,10 +5457,12 @@ const PnMainnav = /*@__PURE__*/proxyCustomElement(PnMainnav$1, [4,"pn-mainnav",{
5288
5457
  const PnMainnavLevel = /*@__PURE__*/proxyCustomElement(PnMainnavLevel$1, [4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}]);
5289
5458
  const PnMainnavLink = /*@__PURE__*/proxyCustomElement(PnMainnavLink$1, [4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]);
5290
5459
  const PnMainnavList = /*@__PURE__*/proxyCustomElement(PnMainnavList$1, [4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}]);
5460
+ const PnMarketwebInput = /*@__PURE__*/proxyCustomElement(PnMarketwebInput$1, [0,"pn-marketweb-input",{"disabled":[4],"error":[1],"invalid":[4],"helpertext":[1],"label":[1],"placeholder":[1],"inputid":[1],"name":[1],"required":[4],"type":[1025],"autocomplete":[1],"valid":[4],"value":[1],"maxlength":[1],"min":[1],"max":[1],"step":[1],"pattern":[1],"showText":[32]}]);
5461
+ const PnMarketwebSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSearch$1, [1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]);
5291
5462
  const PnMarketwebSitefooter = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$2, [0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]);
5292
- const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]);
5463
+ const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]);
5293
5464
  const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"loginManager":[32],"loggedIn":[32],"toggleButtonText":[32],"username":[32]}]);
5294
- const PnMarketwebSiteheaderSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderSearch$1, [0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"search":[1040]}]);
5465
+ const PnMarketwebSiteheaderSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderSearch$1, [0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}]);
5295
5466
  const PnPexPricefinder = /*@__PURE__*/proxyCustomElement(PnPexPricefinder$1, [0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]);
5296
5467
  const PnProductCard = /*@__PURE__*/proxyCustomElement(PnProductCard$1, [4,"pn-product-card"]);
5297
5468
  const PnProductCardInfo = /*@__PURE__*/proxyCustomElement(PnProductCardInfo$1, [0,"pn-product-card-info",{"rulle":[1],"paket":[1],"label":[1],"text":[1]}]);
@@ -5317,7 +5488,6 @@ const defineCustomElements = (opts) => {
5317
5488
  PnBonusProgressbarLevel,
5318
5489
  PnChoiceButton,
5319
5490
  PnFilterCheckbox,
5320
- PnFilterSearch,
5321
5491
  PnFindPrice,
5322
5492
  PnFindPriceResult,
5323
5493
  PnFindServiceAndPrice,
@@ -5328,6 +5498,8 @@ const defineCustomElements = (opts) => {
5328
5498
  PnMainnavLevel,
5329
5499
  PnMainnavLink,
5330
5500
  PnMainnavList,
5501
+ PnMarketwebInput,
5502
+ PnMarketwebSearch,
5331
5503
  PnMarketwebSitefooter,
5332
5504
  PnMarketwebSiteheader,
5333
5505
  PnMarketwebSiteheaderLogin,
@@ -5358,4 +5530,4 @@ const defineCustomElements = (opts) => {
5358
5530
  }
5359
5531
  };
5360
5532
 
5361
- export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnFilterCheckbox, PnFilterSearch, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderSearch, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileSelector, PnProfileSelectorOption, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, defineCustomElements };
5533
+ export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderSearch, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileSelector, PnProfileSelectorOption, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, defineCustomElements };