@postnord/pn-marketweb-components 2.8.9 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/cjs/{index-b3b6d3c1.js → index-02a77089.js} +6 -0
  2. package/cjs/{index-2e97451f.js → index-8f425aa1.js} +1 -1
  3. package/cjs/index.cjs.js +3 -0
  4. package/cjs/loader.cjs.js +2 -2
  5. package/cjs/pn-address-autofill.cjs.entry.js +1 -1
  6. package/cjs/pn-animated-tile.cjs.entry.js +1 -1
  7. package/cjs/pn-app-banner.cjs.entry.js +1 -1
  8. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  9. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  10. package/cjs/pn-breakpoints.cjs.entry.js +1 -1
  11. package/cjs/pn-chart.cjs.entry.js +1 -1
  12. package/cjs/pn-charts-card.cjs.entry.js +1 -1
  13. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  14. package/cjs/pn-cta-block.cjs.entry.js +1 -1
  15. package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
  16. package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
  17. package/cjs/pn-date-and-time.cjs.entry.js +1 -1
  18. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
  19. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
  20. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
  21. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  22. package/cjs/pn-find-price-result.cjs.entry.js +3 -3
  23. package/cjs/{pn-find-price-store-dca982f0.js → pn-find-price-store-81c07c6b.js} +1 -1
  24. package/cjs/pn-find-price.cjs.entry.js +3 -3
  25. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  26. package/cjs/{pn-find-service-and-price-store-9b8e28fe.js → pn-find-service-and-price-store-3a01c760.js} +1 -1
  27. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  28. package/cjs/pn-hero-block-international.cjs.entry.js +44 -0
  29. package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
  30. package/cjs/pn-line-shape.cjs.entry.js +1 -1
  31. package/cjs/pn-link-list.cjs.entry.js +1 -1
  32. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  33. package/cjs/{pn-mainnav-store-03d31f7e.js → pn-mainnav-store-45fe25ce.js} +1 -1
  34. package/cjs/pn-market-web-components.cjs.js +2 -2
  35. package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
  36. package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
  37. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  38. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
  39. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
  40. package/cjs/{pn-marketweb-siteheader-store-22b4d42d.js → pn-marketweb-siteheader-store-d509d01c.js} +1 -1
  41. package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
  42. package/cjs/pn-media-block.cjs.entry.js +1 -1
  43. package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
  44. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
  45. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +1 -1
  46. package/cjs/pn-multiple-input.cjs.entry.js +1 -1
  47. package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
  48. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  49. package/cjs/pn-play-on-scroll.cjs.entry.js +1 -1
  50. package/cjs/pn-product-card_3.cjs.entry.js +1 -1
  51. package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
  52. package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
  53. package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
  54. package/cjs/pn-product-tile.cjs.entry.js +1 -1
  55. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
  56. package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
  57. package/cjs/{pn-profile-modal-store-6f83ea6b.js → pn-profile-modal-store-527659cb.js} +1 -1
  58. package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
  59. package/cjs/pn-profile-modal.cjs.entry.js +3 -3
  60. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  61. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  62. package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
  63. package/cjs/pn-proxio-findprice.cjs.entry.js +2 -2
  64. package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
  65. package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
  66. package/cjs/pn-quick-cta.cjs.entry.js +1 -1
  67. package/cjs/pn-quote-card.cjs.entry.js +1 -1
  68. package/cjs/pn-scroll_2.cjs.entry.js +1 -1
  69. package/cjs/pn-share-item.cjs.entry.js +1 -1
  70. package/cjs/pn-share.cjs.entry.js +1 -1
  71. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  72. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  73. package/cjs/{pn-sidenav-store-846a26c6.js → pn-sidenav-store-0f543ce6.js} +1 -1
  74. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
  75. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  76. package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
  77. package/cjs/pn-spotlight.cjs.entry.js +1 -1
  78. package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
  79. package/cjs/pn-stats-info.cjs.entry.js +1 -1
  80. package/cjs/pn-teaser-card.cjs.entry.js +1 -1
  81. package/cjs/pn-titletag.cjs.entry.js +1 -1
  82. package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
  83. package/collection/assets/logo-international.svg +1 -0
  84. package/collection/collection-manifest.json +1 -0
  85. package/collection/components/widgets/pn-hero-block-international/assets/logo-international.svg +1 -0
  86. package/collection/components/widgets/pn-hero-block-international/hero-block-international.stories.js +88 -0
  87. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.css +234 -0
  88. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +156 -0
  89. package/collection/index.js +2 -1
  90. package/components/index.d.ts +1 -0
  91. package/components/index.js +4 -0
  92. package/components/pn-hero-block-international.d.ts +11 -0
  93. package/components/pn-hero-block-international.js +65 -0
  94. package/esm/{index-6a2abc18.js → index-493a47cd.js} +1 -1
  95. package/esm/{index-6e611ed9.js → index-a0d3240d.js} +6 -1
  96. package/esm/index.js +2 -0
  97. package/esm/loader.js +3 -3
  98. package/esm/pn-address-autofill.entry.js +1 -1
  99. package/esm/pn-animated-tile.entry.js +1 -1
  100. package/esm/pn-app-banner.entry.js +1 -1
  101. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  102. package/esm/pn-bonus-progressbar.entry.js +1 -1
  103. package/esm/pn-breakpoints.entry.js +1 -1
  104. package/esm/pn-chart.entry.js +1 -1
  105. package/esm/pn-charts-card.entry.js +1 -1
  106. package/esm/pn-choice-button.entry.js +1 -1
  107. package/esm/pn-cta-block.entry.js +1 -1
  108. package/esm/pn-customernumber-selector-option.entry.js +1 -1
  109. package/esm/pn-customernumber-selector.entry.js +1 -1
  110. package/esm/pn-date-and-time.entry.js +1 -1
  111. package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
  112. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  113. package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  114. package/esm/pn-filter-checkbox.entry.js +1 -1
  115. package/esm/pn-find-price-result.entry.js +3 -3
  116. package/esm/{pn-find-price-store-3577991d.js → pn-find-price-store-82418d39.js} +1 -1
  117. package/esm/pn-find-price.entry.js +3 -3
  118. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  119. package/esm/{pn-find-service-and-price-store-a49d61f3.js → pn-find-service-and-price-store-1d62f045.js} +1 -1
  120. package/esm/pn-find-service-and-price.entry.js +3 -3
  121. package/esm/pn-hero-block-international.entry.js +40 -0
  122. package/esm/pn-language-selector_9.entry.js +4 -4
  123. package/esm/pn-line-shape.entry.js +1 -1
  124. package/esm/pn-link-list.entry.js +1 -1
  125. package/esm/pn-mainnav-link.entry.js +3 -3
  126. package/esm/{pn-mainnav-store-3041a893.js → pn-mainnav-store-8babf7a9.js} +1 -1
  127. package/esm/pn-market-web-components.js +3 -3
  128. package/esm/pn-marketweb-input.entry.js +1 -1
  129. package/esm/pn-marketweb-search.entry.js +1 -1
  130. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  131. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
  132. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
  133. package/esm/{pn-marketweb-siteheader-store-f31ee409.js → pn-marketweb-siteheader-store-c64ef3ee.js} +1 -1
  134. package/esm/pn-marketweb-siteheader.entry.js +3 -3
  135. package/esm/pn-media-block.entry.js +1 -1
  136. package/esm/pn-multi-formfield.entry.js +1 -1
  137. package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
  138. package/esm/pn-multi-row-connected-dropdown.entry.js +1 -1
  139. package/esm/pn-multiple-input.entry.js +1 -1
  140. package/esm/pn-parcel-tracker.entry.js +1 -1
  141. package/esm/pn-pex-pricefinder.entry.js +1 -1
  142. package/esm/pn-play-on-scroll.entry.js +1 -1
  143. package/esm/pn-product-card_3.entry.js +1 -1
  144. package/esm/pn-product-pricelist-result.entry.js +2 -2
  145. package/esm/pn-product-pricelist.entry.js +3 -3
  146. package/esm/pn-product-tile-info_2.entry.js +1 -1
  147. package/esm/pn-product-tile.entry.js +1 -1
  148. package/esm/pn-profile-modal-customernumber.entry.js +1 -1
  149. package/esm/pn-profile-modal-profile.entry.js +3 -3
  150. package/esm/{pn-profile-modal-store-17855bd2.js → pn-profile-modal-store-d41bc672.js} +1 -1
  151. package/esm/pn-profile-modal-type.entry.js +3 -3
  152. package/esm/pn-profile-modal.entry.js +3 -3
  153. package/esm/pn-profile-selector-option.entry.js +1 -1
  154. package/esm/pn-profile-selector.entry.js +1 -1
  155. package/esm/pn-proxio-findprice-result.entry.js +1 -1
  156. package/esm/pn-proxio-findprice.entry.js +2 -2
  157. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  158. package/esm/pn-proxio-productcard_4.entry.js +1 -1
  159. package/esm/pn-quick-cta.entry.js +1 -1
  160. package/esm/pn-quote-card.entry.js +1 -1
  161. package/esm/pn-scroll_2.entry.js +1 -1
  162. package/esm/pn-share-item.entry.js +1 -1
  163. package/esm/pn-share.entry.js +1 -1
  164. package/esm/pn-sidenav-level.entry.js +3 -3
  165. package/esm/pn-sidenav-link.entry.js +3 -3
  166. package/esm/{pn-sidenav-store-c4d92fd2.js → pn-sidenav-store-53376add.js} +1 -1
  167. package/esm/pn-sidenav-togglebutton.entry.js +3 -3
  168. package/esm/pn-sidenav.entry.js +3 -3
  169. package/esm/pn-site-footer_3.entry.js +1 -1
  170. package/esm/pn-spotlight.entry.js +1 -1
  171. package/esm/pn-stats-info-data.entry.js +1 -1
  172. package/esm/pn-stats-info.entry.js +1 -1
  173. package/esm/pn-teaser-card.entry.js +1 -1
  174. package/esm/pn-titletag.entry.js +1 -1
  175. package/esm/pn-usp-promoter.entry.js +1 -1
  176. package/esm-es5/{index-6a2abc18.js → index-493a47cd.js} +1 -1
  177. package/esm-es5/index-a0d3240d.js +1 -0
  178. package/esm-es5/index.js +1 -0
  179. package/esm-es5/loader.js +1 -1
  180. package/esm-es5/pn-address-autofill.entry.js +1 -1
  181. package/esm-es5/pn-animated-tile.entry.js +1 -1
  182. package/esm-es5/pn-app-banner.entry.js +1 -1
  183. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  184. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  185. package/esm-es5/pn-breakpoints.entry.js +1 -1
  186. package/esm-es5/pn-chart.entry.js +1 -1
  187. package/esm-es5/pn-charts-card.entry.js +1 -1
  188. package/esm-es5/pn-choice-button.entry.js +1 -1
  189. package/esm-es5/pn-cta-block.entry.js +1 -1
  190. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  191. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  192. package/esm-es5/pn-date-and-time.entry.js +1 -1
  193. package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
  194. package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  195. package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  196. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  197. package/esm-es5/pn-find-price-result.entry.js +1 -1
  198. package/esm-es5/{pn-find-price-store-3577991d.js → pn-find-price-store-82418d39.js} +1 -1
  199. package/esm-es5/pn-find-price.entry.js +1 -1
  200. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  201. package/esm-es5/{pn-find-service-and-price-store-a49d61f3.js → pn-find-service-and-price-store-1d62f045.js} +1 -1
  202. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  203. package/esm-es5/pn-hero-block-international.entry.js +1 -0
  204. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  205. package/esm-es5/pn-line-shape.entry.js +1 -1
  206. package/esm-es5/pn-link-list.entry.js +1 -1
  207. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  208. package/esm-es5/{pn-mainnav-store-3041a893.js → pn-mainnav-store-8babf7a9.js} +1 -1
  209. package/esm-es5/pn-market-web-components.js +1 -1
  210. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  211. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  212. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  213. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
  214. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  215. package/esm-es5/pn-marketweb-siteheader-store-c64ef3ee.js +1 -0
  216. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  217. package/esm-es5/pn-media-block.entry.js +1 -1
  218. package/esm-es5/pn-multi-formfield.entry.js +1 -1
  219. package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
  220. package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
  221. package/esm-es5/pn-multiple-input.entry.js +1 -1
  222. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  223. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  224. package/esm-es5/pn-play-on-scroll.entry.js +1 -1
  225. package/esm-es5/pn-product-card_3.entry.js +1 -1
  226. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  227. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  228. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  229. package/esm-es5/pn-product-tile.entry.js +1 -1
  230. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  231. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  232. package/esm-es5/{pn-profile-modal-store-17855bd2.js → pn-profile-modal-store-d41bc672.js} +1 -1
  233. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  234. package/esm-es5/pn-profile-modal.entry.js +1 -1
  235. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  236. package/esm-es5/pn-profile-selector.entry.js +1 -1
  237. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
  238. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  239. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  240. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  241. package/esm-es5/pn-quick-cta.entry.js +1 -1
  242. package/esm-es5/pn-quote-card.entry.js +1 -1
  243. package/esm-es5/pn-scroll_2.entry.js +1 -1
  244. package/esm-es5/pn-share-item.entry.js +1 -1
  245. package/esm-es5/pn-share.entry.js +1 -1
  246. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  247. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  248. package/esm-es5/{pn-sidenav-store-c4d92fd2.js → pn-sidenav-store-53376add.js} +1 -1
  249. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  250. package/esm-es5/pn-sidenav.entry.js +1 -1
  251. package/esm-es5/pn-site-footer_3.entry.js +1 -1
  252. package/esm-es5/pn-spotlight.entry.js +1 -1
  253. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  254. package/esm-es5/pn-stats-info.entry.js +1 -1
  255. package/esm-es5/pn-teaser-card.entry.js +1 -1
  256. package/esm-es5/pn-titletag.entry.js +1 -1
  257. package/esm-es5/pn-usp-promoter.entry.js +1 -1
  258. package/package.json +3 -3
  259. package/pn-market-web-components/index.esm.js +1 -0
  260. package/pn-market-web-components/{p-bda66a3c.js → p-00732a77.js} +1 -1
  261. package/pn-market-web-components/p-01ae001f.system.js +1 -0
  262. package/pn-market-web-components/{p-376b860e.system.entry.js → p-0602b063.system.entry.js} +1 -1
  263. package/pn-market-web-components/{p-24c54547.entry.js → p-076ed92d.entry.js} +1 -1
  264. package/pn-market-web-components/{p-fa4c3121.system.entry.js → p-08b41945.system.entry.js} +1 -1
  265. package/pn-market-web-components/{p-1c43dc8d.system.entry.js → p-09cf5891.system.entry.js} +1 -1
  266. package/pn-market-web-components/{p-6c8fbcda.entry.js → p-0c46179e.entry.js} +1 -1
  267. package/pn-market-web-components/{p-9508d1b3.system.entry.js → p-0cdbb7a7.system.entry.js} +1 -1
  268. package/pn-market-web-components/{p-a990da8b.system.js → p-1295a661.system.js} +1 -1
  269. package/pn-market-web-components/{p-7a2d4f1a.system.entry.js → p-148adccc.system.entry.js} +1 -1
  270. package/pn-market-web-components/{p-8ab74cc4.entry.js → p-1567bc28.entry.js} +1 -1
  271. package/pn-market-web-components/{p-5d253c27.system.entry.js → p-17c4e4e0.system.entry.js} +1 -1
  272. package/pn-market-web-components/p-17dc52e5.entry.js +1 -0
  273. package/pn-market-web-components/{p-726f1ba5.entry.js → p-18e9aa4b.entry.js} +1 -1
  274. package/pn-market-web-components/{p-412669a4.system.entry.js → p-1c0c5a98.system.entry.js} +1 -1
  275. package/pn-market-web-components/{p-819494d3.entry.js → p-1e367982.entry.js} +1 -1
  276. package/pn-market-web-components/{p-fe877a0f.entry.js → p-1f36b761.entry.js} +1 -1
  277. package/pn-market-web-components/{p-dc25c859.system.js → p-21b69581.system.js} +1 -1
  278. package/pn-market-web-components/p-21f0fcb3.entry.js +1 -0
  279. package/pn-market-web-components/{p-81b5430c.system.entry.js → p-25383f0a.system.entry.js} +1 -1
  280. package/pn-market-web-components/{p-9dc2163c.entry.js → p-26fcb229.entry.js} +1 -1
  281. package/pn-market-web-components/{p-6ca7eb0a.system.entry.js → p-29b0f0d5.system.entry.js} +1 -1
  282. package/pn-market-web-components/p-2f5ffae7.js +1 -0
  283. package/pn-market-web-components/{p-7542a277.entry.js → p-2f9da449.entry.js} +1 -1
  284. package/pn-market-web-components/{p-4e7a470b.entry.js → p-305edca2.entry.js} +1 -1
  285. package/pn-market-web-components/p-34fde26b.entry.js +1 -0
  286. package/pn-market-web-components/{p-d9d3078b.system.entry.js → p-37b3cf36.system.entry.js} +1 -1
  287. package/pn-market-web-components/{p-2b374219.system.entry.js → p-3822863e.system.entry.js} +1 -1
  288. package/pn-market-web-components/{p-404703bc.system.entry.js → p-38c7d8d6.system.entry.js} +1 -1
  289. package/pn-market-web-components/{p-346c3772.system.entry.js → p-395105d0.system.entry.js} +1 -1
  290. package/pn-market-web-components/p-39bfb523.system.entry.js +1 -0
  291. package/pn-market-web-components/{p-ee42154f.system.entry.js → p-3a6f96bc.system.entry.js} +1 -1
  292. package/pn-market-web-components/p-3afcafee.system.js +2 -0
  293. package/pn-market-web-components/{p-2ed45e96.system.entry.js → p-3b2d5e43.system.entry.js} +1 -1
  294. package/pn-market-web-components/{p-739f296c.system.entry.js → p-3f5d2535.system.entry.js} +1 -1
  295. package/pn-market-web-components/{p-5cf6111c.system.entry.js → p-41d983e9.system.entry.js} +1 -1
  296. package/pn-market-web-components/{p-71a0acac.js → p-41df2624.js} +1 -1
  297. package/pn-market-web-components/{p-978a7be6.system.entry.js → p-42e969c9.system.entry.js} +1 -1
  298. package/pn-market-web-components/{p-4c38b1b5.system.entry.js → p-4335124d.system.entry.js} +1 -1
  299. package/pn-market-web-components/{p-d15bca21.system.entry.js → p-466fc9e7.system.entry.js} +1 -1
  300. package/pn-market-web-components/{p-79459743.system.js → p-46abde43.system.js} +1 -1
  301. package/pn-market-web-components/{p-bea9522f.entry.js → p-48b4f6e3.entry.js} +1 -1
  302. package/pn-market-web-components/{p-64df1c4d.entry.js → p-49cb83ed.entry.js} +1 -1
  303. package/pn-market-web-components/{p-38b16c1a.entry.js → p-4c68654b.entry.js} +1 -1
  304. package/pn-market-web-components/p-4c7305d9.entry.js +1 -0
  305. package/pn-market-web-components/{p-732d5bf1.entry.js → p-4d2fe840.entry.js} +1 -1
  306. package/pn-market-web-components/{p-16bb93bf.system.entry.js → p-4f094023.system.entry.js} +1 -1
  307. package/pn-market-web-components/{p-95189aa2.system.entry.js → p-4f0f4af1.system.entry.js} +1 -1
  308. package/pn-market-web-components/{p-a57848a9.system.entry.js → p-5033c1d0.system.entry.js} +1 -1
  309. package/pn-market-web-components/{p-93e4245f.entry.js → p-530114f7.entry.js} +1 -1
  310. package/pn-market-web-components/{p-3e6db900.system.entry.js → p-534d6231.system.entry.js} +1 -1
  311. package/pn-market-web-components/{p-78ee80d4.system.entry.js → p-55ac6162.system.entry.js} +1 -1
  312. package/pn-market-web-components/{p-a1294675.system.entry.js → p-5a5a7f35.system.entry.js} +1 -1
  313. package/pn-market-web-components/p-5b174388.system.js +1 -0
  314. package/pn-market-web-components/{p-e197f20b.entry.js → p-5c50a8d4.entry.js} +1 -1
  315. package/pn-market-web-components/{p-4fe46903.system.entry.js → p-5ce111c1.system.entry.js} +1 -1
  316. package/pn-market-web-components/{p-d9292bd0.system.entry.js → p-5dcf78c2.system.entry.js} +1 -1
  317. package/pn-market-web-components/{p-8b471f23.entry.js → p-5f4a6e6f.entry.js} +1 -1
  318. package/pn-market-web-components/p-5fd13ebd.entry.js +1 -0
  319. package/pn-market-web-components/{p-aa42b255.system.entry.js → p-60b7bbae.system.entry.js} +1 -1
  320. package/pn-market-web-components/{p-46088d8c.entry.js → p-61fe58e5.entry.js} +1 -1
  321. package/pn-market-web-components/{p-5b535af5.entry.js → p-627745be.entry.js} +1 -1
  322. package/pn-market-web-components/p-6bcc9823.js +1 -0
  323. package/pn-market-web-components/{p-51fc7a64.system.entry.js → p-6caeecd6.system.entry.js} +1 -1
  324. package/pn-market-web-components/{p-03593c2c.system.entry.js → p-6dc0d4d5.system.entry.js} +1 -1
  325. package/pn-market-web-components/{p-991eef67.entry.js → p-6e5a6fd5.entry.js} +1 -1
  326. package/pn-market-web-components/{p-0ddc464c.entry.js → p-6ec34924.entry.js} +1 -1
  327. package/pn-market-web-components/{p-e56093da.entry.js → p-6ec7ebdd.entry.js} +1 -1
  328. package/pn-market-web-components/{p-4ee4767f.system.entry.js → p-6ed3d5b5.system.entry.js} +1 -1
  329. package/pn-market-web-components/{p-9b9b9b56.entry.js → p-6edab851.entry.js} +1 -1
  330. package/pn-market-web-components/p-6f853c29.system.js +1 -0
  331. package/pn-market-web-components/{p-c94586e5.system.entry.js → p-705fa518.system.entry.js} +1 -1
  332. package/pn-market-web-components/{p-7cee798b.system.entry.js → p-71efc3d1.system.entry.js} +1 -1
  333. package/pn-market-web-components/{p-a19b539f.system.entry.js → p-7aef368a.system.entry.js} +1 -1
  334. package/pn-market-web-components/{p-1aa2008f.entry.js → p-7b12e564.entry.js} +1 -1
  335. package/pn-market-web-components/{p-3f96b45f.entry.js → p-7d57133a.entry.js} +1 -1
  336. package/pn-market-web-components/{p-a9e89ca3.entry.js → p-7d80dfb5.entry.js} +1 -1
  337. package/pn-market-web-components/{p-a69a0544.entry.js → p-80af2512.entry.js} +1 -1
  338. package/pn-market-web-components/p-80ba399a.entry.js +1 -0
  339. package/pn-market-web-components/{p-ef137f0d.js → p-80da3dee.js} +1 -1
  340. package/pn-market-web-components/{p-e251b0c2.system.entry.js → p-8328a20d.system.entry.js} +1 -1
  341. package/pn-market-web-components/{p-e33a8c98.entry.js → p-84bbf052.entry.js} +1 -1
  342. package/pn-market-web-components/{p-1cfc9d10.system.entry.js → p-88e076d2.system.entry.js} +1 -1
  343. package/pn-market-web-components/p-897ced52.entry.js +1 -0
  344. package/pn-market-web-components/{p-b18ce512.entry.js → p-89dffcab.entry.js} +1 -1
  345. package/pn-market-web-components/p-8a88ce80.entry.js +1 -0
  346. package/pn-market-web-components/{p-be43040b.entry.js → p-8b2d9d1c.entry.js} +1 -1
  347. package/pn-market-web-components/p-8bcdd94a.entry.js +1 -0
  348. package/pn-market-web-components/{p-76563549.entry.js → p-8c41af0e.entry.js} +1 -1
  349. package/pn-market-web-components/{p-20f09ba2.system.js → p-8f2fe9e8.system.js} +1 -1
  350. package/pn-market-web-components/{p-66775d88.system.entry.js → p-8f96be01.system.entry.js} +1 -1
  351. package/pn-market-web-components/{p-b1b0f5e9.system.entry.js → p-90062de9.system.entry.js} +1 -1
  352. package/pn-market-web-components/{p-03f5acf3.system.js → p-92b0b65b.system.js} +1 -1
  353. package/pn-market-web-components/{p-3076020a.system.entry.js → p-96e67510.system.entry.js} +1 -1
  354. package/pn-market-web-components/{p-16f566e4.system.entry.js → p-9717acbc.system.entry.js} +1 -1
  355. package/pn-market-web-components/p-9aa8662d.entry.js +1 -0
  356. package/pn-market-web-components/{p-bc22cb7b.entry.js → p-9eab4b70.entry.js} +1 -1
  357. package/pn-market-web-components/{p-ef910604.system.entry.js → p-9eeb8c4d.system.entry.js} +1 -1
  358. package/pn-market-web-components/{p-a1c5431f.entry.js → p-9fa40b1c.entry.js} +1 -1
  359. package/pn-market-web-components/{p-6bdbfdf2.system.entry.js → p-a224b772.system.entry.js} +1 -1
  360. package/pn-market-web-components/p-a2ed2bf6.entry.js +1 -0
  361. package/pn-market-web-components/{p-6b98aefa.system.entry.js → p-a3b9c1ea.system.entry.js} +1 -1
  362. package/pn-market-web-components/{p-8a8fe9b8.system.entry.js → p-a4d5f6f3.system.entry.js} +1 -1
  363. package/pn-market-web-components/{p-54dfc74e.entry.js → p-a601780b.entry.js} +1 -1
  364. package/pn-market-web-components/{p-65e9ed4b.system.entry.js → p-a78eb53d.system.entry.js} +1 -1
  365. package/pn-market-web-components/{p-07c04e4a.entry.js → p-aa11858a.entry.js} +1 -1
  366. package/pn-market-web-components/p-ab1ccd8a.js +1 -0
  367. package/pn-market-web-components/{p-2ea64615.system.entry.js → p-ab473ac8.system.entry.js} +1 -1
  368. package/pn-market-web-components/{p-5a74b363.system.entry.js → p-ac561b5f.system.entry.js} +1 -1
  369. package/pn-market-web-components/{p-1d84acae.entry.js → p-ad4d4140.entry.js} +1 -1
  370. package/pn-market-web-components/{p-b7cdb982.system.entry.js → p-ad7e8dd8.system.entry.js} +1 -1
  371. package/pn-market-web-components/{p-e11eb99c.system.entry.js → p-b07b59e2.system.entry.js} +1 -1
  372. package/pn-market-web-components/p-b26f27f4.js +1 -0
  373. package/pn-market-web-components/{p-a179066e.system.js → p-b37b5e36.system.js} +1 -1
  374. package/pn-market-web-components/{p-21c6ed35.entry.js → p-bf6689c7.entry.js} +1 -1
  375. package/pn-market-web-components/{p-70f338c2.system.entry.js → p-c07a23df.system.entry.js} +1 -1
  376. package/pn-market-web-components/{p-6131fdb9.entry.js → p-c1738e39.entry.js} +1 -1
  377. package/pn-market-web-components/{p-c6171d29.entry.js → p-c1eb4135.entry.js} +1 -1
  378. package/pn-market-web-components/{p-8b189558.entry.js → p-c3781a59.entry.js} +1 -1
  379. package/pn-market-web-components/{p-6368e239.system.entry.js → p-c3b85be6.system.entry.js} +1 -1
  380. package/pn-market-web-components/p-c4cd4903.entry.js +1 -0
  381. package/pn-market-web-components/{p-a544b937.entry.js → p-c58a42f2.entry.js} +1 -1
  382. package/pn-market-web-components/{p-d8b3f505.entry.js → p-c6d425d4.entry.js} +1 -1
  383. package/pn-market-web-components/{p-326d13ca.system.entry.js → p-c80c9158.system.entry.js} +1 -1
  384. package/pn-market-web-components/{p-bf85df01.system.entry.js → p-c82923a7.system.entry.js} +1 -1
  385. package/pn-market-web-components/p-c8b9f2e6.entry.js +1 -0
  386. package/pn-market-web-components/{p-962292bf.entry.js → p-c97909e0.entry.js} +1 -1
  387. package/pn-market-web-components/{p-72526890.entry.js → p-cbb83e27.entry.js} +1 -1
  388. package/pn-market-web-components/p-cf665abb.js +2 -0
  389. package/pn-market-web-components/{p-17e04222.entry.js → p-cfe9c909.entry.js} +1 -1
  390. package/pn-market-web-components/{p-7b7ca449.system.entry.js → p-d26c007c.system.entry.js} +1 -1
  391. package/pn-market-web-components/{p-9b758fa4.system.entry.js → p-db914a4b.system.entry.js} +1 -1
  392. package/pn-market-web-components/{p-3542525e.system.entry.js → p-dcf7b3fc.system.entry.js} +1 -1
  393. package/pn-market-web-components/{p-f9e862db.entry.js → p-df1142cc.entry.js} +1 -1
  394. package/pn-market-web-components/{p-a5eaa1b6.system.entry.js → p-df33a4a6.system.entry.js} +1 -1
  395. package/pn-market-web-components/{p-ceddef4d.entry.js → p-dfffbb3d.entry.js} +1 -1
  396. package/pn-market-web-components/{p-fc27fb49.entry.js → p-e0a868a6.entry.js} +1 -1
  397. package/pn-market-web-components/{p-9f49664e.system.entry.js → p-e1d6f2b2.system.entry.js} +1 -1
  398. package/pn-market-web-components/{p-bfee099c.system.entry.js → p-e281e7dc.system.entry.js} +1 -1
  399. package/pn-market-web-components/{p-ac275a13.entry.js → p-e3b61a83.entry.js} +1 -1
  400. package/pn-market-web-components/{p-e0cb8b29.entry.js → p-e4549959.entry.js} +1 -1
  401. package/pn-market-web-components/{p-ad1f9612.system.entry.js → p-e4d68a16.system.entry.js} +1 -1
  402. package/pn-market-web-components/{p-97281fd6.entry.js → p-e57c16c9.entry.js} +1 -1
  403. package/pn-market-web-components/{p-894178a2.system.entry.js → p-ed1aa2f7.system.entry.js} +1 -1
  404. package/pn-market-web-components/p-ed762a04.entry.js +1 -0
  405. package/pn-market-web-components/p-eda2b0f9.entry.js +1 -0
  406. package/pn-market-web-components/{p-e372332f.system.entry.js → p-ee7de540.system.entry.js} +1 -1
  407. package/pn-market-web-components/{p-93e3b8cc.entry.js → p-ee7e1e28.entry.js} +1 -1
  408. package/pn-market-web-components/{p-7613b490.system.entry.js → p-ef420f01.system.entry.js} +1 -1
  409. package/pn-market-web-components/{p-7902d31a.system.entry.js → p-effe3f0b.system.entry.js} +1 -1
  410. package/pn-market-web-components/{p-745eef3e.entry.js → p-f11a88f5.entry.js} +1 -1
  411. package/pn-market-web-components/{p-d3d78acd.system.entry.js → p-f1d6421f.system.entry.js} +1 -1
  412. package/pn-market-web-components/{p-02dba6d3.system.entry.js → p-f2a0ac91.system.entry.js} +1 -1
  413. package/pn-market-web-components/{p-7480e40c.entry.js → p-f301e959.entry.js} +1 -1
  414. package/pn-market-web-components/{p-73ac15b9.system.entry.js → p-f3a3836b.system.entry.js} +1 -1
  415. package/pn-market-web-components/{p-f91eb6a9.system.entry.js → p-f56072ab.system.entry.js} +1 -1
  416. package/pn-market-web-components/{p-abef3453.entry.js → p-f5bacc7a.entry.js} +1 -1
  417. package/pn-market-web-components/{p-2c29062d.entry.js → p-f94b2f7c.entry.js} +1 -1
  418. package/pn-market-web-components/{p-1d088d9c.entry.js → p-fbd8d16a.entry.js} +1 -1
  419. package/pn-market-web-components/{p-97a9ce4f.system.entry.js → p-fc83cc7b.system.entry.js} +1 -1
  420. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  421. package/pn-market-web-components/pn-market-web-components.js +1 -1
  422. package/types/components/widgets/pn-hero-block-international/pn-hero-block-international.d.ts +14 -0
  423. package/types/components.d.ts +25 -0
  424. package/umd/pn-marketweb-init.js +1 -1
  425. package/umd/pn-marketweb-salesforce.js +1 -1
  426. package/esm-es5/index-6e611ed9.js +0 -1
  427. package/esm-es5/pn-marketweb-siteheader-store-f31ee409.js +0 -1
  428. package/pn-market-web-components/p-03981c36.entry.js +0 -1
  429. package/pn-market-web-components/p-0cb0317e.system.js +0 -1
  430. package/pn-market-web-components/p-1caef6e7.js +0 -1
  431. package/pn-market-web-components/p-1cd40ab8.js +0 -1
  432. package/pn-market-web-components/p-250b0083.entry.js +0 -1
  433. package/pn-market-web-components/p-326d57d0.entry.js +0 -1
  434. package/pn-market-web-components/p-3b5df6ae.entry.js +0 -1
  435. package/pn-market-web-components/p-40fc893a.js +0 -1
  436. package/pn-market-web-components/p-4c4f7ab0.entry.js +0 -1
  437. package/pn-market-web-components/p-4f38aeea.entry.js +0 -1
  438. package/pn-market-web-components/p-50ea2036.system.js +0 -1
  439. package/pn-market-web-components/p-5a55d3ef.js +0 -2
  440. package/pn-market-web-components/p-613c6df4.entry.js +0 -1
  441. package/pn-market-web-components/p-626a68dc.system.js +0 -2
  442. package/pn-market-web-components/p-68e68770.entry.js +0 -1
  443. package/pn-market-web-components/p-8c9da166.entry.js +0 -1
  444. package/pn-market-web-components/p-90dafa04.entry.js +0 -1
  445. package/pn-market-web-components/p-9a6ee73f.js +0 -1
  446. package/pn-market-web-components/p-c475abe8.system.js +0 -1
  447. package/pn-market-web-components/p-cdf31352.entry.js +0 -1
  448. package/pn-market-web-components/p-e28fcf9c.entry.js +0 -1
  449. package/pn-market-web-components/p-f550b051.entry.js +0 -1
  450. package/pn-market-web-components/p-ffb197d9.entry.js +0 -1
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function l(e){try{s(n.next(e))}catch(t){o(t)}}function a(e){try{s(n["throw"](e))}catch(t){o(t)}}function s(e){e.done?i(e.value):r(e.value).then(l,a)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(t){return s([e,t])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(l&&(l=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(s){a=[6,s];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,a as Host,g as getElement}from"./index-6e611ed9.js";var translations={sv:{heading:"Prisindikation med PEX Bud",labelFrom:"Från postkod",labelTo:"Till postkod",zipPlaceholder:"Ex. 12831",labelWeight:"Vikt (i kilo)",weightPlaceholder:"Ex. 1000",labelWhen:"När",submitButtonText:"Beräkna pris"},en:{heading:"Calculate price with PEX Bud",labelFrom:"From zip",labelTo:"To zip",zipPlaceholder:"Ex. 12831",labelWeight:"Weight (in kilo)",weightPlaceholder:"Ex. 1000",labelWhen:"When",submitButtonText:"Calculate price"}};var pnPexPricefinderCss=".pex-pricefinder-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.pex-pricefinder-top pn-illustration{width:5.5rem;height:5.5rem;margin-right:1.6rem}.pex-pricefinder-form{margin:1.6rem 0 0 0;padding:0;border:0}.pex-pricefinder-form fieldset{margin:0;padding:0;border:0}.pex-pricefinder-form fieldset+fieldset{margin-top:1.6rem}.pex-pricefinder-form fieldset>div{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:1em}.pex-pricefinder-form fieldset>div>*{-ms-flex-positive:1;flex-grow:1;width:100%}.pex-pricefinder-form pn-button{-ms-flex-item-align:end;align-self:end;margin-left:auto}.pex-pricefinder-form .datepicker{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.pex-pricefinder-form .datepicker label{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;cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.pex-pricefinder-form .datepicker pn-date-picker{width:100%}.pex-pricefinder-response{margin-top:2.4rem;text-align:center;font-size:2.4em}";var PnPexPricefinder=function(){function e(e){registerInstance(this,e);this.language="sv";this.currency="Kr";this.apiUrl="/api/pex/order";this.i18n=translations.sv;this.fromzip=null;this.tozip=null;this.weight=1;this.when="";this.response=null}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.setInitialTime();this.checkParameters();this.setLanguage();return[2]}))}))};e.prototype.setInitialTime=function(){var e=new Date;e.setHours(e.getHours()+1);e.setMinutes(0);var t=e.toLocaleString("sv",{timeZoneName:"short"}).split(" ");this.when="".concat(t[0],"T").concat(t[1].substring(0,5))};e.prototype.checkParameters=function(){var e=this;var t=new URLSearchParams(window.location.href);if(!t){return}var i=["fromzip","tozip","weight","when"];i.forEach((function(i){if(t.get(i)){e[i]=t.get(i)}}))};e.prototype.setLanguage=function(){if(translations[this.language]){this.i18n=translations[this.language]}};e.prototype.onSubmit=function(e){e.preventDefault();var t=new FormData(e.target);var i=this.compileRequestQuery(t);this.fetchResult(i)};e.prototype.compileRequestQuery=function(e){var t={from:e.get("fromzip"),to:e.get("tozip"),weight:e.get("weight"),when:e.get("when")};if(!t.when){t.when=this.hostElement.querySelector("input.date-input").value}if(!e.get("fromzip")||!e.get("tozip")||!e.get("weight")){console.error("Form data is not compliant");return}return t};e.prototype.fetchResult=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(r){switch(r.label){case 0:this.response=null;t=new URLSearchParams(e);return[4,fetch("".concat(this.apiUrl,"?").concat(t.toString()),{method:"get",headers:{"Content-Type":"application/json"}}).catch(this.onFetchError.bind(this))];case 1:i=r.sent();return[4,i.json().catch(this.onFetchError.bind(this))];case 2:n=r.sent();if(!!n)return[3,5];return[4,import("./mockresponse-e2c08e66.js")];case 3:return[4,r.sent().default];case 4:n=r.sent();r.label=5;case 5:if(n){this.response=n}return[2]}}))}))};e.prototype.onFetchError=function(e){console.error("onFetchError(error",e)};e.prototype.render=function(){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)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnPexPricefinder.style=pnPexPricefinderCss;export{PnPexPricefinder as pn_pex_pricefinder};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function l(e){try{s(n.next(e))}catch(t){o(t)}}function a(e){try{s(n["throw"](e))}catch(t){o(t)}}function s(e){e.done?i(e.value):r(e.value).then(l,a)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(t){return s([e,t])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(l&&(l=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(s){a=[6,s];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,e as Host,g as getElement}from"./index-a0d3240d.js";var translations={sv:{heading:"Prisindikation med PEX Bud",labelFrom:"Från postkod",labelTo:"Till postkod",zipPlaceholder:"Ex. 12831",labelWeight:"Vikt (i kilo)",weightPlaceholder:"Ex. 1000",labelWhen:"När",submitButtonText:"Beräkna pris"},en:{heading:"Calculate price with PEX Bud",labelFrom:"From zip",labelTo:"To zip",zipPlaceholder:"Ex. 12831",labelWeight:"Weight (in kilo)",weightPlaceholder:"Ex. 1000",labelWhen:"When",submitButtonText:"Calculate price"}};var pnPexPricefinderCss=".pex-pricefinder-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.pex-pricefinder-top pn-illustration{width:5.5rem;height:5.5rem;margin-right:1.6rem}.pex-pricefinder-form{margin:1.6rem 0 0 0;padding:0;border:0}.pex-pricefinder-form fieldset{margin:0;padding:0;border:0}.pex-pricefinder-form fieldset+fieldset{margin-top:1.6rem}.pex-pricefinder-form fieldset>div{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:1em}.pex-pricefinder-form fieldset>div>*{-ms-flex-positive:1;flex-grow:1;width:100%}.pex-pricefinder-form pn-button{-ms-flex-item-align:end;align-self:end;margin-left:auto}.pex-pricefinder-form .datepicker{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}.pex-pricefinder-form .datepicker label{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;cursor:pointer;-webkit-transition:color 0.2s;transition:color 0.2s}.pex-pricefinder-form .datepicker pn-date-picker{width:100%}.pex-pricefinder-response{margin-top:2.4rem;text-align:center;font-size:2.4em}";var PnPexPricefinder=function(){function e(e){registerInstance(this,e);this.language="sv";this.currency="Kr";this.apiUrl="/api/pex/order";this.i18n=translations.sv;this.fromzip=null;this.tozip=null;this.weight=1;this.when="";this.response=null}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.setInitialTime();this.checkParameters();this.setLanguage();return[2]}))}))};e.prototype.setInitialTime=function(){var e=new Date;e.setHours(e.getHours()+1);e.setMinutes(0);var t=e.toLocaleString("sv",{timeZoneName:"short"}).split(" ");this.when="".concat(t[0],"T").concat(t[1].substring(0,5))};e.prototype.checkParameters=function(){var e=this;var t=new URLSearchParams(window.location.href);if(!t){return}var i=["fromzip","tozip","weight","when"];i.forEach((function(i){if(t.get(i)){e[i]=t.get(i)}}))};e.prototype.setLanguage=function(){if(translations[this.language]){this.i18n=translations[this.language]}};e.prototype.onSubmit=function(e){e.preventDefault();var t=new FormData(e.target);var i=this.compileRequestQuery(t);this.fetchResult(i)};e.prototype.compileRequestQuery=function(e){var t={from:e.get("fromzip"),to:e.get("tozip"),weight:e.get("weight"),when:e.get("when")};if(!t.when){t.when=this.hostElement.querySelector("input.date-input").value}if(!e.get("fromzip")||!e.get("tozip")||!e.get("weight")){console.error("Form data is not compliant");return}return t};e.prototype.fetchResult=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(r){switch(r.label){case 0:this.response=null;t=new URLSearchParams(e);return[4,fetch("".concat(this.apiUrl,"?").concat(t.toString()),{method:"get",headers:{"Content-Type":"application/json"}}).catch(this.onFetchError.bind(this))];case 1:i=r.sent();return[4,i.json().catch(this.onFetchError.bind(this))];case 2:n=r.sent();if(!!n)return[3,5];return[4,import("./mockresponse-e2c08e66.js")];case 3:return[4,r.sent().default];case 4:n=r.sent();r.label=5;case 5:if(n){this.response=n}return[2]}}))}))};e.prototype.onFetchError=function(e){console.error("onFetchError(error",e)};e.prototype.render=function(){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)};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnPexPricefinder.style=pnPexPricefinderCss;export{PnPexPricefinder as pn_pex_pricefinder};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-6e611ed9.js";import{v as v4}from"./v4-f450efa7.js";var pnPlayOnScrollCss="pn-play-on-scroll pn-scroll [slot=scroll-affected]{position:relative;display:-ms-flexbox;display:flex}pn-play-on-scroll pn-scroll [slot=scroll-affected] video{width:100%}pn-play-on-scroll pn-scroll [slot=scroll-affected] video:hover{cursor:pointer}";var defaultObserverOptions={root:null,threshold:0,rootMargin:"0px 0px 0px 0px"};var onIntersecting=function(e,t,s){if(!t){e&&e.play();s(false)}};var onNotIntersecting=function(e,t){e&&e.pause();t(true)};var PnPlayOnScroll=function(){function e(e){var t=this;registerInstance(this,e);this.testAdditionalParamIntoCallback=true;this.handlePlayPauseClicked=function(){if(t.video.paused||t.video.ended){t.video.play();t.isManuallyPaused=false;t.isPaused=false}else{t.video.pause();t.isManuallyPaused=true;t.isPaused=true}};this.togglePaused=function(e){t.isPaused=e};this.videoSrc="";this.observerOptions=defaultObserverOptions;this.showOverlay=false;this.videoId="";this.isManuallyPaused=false;this.isPaused=false}e.prototype.generateUniqueId=function(){return v4()};e.prototype.componentWillLoad=function(){this.videoId=this.generateUniqueId()};e.prototype.componentDidLoad=function(){this.video=document.getElementById(this.videoId);this.video.addEventListener("click",this.handlePlayPauseClicked)};e.prototype.render=function(){var e=this;return h(Host,null,h("pn-scroll",{intersectFunc:function(){return onIntersecting(e.video,e.isManuallyPaused,e.togglePaused)},notIntersectFunc:function(){return onNotIntersecting(e.video,e.togglePaused)},shouldLoop:true,behaviourClasses:"some-behaviour-class",observerOptions:this.observerOptions},h("div",{slot:"scroll-affected"},h("video",{muted:true,autoPlay:true,id:"".concat(this.videoId)},h("source",{src:this.videoSrc,type:"video/mp4"})),h("pn-video-overlay",{showOverlay:this.showOverlay,isPaused:this.isManuallyPaused||this.isPaused,onPlayPauseClicked:this.handlePlayPauseClicked}))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnPlayOnScroll.style=pnPlayOnScrollCss;export{PnPlayOnScroll as pn_play_on_scroll};
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-a0d3240d.js";import{v as v4}from"./v4-f450efa7.js";var pnPlayOnScrollCss="pn-play-on-scroll pn-scroll [slot=scroll-affected]{position:relative;display:-ms-flexbox;display:flex}pn-play-on-scroll pn-scroll [slot=scroll-affected] video{width:100%}pn-play-on-scroll pn-scroll [slot=scroll-affected] video:hover{cursor:pointer}";var defaultObserverOptions={root:null,threshold:0,rootMargin:"0px 0px 0px 0px"};var onIntersecting=function(e,t,s){if(!t){e&&e.play();s(false)}};var onNotIntersecting=function(e,t){e&&e.pause();t(true)};var PnPlayOnScroll=function(){function e(e){var t=this;registerInstance(this,e);this.testAdditionalParamIntoCallback=true;this.handlePlayPauseClicked=function(){if(t.video.paused||t.video.ended){t.video.play();t.isManuallyPaused=false;t.isPaused=false}else{t.video.pause();t.isManuallyPaused=true;t.isPaused=true}};this.togglePaused=function(e){t.isPaused=e};this.videoSrc="";this.observerOptions=defaultObserverOptions;this.showOverlay=false;this.videoId="";this.isManuallyPaused=false;this.isPaused=false}e.prototype.generateUniqueId=function(){return v4()};e.prototype.componentWillLoad=function(){this.videoId=this.generateUniqueId()};e.prototype.componentDidLoad=function(){this.video=document.getElementById(this.videoId);this.video.addEventListener("click",this.handlePlayPauseClicked)};e.prototype.render=function(){var e=this;return h(Host,null,h("pn-scroll",{intersectFunc:function(){return onIntersecting(e.video,e.isManuallyPaused,e.togglePaused)},notIntersectFunc:function(){return onNotIntersecting(e.video,e.togglePaused)},shouldLoop:true,behaviourClasses:"some-behaviour-class",observerOptions:this.observerOptions},h("div",{slot:"scroll-affected"},h("video",{muted:true,autoPlay:true,id:"".concat(this.videoId)},h("source",{src:this.videoSrc,type:"video/mp4"})),h("pn-video-overlay",{showOverlay:this.showOverlay,isPaused:this.isManuallyPaused||this.isPaused,onPlayPauseClicked:this.handlePlayPauseClicked}))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnPlayOnScroll.style=pnPlayOnScrollCss;export{PnPlayOnScroll as pn_play_on_scroll};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host}from"./index-6e611ed9.js";var pnProductCardCss='pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:"" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:"" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}';var PnProductCard=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null,h("slot",{name:"illustration"}),h("div",{class:"cardcontent"},h("div",{class:"details"},h("slot",{name:"title"}),h("slot",{name:"content"}),h("div",{class:"info"},h("slot",null)),h("slot",{name:"note"}),h("slot",{name:"additionalUSP"})),h("div",{class:"cardprice"},h("slot",{name:"cardprice"}),h("slot",{name:"mobiledownload"}),h("slot",{name:"servicepoint"}))))};return e}();PnProductCard.style=pnProductCardCss;var pnProductCardInfoCss='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';var PnProductCardInfo=function(){function e(e){registerInstance(this,e);this.rulle=undefined;this.paket=undefined;this.label=undefined;this.text=undefined}e.prototype.render=function(){return this.label?h(Host,null,h("div",{class:"cardinfocontent"},this.text?h("pre",{slot:"formatPre"},this.text):null)):h(Host,null,h("div",{class:"cardinfocontent"},this.paket?h("div",{class:"cardinfocontent-item"},h("strong",null,"Maxmått"),this.paket.split("/").map((function(e){return e.split(":").length>1?h("p",null,h("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):h("p",null,e)}))):null,this.rulle?h("div",{class:"cardinfocontent-item"},h("strong",null,"Rulle"),this.rulle.split("/").map((function(e){return e.split(":").length>0?h("p",null,h("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):h("p",null,e)}))):null))};return e}();h("pn-icon",{symbol:"align-center",small:"false",color:"black"});PnProductCardInfo.style=pnProductCardInfoCss;var pnProductCardPriceCss="pn-product-card-price{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}";var PnProductCardPrice=function(){function e(e){registerInstance(this,e);this.label=undefined;this.amount=undefined;this.currency=undefined;this.note=undefined;this.url=undefined;this.service=undefined;this.linkid=undefined}e.prototype.render=function(){if(!this.amount){return}return this.url?h(Host,{id:this.linkid},h("div",{class:"price"},this.amount?h("span",null,this.amount):null,this.currency?h("span",null," "+this.currency):null),this.note?h("p",null,this.note):null,this.label?h("pn-button",{id:"pricecta-"+this.linkid,small:"true",icon:"open-in-new",appearance:"light",href:this.url,target:"_blank"},this.label):null):h(Host,null,h("div",{class:"price"},this.amount?h("span",null,this.amount):null,this.currency?h("span",null,this.currency):null))};return e}();PnProductCardPrice.style=pnProductCardPriceCss;export{PnProductCard as pn_product_card,PnProductCardInfo as pn_product_card_info,PnProductCardPrice as pn_product_card_price};
1
+ import{r as registerInstance,h,e as Host}from"./index-a0d3240d.js";var pnProductCardCss='pn-product-card{border:0.1rem solid #D3CECB;outline:none;background:#FFFFFF;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);display:-ms-flexbox;display:flex;word-break:break-word;text-decoration:none;border-radius:0.8rem;position:relative;padding:11rem 2.4rem 2.4rem;margin-bottom:1.6rem}@media screen and (min-width: 36em){pn-product-card{padding:2.4rem}}pn-product-card [slot=title]{display:-ms-flexbox;display:flex;width:100%;margin-bottom:0.8rem;gap:1.6rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media screen and (min-width: 36em){pn-product-card [slot=title]{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:inherit;align-items:inherit}}pn-product-card [slot=title] h2{width:100%}@media screen and (min-width: 36em){pn-product-card [slot=title] h2{width:auto}}pn-product-card [slot=title] h2>a{color:#000000}pn-product-card [slot=title] h2>a::after{content:"" !important}pn-product-card [slot=note]{margin-top:1em;margin-bottom:1em;font-size:0.8em}pn-product-card [slot=additionalUSP]{display:-ms-flexbox;display:flex}pn-product-card [slot=additionalUSP] :first-child{margin-left:0em}pn-product-card [slot=additionalUSP] span{margin-left:1em;background:#D3CECB;color:#2D2013;border-radius:0.25em;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0.3em;margin-top:0.5em;font-size:0.75em}pn-product-card>pn-illustration{min-width:8rem;width:8rem;height:8rem;-ms-flex-item-align:center;align-self:center;position:absolute;top:1.6rem;-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);border-radius:100%}@media screen and (min-width: 36em){pn-product-card>pn-illustration{-webkit-box-shadow:none;box-shadow:none;top:1.6rem;right:1.6rem;left:auto;-webkit-transform:none;transform:none}}@media screen and (min-width: 48em){pn-product-card>pn-illustration{position:static;top:auto;right:auto;margin-right:3rem}}pn-product-card .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 48em){pn-product-card .cardcontent{-ms-flex-direction:row;flex-direction:row;gap:1.6rem}}pn-product-card [slot=cardprice]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:0.6em;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 36em){pn-product-card [slot=cardprice]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=cardprice]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card [slot=mobiledownload]{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card [slot=mobiledownload] #riktiga{-ms-flex-order:4;order:4;margin-top:1em}pn-product-card [slot=mobiledownload] #riktiga>div>a::after{content:"" !important}pn-product-card [slot=mobiledownload] .riktigaAndroidImg{width:6em;margin:0.5em}pn-product-card [slot=mobiledownload] .riktigaAppleImg{width:5.6em;margin:0.5em}pn-product-card [slot=mobiledownload] a{text-decoration:none;color:#005D92}pn-product-card [slot=mobiledownload] a h3{text-decoration:underline}pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:2;flex-grow:2;-ms-flex-align:end;align-items:flex-end;text-align:center}@media screen and (min-width: 36em){pn-product-card [slot=servicepoint]{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}@media screen and (min-width: 48em){pn-product-card [slot=servicepoint]{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:end;align-items:flex-end}}pn-product-card .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-card .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;-ms-flex-flow:wrap;flex-flow:wrap;padding:0 1em 0 0}pn-product-card .info>*{min-width:6em;margin:0.5em 1em 0.5em 0}';var PnProductCard=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null,h("slot",{name:"illustration"}),h("div",{class:"cardcontent"},h("div",{class:"details"},h("slot",{name:"title"}),h("slot",{name:"content"}),h("div",{class:"info"},h("slot",null)),h("slot",{name:"note"}),h("slot",{name:"additionalUSP"})),h("div",{class:"cardprice"},h("slot",{name:"cardprice"}),h("slot",{name:"mobiledownload"}),h("slot",{name:"servicepoint"}))))};return e}();PnProductCard.style=pnProductCardCss;var pnProductCardInfoCss='pn-product-card-info{-ms-flex-item-align:center;align-self:center}.cardinfocontent{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;font-size:0.875em;gap:1.6rem}@media screen and (min-width: 36em){.cardinfocontent{-ms-flex-direction:row;flex-direction:row}}.cardinfocontent>div p{margin:0.25em 0.25em 0 0}.cardinfocontent-item{margin-top:0.5em}[slot=formatPre]{font-family:"PostNordSans", "Verdana";margin:0.5em 3em 0 0}[slot=formatPre]>strong{font-weight:bold}.cardinfoprice{display:-ms-flexbox;display:flex;font-size:1em;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}';var PnProductCardInfo=function(){function e(e){registerInstance(this,e);this.rulle=undefined;this.paket=undefined;this.label=undefined;this.text=undefined}e.prototype.render=function(){return this.label?h(Host,null,h("div",{class:"cardinfocontent"},this.text?h("pre",{slot:"formatPre"},this.text):null)):h(Host,null,h("div",{class:"cardinfocontent"},this.paket?h("div",{class:"cardinfocontent-item"},h("strong",null,"Maxmått"),this.paket.split("/").map((function(e){return e.split(":").length>1?h("p",null,h("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):h("p",null,e)}))):null,this.rulle?h("div",{class:"cardinfocontent-item"},h("strong",null,"Rulle"),this.rulle.split("/").map((function(e){return e.split(":").length>0?h("p",null,h("strong",null,e.split(":")[0]+": ")," ",e.split(":")[1]):h("p",null,e)}))):null))};return e}();h("pn-icon",{symbol:"align-center",small:"false",color:"black"});PnProductCardInfo.style=pnProductCardInfoCss;var pnProductCardPriceCss="pn-product-card-price{margin-top:1rem;white-space:nowrap;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-product-card-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-card-price+pn-product-card-price{margin-right:0}pn-product-card-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-card-price .price{font-size:2.5em;font-weight:bold;-ms-flex-order:1;order:1}pn-product-card-price pn-button{min-width:12.8em;font-size:1.25;-ms-flex-order:2;order:2}@media screen and (min-width: 48em){pn-product-card-price pn-button{-ms-flex-order:3;order:3;margin-bottom:1.6rem}}pn-product-card-price p{font-weight:lighter;font-size:0.875em;-ms-flex-item-align:center;align-self:center;margin-top:0.8rem;-ms-flex-order:3;order:3}@media screen and (min-width: 48em){pn-product-card-price p{-ms-flex-order:2;order:2}}";var PnProductCardPrice=function(){function e(e){registerInstance(this,e);this.label=undefined;this.amount=undefined;this.currency=undefined;this.note=undefined;this.url=undefined;this.service=undefined;this.linkid=undefined}e.prototype.render=function(){if(!this.amount){return}return this.url?h(Host,{id:this.linkid},h("div",{class:"price"},this.amount?h("span",null,this.amount):null,this.currency?h("span",null," "+this.currency):null),this.note?h("p",null,this.note):null,this.label?h("pn-button",{id:"pricecta-"+this.linkid,small:"true",icon:"open-in-new",appearance:"light",href:this.url,target:"_blank"},this.label):null):h(Host,null,h("div",{class:"price"},this.amount?h("span",null,this.amount):null,this.currency?h("span",null,this.currency):null))};return e}();PnProductCardPrice.style=pnProductCardPriceCss;export{PnProductCard as pn_product_card,PnProductCardInfo as pn_product_card_info,PnProductCardPrice as pn_product_card_price};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host}from"./index-6e611ed9.js";import{c as createStore}from"./index-6a2abc18.js";import{s as sendDirectUrl,a as stampShopUrl}from"./data-97bb25fc.js";var _a=createStore({i18n:{maxweightlabel:"",weightlabel:"",maxmeasurementlabel:"",sizeheading:"",senddirectcta:"",stampshopcta:""},market:{currency:""}}),state=_a.state,onChange=_a.onChange;var pnProductPricelistResultCss="";var PnFindProductPricelistResult=function(){function t(t){registerInstance(this,t);this.item=null;this.description=[];this.shownitems=[];this.showMeasurement=false;this.weightText=""}t.prototype.componentWillLoad=function(){this.composeItems()};t.prototype.composeItems=function(){if(this.item.description){this.description=this.item.description.split("#bullet").filter((function(t){return t!==""}))}this.showMeasurement=this.item.maxmått!==null||this.item.rulle!==null;this.shownitems=[this.item]};t.prototype.render=function(){var t=this;return h(Host,null,this.shownitems.map((function(e){return h("pn-product-card",{"data-productid":e.id},h("pn-illustration",{slot:"illustration",illustration:t.item.illustration}),h("div",{slot:"title"},h("h2",null,e.name," "),t.item.highestrankusp?t.item.highestrankusp==="Billigast"?h("pn-titletag",{slot:"Billigast",icon:"box-label"},t.item.highestrankusp):h("pn-titletag",{slot:"Snabbast",icon:"bolt",color:"blue700"},t.item.highestrankusp):null),h("div",{slot:"content"},h("div",{class:"content"},t.item.description?h("div",{class:"description"},t.description.map((function(t){return h("li",null,t)}))):null,t.item.info?h("div",{class:"description"},t.item.info):null)),t.item.note?h("small",{slot:"note"},h("p",null,t.item.note)):null,t.item.additionalusp?h("div",{slot:"additionalUSP"}):null,t.showMeasurement?h("pn-product-card-info",{paket:t.item.maxmått,rulle:t.item.rulle}):null,h("div",{slot:"cardprice"},t.item.pricesenddirect?h("pn-product-card-price",{slot:"sendDirectPrice",label:state.i18n.senddirectcta,amount:t.item.pricesenddirect+"",currency:state.market.currency,url:sendDirectUrl,service:t.item.name+"-portal"}):null,t.item.pricestamps?h("pn-product-card-price",{slot:"stampPrice",label:state.i18n.stampshopcta,amount:t.item.pricestamps+"",currency:state.market.currency,url:stampShopUrl,service:t.item.name+"-eshop"}):null))})))};Object.defineProperty(t,"watchers",{get:function(){return{item:["composeItems"]}},enumerable:false,configurable:true});return t}();PnFindProductPricelistResult.style=pnProductPricelistResultCss;export{PnFindProductPricelistResult as pn_product_pricelist_result};
1
+ import{r as registerInstance,h,e as Host}from"./index-a0d3240d.js";import{c as createStore}from"./index-493a47cd.js";import{s as sendDirectUrl,a as stampShopUrl}from"./data-97bb25fc.js";var _a=createStore({i18n:{maxweightlabel:"",weightlabel:"",maxmeasurementlabel:"",sizeheading:"",senddirectcta:"",stampshopcta:""},market:{currency:""}}),state=_a.state,onChange=_a.onChange;var pnProductPricelistResultCss="";var PnFindProductPricelistResult=function(){function t(t){registerInstance(this,t);this.item=null;this.description=[];this.shownitems=[];this.showMeasurement=false;this.weightText=""}t.prototype.componentWillLoad=function(){this.composeItems()};t.prototype.composeItems=function(){if(this.item.description){this.description=this.item.description.split("#bullet").filter((function(t){return t!==""}))}this.showMeasurement=this.item.maxmått!==null||this.item.rulle!==null;this.shownitems=[this.item]};t.prototype.render=function(){var t=this;return h(Host,null,this.shownitems.map((function(e){return h("pn-product-card",{"data-productid":e.id},h("pn-illustration",{slot:"illustration",illustration:t.item.illustration}),h("div",{slot:"title"},h("h2",null,e.name," "),t.item.highestrankusp?t.item.highestrankusp==="Billigast"?h("pn-titletag",{slot:"Billigast",icon:"box-label"},t.item.highestrankusp):h("pn-titletag",{slot:"Snabbast",icon:"bolt",color:"blue700"},t.item.highestrankusp):null),h("div",{slot:"content"},h("div",{class:"content"},t.item.description?h("div",{class:"description"},t.description.map((function(t){return h("li",null,t)}))):null,t.item.info?h("div",{class:"description"},t.item.info):null)),t.item.note?h("small",{slot:"note"},h("p",null,t.item.note)):null,t.item.additionalusp?h("div",{slot:"additionalUSP"}):null,t.showMeasurement?h("pn-product-card-info",{paket:t.item.maxmått,rulle:t.item.rulle}):null,h("div",{slot:"cardprice"},t.item.pricesenddirect?h("pn-product-card-price",{slot:"sendDirectPrice",label:state.i18n.senddirectcta,amount:t.item.pricesenddirect+"",currency:state.market.currency,url:sendDirectUrl,service:t.item.name+"-portal"}):null,t.item.pricestamps?h("pn-product-card-price",{slot:"stampPrice",label:state.i18n.stampshopcta,amount:t.item.pricestamps+"",currency:state.market.currency,url:stampShopUrl,service:t.item.name+"-eshop"}):null))})))};Object.defineProperty(t,"watchers",{get:function(){return{item:["composeItems"]}},enumerable:false,configurable:true});return t}();PnFindProductPricelistResult.style=pnProductPricelistResultCss;export{PnFindProductPricelistResult as pn_product_pricelist_result};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function o(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(l){o=[6,l];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,a=t.length,r;n<a;n++){if(r||!(n in t)){if(!r)r=Array.prototype.slice.call(t,0,n);r[n]=t[n]}}return e.concat(r||Array.prototype.slice.call(t))};import{r as registerInstance,h,a as Host}from"./index-6e611ed9.js";import{w as weights}from"./data-97bb25fc.js";import{a as convertFileFromStream}from"./convert-f6377d13.js";import{s as state}from"./pn-find-price-store-3577991d.js";import"./_commonjsHelpers-27f122dd.js";import"./index-6a2abc18.js";var translations={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",resultlistheading:"Några bra alternativ för dig",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp online",stampshopcta:"Köp frimärken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Sök serviceställe eller brevlåda"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",resultlistheading:"Some suitable options for you",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy Online",stampshopcta:"Buy Stamps",message:"When buying from any agent",servicePointHeader:"Or find nearest service point",servicePointLink:"Search letter-box or service point"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}};var markets={se:{currency:"kr"},dk:{currency:"dk"},fi:{currency:" €"},no:{currency:"kr"}};var 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,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}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}';var PnFindProductPricelist=function(){function e(e){registerInstance(this,e);this.source="https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";this.language="sv";this.market="se";this.productid="";this.filteredItems=[];this.sourceData={types:[],data:[]};this.gotData=false;this.loading=false;this.postagetype={value:""};this.weight={value:0,name:""};this.weightvalue=0}e.prototype.componentWillLoad=function(){this.setState();this.getDataSource().then((function(){}))};e.prototype.setState=function(){if(this.market){state.market=markets[this.market]}if(this.language&&translations[this.language]){state.i18n=translations[this.language]}};e.prototype.getDataSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a;return __generator(this,(function(r){switch(r.label){case 0:if(!this.productid){return[2]}this.loading=true;e="?cache=".concat(Math.floor(Math.random()*(1e4-1)+1));return[4,fetch(this.source+e)];case 1:t=r.sent();return[4,t.blob()];case 2:i=r.sent();r.label=3;case 3:r.trys.push([3,5,,6]);return[4,convertFileFromStream(i)];case 4:n=r.sent();this.sourceData=n;this.filterItems();return[3,6];case 5:a=r.sent();this.loading=false;console.warn("Unable to parse data");return[3,6];case 6:return[2]}}))}))};e.prototype.filterItems=function(){var e=this;var t;if(!((t=this.sourceData)===null||t===void 0?void 0:t.data)){console.info("Data has not yet been loaded");return}this.loading=false;var i=this.sourceData.data.filter((function(t){return t.id===e.productid}));if(i.length===0){return}this.postagetype.value=i[0].what;if(!weights[this.postagetype.value]||weights[this.postagetype.value].length===0){return}if(this.weightvalue===0){this.weight=weights[this.postagetype.value][0];this.weightvalue=this.weight.value}var n=this.weight.abbreviation.toLocaleLowerCase()==="kg"&&this.postagetype.value==="letter"?this.weight.value*1e3:this.weight.value;var a=i.filter((function(e){return e.maxweight===n}));if(a.length===0){a=i.filter((function(e){return e.maxweight>=n}));if(a.length>0){var r=__spreadArray([],new Map(a.reverse().map((function(e){return[e["id"],e]}))).values(),true);if(r.length>0){a=r}}}this.filteredItems=a;this.gotData=this.filteredItems.length>0};e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"content"},h("slot",null)),this.loading?h("pn-spinner",null):null,this.postagetype.value&&weights[this.postagetype.value]?h("div",{class:"weightselection"},h("div",{class:"weightoption"},h("div",{class:"weightoption-input"},h("pn-input",{inputid:"weightvalue",name:"weightvalue",type:"number",label:state.i18n.weightlabel,value:this.weightvalue,onChange:function(t){if(t&&t.target&&t.target.value){var i=parseInt(t.target.value,10);if(!isNaN(i)){var n=weights[e.postagetype.value].filter((function(e){var t=e.abbreviation==="kg"?e.value*1e3:e.value;return t>=i}));if(n&&n.length>0){e.weight=n[0];e.weightvalue=e.weight.value}}}}}),h("span",{class:"weightoption-input-abbreviation"},this.weight.abbreviation)),h("div",{class:"weightoption-range"},h("input",{type:"range",id:"weightrange",name:"weightrange",list:"weightlist",value:!this.weight.value?0:weights[this.postagetype.value].findIndex((function(t){return t.value===e.weightvalue})),onChange:function(t){var i=t.target.value;e.weight=weights[e.postagetype.value][i];e.weightvalue=e.weight.value},min:"0",max:weights[this.postagetype.value].length-1}),h("datalist",{id:"weightlist"},weights[this.postagetype.value].map((function(t,i){var n=t.name;if(weights[e.postagetype.value].length>6){n=i%5===0||i===0||i===weights[e.postagetype.value].length-1?t.name:""}return h("option",Object.assign({value:i},n?{label:n}:{}))})))))):null,h("div",{class:"resultlist","data-list-count":this.filteredItems.length},this.filteredItems.map((function(e){return h("div",null,h("pn-find-price-result",{item:e}))}))))};Object.defineProperty(e,"watchers",{get:function(){return{market:["setState"],language:["setState"],postagetype:["filterItems"],weightvalue:["filterItems"]}},enumerable:false,configurable:true});return e}();PnFindProductPricelist.style=pnProductPricelistCss;export{PnFindProductPricelist as pn_product_pricelist};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function o(e){try{l(n["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(l){o=[6,l];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,a=t.length,r;n<a;n++){if(r||!(n in t)){if(!r)r=Array.prototype.slice.call(t,0,n);r[n]=t[n]}}return e.concat(r||Array.prototype.slice.call(t))};import{r as registerInstance,h,e as Host}from"./index-a0d3240d.js";import{w as weights}from"./data-97bb25fc.js";import{a as convertFileFromStream}from"./convert-f6377d13.js";import{s as state}from"./pn-find-price-store-82418d39.js";import"./_commonjsHelpers-27f122dd.js";import"./index-493a47cd.js";var translations={sv:{componentheading:"Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?",deliveryscopeheading:"Endast leveranser inom Sverige",resultlistheading:"Några bra alternativ för dig",weightlabel:"Vikt",maxweightlabel:"Maxvikt",maxmeasurementlabel:"Maxvolym",senddirectcta:"Köp online",stampshopcta:"Köp frimärken",message:"*Vid köp hos valfritt ombud",servicePointHeader:"Eller hitta närmaste serviceställe",servicePointLink:"Sök serviceställe eller brevlåda"},en:{componentheading:"Our prices and terms and conditions for domestic shipments for you as a direct paying customer",deliveryscopeheading:"Deliveries within Sweden only",resultlistheading:"Some suitable options for you",weightlabel:"Weight",maxweightlabel:"Max weight",maxmeasurementlabel:"Maximum measurement",senddirectcta:"Buy Online",stampshopcta:"Buy Stamps",message:"When buying from any agent",servicePointHeader:"Or find nearest service point",servicePointLink:"Search letter-box or service point"},da:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveringer indenfor Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vægt",maxweightlabel:"Max vægt",maxmeasurementlabel:"Maks. Volumen",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},no:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Kun leveranser innen Sverige",resultlistheading:"Some suitable options for you",weightlabel:"Vekt",maxweightlabel:"Maks vekt",maxmeasurementlabel:"Maks volum",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"},fi:{componentheading:"Vad vill du skicka?",deliveryscopeheading:"Toimitukset vain Ruotsin sisällä",resultlistheading:"Some suitable options for you",weightlabel:"Paino",maxweightlabel:"Max paino",maxmeasurementlabel:"Max äänenvoimakkuus",senddirectcta:"Buy shipping in Send Direct",stampshopcta:"Order home stamps from the webshop"}};var markets={se:{currency:"kr"},dk:{currency:"dk"},fi:{currency:" €"},no:{currency:"kr"}};var 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,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}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}';var PnFindProductPricelist=function(){function e(e){registerInstance(this,e);this.source="https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";this.language="sv";this.market="se";this.productid="";this.filteredItems=[];this.sourceData={types:[],data:[]};this.gotData=false;this.loading=false;this.postagetype={value:""};this.weight={value:0,name:""};this.weightvalue=0}e.prototype.componentWillLoad=function(){this.setState();this.getDataSource().then((function(){}))};e.prototype.setState=function(){if(this.market){state.market=markets[this.market]}if(this.language&&translations[this.language]){state.i18n=translations[this.language]}};e.prototype.getDataSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a;return __generator(this,(function(r){switch(r.label){case 0:if(!this.productid){return[2]}this.loading=true;e="?cache=".concat(Math.floor(Math.random()*(1e4-1)+1));return[4,fetch(this.source+e)];case 1:t=r.sent();return[4,t.blob()];case 2:i=r.sent();r.label=3;case 3:r.trys.push([3,5,,6]);return[4,convertFileFromStream(i)];case 4:n=r.sent();this.sourceData=n;this.filterItems();return[3,6];case 5:a=r.sent();this.loading=false;console.warn("Unable to parse data");return[3,6];case 6:return[2]}}))}))};e.prototype.filterItems=function(){var e=this;var t;if(!((t=this.sourceData)===null||t===void 0?void 0:t.data)){console.info("Data has not yet been loaded");return}this.loading=false;var i=this.sourceData.data.filter((function(t){return t.id===e.productid}));if(i.length===0){return}this.postagetype.value=i[0].what;if(!weights[this.postagetype.value]||weights[this.postagetype.value].length===0){return}if(this.weightvalue===0){this.weight=weights[this.postagetype.value][0];this.weightvalue=this.weight.value}var n=this.weight.abbreviation.toLocaleLowerCase()==="kg"&&this.postagetype.value==="letter"?this.weight.value*1e3:this.weight.value;var a=i.filter((function(e){return e.maxweight===n}));if(a.length===0){a=i.filter((function(e){return e.maxweight>=n}));if(a.length>0){var r=__spreadArray([],new Map(a.reverse().map((function(e){return[e["id"],e]}))).values(),true);if(r.length>0){a=r}}}this.filteredItems=a;this.gotData=this.filteredItems.length>0};e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"content"},h("slot",null)),this.loading?h("pn-spinner",null):null,this.postagetype.value&&weights[this.postagetype.value]?h("div",{class:"weightselection"},h("div",{class:"weightoption"},h("div",{class:"weightoption-input"},h("pn-input",{inputid:"weightvalue",name:"weightvalue",type:"number",label:state.i18n.weightlabel,value:this.weightvalue,onChange:function(t){if(t&&t.target&&t.target.value){var i=parseInt(t.target.value,10);if(!isNaN(i)){var n=weights[e.postagetype.value].filter((function(e){var t=e.abbreviation==="kg"?e.value*1e3:e.value;return t>=i}));if(n&&n.length>0){e.weight=n[0];e.weightvalue=e.weight.value}}}}}),h("span",{class:"weightoption-input-abbreviation"},this.weight.abbreviation)),h("div",{class:"weightoption-range"},h("input",{type:"range",id:"weightrange",name:"weightrange",list:"weightlist",value:!this.weight.value?0:weights[this.postagetype.value].findIndex((function(t){return t.value===e.weightvalue})),onChange:function(t){var i=t.target.value;e.weight=weights[e.postagetype.value][i];e.weightvalue=e.weight.value},min:"0",max:weights[this.postagetype.value].length-1}),h("datalist",{id:"weightlist"},weights[this.postagetype.value].map((function(t,i){var n=t.name;if(weights[e.postagetype.value].length>6){n=i%5===0||i===0||i===weights[e.postagetype.value].length-1?t.name:""}return h("option",Object.assign({value:i},n?{label:n}:{}))})))))):null,h("div",{class:"resultlist","data-list-count":this.filteredItems.length},this.filteredItems.map((function(e){return h("div",null,h("pn-find-price-result",{item:e}))}))))};Object.defineProperty(e,"watchers",{get:function(){return{market:["setState"],language:["setState"],postagetype:["filterItems"],weightvalue:["filterItems"]}},enumerable:false,configurable:true});return e}();PnFindProductPricelist.style=pnProductPricelistCss;export{PnFindProductPricelist as pn_product_pricelist};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host}from"./index-6e611ed9.js";var pnProductTileInfoCss="pn-product-tile-info{-ms-flex-item-align:center;align-self:center}";var PnProductTileInfo=function(){function n(n){registerInstance(this,n);this.label=undefined;this.text=undefined;this.icon=undefined}n.prototype.render=function(){return h(Host,null,this.label?h("p",null,h("small",null,this.label)):null,this.text?h("h3",null,this.text):null)};return n}();h("pn-icon",{symbol:"align-center",small:"false",color:"black"});PnProductTileInfo.style=pnProductTileInfoCss;var pnProductTilePriceCss="pn-product-tile-price{margin-top:1em;white-space:nowrap;text-align:right}pn-product-tile-price span{font-size:3em;font-size:clamp(2em, 6vw, 3em)}pn-product-tile-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-tile-price+pn-product-tile-price{margin-left:1.5em}pn-product-tile-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-tile-price a{text-decoration:none;color:#005D92}pn-product-tile-price a h3{text-decoration:underline}";var PnProductTilePrice=function(){function n(n){registerInstance(this,n);this.label=undefined;this.amount=undefined;this.currency=undefined;this.url=undefined}n.prototype.render=function(){if(!this.amount){return}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.label?h("a",{href:this.url},h("pn-button",{small:"true",icon:"arrow-right"},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))};return n}();PnProductTilePrice.style=pnProductTilePriceCss;export{PnProductTileInfo as pn_product_tile_info,PnProductTilePrice as pn_product_tile_price};
1
+ import{r as registerInstance,h,e as Host}from"./index-a0d3240d.js";var pnProductTileInfoCss="pn-product-tile-info{-ms-flex-item-align:center;align-self:center}";var PnProductTileInfo=function(){function n(n){registerInstance(this,n);this.label=undefined;this.text=undefined;this.icon=undefined}n.prototype.render=function(){return h(Host,null,this.label?h("p",null,h("small",null,this.label)):null,this.text?h("h3",null,this.text):null)};return n}();h("pn-icon",{symbol:"align-center",small:"false",color:"black"});PnProductTileInfo.style=pnProductTileInfoCss;var pnProductTilePriceCss="pn-product-tile-price{margin-top:1em;white-space:nowrap;text-align:right}pn-product-tile-price span{font-size:3em;font-size:clamp(2em, 6vw, 3em)}pn-product-tile-price span:last-child{display:inline-block;margin-left:0.2em}pn-product-tile-price+pn-product-tile-price{margin-left:1.5em}pn-product-tile-price pn-icon{display:inline-block;-ms-flex-item-align:center;align-self:center}pn-product-tile-price a{text-decoration:none;color:#005D92}pn-product-tile-price a h3{text-decoration:underline}";var PnProductTilePrice=function(){function n(n){registerInstance(this,n);this.label=undefined;this.amount=undefined;this.currency=undefined;this.url=undefined}n.prototype.render=function(){if(!this.amount){return}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.label?h("a",{href:this.url},h("pn-button",{small:"true",icon:"arrow-right"},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))};return n}();PnProductTilePrice.style=pnProductTilePriceCss;export{PnProductTileInfo as pn_product_tile_info,PnProductTilePrice as pn_product_tile_price};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host}from"./index-6e611ed9.js";var pnProductTileCss="pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-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-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{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-tile .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-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";var PnProductTile=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null,h("slot",{name:"illustration"}),h("div",{class:"tilecontent"},h("div",{class:"details"},h("slot",{name:"content"}),h("div",{class:"info"},h("slot",null)),h("slot",{name:"note"})),h("slot",{name:"price"})))};return e}();PnProductTile.style=pnProductTileCss;export{PnProductTile as pn_product_tile};
1
+ import{r as registerInstance,h,e as Host}from"./index-a0d3240d.js";var pnProductTileCss="pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-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-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{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-tile .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-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";var PnProductTile=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null,h("slot",{name:"illustration"}),h("div",{class:"tilecontent"},h("div",{class:"details"},h("slot",{name:"content"}),h("div",{class:"info"},h("slot",null)),h("slot",{name:"note"})),h("slot",{name:"price"})))};return e}();PnProductTile.style=pnProductTileCss;export{PnProductTile as pn_product_tile};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-6e611ed9.js";var pnProfileModalCustomernumberCss=".pn-profile-modal-customernumber-button{display:block;border:0;margin:0;background:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;outline:0;padding:0.8rem;font-weight:400;font-size:1.4rem;border-radius:0.8rem;line-height:1.4;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;text-align:left;width:100%}.pn-profile-modal-customernumber-button:hover,.pn-profile-modal-customernumber-button:focus,.pn-profile-modal-customernumber-button:active{background:#EFFBFF}";var PnProfileModalCustomernumber=function(){function e(e){registerInstance(this,e);this.urlSelected=createEvent(this,"urlSelected",7);this.url=null;this.customernumber=null;this.selected=false}e.prototype.onCustomerNumberClick=function(){this.selected=true;this.urlSelected.emit(this.url)};e.prototype.render=function(){return h(Host,null,h("button",{class:"pn-profile-modal-customernumber-button",onClick:this.onCustomerNumberClick.bind(this)},h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileModalCustomernumber.style=pnProfileModalCustomernumberCss;export{PnProfileModalCustomernumber as pn_profile_modal_customernumber};
1
+ import{r as registerInstance,c as createEvent,h,e as Host,g as getElement}from"./index-a0d3240d.js";var pnProfileModalCustomernumberCss=".pn-profile-modal-customernumber-button{display:block;border:0;margin:0;background:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;outline:0;padding:0.8rem;font-weight:400;font-size:1.4rem;border-radius:0.8rem;line-height:1.4;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;text-align:left;width:100%}.pn-profile-modal-customernumber-button:hover,.pn-profile-modal-customernumber-button:focus,.pn-profile-modal-customernumber-button:active{background:#EFFBFF}";var PnProfileModalCustomernumber=function(){function e(e){registerInstance(this,e);this.urlSelected=createEvent(this,"urlSelected",7);this.url=null;this.customernumber=null;this.selected=false}e.prototype.onCustomerNumberClick=function(){this.selected=true;this.urlSelected.emit(this.url)};e.prototype.render=function(){return h(Host,null,h("button",{class:"pn-profile-modal-customernumber-button",onClick:this.onCustomerNumberClick.bind(this)},h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileModalCustomernumber.style=pnProfileModalCustomernumberCss;export{PnProfileModalCustomernumber as pn_profile_modal_customernumber};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-6e611ed9.js";import{s as state}from"./pn-profile-modal-store-17855bd2.js";import"./index-6a2abc18.js";var pnProfileModalProfileCss='pn-profile-modal-type[selected=true]:not([selected-profile=""]) pn-profile-modal-profile[selected=false]{display:none}.pn-profile-modal-profile-listitem{overflow:hidden;max-height:10rem;-webkit-transition:max-height 0.15s ease;transition:max-height 0.15s ease;opacity:1}.pn-profile-modal-profile-listitem[aria-hidden=true]{max-height:0;opacity:0}.pn-profile-modal-profile-listitem-button{padding:0.8rem;margin:0;background:#FFFFFF;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;cursor:pointer;border-radius:0.8rem;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;text-align:left;width:100%}.pn-profile-modal-profile-listitem-button:hover,.pn-profile-modal-profile-listitem-button:focus,.pn-profile-modal-profile-listitem-button:active{background:#EFFBFF}.pn-profile-modal-profile-listitem[aria-hidden=true] .pn-profile-modal-profile-listitem-button{display:none}.pn-profile-modal-profile-listitem-heading{color:#005D92;font-weight:700;font-size:1.6rem}.pn-profile-modal-profile-listitem-description{color:#5E554A;font-weight:400;font-size:1.2rem}.pn-profile-modal-profile-details{max-height:300rem;-webkit-transition:max-height 0.15s ease;transition:max-height 0.15s ease;opacity:1}.pn-profile-modal-profile-details[aria-hidden=true]{max-height:0;opacity:0;overflow:hidden}.pn-profile-modal-profile-details>pn-button{position:relative;margin-left:-1.2rem}.pn-profile-modal-profile-details>pn-button .pn-button-content{font-weight:500}.pn-profile-modal-profile-details-company{border-top:1px solid #D3CECB;border-bottom:1px solid #D3CECB;padding:0.8rem 0.8rem;margin:1.6rem 0}.pn-profile-modal-profile-details-label{font-size:1.4rem;font-weight:500;margin-bottom:1.2rem}.pn-profile-modal-profile-details-company-heading{font-weight:700;font-size:1.6rem}.pn-profile-modal-profile-details-company-description{color:#5E554A;font-weight:400;font-size:1.2rem}.pn-profile-modal-profile-details-list{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;padding:0 0}.pn-profile-modal-profile-details-list-label{font-size:1.4rem;font-weight:500;margin:0 0 0 0.8rem}';var PnProfileModalProfile=function(){function e(e){registerInstance(this,e);this.urlSelected=createEvent(this,"urlSelected",7);this.showCustomerNumbersEvent=createEvent(this,"showCustomerNumbersEvent",7);this.heading=null;this.description=null;this.url=null;this.selected=false;this.showCustomerNumbers=false;this.pleaseSelectText="";this.visible=false;this.identifier=""}e.prototype.componentWillLoad=function(){this.identifier=this.heading+this.url};e.prototype.onProfileOptionClick=function(){this.selected=true;if(this.url){this.urlSelected.emit(this.url)}else{state.selectedProfile=this.identifier}};e.prototype.render=function(){var e=this;return h(Host,{selected:this.selected+""},h("div",{class:"pn-profile-modal-profile-listitem","aria-hidden":!!state.selectedProfile+""},h("button",{class:"pn-profile-modal-profile-listitem-button",onClick:this.onProfileOptionClick.bind(this)},h("div",{class:"pn-profile-modal-profile-listitem-heading"},this.heading),h("div",{class:"pn-profile-modal-profile-listitem-description"},this.description))),h("div",{class:"pn-profile-modal-profile-details","aria-hidden":!(state.selectedProfile===this.identifier)+""},h("pn-button",{appearance:"light",variant:"borderless",icon:"arrow-left","left-icon":"true",small:"true",onClick:function(){e.selected=false;state.selectedProfile=""}},state.i18n.toText," ",state.selectedType),h("div",{class:"pn-profile-modal-profile-details-company"},h("div",{class:"pn-profile-modal-profile-details-label"},state.i18n.choosenCompanyText),h("div",{class:"pn-profile-modal-profile-details-company-heading"},this.heading),h("div",{class:"pn-profile-modal-profile-details-company-description"},this.description)),h("div",{class:"pn-profile-modal-profile-details-list"},h("div",{class:"pn-profile-modal-profile-details-list-label"},this.pleaseSelectText),h("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileModalProfile.style=pnProfileModalProfileCss;export{PnProfileModalProfile as pn_profile_modal_profile};
1
+ import{r as registerInstance,c as createEvent,h,e as Host,g as getElement}from"./index-a0d3240d.js";import{s as state}from"./pn-profile-modal-store-d41bc672.js";import"./index-493a47cd.js";var pnProfileModalProfileCss='pn-profile-modal-type[selected=true]:not([selected-profile=""]) pn-profile-modal-profile[selected=false]{display:none}.pn-profile-modal-profile-listitem{overflow:hidden;max-height:10rem;-webkit-transition:max-height 0.15s ease;transition:max-height 0.15s ease;opacity:1}.pn-profile-modal-profile-listitem[aria-hidden=true]{max-height:0;opacity:0}.pn-profile-modal-profile-listitem-button{padding:0.8rem;margin:0;background:#FFFFFF;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;cursor:pointer;border-radius:0.8rem;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;text-align:left;width:100%}.pn-profile-modal-profile-listitem-button:hover,.pn-profile-modal-profile-listitem-button:focus,.pn-profile-modal-profile-listitem-button:active{background:#EFFBFF}.pn-profile-modal-profile-listitem[aria-hidden=true] .pn-profile-modal-profile-listitem-button{display:none}.pn-profile-modal-profile-listitem-heading{color:#005D92;font-weight:700;font-size:1.6rem}.pn-profile-modal-profile-listitem-description{color:#5E554A;font-weight:400;font-size:1.2rem}.pn-profile-modal-profile-details{max-height:300rem;-webkit-transition:max-height 0.15s ease;transition:max-height 0.15s ease;opacity:1}.pn-profile-modal-profile-details[aria-hidden=true]{max-height:0;opacity:0;overflow:hidden}.pn-profile-modal-profile-details>pn-button{position:relative;margin-left:-1.2rem}.pn-profile-modal-profile-details>pn-button .pn-button-content{font-weight:500}.pn-profile-modal-profile-details-company{border-top:1px solid #D3CECB;border-bottom:1px solid #D3CECB;padding:0.8rem 0.8rem;margin:1.6rem 0}.pn-profile-modal-profile-details-label{font-size:1.4rem;font-weight:500;margin-bottom:1.2rem}.pn-profile-modal-profile-details-company-heading{font-weight:700;font-size:1.6rem}.pn-profile-modal-profile-details-company-description{color:#5E554A;font-weight:400;font-size:1.2rem}.pn-profile-modal-profile-details-list{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;padding:0 0}.pn-profile-modal-profile-details-list-label{font-size:1.4rem;font-weight:500;margin:0 0 0 0.8rem}';var PnProfileModalProfile=function(){function e(e){registerInstance(this,e);this.urlSelected=createEvent(this,"urlSelected",7);this.showCustomerNumbersEvent=createEvent(this,"showCustomerNumbersEvent",7);this.heading=null;this.description=null;this.url=null;this.selected=false;this.showCustomerNumbers=false;this.pleaseSelectText="";this.visible=false;this.identifier=""}e.prototype.componentWillLoad=function(){this.identifier=this.heading+this.url};e.prototype.onProfileOptionClick=function(){this.selected=true;if(this.url){this.urlSelected.emit(this.url)}else{state.selectedProfile=this.identifier}};e.prototype.render=function(){var e=this;return h(Host,{selected:this.selected+""},h("div",{class:"pn-profile-modal-profile-listitem","aria-hidden":!!state.selectedProfile+""},h("button",{class:"pn-profile-modal-profile-listitem-button",onClick:this.onProfileOptionClick.bind(this)},h("div",{class:"pn-profile-modal-profile-listitem-heading"},this.heading),h("div",{class:"pn-profile-modal-profile-listitem-description"},this.description))),h("div",{class:"pn-profile-modal-profile-details","aria-hidden":!(state.selectedProfile===this.identifier)+""},h("pn-button",{appearance:"light",variant:"borderless",icon:"arrow-left","left-icon":"true",small:"true",onClick:function(){e.selected=false;state.selectedProfile=""}},state.i18n.toText," ",state.selectedType),h("div",{class:"pn-profile-modal-profile-details-company"},h("div",{class:"pn-profile-modal-profile-details-label"},state.i18n.choosenCompanyText),h("div",{class:"pn-profile-modal-profile-details-company-heading"},this.heading),h("div",{class:"pn-profile-modal-profile-details-company-description"},this.description)),h("div",{class:"pn-profile-modal-profile-details-list"},h("div",{class:"pn-profile-modal-profile-details-list-label"},this.pleaseSelectText),h("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileModalProfile.style=pnProfileModalProfileCss;export{PnProfileModalProfile as pn_profile_modal_profile};
@@ -1 +1 @@
1
- import{c as createStore}from"./index-6a2abc18.js";var _a=createStore({selectedUrl:"",selectedType:"",selectedProfile:"",i18n:{choosenCompanyText:"",toText:"",chooseCustomerNumberText:""}}),state=_a.state,onChange=_a.onChange;export{state as s};
1
+ import{c as createStore}from"./index-493a47cd.js";var _a=createStore({selectedUrl:"",selectedType:"",selectedProfile:"",i18n:{choosenCompanyText:"",toText:"",chooseCustomerNumberText:""}}),state=_a.state,onChange=_a.onChange;export{state as s};
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,l=t.length,s;r<l;r++){if(s||!(r in t)){if(!s)s=Array.prototype.slice.call(t,0,r);s[r]=t[r]}}return e.concat(s||Array.prototype.slice.call(t))};import{r as registerInstance,h,a as Host,g as getElement}from"./index-6e611ed9.js";import{s as state}from"./pn-profile-modal-store-17855bd2.js";import"./index-6a2abc18.js";var pnProfileModalTypeCss="pn-profile-modal-type{display:-ms-flexbox;display:flex;width:100%;padding:3.2rem 0 1.2rem;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;display:none}pn-profile-modal-type:first-of-type{margin-top:2.4rem}pn-profile-modal-type:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-modal-type:last-of-type .profileselectoroption{padding-bottom:0}pn-profile-modal-type[selected=true]{display:-ms-flexbox;display:flex;opacity:1}";var PnProfileModalType=function(){function e(e){registerInstance(this,e);this.typeid="";this.name="false";this.selected=false;this.selectedprofile=null}e.prototype.onSelectedChange=function(){if(this.selected){state.selectedType=this.name}state.selectedProfile="";__spreadArray([],this.hostElement.querySelectorAll("pn-profile-modal-profile"),true).map((function(e){e.setAttribute("selected","false")}))};e.prototype.render=function(){return h(Host,{selected:(state.selectedType===this.name)+"","selected-profile":state.selectedProfile+""},h("slot",null))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:["onSelectedChange"]}},enumerable:false,configurable:true});return e}();PnProfileModalType.style=pnProfileModalTypeCss;export{PnProfileModalType as pn_profile_modal_type};
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,l=t.length,s;r<l;r++){if(s||!(r in t)){if(!s)s=Array.prototype.slice.call(t,0,r);s[r]=t[r]}}return e.concat(s||Array.prototype.slice.call(t))};import{r as registerInstance,h,e as Host,g as getElement}from"./index-a0d3240d.js";import{s as state}from"./pn-profile-modal-store-d41bc672.js";import"./index-493a47cd.js";var pnProfileModalTypeCss="pn-profile-modal-type{display:-ms-flexbox;display:flex;width:100%;padding:3.2rem 0 1.2rem;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;display:none}pn-profile-modal-type:first-of-type{margin-top:2.4rem}pn-profile-modal-type:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-modal-type:last-of-type .profileselectoroption{padding-bottom:0}pn-profile-modal-type[selected=true]{display:-ms-flexbox;display:flex;opacity:1}";var PnProfileModalType=function(){function e(e){registerInstance(this,e);this.typeid="";this.name="false";this.selected=false;this.selectedprofile=null}e.prototype.onSelectedChange=function(){if(this.selected){state.selectedType=this.name}state.selectedProfile="";__spreadArray([],this.hostElement.querySelectorAll("pn-profile-modal-profile"),true).map((function(e){e.setAttribute("selected","false")}))};e.prototype.render=function(){return h(Host,{selected:(state.selectedType===this.name)+"","selected-profile":state.selectedProfile+""},h("slot",null))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:["onSelectedChange"]}},enumerable:false,configurable:true});return e}();PnProfileModalType.style=pnProfileModalTypeCss;export{PnProfileModalType as pn_profile_modal_type};
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};import{r as registerInstance,h,a as Host,g as getElement}from"./index-6e611ed9.js";import{s as state}from"./pn-profile-modal-store-17855bd2.js";import"./index-6a2abc18.js";var pnProfileModalCss="pn-profile-modal{margin:1em auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:42.4rem;max-width:38.4rem;width:100%;padding:1.6rem;border-radius:8px;background:#FFFFFF}.profilemodal-container{padding:3.2rem;border-radius:8px;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);border:0.1rem solid #F3F2F2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profilemodal-logo{display:none}.profilemodal-logo svg{display:block;margin:0 auto 2.4rem}.profilemodal-heading{text-align:center;font-weight:700}.profilemodal-content{margin:1.6rem 0 0}.profilemodal-content pn-segmented-control{-webkit-transform:translateZ(0) translateX(-50%);transform:translateZ(0) translateX(-50%);left:50%}.profilemodal-cta{margin:1.6rem 0 0;-webkit-transition:max-height 0.15s ease, opacity 0.15s ease;transition:max-height 0.15s ease, opacity 0.15s ease;overflow:hidden;opacity:1}.profilemodal-cta[aria-hidden=true]{max-height:0;opacity:1}.profilemodal-cta>pn-button{width:100%}";var PnProfileModal=function(){function e(e){registerInstance(this,e);this.heading=null;this.continueCtaText=null;this.choosenCompanyText=null;this.toText=null;this.chooseCustomerNumberText=null;this.isLoading=true}e.prototype.componentWillLoad=function(){this.populateState();this.bindEvents()};e.prototype.populateState=function(){state.i18n.chooseCustomerNumberText=this.chooseCustomerNumberText;state.i18n.choosenCompanyText=this.choosenCompanyText;state.i18n.toText=this.toText;var e=this.hostElement.querySelector('pn-profile-modal-type[selected="true"]');if(e){state.selectedType=e.getAttribute("name")}};e.prototype.bindEvents=function(){var e=this.hostElement.querySelector("pn-segmented-control");if(e){e.addEventListener("change",this.onSegmentControlChange.bind(this))}};e.prototype.onSegmentControlChange=function(e){var t=e.target.value;var o=this.hostElement.querySelector('[typeid="'.concat(t,'"]'));if(o){var r=__spreadArray([],this.hostElement.querySelectorAll("pn-profile-modal-type"),true);r.forEach((function(e){e.setAttribute("selected",(e.getAttribute("typeid")===t)+"")}))}};e.prototype.onCTAClick=function(){if(!state.selectedUrl){console.log("no Url as been selected, will not continue")}};e.prototype.onUrlSelected=function(e){if(!e||!e.detail){return}state.selectedUrl=e.detail;var t=this.hostElement.querySelector(".profilemodal-cta pn-button");if(t){t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}};e.prototype.render=function(){return h(Host,null,h("div",{class:"profilemodal-container"},h("div",{class:"profilemodal-logo"},h("svg",{viewBox:"0 0 133 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"17.1rem",height:"3.2rem"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#00A0D6",d:"M132.749 0.333618V20.9198H126.976V19.3809C126.976 19.3809 125.475 21.4316 122.191 21.4316C117.381 21.4316 114.662 17.7015 114.662 13.0327C114.662 8.47612 117.776 4.7187 122.617 4.7187C125.589 4.7187 126.976 6.19924 126.976 6.19924V1.47206L132.749 0.333618ZM54.2322 1.67091H60.0055V5.20216H65.3564L62.7235 10.0999H60.0055V20.9198H54.2322V1.67091ZM28.2484 21.4023C32.8051 21.4023 37.6446 18.8974 37.6446 12.9187C37.6446 7.16616 32.9746 4.69042 28.4461 4.69042C23.8042 4.69042 19.049 7.25192 19.049 13.175C19.049 18.9549 23.7199 21.4023 28.2484 21.4023ZM28.3327 9.78608C30.2294 9.78608 31.5032 11.1243 31.5032 13.0902C31.5032 14.9392 30.2575 16.3076 28.3327 16.3076C26.437 16.3076 25.1351 14.9392 25.1351 13.0902C25.1351 11.1243 26.4089 9.78608 28.3327 9.78608ZM47.0708 10.8963C46.8158 10.8574 46.5804 10.8239 46.3639 10.7931C44.9938 10.5979 44.3827 10.5108 44.3827 9.87279C44.3827 9.24608 45.146 8.9888 46.6465 8.9888C49.1941 8.9888 51.4298 9.84357 51.4298 9.84357L52.4488 5.43022C52.4488 5.43022 49.9865 4.71869 46.7027 4.71869C41.1841 4.71869 38.2965 6.85422 38.2965 10.2705C38.2965 12.9187 39.8532 14.485 44.4108 15.0825C46.3355 15.3388 47.0427 15.4519 47.0427 16.1644C47.0427 16.8486 46.2784 17.0757 44.9484 17.0757C42.0608 17.0757 39.3437 15.8515 39.3437 15.8515L38.1832 20.4081C38.1832 20.4081 40.9003 21.375 44.4389 21.375C50.3826 21.375 53.1279 19.2668 53.1279 15.8223C53.1279 13.0902 51.6555 11.6087 47.0708 10.8963ZM76.1968 4.69042C72.8287 4.69042 71.6111 6.74018 71.6111 6.74018V5.20216H65.8369V20.9198H71.6111V12.8612C71.6111 10.8689 72.3483 9.95666 74.1297 9.95666C75.913 9.95666 76.1687 11.4381 76.1687 13.3173V20.9198H81.9982V11.2666C81.9982 6.93903 79.9339 4.69042 76.1968 4.69042ZM123.948 9.8153C125.843 9.8153 127.144 11.1818 127.144 13.0327C127.144 14.9958 125.87 16.335 123.948 16.335C122.051 16.335 120.778 14.9958 120.778 13.0327C120.778 11.1818 122.024 9.8153 123.948 9.8153ZM112.456 10.213C110.53 10.213 109.088 10.9537 109.088 13.3456V20.9198H103.313V5.20216H109.088V7.02479C109.088 7.02479 109.965 4.97409 113.191 4.97409C114.181 4.97409 114.55 5.14467 114.55 5.14467L114.408 10.4976C114.408 10.4976 113.643 10.213 112.456 10.213ZM11.9728 13.0902C11.9728 11.1243 10.699 9.78608 8.80235 9.78608C6.87853 9.78608 5.6038 11.1243 5.6038 13.0902C5.6038 14.9392 6.9057 16.3076 8.80235 16.3076C10.728 16.3076 11.9728 14.9392 11.9728 13.0902ZM10.1333 21.4023C14.9728 21.4023 18.0871 17.6468 18.0871 13.0902C18.0871 8.41958 15.3699 4.69042 10.5576 4.69042C7.27472 4.69042 5.77426 6.74018 5.77426 6.74018V5.20216H0V25.4453H5.77426V19.9227C5.77426 19.9227 7.16139 21.4023 10.1333 21.4023ZM95.7984 13.0902C95.7984 11.1243 94.5246 9.78608 92.6279 9.78608C90.7032 9.78608 89.4284 11.1243 89.4284 13.0902C89.4284 14.9392 90.7322 16.3076 92.6279 16.3076C94.5536 16.3076 95.7984 14.9392 95.7984 13.0902ZM92.5427 21.4023C97.0994 21.4023 101.94 18.8974 101.94 12.9187C101.94 7.16616 97.2698 4.69042 92.7413 4.69042C88.0984 4.69042 83.3442 7.25192 83.3442 13.175C83.3442 18.9549 88.0142 21.4023 92.5427 21.4023Z"}))),this.heading===""?null:h("div",{class:"profilemodal-heading"},this.heading),h("div",{class:"profilemodal-content"},h("slot",null)),this.continueCtaText?h("div",{class:"profilemodal-cta","aria-hidden":!state.selectedUrl+""},h("pn-button",{onclick:this.onCTAClick,href:state.selectedUrl,icon:"arrow-right"},this.continueCtaText)):null))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileModal.style=pnProfileModalCss;export{PnProfileModal as pn_profile_modal};
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};import{r as registerInstance,h,e as Host,g as getElement}from"./index-a0d3240d.js";import{s as state}from"./pn-profile-modal-store-d41bc672.js";import"./index-493a47cd.js";var pnProfileModalCss="pn-profile-modal{margin:1em auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:42.4rem;max-width:38.4rem;width:100%;padding:1.6rem;border-radius:8px;background:#FFFFFF}.profilemodal-container{padding:3.2rem;border-radius:8px;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);border:0.1rem solid #F3F2F2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profilemodal-logo{display:none}.profilemodal-logo svg{display:block;margin:0 auto 2.4rem}.profilemodal-heading{text-align:center;font-weight:700}.profilemodal-content{margin:1.6rem 0 0}.profilemodal-content pn-segmented-control{-webkit-transform:translateZ(0) translateX(-50%);transform:translateZ(0) translateX(-50%);left:50%}.profilemodal-cta{margin:1.6rem 0 0;-webkit-transition:max-height 0.15s ease, opacity 0.15s ease;transition:max-height 0.15s ease, opacity 0.15s ease;overflow:hidden;opacity:1}.profilemodal-cta[aria-hidden=true]{max-height:0;opacity:1}.profilemodal-cta>pn-button{width:100%}";var PnProfileModal=function(){function e(e){registerInstance(this,e);this.heading=null;this.continueCtaText=null;this.choosenCompanyText=null;this.toText=null;this.chooseCustomerNumberText=null;this.isLoading=true}e.prototype.componentWillLoad=function(){this.populateState();this.bindEvents()};e.prototype.populateState=function(){state.i18n.chooseCustomerNumberText=this.chooseCustomerNumberText;state.i18n.choosenCompanyText=this.choosenCompanyText;state.i18n.toText=this.toText;var e=this.hostElement.querySelector('pn-profile-modal-type[selected="true"]');if(e){state.selectedType=e.getAttribute("name")}};e.prototype.bindEvents=function(){var e=this.hostElement.querySelector("pn-segmented-control");if(e){e.addEventListener("change",this.onSegmentControlChange.bind(this))}};e.prototype.onSegmentControlChange=function(e){var t=e.target.value;var o=this.hostElement.querySelector('[typeid="'.concat(t,'"]'));if(o){var r=__spreadArray([],this.hostElement.querySelectorAll("pn-profile-modal-type"),true);r.forEach((function(e){e.setAttribute("selected",(e.getAttribute("typeid")===t)+"")}))}};e.prototype.onCTAClick=function(){if(!state.selectedUrl){console.log("no Url as been selected, will not continue")}};e.prototype.onUrlSelected=function(e){if(!e||!e.detail){return}state.selectedUrl=e.detail;var t=this.hostElement.querySelector(".profilemodal-cta pn-button");if(t){t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}};e.prototype.render=function(){return h(Host,null,h("div",{class:"profilemodal-container"},h("div",{class:"profilemodal-logo"},h("svg",{viewBox:"0 0 133 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"17.1rem",height:"3.2rem"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#00A0D6",d:"M132.749 0.333618V20.9198H126.976V19.3809C126.976 19.3809 125.475 21.4316 122.191 21.4316C117.381 21.4316 114.662 17.7015 114.662 13.0327C114.662 8.47612 117.776 4.7187 122.617 4.7187C125.589 4.7187 126.976 6.19924 126.976 6.19924V1.47206L132.749 0.333618ZM54.2322 1.67091H60.0055V5.20216H65.3564L62.7235 10.0999H60.0055V20.9198H54.2322V1.67091ZM28.2484 21.4023C32.8051 21.4023 37.6446 18.8974 37.6446 12.9187C37.6446 7.16616 32.9746 4.69042 28.4461 4.69042C23.8042 4.69042 19.049 7.25192 19.049 13.175C19.049 18.9549 23.7199 21.4023 28.2484 21.4023ZM28.3327 9.78608C30.2294 9.78608 31.5032 11.1243 31.5032 13.0902C31.5032 14.9392 30.2575 16.3076 28.3327 16.3076C26.437 16.3076 25.1351 14.9392 25.1351 13.0902C25.1351 11.1243 26.4089 9.78608 28.3327 9.78608ZM47.0708 10.8963C46.8158 10.8574 46.5804 10.8239 46.3639 10.7931C44.9938 10.5979 44.3827 10.5108 44.3827 9.87279C44.3827 9.24608 45.146 8.9888 46.6465 8.9888C49.1941 8.9888 51.4298 9.84357 51.4298 9.84357L52.4488 5.43022C52.4488 5.43022 49.9865 4.71869 46.7027 4.71869C41.1841 4.71869 38.2965 6.85422 38.2965 10.2705C38.2965 12.9187 39.8532 14.485 44.4108 15.0825C46.3355 15.3388 47.0427 15.4519 47.0427 16.1644C47.0427 16.8486 46.2784 17.0757 44.9484 17.0757C42.0608 17.0757 39.3437 15.8515 39.3437 15.8515L38.1832 20.4081C38.1832 20.4081 40.9003 21.375 44.4389 21.375C50.3826 21.375 53.1279 19.2668 53.1279 15.8223C53.1279 13.0902 51.6555 11.6087 47.0708 10.8963ZM76.1968 4.69042C72.8287 4.69042 71.6111 6.74018 71.6111 6.74018V5.20216H65.8369V20.9198H71.6111V12.8612C71.6111 10.8689 72.3483 9.95666 74.1297 9.95666C75.913 9.95666 76.1687 11.4381 76.1687 13.3173V20.9198H81.9982V11.2666C81.9982 6.93903 79.9339 4.69042 76.1968 4.69042ZM123.948 9.8153C125.843 9.8153 127.144 11.1818 127.144 13.0327C127.144 14.9958 125.87 16.335 123.948 16.335C122.051 16.335 120.778 14.9958 120.778 13.0327C120.778 11.1818 122.024 9.8153 123.948 9.8153ZM112.456 10.213C110.53 10.213 109.088 10.9537 109.088 13.3456V20.9198H103.313V5.20216H109.088V7.02479C109.088 7.02479 109.965 4.97409 113.191 4.97409C114.181 4.97409 114.55 5.14467 114.55 5.14467L114.408 10.4976C114.408 10.4976 113.643 10.213 112.456 10.213ZM11.9728 13.0902C11.9728 11.1243 10.699 9.78608 8.80235 9.78608C6.87853 9.78608 5.6038 11.1243 5.6038 13.0902C5.6038 14.9392 6.9057 16.3076 8.80235 16.3076C10.728 16.3076 11.9728 14.9392 11.9728 13.0902ZM10.1333 21.4023C14.9728 21.4023 18.0871 17.6468 18.0871 13.0902C18.0871 8.41958 15.3699 4.69042 10.5576 4.69042C7.27472 4.69042 5.77426 6.74018 5.77426 6.74018V5.20216H0V25.4453H5.77426V19.9227C5.77426 19.9227 7.16139 21.4023 10.1333 21.4023ZM95.7984 13.0902C95.7984 11.1243 94.5246 9.78608 92.6279 9.78608C90.7032 9.78608 89.4284 11.1243 89.4284 13.0902C89.4284 14.9392 90.7322 16.3076 92.6279 16.3076C94.5536 16.3076 95.7984 14.9392 95.7984 13.0902ZM92.5427 21.4023C97.0994 21.4023 101.94 18.8974 101.94 12.9187C101.94 7.16616 97.2698 4.69042 92.7413 4.69042C88.0984 4.69042 83.3442 7.25192 83.3442 13.175C83.3442 18.9549 88.0142 21.4023 92.5427 21.4023Z"}))),this.heading===""?null:h("div",{class:"profilemodal-heading"},this.heading),h("div",{class:"profilemodal-content"},h("slot",null)),this.continueCtaText?h("div",{class:"profilemodal-cta","aria-hidden":!state.selectedUrl+""},h("pn-button",{onclick:this.onCTAClick,href:state.selectedUrl,icon:"arrow-right"},this.continueCtaText)):null))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileModal.style=pnProfileModalCss;export{PnProfileModal as pn_profile_modal};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-6e611ed9.js";var pnProfileSelectorOptionCss="pn-profile-selector-option{display:-ms-flexbox;display:flex;width:100%;border-bottom:1px solid #D3CECB;padding:1.2rem 0}pn-profile-selector-option:first-of-type{margin-top:2.4rem}pn-profile-selector-option:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-selector-option:last-of-type .profileselectoroption{padding-bottom:0}.profileselectoroption{display:-ms-flexbox;display:flex;width:100%;padding:1.2rem 0;text-decoration:none}.profileselectoroption pn-icon{-ms-flex-item-align:center;align-self:center;position:relative;-webkit-transform:translateX(-1rem);transform:translateX(-1rem);-webkit-transition:-webkit-transform 0.25s linear;transition:-webkit-transform 0.25s linear;transition:transform 0.25s linear;transition:transform 0.25s linear, -webkit-transform 0.25s linear}.profileselectoroption:hover .profileselectoroption-name,.profileselectoroption:focus .profileselectoroption-name,.profileselectoroption:active .profileselectoroption-name{text-decoration:underline}.profileselectoroption:hover pn-icon,.profileselectoroption:focus pn-icon,.profileselectoroption:active pn-icon{-webkit-transform:none;transform:none;-webkit-transition-timing-function:ease;transition-timing-function:ease}.profileselectoroption-text{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselectoroption-title{font-size:1em;color:#005D92;font-weight:700}.profileselectoroption-description{font-size:0.75em;color:#5E554A;font-weight:normal}";var PnProfileSelectorOption=function(){function e(e){registerInstance(this,e);this.heading="";this.description="";this.url=""}e.prototype.render=function(){return h(Host,null,h("a",{class:"profileselectoroption",href:this.url},h("span",{class:"profileselectoroption-text"},h("span",{class:"profileselectoroption-title"},this.heading),h("span",{class:"profileselectoroption-description"},this.description)),h("pn-icon",{symbol:"arrow-right",small:"false",color:"blue700"})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileSelectorOption.style=pnProfileSelectorOptionCss;export{PnProfileSelectorOption as pn_profile_selector_option};
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-a0d3240d.js";var pnProfileSelectorOptionCss="pn-profile-selector-option{display:-ms-flexbox;display:flex;width:100%;border-bottom:1px solid #D3CECB;padding:1.2rem 0}pn-profile-selector-option:first-of-type{margin-top:2.4rem}pn-profile-selector-option:last-of-type{border-bottom:0;padding-bottom:0}pn-profile-selector-option:last-of-type .profileselectoroption{padding-bottom:0}.profileselectoroption{display:-ms-flexbox;display:flex;width:100%;padding:1.2rem 0;text-decoration:none}.profileselectoroption pn-icon{-ms-flex-item-align:center;align-self:center;position:relative;-webkit-transform:translateX(-1rem);transform:translateX(-1rem);-webkit-transition:-webkit-transform 0.25s linear;transition:-webkit-transform 0.25s linear;transition:transform 0.25s linear;transition:transform 0.25s linear, -webkit-transform 0.25s linear}.profileselectoroption:hover .profileselectoroption-name,.profileselectoroption:focus .profileselectoroption-name,.profileselectoroption:active .profileselectoroption-name{text-decoration:underline}.profileselectoroption:hover pn-icon,.profileselectoroption:focus pn-icon,.profileselectoroption:active pn-icon{-webkit-transform:none;transform:none;-webkit-transition-timing-function:ease;transition-timing-function:ease}.profileselectoroption-text{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselectoroption-title{font-size:1em;color:#005D92;font-weight:700}.profileselectoroption-description{font-size:0.75em;color:#5E554A;font-weight:normal}";var PnProfileSelectorOption=function(){function e(e){registerInstance(this,e);this.heading="";this.description="";this.url=""}e.prototype.render=function(){return h(Host,null,h("a",{class:"profileselectoroption",href:this.url},h("span",{class:"profileselectoroption-text"},h("span",{class:"profileselectoroption-title"},this.heading),h("span",{class:"profileselectoroption-description"},this.description)),h("pn-icon",{symbol:"arrow-right",small:"false",color:"blue700"})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileSelectorOption.style=pnProfileSelectorOptionCss;export{PnProfileSelectorOption as pn_profile_selector_option};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-6e611ed9.js";var translations={sv:{introMessage:"Välj ombud du vill agera som?"},en:{introMessage:"Which customer number do you want to handle today?"},da:{introMessage:"Hvilket kundenummer vil du håndtere i dag?"},no:{introMessage:"Hvilket kundenummer ønsker du å håndtere i dag?"},fi:{introMessage:"Mitä asiakasnumeroa haluat käsitellä tänään?"},de:{introMessage:"Welche Kundennummer möchten Sie heute bearbeiten?"}};var pnProfileSelectorCss="pn-profile-selector{margin:1em auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:42.4rem;max-width:38.4rem;width:100%;padding:1.6rem;border-radius:8px;background:#FFFFFF}.profileselector-container{padding:3.2rem;border-radius:8px;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);border:0.1rem solid #F3F2F2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselector-logo svg{display:block;margin:0 auto 2.4rem}.profileselector-intromessage{text-align:center;font-weight:700}";var PnProfileSelector=function(){function e(e){registerInstance(this,e);this.language="sv";this.returnUrl="/";this.heading=null;this.i18n=translations["en"];this.isLoading=true;this.numberOfProfiles=1}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){this.setTranslations()};e.prototype.setTranslations=function(){if(this.language&&translations[this.language]){this.i18n=translations[this.language]}};e.prototype.render=function(){return h(Host,null,h("div",{class:"profileselector-container"},h("div",{class:"profileselector-logo"},h("svg",{viewBox:"0 0 133 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"17.1rem",height:"3.2rem"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#00A0D6",d:"M132.749 0.333618V20.9198H126.976V19.3809C126.976 19.3809 125.475 21.4316 122.191 21.4316C117.381 21.4316 114.662 17.7015 114.662 13.0327C114.662 8.47612 117.776 4.7187 122.617 4.7187C125.589 4.7187 126.976 6.19924 126.976 6.19924V1.47206L132.749 0.333618ZM54.2322 1.67091H60.0055V5.20216H65.3564L62.7235 10.0999H60.0055V20.9198H54.2322V1.67091ZM28.2484 21.4023C32.8051 21.4023 37.6446 18.8974 37.6446 12.9187C37.6446 7.16616 32.9746 4.69042 28.4461 4.69042C23.8042 4.69042 19.049 7.25192 19.049 13.175C19.049 18.9549 23.7199 21.4023 28.2484 21.4023ZM28.3327 9.78608C30.2294 9.78608 31.5032 11.1243 31.5032 13.0902C31.5032 14.9392 30.2575 16.3076 28.3327 16.3076C26.437 16.3076 25.1351 14.9392 25.1351 13.0902C25.1351 11.1243 26.4089 9.78608 28.3327 9.78608ZM47.0708 10.8963C46.8158 10.8574 46.5804 10.8239 46.3639 10.7931C44.9938 10.5979 44.3827 10.5108 44.3827 9.87279C44.3827 9.24608 45.146 8.9888 46.6465 8.9888C49.1941 8.9888 51.4298 9.84357 51.4298 9.84357L52.4488 5.43022C52.4488 5.43022 49.9865 4.71869 46.7027 4.71869C41.1841 4.71869 38.2965 6.85422 38.2965 10.2705C38.2965 12.9187 39.8532 14.485 44.4108 15.0825C46.3355 15.3388 47.0427 15.4519 47.0427 16.1644C47.0427 16.8486 46.2784 17.0757 44.9484 17.0757C42.0608 17.0757 39.3437 15.8515 39.3437 15.8515L38.1832 20.4081C38.1832 20.4081 40.9003 21.375 44.4389 21.375C50.3826 21.375 53.1279 19.2668 53.1279 15.8223C53.1279 13.0902 51.6555 11.6087 47.0708 10.8963ZM76.1968 4.69042C72.8287 4.69042 71.6111 6.74018 71.6111 6.74018V5.20216H65.8369V20.9198H71.6111V12.8612C71.6111 10.8689 72.3483 9.95666 74.1297 9.95666C75.913 9.95666 76.1687 11.4381 76.1687 13.3173V20.9198H81.9982V11.2666C81.9982 6.93903 79.9339 4.69042 76.1968 4.69042ZM123.948 9.8153C125.843 9.8153 127.144 11.1818 127.144 13.0327C127.144 14.9958 125.87 16.335 123.948 16.335C122.051 16.335 120.778 14.9958 120.778 13.0327C120.778 11.1818 122.024 9.8153 123.948 9.8153ZM112.456 10.213C110.53 10.213 109.088 10.9537 109.088 13.3456V20.9198H103.313V5.20216H109.088V7.02479C109.088 7.02479 109.965 4.97409 113.191 4.97409C114.181 4.97409 114.55 5.14467 114.55 5.14467L114.408 10.4976C114.408 10.4976 113.643 10.213 112.456 10.213ZM11.9728 13.0902C11.9728 11.1243 10.699 9.78608 8.80235 9.78608C6.87853 9.78608 5.6038 11.1243 5.6038 13.0902C5.6038 14.9392 6.9057 16.3076 8.80235 16.3076C10.728 16.3076 11.9728 14.9392 11.9728 13.0902ZM10.1333 21.4023C14.9728 21.4023 18.0871 17.6468 18.0871 13.0902C18.0871 8.41958 15.3699 4.69042 10.5576 4.69042C7.27472 4.69042 5.77426 6.74018 5.77426 6.74018V5.20216H0V25.4453H5.77426V19.9227C5.77426 19.9227 7.16139 21.4023 10.1333 21.4023ZM95.7984 13.0902C95.7984 11.1243 94.5246 9.78608 92.6279 9.78608C90.7032 9.78608 89.4284 11.1243 89.4284 13.0902C89.4284 14.9392 90.7322 16.3076 92.6279 16.3076C94.5536 16.3076 95.7984 14.9392 95.7984 13.0902ZM92.5427 21.4023C97.0994 21.4023 101.94 18.8974 101.94 12.9187C101.94 7.16616 97.2698 4.69042 92.7413 4.69042C88.0984 4.69042 83.3442 7.25192 83.3442 13.175C83.3442 18.9549 88.0142 21.4023 92.5427 21.4023Z"}))),this.heading===""?null:h("div",{class:"profileselector-intromessage"},this.heading===null?this.i18n.introMessage:this.heading),h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileSelector.style=pnProfileSelectorCss;export{PnProfileSelector as pn_profile_selector};
1
+ import{r as registerInstance,h,e as Host,g as getElement}from"./index-a0d3240d.js";var translations={sv:{introMessage:"Välj ombud du vill agera som?"},en:{introMessage:"Which customer number do you want to handle today?"},da:{introMessage:"Hvilket kundenummer vil du håndtere i dag?"},no:{introMessage:"Hvilket kundenummer ønsker du å håndtere i dag?"},fi:{introMessage:"Mitä asiakasnumeroa haluat käsitellä tänään?"},de:{introMessage:"Welche Kundennummer möchten Sie heute bearbeiten?"}};var pnProfileSelectorCss="pn-profile-selector{margin:1em auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:42.4rem;max-width:38.4rem;width:100%;padding:1.6rem;border-radius:8px;background:#FFFFFF}.profileselector-container{padding:3.2rem;border-radius:8px;-webkit-box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);box-shadow:0 0.06rem 0.18rem rgba(0, 0, 0, 0.1), 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);border:0.1rem solid #F3F2F2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.profileselector-logo svg{display:block;margin:0 auto 2.4rem}.profileselector-intromessage{text-align:center;font-weight:700}";var PnProfileSelector=function(){function e(e){registerInstance(this,e);this.language="sv";this.returnUrl="/";this.heading=null;this.i18n=translations["en"];this.isLoading=true;this.numberOfProfiles=1}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){this.setTranslations()};e.prototype.setTranslations=function(){if(this.language&&translations[this.language]){this.i18n=translations[this.language]}};e.prototype.render=function(){return h(Host,null,h("div",{class:"profileselector-container"},h("div",{class:"profileselector-logo"},h("svg",{viewBox:"0 0 133 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"17.1rem",height:"3.2rem"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#00A0D6",d:"M132.749 0.333618V20.9198H126.976V19.3809C126.976 19.3809 125.475 21.4316 122.191 21.4316C117.381 21.4316 114.662 17.7015 114.662 13.0327C114.662 8.47612 117.776 4.7187 122.617 4.7187C125.589 4.7187 126.976 6.19924 126.976 6.19924V1.47206L132.749 0.333618ZM54.2322 1.67091H60.0055V5.20216H65.3564L62.7235 10.0999H60.0055V20.9198H54.2322V1.67091ZM28.2484 21.4023C32.8051 21.4023 37.6446 18.8974 37.6446 12.9187C37.6446 7.16616 32.9746 4.69042 28.4461 4.69042C23.8042 4.69042 19.049 7.25192 19.049 13.175C19.049 18.9549 23.7199 21.4023 28.2484 21.4023ZM28.3327 9.78608C30.2294 9.78608 31.5032 11.1243 31.5032 13.0902C31.5032 14.9392 30.2575 16.3076 28.3327 16.3076C26.437 16.3076 25.1351 14.9392 25.1351 13.0902C25.1351 11.1243 26.4089 9.78608 28.3327 9.78608ZM47.0708 10.8963C46.8158 10.8574 46.5804 10.8239 46.3639 10.7931C44.9938 10.5979 44.3827 10.5108 44.3827 9.87279C44.3827 9.24608 45.146 8.9888 46.6465 8.9888C49.1941 8.9888 51.4298 9.84357 51.4298 9.84357L52.4488 5.43022C52.4488 5.43022 49.9865 4.71869 46.7027 4.71869C41.1841 4.71869 38.2965 6.85422 38.2965 10.2705C38.2965 12.9187 39.8532 14.485 44.4108 15.0825C46.3355 15.3388 47.0427 15.4519 47.0427 16.1644C47.0427 16.8486 46.2784 17.0757 44.9484 17.0757C42.0608 17.0757 39.3437 15.8515 39.3437 15.8515L38.1832 20.4081C38.1832 20.4081 40.9003 21.375 44.4389 21.375C50.3826 21.375 53.1279 19.2668 53.1279 15.8223C53.1279 13.0902 51.6555 11.6087 47.0708 10.8963ZM76.1968 4.69042C72.8287 4.69042 71.6111 6.74018 71.6111 6.74018V5.20216H65.8369V20.9198H71.6111V12.8612C71.6111 10.8689 72.3483 9.95666 74.1297 9.95666C75.913 9.95666 76.1687 11.4381 76.1687 13.3173V20.9198H81.9982V11.2666C81.9982 6.93903 79.9339 4.69042 76.1968 4.69042ZM123.948 9.8153C125.843 9.8153 127.144 11.1818 127.144 13.0327C127.144 14.9958 125.87 16.335 123.948 16.335C122.051 16.335 120.778 14.9958 120.778 13.0327C120.778 11.1818 122.024 9.8153 123.948 9.8153ZM112.456 10.213C110.53 10.213 109.088 10.9537 109.088 13.3456V20.9198H103.313V5.20216H109.088V7.02479C109.088 7.02479 109.965 4.97409 113.191 4.97409C114.181 4.97409 114.55 5.14467 114.55 5.14467L114.408 10.4976C114.408 10.4976 113.643 10.213 112.456 10.213ZM11.9728 13.0902C11.9728 11.1243 10.699 9.78608 8.80235 9.78608C6.87853 9.78608 5.6038 11.1243 5.6038 13.0902C5.6038 14.9392 6.9057 16.3076 8.80235 16.3076C10.728 16.3076 11.9728 14.9392 11.9728 13.0902ZM10.1333 21.4023C14.9728 21.4023 18.0871 17.6468 18.0871 13.0902C18.0871 8.41958 15.3699 4.69042 10.5576 4.69042C7.27472 4.69042 5.77426 6.74018 5.77426 6.74018V5.20216H0V25.4453H5.77426V19.9227C5.77426 19.9227 7.16139 21.4023 10.1333 21.4023ZM95.7984 13.0902C95.7984 11.1243 94.5246 9.78608 92.6279 9.78608C90.7032 9.78608 89.4284 11.1243 89.4284 13.0902C89.4284 14.9392 90.7322 16.3076 92.6279 16.3076C94.5536 16.3076 95.7984 14.9392 95.7984 13.0902ZM92.5427 21.4023C97.0994 21.4023 101.94 18.8974 101.94 12.9187C101.94 7.16616 97.2698 4.69042 92.7413 4.69042C88.0984 4.69042 83.3442 7.25192 83.3442 13.175C83.3442 18.9549 88.0142 21.4023 92.5427 21.4023Z"}))),this.heading===""?null:h("div",{class:"profileselector-intromessage"},this.heading===null?this.i18n.introMessage:this.heading),h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileSelector.style=pnProfileSelectorCss;export{PnProfileSelector as pn_profile_selector};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host}from"./index-6e611ed9.js";import{t as translations}from"./translations-0c395f8d.js";var pnProxioFindpriceResultCss="pn-proxio-findprice-result [slot=insurance]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}pn-proxio-findprice-result .insurance-box{padding:0.4rem 0.8rem;border-radius:0.8rem;background-color:#8EDDF9;text-align:center;font-size:1.2rem;font-weight:400;margin-bottom:2.4rem}";var PnProxioFindPriceResult=function(){function t(t){registerInstance(this,t);this.item=null;this.activeweight=null;this.shownitems=[];this.Usp1=undefined;this.Usp2=undefined;this.Usp3=undefined;this.description=[];this.showMeasurement=false;this.showInternational=false;this.selectedCountrycode="";this.market="";this.language="sv";this.weightText="";this.linkId="";this.shopLabel="";this.shopUrl="";this.shopId="";this.i18n=translations[this.language]}t.prototype.componentWillLoad=function(){this.composeItems()};t.prototype.composeItems=function(){this.shownitems=[this.item]};t.prototype.getPriceString=function(t){var i=this;var o,e;if(!t.productWeightGroupList){return null}var r=t.productWeightGroupList.findIndex((function(t){return t.item1===i.activeweight}));var n="";if(this.showInternational&&this.selectedCountrycode&&this.selectedCountrycode!==this.market&&t.weightPriceCountryList){var s=t.weightPriceCountryList.filter((function(t){return t.item3.includes(i.selectedCountrycode.toUpperCase())}));n=s?(o=s[r])===null||o===void 0?void 0:o.item2:""}else{n=t.weightAndPriceList?(e=t===null||t===void 0?void 0:t.weightAndPriceList[r])===null||e===void 0?void 0:e.item2:""}return n?this.i18n.from+n:""};t.prototype.getProductLink=function(t,i){var o=this;var e;if(t.productWeightGroupList){var r=t.productWeightGroupList.findIndex((function(t){return t.item1===o.activeweight}));var n=(e=i[r])===null||e===void 0?void 0:e.item2;var s=t.productLink?t===null||t===void 0?void 0:t.productLink:"";return s?s+(n?"?productId="+n:""):""}return null};t.prototype.getDeliveryInformation=function(t){var i=this;var o,e;if(!this.showInternational||!t.deliveryDateInternationalInformation){return t.deliveryDateInformation}var r=(o=t===null||t===void 0?void 0:t.deliveryDateInternationalInformation)===null||o===void 0?void 0:o.find((function(t){return t.item1.toLowerCase()===i.selectedCountrycode.toLowerCase()}));if((e=!(r===null||r===void 0?void 0:r.item2))!==null&&e!==void 0?e:true){return t.deliveryDateInformation}return r.item2};t.prototype.getInsuranceAmountText=function(t){var i=this;var o,e;if(!t.insuranceAmounts){return""}var r=(o=t===null||t===void 0?void 0:t.insuranceAmounts)===null||o===void 0?void 0:o.find((function(t){return t.item1.toLowerCase()===i.selectedCountrycode.toLowerCase()}));if((e=!(r===null||r===void 0?void 0:r.item2))!==null&&e!==void 0?e:true){return""}return r.item2};t.prototype.render=function(){var t=this;return h(Host,null,h("pn-proxio-productcard",null,h("pn-illustration",{slot:"illustrationmobile",illustration:this.item.proxioProduct.productIcon}),h("h2",{slot:"title"},this.item.proxioProduct.productTitle),h("pn-proxio-productcard-description",{slot:"description",heading:this.item.proxioProduct.productPreamble,highlight:this.getDeliveryInformation(this.item.proxioProduct),list:this.item.proxioProduct.productDescriptionBulletListItems}),h("div",{slot:"information"},h("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensions,information:this.item.proxioProduct.productPackageDimensionsList}),h("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensionsRoll,information:this.item.proxioProduct.productRollDimensionsList})),h("div",{slot:"bottomtags"},this.item.proxioProduct.usp1?h("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp1):null,this.item.proxioProduct.usp2?h("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp2):null,this.item.proxioProduct.usp3?h("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp3):null),h("pn-illustration",{slot:"illustration",illustration:this.item.proxioProduct.productIcon}),h("div",{slot:"pricelink"},h("pn-proxio-productcard-pricelink",{price:this.getPriceString(this.item.proxioProduct),link:this.getProductLink(this.item.proxioProduct,this.item.proxioProduct.productWeightGroupList),linktext:this.item.proxioProduct.productLinkText}),this.item.relatedProxioProducts?this.item.relatedProxioProducts.map((function(i){return h("pn-proxio-productcard-pricelink",{price:t.getPriceString(i),link:i.productLink,linktext:i.productLinkText})})):null),this.getInsuranceAmountText(this.item.proxioProduct)?h("div",{slot:"insurance"},h("div",{class:"insurance-box"},this.getInsuranceAmountText(this.item.proxioProduct))):null))};Object.defineProperty(t,"watchers",{get:function(){return{item:["composeItems"],activeweight:["getPriceString","getProductLink"]}},enumerable:false,configurable:true});return t}();PnProxioFindPriceResult.style=pnProxioFindpriceResultCss;export{PnProxioFindPriceResult as pn_proxio_findprice_result};
1
+ import{r as registerInstance,h,e as Host}from"./index-a0d3240d.js";import{t as translations}from"./translations-0c395f8d.js";var pnProxioFindpriceResultCss="pn-proxio-findprice-result [slot=insurance]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}pn-proxio-findprice-result .insurance-box{padding:0.4rem 0.8rem;border-radius:0.8rem;background-color:#8EDDF9;text-align:center;font-size:1.2rem;font-weight:400;margin-bottom:2.4rem}";var PnProxioFindPriceResult=function(){function t(t){registerInstance(this,t);this.item=null;this.activeweight=null;this.shownitems=[];this.Usp1=undefined;this.Usp2=undefined;this.Usp3=undefined;this.description=[];this.showMeasurement=false;this.showInternational=false;this.selectedCountrycode="";this.market="";this.language="sv";this.weightText="";this.linkId="";this.shopLabel="";this.shopUrl="";this.shopId="";this.i18n=translations[this.language]}t.prototype.componentWillLoad=function(){this.composeItems()};t.prototype.composeItems=function(){this.shownitems=[this.item]};t.prototype.getPriceString=function(t){var i=this;var o,e;if(!t.productWeightGroupList){return null}var r=t.productWeightGroupList.findIndex((function(t){return t.item1===i.activeweight}));var n="";if(this.showInternational&&this.selectedCountrycode&&this.selectedCountrycode!==this.market&&t.weightPriceCountryList){var s=t.weightPriceCountryList.filter((function(t){return t.item3.includes(i.selectedCountrycode.toUpperCase())}));n=s?(o=s[r])===null||o===void 0?void 0:o.item2:""}else{n=t.weightAndPriceList?(e=t===null||t===void 0?void 0:t.weightAndPriceList[r])===null||e===void 0?void 0:e.item2:""}return n?this.i18n.from+n:""};t.prototype.getProductLink=function(t,i){var o=this;var e;if(t.productWeightGroupList){var r=t.productWeightGroupList.findIndex((function(t){return t.item1===o.activeweight}));var n=(e=i[r])===null||e===void 0?void 0:e.item2;var s=t.productLink?t===null||t===void 0?void 0:t.productLink:"";return s?s+(n?"?productId="+n:""):""}return null};t.prototype.getDeliveryInformation=function(t){var i=this;var o,e;if(!this.showInternational||!t.deliveryDateInternationalInformation){return t.deliveryDateInformation}var r=(o=t===null||t===void 0?void 0:t.deliveryDateInternationalInformation)===null||o===void 0?void 0:o.find((function(t){return t.item1.toLowerCase()===i.selectedCountrycode.toLowerCase()}));if((e=!(r===null||r===void 0?void 0:r.item2))!==null&&e!==void 0?e:true){return t.deliveryDateInformation}return r.item2};t.prototype.getInsuranceAmountText=function(t){var i=this;var o,e;if(!t.insuranceAmounts){return""}var r=(o=t===null||t===void 0?void 0:t.insuranceAmounts)===null||o===void 0?void 0:o.find((function(t){return t.item1.toLowerCase()===i.selectedCountrycode.toLowerCase()}));if((e=!(r===null||r===void 0?void 0:r.item2))!==null&&e!==void 0?e:true){return""}return r.item2};t.prototype.render=function(){var t=this;return h(Host,null,h("pn-proxio-productcard",null,h("pn-illustration",{slot:"illustrationmobile",illustration:this.item.proxioProduct.productIcon}),h("h2",{slot:"title"},this.item.proxioProduct.productTitle),h("pn-proxio-productcard-description",{slot:"description",heading:this.item.proxioProduct.productPreamble,highlight:this.getDeliveryInformation(this.item.proxioProduct),list:this.item.proxioProduct.productDescriptionBulletListItems}),h("div",{slot:"information"},h("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensions,information:this.item.proxioProduct.productPackageDimensionsList}),h("pn-proxio-productcard-information",{label:this.i18n.labelMaxDimensionsRoll,information:this.item.proxioProduct.productRollDimensionsList})),h("div",{slot:"bottomtags"},this.item.proxioProduct.usp1?h("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp1):null,this.item.proxioProduct.usp2?h("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp2):null,this.item.proxioProduct.usp3?h("pn-titletag",{color:"gray50"},this.item.proxioProduct.usp3):null),h("pn-illustration",{slot:"illustration",illustration:this.item.proxioProduct.productIcon}),h("div",{slot:"pricelink"},h("pn-proxio-productcard-pricelink",{price:this.getPriceString(this.item.proxioProduct),link:this.getProductLink(this.item.proxioProduct,this.item.proxioProduct.productWeightGroupList),linktext:this.item.proxioProduct.productLinkText}),this.item.relatedProxioProducts?this.item.relatedProxioProducts.map((function(i){return h("pn-proxio-productcard-pricelink",{price:t.getPriceString(i),link:i.productLink,linktext:i.productLinkText})})):null),this.getInsuranceAmountText(this.item.proxioProduct)?h("div",{slot:"insurance"},h("div",{class:"insurance-box"},this.getInsuranceAmountText(this.item.proxioProduct))):null))};Object.defineProperty(t,"watchers",{get:function(){return{item:["composeItems"],activeweight:["getPriceString","getProductLink"]}},enumerable:false,configurable:true});return t}();PnProxioFindPriceResult.style=pnProxioFindpriceResultCss;export{PnProxioFindPriceResult as pn_proxio_findprice_result};