@postnord/pn-marketweb-components 3.0.3 → 3.1.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 (758) hide show
  1. package/cjs/{FetchHelper-8d537d38.js → FetchHelper-dcfe4038.js} +122 -123
  2. package/cjs/FetchHelper-dcfe4038.js.map +1 -0
  3. package/cjs/loader.cjs.js +1 -1
  4. package/cjs/pn-address-autofill.cjs.entry.js +47 -49
  5. package/cjs/pn-address-autofill.cjs.entry.js.map +1 -1
  6. package/cjs/pn-animated-tile.cjs.entry.js +4 -4
  7. package/cjs/pn-animated-tile.cjs.entry.js.map +1 -1
  8. package/cjs/pn-app-banner.cjs.entry.js +15 -15
  9. package/cjs/pn-app-banner.cjs.entry.js.map +1 -1
  10. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  11. package/cjs/pn-bonus-progressbar-level.cjs.entry.js.map +1 -1
  12. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  13. package/cjs/pn-bonus-progressbar.cjs.entry.js.map +1 -1
  14. package/cjs/pn-breakpoints.cjs.entry.js +1 -1
  15. package/cjs/pn-breakpoints.cjs.entry.js.map +1 -1
  16. package/cjs/pn-chart.cjs.entry.js +47 -10
  17. package/cjs/pn-chart.cjs.entry.js.map +1 -1
  18. package/cjs/pn-charts-card.cjs.entry.js +7 -7
  19. package/cjs/pn-charts-card.cjs.entry.js.map +1 -1
  20. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  21. package/cjs/pn-choice-button.cjs.entry.js.map +1 -1
  22. package/cjs/pn-cta-block.cjs.entry.js +1 -1
  23. package/cjs/pn-cta-block.cjs.entry.js.map +1 -1
  24. package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
  25. package/cjs/pn-customernumber-selector-option.cjs.entry.js.map +1 -1
  26. package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
  27. package/cjs/pn-customernumber-selector.cjs.entry.js.map +1 -1
  28. package/cjs/pn-date-and-time.cjs.entry.js +13 -15
  29. package/cjs/pn-date-and-time.cjs.entry.js.map +1 -1
  30. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +33 -36
  31. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js.map +1 -1
  32. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +13 -10
  33. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js.map +1 -1
  34. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +46 -40
  35. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js.map +1 -1
  36. package/cjs/pn-filter-checkbox.cjs.entry.js +2 -3
  37. package/cjs/pn-filter-checkbox.cjs.entry.js.map +1 -1
  38. package/cjs/pn-find-price.cjs.entry.js +1 -2
  39. package/cjs/pn-find-price.cjs.entry.js.map +1 -1
  40. package/cjs/pn-find-service-and-price.cjs.entry.js +2 -3
  41. package/cjs/pn-find-service-and-price.cjs.entry.js.map +1 -1
  42. package/cjs/pn-hero-block-international.cjs.entry.js +3 -3
  43. package/cjs/pn-hero-block-international.cjs.entry.js.map +1 -1
  44. package/cjs/pn-language-selector_9.cjs.entry.js +83 -79
  45. package/cjs/pn-language-selector_9.cjs.entry.js.map +1 -1
  46. package/cjs/pn-line-shape.cjs.entry.js +1 -1
  47. package/cjs/pn-line-shape.cjs.entry.js.map +1 -1
  48. package/cjs/pn-link-list.cjs.entry.js +33 -37
  49. package/cjs/pn-link-list.cjs.entry.js.map +1 -1
  50. package/cjs/pn-mainnav-link.cjs.entry.js +2 -2
  51. package/cjs/pn-mainnav-link.cjs.entry.js.map +1 -1
  52. package/cjs/pn-market-web-components.cjs.js +1 -1
  53. package/cjs/pn-marketweb-input.cjs.entry.js +1 -2
  54. package/cjs/pn-marketweb-input.cjs.entry.js.map +1 -1
  55. package/cjs/pn-marketweb-search.cjs.entry.js +5 -1
  56. package/cjs/pn-marketweb-search.cjs.entry.js.map +1 -1
  57. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +18 -24
  58. package/cjs/pn-marketweb-sitefooter.cjs.entry.js.map +1 -1
  59. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +17 -20
  60. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js.map +1 -1
  61. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +5 -5
  62. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js.map +1 -1
  63. package/cjs/pn-marketweb-siteheader.cjs.entry.js +22 -27
  64. package/cjs/pn-marketweb-siteheader.cjs.entry.js.map +1 -1
  65. package/cjs/pn-media-block.cjs.entry.js +31 -29
  66. package/cjs/pn-media-block.cjs.entry.js.map +1 -1
  67. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +37 -45
  68. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js.map +1 -1
  69. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +39 -33
  70. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js.map +1 -1
  71. package/cjs/pn-multiple-input.cjs.entry.js +9 -6
  72. package/cjs/pn-multiple-input.cjs.entry.js.map +1 -1
  73. package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
  74. package/cjs/pn-parcel-tracker.cjs.entry.js.map +1 -1
  75. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  76. package/cjs/pn-pex-pricefinder.cjs.entry.js.map +1 -1
  77. package/cjs/pn-play-on-scroll.cjs.entry.js +19 -17
  78. package/cjs/pn-play-on-scroll.cjs.entry.js.map +1 -1
  79. package/cjs/pn-product-pricelist.cjs.entry.js +2 -3
  80. package/cjs/pn-product-pricelist.cjs.entry.js.map +1 -1
  81. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +2 -1
  82. package/cjs/pn-profile-modal-customernumber.cjs.entry.js.map +1 -1
  83. package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -1
  84. package/cjs/pn-profile-modal-profile.cjs.entry.js.map +1 -1
  85. package/cjs/pn-profile-modal-type.cjs.entry.js +1 -1
  86. package/cjs/pn-profile-modal-type.cjs.entry.js.map +1 -1
  87. package/cjs/pn-profile-modal.cjs.entry.js +1 -1
  88. package/cjs/pn-profile-modal.cjs.entry.js.map +1 -1
  89. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  90. package/cjs/pn-profile-selector-option.cjs.entry.js.map +1 -1
  91. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  92. package/cjs/pn-profile-selector.cjs.entry.js.map +1 -1
  93. package/cjs/pn-proxio-findprice-result.cjs.entry.js +8 -12
  94. package/cjs/pn-proxio-findprice-result.cjs.entry.js.map +1 -1
  95. package/cjs/pn-proxio-findprice.cjs.entry.js +16 -23
  96. package/cjs/pn-proxio-findprice.cjs.entry.js.map +1 -1
  97. package/cjs/pn-proxio-pricegroup.cjs.entry.js +9 -13
  98. package/cjs/pn-proxio-pricegroup.cjs.entry.js.map +1 -1
  99. package/cjs/pn-quick-cta.cjs.entry.js +1 -1
  100. package/cjs/pn-quick-cta.cjs.entry.js.map +1 -1
  101. package/cjs/pn-quote-card.cjs.entry.js +1 -1
  102. package/cjs/pn-quote-card.cjs.entry.js.map +1 -1
  103. package/cjs/pn-scroll_2.cjs.entry.js +16 -15
  104. package/cjs/pn-scroll_2.cjs.entry.js.map +1 -1
  105. package/cjs/pn-share-item.cjs.entry.js +1 -1
  106. package/cjs/pn-share-item.cjs.entry.js.map +1 -1
  107. package/cjs/pn-share.cjs.entry.js +1 -1
  108. package/cjs/pn-share.cjs.entry.js.map +1 -1
  109. package/cjs/pn-sidenav-level.cjs.entry.js +3 -4
  110. package/cjs/pn-sidenav-level.cjs.entry.js.map +1 -1
  111. package/cjs/pn-sidenav-link.cjs.entry.js +2 -2
  112. package/cjs/pn-sidenav-link.cjs.entry.js.map +1 -1
  113. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +1 -1
  114. package/cjs/pn-sidenav-togglebutton.cjs.entry.js.map +1 -1
  115. package/cjs/pn-sidenav.cjs.entry.js +1 -1
  116. package/cjs/pn-sidenav.cjs.entry.js.map +1 -1
  117. package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
  118. package/cjs/pn-site-footer_3.cjs.entry.js.map +1 -1
  119. package/cjs/pn-spotlight.cjs.entry.js +1 -1
  120. package/cjs/pn-spotlight.cjs.entry.js.map +1 -1
  121. package/cjs/pn-stats-info-data.cjs.entry.js +5 -5
  122. package/cjs/pn-stats-info-data.cjs.entry.js.map +1 -1
  123. package/cjs/pn-teaser-card.cjs.entry.js +2 -3
  124. package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
  125. package/cjs/pn-titletag.cjs.entry.js +1 -1
  126. package/cjs/pn-titletag.cjs.entry.js.map +1 -1
  127. package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
  128. package/cjs/pn-usp-promoter.cjs.entry.js.map +1 -1
  129. package/collection/components/animation/pn-animated-tile/pn-animated-tile.js +4 -3
  130. package/collection/components/animation/pn-animated-tile/pn-animated-tile.js.map +1 -1
  131. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +19 -16
  132. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js.map +1 -1
  133. package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js +11 -9
  134. package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js.map +1 -1
  135. package/collection/components/animation/pn-scroll/pn-scroll.js +5 -4
  136. package/collection/components/animation/pn-scroll/pn-scroll.js.map +1 -1
  137. package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js +1 -0
  138. package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js.map +1 -1
  139. package/collection/components/cards/pn-quote-card/pn-quote-card.js +1 -0
  140. package/collection/components/cards/pn-quote-card/pn-quote-card.js.map +1 -1
  141. package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +2 -2
  142. package/collection/components/cards/pn-teaser-card/pn-teaser-card.js.map +1 -1
  143. package/collection/components/charts/pn-chart/pn-chart-helper.js +32 -7
  144. package/collection/components/charts/pn-chart/pn-chart-helper.js.map +1 -1
  145. package/collection/components/charts/pn-chart/pn-chart.js +15 -2
  146. package/collection/components/charts/pn-chart/pn-chart.js.map +1 -1
  147. package/collection/components/charts/pn-charts-card/pn-charts-card.js +7 -6
  148. package/collection/components/charts/pn-charts-card/pn-charts-card.js.map +1 -1
  149. package/collection/components/cta/pn-cta-block/pn-cta-block.js +1 -0
  150. package/collection/components/cta/pn-cta-block/pn-cta-block.js.map +1 -1
  151. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +1 -0
  152. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js.map +1 -1
  153. package/collection/components/cta/pn-quick-cta/pn-quick-cta.js +1 -0
  154. package/collection/components/cta/pn-quick-cta/pn-quick-cta.js.map +1 -1
  155. package/collection/components/cta/pn-share/pn-share-item.js +1 -0
  156. package/collection/components/cta/pn-share/pn-share-item.js.map +1 -1
  157. package/collection/components/cta/pn-share/pn-share.js +1 -0
  158. package/collection/components/cta/pn-share/pn-share.js.map +1 -1
  159. package/collection/components/cta/pn-spotlight/pn-spotlight.js +1 -0
  160. package/collection/components/cta/pn-spotlight/pn-spotlight.js.map +1 -1
  161. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +5 -5
  162. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js.map +1 -1
  163. package/collection/components/input/pn-address-autofill/pn-address-autofill.js +46 -47
  164. package/collection/components/input/pn-address-autofill/pn-address-autofill.js.map +1 -1
  165. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js +1 -0
  166. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js.map +1 -1
  167. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +1 -0
  168. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js.map +1 -1
  169. package/collection/components/input/pn-choice-button/pn-choice-button.js +1 -0
  170. package/collection/components/input/pn-choice-button/pn-choice-button.js.map +1 -1
  171. package/collection/components/input/pn-date-and-time/pn-date-and-time.js +13 -14
  172. package/collection/components/input/pn-date-and-time/pn-date-and-time.js.map +1 -1
  173. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +51 -35
  174. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js.map +1 -1
  175. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.stories.js +1 -1
  176. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.js +13 -9
  177. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.js.map +1 -1
  178. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js +46 -39
  179. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js.map +1 -1
  180. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.stories.js +1 -1
  181. package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js +2 -2
  182. package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js.map +1 -1
  183. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +1 -2
  184. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js.map +1 -1
  185. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +5 -0
  186. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js.map +1 -1
  187. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.js +37 -44
  188. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.js.map +1 -1
  189. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js +39 -32
  190. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js.map +1 -1
  191. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.stories.js +1 -1
  192. package/collection/components/input/pn-multiple-input/pn-multiple-input.js +9 -5
  193. package/collection/components/input/pn-multiple-input/pn-multiple-input.js.map +1 -1
  194. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +17 -22
  195. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js.map +1 -1
  196. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +2 -0
  197. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js.map +1 -1
  198. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +5 -4
  199. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js.map +1 -1
  200. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +6 -7
  201. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js.map +1 -1
  202. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +1 -0
  203. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js.map +1 -1
  204. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +7 -8
  205. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js.map +1 -1
  206. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +7 -6
  207. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js.map +1 -1
  208. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +3 -2
  209. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js.map +1 -1
  210. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +1 -0
  211. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js.map +1 -1
  212. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +21 -25
  213. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js.map +1 -1
  214. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +5 -22
  215. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js.map +1 -1
  216. package/collection/components/media/pn-media-block/pn-media-block.js +31 -28
  217. package/collection/components/media/pn-media-block/pn-media-block.js.map +1 -1
  218. package/collection/components/minor/pn-app-banner/pn-app-banner.js +15 -14
  219. package/collection/components/minor/pn-app-banner/pn-app-banner.js.map +1 -1
  220. package/collection/components/minor/pn-swan/pn-swan.js +1 -0
  221. package/collection/components/minor/pn-swan/pn-swan.js.map +1 -1
  222. package/collection/components/minor/pn-titletag/pn-titletag.js +1 -0
  223. package/collection/components/minor/pn-titletag/pn-titletag.js.map +1 -1
  224. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +1 -0
  225. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js.map +1 -1
  226. package/collection/components/navigation/pn-language-selector/pn-language-selector.js +4 -2
  227. package/collection/components/navigation/pn-language-selector/pn-language-selector.js.map +1 -1
  228. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +2 -1
  229. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js.map +1 -1
  230. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +2 -1
  231. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js.map +1 -1
  232. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +1 -0
  233. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js.map +1 -1
  234. package/collection/components/navigation/pn-mainnav/pn-mainnav.js +4 -0
  235. package/collection/components/navigation/pn-mainnav/pn-mainnav.js.map +1 -1
  236. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +3 -3
  237. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js.map +1 -1
  238. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +2 -1
  239. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js.map +1 -1
  240. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +1 -0
  241. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js.map +1 -1
  242. package/collection/components/navigation/pn-sidenav/pn-sidenav.js +1 -0
  243. package/collection/components/navigation/pn-sidenav/pn-sidenav.js.map +1 -1
  244. package/collection/components/navigation/pn-site-selector/pn-site-selector.js +1 -0
  245. package/collection/components/navigation/pn-site-selector/pn-site-selector.js.map +1 -1
  246. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +1 -0
  247. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js.map +1 -1
  248. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +1 -0
  249. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js.map +1 -1
  250. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +2 -0
  251. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js.map +1 -1
  252. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +3 -0
  253. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js.map +1 -1
  254. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +1 -0
  255. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js.map +1 -1
  256. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +1 -0
  257. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js.map +1 -1
  258. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +1 -0
  259. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js.map +1 -1
  260. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +1 -0
  261. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js.map +1 -1
  262. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +1 -0
  263. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js.map +1 -1
  264. package/collection/components/widgets/pn-find-price/pn-find-price.js +1 -2
  265. package/collection/components/widgets/pn-find-price/pn-find-price.js.map +1 -1
  266. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +2 -3
  267. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js.map +1 -1
  268. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +3 -2
  269. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js.map +1 -1
  270. package/collection/components/widgets/pn-link-list/pn-link-list.js +33 -37
  271. package/collection/components/widgets/pn-link-list/pn-link-list.js.map +1 -1
  272. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +1 -0
  273. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js.map +1 -1
  274. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -3
  275. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js.map +1 -1
  276. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +8 -12
  277. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js.map +1 -1
  278. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +15 -22
  279. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js.map +1 -1
  280. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +8 -12
  281. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js.map +1 -1
  282. package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js +1 -0
  283. package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js.map +1 -1
  284. package/collection/globals/FetchHelper.js +35 -35
  285. package/collection/globals/FetchHelper.js.map +1 -1
  286. package/collection/globals/MarketWebContextService.js +86 -87
  287. package/collection/globals/MarketWebContextService.js.map +1 -1
  288. package/collection/globals/MarketWebLoginManager.js +60 -61
  289. package/collection/globals/MarketWebLoginManager.js.map +1 -1
  290. package/components/FetchHelper.js +121 -122
  291. package/components/FetchHelper.js.map +1 -1
  292. package/components/pn-address-autofill.js +46 -48
  293. package/components/pn-address-autofill.js.map +1 -1
  294. package/components/pn-animated-tile.js +4 -4
  295. package/components/pn-animated-tile.js.map +1 -1
  296. package/components/pn-app-banner.js +15 -15
  297. package/components/pn-app-banner.js.map +1 -1
  298. package/components/pn-bonus-progressbar-level.js +1 -1
  299. package/components/pn-bonus-progressbar-level.js.map +1 -1
  300. package/components/pn-bonus-progressbar.js +1 -1
  301. package/components/pn-bonus-progressbar.js.map +1 -1
  302. package/components/pn-breakpoints.js +1 -1
  303. package/components/pn-breakpoints.js.map +1 -1
  304. package/components/pn-chart.js +47 -10
  305. package/components/pn-chart.js.map +1 -1
  306. package/components/pn-charts-card.js +7 -7
  307. package/components/pn-charts-card.js.map +1 -1
  308. package/components/pn-choice-button2.js +1 -1
  309. package/components/pn-choice-button2.js.map +1 -1
  310. package/components/pn-cta-block.js +1 -1
  311. package/components/pn-cta-block.js.map +1 -1
  312. package/components/pn-customernumber-selector-option.js +1 -1
  313. package/components/pn-customernumber-selector-option.js.map +1 -1
  314. package/components/pn-customernumber-selector.js +1 -1
  315. package/components/pn-customernumber-selector.js.map +1 -1
  316. package/components/pn-date-and-time.js +13 -15
  317. package/components/pn-date-and-time.js.map +1 -1
  318. package/components/pn-dropdown-choice-adds-row.js +34 -36
  319. package/components/pn-dropdown-choice-adds-row.js.map +1 -1
  320. package/components/pn-dropdown-with-multi-input-rows-row2.js +13 -10
  321. package/components/pn-dropdown-with-multi-input-rows-row2.js.map +1 -1
  322. package/components/pn-dropdown-with-multi-input-rows.js +46 -40
  323. package/components/pn-dropdown-with-multi-input-rows.js.map +1 -1
  324. package/components/pn-filter-checkbox2.js +2 -3
  325. package/components/pn-filter-checkbox2.js.map +1 -1
  326. package/components/pn-find-price.js +1 -2
  327. package/components/pn-find-price.js.map +1 -1
  328. package/components/pn-find-service-and-price.js +2 -3
  329. package/components/pn-find-service-and-price.js.map +1 -1
  330. package/components/pn-hero-block-international.js +3 -3
  331. package/components/pn-hero-block-international.js.map +1 -1
  332. package/components/pn-language-selector-option2.js +1 -0
  333. package/components/pn-language-selector-option2.js.map +1 -1
  334. package/components/pn-language-selector2.js +4 -3
  335. package/components/pn-language-selector2.js.map +1 -1
  336. package/components/pn-line-shape.js +1 -1
  337. package/components/pn-line-shape.js.map +1 -1
  338. package/components/pn-link-list.js +33 -37
  339. package/components/pn-link-list.js.map +1 -1
  340. package/components/pn-mainnav-level2.js +2 -2
  341. package/components/pn-mainnav-level2.js.map +1 -1
  342. package/components/pn-mainnav-link2.js +2 -2
  343. package/components/pn-mainnav-link2.js.map +1 -1
  344. package/components/pn-mainnav-list2.js +1 -1
  345. package/components/pn-mainnav-list2.js.map +1 -1
  346. package/components/pn-mainnav2.js +4 -1
  347. package/components/pn-mainnav2.js.map +1 -1
  348. package/components/pn-marketweb-input2.js +1 -2
  349. package/components/pn-marketweb-input2.js.map +1 -1
  350. package/components/pn-marketweb-search.js +5 -1
  351. package/components/pn-marketweb-search.js.map +1 -1
  352. package/components/pn-marketweb-sitefooter.js +17 -23
  353. package/components/pn-marketweb-sitefooter.js.map +1 -1
  354. package/components/pn-marketweb-siteheader-login-button2.js +2 -1
  355. package/components/pn-marketweb-siteheader-login-button2.js.map +1 -1
  356. package/components/pn-marketweb-siteheader-login-linklist2.js +5 -5
  357. package/components/pn-marketweb-siteheader-login-linklist2.js.map +1 -1
  358. package/components/pn-marketweb-siteheader-login-links2.js +6 -8
  359. package/components/pn-marketweb-siteheader-login-links2.js.map +1 -1
  360. package/components/pn-marketweb-siteheader-login-mypage-button2.js +1 -1
  361. package/components/pn-marketweb-siteheader-login-mypage-button2.js.map +1 -1
  362. package/components/pn-marketweb-siteheader-login-profileselection2.js +7 -9
  363. package/components/pn-marketweb-siteheader-login-profileselection2.js.map +1 -1
  364. package/components/pn-marketweb-siteheader-login2.js +67 -68
  365. package/components/pn-marketweb-siteheader-login2.js.map +1 -1
  366. package/components/pn-marketweb-siteheader-search2.js +3 -3
  367. package/components/pn-marketweb-siteheader-search2.js.map +1 -1
  368. package/components/pn-marketweb-siteheader-unified-login2.js +1 -1
  369. package/components/pn-marketweb-siteheader-unified-login2.js.map +1 -1
  370. package/components/pn-marketweb-siteheader.js +21 -26
  371. package/components/pn-marketweb-siteheader.js.map +1 -1
  372. package/components/pn-media-block.js +31 -29
  373. package/components/pn-media-block.js.map +1 -1
  374. package/components/pn-multi-row-connected-dropdown-row2.js +37 -45
  375. package/components/pn-multi-row-connected-dropdown-row2.js.map +1 -1
  376. package/components/pn-multi-row-connected-dropdown.js +39 -33
  377. package/components/pn-multi-row-connected-dropdown.js.map +1 -1
  378. package/components/pn-multiple-input.js +9 -6
  379. package/components/pn-multiple-input.js.map +1 -1
  380. package/components/pn-parcel-tracker.js +1 -1
  381. package/components/pn-parcel-tracker.js.map +1 -1
  382. package/components/pn-pex-pricefinder.js +1 -1
  383. package/components/pn-pex-pricefinder.js.map +1 -1
  384. package/components/pn-play-on-scroll2.js +19 -17
  385. package/components/pn-play-on-scroll2.js.map +1 -1
  386. package/components/pn-product-pricelist.js +2 -3
  387. package/components/pn-product-pricelist.js.map +1 -1
  388. package/components/pn-profile-modal-customernumber.js +2 -1
  389. package/components/pn-profile-modal-customernumber.js.map +1 -1
  390. package/components/pn-profile-modal-profile.js +3 -1
  391. package/components/pn-profile-modal-profile.js.map +1 -1
  392. package/components/pn-profile-modal-type.js +1 -1
  393. package/components/pn-profile-modal-type.js.map +1 -1
  394. package/components/pn-profile-modal.js +1 -1
  395. package/components/pn-profile-modal.js.map +1 -1
  396. package/components/pn-profile-selector-option.js +1 -1
  397. package/components/pn-profile-selector-option.js.map +1 -1
  398. package/components/pn-profile-selector.js +1 -1
  399. package/components/pn-profile-selector.js.map +1 -1
  400. package/components/pn-proxio-findprice-result2.js +8 -12
  401. package/components/pn-proxio-findprice-result2.js.map +1 -1
  402. package/components/pn-proxio-findprice.js +15 -22
  403. package/components/pn-proxio-findprice.js.map +1 -1
  404. package/components/pn-proxio-pricegroup.js +8 -12
  405. package/components/pn-proxio-pricegroup.js.map +1 -1
  406. package/components/pn-quick-cta.js +1 -1
  407. package/components/pn-quick-cta.js.map +1 -1
  408. package/components/pn-quote-card.js +1 -1
  409. package/components/pn-quote-card.js.map +1 -1
  410. package/components/pn-scroll2.js +5 -5
  411. package/components/pn-scroll2.js.map +1 -1
  412. package/components/pn-share-item2.js +1 -1
  413. package/components/pn-share-item2.js.map +1 -1
  414. package/components/pn-share.js +1 -1
  415. package/components/pn-share.js.map +1 -1
  416. package/components/pn-sidenav-level.js +3 -4
  417. package/components/pn-sidenav-level.js.map +1 -1
  418. package/components/pn-sidenav-link.js +2 -2
  419. package/components/pn-sidenav-link.js.map +1 -1
  420. package/components/pn-sidenav-togglebutton.js +1 -1
  421. package/components/pn-sidenav-togglebutton.js.map +1 -1
  422. package/components/pn-sidenav.js +1 -1
  423. package/components/pn-sidenav.js.map +1 -1
  424. package/components/pn-site-selector2.js +1 -1
  425. package/components/pn-site-selector2.js.map +1 -1
  426. package/components/pn-spotlight.js +1 -1
  427. package/components/pn-spotlight.js.map +1 -1
  428. package/components/pn-stats-info-data2.js +5 -5
  429. package/components/pn-stats-info-data2.js.map +1 -1
  430. package/components/pn-swan2.js +1 -1
  431. package/components/pn-swan2.js.map +1 -1
  432. package/components/pn-teaser-card.js +2 -3
  433. package/components/pn-teaser-card.js.map +1 -1
  434. package/components/pn-titletag2.js +1 -1
  435. package/components/pn-titletag2.js.map +1 -1
  436. package/components/pn-usp-promoter.js +1 -1
  437. package/components/pn-usp-promoter.js.map +1 -1
  438. package/components/pn-video-overlay2.js +11 -10
  439. package/components/pn-video-overlay2.js.map +1 -1
  440. package/esm/{FetchHelper-03b37a44.js → FetchHelper-da579b12.js} +122 -123
  441. package/esm/FetchHelper-da579b12.js.map +1 -0
  442. package/esm/loader.js +1 -1
  443. package/esm/pn-address-autofill.entry.js +48 -50
  444. package/esm/pn-address-autofill.entry.js.map +1 -1
  445. package/esm/pn-animated-tile.entry.js +5 -5
  446. package/esm/pn-animated-tile.entry.js.map +1 -1
  447. package/esm/pn-app-banner.entry.js +16 -16
  448. package/esm/pn-app-banner.entry.js.map +1 -1
  449. package/esm/pn-bonus-progressbar-level.entry.js +2 -2
  450. package/esm/pn-bonus-progressbar-level.entry.js.map +1 -1
  451. package/esm/pn-bonus-progressbar.entry.js +2 -2
  452. package/esm/pn-bonus-progressbar.entry.js.map +1 -1
  453. package/esm/pn-breakpoints.entry.js +2 -2
  454. package/esm/pn-breakpoints.entry.js.map +1 -1
  455. package/esm/pn-chart.entry.js +48 -11
  456. package/esm/pn-chart.entry.js.map +1 -1
  457. package/esm/pn-charts-card.entry.js +8 -8
  458. package/esm/pn-charts-card.entry.js.map +1 -1
  459. package/esm/pn-choice-button.entry.js +2 -2
  460. package/esm/pn-choice-button.entry.js.map +1 -1
  461. package/esm/pn-cta-block.entry.js +2 -2
  462. package/esm/pn-cta-block.entry.js.map +1 -1
  463. package/esm/pn-customernumber-selector-option.entry.js +2 -2
  464. package/esm/pn-customernumber-selector-option.entry.js.map +1 -1
  465. package/esm/pn-customernumber-selector.entry.js +2 -2
  466. package/esm/pn-customernumber-selector.entry.js.map +1 -1
  467. package/esm/pn-date-and-time.entry.js +14 -16
  468. package/esm/pn-date-and-time.entry.js.map +1 -1
  469. package/esm/pn-dropdown-choice-adds-row.entry.js +34 -37
  470. package/esm/pn-dropdown-choice-adds-row.entry.js.map +1 -1
  471. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +14 -11
  472. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js.map +1 -1
  473. package/esm/pn-dropdown-with-multi-input-rows.entry.js +47 -41
  474. package/esm/pn-dropdown-with-multi-input-rows.entry.js.map +1 -1
  475. package/esm/pn-filter-checkbox.entry.js +3 -4
  476. package/esm/pn-filter-checkbox.entry.js.map +1 -1
  477. package/esm/pn-find-price.entry.js +1 -2
  478. package/esm/pn-find-price.entry.js.map +1 -1
  479. package/esm/pn-find-service-and-price.entry.js +2 -3
  480. package/esm/pn-find-service-and-price.entry.js.map +1 -1
  481. package/esm/pn-hero-block-international.entry.js +4 -4
  482. package/esm/pn-hero-block-international.entry.js.map +1 -1
  483. package/esm/pn-language-selector_9.entry.js +84 -80
  484. package/esm/pn-language-selector_9.entry.js.map +1 -1
  485. package/esm/pn-line-shape.entry.js +2 -2
  486. package/esm/pn-line-shape.entry.js.map +1 -1
  487. package/esm/pn-link-list.entry.js +33 -37
  488. package/esm/pn-link-list.entry.js.map +1 -1
  489. package/esm/pn-mainnav-link.entry.js +3 -3
  490. package/esm/pn-mainnav-link.entry.js.map +1 -1
  491. package/esm/pn-market-web-components.js +1 -1
  492. package/esm/pn-marketweb-input.entry.js +1 -2
  493. package/esm/pn-marketweb-input.entry.js.map +1 -1
  494. package/esm/pn-marketweb-search.entry.js +6 -2
  495. package/esm/pn-marketweb-search.entry.js.map +1 -1
  496. package/esm/pn-marketweb-sitefooter.entry.js +19 -25
  497. package/esm/pn-marketweb-sitefooter.entry.js.map +1 -1
  498. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +18 -21
  499. package/esm/pn-marketweb-siteheader-login-button_5.entry.js.map +1 -1
  500. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +6 -6
  501. package/esm/pn-marketweb-siteheader-login-linklist.entry.js.map +1 -1
  502. package/esm/pn-marketweb-siteheader.entry.js +23 -28
  503. package/esm/pn-marketweb-siteheader.entry.js.map +1 -1
  504. package/esm/pn-media-block.entry.js +32 -30
  505. package/esm/pn-media-block.entry.js.map +1 -1
  506. package/esm/pn-multi-row-connected-dropdown-row.entry.js +38 -46
  507. package/esm/pn-multi-row-connected-dropdown-row.entry.js.map +1 -1
  508. package/esm/pn-multi-row-connected-dropdown.entry.js +40 -34
  509. package/esm/pn-multi-row-connected-dropdown.entry.js.map +1 -1
  510. package/esm/pn-multiple-input.entry.js +10 -7
  511. package/esm/pn-multiple-input.entry.js.map +1 -1
  512. package/esm/pn-parcel-tracker.entry.js +2 -2
  513. package/esm/pn-parcel-tracker.entry.js.map +1 -1
  514. package/esm/pn-pex-pricefinder.entry.js +2 -2
  515. package/esm/pn-pex-pricefinder.entry.js.map +1 -1
  516. package/esm/pn-play-on-scroll.entry.js +20 -18
  517. package/esm/pn-play-on-scroll.entry.js.map +1 -1
  518. package/esm/pn-product-pricelist.entry.js +2 -3
  519. package/esm/pn-product-pricelist.entry.js.map +1 -1
  520. package/esm/pn-profile-modal-customernumber.entry.js +3 -2
  521. package/esm/pn-profile-modal-customernumber.entry.js.map +1 -1
  522. package/esm/pn-profile-modal-profile.entry.js +4 -2
  523. package/esm/pn-profile-modal-profile.entry.js.map +1 -1
  524. package/esm/pn-profile-modal-type.entry.js +2 -2
  525. package/esm/pn-profile-modal-type.entry.js.map +1 -1
  526. package/esm/pn-profile-modal.entry.js +2 -2
  527. package/esm/pn-profile-modal.entry.js.map +1 -1
  528. package/esm/pn-profile-selector-option.entry.js +2 -2
  529. package/esm/pn-profile-selector-option.entry.js.map +1 -1
  530. package/esm/pn-profile-selector.entry.js +2 -2
  531. package/esm/pn-profile-selector.entry.js.map +1 -1
  532. package/esm/pn-proxio-findprice-result.entry.js +8 -12
  533. package/esm/pn-proxio-findprice-result.entry.js.map +1 -1
  534. package/esm/pn-proxio-findprice.entry.js +16 -23
  535. package/esm/pn-proxio-findprice.entry.js.map +1 -1
  536. package/esm/pn-proxio-pricegroup.entry.js +9 -13
  537. package/esm/pn-proxio-pricegroup.entry.js.map +1 -1
  538. package/esm/pn-quick-cta.entry.js +2 -2
  539. package/esm/pn-quick-cta.entry.js.map +1 -1
  540. package/esm/pn-quote-card.entry.js +2 -2
  541. package/esm/pn-quote-card.entry.js.map +1 -1
  542. package/esm/pn-scroll_2.entry.js +17 -16
  543. package/esm/pn-scroll_2.entry.js.map +1 -1
  544. package/esm/pn-share-item.entry.js +2 -2
  545. package/esm/pn-share-item.entry.js.map +1 -1
  546. package/esm/pn-share.entry.js +2 -2
  547. package/esm/pn-share.entry.js.map +1 -1
  548. package/esm/pn-sidenav-level.entry.js +4 -5
  549. package/esm/pn-sidenav-level.entry.js.map +1 -1
  550. package/esm/pn-sidenav-link.entry.js +3 -3
  551. package/esm/pn-sidenav-link.entry.js.map +1 -1
  552. package/esm/pn-sidenav-togglebutton.entry.js +2 -2
  553. package/esm/pn-sidenav-togglebutton.entry.js.map +1 -1
  554. package/esm/pn-sidenav.entry.js +2 -2
  555. package/esm/pn-sidenav.entry.js.map +1 -1
  556. package/esm/pn-site-footer_3.entry.js +1 -1
  557. package/esm/pn-site-footer_3.entry.js.map +1 -1
  558. package/esm/pn-spotlight.entry.js +2 -2
  559. package/esm/pn-spotlight.entry.js.map +1 -1
  560. package/esm/pn-stats-info-data.entry.js +5 -5
  561. package/esm/pn-stats-info-data.entry.js.map +1 -1
  562. package/esm/pn-teaser-card.entry.js +3 -4
  563. package/esm/pn-teaser-card.entry.js.map +1 -1
  564. package/esm/pn-titletag.entry.js +2 -2
  565. package/esm/pn-titletag.entry.js.map +1 -1
  566. package/esm/pn-usp-promoter.entry.js +2 -2
  567. package/esm/pn-usp-promoter.entry.js.map +1 -1
  568. package/package.json +1 -2
  569. package/pn-market-web-components/{p-8ca34ec3.entry.js → p-0247c553.entry.js} +2 -2
  570. package/pn-market-web-components/p-0247c553.entry.js.map +1 -0
  571. package/pn-market-web-components/{p-3f50be05.entry.js → p-09b9cc06.entry.js} +2 -2
  572. package/pn-market-web-components/{p-3f50be05.entry.js.map → p-09b9cc06.entry.js.map} +1 -1
  573. package/pn-market-web-components/{p-03dfc155.entry.js → p-0a522476.entry.js} +2 -2
  574. package/pn-market-web-components/{p-03dfc155.entry.js.map → p-0a522476.entry.js.map} +1 -1
  575. package/pn-market-web-components/{p-2b2b615e.entry.js → p-1317587f.entry.js} +4 -4
  576. package/pn-market-web-components/{p-2b2b615e.entry.js.map → p-1317587f.entry.js.map} +1 -1
  577. package/pn-market-web-components/p-1535a09f.entry.js +2 -0
  578. package/pn-market-web-components/p-1535a09f.entry.js.map +1 -0
  579. package/pn-market-web-components/{p-470ca6e7.entry.js → p-1578e02e.entry.js} +2 -2
  580. package/pn-market-web-components/{p-470ca6e7.entry.js.map → p-1578e02e.entry.js.map} +1 -1
  581. package/pn-market-web-components/p-16f70311.entry.js +2 -0
  582. package/pn-market-web-components/{p-b7a5fb1b.entry.js.map → p-16f70311.entry.js.map} +1 -1
  583. package/pn-market-web-components/{p-c8bbdd96.entry.js → p-190c671b.entry.js} +2 -2
  584. package/pn-market-web-components/{p-c8bbdd96.entry.js.map → p-190c671b.entry.js.map} +1 -1
  585. package/pn-market-web-components/{p-3e4208bb.entry.js → p-1bd5fa26.entry.js} +2 -2
  586. package/pn-market-web-components/{p-3e4208bb.entry.js.map → p-1bd5fa26.entry.js.map} +1 -1
  587. package/pn-market-web-components/{p-e74e962e.entry.js → p-2044eddc.entry.js} +2 -2
  588. package/pn-market-web-components/{p-e74e962e.entry.js.map → p-2044eddc.entry.js.map} +1 -1
  589. package/pn-market-web-components/p-370829c6.entry.js +2 -0
  590. package/pn-market-web-components/p-370829c6.entry.js.map +1 -0
  591. package/pn-market-web-components/p-391970af.entry.js +2 -0
  592. package/pn-market-web-components/p-391970af.entry.js.map +1 -0
  593. package/pn-market-web-components/{p-49fd7182.entry.js → p-40538914.entry.js} +2 -2
  594. package/pn-market-web-components/{p-49fd7182.entry.js.map → p-40538914.entry.js.map} +1 -1
  595. package/pn-market-web-components/{p-fa9ea740.entry.js → p-4372d10e.entry.js} +2 -2
  596. package/pn-market-web-components/p-4372d10e.entry.js.map +1 -0
  597. package/pn-market-web-components/p-4ea1409d.entry.js +2 -0
  598. package/pn-market-web-components/p-4ea1409d.entry.js.map +1 -0
  599. package/pn-market-web-components/{p-66981606.entry.js → p-56bd346e.entry.js} +2 -2
  600. package/pn-market-web-components/{p-66981606.entry.js.map → p-56bd346e.entry.js.map} +1 -1
  601. package/pn-market-web-components/p-586a1e3c.entry.js +2 -0
  602. package/pn-market-web-components/{p-f8eb860b.entry.js.map → p-586a1e3c.entry.js.map} +1 -1
  603. package/pn-market-web-components/{p-baa28521.entry.js → p-5a467ca6.entry.js} +2 -2
  604. package/pn-market-web-components/{p-baa28521.entry.js.map → p-5a467ca6.entry.js.map} +1 -1
  605. package/pn-market-web-components/p-5ac23b38.entry.js +2 -0
  606. package/pn-market-web-components/p-5ac23b38.entry.js.map +1 -0
  607. package/pn-market-web-components/{p-7fdc49d1.entry.js → p-63505736.entry.js} +2 -2
  608. package/pn-market-web-components/p-63505736.entry.js.map +1 -0
  609. package/pn-market-web-components/{p-3696ebf8.entry.js → p-67d862ac.entry.js} +2 -2
  610. package/pn-market-web-components/{p-3696ebf8.entry.js.map → p-67d862ac.entry.js.map} +1 -1
  611. package/pn-market-web-components/{p-3d3f0648.entry.js → p-68aa55f7.entry.js} +2 -2
  612. package/pn-market-web-components/{p-3d3f0648.entry.js.map → p-68aa55f7.entry.js.map} +1 -1
  613. package/pn-market-web-components/{p-d2109ea6.entry.js → p-6e9875e5.entry.js} +2 -2
  614. package/pn-market-web-components/p-6e9875e5.entry.js.map +1 -0
  615. package/pn-market-web-components/p-7021985c.entry.js +2 -0
  616. package/pn-market-web-components/{p-c64cb117.entry.js.map → p-7021985c.entry.js.map} +1 -1
  617. package/pn-market-web-components/{p-716165d2.entry.js → p-721598b8.entry.js} +2 -2
  618. package/pn-market-web-components/p-721598b8.entry.js.map +1 -0
  619. package/pn-market-web-components/p-73cef33c.js +2 -0
  620. package/pn-market-web-components/p-73cef33c.js.map +1 -0
  621. package/pn-market-web-components/p-74203d3e.entry.js +2 -0
  622. package/pn-market-web-components/{p-545ea4ef.entry.js.map → p-74203d3e.entry.js.map} +1 -1
  623. package/pn-market-web-components/p-781ef432.entry.js +2 -0
  624. package/pn-market-web-components/p-781ef432.entry.js.map +1 -0
  625. package/pn-market-web-components/{p-3a08299c.entry.js → p-78fbc88c.entry.js} +2 -2
  626. package/pn-market-web-components/{p-3a08299c.entry.js.map → p-78fbc88c.entry.js.map} +1 -1
  627. package/pn-market-web-components/{p-22a65c3e.entry.js → p-796ebfee.entry.js} +2 -2
  628. package/pn-market-web-components/p-796ebfee.entry.js.map +1 -0
  629. package/pn-market-web-components/p-7b05d7c7.entry.js +2 -0
  630. package/pn-market-web-components/p-7b05d7c7.entry.js.map +1 -0
  631. package/pn-market-web-components/{p-6b2009dc.entry.js → p-81b3e038.entry.js} +2 -2
  632. package/pn-market-web-components/{p-6b2009dc.entry.js.map → p-81b3e038.entry.js.map} +1 -1
  633. package/pn-market-web-components/p-828449da.entry.js +2 -0
  634. package/pn-market-web-components/{p-db2f3f6d.entry.js.map → p-828449da.entry.js.map} +1 -1
  635. package/pn-market-web-components/p-85d57c9d.entry.js +2 -0
  636. package/pn-market-web-components/p-85d57c9d.entry.js.map +1 -0
  637. package/pn-market-web-components/p-90ba1d8e.entry.js +2 -0
  638. package/pn-market-web-components/{p-655e6f71.entry.js.map → p-90ba1d8e.entry.js.map} +1 -1
  639. package/pn-market-web-components/{p-eee5ec0a.entry.js → p-931d3a9b.entry.js} +2 -2
  640. package/pn-market-web-components/{p-eee5ec0a.entry.js.map → p-931d3a9b.entry.js.map} +1 -1
  641. package/pn-market-web-components/{p-9a93bcd0.entry.js → p-95c10b7e.entry.js} +2 -2
  642. package/pn-market-web-components/{p-9a93bcd0.entry.js.map → p-95c10b7e.entry.js.map} +1 -1
  643. package/pn-market-web-components/{p-138ecede.entry.js → p-95e054fd.entry.js} +2 -2
  644. package/pn-market-web-components/{p-138ecede.entry.js.map → p-95e054fd.entry.js.map} +1 -1
  645. package/pn-market-web-components/p-9776a1c5.entry.js +2 -0
  646. package/pn-market-web-components/p-9776a1c5.entry.js.map +1 -0
  647. package/pn-market-web-components/{p-db2e2762.entry.js → p-9998c29d.entry.js} +2 -2
  648. package/pn-market-web-components/p-9998c29d.entry.js.map +1 -0
  649. package/pn-market-web-components/p-9a7abcee.entry.js +2 -0
  650. package/pn-market-web-components/p-9a7abcee.entry.js.map +1 -0
  651. package/pn-market-web-components/{p-0dca82de.entry.js → p-9be27d72.entry.js} +2 -2
  652. package/pn-market-web-components/{p-0dca82de.entry.js.map → p-9be27d72.entry.js.map} +1 -1
  653. package/pn-market-web-components/{p-48f6e683.entry.js → p-a8220c88.entry.js} +2 -2
  654. package/pn-market-web-components/{p-48f6e683.entry.js.map → p-a8220c88.entry.js.map} +1 -1
  655. package/pn-market-web-components/p-a9d2f528.entry.js +2 -0
  656. package/pn-market-web-components/p-a9d2f528.entry.js.map +1 -0
  657. package/pn-market-web-components/p-acbe60df.entry.js +2 -0
  658. package/pn-market-web-components/p-acbe60df.entry.js.map +1 -0
  659. package/pn-market-web-components/{p-5666f0e7.entry.js → p-ade7ffcf.entry.js} +2 -2
  660. package/pn-market-web-components/p-ade7ffcf.entry.js.map +1 -0
  661. package/pn-market-web-components/p-b2dcce7c.entry.js +2 -0
  662. package/pn-market-web-components/p-b2dcce7c.entry.js.map +1 -0
  663. package/pn-market-web-components/{p-10a3c6f4.entry.js → p-b765e4a9.entry.js} +2 -2
  664. package/pn-market-web-components/p-b765e4a9.entry.js.map +1 -0
  665. package/pn-market-web-components/{p-914e1d15.entry.js → p-c224d7c4.entry.js} +2 -2
  666. package/pn-market-web-components/p-c224d7c4.entry.js.map +1 -0
  667. package/pn-market-web-components/{p-787e20a1.entry.js → p-c5856c0b.entry.js} +2 -2
  668. package/pn-market-web-components/{p-787e20a1.entry.js.map → p-c5856c0b.entry.js.map} +1 -1
  669. package/pn-market-web-components/p-c696bedf.entry.js +2 -0
  670. package/pn-market-web-components/{p-012ee486.entry.js.map → p-c696bedf.entry.js.map} +1 -1
  671. package/pn-market-web-components/p-c9f21ea3.entry.js +2 -0
  672. package/pn-market-web-components/{p-03cb46c2.entry.js.map → p-c9f21ea3.entry.js.map} +1 -1
  673. package/pn-market-web-components/{p-87aa1f73.entry.js → p-d07cf4c8.entry.js} +2 -2
  674. package/pn-market-web-components/{p-87aa1f73.entry.js.map → p-d07cf4c8.entry.js.map} +1 -1
  675. package/pn-market-web-components/p-d40ff187.entry.js +2 -0
  676. package/pn-market-web-components/p-d40ff187.entry.js.map +1 -0
  677. package/pn-market-web-components/{p-f21fdae0.entry.js → p-e42f0fbe.entry.js} +2 -2
  678. package/pn-market-web-components/{p-f21fdae0.entry.js.map → p-e42f0fbe.entry.js.map} +1 -1
  679. package/pn-market-web-components/{p-4f2a7d41.entry.js → p-e4c7aaec.entry.js} +2 -2
  680. package/pn-market-web-components/{p-4f2a7d41.entry.js.map → p-e4c7aaec.entry.js.map} +1 -1
  681. package/pn-market-web-components/{p-107568aa.entry.js → p-e5345c69.entry.js} +2 -2
  682. package/pn-market-web-components/p-e5345c69.entry.js.map +1 -0
  683. package/pn-market-web-components/p-e9501c6f.entry.js +2 -0
  684. package/pn-market-web-components/p-e9501c6f.entry.js.map +1 -0
  685. package/pn-market-web-components/{p-fa3ccbfb.entry.js → p-ebaeee5e.entry.js} +2 -2
  686. package/pn-market-web-components/{p-fa3ccbfb.entry.js.map → p-ebaeee5e.entry.js.map} +1 -1
  687. package/pn-market-web-components/{p-9de267ec.entry.js → p-f2d0d0cc.entry.js} +2 -2
  688. package/pn-market-web-components/{p-9de267ec.entry.js.map → p-f2d0d0cc.entry.js.map} +1 -1
  689. package/pn-market-web-components/{p-da953848.entry.js → p-f62879f6.entry.js} +2 -2
  690. package/pn-market-web-components/p-f62879f6.entry.js.map +1 -0
  691. package/pn-market-web-components/{p-ec3fcbf9.entry.js → p-fbc07c7a.entry.js} +2 -2
  692. package/pn-market-web-components/{p-ec3fcbf9.entry.js.map → p-fbc07c7a.entry.js.map} +1 -1
  693. package/pn-market-web-components/p-fbe70284.entry.js +2 -0
  694. package/pn-market-web-components/{p-663e4bb8.entry.js.map → p-fbe70284.entry.js.map} +1 -1
  695. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  696. package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
  697. package/types/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.d.ts +1 -0
  698. package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
  699. package/types/components.d.ts +2 -0
  700. package/umd/pn-marketweb-init.js +1 -1
  701. package/umd/pn-marketweb-salesforce.js +1 -1
  702. package/umd/standalone-loader-salesforce.js +3 -3
  703. package/umd/standalone-loader.js +2 -2
  704. package/cjs/FetchHelper-8d537d38.js.map +0 -1
  705. package/esm/FetchHelper-03b37a44.js.map +0 -1
  706. package/pn-market-web-components/p-012ee486.entry.js +0 -2
  707. package/pn-market-web-components/p-03cb46c2.entry.js +0 -2
  708. package/pn-market-web-components/p-07253be3.entry.js +0 -2
  709. package/pn-market-web-components/p-07253be3.entry.js.map +0 -1
  710. package/pn-market-web-components/p-08a64973.entry.js +0 -2
  711. package/pn-market-web-components/p-08a64973.entry.js.map +0 -1
  712. package/pn-market-web-components/p-107568aa.entry.js.map +0 -1
  713. package/pn-market-web-components/p-10a3c6f4.entry.js.map +0 -1
  714. package/pn-market-web-components/p-161970d1.entry.js +0 -2
  715. package/pn-market-web-components/p-161970d1.entry.js.map +0 -1
  716. package/pn-market-web-components/p-22a65c3e.entry.js.map +0 -1
  717. package/pn-market-web-components/p-2ac83614.entry.js +0 -2
  718. package/pn-market-web-components/p-2ac83614.entry.js.map +0 -1
  719. package/pn-market-web-components/p-2fd40198.entry.js +0 -2
  720. package/pn-market-web-components/p-2fd40198.entry.js.map +0 -1
  721. package/pn-market-web-components/p-3ae1657a.entry.js +0 -2
  722. package/pn-market-web-components/p-3ae1657a.entry.js.map +0 -1
  723. package/pn-market-web-components/p-545ea4ef.entry.js +0 -2
  724. package/pn-market-web-components/p-5666f0e7.entry.js.map +0 -1
  725. package/pn-market-web-components/p-5ff663be.entry.js +0 -2
  726. package/pn-market-web-components/p-5ff663be.entry.js.map +0 -1
  727. package/pn-market-web-components/p-655e6f71.entry.js +0 -2
  728. package/pn-market-web-components/p-657957fc.entry.js +0 -2
  729. package/pn-market-web-components/p-657957fc.entry.js.map +0 -1
  730. package/pn-market-web-components/p-663e4bb8.entry.js +0 -2
  731. package/pn-market-web-components/p-716165d2.entry.js.map +0 -1
  732. package/pn-market-web-components/p-7fdc49d1.entry.js.map +0 -1
  733. package/pn-market-web-components/p-8ca34ec3.entry.js.map +0 -1
  734. package/pn-market-web-components/p-914e1d15.entry.js.map +0 -1
  735. package/pn-market-web-components/p-af16f7e3.entry.js +0 -2
  736. package/pn-market-web-components/p-af16f7e3.entry.js.map +0 -1
  737. package/pn-market-web-components/p-b7a5fb1b.entry.js +0 -2
  738. package/pn-market-web-components/p-be6e903e.entry.js +0 -2
  739. package/pn-market-web-components/p-be6e903e.entry.js.map +0 -1
  740. package/pn-market-web-components/p-bece6791.entry.js +0 -2
  741. package/pn-market-web-components/p-bece6791.entry.js.map +0 -1
  742. package/pn-market-web-components/p-c64cb117.entry.js +0 -2
  743. package/pn-market-web-components/p-c95def57.js +0 -2
  744. package/pn-market-web-components/p-c95def57.js.map +0 -1
  745. package/pn-market-web-components/p-d2109ea6.entry.js.map +0 -1
  746. package/pn-market-web-components/p-da0c533f.entry.js +0 -2
  747. package/pn-market-web-components/p-da0c533f.entry.js.map +0 -1
  748. package/pn-market-web-components/p-da953848.entry.js.map +0 -1
  749. package/pn-market-web-components/p-db2e2762.entry.js.map +0 -1
  750. package/pn-market-web-components/p-db2f3f6d.entry.js +0 -2
  751. package/pn-market-web-components/p-e0f4dc3d.entry.js +0 -2
  752. package/pn-market-web-components/p-e0f4dc3d.entry.js.map +0 -1
  753. package/pn-market-web-components/p-e8189227.entry.js +0 -2
  754. package/pn-market-web-components/p-e8189227.entry.js.map +0 -1
  755. package/pn-market-web-components/p-f8eb860b.entry.js +0 -2
  756. package/pn-market-web-components/p-fa9ea740.entry.js.map +0 -1
  757. package/pn-market-web-components/p-fd639f58.entry.js +0 -2
  758. package/pn-market-web-components/p-fd639f58.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"file":"pn-product-pricelist.entry.cjs.js","mappings":";;;;;;;;;;AAAO,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,gBAAgB,EAAE,mFAAmF;QACrG,oBAAoB,EAAE,gCAAgC;QACtD,iBAAiB,EAAE,8BAA8B;QACjD,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,SAAS;QACzB,mBAAmB,EAAE,UAAU;QAC/B,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,eAAe;QAC7B,OAAO,EAAE,6BAA6B;QACtC,kBAAkB,EAAE,oCAAoC;QACxD,gBAAgB,EAAE,kCAAkC;KACrD;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,gGAAgG;QAClH,oBAAoB,EAAE,+BAA+B;QACrD,iBAAiB,EAAE,+BAA+B;QAClD,WAAW,EAAE,QAAQ;QACrB,cAAc,EAAE,YAAY;QAC5B,mBAAmB,EAAE,qBAAqB;QAC1C,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,YAAY;QAC1B,OAAO,EAAE,4BAA4B;QACrC,kBAAkB,EAAE,+BAA+B;QACnD,gBAAgB,EAAE,oCAAoC;KACvD;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,qBAAqB;QACvC,oBAAoB,EAAE,iCAAiC;QACvD,iBAAiB,EAAE,+BAA+B;QAClD,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,UAAU;QAC1B,mBAAmB,EAAE,eAAe;QACpC,aAAa,EAAE,6BAA6B;QAC5C,YAAY,EAAE,oCAAoC;KACnD;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,qBAAqB;QACvC,oBAAoB,EAAE,8BAA8B;QACpD,iBAAiB,EAAE,+BAA+B;QAClD,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,WAAW;QAC3B,mBAA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AC,MAAM,GAAG,CAAC,EAAE;gBAC9C,SAAS,GAAG,WAAW,GAAG,CAAC,KAAK,CAAC,IAAI,WAAW,KAAK,CAAC,IAAI,WAAW,KAAKA,YAAO,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC;aACzI;YACD,OAAOC,kCAAQ,KAAK,EAAE,WAAW,KAAO,SAAS,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,GAAY,CAAC;SAC3F,CAAC,CACO,CACP,CACF,CACF,IACJ,IAAI,EAERA,kEAAK,KAAK,EAAC,YAAY,qBAAkB,IAAI,CAAC,aAAa,CAAC,MAAM,IAC/D,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAsB,MAC7CA,qBAEEA,kCAAsB,IAAI,EAAE,IAAI,GAAyB,CACrD,CACP,CAAC,CACE,CACD,EACP;KACH;;;;;;;;;;;;","names":["state","convertFileFromStream","weights","h","Host"],"sources":["src/components/widgets/pn-product-pricelist/pn-product-pricelist-translations.ts","src/components/widgets/pn-product-pricelist/pn-product-pricelist.scss?tag=pn-product-pricelist","src/components/widgets/pn-product-pricelist/pn-product-pricelist.tsx"],"sourcesContent":["export const translations = {\n sv: {\n componentheading: 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',\n deliveryscopeheading: 'Endast leveranser inom Sverige',\n resultlistheading: 'Några bra alternativ för dig',\n weightlabel: 'Vikt',\n maxweightlabel: 'Maxvikt',\n maxmeasurementlabel: 'Maxvolym',\n senddirectcta: 'Köp online',\n stampshopcta: 'Köp frimärken',\n message: '*Vid köp hos valfritt ombud',\n servicePointHeader: 'Eller hitta närmaste serviceställe',\n servicePointLink: 'Sök serviceställe eller brevlåda',\n },\n en: {\n componentheading: 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',\n deliveryscopeheading: 'Deliveries within Sweden only',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Weight',\n maxweightlabel: 'Max weight',\n maxmeasurementlabel: 'Maximum measurement',\n senddirectcta: 'Buy Online',\n stampshopcta: 'Buy Stamps',\n message: 'When buying from any agent',\n servicePointHeader: 'Or find nearest service point',\n servicePointLink: 'Search letter-box or service point',\n },\n da: {\n componentheading: 'Vad vill du skicka?',\n deliveryscopeheading: 'Kun leveringer indenfor Sverige',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Vægt',\n maxweightlabel: 'Max vægt',\n maxmeasurementlabel: 'Maks. Volumen',\n senddirectcta: 'Buy shipping in Send Direct',\n stampshopcta: 'Order home stamps from the webshop',\n },\n no: {\n componentheading: 'Vad vill du skicka?',\n deliveryscopeheading: 'Kun leveranser innen Sverige',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Vekt',\n maxweightlabel: 'Maks vekt',\n maxmeasurementlabel: 'Maks volum',\n senddirectcta: 'Buy shipping in Send Direct',\n stampshopcta: 'Order home stamps from the webshop',\n },\n fi: {\n componentheading: 'Vad vill du skicka?',\n deliveryscopeheading: 'Toimitukset vain Ruotsin sisällä',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Paino',\n maxweightlabel: 'Max paino',\n maxmeasurementlabel: 'Max äänenvoimakkuus',\n senddirectcta: 'Buy shipping in Send Direct',\n stampshopcta: 'Order home stamps from the webshop',\n },\n};\n\nexport const markets = {\n se: {\n currency: 'kr',\n },\n dk: {\n currency: 'dk',\n },\n fi: {\n currency: ' €',\n },\n no: {\n currency: 'kr',\n },\n};\n","@import '../../../globals/main.scss';\n\npn-product-pricelist {\n pn-spinner {\n margin: 1em auto;\n }\n\n h2,\n .heading {\n text-align: center;\n font-size: 1.5em;\n line-height: 1.1;\n font-weight: bold;\n margin-bottom: 1rem;\n }\n\n .content,\n .weightselection,\n .resultlist {\n max-width: 50em;\n margin: 0 auto 1.6rem;\n }\n\n .weightoption {\n display: flex;\n gap: 1.6rem;\n }\n\n .weightoption-input {\n width: 5em;\n position: relative;\n display: none;\n\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n\n .weightoption-input-abbreviation {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 1.2em;\n margin-top: 1.55rem;\n font-weight: 500;\n }\n\n .weightoption-range {\n flex-grow: 1;\n align-self: flex-end;\n position: relative;\n top: 0.5em;\n input {\n width: calc(100% - 1.5em);\n }\n datalist {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-size: 0.75em;\n }\n }\n\n .resultlist:not([data-list-count='0']) {\n margin-top: 2em;\n }\n}\n","import { Component, h, Prop, State, Host, Watch } from '@stencil/core';\nimport { translations, markets } from './pn-product-pricelist-translations';\nimport { FindPriceWeight, PnfindPriceMarket, PnfindPricei18n, FindPriceSizeCategory } from '../pn-find-price/pn-find-price-types';\nimport { ProductPriceSourceData, ProductPriceItem } from '../../../globals/shared/productprice/product-price-types';\nimport { ProductPriceListi18n, ProductPriceListMarket, ProductPriceListWeight } from './pn-product-pricelist-types';\nimport { weights } from './data.js';\nimport { convertFileFromStream } from '../../../globals/shared/productprice/convert.js';\n// import { state } from \"./pn-product-pricelist-store\";\nimport { state } from '../pn-find-price/pn-find-price-store';\n\n@Component({\n tag: 'pn-product-pricelist',\n styleUrl: 'pn-product-pricelist.scss',\n})\nexport class PnFindProductPricelist {\n @Prop() source: string = 'https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx';\n @Prop({ mutable: true }) language: string = 'sv';\n @Prop({ mutable: true }) market: string = 'se';\n @Prop() productid: string = '';\n\n @State() filteredItems: ProductPriceItem[] = [];\n @State() sourceData: ProductPriceSourceData = { types: [], data: [] };\n @State() gotData: boolean = false;\n @State() loading: boolean = false;\n\n @State() postagetype: any = { value: '' };\n @State() weight: ProductPriceListWeight = { value: 0, name: '' } as ProductPriceListWeight;\n @State() weightvalue: number = 0;\n\n componentWillLoad() {\n this.setState();\n this.getDataSource().then(() => {});\n }\n\n @Watch('market')\n @Watch('language')\n setState() {\n if (this.market) {\n state.market = markets[this.market] as ProductPriceListMarket;\n }\n if (this.language && translations[this.language]) {\n state.i18n = translations[this.language] as PnfindPricei18n;\n }\n }\n\n async getDataSource() {\n if (!this.productid) {\n return;\n }\n this.loading = true;\n const cacheBusting = `?cache=${Math.floor(Math.random() * (10000 - 1) + 1)}`;\n const req = await fetch(this.source + cacheBusting);\n const reqbody = await req.blob();\n try {\n const convertedData = await convertFileFromStream(reqbody);\n this.sourceData = convertedData;\n this.filterItems();\n } catch (e) {\n this.loading = false;\n console.warn('Unable to parse data');\n }\n }\n\n @Watch('postagetype')\n @Watch('weightvalue')\n filterItems() {\n if (!this.sourceData?.data) {\n console.info('Data has not yet been loaded');\n return;\n }\n this.loading = false;\n const productIdItems = this.sourceData.data.filter(x => x.id === this.productid);\n if (productIdItems.length === 0) {\n return;\n }\n this.postagetype.value = productIdItems[0].what;\n\n if (!weights[this.postagetype.value] || weights[this.postagetype.value].length === 0) {\n return;\n }\n if (this.weightvalue === 0) {\n this.weight = weights[this.postagetype.value][0];\n this.weightvalue = this.weight.value;\n }\n\n // For letters we use grams. Otherwise we use KG\n const comparisonWeight = this.weight.abbreviation.toLocaleLowerCase() === 'kg' && this.postagetype.value === 'letter' ? this.weight.value * 1000 : this.weight.value;\n\n let weightFilteredData = productIdItems.filter(x => x.maxweight === comparisonWeight);\n\n // In parcels the maxwidths don't necessarily start at 1kg so we fetch any type below the user selected value\n if (weightFilteredData.length === 0) {\n weightFilteredData = productIdItems.filter(x => x.maxweight >= comparisonWeight);\n if (weightFilteredData.length > 0) {\n // We reverse the result array since the map will take the last unique item instead of the first\n const uniqueWeightOptions = [...new Map(weightFilteredData.reverse().map(item => [item['id'], item])).values()];\n if (uniqueWeightOptions.length > 0) {\n weightFilteredData = uniqueWeightOptions;\n }\n }\n }\n\n this.filteredItems = weightFilteredData;\n\n this.gotData = this.filteredItems.length > 0;\n }\n\n render() {\n return (\n <Host>\n <div class=\"content\">\n <slot />\n </div>\n\n {this.loading ? <pn-spinner></pn-spinner> : null}\n\n {this.postagetype.value && weights[this.postagetype.value] ? (\n <div class=\"weightselection\">\n <div class=\"weightoption\">\n <div class=\"weightoption-input\">\n <pn-input\n inputid=\"weightvalue\"\n name=\"weightvalue\"\n type=\"number\"\n label={state.i18n.weightlabel}\n value={this.weightvalue}\n onChange={e => {\n if (e && e.target && e.target.value) {\n const weightNum = parseInt(e.target.value, 10);\n if (!isNaN(weightNum)) {\n let matchingWeights = (weights[this.postagetype.value] as ProductPriceListWeight[]).filter(x => {\n let weightInGrams = x.abbreviation === 'kg' ? x.value * 1000 : x.value;\n return weightInGrams >= weightNum;\n });\n if (matchingWeights && matchingWeights.length > 0) {\n this.weight = matchingWeights[0];\n this.weightvalue = this.weight.value;\n }\n }\n }\n }}\n ></pn-input>\n <span class=\"weightoption-input-abbreviation\">{this.weight.abbreviation}</span>\n </div>\n <div class=\"weightoption-range\">\n <input\n type=\"range\"\n id=\"weightrange\"\n name=\"weightrange\"\n list=\"weightlist\"\n value={!this.weight.value ? 0 : weights[this.postagetype.value].findIndex(x => x.value === this.weightvalue)}\n onChange={e => {\n const value = (e.target as HTMLInputElement).value;\n this.weight = weights[this.postagetype.value][value];\n this.weightvalue = this.weight.value;\n }}\n min=\"0\"\n // max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }\n max={weights[this.postagetype.value].length - 1}\n />\n <datalist id=\"weightlist\">\n {weights[this.postagetype.value].map((weight, weightindex) => {\n let labelText = weight.name;\n if (weights[this.postagetype.value].length > 6) {\n labelText = weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.postagetype.value].length - 1 ? weight.name : '';\n }\n return <option value={weightindex} {...(labelText ? { label: labelText } : {})}></option>;\n })}\n </datalist>\n </div>\n </div>\n </div>\n ) : null}\n\n <div class=\"resultlist\" data-list-count={this.filteredItems.length}>\n {this.filteredItems.map((item: ProductPriceItem) => (\n <div>\n {/* <pn-product-pricelist-result item={item}></pn-product-pricelist-result> */}\n <pn-find-price-result item={item}></pn-find-price-result>\n </div>\n ))}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-product-pricelist.entry.cjs.js","mappings":";;;;;;;;;;AAAO,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,gBAAgB,EAAE,mFAAmF;QACrG,oBAAoB,EAAE,gCAAgC;QACtD,iBAAiB,EAAE,8BAA8B;QACjD,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,SAAS;QACzB,mBAAmB,EAAE,UAAU;QAC/B,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,eAAe;QAC7B,OAAO,EAAE,6BAA6B;QACtC,kBAAkB,EAAE,oCAAoC;QACxD,gBAAgB,EAAE,kCAAkC;KACrD;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,gGAAgG;QAClH,oBAAoB,EAAE,+BAA+B;QACrD,iBAAiB,EAAE,+BAA+B;QAClD,WAAW,EAAE,QAAQ;QACrB,cAAc,EAAE,YAAY;QAC5B,mBAAmB,EAAE,qBAAqB;QAC1C,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,YAAY;QAC1B,OAAO,EAAE,4BAA4B;QACrC,kBAAkB,EAAE,+BAA+B;QACnD,gBAAgB,EAAE,oCAAoC;KACvD;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,qBAAqB;QACvC,oBAAoB,EAAE,iCAAiC;QACvD,iBAAiB,EAAE,+BAA+B;QAClD,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,UAAU;QAC1B,mBAAmB,EAAE,eAAe;QACpC,aAAa,EAAE,6BAA6B;QAC5C,YAAY,EAAE,oCAAoC;KACnD;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,qBAAqB;QACvC,oBAAoB,EAAE,8BAA8B;QACpD,iBAAiB,EAAE,+BAA+B;QAClD,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE,WAAW;QAC3B,mBAAmB,EAAE,YAAY;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AC9C,SAAS,GAAG,WAAW,GAAG,CAAC,KAAK,CAAC,IAAI,WAAW,KAAK,CAAC,IAAI,WAAW,KAAKA,YAAO,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC;aACzI;YACD,OAAOC,oBAAQ,KAAK,EAAE,WAAW,MAAO,SAAS,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,GAAW,CAAC;SAC3F,CAAC,CACO,CACP,CACF,CACF,IACJ,IAAI,EAERA,kEAAK,KAAK,EAAC,YAAY,qBAAkB,IAAI,CAAC,aAAa,CAAC,MAAM,IAC/D,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAsB,MAC7CA,qBAEEA,kCAAsB,IAAI,EAAE,IAAI,GAAyB,CACrD,CACP,CAAC,CACE,CACD,EACP;KACH;;;;;;;;;;;;","names":["state","convertFileFromStream","weights","h","Host"],"sources":["src/components/widgets/pn-product-pricelist/pn-product-pricelist-translations.ts","src/components/widgets/pn-product-pricelist/pn-product-pricelist.scss?tag=pn-product-pricelist","src/components/widgets/pn-product-pricelist/pn-product-pricelist.tsx"],"sourcesContent":["export const translations = {\n sv: {\n componentheading: 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',\n deliveryscopeheading: 'Endast leveranser inom Sverige',\n resultlistheading: 'Några bra alternativ för dig',\n weightlabel: 'Vikt',\n maxweightlabel: 'Maxvikt',\n maxmeasurementlabel: 'Maxvolym',\n senddirectcta: 'Köp online',\n stampshopcta: 'Köp frimärken',\n message: '*Vid köp hos valfritt ombud',\n servicePointHeader: 'Eller hitta närmaste serviceställe',\n servicePointLink: 'Sök serviceställe eller brevlåda',\n },\n en: {\n componentheading: 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',\n deliveryscopeheading: 'Deliveries within Sweden only',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Weight',\n maxweightlabel: 'Max weight',\n maxmeasurementlabel: 'Maximum measurement',\n senddirectcta: 'Buy Online',\n stampshopcta: 'Buy Stamps',\n message: 'When buying from any agent',\n servicePointHeader: 'Or find nearest service point',\n servicePointLink: 'Search letter-box or service point',\n },\n da: {\n componentheading: 'Vad vill du skicka?',\n deliveryscopeheading: 'Kun leveringer indenfor Sverige',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Vægt',\n maxweightlabel: 'Max vægt',\n maxmeasurementlabel: 'Maks. Volumen',\n senddirectcta: 'Buy shipping in Send Direct',\n stampshopcta: 'Order home stamps from the webshop',\n },\n no: {\n componentheading: 'Vad vill du skicka?',\n deliveryscopeheading: 'Kun leveranser innen Sverige',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Vekt',\n maxweightlabel: 'Maks vekt',\n maxmeasurementlabel: 'Maks volum',\n senddirectcta: 'Buy shipping in Send Direct',\n stampshopcta: 'Order home stamps from the webshop',\n },\n fi: {\n componentheading: 'Vad vill du skicka?',\n deliveryscopeheading: 'Toimitukset vain Ruotsin sisällä',\n resultlistheading: 'Some suitable options for you',\n weightlabel: 'Paino',\n maxweightlabel: 'Max paino',\n maxmeasurementlabel: 'Max äänenvoimakkuus',\n senddirectcta: 'Buy shipping in Send Direct',\n stampshopcta: 'Order home stamps from the webshop',\n },\n};\n\nexport const markets = {\n se: {\n currency: 'kr',\n },\n dk: {\n currency: 'dk',\n },\n fi: {\n currency: ' €',\n },\n no: {\n currency: 'kr',\n },\n};\n","@import '../../../globals/main.scss';\n\npn-product-pricelist {\n pn-spinner {\n margin: 1em auto;\n }\n\n h2,\n .heading {\n text-align: center;\n font-size: 1.5em;\n line-height: 1.1;\n font-weight: bold;\n margin-bottom: 1rem;\n }\n\n .content,\n .weightselection,\n .resultlist {\n max-width: 50em;\n margin: 0 auto 1.6rem;\n }\n\n .weightoption {\n display: flex;\n gap: 1.6rem;\n }\n\n .weightoption-input {\n width: 5em;\n position: relative;\n display: none;\n\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n\n .weightoption-input-abbreviation {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 1.2em;\n margin-top: 1.55rem;\n font-weight: 500;\n }\n\n .weightoption-range {\n flex-grow: 1;\n align-self: flex-end;\n position: relative;\n top: 0.5em;\n input {\n width: calc(100% - 1.5em);\n }\n datalist {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-size: 0.75em;\n }\n }\n\n .resultlist:not([data-list-count='0']) {\n margin-top: 2em;\n }\n}\n","import { Component, h, Prop, State, Host, Watch } from '@stencil/core';\nimport { translations, markets } from './pn-product-pricelist-translations';\nimport { FindPriceWeight, PnfindPriceMarket, PnfindPricei18n, FindPriceSizeCategory } from '../pn-find-price/pn-find-price-types';\nimport { ProductPriceSourceData, ProductPriceItem } from '../../../globals/shared/productprice/product-price-types';\nimport { ProductPriceListi18n, ProductPriceListMarket, ProductPriceListWeight } from './pn-product-pricelist-types';\nimport { weights } from './data.js';\nimport { convertFileFromStream } from '../../../globals/shared/productprice/convert.js';\n// import { state } from \"./pn-product-pricelist-store\";\nimport { state } from '../pn-find-price/pn-find-price-store';\n\n@Component({\n tag: 'pn-product-pricelist',\n styleUrl: 'pn-product-pricelist.scss',\n})\nexport class PnFindProductPricelist {\n @Prop() source: string = 'https://com-inte.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx';\n @Prop({ mutable: true }) language: string = 'sv';\n @Prop({ mutable: true }) market: string = 'se';\n @Prop() productid: string = '';\n\n @State() filteredItems: ProductPriceItem[] = [];\n @State() sourceData: ProductPriceSourceData = { types: [], data: [] };\n @State() gotData: boolean = false;\n @State() loading: boolean = false;\n\n @State() postagetype: any = { value: '' };\n @State() weight: ProductPriceListWeight = { value: 0, name: '' } as ProductPriceListWeight;\n @State() weightvalue: number = 0;\n\n componentWillLoad() {\n this.setState();\n this.getDataSource().then(() => {});\n }\n\n @Watch('market')\n @Watch('language')\n setState() {\n if (this.market) {\n state.market = markets[this.market] as ProductPriceListMarket;\n }\n if (this.language && translations[this.language]) {\n state.i18n = translations[this.language] as PnfindPricei18n;\n }\n }\n\n async getDataSource() {\n if (!this.productid) {\n return;\n }\n this.loading = true;\n const cacheBusting = `?cache=${Math.floor(Math.random() * (10000 - 1) + 1)}`;\n const req = await fetch(this.source + cacheBusting);\n const reqbody = await req.blob();\n try {\n const convertedData = await convertFileFromStream(reqbody);\n this.sourceData = convertedData;\n this.filterItems();\n } catch (e) {\n this.loading = false;\n console.warn('Unable to parse data');\n }\n }\n\n @Watch('postagetype')\n @Watch('weightvalue')\n filterItems() {\n if (!this.sourceData?.data) {\n console.info('Data has not yet been loaded');\n return;\n }\n this.loading = false;\n const productIdItems = this.sourceData.data.filter(x => x.id === this.productid);\n if (productIdItems.length === 0) {\n return;\n }\n this.postagetype.value = productIdItems[0].what;\n\n if (!weights[this.postagetype.value] || weights[this.postagetype.value].length === 0) {\n return;\n }\n if (this.weightvalue === 0) {\n this.weight = weights[this.postagetype.value][0];\n this.weightvalue = this.weight.value;\n }\n\n // For letters we use grams. Otherwise we use KG\n const comparisonWeight = this.weight.abbreviation.toLocaleLowerCase() === 'kg' && this.postagetype.value === 'letter' ? this.weight.value * 1000 : this.weight.value;\n\n let weightFilteredData = productIdItems.filter(x => x.maxweight === comparisonWeight);\n\n // In parcels the maxwidths don't necessarily start at 1kg so we fetch any type below the user selected value\n if (weightFilteredData.length === 0) {\n weightFilteredData = productIdItems.filter(x => x.maxweight >= comparisonWeight);\n if (weightFilteredData.length > 0) {\n // We reverse the result array since the map will take the last unique item instead of the first\n const uniqueWeightOptions = [...new Map(weightFilteredData.reverse().map(item => [item['id'], item])).values()];\n if (uniqueWeightOptions.length > 0) {\n weightFilteredData = uniqueWeightOptions;\n }\n }\n }\n\n this.filteredItems = weightFilteredData;\n\n this.gotData = this.filteredItems.length > 0;\n }\n\n render() {\n return (\n <Host>\n <div class=\"content\">\n <slot />\n </div>\n\n {this.loading ? <pn-spinner></pn-spinner> : null}\n\n {this.postagetype.value && weights[this.postagetype.value] ? (\n <div class=\"weightselection\">\n <div class=\"weightoption\">\n <div class=\"weightoption-input\">\n <pn-input\n inputid=\"weightvalue\"\n name=\"weightvalue\"\n type=\"number\"\n label={state.i18n.weightlabel}\n value={this.weightvalue}\n onChange={e => {\n if (e && e.target && e.target.value) {\n const weightNum = parseInt(e.target.value, 10);\n if (!isNaN(weightNum)) {\n let matchingWeights = (weights[this.postagetype.value] as ProductPriceListWeight[]).filter(x => {\n let weightInGrams = x.abbreviation === 'kg' ? x.value * 1000 : x.value;\n return weightInGrams >= weightNum;\n });\n if (matchingWeights && matchingWeights.length > 0) {\n this.weight = matchingWeights[0];\n this.weightvalue = this.weight.value;\n }\n }\n }\n }}\n ></pn-input>\n <span class=\"weightoption-input-abbreviation\">{this.weight.abbreviation}</span>\n </div>\n <div class=\"weightoption-range\">\n <input\n type=\"range\"\n id=\"weightrange\"\n name=\"weightrange\"\n list=\"weightlist\"\n value={!this.weight.value ? 0 : weights[this.postagetype.value].findIndex(x => x.value === this.weightvalue)}\n onChange={e => {\n const value = (e.target as HTMLInputElement).value;\n this.weight = weights[this.postagetype.value][value];\n this.weightvalue = this.weight.value;\n }}\n min=\"0\"\n // max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }\n max={weights[this.postagetype.value].length - 1}\n />\n <datalist id=\"weightlist\">\n {weights[this.postagetype.value].map((weight, weightindex) => {\n let labelText = weight.name;\n if (weights[this.postagetype.value].length > 6) {\n labelText = weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.postagetype.value].length - 1 ? weight.name : '';\n }\n return <option value={weightindex} {...(labelText ? { label: labelText } : {})}></option>;\n })}\n </datalist>\n </div>\n </div>\n </div>\n ) : null}\n\n <div class=\"resultlist\" data-list-count={this.filteredItems.length}>\n {this.filteredItems.map((item: ProductPriceItem) => (\n <div>\n {/* <pn-product-pricelist-result item={item}></pn-product-pricelist-result> */}\n <pn-find-price-result item={item}></pn-find-price-result>\n </div>\n ))}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -15,6 +15,8 @@ const PnProfileModalCustomernumber = class {
15
15
  this.customernumber = null;
16
16
  this.selected = false;
17
17
  }
18
+ get hostElement() { return index.getElement(this); }
19
+ urlSelected;
18
20
  onCustomerNumberClick() {
19
21
  this.selected = true;
20
22
  this.urlSelected.emit(this.url);
@@ -22,7 +24,6 @@ const PnProfileModalCustomernumber = class {
22
24
  render() {
23
25
  return (index.h(index.Host, { key: 'bf305b3a541226f48c8384b4bcff5fe23d630db9' }, index.h("button", { key: '46d03f22933b2539ab13d84db2a309e5ea49ac64', class: "pn-profile-modal-customernumber-button", onClick: this.onCustomerNumberClick.bind(this) }, index.h("slot", { key: '98cc7fd67a9267c7bf4b6019eca1bb26fd87b5df' }))));
24
26
  }
25
- get hostElement() { return index.getElement(this); }
26
27
  };
27
28
  PnProfileModalCustomernumber.style = PnProfileModalCustomernumberStyle0;
28
29
 
@@ -1 +1 @@
1
- {"file":"pn-profile-modal-customernumber.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,+BAA+B,GAAG,0gBAA0gB,CAAC;AACnjB,2CAAe,+BAA+B;;MCIjC,4BAA4B;;;;mBAGA,IAAI;8BACO,IAAI;wBACT,KAAK;;IAIlD,qBAAqB;QACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACjC;IACD,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,qEAAQ,KAAK,EAAC,wCAAwC,EAAC,OAAO,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,IACnGA,oEAAQ,CACD,CACJ,EACP;KACH;;;;;;;","names":["h","Host"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal-customernumber.scss?tag=pn-profile-modal-customernumber","src/components/profile/pn-profile-modal/pn-profile-modal-customernumber.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal-customernumber {\n}\n.pn-profile-modal-customernumber-button {\n display: block;\n border: 0;\n margin: 0;\n background: #fff;\n cursor: pointer;\n appearance: none;\n border: 0;\n outline: 0;\n padding: 0.8rem;\n font-weight: 400;\n font-size: 1.4rem;\n border-radius: 0.8rem;\n line-height: 1.4;\n\n transition: background 0.15s ease;\n text-align: left;\n width: 100%;\n &:hover,\n &:focus,\n &:active {\n background: $blue25;\n }\n}\n","import { Component, Prop, h, Event, EventEmitter, Element, Host } from '@stencil/core';\n@Component({\n tag: 'pn-profile-modal-customernumber',\n styleUrl: 'pn-profile-modal-customernumber.scss',\n})\nexport class PnProfileModalCustomernumber {\n @Element() hostElement: Element;\n\n @Prop({ reflect: true }) url: string = null;\n @Prop({ reflect: true }) customernumber: string = null;\n @Prop({ reflect: true }) selected: boolean = false;\n\n @Event() urlSelected: EventEmitter;\n\n onCustomerNumberClick() {\n this.selected = true;\n this.urlSelected.emit(this.url);\n }\n render() {\n return (\n <Host>\n <button class=\"pn-profile-modal-customernumber-button\" onClick={this.onCustomerNumberClick.bind(this)}>\n <slot />\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-profile-modal-customernumber.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,+BAA+B,GAAG,0gBAA0gB,CAAC;AACnjB,2CAAe,+BAA+B;;MCIjC,4BAA4B;;;;mBAGA,IAAI;8BACO,IAAI;wBACT,KAAK;;;IAEzC,WAAW,CAAe;IAEnC,qBAAqB;QACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACjC;IACD,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,qEAAQ,KAAK,EAAC,wCAAwC,EAAC,OAAO,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,IACnGA,oEAAQ,CACD,CACJ,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal-customernumber.scss?tag=pn-profile-modal-customernumber","src/components/profile/pn-profile-modal/pn-profile-modal-customernumber.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal-customernumber {\n}\n.pn-profile-modal-customernumber-button {\n display: block;\n border: 0;\n margin: 0;\n background: #fff;\n cursor: pointer;\n appearance: none;\n border: 0;\n outline: 0;\n padding: 0.8rem;\n font-weight: 400;\n font-size: 1.4rem;\n border-radius: 0.8rem;\n line-height: 1.4;\n\n transition: background 0.15s ease;\n text-align: left;\n width: 100%;\n &:hover,\n &:focus,\n &:active {\n background: $blue25;\n }\n}\n","import { Component, Prop, h, Event, EventEmitter, Element, Host } from '@stencil/core';\n@Component({\n tag: 'pn-profile-modal-customernumber',\n styleUrl: 'pn-profile-modal-customernumber.scss',\n})\nexport class PnProfileModalCustomernumber {\n @Element() hostElement: Element;\n\n @Prop({ reflect: true }) url: string = null;\n @Prop({ reflect: true }) customernumber: string = null;\n @Prop({ reflect: true }) selected: boolean = false;\n\n @Event() urlSelected: EventEmitter;\n\n onCustomerNumberClick() {\n this.selected = true;\n this.urlSelected.emit(this.url);\n }\n render() {\n return (\n <Host>\n <button class=\"pn-profile-modal-customernumber-button\" onClick={this.onCustomerNumberClick.bind(this)}>\n <slot />\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -24,6 +24,9 @@ const PnProfileModalProfile = class {
24
24
  this.visible = false;
25
25
  this.identifier = '';
26
26
  }
27
+ get hostElement() { return index.getElement(this); }
28
+ urlSelected;
29
+ showCustomerNumbersEvent;
27
30
  componentWillLoad() {
28
31
  this.identifier = this.heading + this.url;
29
32
  }
@@ -44,7 +47,6 @@ const PnProfileModalProfile = class {
44
47
  pnProfileModalStore.state.selectedProfile = '';
45
48
  } }, pnProfileModalStore.state.i18n.toText, " ", pnProfileModalStore.state.selectedType), index.h("div", { key: 'ce711bb6c477bdddfe3a1489cd15ec6122abcd9a', class: "pn-profile-modal-profile-details-company" }, index.h("div", { key: '915279c6f234c98182481b5e8258a7a5885538e9', class: "pn-profile-modal-profile-details-label" }, pnProfileModalStore.state.i18n.choosenCompanyText), index.h("div", { key: '116f43ff42414f755d6b3951cac4d92c4e116fcf', class: "pn-profile-modal-profile-details-company-heading" }, this.heading), index.h("div", { key: 'd70e3198965d0af97c1ed34345a2d76df4526e55', class: "pn-profile-modal-profile-details-company-description" }, this.description)), index.h("div", { key: '1e67f8a3b07770202db2f9811044a71f1bb48a4c', class: "pn-profile-modal-profile-details-list" }, index.h("div", { key: 'eb894f29c6113d3a6b903691f5c3ee41857f72e3', class: "pn-profile-modal-profile-details-list-label" }, this.pleaseSelectText), index.h("slot", { key: 'be5c0822d934a5f3e422fd905530294be2873410' })))));
46
49
  }
47
- get hostElement() { return index.getElement(this); }
48
50
  };
49
51
  PnProfileModalProfile.style = PnProfileModalProfileStyle0;
50
52
 
@@ -1 +1 @@
1
- {"file":"pn-profile-modal-profile.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,wBAAwB,GAAG,q+DAAq+D,CAAC;AACvgE,oCAAe,wBAAwB;;MCM1B,qBAAqB;;;;;uBAGW,IAAI;2BACA,IAAI;mBACZ,IAAI;wBACE,KAAK;mCACM,KAAK;gCAET,EAAE;uBAEK,KAAK;0BAKlC,EAAE;;IAEhC,iBAAiB;QACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC;KAC3C;IAED,oBAAoB;QAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,IAAI,CAAC,GAAG,EAAE;YACZ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;SAEjC;aAAM;;YAELA,yBAAK,CAAC,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC;SACzC;KACF;IACD,MAAM;QACJ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ow_left"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal-profile.scss?tag=pn-profile-modal-profile","src/components/profile/pn-profile-modal/pn-profile-modal-profile.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal-profile {\n &[selected='false'] {\n pn-profile-modal-type[selected='true']:not([selected-profile='']) & {\n display: none;\n }\n }\n}\n.pn-profile-modal-profile-listitem {\n overflow: hidden;\n max-height: 10rem;\n transition: max-height 0.15s ease;\n opacity: 1;\n &[aria-hidden='true'] {\n max-height: 0;\n opacity: 0;\n }\n}\n\n.pn-profile-modal-profile-listitem-button {\n padding: 0.8rem;\n margin: 0;\n background: $white;\n outline: 0;\n appearance: none;\n border: 0;\n cursor: pointer;\n border-radius: 0.8rem;\n transition: background 0.15s ease;\n text-align: left;\n width: 100%;\n &:hover,\n &:focus,\n &:active {\n background: $blue25;\n }\n .pn-profile-modal-profile-listitem[aria-hidden='true'] & {\n display: none;\n }\n}\n.pn-profile-modal-profile-listitem-heading {\n color: $blue700;\n font-weight: 700;\n font-size: 1.6rem;\n}\n.pn-profile-modal-profile-listitem-description {\n color: $gray700;\n font-weight: 400;\n font-size: 1.2rem;\n}\n\n.pn-profile-modal-profile-details {\n max-height: 300rem;\n transition: max-height 0.15s ease;\n opacity: 1;\n &[aria-hidden='true'] {\n max-height: 0;\n opacity: 0;\n overflow: hidden;\n }\n > pn-button {\n position: relative;\n margin-left: -1.2rem;\n\n .pn-button-content {\n font-weight: 500;\n }\n }\n}\n\n.pn-profile-modal-profile-details-company {\n border-top: 1px solid $gray200;\n border-bottom: 1px solid $gray200;\n padding: 0.8rem 0.8rem;\n margin: 1.6rem 0;\n}\n.pn-profile-modal-profile-details-label {\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 1.2rem;\n}\n\n.pn-profile-modal-profile-details-company-heading {\n font-weight: 700;\n font-size: 1.6rem;\n}\n.pn-profile-modal-profile-details-company-description {\n color: $gray700;\n font-weight: 400;\n font-size: 1.2rem;\n}\n\n.pn-profile-modal-profile-details-list {\n display: flex;\n flex-direction: column;\n gap: 1.6rem;\n padding: 0 0;\n}\n\n.pn-profile-modal-profile-details-list-label {\n font-size: 1.4rem;\n font-weight: 500;\n margin: 0 0 0 0.8rem;\n}\n","import { Component, Prop, h, Listen, Event, EventEmitter, Element, Host, State } from '@stencil/core';\nimport state from './pn-profile-modal-store';\nimport { arrow_left } from 'pn-design-assets/pn-assets/icons.js';\n@Component({\n tag: 'pn-profile-modal-profile',\n styleUrl: 'pn-profile-modal-profile.scss',\n})\nexport class PnProfileModalProfile {\n @Element() hostElement: Element;\n\n @Prop({ reflect: true }) heading: string = null;\n @Prop({ reflect: true }) description: string = null;\n @Prop({ reflect: true }) url: string = null;\n @Prop({ mutable: true }) selected: boolean = false;\n @Prop({ reflect: true }) showCustomerNumbers: boolean = false;\n\n @Prop({ reflect: true }) pleaseSelectText: string = '';\n\n @Prop({ mutable: true, reflect: true }) visible: boolean = false;\n\n @Event() urlSelected: EventEmitter;\n @Event() showCustomerNumbersEvent: EventEmitter;\n\n @State() identifier: string = '';\n\n componentWillLoad() {\n this.identifier = this.heading + this.url;\n }\n\n onProfileOptionClick() {\n this.selected = true;\n if (this.url) {\n this.urlSelected.emit(this.url);\n // TODO: emit event with URL to parent\n } else {\n // TODO: Open customer number selection\n state.selectedProfile = this.identifier;\n }\n }\n render() {\n return (\n <Host selected={this.selected + ''}>\n <div class=\"pn-profile-modal-profile-listitem\" aria-hidden={!!state.selectedProfile + ''}>\n <button class=\"pn-profile-modal-profile-listitem-button\" onClick={this.onProfileOptionClick.bind(this)}>\n <div class=\"pn-profile-modal-profile-listitem-heading\">{this.heading}</div>\n <div class=\"pn-profile-modal-profile-listitem-description\">{this.description}</div>\n </button>\n </div>\n <div class=\"pn-profile-modal-profile-details\" aria-hidden={!(state.selectedProfile === this.identifier) + ''}>\n <pn-button\n appearance=\"light\"\n variant=\"borderless\"\n icon={arrow_left}\n left-icon=\"true\"\n small=\"true\"\n onClick={() => {\n this.selected = false;\n state.selectedProfile = '';\n }}\n >\n {state.i18n.toText} {state.selectedType}\n </pn-button>\n <div class=\"pn-profile-modal-profile-details-company\">\n <div class=\"pn-profile-modal-profile-details-label\">{state.i18n.choosenCompanyText}</div>\n <div class=\"pn-profile-modal-profile-details-company-heading\">{this.heading}</div>\n <div class=\"pn-profile-modal-profile-details-company-description\">{this.description}</div>\n </div>\n <div class=\"pn-profile-modal-profile-details-list\">\n <div class=\"pn-profile-modal-profile-details-list-label\">{this.pleaseSelectText}</div>\n <slot />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-profile-modal-profile.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,wBAAwB,GAAG,q+DAAq+D,CAAC;AACvgE,oCAAe,wBAAwB;;MCM1B,qBAAqB;;;;;uBAGW,IAAI;2BACA,IAAI;mBACZ,IAAI;wBACE,KAAK;mCACM,KAAK;gCAET,EAAE;uBAEK,KAAK;0BAKlC,EAAE;;;IAHvB,WAAW,CAAe;IAC1B,wBAAwB,CAAe;IAIhD,iBAAiB;QACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC;KAC3C;IAED,oBAAoB;QAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,IAAI,CAAC,GAAG,EAAE;YACZ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;SAEjC;aAAM;;YAELA,yBAAK,CAAC,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC;SACzC;KACF;IACD,MAAM;QACJ,QACEC,QAACC,UAAI,qDAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,EAAE,IAChCD,kEAAK,KAAK,EAAC,mCAAmC,iBAAc,CAAC,CAACD,yBAAK,CAAC,eAAe,GAAG,EAAE,IACtFC,qEAAQ,KAAK,EAAC,0CAA0C,EAAC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,IACpGA,kEAAK,KAAK,EAAC,2CAA2C,IAAE,IAAI,CAAC,OAAO,CAAO,EAC3EA,kEAAK,KAAK,EAAC,+CAA+C,IAAE,IAAI,CAAC,WAAW,CAAO,CAC5E,CACL,EACNA,kEAAK,KAAK,EAAC,kCAAkC,iBAAc,EAAED,yBAAK,CAAC,eAAe,KAAK,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAC1GC,wEACE,UAAU,EAAC,OAAO,EAClB,OAAO,EAAC,YAAY,EACpB,IAAI,EAAEE,qBAAU,eACN,MAAM,EAChB,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE;gBACP,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtBH,yBAAK,CAAC,eAAe,GAAG,EAAE,CAAC;aAC5B,IAEAA,yBAAK,CAAC,IAAI,CAAC,MAAM,OAAGA,yBAAK,CAAC,YAAY,CAC7B,EACZC,kEAAK,KAAK,EAAC,0CAA0C,IACnDA,kEAAK,KAAK,EAAC,wCAAwC,IAAED,yBAAK,CAAC,IAAI,CAAC,kBAAkB,CAAO,EACzFC,kEAAK,KAAK,EAAC,kDAAkD,IAAE,IAAI,CAAC,OAAO,CAAO,EAClFA,kEAAK,KAAK,EAAC,sDAAsD,IAAE,IAAI,CAAC,WAAW,CAAO,CACtF,EACNA,kEAAK,KAAK,EAAC,uCAAuC,IAChDA,kEAAK,KAAK,EAAC,6CAA6C,IAAE,IAAI,CAAC,gBAAgB,CAAO,EACtFA,oEAAQ,CACJ,CACF,CACD,EACP;KACH;;;;;;","names":["state","h","Host","arrow_left"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal-profile.scss?tag=pn-profile-modal-profile","src/components/profile/pn-profile-modal/pn-profile-modal-profile.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal-profile {\n &[selected='false'] {\n pn-profile-modal-type[selected='true']:not([selected-profile='']) & {\n display: none;\n }\n }\n}\n.pn-profile-modal-profile-listitem {\n overflow: hidden;\n max-height: 10rem;\n transition: max-height 0.15s ease;\n opacity: 1;\n &[aria-hidden='true'] {\n max-height: 0;\n opacity: 0;\n }\n}\n\n.pn-profile-modal-profile-listitem-button {\n padding: 0.8rem;\n margin: 0;\n background: $white;\n outline: 0;\n appearance: none;\n border: 0;\n cursor: pointer;\n border-radius: 0.8rem;\n transition: background 0.15s ease;\n text-align: left;\n width: 100%;\n &:hover,\n &:focus,\n &:active {\n background: $blue25;\n }\n .pn-profile-modal-profile-listitem[aria-hidden='true'] & {\n display: none;\n }\n}\n.pn-profile-modal-profile-listitem-heading {\n color: $blue700;\n font-weight: 700;\n font-size: 1.6rem;\n}\n.pn-profile-modal-profile-listitem-description {\n color: $gray700;\n font-weight: 400;\n font-size: 1.2rem;\n}\n\n.pn-profile-modal-profile-details {\n max-height: 300rem;\n transition: max-height 0.15s ease;\n opacity: 1;\n &[aria-hidden='true'] {\n max-height: 0;\n opacity: 0;\n overflow: hidden;\n }\n > pn-button {\n position: relative;\n margin-left: -1.2rem;\n\n .pn-button-content {\n font-weight: 500;\n }\n }\n}\n\n.pn-profile-modal-profile-details-company {\n border-top: 1px solid $gray200;\n border-bottom: 1px solid $gray200;\n padding: 0.8rem 0.8rem;\n margin: 1.6rem 0;\n}\n.pn-profile-modal-profile-details-label {\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 1.2rem;\n}\n\n.pn-profile-modal-profile-details-company-heading {\n font-weight: 700;\n font-size: 1.6rem;\n}\n.pn-profile-modal-profile-details-company-description {\n color: $gray700;\n font-weight: 400;\n font-size: 1.2rem;\n}\n\n.pn-profile-modal-profile-details-list {\n display: flex;\n flex-direction: column;\n gap: 1.6rem;\n padding: 0 0;\n}\n\n.pn-profile-modal-profile-details-list-label {\n font-size: 1.4rem;\n font-weight: 500;\n margin: 0 0 0 0.8rem;\n}\n","import { Component, Prop, h, Listen, Event, EventEmitter, Element, Host, State } from '@stencil/core';\nimport state from './pn-profile-modal-store';\nimport { arrow_left } from 'pn-design-assets/pn-assets/icons.js';\n@Component({\n tag: 'pn-profile-modal-profile',\n styleUrl: 'pn-profile-modal-profile.scss',\n})\nexport class PnProfileModalProfile {\n @Element() hostElement: Element;\n\n @Prop({ reflect: true }) heading: string = null;\n @Prop({ reflect: true }) description: string = null;\n @Prop({ reflect: true }) url: string = null;\n @Prop({ mutable: true }) selected: boolean = false;\n @Prop({ reflect: true }) showCustomerNumbers: boolean = false;\n\n @Prop({ reflect: true }) pleaseSelectText: string = '';\n\n @Prop({ mutable: true, reflect: true }) visible: boolean = false;\n\n @Event() urlSelected: EventEmitter;\n @Event() showCustomerNumbersEvent: EventEmitter;\n\n @State() identifier: string = '';\n\n componentWillLoad() {\n this.identifier = this.heading + this.url;\n }\n\n onProfileOptionClick() {\n this.selected = true;\n if (this.url) {\n this.urlSelected.emit(this.url);\n // TODO: emit event with URL to parent\n } else {\n // TODO: Open customer number selection\n state.selectedProfile = this.identifier;\n }\n }\n render() {\n return (\n <Host selected={this.selected + ''}>\n <div class=\"pn-profile-modal-profile-listitem\" aria-hidden={!!state.selectedProfile + ''}>\n <button class=\"pn-profile-modal-profile-listitem-button\" onClick={this.onProfileOptionClick.bind(this)}>\n <div class=\"pn-profile-modal-profile-listitem-heading\">{this.heading}</div>\n <div class=\"pn-profile-modal-profile-listitem-description\">{this.description}</div>\n </button>\n </div>\n <div class=\"pn-profile-modal-profile-details\" aria-hidden={!(state.selectedProfile === this.identifier) + ''}>\n <pn-button\n appearance=\"light\"\n variant=\"borderless\"\n icon={arrow_left}\n left-icon=\"true\"\n small=\"true\"\n onClick={() => {\n this.selected = false;\n state.selectedProfile = '';\n }}\n >\n {state.i18n.toText} {state.selectedType}\n </pn-button>\n <div class=\"pn-profile-modal-profile-details-company\">\n <div class=\"pn-profile-modal-profile-details-label\">{state.i18n.choosenCompanyText}</div>\n <div class=\"pn-profile-modal-profile-details-company-heading\">{this.heading}</div>\n <div class=\"pn-profile-modal-profile-details-company-description\">{this.description}</div>\n </div>\n <div class=\"pn-profile-modal-profile-details-list\">\n <div class=\"pn-profile-modal-profile-details-list-label\">{this.pleaseSelectText}</div>\n <slot />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -17,6 +17,7 @@ const PnProfileModalType = class {
17
17
  this.selected = false;
18
18
  this.selectedprofile = null;
19
19
  }
20
+ get hostElement() { return index.getElement(this); }
20
21
  onSelectedChange() {
21
22
  if (this.selected) {
22
23
  pnProfileModalStore.state.selectedType = this.name;
@@ -29,7 +30,6 @@ const PnProfileModalType = class {
29
30
  render() {
30
31
  return (index.h(index.Host, { key: '98952eff6707ccdbd1542211aa27c15a2a4132b3', selected: (pnProfileModalStore.state.selectedType === this.name) + '', "selected-profile": pnProfileModalStore.state.selectedProfile + '' }, index.h("slot", { key: '337448f06a943c42e520cfa9cc7a5890eaded9cb' })));
31
32
  }
32
- get hostElement() { return index.getElement(this); }
33
33
  static get watchers() { return {
34
34
  "selected": ["onSelectedChange"]
35
35
  }; }
@@ -1 +1 @@
1
- {"file":"pn-profile-modal-type.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,qBAAqB,GAAG,scAAsc,CAAC;AACre,iCAAe,qBAAqB;;MCKvB,kBAAkB;;;sBAGa,EAAE;oBACJ,OAAO;wBACF,KAAK;+BACC,IAAI;;IAGvD,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjBA,yBAAK,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC;SAChC;QACDA,yBAAK,CAAC,eAAe,GAAG,EAAE,CAAC;QAC3B,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACtE,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;SACrC,CAAC,CAAC;KACJ;IACD,MAAM;QACJ,QACEC,QAACC,UAAI,qDAAC,QAAQ,EAAE,CAACF,yBAAK,CAAC,YAAY,KAAK,IAAI,CAAC,IAAI,IAAI,EAAE,sBAAoBA,yBAAK,CAAC,eAAe,GAAG,EAAE,IACnGC,oEAAQ,CACH,EACP;KACH;;;;;;;;;;","names":["state","h","Host"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal-type.scss?tag=pn-profile-modal-type","src/components/profile/pn-profile-modal/pn-profile-modal-type.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal-type {\n display: flex;\n width: 100%;\n padding: 3.2rem 0 1.2rem;\n flex-direction: column;\n gap: 1.6rem;\n &:first-of-type {\n margin-top: 2.4rem;\n }\n &:last-of-type {\n border-bottom: 0;\n padding-bottom: 0;\n .profileselectoroption {\n padding-bottom: 0;\n }\n }\n display: none;\n &[selected='true'] {\n display: flex;\n opacity: 1;\n }\n}\n","import { Component, Prop, h, Element, Host, Watch } from '@stencil/core';\nimport state from './pn-profile-modal-store';\n@Component({\n tag: 'pn-profile-modal-type',\n styleUrl: 'pn-profile-modal-type.scss',\n})\nexport class PnProfileModalType {\n @Element() hostElement: Element;\n\n @Prop({ reflect: true }) typeid: string = '';\n @Prop({ mutable: true }) name: string = 'false';\n @Prop({ mutable: true }) selected: boolean = false;\n @Prop({ mutable: true }) selectedprofile: string = null;\n\n @Watch('selected')\n onSelectedChange() {\n if (this.selected) {\n state.selectedType = this.name;\n }\n state.selectedProfile = '';\n [...this.hostElement.querySelectorAll('pn-profile-modal-profile')].map(x => {\n x.setAttribute('selected', 'false');\n });\n }\n render() {\n return (\n <Host selected={(state.selectedType === this.name) + ''} selected-profile={state.selectedProfile + ''}>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-profile-modal-type.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,qBAAqB,GAAG,scAAsc,CAAC;AACre,iCAAe,qBAAqB;;MCKvB,kBAAkB;;;sBAGa,EAAE;oBACJ,OAAO;wBACF,KAAK;+BACC,IAAI;;;IAGvD,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjBA,yBAAK,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC;SAChC;QACDA,yBAAK,CAAC,eAAe,GAAG,EAAE,CAAC;QAC3B,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACtE,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;SACrC,CAAC,CAAC;KACJ;IACD,MAAM;QACJ,QACEC,QAACC,UAAI,qDAAC,QAAQ,EAAE,CAACF,yBAAK,CAAC,YAAY,KAAK,IAAI,CAAC,IAAI,IAAI,EAAE,sBAAoBA,yBAAK,CAAC,eAAe,GAAG,EAAE,IACnGC,oEAAQ,CACH,EACP;KACH;;;;;;;;;","names":["state","h","Host"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal-type.scss?tag=pn-profile-modal-type","src/components/profile/pn-profile-modal/pn-profile-modal-type.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal-type {\n display: flex;\n width: 100%;\n padding: 3.2rem 0 1.2rem;\n flex-direction: column;\n gap: 1.6rem;\n &:first-of-type {\n margin-top: 2.4rem;\n }\n &:last-of-type {\n border-bottom: 0;\n padding-bottom: 0;\n .profileselectoroption {\n padding-bottom: 0;\n }\n }\n display: none;\n &[selected='true'] {\n display: flex;\n opacity: 1;\n }\n}\n","import { Component, Prop, h, Element, Host, Watch } from '@stencil/core';\nimport state from './pn-profile-modal-store';\n@Component({\n tag: 'pn-profile-modal-type',\n styleUrl: 'pn-profile-modal-type.scss',\n})\nexport class PnProfileModalType {\n @Element() hostElement: Element;\n\n @Prop({ reflect: true }) typeid: string = '';\n @Prop({ mutable: true }) name: string = 'false';\n @Prop({ mutable: true }) selected: boolean = false;\n @Prop({ mutable: true }) selectedprofile: string = null;\n\n @Watch('selected')\n onSelectedChange() {\n if (this.selected) {\n state.selectedType = this.name;\n }\n state.selectedProfile = '';\n [...this.hostElement.querySelectorAll('pn-profile-modal-profile')].map(x => {\n x.setAttribute('selected', 'false');\n });\n }\n render() {\n return (\n <Host selected={(state.selectedType === this.name) + ''} selected-profile={state.selectedProfile + ''}>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -20,6 +20,7 @@ const PnProfileModal = class {
20
20
  this.chooseCustomerNumberText = null;
21
21
  this.isLoading = true;
22
22
  }
23
+ get hostElement() { return index.getElement(this); }
23
24
  componentWillLoad() {
24
25
  this.populateState();
25
26
  this.bindEvents();
@@ -67,7 +68,6 @@ const PnProfileModal = class {
67
68
  render() {
68
69
  return (index.h(index.Host, { key: '8d31699717d53dc7fba0c2cfa987ca2417cbfaf7' }, index.h("div", { key: 'd80ac112d9aaa208c33ee7859947b511f0875729', class: "profilemodal-container" }, index.h("div", { key: 'a3b62ce172c4291bddd2d36bcafe43c308f835b5', class: "profilemodal-logo" }, index.h("svg", { key: 'bebcef4cb95cfec07d35e630b9e3a23654185b80', viewBox: "0 0 133 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "17.1rem", height: "3.2rem" }, index.h("path", { key: '2d36880b4389dad57a6e87a6c87a8ea11789123f', "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 : index.h("div", { class: "profilemodal-heading" }, this.heading), index.h("div", { key: 'a51c67d4ef30bfb08d5ae3de185bfc8c7930d461', class: "profilemodal-content" }, index.h("slot", { key: '38733244f30578ff68c367ae1e7801ae4ab5694c' })), this.continueCtaText ? (index.h("div", { class: "profilemodal-cta", "aria-hidden": !pnProfileModalStore.state.selectedUrl + '' }, index.h("pn-button", { onclick: this.onCTAClick, href: pnProfileModalStore.state.selectedUrl, icon: arrow_right.arrow_right }, this.continueCtaText))) : null)));
69
70
  }
70
- get hostElement() { return index.getElement(this); }
71
71
  };
72
72
  PnProfileModal.style = PnProfileModalStyle0;
73
73
 
@@ -1 +1 @@
1
- {"file":"pn-profile-modal.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,m7BAAm7B,CAAC;AAC98B,6BAAe,iBAAiB;;MCOnB,cAAc;;;uBAGC,IAAI;+BACI,IAAI;kCACD,IAAI;sBAChB,IAAI;wCACc,IAAI;yBAEjB,IAAI;;IAElC,iBAAiB;QACf,IAAI,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,CACR,IACJ,IAAI,CACJ,CACD,EACP;KACH;;;;;;;","names":["state","h","Host","arrow_right"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal.scss?tag=pn-profile-modal","src/components/profile/pn-profile-modal/pn-profile-modal.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal {\n margin: 1em auto;\n display: flex;\n flex-direction: column;\n min-width: 42.4rem;\n max-width: 38.4rem;\n width: 100%;\n padding: 1.6rem;\n border-radius: 8px;\n background: $white;\n}\n\n.profilemodal-container {\n padding: 3.2rem;\n border-radius: 8px;\n box-shadow:\n 0 0.06rem 0.18rem rgba(0, 0, 0, 0.1),\n 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);\n border: 0.1rem solid $gray50;\n display: flex;\n flex-direction: column;\n}\n\n.profilemodal-logo {\n display: none;\n svg {\n display: block;\n margin: 0 auto 2.4rem;\n }\n}\n\n.profilemodal-heading {\n text-align: center;\n font-weight: 700;\n}\n\n.profilemodal-content {\n margin: 1.6rem 0 0;\n pn-segmented-control {\n transform: translateZ(0) translateX(-50%);\n left: 50%;\n }\n}\n\n.profilemodal-cta {\n margin: 1.6rem 0 0;\n transition:\n max-height 0.15s ease,\n opacity 0.15s ease;\n overflow: hidden;\n opacity: 1;\n &[aria-hidden='true'] {\n max-height: 0;\n opacity: 1;\n }\n > pn-button {\n width: 100%;\n }\n}\n","import { Component, Prop, h, State, Element, Listen, Watch, Host, Event, EventEmitter } from '@stencil/core';\n\nimport state from './pn-profile-modal-store';\nimport { arrow_right } from 'pn-design-assets/pn-assets/icons.js';\n@Component({\n tag: 'pn-profile-modal',\n styleUrl: 'pn-profile-modal.scss',\n})\nexport class PnProfileModal {\n @Element() hostElement: Element;\n\n @Prop() heading: string = null;\n @Prop() continueCtaText: string = null;\n @Prop() choosenCompanyText: string = null;\n @Prop() toText: string = null;\n @Prop() chooseCustomerNumberText: string = null;\n\n @State() isLoading: boolean = true;\n\n componentWillLoad() {\n this.populateState();\n this.bindEvents();\n }\n populateState() {\n state.i18n.chooseCustomerNumberText = this.chooseCustomerNumberText;\n state.i18n.choosenCompanyText = this.choosenCompanyText;\n state.i18n.toText = this.toText;\n const selectedType = this.hostElement.querySelector('pn-profile-modal-type[selected=\"true\"]');\n if (selectedType) {\n state.selectedType = selectedType.getAttribute('name');\n }\n }\n bindEvents() {\n const segmentControl = this.hostElement.querySelector('pn-segmented-control');\n if (segmentControl) {\n segmentControl.addEventListener('change', this.onSegmentControlChange.bind(this));\n }\n }\n onSegmentControlChange(e) {\n const contentId = e.target.value;\n const content = this.hostElement.querySelector(`[typeid=\"${contentId}\"]`);\n if (content) {\n const types = [...this.hostElement.querySelectorAll('pn-profile-modal-type')];\n types.forEach(type => {\n type.setAttribute('selected', (type.getAttribute('typeid') === contentId) + '');\n });\n }\n }\n\n onCTAClick() {\n if (!state.selectedUrl) {\n console.log('no Url as been selected, will not continue');\n }\n }\n @Listen('urlSelected')\n onUrlSelected(e) {\n if (!e || !e.detail) {\n return;\n }\n state.selectedUrl = e.detail;\n const ctaBtn = this.hostElement.querySelector('.profilemodal-cta pn-button');\n if (ctaBtn) {\n ctaBtn.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' });\n }\n }\n\n render() {\n return (\n <Host>\n <div class=\"profilemodal-container\">\n <div class=\"profilemodal-logo\">\n <svg viewBox=\"0 0 133 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" width=\"17.1rem\" height=\"3.2rem\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n fill=\"#00A0D6\"\n 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\"\n ></path>\n </svg>\n </div>\n\n {this.heading === '' ? null : <div class=\"profilemodal-heading\">{this.heading}</div>}\n <div class=\"profilemodal-content\">\n <slot />\n </div>\n {this.continueCtaText ? (\n <div class=\"profilemodal-cta\" aria-hidden={!state.selectedUrl + ''}>\n <pn-button onclick={this.onCTAClick} href={state.selectedUrl} icon={arrow_right}>\n {this.continueCtaText}\n </pn-button>\n </div>\n ) : null}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-profile-modal.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,m7BAAm7B,CAAC;AAC98B,6BAAe,iBAAiB;;MCOnB,cAAc;;;uBAGC,IAAI;+BACI,IAAI;kCACD,IAAI;sBAChB,IAAI;wCACc,IA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I,EAAEG,uBAAW,IAC5E,IAAI,CAAC,eAAe,CACX,CACR,IACJ,IAAI,CACJ,CACD,EACP;KACH;;;;;;","names":["state","h","Host","arrow_right"],"sources":["src/components/profile/pn-profile-modal/pn-profile-modal.scss?tag=pn-profile-modal","src/components/profile/pn-profile-modal/pn-profile-modal.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-modal {\n margin: 1em auto;\n display: flex;\n flex-direction: column;\n min-width: 42.4rem;\n max-width: 38.4rem;\n width: 100%;\n padding: 1.6rem;\n border-radius: 8px;\n background: $white;\n}\n\n.profilemodal-container {\n padding: 3.2rem;\n border-radius: 8px;\n box-shadow:\n 0 0.06rem 0.18rem rgba(0, 0, 0, 0.1),\n 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);\n border: 0.1rem solid $gray50;\n display: flex;\n flex-direction: column;\n}\n\n.profilemodal-logo {\n display: none;\n svg {\n display: block;\n margin: 0 auto 2.4rem;\n }\n}\n\n.profilemodal-heading {\n text-align: center;\n font-weight: 700;\n}\n\n.profilemodal-content {\n margin: 1.6rem 0 0;\n pn-segmented-control {\n transform: translateZ(0) translateX(-50%);\n left: 50%;\n }\n}\n\n.profilemodal-cta {\n margin: 1.6rem 0 0;\n transition:\n max-height 0.15s ease,\n opacity 0.15s ease;\n overflow: hidden;\n opacity: 1;\n &[aria-hidden='true'] {\n max-height: 0;\n opacity: 1;\n }\n > pn-button {\n width: 100%;\n }\n}\n","import { Component, Prop, h, State, Element, Listen, Watch, Host, Event, EventEmitter } from '@stencil/core';\n\nimport state from './pn-profile-modal-store';\nimport { arrow_right } from 'pn-design-assets/pn-assets/icons.js';\n@Component({\n tag: 'pn-profile-modal',\n styleUrl: 'pn-profile-modal.scss',\n})\nexport class PnProfileModal {\n @Element() hostElement: Element;\n\n @Prop() heading: string = null;\n @Prop() continueCtaText: string = null;\n @Prop() choosenCompanyText: string = null;\n @Prop() toText: string = null;\n @Prop() chooseCustomerNumberText: string = null;\n\n @State() isLoading: boolean = true;\n\n componentWillLoad() {\n this.populateState();\n this.bindEvents();\n }\n populateState() {\n state.i18n.chooseCustomerNumberText = this.chooseCustomerNumberText;\n state.i18n.choosenCompanyText = this.choosenCompanyText;\n state.i18n.toText = this.toText;\n const selectedType = this.hostElement.querySelector('pn-profile-modal-type[selected=\"true\"]');\n if (selectedType) {\n state.selectedType = selectedType.getAttribute('name');\n }\n }\n bindEvents() {\n const segmentControl = this.hostElement.querySelector('pn-segmented-control');\n if (segmentControl) {\n segmentControl.addEventListener('change', this.onSegmentControlChange.bind(this));\n }\n }\n onSegmentControlChange(e) {\n const contentId = e.target.value;\n const content = this.hostElement.querySelector(`[typeid=\"${contentId}\"]`);\n if (content) {\n const types = [...this.hostElement.querySelectorAll('pn-profile-modal-type')];\n types.forEach(type => {\n type.setAttribute('selected', (type.getAttribute('typeid') === contentId) + '');\n });\n }\n }\n\n onCTAClick() {\n if (!state.selectedUrl) {\n console.log('no Url as been selected, will not continue');\n }\n }\n @Listen('urlSelected')\n onUrlSelected(e) {\n if (!e || !e.detail) {\n return;\n }\n state.selectedUrl = e.detail;\n const ctaBtn = this.hostElement.querySelector('.profilemodal-cta pn-button');\n if (ctaBtn) {\n ctaBtn.scrollIntoView({ block: 'start', inline: 'nearest', behavior: 'smooth' });\n }\n }\n\n render() {\n return (\n <Host>\n <div class=\"profilemodal-container\">\n <div class=\"profilemodal-logo\">\n <svg viewBox=\"0 0 133 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" width=\"17.1rem\" height=\"3.2rem\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n fill=\"#00A0D6\"\n 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\"\n ></path>\n </svg>\n </div>\n\n {this.heading === '' ? null : <div class=\"profilemodal-heading\">{this.heading}</div>}\n <div class=\"profilemodal-content\">\n <slot />\n </div>\n {this.continueCtaText ? (\n <div class=\"profilemodal-cta\" aria-hidden={!state.selectedUrl + ''}>\n <pn-button onclick={this.onCTAClick} href={state.selectedUrl} icon={arrow_right}>\n {this.continueCtaText}\n </pn-button>\n </div>\n ) : null}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -15,10 +15,10 @@ const PnProfileSelectorOption = class {
15
15
  this.description = '';
16
16
  this.url = '';
17
17
  }
18
+ get hostElement() { return index.getElement(this); }
18
19
  render() {
19
20
  return (index.h(index.Host, { key: 'b0f288463b8f44943e6760d45b64011685985cfa' }, index.h("a", { key: 'eb98099d27f62910259d83ae7331a4ce10c5bc50', class: "profileselectoroption", href: this.url }, index.h("span", { key: '54d197d0214c2a0826c2fc760498d1bd245bae3d', class: "profileselectoroption-text" }, index.h("span", { key: '2b8a6da767d9169f26f3d45c3e387152b6e5c479', class: "profileselectoroption-title" }, this.heading), index.h("span", { key: 'eb3f94e8a8a526f76dddd8bef79a0d95268791c5', class: "profileselectoroption-description" }, this.description)), index.h("pn-icon", { key: '8d898e0e9fd056edcd68ee4d825194d4a87d9c2e', icon: arrow_right.arrow_right, small: "false", color: "blue700" }))));
20
21
  }
21
- get hostElement() { return index.getElement(this); }
22
22
  };
23
23
  PnProfileSelectorOption.style = PnProfileSelectorOptionStyle0;
24
24
 
@@ -1 +1 @@
1
- {"file":"pn-profile-selector-option.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,0BAA0B,GAAG,6qCAA6qC,CAAC;AACjtC,sCAAe,0BAA0B;;MCK5B,uBAAuB;;;uBAGR,EAAE;2BACE,EAAE;mBACV,EAAE;;IAExB,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,gEAAG,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAC7CA,mEAAM,KAAK,EAAC,4BAA4B,IACtCA,mEAAM,KAAK,EAAC,6BAA6B,IAAE,IAAI,CAAC,OAAO,CAAQ,EAC/DA,mEAAM,KAAK,EAAC,mCAAmC,IAAE,IAAI,CAAC,WAAW,CAAQ,CACpE,EACPA,sEAAS,IAAI,EAAEE,uBAAW,EAAE,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,SAAS,GAAW,CAClE,CACC,EACP;KACH;;;;;;;","names":["h","Host","arrow_right"],"sources":["src/components/profile/pn-profile-selector/pn-profile-selector-option.scss?tag=pn-profile-selector-option","src/components/profile/pn-profile-selector/pn-profile-selector-option.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-selector-option {\n display: flex;\n width: 100%;\n border-bottom: 1px solid $gray200;\n padding: 1.2rem 0;\n &:first-of-type {\n margin-top: 2.4rem;\n }\n &:last-of-type {\n border-bottom: 0;\n padding-bottom: 0;\n .profileselectoroption {\n padding-bottom: 0;\n }\n }\n}\n\n.profileselectoroption {\n display: flex;\n width: 100%;\n padding: 1.2rem 0;\n pn-icon {\n align-self: center;\n position: relative;\n transform: translateX(-1rem);\n transition: transform 0.25s linear;\n }\n text-decoration: none;\n &:hover,\n &:focus,\n &:active {\n .profileselectoroption-name {\n text-decoration: underline;\n }\n pn-icon {\n transform: none;\n transition-timing-function: ease;\n }\n }\n}\n\n.profileselectoroption-text {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n}\n\n.profileselectoroption-title {\n font-size: 1em;\n color: $blue700;\n font-weight: 700;\n}\n\n.profileselectoroption-description {\n font-size: 0.75em;\n color: $gray700;\n font-weight: normal;\n}\n","import { Component, Prop, h, State, Element, Host } from '@stencil/core';\nimport { arrow_right } from 'pn-design-assets/pn-assets/icons.js';\n@Component({\n tag: 'pn-profile-selector-option',\n styleUrl: 'pn-profile-selector-option.scss',\n})\nexport class PnProfileSelectorOption {\n @Element() hostElement: Element;\n\n @Prop() heading: string = '';\n @Prop() description: string = '';\n @Prop() url: string = '';\n\n render() {\n return (\n <Host>\n <a class=\"profileselectoroption\" href={this.url}>\n <span class=\"profileselectoroption-text\">\n <span class=\"profileselectoroption-title\">{this.heading}</span>\n <span class=\"profileselectoroption-description\">{this.description}</span>\n </span>\n <pn-icon icon={arrow_right} small=\"false\" color=\"blue700\"></pn-icon>\n </a>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-profile-selector-option.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,0BAA0B,GAAG,6qCAA6qC,CAAC;AACjtC,sCAAe,0BAA0B;;MCK5B,uBAAuB;;;uBAGR,EAAE;2BACE,EAAE;mBACV,EAAE;;;IAExB,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,gEAAG,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAC7CA,mEAAM,KAAK,EAAC,4BAA4B,IACtCA,mEAAM,KAAK,EAAC,6BAA6B,IAAE,IAAI,CAAC,OAAO,CAAQ,EAC/DA,mEAAM,KAAK,EAAC,mCAAmC,IAAE,IAAI,CAAC,WAAW,CAAQ,CACpE,EACPA,sEAAS,IAAI,EAAEE,uBAAW,EAAE,KAAK,EAAC,OAAO,EAAC,KAAK,EAAC,SAAS,GAAW,CAClE,CACC,EACP;KACH;;;;;;","names":["h","Host","arrow_right"],"sources":["src/components/profile/pn-profile-selector/pn-profile-selector-option.scss?tag=pn-profile-selector-option","src/components/profile/pn-profile-selector/pn-profile-selector-option.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-profile-selector-option {\n display: flex;\n width: 100%;\n border-bottom: 1px solid $gray200;\n padding: 1.2rem 0;\n &:first-of-type {\n margin-top: 2.4rem;\n }\n &:last-of-type {\n border-bottom: 0;\n padding-bottom: 0;\n .profileselectoroption {\n padding-bottom: 0;\n }\n }\n}\n\n.profileselectoroption {\n display: flex;\n width: 100%;\n padding: 1.2rem 0;\n pn-icon {\n align-self: center;\n position: relative;\n transform: translateX(-1rem);\n transition: transform 0.25s linear;\n }\n text-decoration: none;\n &:hover,\n &:focus,\n &:active {\n .profileselectoroption-name {\n text-decoration: underline;\n }\n pn-icon {\n transform: none;\n transition-timing-function: ease;\n }\n }\n}\n\n.profileselectoroption-text {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n}\n\n.profileselectoroption-title {\n font-size: 1em;\n color: $blue700;\n font-weight: 700;\n}\n\n.profileselectoroption-description {\n font-size: 0.75em;\n color: $gray700;\n font-weight: normal;\n}\n","import { Component, Prop, h, State, Element, Host } from '@stencil/core';\nimport { arrow_right } from 'pn-design-assets/pn-assets/icons.js';\n@Component({\n tag: 'pn-profile-selector-option',\n styleUrl: 'pn-profile-selector-option.scss',\n})\nexport class PnProfileSelectorOption {\n @Element() hostElement: Element;\n\n @Prop() heading: string = '';\n @Prop() description: string = '';\n @Prop() url: string = '';\n\n render() {\n return (\n <Host>\n <a class=\"profileselectoroption\" href={this.url}>\n <span class=\"profileselectoroption-text\">\n <span class=\"profileselectoroption-title\">{this.heading}</span>\n <span class=\"profileselectoroption-description\">{this.description}</span>\n </span>\n <pn-icon icon={arrow_right} small=\"false\" color=\"blue700\"></pn-icon>\n </a>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -38,6 +38,7 @@ const PnProfileSelector = class {
38
38
  this.isLoading = true;
39
39
  this.numberOfProfiles = 1;
40
40
  }
41
+ get hostElement() { return index.getElement(this); }
41
42
  componentWillLoad() {
42
43
  this.init();
43
44
  }
@@ -52,7 +53,6 @@ const PnProfileSelector = class {
52
53
  render() {
53
54
  return (index.h(index.Host, { key: '507afcbe6e54bd1717fe7a43f3919c2c9d4bd6f7' }, index.h("div", { key: '6c81b92156651080f9c0e65f63310820e9197fb6', class: "profileselector-container" }, index.h("div", { key: '1dbd6d2c872fc13d6654afa7dcae3704783b09e8', class: "profileselector-logo" }, index.h("svg", { key: '30a12bec10c160c4d120376251f99bc0de39ce0e', viewBox: "0 0 133 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "17.1rem", height: "3.2rem" }, index.h("path", { key: '1e0956b44ba531ff5918209cdd8f4c8e6baa8cc2', "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 : index.h("div", { class: "profileselector-intromessage" }, this.heading === null ? this.i18n.introMessage : this.heading), index.h("slot", { key: '0b301901864769b2b4e3fa3e2610c62de2b26de5' }))));
54
55
  }
55
- get hostElement() { return index.getElement(this); }
56
56
  };
57
57
  PnProfileSelector.style = PnProfileSelectorStyle0;
58
58
 
@@ -1 +1 @@
1
- {"file":"pn-profile-selector.entry.cjs.js","mappings":";;;;;;AAAO,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,YAAY,EAAE,+BAA+B;KAC9C;IACD,EAAE,EAAE;QACF,YAAY,EAAE,oDAAoD;KACnE;IACD,EAAE,EAAE;QACF,YAAY,EAAE,4CAA4C;KAC3D;IACD,EAAE,EAAE;QACF,YAAY,EAAE,iDAAiD;KAChE;IACD,EAAE,EAAE;QACF,YAAY,EAAE,8CAA8C;KAC7D;IACD,EAAE,EAAE;QACF,YAAY,EAAE,mDAAmD;KAClE;CACF;;ACnBD,MAAM,oBAAoB,GAAG,0kBAA0kB,CAAC;AACxmB,gCAAe,oBAAoB;;MCQtB,iBAAiB;;;wBAG+B,IAAI;yBACnC,GAAG;uBACL,IAAI;oBAEO,YAAY,CAAC,IAAI,CAAC;yBAEzB,IAAI;gCACE,CAAC;;IAErC,iBAAiB;QACf,IAAI,CAAC,IAAI,EAAE,CAAC;KACb;IAED,IAAI;QACF,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAED,eAAe;QACb,IAAI,IAAI,CAAC,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAChD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACzC;KACF;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,kEAAK,KAAK,EAAC,2BAA2B,IACpCA,kEAAK,KAAK,EAAC,sBAAsB,IAC/BA,kEAAK,OAAO,EAAC,YAAY,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,SAAS,EAAC,MAAM,EAAC,QAAQ,IACtGA,gFACY,SAAS,eACT,SAAS,EACnB,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,w8FAAw8F,GACp8F,CACJ,CACF,EAEL,IAAI,CAAC,OAAO,KAAK,EAAE,GAAG,IAAI,GAAGA,iBAAK,KAAK,EAAC,8BAA8B,IAAE,IAAI,CAAC,OAAO,KAAK,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAO,EAC7IA,oEAAQ,CACJ,CACD,EACP;KACH;;;;;;;","names":["h","Host"],"sources":["src/components/profile/pn-profile-selector/translations.ts","src/components/profile/pn-profile-selector/pn-profile-selector.scss?tag=pn-profile-selector","src/components/profile/pn-profile-selector/pn-profile-selector.tsx"],"sourcesContent":["export const translations = {\n sv: {\n introMessage: `Välj ombud du vill agera som?`,\n },\n en: {\n introMessage: `Which customer number do you want to handle today?`,\n },\n da: {\n introMessage: `Hvilket kundenummer vil du håndtere i dag?`,\n },\n no: {\n introMessage: `Hvilket kundenummer ønsker du å håndtere i dag?`,\n },\n fi: {\n introMessage: `Mitä asiakasnumeroa haluat käsitellä tänään?`,\n },\n de: {\n introMessage: `Welche Kundennummer möchten Sie heute bearbeiten?`,\n },\n};\n","@import '../../../globals/main.scss';\n\npn-profile-selector {\n margin: 1em auto;\n display: flex;\n flex-direction: column;\n min-width: 42.4rem;\n max-width: 38.4rem;\n width: 100%;\n padding: 1.6rem;\n border-radius: 8px;\n background: $white;\n}\n\n.profileselector-container {\n padding: 3.2rem;\n border-radius: 8px;\n box-shadow:\n 0 0.06rem 0.18rem rgba(0, 0, 0, 0.1),\n 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);\n border: 0.1rem solid $gray50;\n display: flex;\n flex-direction: column;\n}\n\n.profileselector-logo {\n svg {\n display: block;\n margin: 0 auto 2.4rem;\n }\n}\n\n.profileselector-intromessage {\n text-align: center;\n font-weight: 700;\n}\n","import { Component, Prop, h, State, Element, Listen, Watch, Host, Event, EventEmitter } from '@stencil/core';\nimport { translations } from './translations';\nimport { ProfileSelectori18n } from './pn-profile-selector-types';\nimport { MarketWebContextService } from '../../../globals/MarketWebContextService';\nimport { MarketWebLoginManager } from '../../../globals/MarketWebLoginManager';\n@Component({\n tag: 'pn-profile-selector',\n styleUrl: 'pn-profile-selector.scss',\n})\nexport class PnProfileSelector {\n @Element() hostElement: Element;\n\n @Prop({ mutable: true, reflect: true }) language: string = 'sv'; //sv\n @Prop() returnUrl: string = '/'; //sv\n @Prop() heading: string = null; //sv\n\n @State() i18n: ProfileSelectori18n = translations['en'];\n\n @State() isLoading: boolean = true;\n @State() numberOfProfiles: number = 1;\n\n componentWillLoad() {\n this.init();\n }\n\n init() {\n this.setTranslations();\n }\n\n setTranslations() {\n if (this.language && translations[this.language]) {\n this.i18n = translations[this.language];\n }\n }\n\n render() {\n return (\n <Host>\n <div class=\"profileselector-container\">\n <div class=\"profileselector-logo\">\n <svg viewBox=\"0 0 133 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" width=\"17.1rem\" height=\"3.2rem\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n fill=\"#00A0D6\"\n 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\"\n ></path>\n </svg>\n </div>\n\n {this.heading === '' ? null : <div class=\"profileselector-intromessage\">{this.heading === null ? this.i18n.introMessage : this.heading}</div>}\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-profile-selector.entry.cjs.js","mappings":";;;;;;AAAO,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE;QACF,YAAY,EAAE,+BAA+B;KAC9C;IACD,EAAE,EAAE;QACF,YAAY,EAAE,oDAAoD;KACnE;IACD,EAAE,EAAE;QACF,YAAY,EAAE,4CAA4C;KAC3D;IACD,EAAE,EAAE;QACF,YAAY,EAAE,iDAAiD;KAChE;IACD,EAAE,EAAE;QACF,YAAY,EAAE,8CAA8C;KAC7D;IACD,EAAE,EAAE;QACF,YAAY,EAAE,mDAAmD;KAClE;CACF;;ACnBD,MAAM,oBAAoB,GAAG,0kBAA0kB,CAAC;AACxmB,gCAAe,oBAAoB;;MCQtB,iBAAiB;;;wBAG+B,IAAI;yBACnC,GAAG;uBACL,IAAI;oBAEO,YAAY,CAAC,IAAI,CAAC;yBAEzB,IAAI;gCACE,CAAC;;;IAErC,iBAAiB;QACf,IAAI,CAAC,IAAI,EAAE,CAAC;KACb;IAED,IAAI;QACF,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAED,eAAe;QACb,IAAI,IAAI,CAAC,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAChD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACzC;KACF;IAED,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,kEAAK,KAAK,EAAC,2BAA2B,IACpCA,kEAAK,KAAK,EAAC,sBAAsB,IAC/BA,kEAAK,OAAO,EAAC,YAAY,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,SAAS,EAAC,MAAM,EAAC,QAAQ,IACtGA,gFACY,SAAS,eACT,SAAS,EACnB,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,w8FAAw8F,GACp8F,CACJ,CACF,EAEL,IAAI,CAAC,OAAO,KAAK,EAAE,GAAG,IAAI,GAAGA,iBAAK,KAAK,EAAC,8BAA8B,IAAE,IAAI,CAAC,OAAO,KAAK,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAO,EAC7IA,oEAAQ,CACJ,CACD,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/profile/pn-profile-selector/translations.ts","src/components/profile/pn-profile-selector/pn-profile-selector.scss?tag=pn-profile-selector","src/components/profile/pn-profile-selector/pn-profile-selector.tsx"],"sourcesContent":["export const translations = {\n sv: {\n introMessage: `Välj ombud du vill agera som?`,\n },\n en: {\n introMessage: `Which customer number do you want to handle today?`,\n },\n da: {\n introMessage: `Hvilket kundenummer vil du håndtere i dag?`,\n },\n no: {\n introMessage: `Hvilket kundenummer ønsker du å håndtere i dag?`,\n },\n fi: {\n introMessage: `Mitä asiakasnumeroa haluat käsitellä tänään?`,\n },\n de: {\n introMessage: `Welche Kundennummer möchten Sie heute bearbeiten?`,\n },\n};\n","@import '../../../globals/main.scss';\n\npn-profile-selector {\n margin: 1em auto;\n display: flex;\n flex-direction: column;\n min-width: 42.4rem;\n max-width: 38.4rem;\n width: 100%;\n padding: 1.6rem;\n border-radius: 8px;\n background: $white;\n}\n\n.profileselector-container {\n padding: 3.2rem;\n border-radius: 8px;\n box-shadow:\n 0 0.06rem 0.18rem rgba(0, 0, 0, 0.1),\n 0 0.32rem 0.72rem rgba(0, 0, 0, 0.13);\n border: 0.1rem solid $gray50;\n display: flex;\n flex-direction: column;\n}\n\n.profileselector-logo {\n svg {\n display: block;\n margin: 0 auto 2.4rem;\n }\n}\n\n.profileselector-intromessage {\n text-align: center;\n font-weight: 700;\n}\n","import { Component, Prop, h, State, Element, Listen, Watch, Host, Event, EventEmitter } from '@stencil/core';\nimport { translations } from './translations';\nimport { ProfileSelectori18n } from './pn-profile-selector-types';\nimport { MarketWebContextService } from '../../../globals/MarketWebContextService';\nimport { MarketWebLoginManager } from '../../../globals/MarketWebLoginManager';\n@Component({\n tag: 'pn-profile-selector',\n styleUrl: 'pn-profile-selector.scss',\n})\nexport class PnProfileSelector {\n @Element() hostElement: Element;\n\n @Prop({ mutable: true, reflect: true }) language: string = 'sv'; //sv\n @Prop() returnUrl: string = '/'; //sv\n @Prop() heading: string = null; //sv\n\n @State() i18n: ProfileSelectori18n = translations['en'];\n\n @State() isLoading: boolean = true;\n @State() numberOfProfiles: number = 1;\n\n componentWillLoad() {\n this.init();\n }\n\n init() {\n this.setTranslations();\n }\n\n setTranslations() {\n if (this.language && translations[this.language]) {\n this.i18n = translations[this.language];\n }\n }\n\n render() {\n return (\n <Host>\n <div class=\"profileselector-container\">\n <div class=\"profileselector-logo\">\n <svg viewBox=\"0 0 133 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" width=\"17.1rem\" height=\"3.2rem\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n fill=\"#00A0D6\"\n 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\"\n ></path>\n </svg>\n </div>\n\n {this.heading === '' ? null : <div class=\"profileselector-intromessage\">{this.heading === null ? this.i18n.introMessage : this.heading}</div>}\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -37,7 +37,6 @@ const PnProxioFindPriceResult = class {
37
37
  this.shownitems = [this.item];
38
38
  }
39
39
  getPriceString(product) {
40
- var _a, _b;
41
40
  if (!product.productWeightGroupList) {
42
41
  return null;
43
42
  }
@@ -45,41 +44,38 @@ const PnProxioFindPriceResult = class {
45
44
  let price = '';
46
45
  if (this.showInternational && this.selectedCountrycode && this.selectedCountrycode !== this.market && product.weightPriceCountryList) {
47
46
  let weightPriceCountryList = product.weightPriceCountryList.filter(item => item.item3.includes(this.selectedCountrycode.toUpperCase()));
48
- price = weightPriceCountryList ? (_a = weightPriceCountryList[activeIndex]) === null || _a === void 0 ? void 0 : _a.item2 : '';
47
+ price = weightPriceCountryList ? weightPriceCountryList[activeIndex]?.item2 : '';
49
48
  }
50
49
  else {
51
- price = product.weightAndPriceList ? (_b = product === null || product === void 0 ? void 0 : product.weightAndPriceList[activeIndex]) === null || _b === void 0 ? void 0 : _b.item2 : '';
50
+ price = product.weightAndPriceList ? product?.weightAndPriceList[activeIndex]?.item2 : '';
52
51
  }
53
52
  return price ? this.i18n.from + price : '';
54
53
  }
55
54
  getProductLink(product, productWeightGroupList) {
56
- var _a;
57
55
  if (product.productWeightGroupList) {
58
56
  const activeIndex = product.productWeightGroupList.findIndex(item => item.item1 === this.activeweight);
59
- let productId = (_a = productWeightGroupList[activeIndex]) === null || _a === void 0 ? void 0 : _a.item2;
60
- let productLink = product.productLink ? product === null || product === void 0 ? void 0 : product.productLink : '';
57
+ let productId = productWeightGroupList[activeIndex]?.item2;
58
+ let productLink = product.productLink ? product?.productLink : '';
61
59
  return productLink ? productLink + (productId ? '?productId=' + productId : '') : '';
62
60
  }
63
61
  return null;
64
62
  }
65
63
  getDeliveryInformation(product) {
66
- var _a, _b;
67
64
  if (!this.showInternational || !product.deliveryDateInternationalInformation) {
68
65
  return product.deliveryDateInformation;
69
66
  }
70
- const internationalShipment = (_a = product === null || product === void 0 ? void 0 : product.deliveryDateInternationalInformation) === null || _a === void 0 ? void 0 : _a.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());
71
- if ((_b = !(internationalShipment === null || internationalShipment === void 0 ? void 0 : internationalShipment.item2)) !== null && _b !== void 0 ? _b : true) {
67
+ const internationalShipment = product?.deliveryDateInternationalInformation?.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());
68
+ if (!internationalShipment?.item2 ?? true) {
72
69
  return product.deliveryDateInformation;
73
70
  }
74
71
  return internationalShipment.item2;
75
72
  }
76
73
  getInsuranceAmountText(product) {
77
- var _a, _b;
78
74
  if (!product.insuranceAmounts) {
79
75
  return '';
80
76
  }
81
- const insuranceAmount = (_a = product === null || product === void 0 ? void 0 : product.insuranceAmounts) === null || _a === void 0 ? void 0 : _a.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());
82
- if ((_b = !(insuranceAmount === null || insuranceAmount === void 0 ? void 0 : insuranceAmount.item2)) !== null && _b !== void 0 ? _b : true) {
77
+ const insuranceAmount = product?.insuranceAmounts?.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());
78
+ if (!insuranceAmount?.item2 ?? true) {
83
79
  return '';
84
80
  }
85
81
  return insuranceAmount.item2;
@@ -1 +1 @@
1
- {"file":"pn-proxio-findprice-result.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,0BAA0B,GAAG,uVAAuV,CAAC;AAC3X,sCAAe,0BAA0B;;MCO5B,uBAAuB;;;oBAC4B,IAAI;4BAClB,IAAI;0BACC,EAAE;;;;2BAItB,EAAE;+BACC,KAAK;iCACJ,KAAK;mCACJ,EAAE;sBACf,EAAE;wBACiB,IAAI;0BAE1B,EAAE;sBACE,EAAE;yBACC,EAAE;uBACJ,EAAE;sBACH,EAAE;oBACUA,yBAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;;IAEjE,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;KACrB;IAGD,YAAY;QACV,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC/B;IAGD,cAAc,CAAC,OAAsB;;QACnC,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE;YACnC,OAAO,IAAI,CAAC;SACb;QAED,MAAM,WAAW,GAAG,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC;QAEvG,IAAI,KAAK,GAAG,EAAE,CAAC;QAEf,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,mBAAmB,KAAK,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,sBAAsB,EAAE;YACpI,IAAI,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;YAExI,KAAK,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,OAAO,CAAC,EACnC,IAAI,EAAE,OAAO,CAAC,WAAW,EACzB,QAAQ,EAAE,OAAO,CAAC,eAAe,GACA,CACpC,CAAC;cACF,IAAI,CACJ,EACL,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IACnDA,iBAAK,IAAI,EAAC,WAAW,IACnBA,iBAAK,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAO,CACnF,IACJ,IAAI,CACc,CAErB,EACP;KACH;;;;;;;;;;","names":["translations","h","Host"],"sources":["src/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.scss?tag=pn-proxio-findprice-result","src/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-proxio-findprice-result {\n [slot='insurance'] {\n display: flex;\n justify-content: center;\n }\n\n .insurance-box {\n padding: 0.4rem 0.8rem;\n border-radius: 0.8rem;\n background-color: $blue200;\n text-align: center;\n font-size: 1.2rem;\n font-weight: 400;\n margin-bottom: 2.4rem;\n }\n}\n","import { Component, h, Prop, Host, Watch, State } from '@stencil/core';\nimport { ProxioPriceGroupi18n, ProxioProduct, ProductGenericItem, ProductWeightGroupListItem, ProxioPriceListGroupResponse } from '../pn-proxio-pricegroup/types';\nimport { translations } from '../pn-proxio-pricegroup/translations';\n\n@Component({\n tag: 'pn-proxio-findprice-result',\n styleUrl: 'pn-proxio-findprice-result.scss',\n})\nexport class PnProxioFindPriceResult {\n @Prop({ mutable: true }) item: ProxioPriceListGroupResponse = null;\n @Prop({ mutable: true }) activeweight: number = null;\n @Prop() shownitems: ProxioPriceListGroupResponse[] = [];\n @Prop() Usp1?: string;\n @Prop() Usp2?: string;\n @Prop() Usp3?: string;\n @Prop() description?: string[] = [];\n @Prop() showMeasurement?: boolean = false;\n @Prop() showInternational: boolean = false;\n @Prop() selectedCountrycode: string = '';\n @Prop() market: string = '';\n @Prop({ mutable: true }) language: string = 'sv';\n\n @State() weightText = '';\n @State() linkId: string = '';\n @State() shopLabel: string = '';\n @State() shopUrl: string = '';\n @State() shopId: string = '';\n @State() i18n: ProxioPriceGroupi18n = translations[this.language];\n\n componentWillLoad() {\n this.composeItems();\n }\n\n @Watch('item')\n composeItems() {\n this.shownitems = [this.item];\n }\n\n @Watch('activeweight')\n getPriceString(product: ProxioProduct) {\n if (!product.productWeightGroupList) {\n return null;\n }\n\n const activeIndex = product.productWeightGroupList.findIndex(item => item.item1 === this.activeweight);\n\n let price = '';\n\n if (this.showInternational && this.selectedCountrycode && this.selectedCountrycode !== this.market && product.weightPriceCountryList) {\n let weightPriceCountryList = product.weightPriceCountryList.filter(item => item.item3.includes(this.selectedCountrycode.toUpperCase()));\n\n price = weightPriceCountryList ? weightPriceCountryList[activeIndex]?.item2 : '';\n } else {\n price = product.weightAndPriceList ? product?.weightAndPriceList[activeIndex]?.item2 : '';\n }\n\n return price ? this.i18n.from + price : '';\n }\n\n @Watch('activeweight')\n getProductLink(product: ProxioProduct, productWeightGroupList: ProductWeightGroupListItem[]) {\n if (product.productWeightGroupList) {\n const activeIndex = product.productWeightGroupList.findIndex(item => item.item1 === this.activeweight);\n\n let productId = productWeightGroupList[activeIndex]?.item2;\n let productLink = product.productLink ? product?.productLink : '';\n return productLink ? productLink + (productId ? '?productId=' + productId : '') : '';\n }\n return null;\n }\n\n getDeliveryInformation(product: ProxioProduct) {\n if (!this.showInternational || !product.deliveryDateInternationalInformation) {\n return product.deliveryDateInformation;\n }\n\n const internationalShipment = product?.deliveryDateInternationalInformation?.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());\n\n if (!internationalShipment?.item2 ?? true) {\n return product.deliveryDateInformation;\n }\n\n return internationalShipment.item2;\n }\n\n getInsuranceAmountText(product: ProxioProduct) {\n if (!product.insuranceAmounts) {\n return '';\n }\n\n const insuranceAmount = product?.insuranceAmounts?.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());\n\n if (!insuranceAmount?.item2 ?? true) {\n return '';\n }\n\n return insuranceAmount.item2;\n }\n\n render() {\n return (\n <Host>\n {\n <pn-proxio-productcard>\n <pn-illustration slot=\"illustrationmobile\" illustration={this.item.proxioProduct.productIcon}></pn-illustration>\n <h2 slot=\"title\">{this.item.proxioProduct.productTitle}</h2>\n <pn-proxio-productcard-description\n slot=\"description\"\n heading={this.item.proxioProduct.productPreamble}\n highlight={this.getDeliveryInformation(this.item.proxioProduct)}\n list={this.item.proxioProduct.productDescriptionBulletListItems}\n ></pn-proxio-productcard-description>\n <div slot=\"information\">\n <pn-proxio-productcard-information\n label={this.i18n.labelMaxDimensions}\n information={this.item.proxioProduct.productPackageDimensionsList as ProductGenericItem[]}\n ></pn-proxio-productcard-information>\n <pn-proxio-productcard-information\n label={this.i18n.labelMaxDimensionsRoll}\n information={this.item.proxioProduct.productRollDimensionsList as ProductGenericItem[]}\n ></pn-proxio-productcard-information>\n </div>\n <div slot=\"bottomtags\">\n {this.item.proxioProduct.usp1 ? <pn-titletag color=\"gray50\">{this.item.proxioProduct.usp1}</pn-titletag> : null}\n {this.item.proxioProduct.usp2 ? <pn-titletag color=\"gray50\">{this.item.proxioProduct.usp2}</pn-titletag> : null}\n {this.item.proxioProduct.usp3 ? <pn-titletag color=\"gray50\">{this.item.proxioProduct.usp3}</pn-titletag> : null}\n </div>\n <pn-illustration slot=\"illustration\" illustration={this.item.proxioProduct.productIcon}></pn-illustration>\n <div slot=\"pricelink\">\n <pn-proxio-productcard-pricelink\n price={this.getPriceString(this.item.proxioProduct)}\n link={this.getProductLink(this.item.proxioProduct, this.item.proxioProduct.productWeightGroupList)}\n linktext={this.item.proxioProduct.productLinkText}\n ></pn-proxio-productcard-pricelink>\n {this.item.relatedProxioProducts\n ? this.item.relatedProxioProducts.map(product => (\n <pn-proxio-productcard-pricelink\n price={this.getPriceString(product)}\n link={product.productLink}\n linktext={product.productLinkText}\n ></pn-proxio-productcard-pricelink>\n ))\n : null}\n </div>\n {this.getInsuranceAmountText(this.item.proxioProduct) ? (\n <div slot=\"insurance\">\n <div class=\"insurance-box\">{this.getInsuranceAmountText(this.item.proxioProduct)}</div>\n </div>\n ) : null}\n </pn-proxio-productcard>\n }\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-proxio-findprice-result.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,0BAA0B,GAAG,uVAAuV,CAAC;AAC3X,sCAAe,0BAA0B;;MCO5B,uBAAuB;;;oBAC4B,IAAI;4BAClB,IAAI;0BACC,EAAE;;;;2BAItB,EAAE;+BACC,KAAK;iCACJ,KAAK;mCACJ,EAAE;sBACf,EAAE;wBACiB,IAAI;0BAE1B,EAAE;sBACE,EAAE;yBACC,EAAE;uBACJ,EAAE;sBACH,EAAE;oBACUA,yBAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;;IAEjE,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;KACrB;IAGD,YAAY;QACV,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC/B;IAGD,cAAc,CAAC,OAAsB;QACnC,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE;YACnC,OAAO,IAAI,CAAC;SACb;QAED,MAAM,WAAW,GAAG,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC;QAEvG,IAAI,KAAK,GAAG,EAAE,CAAC;QAEf,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,mBAAmB,KAAK,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,sBAAsB,EAAE;YACpI,IAAI,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,m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I,CAAC,aAAa,CAAC,IACnDA,iBAAK,IAAI,EAAC,WAAW,IACnBA,iBAAK,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAO,CACnF,IACJ,IAAI,CACc,CAErB,EACP;KACH;;;;;;;;;;","names":["translations","h","Host"],"sources":["src/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.scss?tag=pn-proxio-findprice-result","src/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-proxio-findprice-result {\n [slot='insurance'] {\n display: flex;\n justify-content: center;\n }\n\n .insurance-box {\n padding: 0.4rem 0.8rem;\n border-radius: 0.8rem;\n background-color: $blue200;\n text-align: center;\n font-size: 1.2rem;\n font-weight: 400;\n margin-bottom: 2.4rem;\n }\n}\n","import { Component, h, Prop, Host, Watch, State } from '@stencil/core';\nimport { ProxioPriceGroupi18n, ProxioProduct, ProductGenericItem, ProductWeightGroupListItem, ProxioPriceListGroupResponse } from '../pn-proxio-pricegroup/types';\nimport { translations } from '../pn-proxio-pricegroup/translations';\n\n@Component({\n tag: 'pn-proxio-findprice-result',\n styleUrl: 'pn-proxio-findprice-result.scss',\n})\nexport class PnProxioFindPriceResult {\n @Prop({ mutable: true }) item: ProxioPriceListGroupResponse = null;\n @Prop({ mutable: true }) activeweight: number = null;\n @Prop() shownitems: ProxioPriceListGroupResponse[] = [];\n @Prop() Usp1?: string;\n @Prop() Usp2?: string;\n @Prop() Usp3?: string;\n @Prop() description?: string[] = [];\n @Prop() showMeasurement?: boolean = false;\n @Prop() showInternational: boolean = false;\n @Prop() selectedCountrycode: string = '';\n @Prop() market: string = '';\n @Prop({ mutable: true }) language: string = 'sv';\n\n @State() weightText = '';\n @State() linkId: string = '';\n @State() shopLabel: string = '';\n @State() shopUrl: string = '';\n @State() shopId: string = '';\n @State() i18n: ProxioPriceGroupi18n = translations[this.language];\n\n componentWillLoad() {\n this.composeItems();\n }\n\n @Watch('item')\n composeItems() {\n this.shownitems = [this.item];\n }\n\n @Watch('activeweight')\n getPriceString(product: ProxioProduct) {\n if (!product.productWeightGroupList) {\n return null;\n }\n\n const activeIndex = product.productWeightGroupList.findIndex(item => item.item1 === this.activeweight);\n\n let price = '';\n\n if (this.showInternational && this.selectedCountrycode && this.selectedCountrycode !== this.market && product.weightPriceCountryList) {\n let weightPriceCountryList = product.weightPriceCountryList.filter(item => item.item3.includes(this.selectedCountrycode.toUpperCase()));\n\n price = weightPriceCountryList ? weightPriceCountryList[activeIndex]?.item2 : '';\n } else {\n price = product.weightAndPriceList ? product?.weightAndPriceList[activeIndex]?.item2 : '';\n }\n\n return price ? this.i18n.from + price : '';\n }\n\n @Watch('activeweight')\n getProductLink(product: ProxioProduct, productWeightGroupList: ProductWeightGroupListItem[]) {\n if (product.productWeightGroupList) {\n const activeIndex = product.productWeightGroupList.findIndex(item => item.item1 === this.activeweight);\n\n let productId = productWeightGroupList[activeIndex]?.item2;\n let productLink = product.productLink ? product?.productLink : '';\n return productLink ? productLink + (productId ? '?productId=' + productId : '') : '';\n }\n return null;\n }\n\n getDeliveryInformation(product: ProxioProduct) {\n if (!this.showInternational || !product.deliveryDateInternationalInformation) {\n return product.deliveryDateInformation;\n }\n\n const internationalShipment = product?.deliveryDateInternationalInformation?.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());\n\n if (!internationalShipment?.item2 ?? true) {\n return product.deliveryDateInformation;\n }\n\n return internationalShipment.item2;\n }\n\n getInsuranceAmountText(product: ProxioProduct) {\n if (!product.insuranceAmounts) {\n return '';\n }\n\n const insuranceAmount = product?.insuranceAmounts?.find(info => info.item1.toLowerCase() === this.selectedCountrycode.toLowerCase());\n\n if (!insuranceAmount?.item2 ?? true) {\n return '';\n }\n\n return insuranceAmount.item2;\n }\n\n render() {\n return (\n <Host>\n {\n <pn-proxio-productcard>\n <pn-illustration slot=\"illustrationmobile\" illustration={this.item.proxioProduct.productIcon}></pn-illustration>\n <h2 slot=\"title\">{this.item.proxioProduct.productTitle}</h2>\n <pn-proxio-productcard-description\n slot=\"description\"\n heading={this.item.proxioProduct.productPreamble}\n highlight={this.getDeliveryInformation(this.item.proxioProduct)}\n list={this.item.proxioProduct.productDescriptionBulletListItems}\n ></pn-proxio-productcard-description>\n <div slot=\"information\">\n <pn-proxio-productcard-information\n label={this.i18n.labelMaxDimensions}\n information={this.item.proxioProduct.productPackageDimensionsList as ProductGenericItem[]}\n ></pn-proxio-productcard-information>\n <pn-proxio-productcard-information\n label={this.i18n.labelMaxDimensionsRoll}\n information={this.item.proxioProduct.productRollDimensionsList as ProductGenericItem[]}\n ></pn-proxio-productcard-information>\n </div>\n <div slot=\"bottomtags\">\n {this.item.proxioProduct.usp1 ? <pn-titletag color=\"gray50\">{this.item.proxioProduct.usp1}</pn-titletag> : null}\n {this.item.proxioProduct.usp2 ? <pn-titletag color=\"gray50\">{this.item.proxioProduct.usp2}</pn-titletag> : null}\n {this.item.proxioProduct.usp3 ? <pn-titletag color=\"gray50\">{this.item.proxioProduct.usp3}</pn-titletag> : null}\n </div>\n <pn-illustration slot=\"illustration\" illustration={this.item.proxioProduct.productIcon}></pn-illustration>\n <div slot=\"pricelink\">\n <pn-proxio-productcard-pricelink\n price={this.getPriceString(this.item.proxioProduct)}\n link={this.getProductLink(this.item.proxioProduct, this.item.proxioProduct.productWeightGroupList)}\n linktext={this.item.proxioProduct.productLinkText}\n ></pn-proxio-productcard-pricelink>\n {this.item.relatedProxioProducts\n ? this.item.relatedProxioProducts.map(product => (\n <pn-proxio-productcard-pricelink\n price={this.getPriceString(product)}\n link={product.productLink}\n linktext={product.productLinkText}\n ></pn-proxio-productcard-pricelink>\n ))\n : null}\n </div>\n {this.getInsuranceAmountText(this.item.proxioProduct) ? (\n <div slot=\"insurance\">\n <div class=\"insurance-box\">{this.getInsuranceAmountText(this.item.proxioProduct)}</div>\n </div>\n ) : null}\n </pn-proxio-productcard>\n }\n </Host>\n );\n }\n}\n"],"version":3}