@postnord/pn-marketweb-components 4.2.5 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. package/cjs/header-theme-a250bf67.js +245 -0
  2. package/cjs/header-theme-a250bf67.js.map +1 -0
  3. package/cjs/index-9a9efa1c.js +24 -16
  4. package/cjs/loader.cjs.js +1 -1
  5. package/cjs/pn-app-banner.cjs.entry.js +1 -1
  6. package/cjs/pn-breakpoints.cjs.entry.js +1 -1
  7. package/cjs/pn-chat-message_2.cjs.entry.js +2 -2
  8. package/cjs/pn-chat.cjs.entry.js +2 -2
  9. package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
  10. package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
  11. package/cjs/pn-find-price-result.cjs.entry.js +1 -1
  12. package/cjs/pn-find-price.cjs.entry.js +2 -2
  13. package/cjs/pn-find-service-and-price-result.cjs.entry.js +1 -1
  14. package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
  15. package/cjs/pn-hero-block-international.cjs.entry.js +1 -1
  16. package/cjs/pn-language-selector_13.cjs.entry.js +1519 -0
  17. package/cjs/pn-language-selector_13.cjs.entry.js.map +1 -0
  18. package/cjs/pn-level-up-modal.cjs.entry.js +1 -1
  19. package/cjs/pn-level-up.cjs.entry.js +2 -2
  20. package/cjs/pn-link-list.cjs.entry.js +1 -1
  21. package/cjs/pn-market-web-components.cjs.js +1 -1
  22. package/cjs/pn-marketweb-header-main-row_2.cjs.entry.js +222 -0
  23. package/cjs/pn-marketweb-header-main-row_2.cjs.entry.js.map +1 -0
  24. package/cjs/pn-marketweb-header-skeleton-loader.cjs.entry.js +23 -0
  25. package/cjs/pn-marketweb-header-skeleton-loader.cjs.entry.js.map +1 -0
  26. package/cjs/pn-marketweb-header-toggle.cjs.entry.js +46 -0
  27. package/cjs/pn-marketweb-header-toggle.cjs.entry.js.map +1 -0
  28. package/cjs/pn-marketweb-header.cjs.entry.js +1043 -0
  29. package/cjs/pn-marketweb-header.cjs.entry.js.map +1 -0
  30. package/cjs/pn-marketweb-icon.cjs.entry.js +1 -1
  31. package/cjs/{pn-marketweb-siteheader-login-linklist.cjs.entry.js → pn-marketweb-siteheader-login-button_2.cjs.entry.js} +44 -2
  32. package/cjs/pn-marketweb-siteheader-login-button_2.cjs.entry.js.map +1 -0
  33. package/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js +1 -1
  34. package/cjs/pn-marketweb-siteheader.cjs.entry.js +7 -199
  35. package/cjs/pn-marketweb-siteheader.cjs.entry.js.map +1 -1
  36. package/cjs/pn-marketweb-table.cjs.entry.js +1 -1
  37. package/cjs/pn-media-block.cjs.entry.js +1 -1
  38. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  39. package/cjs/pn-product-card_3.cjs.entry.js +1 -1
  40. package/cjs/pn-product-pricelist-result.cjs.entry.js +1 -1
  41. package/cjs/pn-product-pricelist.cjs.entry.js +2 -2
  42. package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
  43. package/cjs/pn-product-tile.cjs.entry.js +1 -1
  44. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
  45. package/cjs/pn-profile-modal-profile.cjs.entry.js +2 -2
  46. package/cjs/pn-profile-modal-type.cjs.entry.js +1 -1
  47. package/cjs/pn-profile-modal.cjs.entry.js +1 -1
  48. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  49. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  50. package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
  51. package/cjs/pn-proxio-findprice.cjs.entry.js +3 -3
  52. package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
  53. package/cjs/pn-proxio-productcard_4.cjs.entry.js +3 -3
  54. package/cjs/pn-qr-code-generator.cjs.entry.js +1 -1
  55. package/cjs/pn-sidenav-level.cjs.entry.js +1 -1
  56. package/cjs/pn-sidenav-link.cjs.entry.js +1 -1
  57. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +1 -1
  58. package/cjs/pn-sidenav.cjs.entry.js +1 -1
  59. package/cjs/pn-site-footer_3.cjs.entry.js +3 -3
  60. package/cjs/pn-titletag.cjs.entry.js +1 -1
  61. package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
  62. package/cjs/translations-9510f11c.js +198 -0
  63. package/cjs/translations-9510f11c.js.map +1 -0
  64. package/collection/collection-manifest.json +5 -0
  65. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.css +204 -0
  66. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.js +658 -0
  67. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.js.map +1 -0
  68. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.css +217 -0
  69. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.js +20 -0
  70. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.js.map +1 -0
  71. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.css +115 -0
  72. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.js +520 -0
  73. package/collection/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.js.map +1 -0
  74. package/collection/components/layout-components/pn-marketweb-header/components/shared/pn-marketweb-header-shared.js +37 -0
  75. package/collection/components/layout-components/pn-marketweb-header/components/shared/pn-marketweb-header-shared.js.map +1 -0
  76. package/collection/components/layout-components/pn-marketweb-header/mapper/pn-marketweb-header.mapper.js +109 -0
  77. package/collection/components/layout-components/pn-marketweb-header/mapper/pn-marketweb-header.mapper.js.map +1 -0
  78. package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.css +225 -0
  79. package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.js +916 -0
  80. package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.js.map +1 -0
  81. package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.stories.js +638 -0
  82. package/collection/components/layout-components/pn-marketweb-header/pn-marketweb-header.stories.js.map +1 -0
  83. package/collection/components/layout-components/pn-marketweb-header/services/pn-marketweb-header.service.js +180 -0
  84. package/collection/components/layout-components/pn-marketweb-header/services/pn-marketweb-header.service.js.map +1 -0
  85. package/collection/components/layout-components/pn-marketweb-header/types/pn-marketweb-header.types.js +2 -0
  86. package/collection/components/layout-components/pn-marketweb-header/types/pn-marketweb-header.types.js.map +1 -0
  87. package/collection/components/layout-components/pn-marketweb-header/utils/header-i18n.js +37 -0
  88. package/collection/components/layout-components/pn-marketweb-header/utils/header-i18n.js.map +1 -0
  89. package/collection/components/layout-components/pn-marketweb-header/utils/header-language.js +46 -0
  90. package/collection/components/layout-components/pn-marketweb-header/utils/header-language.js.map +1 -0
  91. package/collection/components/layout-components/pn-marketweb-header/utils/header-menu.js +36 -0
  92. package/collection/components/layout-components/pn-marketweb-header/utils/header-menu.js.map +1 -0
  93. package/collection/components/layout-components/pn-marketweb-header/utils/header-theme.js +48 -0
  94. package/collection/components/layout-components/pn-marketweb-header/utils/header-theme.js.map +1 -0
  95. package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.js +101 -0
  96. package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.js.map +1 -0
  97. package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.storage.js +63 -0
  98. package/collection/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.storage.js.map +1 -0
  99. package/collection/components/layout-components/pn-marketweb-header/utils/header-url.js +91 -0
  100. package/collection/components/layout-components/pn-marketweb-header/utils/header-url.js.map +1 -0
  101. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +1 -1
  102. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +34 -12
  103. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +1 -1
  104. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +36 -15
  105. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +27 -13
  106. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +29 -4
  107. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js.map +1 -1
  108. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.js.map +1 -1
  109. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +1 -1
  110. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +4 -4
  111. package/collection/components/media/pn-media-block/pn-media-block.js +1 -1
  112. package/collection/components/minor/pn-app-banner/pn-app-banner.js +1 -1
  113. package/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.js +1 -1
  114. package/collection/components/minor/pn-swan/pn-swan.js +1 -1
  115. package/collection/components/minor/pn-titletag/pn-titletag.js +1 -1
  116. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.css +25 -12
  117. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +1 -1
  118. package/collection/components/navigation/pn-language-selector/pn-language-selector.css +17 -5
  119. package/collection/components/navigation/pn-language-selector/pn-language-selector.js +22 -3
  120. package/collection/components/navigation/pn-language-selector/pn-language-selector.js.map +1 -1
  121. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.css +37 -17
  122. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +2 -2
  123. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.css +81 -33
  124. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +1 -1
  125. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.css +12 -2
  126. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +1 -1
  127. package/collection/components/navigation/pn-mainnav/pn-mainnav.css +35 -22
  128. package/collection/components/navigation/pn-mainnav/pn-mainnav.js +1 -1
  129. package/collection/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.css +80 -0
  130. package/collection/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.js +147 -0
  131. package/collection/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.js.map +1 -0
  132. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +1 -1
  133. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +1 -1
  134. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +1 -1
  135. package/collection/components/navigation/pn-sidenav/pn-sidenav.js +1 -1
  136. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +1 -1
  137. package/collection/components/navigation/pn-site-footer/pn-site-footer.js +1 -1
  138. package/collection/components/navigation/pn-site-selector/pn-site-selector-item.css +16 -12
  139. package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +1 -1
  140. package/collection/components/navigation/pn-site-selector/pn-site-selector.css +15 -0
  141. package/collection/components/navigation/pn-site-selector/pn-site-selector.js +22 -3
  142. package/collection/components/navigation/pn-site-selector/pn-site-selector.js.map +1 -1
  143. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +1 -1
  144. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +1 -1
  145. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +1 -1
  146. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +2 -2
  147. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +1 -1
  148. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +1 -1
  149. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +1 -1
  150. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +1 -1
  151. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +1 -1
  152. package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js +1 -1
  153. package/collection/components/widgets/pn-chat/pn-chat.js +2 -2
  154. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +1 -1
  155. package/collection/components/widgets/pn-find-price/pn-find-price.js +2 -2
  156. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +1 -1
  157. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +1 -1
  158. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +1 -1
  159. package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js +1 -1
  160. package/collection/components/widgets/pn-level-up/pn-level-up.js +2 -2
  161. package/collection/components/widgets/pn-link-list/pn-link-list.js +1 -1
  162. package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js +1 -1
  163. package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js +1 -1
  164. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +1 -1
  165. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
  166. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +1 -1
  167. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -2
  168. package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +1 -1
  169. package/collection/components/widgets/pn-product-tile/pn-product-tile.js +1 -1
  170. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +1 -1
  171. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +3 -3
  172. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -1
  173. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +1 -1
  174. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +1 -1
  175. package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +1 -1
  176. package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js +1 -1
  177. package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js +1 -1
  178. package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.js +105 -0
  179. package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.js.map +1 -0
  180. package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.js +166 -0
  181. package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.js.map +1 -0
  182. package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.js +2 -0
  183. package/collection/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.js.map +1 -0
  184. package/components/pn-app-banner.js +1 -1
  185. package/components/pn-breakpoints.js +1 -1
  186. package/components/pn-chat-message2.js +1 -1
  187. package/components/pn-chat.js +2 -2
  188. package/components/pn-customernumber-selector-option.js +1 -1
  189. package/components/pn-customernumber-selector.js +1 -1
  190. package/components/pn-find-price-result2.js +1 -1
  191. package/components/pn-find-price.js +2 -2
  192. package/components/pn-find-service-and-price-result2.js +1 -1
  193. package/components/pn-find-service-and-price.js +1 -1
  194. package/components/pn-hero-block-international.js +1 -1
  195. package/components/pn-language-selector-option2.js +2 -2
  196. package/components/pn-language-selector-option2.js.map +1 -1
  197. package/components/pn-language-selector2.js +4 -2
  198. package/components/pn-language-selector2.js.map +1 -1
  199. package/components/pn-level-up-modal2.js +1 -1
  200. package/components/pn-level-up.js +2 -2
  201. package/components/pn-link-list.js +1 -1
  202. package/components/pn-mainnav-level2.js +3 -3
  203. package/components/pn-mainnav-level2.js.map +1 -1
  204. package/components/pn-mainnav-link2.js +2 -2
  205. package/components/pn-mainnav-link2.js.map +1 -1
  206. package/components/pn-mainnav-list2.js +2 -2
  207. package/components/pn-mainnav-list2.js.map +1 -1
  208. package/components/pn-mainnav2.js +2 -2
  209. package/components/pn-mainnav2.js.map +1 -1
  210. package/components/pn-marketweb-carousel2.js +1 -1
  211. package/components/pn-marketweb-header-main-row.d.ts +11 -0
  212. package/components/pn-marketweb-header-main-row.js +8 -0
  213. package/components/pn-marketweb-header-main-row.js.map +1 -0
  214. package/components/pn-marketweb-header-main-row2.js +281 -0
  215. package/components/pn-marketweb-header-main-row2.js.map +1 -0
  216. package/components/pn-marketweb-header-shared.js +192 -0
  217. package/components/pn-marketweb-header-shared.js.map +1 -0
  218. package/components/pn-marketweb-header-skeleton-loader.d.ts +11 -0
  219. package/components/pn-marketweb-header-skeleton-loader.js +37 -0
  220. package/components/pn-marketweb-header-skeleton-loader.js.map +1 -0
  221. package/components/pn-marketweb-header-toggle.d.ts +11 -0
  222. package/components/pn-marketweb-header-toggle.js +8 -0
  223. package/components/pn-marketweb-header-toggle.js.map +1 -0
  224. package/components/pn-marketweb-header-toggle2.js +61 -0
  225. package/components/pn-marketweb-header-toggle2.js.map +1 -0
  226. package/components/pn-marketweb-header-top-row.d.ts +11 -0
  227. package/components/pn-marketweb-header-top-row.js +8 -0
  228. package/components/pn-marketweb-header-top-row.js.map +1 -0
  229. package/components/pn-marketweb-header-top-row2.js +238 -0
  230. package/components/pn-marketweb-header-top-row2.js.map +1 -0
  231. package/components/pn-marketweb-header.d.ts +11 -0
  232. package/components/pn-marketweb-header.js +1206 -0
  233. package/components/pn-marketweb-header.js.map +1 -0
  234. package/components/pn-marketweb-icon.js +1 -1
  235. package/components/pn-marketweb-siteheader-login-button2.js +1 -1
  236. package/components/pn-marketweb-siteheader-login-linklist2.js +1 -1
  237. package/components/pn-marketweb-siteheader-login-linklist2.js.map +1 -1
  238. package/components/pn-marketweb-siteheader-login-mypage-button.js +1 -1
  239. package/components/pn-marketweb-siteheader-login-profileselection2.js +1 -1
  240. package/components/pn-marketweb-siteheader-login-profileselection2.js.map +1 -1
  241. package/components/pn-marketweb-siteheader-login2.js +4 -2
  242. package/components/pn-marketweb-siteheader-login2.js.map +1 -1
  243. package/components/pn-marketweb-siteheader-unified-login2.js +1 -1
  244. package/components/pn-marketweb-siteheader.js +5 -197
  245. package/components/pn-marketweb-siteheader.js.map +1 -1
  246. package/components/pn-marketweb-table.js +1 -1
  247. package/components/pn-media-block.js +1 -1
  248. package/components/pn-pex-pricefinder.js +1 -1
  249. package/components/pn-product-card2.js +1 -1
  250. package/components/pn-product-pricelist-result.js +1 -1
  251. package/components/pn-product-pricelist.js +2 -2
  252. package/components/pn-product-tile-info2.js +1 -1
  253. package/components/pn-product-tile.js +1 -1
  254. package/components/pn-profile-modal-customernumber.js +1 -1
  255. package/components/pn-profile-modal-profile.js +2 -2
  256. package/components/pn-profile-modal-type.js +1 -1
  257. package/components/pn-profile-modal.js +1 -1
  258. package/components/pn-profile-selector-option.js +1 -1
  259. package/components/pn-profile-selector.js +1 -1
  260. package/components/pn-proxio-findprice-result2.js +2 -2
  261. package/components/pn-proxio-findprice.js +3 -3
  262. package/components/pn-proxio-pricegroup.js +2 -2
  263. package/components/pn-proxio-productcard-description2.js +1 -1
  264. package/components/pn-proxio-productcard-information2.js +1 -1
  265. package/components/pn-proxio-productcard2.js +1 -1
  266. package/components/pn-qr-code-generator2.js +1 -1
  267. package/components/pn-sidenav-level.js +1 -1
  268. package/components/pn-sidenav-link.js +1 -1
  269. package/components/pn-sidenav-togglebutton.js +1 -1
  270. package/components/pn-sidenav.js +1 -1
  271. package/components/pn-site-footer-col2.js +1 -1
  272. package/components/pn-site-footer2.js +1 -1
  273. package/components/pn-site-selector-item2.js +2 -2
  274. package/components/pn-site-selector-item2.js.map +1 -1
  275. package/components/pn-site-selector2.js +4 -2
  276. package/components/pn-site-selector2.js.map +1 -1
  277. package/components/pn-swan2.js +1 -1
  278. package/components/pn-titletag2.js +1 -1
  279. package/components/pn-usp-promoter.js +1 -1
  280. package/components/translations.js +189 -14
  281. package/components/translations.js.map +1 -1
  282. package/components/translations2.js +21 -0
  283. package/components/translations2.js.map +1 -0
  284. package/esm/header-theme-d09b64c7.js +234 -0
  285. package/esm/header-theme-d09b64c7.js.map +1 -0
  286. package/esm/index-c0a4d8bd.js +24 -16
  287. package/esm/loader.js +1 -1
  288. package/esm/pn-app-banner.entry.js +1 -1
  289. package/esm/pn-breakpoints.entry.js +1 -1
  290. package/esm/pn-chat-message_2.entry.js +2 -2
  291. package/esm/pn-chat.entry.js +2 -2
  292. package/esm/pn-customernumber-selector-option.entry.js +1 -1
  293. package/esm/pn-customernumber-selector.entry.js +1 -1
  294. package/esm/pn-find-price-result.entry.js +1 -1
  295. package/esm/pn-find-price.entry.js +2 -2
  296. package/esm/pn-find-service-and-price-result.entry.js +1 -1
  297. package/esm/pn-find-service-and-price.entry.js +1 -1
  298. package/esm/pn-hero-block-international.entry.js +1 -1
  299. package/esm/{pn-language-selector_9.entry.js → pn-language-selector_13.entry.js} +381 -22
  300. package/esm/pn-language-selector_13.entry.js.map +1 -0
  301. package/esm/pn-level-up-modal.entry.js +1 -1
  302. package/esm/pn-level-up.entry.js +2 -2
  303. package/esm/pn-link-list.entry.js +1 -1
  304. package/esm/pn-market-web-components.js +1 -1
  305. package/esm/pn-marketweb-header-main-row_2.entry.js +217 -0
  306. package/esm/pn-marketweb-header-main-row_2.entry.js.map +1 -0
  307. package/esm/pn-marketweb-header-skeleton-loader.entry.js +19 -0
  308. package/esm/pn-marketweb-header-skeleton-loader.entry.js.map +1 -0
  309. package/esm/pn-marketweb-header-toggle.entry.js +42 -0
  310. package/esm/pn-marketweb-header-toggle.entry.js.map +1 -0
  311. package/esm/pn-marketweb-header.entry.js +1039 -0
  312. package/esm/pn-marketweb-header.entry.js.map +1 -0
  313. package/esm/pn-marketweb-icon.entry.js +1 -1
  314. package/esm/{pn-marketweb-siteheader-login-linklist.entry.js → pn-marketweb-siteheader-login-button_2.entry.js} +44 -3
  315. package/esm/pn-marketweb-siteheader-login-button_2.entry.js.map +1 -0
  316. package/esm/pn-marketweb-siteheader-login-mypage-button.entry.js +1 -1
  317. package/esm/pn-marketweb-siteheader.entry.js +5 -197
  318. package/esm/pn-marketweb-siteheader.entry.js.map +1 -1
  319. package/esm/pn-marketweb-table.entry.js +1 -1
  320. package/esm/pn-media-block.entry.js +1 -1
  321. package/esm/pn-pex-pricefinder.entry.js +1 -1
  322. package/esm/pn-product-card_3.entry.js +1 -1
  323. package/esm/pn-product-pricelist-result.entry.js +1 -1
  324. package/esm/pn-product-pricelist.entry.js +2 -2
  325. package/esm/pn-product-tile-info_2.entry.js +1 -1
  326. package/esm/pn-product-tile.entry.js +1 -1
  327. package/esm/pn-profile-modal-customernumber.entry.js +1 -1
  328. package/esm/pn-profile-modal-profile.entry.js +2 -2
  329. package/esm/pn-profile-modal-type.entry.js +1 -1
  330. package/esm/pn-profile-modal.entry.js +1 -1
  331. package/esm/pn-profile-selector-option.entry.js +1 -1
  332. package/esm/pn-profile-selector.entry.js +1 -1
  333. package/esm/pn-proxio-findprice-result.entry.js +1 -1
  334. package/esm/pn-proxio-findprice.entry.js +3 -3
  335. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  336. package/esm/pn-proxio-productcard_4.entry.js +3 -3
  337. package/esm/pn-qr-code-generator.entry.js +1 -1
  338. package/esm/pn-sidenav-level.entry.js +1 -1
  339. package/esm/pn-sidenav-link.entry.js +1 -1
  340. package/esm/pn-sidenav-togglebutton.entry.js +1 -1
  341. package/esm/pn-sidenav.entry.js +1 -1
  342. package/esm/pn-site-footer_3.entry.js +3 -3
  343. package/esm/pn-titletag.entry.js +1 -1
  344. package/esm/pn-usp-promoter.entry.js +1 -1
  345. package/esm/translations-d2f5804e.js +196 -0
  346. package/esm/translations-d2f5804e.js.map +1 -0
  347. package/package.json +13 -6
  348. package/pn-market-web-components/{p-4a164ef8.entry.js → p-03728b0b.entry.js} +2 -2
  349. package/pn-market-web-components/p-04f51418.js +2 -0
  350. package/pn-market-web-components/p-04f51418.js.map +1 -0
  351. package/pn-market-web-components/{p-e43a36e0.entry.js → p-067c1c2f.entry.js} +2 -2
  352. package/pn-market-web-components/{p-2616cdc1.entry.js → p-191c8cfc.entry.js} +2 -2
  353. package/pn-market-web-components/{p-ca003c1f.entry.js → p-1a91c313.entry.js} +2 -2
  354. package/pn-market-web-components/{p-ab1e3dc2.entry.js → p-1f8304be.entry.js} +2 -2
  355. package/pn-market-web-components/{p-a3f601cb.entry.js → p-24ffac0a.entry.js} +2 -2
  356. package/pn-market-web-components/p-3239c36b.entry.js +2 -0
  357. package/pn-market-web-components/p-3239c36b.entry.js.map +1 -0
  358. package/pn-market-web-components/{p-12cafd55.entry.js → p-3aa74418.entry.js} +2 -2
  359. package/pn-market-web-components/p-3d27faee.entry.js +2 -0
  360. package/pn-market-web-components/{p-9d0ca27b.entry.js.map → p-3d27faee.entry.js.map} +1 -1
  361. package/pn-market-web-components/p-3e25f431.entry.js +2 -0
  362. package/pn-market-web-components/p-3e25f431.entry.js.map +1 -0
  363. package/pn-market-web-components/{p-64f6691d.entry.js → p-42da7c5f.entry.js} +2 -2
  364. package/pn-market-web-components/{p-f0d423d0.entry.js → p-43748ca2.entry.js} +2 -2
  365. package/pn-market-web-components/{p-1c644b91.entry.js → p-466958a8.entry.js} +2 -2
  366. package/pn-market-web-components/{p-150da889.entry.js → p-4ab53d5d.entry.js} +2 -2
  367. package/pn-market-web-components/{p-118fe47d.entry.js → p-4d595345.entry.js} +2 -2
  368. package/pn-market-web-components/{p-0f6f715b.entry.js → p-4dac1980.entry.js} +2 -2
  369. package/pn-market-web-components/{p-a13f1f73.entry.js → p-4fcce83d.entry.js} +2 -2
  370. package/pn-market-web-components/{p-89fbca3b.entry.js → p-5a51d0b0.entry.js} +2 -2
  371. package/pn-market-web-components/{p-f4d2d0d3.entry.js → p-61346425.entry.js} +2 -2
  372. package/pn-market-web-components/{p-6e693269.entry.js → p-6b557670.entry.js} +2 -2
  373. package/pn-market-web-components/{p-e6d6a752.entry.js → p-70a71854.entry.js} +2 -2
  374. package/pn-market-web-components/p-75311d67.js +2 -0
  375. package/pn-market-web-components/p-75311d67.js.map +1 -0
  376. package/pn-market-web-components/p-756d8d95.entry.js +2 -0
  377. package/pn-market-web-components/p-756d8d95.entry.js.map +1 -0
  378. package/pn-market-web-components/{p-c0315c45.entry.js → p-76fb0c21.entry.js} +2 -2
  379. package/pn-market-web-components/{p-b2b2bae0.entry.js → p-81210644.entry.js} +2 -2
  380. package/pn-market-web-components/p-81e4d75b.entry.js +2 -0
  381. package/pn-market-web-components/p-81e4d75b.entry.js.map +1 -0
  382. package/pn-market-web-components/{p-d0f27361.entry.js → p-8382794b.entry.js} +2 -2
  383. package/pn-market-web-components/{p-8f25176b.entry.js → p-8519e39e.entry.js} +2 -2
  384. package/pn-market-web-components/p-8c26c1f2.entry.js +2 -0
  385. package/pn-market-web-components/p-8c26c1f2.entry.js.map +1 -0
  386. package/pn-market-web-components/{p-461c8792.entry.js → p-92b6477c.entry.js} +2 -2
  387. package/pn-market-web-components/{p-0d4d9d90.entry.js → p-9eab8192.entry.js} +2 -2
  388. package/pn-market-web-components/{p-40e632cc.entry.js → p-a3beee11.entry.js} +2 -2
  389. package/pn-market-web-components/{p-01fbf1ce.entry.js → p-a6935dc2.entry.js} +2 -2
  390. package/pn-market-web-components/{p-af646091.entry.js → p-a6dd3e4f.entry.js} +2 -2
  391. package/pn-market-web-components/{p-6d77e747.entry.js → p-af89c95a.entry.js} +2 -2
  392. package/pn-market-web-components/p-b318ff19.entry.js +2 -0
  393. package/pn-market-web-components/{p-0700cb4c.entry.js.map → p-b318ff19.entry.js.map} +1 -1
  394. package/pn-market-web-components/{p-c89f3d6b.entry.js → p-ba14b0ef.entry.js} +2 -2
  395. package/pn-market-web-components/{p-c7965104.entry.js → p-ba680948.entry.js} +2 -2
  396. package/pn-market-web-components/{p-11c6e458.entry.js → p-ba75bfdb.entry.js} +2 -2
  397. package/pn-market-web-components/{p-4149e715.entry.js → p-c186ec41.entry.js} +2 -2
  398. package/pn-market-web-components/{p-66c0c8dc.entry.js → p-c38707f9.entry.js} +2 -2
  399. package/pn-market-web-components/{p-671a8129.entry.js → p-c89cdd5a.entry.js} +2 -2
  400. package/pn-market-web-components/{p-4d848e18.entry.js → p-e8cd1608.entry.js} +2 -2
  401. package/pn-market-web-components/{p-4517a3d4.entry.js → p-ef090656.entry.js} +2 -2
  402. package/pn-market-web-components/p-f23ed5d2.entry.js +2 -0
  403. package/pn-market-web-components/p-f23ed5d2.entry.js.map +1 -0
  404. package/pn-market-web-components/{p-bd8ec517.entry.js → p-f3b4c13d.entry.js} +2 -2
  405. package/pn-market-web-components/{p-ff38b9a5.entry.js → p-f710445f.entry.js} +2 -2
  406. package/pn-market-web-components/{p-2e585ed5.entry.js → p-fcefe4a4.entry.js} +2 -2
  407. package/pn-market-web-components/p-fded22b7.entry.js +2 -0
  408. package/pn-market-web-components/p-fded22b7.entry.js.map +1 -0
  409. package/pn-market-web-components/{p-32bd2ff8.entry.js → p-ff6118f8.entry.js} +2 -2
  410. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  411. package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
  412. package/types/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-main-row.d.ts +40 -0
  413. package/types/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-skeleton-loader.d.ts +3 -0
  414. package/types/components/layout-components/pn-marketweb-header/components/pn-marketweb-header-top-row.d.ts +30 -0
  415. package/types/components/layout-components/pn-marketweb-header/components/shared/pn-marketweb-header-shared.d.ts +48 -0
  416. package/types/components/layout-components/pn-marketweb-header/mapper/pn-marketweb-header.mapper.d.ts +34 -0
  417. package/types/components/layout-components/pn-marketweb-header/pn-marketweb-header.d.ts +121 -0
  418. package/types/components/layout-components/pn-marketweb-header/pn-marketweb-header.stories.d.ts +99 -0
  419. package/types/components/layout-components/pn-marketweb-header/services/pn-marketweb-header.service.d.ts +108 -0
  420. package/types/components/layout-components/pn-marketweb-header/types/pn-marketweb-header.types.d.ts +103 -0
  421. package/types/components/layout-components/pn-marketweb-header/utils/header-i18n.d.ts +16 -0
  422. package/types/components/layout-components/pn-marketweb-header/utils/header-language.d.ts +20 -0
  423. package/types/components/layout-components/pn-marketweb-header/utils/header-menu.d.ts +16 -0
  424. package/types/components/layout-components/pn-marketweb-header/utils/header-theme.d.ts +6 -0
  425. package/types/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.d.ts +49 -0
  426. package/types/components/layout-components/pn-marketweb-header/utils/header-toggle-menu.storage.d.ts +25 -0
  427. package/types/components/layout-components/pn-marketweb-header/utils/header-url.d.ts +41 -0
  428. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +2 -0
  429. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +1 -0
  430. package/types/components/navigation/pn-language-selector/pn-language-selector.d.ts +1 -0
  431. package/types/components/navigation/pn-marketweb-header-toggle/pn-marketweb-header-toggle.d.ts +25 -0
  432. package/types/components/navigation/pn-site-selector/pn-site-selector.d.ts +1 -0
  433. package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
  434. package/types/components.d.ts +532 -2
  435. package/types/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.d.ts +7 -0
  436. package/types/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.d.ts +24 -0
  437. package/types/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.d.ts +16 -0
  438. package/umd/pn-marketweb-init.js +1 -1
  439. package/umd/pn-marketweb-salesforce.js +1 -1
  440. package/vscode-data.json +421 -0
  441. package/cjs/pn-language-selector_9.cjs.entry.js +0 -1156
  442. package/cjs/pn-language-selector_9.cjs.entry.js.map +0 -1
  443. package/cjs/pn-mainnav-link.cjs.entry.js +0 -45
  444. package/cjs/pn-mainnav-link.cjs.entry.js.map +0 -1
  445. package/cjs/pn-mainnav-store-13aaa243.js +0 -22
  446. package/cjs/pn-mainnav-store-13aaa243.js.map +0 -1
  447. package/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js +0 -366
  448. package/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js.map +0 -1
  449. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js.map +0 -1
  450. package/esm/pn-language-selector_9.entry.js.map +0 -1
  451. package/esm/pn-mainnav-link.entry.js +0 -41
  452. package/esm/pn-mainnav-link.entry.js.map +0 -1
  453. package/esm/pn-mainnav-store-c98d831e.js +0 -19
  454. package/esm/pn-mainnav-store-c98d831e.js.map +0 -1
  455. package/esm/pn-marketweb-siteheader-login-button_4.entry.js +0 -359
  456. package/esm/pn-marketweb-siteheader-login-button_4.entry.js.map +0 -1
  457. package/esm/pn-marketweb-siteheader-login-linklist.entry.js.map +0 -1
  458. package/pn-market-web-components/p-022780ab.entry.js +0 -2
  459. package/pn-market-web-components/p-022780ab.entry.js.map +0 -1
  460. package/pn-market-web-components/p-0700cb4c.entry.js +0 -2
  461. package/pn-market-web-components/p-4bc6d49f.entry.js +0 -2
  462. package/pn-market-web-components/p-4bc6d49f.entry.js.map +0 -1
  463. package/pn-market-web-components/p-4c8bda8f.entry.js +0 -2
  464. package/pn-market-web-components/p-4c8bda8f.entry.js.map +0 -1
  465. package/pn-market-web-components/p-5090bb1d.entry.js +0 -2
  466. package/pn-market-web-components/p-5090bb1d.entry.js.map +0 -1
  467. package/pn-market-web-components/p-9d0ca27b.entry.js +0 -2
  468. package/pn-market-web-components/p-a30de538.entry.js +0 -2
  469. package/pn-market-web-components/p-a30de538.entry.js.map +0 -1
  470. package/pn-market-web-components/p-e3b2486a.js +0 -2
  471. package/pn-market-web-components/p-e3b2486a.js.map +0 -1
  472. /package/pn-market-web-components/{p-4a164ef8.entry.js.map → p-03728b0b.entry.js.map} +0 -0
  473. /package/pn-market-web-components/{p-e43a36e0.entry.js.map → p-067c1c2f.entry.js.map} +0 -0
  474. /package/pn-market-web-components/{p-2616cdc1.entry.js.map → p-191c8cfc.entry.js.map} +0 -0
  475. /package/pn-market-web-components/{p-ca003c1f.entry.js.map → p-1a91c313.entry.js.map} +0 -0
  476. /package/pn-market-web-components/{p-ab1e3dc2.entry.js.map → p-1f8304be.entry.js.map} +0 -0
  477. /package/pn-market-web-components/{p-a3f601cb.entry.js.map → p-24ffac0a.entry.js.map} +0 -0
  478. /package/pn-market-web-components/{p-12cafd55.entry.js.map → p-3aa74418.entry.js.map} +0 -0
  479. /package/pn-market-web-components/{p-64f6691d.entry.js.map → p-42da7c5f.entry.js.map} +0 -0
  480. /package/pn-market-web-components/{p-f0d423d0.entry.js.map → p-43748ca2.entry.js.map} +0 -0
  481. /package/pn-market-web-components/{p-1c644b91.entry.js.map → p-466958a8.entry.js.map} +0 -0
  482. /package/pn-market-web-components/{p-150da889.entry.js.map → p-4ab53d5d.entry.js.map} +0 -0
  483. /package/pn-market-web-components/{p-118fe47d.entry.js.map → p-4d595345.entry.js.map} +0 -0
  484. /package/pn-market-web-components/{p-0f6f715b.entry.js.map → p-4dac1980.entry.js.map} +0 -0
  485. /package/pn-market-web-components/{p-a13f1f73.entry.js.map → p-4fcce83d.entry.js.map} +0 -0
  486. /package/pn-market-web-components/{p-89fbca3b.entry.js.map → p-5a51d0b0.entry.js.map} +0 -0
  487. /package/pn-market-web-components/{p-f4d2d0d3.entry.js.map → p-61346425.entry.js.map} +0 -0
  488. /package/pn-market-web-components/{p-6e693269.entry.js.map → p-6b557670.entry.js.map} +0 -0
  489. /package/pn-market-web-components/{p-e6d6a752.entry.js.map → p-70a71854.entry.js.map} +0 -0
  490. /package/pn-market-web-components/{p-c0315c45.entry.js.map → p-76fb0c21.entry.js.map} +0 -0
  491. /package/pn-market-web-components/{p-b2b2bae0.entry.js.map → p-81210644.entry.js.map} +0 -0
  492. /package/pn-market-web-components/{p-d0f27361.entry.js.map → p-8382794b.entry.js.map} +0 -0
  493. /package/pn-market-web-components/{p-8f25176b.entry.js.map → p-8519e39e.entry.js.map} +0 -0
  494. /package/pn-market-web-components/{p-461c8792.entry.js.map → p-92b6477c.entry.js.map} +0 -0
  495. /package/pn-market-web-components/{p-0d4d9d90.entry.js.map → p-9eab8192.entry.js.map} +0 -0
  496. /package/pn-market-web-components/{p-40e632cc.entry.js.map → p-a3beee11.entry.js.map} +0 -0
  497. /package/pn-market-web-components/{p-01fbf1ce.entry.js.map → p-a6935dc2.entry.js.map} +0 -0
  498. /package/pn-market-web-components/{p-af646091.entry.js.map → p-a6dd3e4f.entry.js.map} +0 -0
  499. /package/pn-market-web-components/{p-6d77e747.entry.js.map → p-af89c95a.entry.js.map} +0 -0
  500. /package/pn-market-web-components/{p-c89f3d6b.entry.js.map → p-ba14b0ef.entry.js.map} +0 -0
  501. /package/pn-market-web-components/{p-c7965104.entry.js.map → p-ba680948.entry.js.map} +0 -0
  502. /package/pn-market-web-components/{p-11c6e458.entry.js.map → p-ba75bfdb.entry.js.map} +0 -0
  503. /package/pn-market-web-components/{p-4149e715.entry.js.map → p-c186ec41.entry.js.map} +0 -0
  504. /package/pn-market-web-components/{p-66c0c8dc.entry.js.map → p-c38707f9.entry.js.map} +0 -0
  505. /package/pn-market-web-components/{p-671a8129.entry.js.map → p-c89cdd5a.entry.js.map} +0 -0
  506. /package/pn-market-web-components/{p-4d848e18.entry.js.map → p-e8cd1608.entry.js.map} +0 -0
  507. /package/pn-market-web-components/{p-4517a3d4.entry.js.map → p-ef090656.entry.js.map} +0 -0
  508. /package/pn-market-web-components/{p-bd8ec517.entry.js.map → p-f3b4c13d.entry.js.map} +0 -0
  509. /package/pn-market-web-components/{p-ff38b9a5.entry.js.map → p-f710445f.entry.js.map} +0 -0
  510. /package/pn-market-web-components/{p-2e585ed5.entry.js.map → p-fcefe4a4.entry.js.map} +0 -0
  511. /package/pn-market-web-components/{p-32bd2ff8.entry.js.map → p-ff6118f8.entry.js.map} +0 -0
@@ -0,0 +1,105 @@
1
+ export const ALLOWED_LANGUAGES = [
2
+ 'sv',
3
+ 'da',
4
+ 'fi',
5
+ 'no',
6
+ 'en',
7
+ 'de',
8
+ 'zh',
9
+ 'fr',
10
+ 'es',
11
+ 'it',
12
+ 'nl',
13
+ ];
14
+ export const ALLOWED_MARKETS = [
15
+ 'se',
16
+ 'dk',
17
+ 'fi',
18
+ 'no',
19
+ 'com',
20
+ 'de',
21
+ 'tpl',
22
+ 'group',
23
+ ];
24
+ export const WWW_MARKETS = [
25
+ 'se',
26
+ 'dk',
27
+ 'fi',
28
+ 'no',
29
+ 'de',
30
+ 'com',
31
+ ];
32
+ export const DEVELOPMENT_DOMAINS = [
33
+ 'localhost',
34
+ '.local',
35
+ 'local.',
36
+ '.dev',
37
+ 'dev.',
38
+ ];
39
+ export const MARKETS = {
40
+ se: {
41
+ fallbackLanguage: 'sv',
42
+ integration: 'se-inte.postnord.com',
43
+ preproduction: 'se-prep.postnord.com',
44
+ production: 'se-prod.postnord.com',
45
+ live: 'www.postnord.se',
46
+ },
47
+ dk: {
48
+ fallbackLanguage: 'da',
49
+ integration: 'dk-inte.postnord.com',
50
+ preproduction: 'dk-prep.postnord.com',
51
+ production: 'dk-prod.postnord.com',
52
+ live: 'www.postnord.dk',
53
+ },
54
+ fi: {
55
+ fallbackLanguage: 'fi',
56
+ integration: 'fi-inte.postnord.com',
57
+ preproduction: 'fi-prep.postnord.com',
58
+ production: 'fi-prod.postnord.com',
59
+ live: 'www.postnord.fi',
60
+ },
61
+ no: {
62
+ fallbackLanguage: 'no',
63
+ integration: 'no-inte.postnord.com',
64
+ preproduction: 'no-prep.postnord.com',
65
+ production: 'no-prod.postnord.com',
66
+ live: 'www.postnord.no',
67
+ },
68
+ com: {
69
+ fallbackLanguage: 'en',
70
+ integration: 'com-inte.postnord.com',
71
+ preproduction: 'com-prep.postnord.com',
72
+ production: 'com-prod.postnord.com',
73
+ live: 'www.postnord.com',
74
+ },
75
+ de: {
76
+ fallbackLanguage: 'en',
77
+ integration: 'de-inte.postnord.com',
78
+ preproduction: 'de-prep.postnord.com',
79
+ production: 'de-prod.postnord.com',
80
+ live: 'www.postnord.de',
81
+ },
82
+ tpl: {
83
+ fallbackLanguage: 'sv',
84
+ integration: 'tpl-inte.postnord.com',
85
+ preproduction: 'tpl-prep.postnord.com',
86
+ production: 'tpl-prod.postnord.com',
87
+ live: 'www.tpl.postnord.com',
88
+ },
89
+ group: {
90
+ fallbackLanguage: 'en',
91
+ integration: 'group-inte.postnord.com',
92
+ preproduction: 'group-prep.postnord.com',
93
+ production: 'group-prod.postnord.com',
94
+ live: 'group.postnord.com',
95
+ },
96
+ };
97
+ export const ENVIRONMENT_ALIASES = {
98
+ integration: 'integration',
99
+ inte: 'integration',
100
+ preproduction: 'preproduction',
101
+ prep: 'preproduction',
102
+ production: 'production',
103
+ prod: 'production',
104
+ };
105
+ //# sourceMappingURL=pn-refined-marketweb-context.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pn-refined-marketweb-context.constants.js","sourceRoot":"","sources":["../../../src/services/pn-refined-marketweb-context/pn-refined-marketweb-context.constants.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACE,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAiB;IACzC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAiB;IACrC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,MAAM;CACA,CAAC;AAEX,MAAM,CAAC,MAAM,OAAO,GAAqC;IACrD,EAAE,EAAE;QACA,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,sBAAsB;QACnC,aAAa,EAAE,sBAAsB;QACrC,UAAU,EAAE,sBAAsB;QAClC,IAAI,EAAE,iBAAiB;KAC1B;IACD,EAAE,EAAE;QACA,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,sBAAsB;QACnC,aAAa,EAAE,sBAAsB;QACrC,UAAU,EAAE,sBAAsB;QAClC,IAAI,EAAE,iBAAiB;KAC1B;IACD,EAAE,EAAE;QACA,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,sBAAsB;QACnC,aAAa,EAAE,sBAAsB;QACrC,UAAU,EAAE,sBAAsB;QAClC,IAAI,EAAE,iBAAiB;KAC1B;IACD,EAAE,EAAE;QACA,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,sBAAsB;QACnC,aAAa,EAAE,sBAAsB;QACrC,UAAU,EAAE,sBAAsB;QAClC,IAAI,EAAE,iBAAiB;KAC1B;IACD,GAAG,EAAE;QACD,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,uBAAuB;QACtC,UAAU,EAAE,uBAAuB;QACnC,IAAI,EAAE,kBAAkB;KAC3B;IACD,EAAE,EAAE;QACA,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,sBAAsB;QACnC,aAAa,EAAE,sBAAsB;QACrC,UAAU,EAAE,sBAAsB;QAClC,IAAI,EAAE,iBAAiB;KAC1B;IACD,GAAG,EAAE;QACD,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,uBAAuB;QACtC,UAAU,EAAE,uBAAuB;QACnC,IAAI,EAAE,sBAAsB;KAC/B;IACD,KAAK,EAAE;QACH,gBAAgB,EAAE,IAAI;QACtB,WAAW,EAAE,yBAAyB;QACtC,aAAa,EAAE,yBAAyB;QACxC,UAAU,EAAE,yBAAyB;QACrC,IAAI,EAAE,oBAAoB;KAC7B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAoC;IAChE,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,aAAa;IACnB,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,YAAY;CACrB,CAAC","sourcesContent":["import type {\n EnvironmentName,\n MarketConfig,\n MarketName,\n} from './pn-refined-marketweb-context.types';\n\nexport const ALLOWED_LANGUAGES = [\n 'sv',\n 'da',\n 'fi',\n 'no',\n 'en',\n 'de',\n 'zh',\n 'fr',\n 'es',\n 'it',\n 'nl',\n] as const;\n\nexport const ALLOWED_MARKETS: MarketName[] = [\n 'se',\n 'dk',\n 'fi',\n 'no',\n 'com',\n 'de',\n 'tpl',\n 'group',\n];\n\nexport const WWW_MARKETS: MarketName[] = [\n 'se',\n 'dk',\n 'fi',\n 'no',\n 'de',\n 'com',\n];\n\nexport const DEVELOPMENT_DOMAINS = [\n 'localhost',\n '.local',\n 'local.',\n '.dev',\n 'dev.',\n] as const;\n\nexport const MARKETS: Record<MarketName, MarketConfig> = {\n se: {\n fallbackLanguage: 'sv',\n integration: 'se-inte.postnord.com',\n preproduction: 'se-prep.postnord.com',\n production: 'se-prod.postnord.com',\n live: 'www.postnord.se',\n },\n dk: {\n fallbackLanguage: 'da',\n integration: 'dk-inte.postnord.com',\n preproduction: 'dk-prep.postnord.com',\n production: 'dk-prod.postnord.com',\n live: 'www.postnord.dk',\n },\n fi: {\n fallbackLanguage: 'fi',\n integration: 'fi-inte.postnord.com',\n preproduction: 'fi-prep.postnord.com',\n production: 'fi-prod.postnord.com',\n live: 'www.postnord.fi',\n },\n no: {\n fallbackLanguage: 'no',\n integration: 'no-inte.postnord.com',\n preproduction: 'no-prep.postnord.com',\n production: 'no-prod.postnord.com',\n live: 'www.postnord.no',\n },\n com: {\n fallbackLanguage: 'en',\n integration: 'com-inte.postnord.com',\n preproduction: 'com-prep.postnord.com',\n production: 'com-prod.postnord.com',\n live: 'www.postnord.com',\n },\n de: {\n fallbackLanguage: 'en',\n integration: 'de-inte.postnord.com',\n preproduction: 'de-prep.postnord.com',\n production: 'de-prod.postnord.com',\n live: 'www.postnord.de',\n },\n tpl: {\n fallbackLanguage: 'sv',\n integration: 'tpl-inte.postnord.com',\n preproduction: 'tpl-prep.postnord.com',\n production: 'tpl-prod.postnord.com',\n live: 'www.tpl.postnord.com',\n },\n group: {\n fallbackLanguage: 'en',\n integration: 'group-inte.postnord.com',\n preproduction: 'group-prep.postnord.com',\n production: 'group-prod.postnord.com',\n live: 'group.postnord.com',\n },\n};\n\nexport const ENVIRONMENT_ALIASES: Record<string, EnvironmentName> = {\n integration: 'integration',\n inte: 'integration',\n preproduction: 'preproduction',\n prep: 'preproduction',\n production: 'production',\n prod: 'production',\n};"]}
@@ -0,0 +1,166 @@
1
+ import { ALLOWED_LANGUAGES, ALLOWED_MARKETS, DEVELOPMENT_DOMAINS, ENVIRONMENT_ALIASES, MARKETS, WWW_MARKETS, } from "./pn-refined-marketweb-context.constants";
2
+ export class RefinedMarketWebContextService {
3
+ href;
4
+ doc;
5
+ constructor(options) {
6
+ this.href = options?.href ?? window.location.href;
7
+ this.doc = options?.doc ?? document;
8
+ }
9
+ resolve() {
10
+ const url = new URL(this.href);
11
+ const market = this.resolveMarket(url);
12
+ const environment = this.resolveEnvironment(url);
13
+ const language = this.resolveLanguage(market);
14
+ return {
15
+ market,
16
+ environment,
17
+ language,
18
+ };
19
+ }
20
+ getMarket() {
21
+ return this.resolve().market;
22
+ }
23
+ getEnvironmentName() {
24
+ return this.resolve().environment;
25
+ }
26
+ getLanguage() {
27
+ return this.resolve().language;
28
+ }
29
+ isDevEnvironment() {
30
+ const hostname = new URL(this.href).hostname.toLowerCase();
31
+ return DEVELOPMENT_DOMAINS.some(fragment => hostname.includes(fragment));
32
+ }
33
+ getEndpoint(environment, market) {
34
+ if (environment === 'localhost') {
35
+ return '';
36
+ }
37
+ const currentHostname = new URL(this.href).hostname.toLowerCase();
38
+ const config = MARKETS[market];
39
+ if (environment === 'production' && currentHostname === config.live.toLowerCase()) {
40
+ return `https://${config.live}`;
41
+ }
42
+ if (environment !== 'production' && currentHostname === config[environment].toLowerCase()) {
43
+ return `https://${config[environment]}`;
44
+ }
45
+ if (environment === 'production') {
46
+ if (WWW_MARKETS.includes(market)) {
47
+ return `https://${config.live}`;
48
+ }
49
+ if (market === 'tpl') {
50
+ return 'https://www.tpl.postnord.com';
51
+ }
52
+ return `https://${config.live}`;
53
+ }
54
+ return `https://${config[environment]}`;
55
+ }
56
+ resolveEnvironment(url) {
57
+ const hostname = url.hostname.toLowerCase();
58
+ const matchedAlias = Object.keys(ENVIRONMENT_ALIASES).find(alias => hostname.includes(`-${alias}`));
59
+ if (matchedAlias) {
60
+ return ENVIRONMENT_ALIASES[matchedAlias];
61
+ }
62
+ const isKnownLiveHost = Object.values(MARKETS).some(config => config.live.toLowerCase() === hostname);
63
+ if (isKnownLiveHost || hostname.includes('www.')) {
64
+ return 'production';
65
+ }
66
+ return 'integration';
67
+ }
68
+ resolveMarket(url) {
69
+ const hostname = url.hostname.toLowerCase();
70
+ const fromLiveDomain = this.resolveMarketFromLiveDomain(hostname);
71
+ if (fromLiveDomain)
72
+ return fromLiveDomain;
73
+ const fromEnvironmentHost = this.resolveMarketFromEnvironmentHost(hostname);
74
+ if (fromEnvironmentHost)
75
+ return fromEnvironmentHost;
76
+ const fromPostnordSubdomain = this.resolveMarketFromPostnordSubdomain(hostname);
77
+ if (fromPostnordSubdomain)
78
+ return fromPostnordSubdomain;
79
+ if (this.isDevEnvironment()) {
80
+ const fromDevUrl = this.resolveMarketFromDevelopmentUrl(url);
81
+ if (fromDevUrl)
82
+ return fromDevUrl;
83
+ }
84
+ return 'se';
85
+ }
86
+ resolveLanguage(market) {
87
+ const candidates = [
88
+ this.doc?.documentElement?.getAttribute('lang'),
89
+ this.doc?.querySelector('meta[http-equiv="content-language"]')?.getAttribute('content'),
90
+ this.doc?.querySelector('meta[property="og:locale"]')?.getAttribute('content'),
91
+ this.doc?.querySelector('[lang]')?.getAttribute('lang'),
92
+ ];
93
+ for (const candidate of candidates) {
94
+ const normalized = this.normalizeLanguage(candidate);
95
+ if (normalized) {
96
+ return normalized;
97
+ }
98
+ }
99
+ return MARKETS[market].fallbackLanguage;
100
+ }
101
+ normalizeLanguage(value) {
102
+ if (!value) {
103
+ return undefined;
104
+ }
105
+ const normalized = value.trim().toLowerCase().split(/[-_]/)[0];
106
+ return ALLOWED_LANGUAGES.includes(normalized)
107
+ ? normalized
108
+ : undefined;
109
+ }
110
+ resolveMarketFromLiveDomain(hostname) {
111
+ const matched = Object.entries(MARKETS).find(([, config]) => config.live.toLowerCase() === hostname);
112
+ return matched?.[0];
113
+ }
114
+ resolveMarketFromEnvironmentHost(hostname) {
115
+ const matched = Object.entries(MARKETS).find(([, config]) => [config.integration, config.preproduction, config.production].some(envHost => envHost.toLowerCase() === hostname));
116
+ return matched?.[0];
117
+ }
118
+ resolveMarketFromPostnordSubdomain(hostname) {
119
+ if (hostname.includes('www')) {
120
+ return undefined;
121
+ }
122
+ if (!hostname.includes('.postnord.')) {
123
+ return undefined;
124
+ }
125
+ const postnordIndex = hostname.indexOf('.postnord.');
126
+ const beforePostnord = hostname.substring(0, postnordIndex);
127
+ const parts = beforePostnord.split('.').filter(Boolean);
128
+ if (parts.length === 0) {
129
+ return undefined;
130
+ }
131
+ const closestSubdomain = parts[parts.length - 1];
132
+ return this.isMarketName(closestSubdomain) ? closestSubdomain : undefined;
133
+ }
134
+ resolveMarketFromDevelopmentUrl(url) {
135
+ const target = `${url.hostname}${url.pathname}`.toLowerCase();
136
+ const matchedMarket = ALLOWED_MARKETS.find(market => {
137
+ const patterns = [
138
+ `/${market}/`,
139
+ `/${market}`,
140
+ `.${market}.`,
141
+ `.${market}/`,
142
+ `${market}.`,
143
+ ];
144
+ return patterns.some(pattern => target.includes(pattern));
145
+ });
146
+ if (matchedMarket) {
147
+ return matchedMarket;
148
+ }
149
+ const matchedByFallbackLanguage = Object.entries(MARKETS).find(([, config]) => {
150
+ const language = config.fallbackLanguage.toLowerCase();
151
+ const patterns = [
152
+ `/${language}/`,
153
+ `/${language}`,
154
+ `.${language}.`,
155
+ `.${language}/`,
156
+ `${language}.`,
157
+ ];
158
+ return patterns.some(pattern => target.includes(pattern));
159
+ });
160
+ return matchedByFallbackLanguage?.[0];
161
+ }
162
+ isMarketName(value) {
163
+ return ALLOWED_MARKETS.includes(value);
164
+ }
165
+ }
166
+ //# sourceMappingURL=pn-refined-marketweb-context.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pn-refined-marketweb-context.service.js","sourceRoot":"","sources":["../../../src/services/pn-refined-marketweb-context/pn-refined-marketweb-context.service.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n ALLOWED_LANGUAGES,\n ALLOWED_MARKETS,\n DEVELOPMENT_DOMAINS,\n ENVIRONMENT_ALIASES,\n MARKETS,\n WWW_MARKETS,\n} from './pn-refined-marketweb-context.constants';\nimport type {\n EnvironmentInput,\n EnvironmentName,\n MarketName,\n MarketWebContext,\n} from './pn-refined-marketweb-context.types';\n\nexport class RefinedMarketWebContextService {\n private readonly href: string;\n private readonly doc?: Document;\n\n constructor(options?: {\n href?: string;\n doc?: Document;\n }) {\n this.href = options?.href ?? window.location.href;\n this.doc = options?.doc ?? document;\n }\n\n resolve(): MarketWebContext {\n const url = new URL(this.href);\n const market = this.resolveMarket(url);\n const environment = this.resolveEnvironment(url);\n const language = this.resolveLanguage(market);\n\n return {\n market,\n environment,\n language,\n };\n }\n\n getMarket(): MarketName {\n return this.resolve().market;\n }\n\n getEnvironmentName(): EnvironmentName {\n return this.resolve().environment;\n }\n\n getLanguage(): string {\n return this.resolve().language;\n }\n\n isDevEnvironment(): boolean {\n const hostname = new URL(this.href).hostname.toLowerCase();\n return DEVELOPMENT_DOMAINS.some(fragment => hostname.includes(fragment));\n }\n\n getEndpoint(environment: EnvironmentInput, market: MarketName): string {\n if (environment === 'localhost') {\n return '';\n }\n\n const currentHostname = new URL(this.href).hostname.toLowerCase();\n const config = MARKETS[market];\n\n if (environment === 'production' && currentHostname === config.live.toLowerCase()) {\n return `https://${config.live}`;\n }\n\n if (environment !== 'production' && currentHostname === config[environment].toLowerCase()) {\n return `https://${config[environment]}`;\n }\n\n if (environment === 'production') {\n if (WWW_MARKETS.includes(market)) {\n return `https://${config.live}`;\n }\n\n if (market === 'tpl') {\n return 'https://www.tpl.postnord.com';\n }\n\n return `https://${config.live}`;\n }\n\n return `https://${config[environment]}`;\n }\n\n private resolveEnvironment(url: URL): EnvironmentName {\n const hostname = url.hostname.toLowerCase();\n\n const matchedAlias = Object.keys(ENVIRONMENT_ALIASES).find(alias =>\n hostname.includes(`-${alias}`)\n );\n\n if (matchedAlias) {\n return ENVIRONMENT_ALIASES[matchedAlias];\n }\n\n const isKnownLiveHost = Object.values(MARKETS).some(\n config => config.live.toLowerCase() === hostname\n );\n\n if (isKnownLiveHost || hostname.includes('www.')) {\n return 'production';\n }\n\n return 'integration';\n }\n\n private resolveMarket(url: URL): MarketName {\n const hostname = url.hostname.toLowerCase();\n\n const fromLiveDomain = this.resolveMarketFromLiveDomain(hostname);\n if (fromLiveDomain) return fromLiveDomain;\n\n const fromEnvironmentHost = this.resolveMarketFromEnvironmentHost(hostname);\n if (fromEnvironmentHost) return fromEnvironmentHost;\n\n const fromPostnordSubdomain = this.resolveMarketFromPostnordSubdomain(hostname);\n if (fromPostnordSubdomain) return fromPostnordSubdomain;\n\n if (this.isDevEnvironment()) {\n const fromDevUrl = this.resolveMarketFromDevelopmentUrl(url);\n if (fromDevUrl) return fromDevUrl;\n }\n\n return 'se';\n }\n\n private resolveLanguage(market: MarketName): string {\n const candidates = [\n this.doc?.documentElement?.getAttribute('lang'),\n this.doc?.querySelector('meta[http-equiv=\"content-language\"]')?.getAttribute('content'),\n this.doc?.querySelector('meta[property=\"og:locale\"]')?.getAttribute('content'),\n this.doc?.querySelector('[lang]')?.getAttribute('lang'),\n ];\n\n for (const candidate of candidates) {\n const normalized = this.normalizeLanguage(candidate);\n if (normalized) {\n return normalized;\n }\n }\n\n return MARKETS[market].fallbackLanguage;\n }\n\n private normalizeLanguage(value?: string | null): string | undefined {\n if (!value) {\n return undefined;\n }\n\n const normalized = value.trim().toLowerCase().split(/[-_]/)[0];\n\n return ALLOWED_LANGUAGES.includes(\n normalized as (typeof ALLOWED_LANGUAGES)[number]\n )\n ? normalized\n : undefined;\n }\n\n private resolveMarketFromLiveDomain(hostname: string): MarketName | undefined {\n const matched = Object.entries(MARKETS).find(\n ([, config]) => config.live.toLowerCase() === hostname\n );\n\n return matched?.[0] as MarketName | undefined;\n }\n\n private resolveMarketFromEnvironmentHost(hostname: string): MarketName | undefined {\n const matched = Object.entries(MARKETS).find(([, config]) =>\n [config.integration, config.preproduction, config.production].some(\n envHost => envHost.toLowerCase() === hostname\n )\n );\n\n return matched?.[0] as MarketName | undefined;\n }\n\n private resolveMarketFromPostnordSubdomain(hostname: string): MarketName | undefined {\n if (hostname.includes('www')) {\n return undefined;\n }\n\n if (!hostname.includes('.postnord.')) {\n return undefined;\n }\n\n const postnordIndex = hostname.indexOf('.postnord.');\n const beforePostnord = hostname.substring(0, postnordIndex);\n const parts = beforePostnord.split('.').filter(Boolean);\n\n if (parts.length === 0) {\n return undefined;\n }\n\n const closestSubdomain = parts[parts.length - 1];\n return this.isMarketName(closestSubdomain) ? closestSubdomain : undefined;\n }\n\n private resolveMarketFromDevelopmentUrl(url: URL): MarketName | undefined {\n const target = `${url.hostname}${url.pathname}`.toLowerCase();\n\n const matchedMarket = ALLOWED_MARKETS.find(market => {\n const patterns = [\n `/${market}/`,\n `/${market}`,\n `.${market}.`,\n `.${market}/`,\n `${market}.`,\n ];\n\n return patterns.some(pattern => target.includes(pattern));\n });\n\n if (matchedMarket) {\n return matchedMarket;\n }\n\n const matchedByFallbackLanguage = Object.entries(MARKETS).find(([, config]) => {\n const language = config.fallbackLanguage.toLowerCase();\n const patterns = [\n `/${language}/`,\n `/${language}`,\n `.${language}.`,\n `.${language}/`,\n `${language}.`,\n ];\n\n return patterns.some(pattern => target.includes(pattern));\n });\n\n return matchedByFallbackLanguage?.[0] as MarketName | undefined;\n }\n\n private isMarketName(value: string): value is MarketName {\n return ALLOWED_MARKETS.includes(value as MarketName);\n }\n}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pn-refined-marketweb-context.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pn-refined-marketweb-context.types.js","sourceRoot":"","sources":["../../../src/services/pn-refined-marketweb-context/pn-refined-marketweb-context.types.ts"],"names":[],"mappings":"","sourcesContent":["export type EnvironmentName = 'integration' | 'preproduction' | 'production';\n\nexport type EnvironmentInput = EnvironmentName | 'localhost';\n\nexport type MarketName =\n | 'se'\n | 'dk'\n | 'fi'\n | 'no'\n | 'com'\n | 'de'\n | 'tpl'\n | 'group';\n\nexport type MarketInput = MarketName;\n\nexport interface MarketWebContext {\n market: MarketName;\n language: string;\n environment: EnvironmentName;\n}\n\nexport interface MarketConfig {\n fallbackLanguage: string;\n integration: string;\n preproduction: string;\n production: string;\n live: string;\n}"]}
@@ -76,7 +76,7 @@ const PnAppBanner$1 = /*@__PURE__*/ proxyCustomElement(class PnAppBanner extends
76
76
  }
77
77
  }
78
78
  render() {
79
- return (h(Host, { key: '4e3a7990145e66e5ce0bcbc7af676a1af7b5a504', "data-is-closed": this.isClosed ? 'true' : 'false' }, h("div", { key: 'cf522656e0033637d1bb01c86f69aaf2bac49bb0', class: "pn-app-banner__wrapper pn-app-banner__sticky" }, h("div", { key: '6d57a0a135c1a06c465239524ada8ea30b51a529', class: "icon-close", onClick: this.handleOnClose }, h("pn-icon", { key: '4e2619004770c3d59577510b3e1400b23d101a12', icon: close_small, small: "false", color: "black" })), h("div", { key: 'a499eb158d3d00369a049e7ca5b4560615ad744c', class: "pn-app-banner__icon" }, h("svg", { key: 'aabd3c23e3592d1dadd028fa4f6d763ddb5f05df', width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '1a17720479facefcbffbcbfa422b1dabb0a61833', "clip-path": "url(#clip0_17800_45416)" }, h("path", { key: 'a3a9a644a8e860d4ff45bcdc21ae7db47cda0a12', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#F18D8D" }), h("mask", { key: '53b8bc7879b42621f2c5a9bed3a20b28d5900b55', id: "mask0_17800_45416", style: { 'mask-type': 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "32", height: "32" }, h("path", { key: 'e346551dd85647e0fcfa2a192281e8e4a7a56f23', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" })), h("g", { key: '25cb32ac4d4b38cfe5961546da2abf9f9019d678', mask: "url(#mask0_17800_45416)" }, h("path", { key: '2969a8aa67a1b0877519a68e98550c0b83ea2ee8', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" }), h("path", { key: '50f04e485057f4de6d5d8115e67f330ad211a1d1', d: "M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z", fill: "url(#paint0_linear_17800_45416)" }), h("path", { key: '440daa09780439ff695602e5b2c4dc1bec561a76', d: "M2.09375 31.375C2.09375 15.2379 15.1754 2.15625 31.3125 2.15625H31.9844V31.9844H2.09998C2.09583 31.7819 2.09375 31.5788 2.09375 31.375Z", fill: "#00A0D6" }), h("g", { key: 'd25e6c7edf4a821aa2529e55aa732f4ed184d0f8', filter: "url(#filter0_d_17800_45416)" }, h("path", { key: '92cfe03dd29851e9fc1dcce948ffb4ac7c842409', d: "M7.40625 11.8062C7.40625 10.2661 7.40625 9.49603 7.70597 8.90778C7.96963 8.39034 8.39034 7.96963 8.90778 7.70597C9.49603 7.40625 10.2661 7.40625 11.8062 7.40625H20.1938C21.7339 7.40625 22.504 7.40625 23.0922 7.70597C23.6097 7.96963 24.0304 8.39034 24.294 8.90778C24.5938 9.49603 24.5938 10.2661 24.5938 11.8062V20.1938C24.5938 21.7339 24.5938 22.504 24.294 23.0922C24.0304 23.6097 23.6097 24.0304 23.0922 24.294C22.504 24.5938 21.7339 24.5938 20.1938 24.5938H11.8062C10.2661 24.5938 9.49603 24.5938 8.90778 24.294C8.39034 24.0304 7.96963 23.6097 7.70597 23.0922C7.40625 22.504 7.40625 21.7339 7.40625 20.1938V11.8062Z", fill: "#F1F7FA" }), h("path", { key: '5bb18f81b7db47482f05fb891486913040858409', opacity: "0.6", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.5938 10.0625C10.3176 10.0625 10.0938 10.2863 10.0938 10.5625C10.0938 10.8387 10.3176 11.0625 10.5938 11.0625H12.875C13.1512 11.0625 13.375 10.8387 13.375 10.5625C13.375 10.2863 13.1512 10.0625 12.875 10.0625H10.5938ZM10.5938 12.3125C10.3176 12.3125 10.0938 12.5363 10.0938 12.8125C10.0938 13.0887 10.3176 13.3125 10.5938 13.3125H15.3125C15.5887 13.3125 15.8125 13.0887 15.8125 12.8125C15.8125 12.5363 15.5887 12.3125 15.3125 12.3125H10.5938ZM10.0938 14.75C10.0938 14.4738 10.3176 14.25 10.5938 14.25H13.5625C13.8387 14.25 14.0625 14.4738 14.0625 14.75C14.0625 15.0262 13.8387 15.25 13.5625 15.25H10.5938C10.3176 15.25 10.0938 15.0262 10.0938 14.75ZM15.1875 14.25C14.9113 14.25 14.6875 14.4738 14.6875 14.75C14.6875 15.0262 14.9113 15.25 15.1875 15.25C15.4637 15.25 15.6875 15.0262 15.6875 14.75C15.6875 14.4738 15.4637 14.25 15.1875 14.25Z", fill: "#A5C0CA" }), h("path", { key: '081ec2bab92554dd0faadfddb8f6f270f39ebc04', d: "M17.9375 10.5938C17.9375 10.3176 18.1613 10.0938 18.4375 10.0938H21.75C22.0262 10.0938 22.25 10.3176 22.25 10.5938C22.25 10.8699 22.0262 11.0938 21.75 11.0938H18.4375C18.1613 11.0938 17.9375 10.8699 17.9375 10.5938Z", fill: "#00A0D6" }), h("path", { key: '3ce76bf18c352540bbc6a7e8b80212f34bc42ee9', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.0938 19.3125C10.0938 18.8983 10.4295 18.5625 10.8438 18.5625C11.258 18.5625 11.5938 18.8983 11.5938 19.3125V21.25C11.5938 21.6642 11.258 22 10.8438 22C10.4295 22 10.0938 21.6642 10.0938 21.25V19.3125ZM19.3438 19.3125C19.3438 18.8983 19.6795 18.5625 20.0938 18.5625C20.508 18.5625 20.8438 18.8983 20.8438 19.3125V21.25C20.8438 21.6642 20.508 22 20.0938 22C19.6795 22 19.3438 21.6642 19.3438 21.25V19.3125ZM14.5938 18.5625C14.1795 18.5625 13.8438 18.8983 13.8438 19.3125V21.25C13.8438 21.6642 14.1795 22 14.5938 22C15.008 22 15.3438 21.6642 15.3438 21.25V19.3125C15.3438 18.8983 15.008 18.5625 14.5938 18.5625ZM12.5938 18.9375C12.5938 18.7304 12.7617 18.5625 12.9688 18.5625C13.1758 18.5625 13.3438 18.7304 13.3438 18.9375V21.625C13.3438 21.8321 13.1758 22 12.9688 22C12.7617 22 12.5938 21.8321 12.5938 21.625V18.9375ZM21.5938 18.5625C21.3867 18.5625 21.2188 18.7304 21.2188 18.9375V21.625C21.2188 21.8321 21.3867 22 21.5938 22C21.8008 22 21.9688 21.8321 21.9688 21.625V18.9375C21.9688 18.7304 21.8008 18.5625 21.5938 18.5625ZM17.5938 18.9375C17.5938 18.7304 17.7617 18.5625 17.9688 18.5625C18.1758 18.5625 18.3438 18.7304 18.3438 18.9375V21.625C18.3438 21.8321 18.1758 22 17.9688 22C17.7617 22 17.5938 21.8321 17.5938 21.625V18.9375ZM16.5938 18.5625C16.3176 18.5625 16.0938 18.7863 16.0938 19.0625V21.5C16.0938 21.7762 16.3176 22 16.5938 22C16.8699 22 17.0938 21.7762 17.0938 21.5V19.0625C17.0938 18.7863 16.8699 18.5625 16.5938 18.5625Z", fill: "#0D234B" })))), h("defs", { key: '4388bf9f0e69d46e6287cb970cf72ce9bacb7622' }, h("filter", { key: '0f350b69a72221dd955ea816a53d29d64e00635f', id: "filter0_d_17800_45416", x: "-52.5938", y: "-48.5938", width: "137.188", height: "137.188", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB" }, h("feFlood", { key: '11733ad854f42e43c6c6361033863820bb99d20d', "flood-opacity": "0", result: "BackgroundImageFix" }), h("feColorMatrix", { key: 'd827d5c2109eb97b91edd99a8c1fc06415ee37e1', in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), h("feOffset", { key: '946a0d4daa6fa29359bd929f17de13a8322d3721', dy: "4" }), h("feGaussianBlur", { key: '14c342f8c54ec6b2d9fffd68768f535504b89072', stdDeviation: "30" }), h("feColorMatrix", { key: '65fa670e52cd206a35c4bb4c259d4201416373c1', type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" }), h("feBlend", { key: '869c6678547f92b2dc100bbdea83c4f977abf2ec', mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_17800_45416" }), h("feBlend", { key: '9118dc52e8912a90649139fdefbceac2fc9c08fa', mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_17800_45416", result: "shape" })), h("linearGradient", { key: 'e17076578f59c32e4c9c6283aa03cd8b430dc671', id: "paint0_linear_17800_45416", x1: "29.2305", y1: "44.3441", x2: "51.5694", y2: "15.1782", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '4f9fae70fff36eb40a3246aefb1e15f0da23e7ab', offset: "0.0800778", "stop-color": "#0D244C" }), h("stop", { key: '3a6cfeafed11ec38ba6acba13d8d63ede8e3d7da', offset: "1", "stop-color": "#0D234B" })), h("clipPath", { key: 'b242d74be36d9ccc08ecd48217e3be27a7c75b3b', id: "clip0_17800_45416" }, h("rect", { key: '22e8a524565e705d66ae49116b84137668274b68', width: "32", height: "32", fill: "white" }))))), h("div", { key: 'd598c4933709ef04d5955072073d4c44f5febb49', class: "pn-app-banner__text" }, h("span", { key: '852ff88ddf38460744431318022b2b03c9f3ea61' }, this.appName), h("br", { key: '0e7b4d19c419f04ad648b5399fbe889915b09252' }), this.appDescription), h("div", { key: '7959e44106f224082aba987b5d45e0077cd8c7b0', class: "pn-app-banner__cta" }, h("pn-button", { key: '94fa7438409e4ed48c287a2201765446ef5c7b91', small: true, href: this.storeLink }, this.ctaText)))));
79
+ return (h(Host, { key: 'bb5a692a664cf4ac468489c23277f9930997f12f', "data-is-closed": this.isClosed ? 'true' : 'false' }, h("div", { key: '922253cff363aee59e30fbcf4418c1b97022f768', class: "pn-app-banner__wrapper pn-app-banner__sticky" }, h("div", { key: '7bb7e90a5cebe49d0f9746b1ce44986f9f9431af', class: "icon-close", onClick: this.handleOnClose }, h("pn-icon", { key: 'fb110fcc7af1d4f1637f24c7c435f7f51d524941', icon: close_small, small: "false", color: "black" })), h("div", { key: '5b2b6ae7517cedaae7442112cb0ca10d955ca824', class: "pn-app-banner__icon" }, h("svg", { key: '2fc78aef304cb725e45429eb3ec673cd1dfc6b7f', width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '31f0608277956ae51fb99f10df7d6b0fd3945154', "clip-path": "url(#clip0_17800_45416)" }, h("path", { key: '1c30e7a3e8bdf57b7839090d1f466e0152d75082', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#F18D8D" }), h("mask", { key: '2f6bcb976612f6629b45d87e1cfde3da14ebad22', id: "mask0_17800_45416", style: { 'mask-type': 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "32", height: "32" }, h("path", { key: '671a12108274c3fb652397204aaadc7f1d8b47ea', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" })), h("g", { key: 'dca4f556965c83fb468451197b5c9370191ead3f', mask: "url(#mask0_17800_45416)" }, h("path", { key: '73b5a2127da6891c338c287dd6ad7aa5773b2437', d: "M23.875 0H8.125C3.63769 0 0 3.63769 0 8.125V23.875C0 28.3623 3.63769 32 8.125 32H23.875C28.3623 32 32 28.3623 32 23.875V8.125C32 3.63769 28.3623 0 23.875 0Z", fill: "#0D234B" }), h("path", { key: '69559c6b8b8f128f78c919281500b947e637bde1', d: "M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z", fill: "url(#paint0_linear_17800_45416)" }), h("path", { key: '646656b2d8c6b9931878b8027818c0402804503d', d: "M2.09375 31.375C2.09375 15.2379 15.1754 2.15625 31.3125 2.15625H31.9844V31.9844H2.09998C2.09583 31.7819 2.09375 31.5788 2.09375 31.375Z", fill: "#00A0D6" }), h("g", { key: 'd2748b51a56c2f89e518738935ac77cc55226fc6', filter: "url(#filter0_d_17800_45416)" }, h("path", { key: '72d52a14eaed722e619f87def6886c8eb99bfd60', d: "M7.40625 11.8062C7.40625 10.2661 7.40625 9.49603 7.70597 8.90778C7.96963 8.39034 8.39034 7.96963 8.90778 7.70597C9.49603 7.40625 10.2661 7.40625 11.8062 7.40625H20.1938C21.7339 7.40625 22.504 7.40625 23.0922 7.70597C23.6097 7.96963 24.0304 8.39034 24.294 8.90778C24.5938 9.49603 24.5938 10.2661 24.5938 11.8062V20.1938C24.5938 21.7339 24.5938 22.504 24.294 23.0922C24.0304 23.6097 23.6097 24.0304 23.0922 24.294C22.504 24.5938 21.7339 24.5938 20.1938 24.5938H11.8062C10.2661 24.5938 9.49603 24.5938 8.90778 24.294C8.39034 24.0304 7.96963 23.6097 7.70597 23.0922C7.40625 22.504 7.40625 21.7339 7.40625 20.1938V11.8062Z", fill: "#F1F7FA" }), h("path", { key: 'addc701b1c97bc1451c229d0e44a1b78cc5039a1', opacity: "0.6", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.5938 10.0625C10.3176 10.0625 10.0938 10.2863 10.0938 10.5625C10.0938 10.8387 10.3176 11.0625 10.5938 11.0625H12.875C13.1512 11.0625 13.375 10.8387 13.375 10.5625C13.375 10.2863 13.1512 10.0625 12.875 10.0625H10.5938ZM10.5938 12.3125C10.3176 12.3125 10.0938 12.5363 10.0938 12.8125C10.0938 13.0887 10.3176 13.3125 10.5938 13.3125H15.3125C15.5887 13.3125 15.8125 13.0887 15.8125 12.8125C15.8125 12.5363 15.5887 12.3125 15.3125 12.3125H10.5938ZM10.0938 14.75C10.0938 14.4738 10.3176 14.25 10.5938 14.25H13.5625C13.8387 14.25 14.0625 14.4738 14.0625 14.75C14.0625 15.0262 13.8387 15.25 13.5625 15.25H10.5938C10.3176 15.25 10.0938 15.0262 10.0938 14.75ZM15.1875 14.25C14.9113 14.25 14.6875 14.4738 14.6875 14.75C14.6875 15.0262 14.9113 15.25 15.1875 15.25C15.4637 15.25 15.6875 15.0262 15.6875 14.75C15.6875 14.4738 15.4637 14.25 15.1875 14.25Z", fill: "#A5C0CA" }), h("path", { key: '1efbbea95f38eaab6d34af1d1ea20b5cf98504bd', d: "M17.9375 10.5938C17.9375 10.3176 18.1613 10.0938 18.4375 10.0938H21.75C22.0262 10.0938 22.25 10.3176 22.25 10.5938C22.25 10.8699 22.0262 11.0938 21.75 11.0938H18.4375C18.1613 11.0938 17.9375 10.8699 17.9375 10.5938Z", fill: "#00A0D6" }), h("path", { key: 'be54da3ee727f5b7827099927c7afb1c8dd6c055', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.0938 19.3125C10.0938 18.8983 10.4295 18.5625 10.8438 18.5625C11.258 18.5625 11.5938 18.8983 11.5938 19.3125V21.25C11.5938 21.6642 11.258 22 10.8438 22C10.4295 22 10.0938 21.6642 10.0938 21.25V19.3125ZM19.3438 19.3125C19.3438 18.8983 19.6795 18.5625 20.0938 18.5625C20.508 18.5625 20.8438 18.8983 20.8438 19.3125V21.25C20.8438 21.6642 20.508 22 20.0938 22C19.6795 22 19.3438 21.6642 19.3438 21.25V19.3125ZM14.5938 18.5625C14.1795 18.5625 13.8438 18.8983 13.8438 19.3125V21.25C13.8438 21.6642 14.1795 22 14.5938 22C15.008 22 15.3438 21.6642 15.3438 21.25V19.3125C15.3438 18.8983 15.008 18.5625 14.5938 18.5625ZM12.5938 18.9375C12.5938 18.7304 12.7617 18.5625 12.9688 18.5625C13.1758 18.5625 13.3438 18.7304 13.3438 18.9375V21.625C13.3438 21.8321 13.1758 22 12.9688 22C12.7617 22 12.5938 21.8321 12.5938 21.625V18.9375ZM21.5938 18.5625C21.3867 18.5625 21.2188 18.7304 21.2188 18.9375V21.625C21.2188 21.8321 21.3867 22 21.5938 22C21.8008 22 21.9688 21.8321 21.9688 21.625V18.9375C21.9688 18.7304 21.8008 18.5625 21.5938 18.5625ZM17.5938 18.9375C17.5938 18.7304 17.7617 18.5625 17.9688 18.5625C18.1758 18.5625 18.3438 18.7304 18.3438 18.9375V21.625C18.3438 21.8321 18.1758 22 17.9688 22C17.7617 22 17.5938 21.8321 17.5938 21.625V18.9375ZM16.5938 18.5625C16.3176 18.5625 16.0938 18.7863 16.0938 19.0625V21.5C16.0938 21.7762 16.3176 22 16.5938 22C16.8699 22 17.0938 21.7762 17.0938 21.5V19.0625C17.0938 18.7863 16.8699 18.5625 16.5938 18.5625Z", fill: "#0D234B" })))), h("defs", { key: '2d2b614df17f56c528be25d27804cf9c4e8b1c9e' }, h("filter", { key: '1c7b412c254104658f3cec6a01a048908a36a915', id: "filter0_d_17800_45416", x: "-52.5938", y: "-48.5938", width: "137.188", height: "137.188", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB" }, h("feFlood", { key: '8e6d3f054d755175cc3d2e96b356f814b161d3b9', "flood-opacity": "0", result: "BackgroundImageFix" }), h("feColorMatrix", { key: '72cf185feec5f61c5ad0823818dd5d9d1aa3558e', in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), h("feOffset", { key: 'c12f651bcd4f62ee9fe2104634e4318a515c1e79', dy: "4" }), h("feGaussianBlur", { key: 'b6d0028d0387c47269488ae7ed7c870568c32023', stdDeviation: "30" }), h("feColorMatrix", { key: 'acc1052c4a65703d6cf4d2c7716bc9b299468d94', type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" }), h("feBlend", { key: '1bb14668ed99e2d3bd245527bdae646c78898c96', mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_17800_45416" }), h("feBlend", { key: '984158446c947700b92f356532860a3e8147e10c', mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_17800_45416", result: "shape" })), h("linearGradient", { key: '3f77cbf8722750bd894dae18f31e917693199b1b', id: "paint0_linear_17800_45416", x1: "29.2305", y1: "44.3441", x2: "51.5694", y2: "15.1782", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '14540eaae692cf53176cbec45737a43656072bb6', offset: "0.0800778", "stop-color": "#0D244C" }), h("stop", { key: 'b2003e2c029158a38fe68ff8bed0e75cd6ca000f', offset: "1", "stop-color": "#0D234B" })), h("clipPath", { key: 'b6945cc9461ca2b13a436fd38369e820ecfeb6e6', id: "clip0_17800_45416" }, h("rect", { key: 'db436fea1d119d0ea7f31b50e8ea0d848934d062', width: "32", height: "32", fill: "white" }))))), h("div", { key: '723e29b0368cc88e83ca90a2c8a29eb073fb2e53', class: "pn-app-banner__text" }, h("span", { key: '46af19bf9a8180a0503cc49ceeb0469cdccd4d01' }, this.appName), h("br", { key: 'dbc88ba7c81ade84156479d01e7665097b74e021' }), this.appDescription), h("div", { key: 'b5764d80dac817a9d9d4c6b7dddcedcfc7455240', class: "pn-app-banner__cta" }, h("pn-button", { key: '61bd60cb3b981b1894fae95b4cf2a78e350564ab', small: true, href: this.storeLink }, this.ctaText)))));
80
80
  }
81
81
  static get style() { return PnAppBannerStyle0; }
82
82
  }, [0, "pn-app-banner", {
@@ -18,7 +18,7 @@ const PnBreakpoints$1 = /*@__PURE__*/ proxyCustomElement(class PnBreakpoints ext
18
18
  return `breakpoints--${this.breakPointClass}`;
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: 'c66ab21c622781597b521aa1cb3cee9d347aaa0c' }, h("div", { key: '9b063fa0dca368965893dbda58a65ef253529ddd', class: `breakpoints ${this.createBreakpointClass()} ` }, `${this.currentWidth} px`, ' min-width: ', h("span", { key: 'ceab6144fc2c2ddeed0e10bc2f45e23affb49cd9', class: "reference" }, ' px'))));
21
+ return (h(Host, { key: '2e319063d318d91845c901f33d783f5a1a57a7e0' }, h("div", { key: 'ccc2f74693cdf8bfcb6dd48ff766ea5f49264de7', class: `breakpoints ${this.createBreakpointClass()} ` }, `${this.currentWidth} px`, ' min-width: ', h("span", { key: 'a1077e0c367ec98d8a9fdb03ed4e5e019b015e4a', class: "reference" }, ' px'))));
22
22
  }
23
23
  static get style() { return PnBreakpointsStyle0; }
24
24
  }, [0, "pn-breakpoints", {
@@ -43,7 +43,7 @@ const PnChatMessage = /*@__PURE__*/ proxyCustomElement(class PnChatMessage exten
43
43
  render() {
44
44
  const segmentClass = this.customerSegment?.toLowerCase() || '';
45
45
  const categoryClass = this.category?.toLowerCase() || '';
46
- return (h(Host, { key: '44ceed04e89a54dc0bac70c255a37ce01390f1fe', class: this.getMessageClass() }, h("div", { key: '0c3ccd5d3ac20308445fcffdcb01e0249718db27', class: `message-container ${categoryClass}` }, this.getIcon() && (h("span", { key: 'edde2998b3a1286c6850a0766b74d1ebc6e9cde4', class: "category" }, h("pn-icon", { key: 'f4a81cc256774382273d2ea53b3591c6e673211b', icon: this.getIcon(), color: this.blue700, "aria-hidden": "true", role: "presentation" }))), h("span", { key: '490aa122d234c92569617b38ce6f92e7e2d763ab', class: `message ${segmentClass}` }, h("slot", { key: 'e42e5620692f012ca32cb6f65e00256b7496d256' })))));
46
+ return (h(Host, { key: 'f4d6fb578fe1167f9cc054f17d29ca6a72b9965f', class: this.getMessageClass() }, h("div", { key: '2c10c50f0c4ee106fb37c7dc7b934d38e014aadf', class: `message-container ${categoryClass}` }, this.getIcon() && (h("span", { key: '405d261fdf80ed7d10d6aa71272c4a12310a3d4d', class: "category" }, h("pn-icon", { key: 'b33a6dce15011c10510462165474c6f69d932ae1', icon: this.getIcon(), color: this.blue700, "aria-hidden": "true", role: "presentation" }))), h("span", { key: 'd524be9eae67f866b8db74dc038491892986393e', class: `message ${segmentClass}` }, h("slot", { key: 'f57298b5988e3de9912eec740a6dcf26c34d2ea6' })))));
47
47
  }
48
48
  static get style() { return PnChatMessageStyle0; }
49
49
  }, [4, "pn-chat-message", {
@@ -466,9 +466,9 @@ const PnChat$1 = /*@__PURE__*/ proxyCustomElement(class PnChat extends HTMLEleme
466
466
  const mainId = 'chat-main';
467
467
  const inputId = 'chat-input';
468
468
  const headerButton = this.messagesData?.header.button;
469
- return (h(Host, { key: '0d111898facbe7ec2b46a0cb4cc23db2bb9a39e9', class: this.customerSegment }, !this.isClosed && this.messagesData && (h("div", { key: '52f3eba6239b0397fa232ea4aa229532d77e60b9', class: `pn-chat ${this.isMinimized ? 'minimized' : ''} ${this.isClosed ? 'closed' : ''}`, ref: el => (this.chatRef = el), role: "region", "aria-label": this.mainHeading }, !this.isMinimized && (h(Fragment, { key: '53806822347992d45ea6055aafffa8ceea40dbbd' }, h("header", { key: 'ce0144939bf3e03f05eb5fd07829ebc3b4b81710', class: "chat-header", role: "banner" }, h("h1", { key: '2f53bc2c02c2c293356c84ab26af3c53ca7c8d1d', id: "chat-title" }, this.mainHeading), h("div", { key: '61255515b279dde7eefb958a4cc52ec97d3f06e9', class: "chat-controls", role: "toolbar", "aria-label": this.getTranslation('chatControlsAriaLabel') }, h("pn-button", { key: '92ecec1912d158671d2c91e6d89f86c74e6f9e47', icon: minus, "icon-only": "true", class: "minimize-btn", onClick: this.toggleChat, "aria-expanded": !this.isMinimized, "aria-controls": mainId, "aria-label": this.getTranslation('minimizeChatAriaLabel'), appearance: "light", tooltip: this.getTranslation('minimizeChatAriaLabel'), small: "true" }), h("pn-button", { key: 'c35a892ee5aef5833f8c620d01b6f64281eaeb33', icon: close, "icon-only": "true", class: "close-btn", onClick: this.closeChat, "aria-expanded": !this.isMinimized, "aria-label": this.getTranslation('closeChatAriaLabel'), appearance: "light", tooltip: this.getTranslation('closeChatAriaLabel'), small: "true" }))), (this.messagesData?.messages?.length ?? 0) > 0 ?
469
+ return (h(Host, { key: '83e45973c72da8db520a2772e21c707057f8ea05', class: this.customerSegment }, !this.isClosed && this.messagesData && (h("div", { key: 'bd879e2a4dae3f4e8d6ef1ba1eddf87d11eb027c', class: `pn-chat ${this.isMinimized ? 'minimized' : ''} ${this.isClosed ? 'closed' : ''}`, ref: el => (this.chatRef = el), role: "region", "aria-label": this.mainHeading }, !this.isMinimized && (h(Fragment, { key: '031dbbb2210546b96ab3e1e2780147b2ef3ccf8f' }, h("header", { key: 'cf4b00ebafc4d246c325ebaab7ceed86267f2cf4', class: "chat-header", role: "banner" }, h("h1", { key: '016ae1d0bd22835856fef753e8ee2ad6acdcdf9b', id: "chat-title" }, this.mainHeading), h("div", { key: 'f75f5e771c7ad7d8e07a6d858da5eccc6f4ab78f', class: "chat-controls", role: "toolbar", "aria-label": this.getTranslation('chatControlsAriaLabel') }, h("pn-button", { key: '99c86d30b29adba316f8a33294d2b29f48a05fea', icon: minus, "icon-only": "true", class: "minimize-btn", onClick: this.toggleChat, "aria-expanded": !this.isMinimized, "aria-controls": mainId, "aria-label": this.getTranslation('minimizeChatAriaLabel'), appearance: "light", tooltip: this.getTranslation('minimizeChatAriaLabel'), small: "true" }), h("pn-button", { key: 'd599bdc10e557ac09a71e30c9068d5a75477cf5f', icon: close, "icon-only": "true", class: "close-btn", onClick: this.closeChat, "aria-expanded": !this.isMinimized, "aria-label": this.getTranslation('closeChatAriaLabel'), appearance: "light", tooltip: this.getTranslation('closeChatAriaLabel'), small: "true" }))), (this.messagesData?.messages?.length ?? 0) > 0 ?
470
470
  (h("main", { id: mainId, class: "chat-main", role: "main", "aria-labelledby": "chat-title" }, this.messagesData.header && (h("div", { class: "chat-overview" }, h("div", { class: "body" }, this.messagesData.header.body), headerButton && (h("pn-button", { href: headerButton.href, class: headerButton.class, appearance: headerButton.appearance, variant: headerButton.variant, small: headerButton.small, role: "button", onKeyDown: e => this.handleButtonKeyDown(e) }, headerButton.content)))), h("div", { ref: el => (this.chatMessagesContainer = el), class: "chat-messages", role: "log", "aria-live": "polite", "aria-label": this.getTranslation('chatMessagesAriaLabel') }, this.groupMessages()), h("pn-icon", { class: "indicator-icon", "aria-label": this.getTranslation('waitingForAnswerLabel'), role: "presentation" })))
471
- : (h("main", { id: mainId, class: "chat-main loading-chat-main", role: "main", "aria-labelledby": "chat-title" }, h("div", { class: "chat-loading-spinner" }, h("pn-spinner", { light: "true", size: "1.5" })), h("span", { class: "chat-loading-content" }, this.getTranslation('loadingText')))), h("footer", { key: '36aac7bfadef21e2e8825ab15ac6a4f2b22542ec', class: "chat-footer", role: "contentinfo" }, h("div", { key: '4072b13eb9d017d0a61f01aab535f09a835d2d4a', class: "form", role: "form", "aria-labelledby": inputId }, h("label", { key: '5d553ff3714c9618a9b568ad45866c6067096d62', htmlFor: inputId, class: "sr-only" }, this.getTranslation('writeChatMessagePlaceholder')), h("div", { key: 'd3813a440bf23fb424e8cf0ab4823e7a3460f1ed', class: "chat-input-container" }, h("input", { key: '5e75fa20c3e07b33cdbcc6e25a10edb77e185834', id: inputId, class: "chat-text-input", ref: el => (this.inputRef = el), type: "text", placeholder: this.getTranslation('writeChatMessagePlaceholder'), value: this.message, onInput: (e) => (this.message = e.target.value), onKeyPress: this.handleKeyPress, maxLength: 3990 }), !this.message.trim() ? (h("div", { class: "chat-disabled-button", role: "button", "aria-label": this.getTranslation('sendButtonText'), "aria-disabled": "true", tabIndex: -1 }, h("pn-icon", { color: "gray400", icon: submit }))) : (h("pn-button", { "icon-only": "true", variant: "borderless", appearance: "light", icon: submit, onClick: this.handleSendMessage, disabled: !this.message.trim(), "aria-label": this.getTranslation('sendButtonText'), tooltip: this.getTranslation('sendButtonText') }))))))), this.isMinimized && (h("pn-button", { key: 'fef1a0ccc04dfdfa0bd801442360e0b2a07bce73', icon: talk_bubble, "icon-only": "true", class: "open-chat-btn", onClick: this.toggleChat, tooltip: this.getTranslation('openChatAriaLabel'), "aria-label": this.getTranslation('openChatAriaLabel'), "aria-expanded": !this.isMinimized }))))));
471
+ : (h("main", { id: mainId, class: "chat-main loading-chat-main", role: "main", "aria-labelledby": "chat-title" }, h("div", { class: "chat-loading-spinner" }, h("pn-spinner", { light: "true", size: "1.5" })), h("span", { class: "chat-loading-content" }, this.getTranslation('loadingText')))), h("footer", { key: '8a80e22c49ddc5fd2a3e8c0e6bf4ec19a01a9feb', class: "chat-footer", role: "contentinfo" }, h("div", { key: 'ca74ace2f94575115e14b324741d71be78483ebe', class: "form", role: "form", "aria-labelledby": inputId }, h("label", { key: 'f8d85aed60f7817834db48bfb6c9cbc71ee45def', htmlFor: inputId, class: "sr-only" }, this.getTranslation('writeChatMessagePlaceholder')), h("div", { key: '36cfef57c4a0c025cb3867fb9027713b51b68492', class: "chat-input-container" }, h("input", { key: '6a1cd7179a1e72a7635f4889576912f54012bdf4', id: inputId, class: "chat-text-input", ref: el => (this.inputRef = el), type: "text", placeholder: this.getTranslation('writeChatMessagePlaceholder'), value: this.message, onInput: (e) => (this.message = e.target.value), onKeyPress: this.handleKeyPress, maxLength: 3990 }), !this.message.trim() ? (h("div", { class: "chat-disabled-button", role: "button", "aria-label": this.getTranslation('sendButtonText'), "aria-disabled": "true", tabIndex: -1 }, h("pn-icon", { color: "gray400", icon: submit }))) : (h("pn-button", { "icon-only": "true", variant: "borderless", appearance: "light", icon: submit, onClick: this.handleSendMessage, disabled: !this.message.trim(), "aria-label": this.getTranslation('sendButtonText'), tooltip: this.getTranslation('sendButtonText') }))))))), this.isMinimized && (h("pn-button", { key: 'ae2cbbbc2e4570985655c27933e5db24368c8b8e', icon: talk_bubble, "icon-only": "true", class: "open-chat-btn", onClick: this.toggleChat, tooltip: this.getTranslation('openChatAriaLabel'), "aria-label": this.getTranslation('openChatAriaLabel'), "aria-expanded": !this.isMinimized }))))));
472
472
  }
473
473
  static get watchers() { return {
474
474
  "messages": ["handleMessagesChange"],
@@ -13,7 +13,7 @@ const PnProfileSelectorOption = /*@__PURE__*/ proxyCustomElement(class PnProfile
13
13
  }
14
14
  get hostElement() { return this; }
15
15
  render() {
16
- return (h(Host, { key: '85af1dc3c157e409a95a0f09f7c8fae0015f50b8' }, h("a", { key: '76ef0e0c59469fa7b2253b1c4f91c6719ae4b46f', class: "customernumberoption", href: this.url }, h("span", { key: '6cde41342cd1f272ec662d4ddf92aa234eebe757', class: "customernumberoption-text" }, h("span", { key: '01389c2a4c9ff196f3c3177a6eaba5102bdae297', class: "customernumberoption-title" }, this.heading), h("span", { key: '11b2a1f927175fae868961f715d4c169fb602645', class: "customernumberoption-description" }, this.description), h("slot", { key: '8c9b4a757d35524a50f700448a1d79211248063d' })))));
16
+ return (h(Host, { key: '52a320a2c3e4c67076f06179b5a68275e02722f7' }, h("a", { key: '879dc49030031d3a4d0525de3365b29c3de99a54', class: "customernumberoption", href: this.url }, h("span", { key: 'a3ad37f83889ec8d8b5f482c3e1a2e12fa80e56e', class: "customernumberoption-text" }, h("span", { key: 'a416904a3692d9e46956fa21f0b22ee85e11f471', class: "customernumberoption-title" }, this.heading), h("span", { key: 'f6bcfea52293afbf06564fd59ec3e400b63a9f8f', class: "customernumberoption-description" }, this.description), h("slot", { key: 'e1927cb59a62d1b746e10fbb14dd83756c09f34c' })))));
17
17
  }
18
18
  static get style() { return PnCustomernumberSelectorOptionStyle0; }
19
19
  }, [4, "pn-customernumber-selector-option", {
@@ -48,7 +48,7 @@ const PnCustomernumberSelector$1 = /*@__PURE__*/ proxyCustomElement(class PnCust
48
48
  }
49
49
  }
50
50
  render() {
51
- return (h(Host, { key: 'c790ef0a0ff36cf11ae66ed632a2eaeeb5d2d620' }, h("div", { key: '29a30f4ea68bf8042adbce2b9d0463d789452571', class: "customernumber-container" }, h("button", { key: '29ad545a5ce4492d13b9e759cfd1ccfec302f7e6', class: "customernumber-toggle", "aria-label": this.i18n.toggleLinkTitleText, onClick: () => (this.open = !this.open) }, h("div", { key: '5ae5475e99341d26be463c6fd3d6002fb7b1efa9', class: "customernumber-selected" }, h("strong", { key: 'fc87bedbb9469709a6c4956a8972a414a4039cb6', class: "customernumber-selected-title" }, this.heading), h("div", { key: '1b0bd560ddf4838c5bc297e7800e99890175ec2a', class: "customernumber-selected-description" }, this.description)), h("pn-icon", { key: '567508ab9472d65326d1c0e3e0ca806a3532150f', icon: this.open ? angle_up : angle_down, small: "false", color: "blue700" })), h("div", { key: 'f01d414c0281e2bcc25fa884b076062d899c39e9', class: "customernumber-options" }, h("slot", { key: '002478ca2038f25d4939ae2bdfc1dadec4fa4097' })))));
51
+ return (h(Host, { key: '4ed4d098d46f3f43275f4d67b863988c0b213277' }, h("div", { key: 'b1e7ca84ba39d50e6c22fc8106c0c874ac455259', class: "customernumber-container" }, h("button", { key: '3df56551a19812d700f72f9292be9255608050a4', class: "customernumber-toggle", "aria-label": this.i18n.toggleLinkTitleText, onClick: () => (this.open = !this.open) }, h("div", { key: '8bac61ed907a1a997ca05a27f02abec4f8552a31', class: "customernumber-selected" }, h("strong", { key: '778d6a52e2abac5451cec5de7e41d45bfc7c5c3d', class: "customernumber-selected-title" }, this.heading), h("div", { key: '3861b91b4cba5396c2ac11adf5e0325fe995afd5', class: "customernumber-selected-description" }, this.description)), h("pn-icon", { key: 'e71afd8c90fcf3fe80a4260898c865180431dc5c', icon: this.open ? angle_up : angle_down, small: "false", color: "blue700" })), h("div", { key: '0a1ba423416e5b2a3d28a3b0a1701fd7173c02f5', class: "customernumber-options" }, h("slot", { key: '3541a01d558b3df7f757bcaafa10849eabd8edbc' })))));
52
52
  }
53
53
  static get style() { return PnCustomernumberSelectorStyle0; }
54
54
  }, [4, "pn-customernumber-selector", {
@@ -124,7 +124,7 @@ const PnfindPriceResult = /*@__PURE__*/ proxyCustomElement(class PnfindPriceResu
124
124
  this.shopId = showServicepointLink ? '-servicepoint' : '-stampshop';
125
125
  }
126
126
  render() {
127
- return (h(Host, { key: '53b5dfa58d9c873f140b90385ce6532fa1a5ecfc' }, h("pn-product-card", { key: 'f0fa70b9c9d3e178a72b5e89a52ec1a300228570', "data-productid": this.item.id }, h("pn-illustration", { key: '91604ffeeb946b5a795ceafb19f265a7924b468d', slot: "illustration", illustration: this.item.illustration }), h("div", { key: '47215d3bedf8645f7cc84778b9a059f634e325c2', slot: "title" }, this.item.infopagelink ? (h("h2", null, h("a", { href: this.item.infopagelink, target: "_blank" }, this.item.name))) : (h("h2", null, this.item.name)), this.item.highestrankusp === 'Snabbast' ? (h("pn-titletag", { slot: "Snabbast", icon: bolt, color: "blue700" }, this.item.highestrankusp)) : this.item.highestrankusp === 'Billigast' ? (h("pn-titletag", { slot: "Billigast", icon: box_label, color: "green700" }, this.item.highestrankusp)) : null), h("div", { key: '364d0348f17bfec196cb04479d89ce04c0687228', slot: "content" }, h("div", { key: 'd8c2ac4b74cc42369fc48bc62d08f3b02f9c77d3', class: "content" }, this.item.description ? (h("div", { class: "description" }, this.description.map(desc => (h("li", null, desc))))) : null, this.item.info ? h("div", { class: "description" }, this.item.info) : null)), this.item.note ? (h("div", { slot: "note" }, h("p", null, this.item.note))) : null, this.item.additionalusp ? (h("div", { slot: "additionalUSP" }, this.Usp1 ? h("span", null, this.Usp1) : null, this.Usp2 ? h("span", null, this.Usp2) : null, this.Usp3 ? h("span", null, this.Usp3) : null)) : null, this.showMeasurement ? h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle }) : null, h("div", { key: 'b8f20abc55f9c5f01ea430808373d16c3d6f2f07', slot: "cardprice" }, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: sendDirectUrl, linkid: this.linkId + '-portal' })) : null, this.item.pricestamps ? (this.item.name.toLocaleLowerCase() !== 'riktiga vykort' ? (h("pn-product-card-price", { slot: "stampPrice", label: this.shopLabel, amount: this.item.pricestamps + '', currency: state.market.currency, url: this.shopUrl, linkid: this.linkId + this.shopId })) : (h("pn-product-card-price", { slot: "riktiga", label: state.i18n.realPostcard, amount: this.item.pricestamps + '', currency: state.market.currency, url: RealValues['WebUrl'], linkid: this.linkId + '-riktiga' }))) : null), h("div", { key: 'd3d1bd4e3d3cf2f175eae3f4f0c336386dcc52f1', slot: "servicepoint" }, this.item.showservicepointlink ? (h("a", { href: state.market.servicePoint, target: "_blank" }, h("pn-icon", { icon: map_marker, color: "blue700" }), state.i18n.servicePointLink)) : null), h("div", { key: 'b3b28af8e85013f3ae962437ce00fe7bb1b2a1c3', slot: "mobiledownload" }, this.item.name.toLocaleLowerCase() === 'riktiga vykort' ? (h("div", { id: "riktiga" }, h("h4", null, state.i18n.realPostcardMobile), h("div", null, h("a", { href: RealValues['AndroidAppUrl'], target: "_blank" }, h("img", { class: "riktigaAndroidImg", src: RealValues['AndroidImg'] })), h("a", { href: RealValues['IosAppUrl'], target: "_blank" }, h("img", { class: "riktigaAppleImg", src: RealValues['IosImg'] }))))) : null))));
127
+ return (h(Host, { key: 'af7b0af45060ca1abcc68a8f9fc19761db996555' }, h("pn-product-card", { key: '5094e756231d749513bd7d0da43e5210164d6a0c', "data-productid": this.item.id }, h("pn-illustration", { key: '7651952ac7e502576425a9c0d2400758d504332f', slot: "illustration", illustration: this.item.illustration }), h("div", { key: '6caf7b394828e112dba6b2791f38f8b688631e0f', slot: "title" }, this.item.infopagelink ? (h("h2", null, h("a", { href: this.item.infopagelink, target: "_blank" }, this.item.name))) : (h("h2", null, this.item.name)), this.item.highestrankusp === 'Snabbast' ? (h("pn-titletag", { slot: "Snabbast", icon: bolt, color: "blue700" }, this.item.highestrankusp)) : this.item.highestrankusp === 'Billigast' ? (h("pn-titletag", { slot: "Billigast", icon: box_label, color: "green700" }, this.item.highestrankusp)) : null), h("div", { key: '68414684d0df71a845561aeb45f955be1781cc9a', slot: "content" }, h("div", { key: '8462265dce3c233b767921519096e9124926f09f', class: "content" }, this.item.description ? (h("div", { class: "description" }, this.description.map(desc => (h("li", null, desc))))) : null, this.item.info ? h("div", { class: "description" }, this.item.info) : null)), this.item.note ? (h("div", { slot: "note" }, h("p", null, this.item.note))) : null, this.item.additionalusp ? (h("div", { slot: "additionalUSP" }, this.Usp1 ? h("span", null, this.Usp1) : null, this.Usp2 ? h("span", null, this.Usp2) : null, this.Usp3 ? h("span", null, this.Usp3) : null)) : null, this.showMeasurement ? h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle }) : null, h("div", { key: '61540d6124451b22b48932fe46b732732c3d203e', slot: "cardprice" }, this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: sendDirectUrl, linkid: this.linkId + '-portal' })) : null, this.item.pricestamps ? (this.item.name.toLocaleLowerCase() !== 'riktiga vykort' ? (h("pn-product-card-price", { slot: "stampPrice", label: this.shopLabel, amount: this.item.pricestamps + '', currency: state.market.currency, url: this.shopUrl, linkid: this.linkId + this.shopId })) : (h("pn-product-card-price", { slot: "riktiga", label: state.i18n.realPostcard, amount: this.item.pricestamps + '', currency: state.market.currency, url: RealValues['WebUrl'], linkid: this.linkId + '-riktiga' }))) : null), h("div", { key: 'c7eefd3971a634eded0ec1d38eb45d296a777256', slot: "servicepoint" }, this.item.showservicepointlink ? (h("a", { href: state.market.servicePoint, target: "_blank" }, h("pn-icon", { icon: map_marker, color: "blue700" }), state.i18n.servicePointLink)) : null), h("div", { key: 'da8821941f5a0d4e1c71f0da64122923eacb21bd', slot: "mobiledownload" }, this.item.name.toLocaleLowerCase() === 'riktiga vykort' ? (h("div", { id: "riktiga" }, h("h4", null, state.i18n.realPostcardMobile), h("div", null, h("a", { href: RealValues['AndroidAppUrl'], target: "_blank" }, h("img", { class: "riktigaAndroidImg", src: RealValues['AndroidImg'] })), h("a", { href: RealValues['IosAppUrl'], target: "_blank" }, h("img", { class: "riktigaAppleImg", src: RealValues['IosImg'] }))))) : null))));
128
128
  }
129
129
  static get watchers() { return {
130
130
  "item": ["composeItems"]
@@ -207,11 +207,11 @@ const PnfindPrice = /*@__PURE__*/ proxyCustomElement(class PnfindPrice extends H
207
207
  this.filteredItems = weightFilteredData;
208
208
  }
209
209
  render() {
210
- return (h("div", { key: 'e0c6bf199bb09f85a361eebb38b76b68555aa058', class: "findprice-form" }, h("fieldset", { key: 'c78e7d68dee2a9027856c3116e40baf07be01e03' }, h("legend", { key: '208ee4b8423d993aff90b0e93420be86e8097b97', class: "heading" }, state.i18n.sizeheading), h("div", { key: 'f7ca7e4a86b9ae5836e7d160944d084fca69a9b0', class: "sizecategory" }, h("table", { key: '6bcdad88d3fc0bb11e39088469ca3a2b8049d2b2', class: "sizeTable" }, h("img", { key: '84d181f0b3cac6af11f0790719fb7a8e00c0930e', id: "clouds", src: cloudsSvg }), h("tr", { key: '68f4161acfa3dd6b20eac349011c7d8ba21e54c0' }, h("td", { key: '2814a48e17adbe093d012c8a8dc6543327a3cfa6' }, h("img", { key: '4e2f206b2923ec2350e143705ab7af75e7e236b5', class: "firstCell", src: postnordPerson1Svg })), h("td", { key: '1a240375e5596cf151583e6cfb0c433e03696fe5' }, h("img", { key: '62ba3371159beecd6c1070bfb0c45a7ade20594f', src: smallPackageSvg })), h("td", { key: 'de26bfc74a010c3ce0ca187fbd5129e5163a362a' }, h("img", { key: '88ef3309975a8929c00de61861f052a5f32e63cd', src: mediumPackageSvg })), h("td", { key: 'c5213ca085503eaefec5d4821b906293b51a7c44' }, h("img", { key: 'c8b40821438e95d7d04c9e0739a918e31f2e6240', src: largePackageSvg }))), h("tr", { key: '3f164ea4d225548e4ce7658930739a0330f49f3d' }, h("td", { key: 'c6afeb58975432c9d3b6b5ecd285c00afa015221' }), sizeCategories.map(sizeCategory => (h("td", null, h("pn-radio-button", { id: 'findpricecategory-' + sizeCategory.value, radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
210
+ return (h("div", { key: 'a87272a9316766c7cc8770bba1becf578619c731', class: "findprice-form" }, h("fieldset", { key: '20302323f0f34aebc4c7c3642ef0a4f320d936e8' }, h("legend", { key: '5333ad2f3d610f1d5e15515f1c73ab34a4f3bab9', class: "heading" }, state.i18n.sizeheading), h("div", { key: 'f738d920077c9c429d1f86d0a55e2f346585c748', class: "sizecategory" }, h("table", { key: '6b99b8ade6780a8764f008c770667f7a19fd166f', class: "sizeTable" }, h("img", { key: '5814f6873d2a7b5cf3c7c28cecff36d6448b1462', id: "clouds", src: cloudsSvg }), h("tr", { key: '7ecbe06255270535921cf41d3db05248a39dacb1' }, h("td", { key: '69af4b42b2cf107a6cfdcc35ecef0fe7b12e7993' }, h("img", { key: '54ab7b49042eb56f3642d843bd205df95b433c9b', class: "firstCell", src: postnordPerson1Svg })), h("td", { key: '3fd6c96b6c8af274da0b772263f050b15213feb9' }, h("img", { key: 'd329ec0a1023936fa32a5e1f8b7abadc804cadfb', src: smallPackageSvg })), h("td", { key: '802dfcc72142e0ae660d33a153dae4550ef88b5d' }, h("img", { key: '629121a3fad3ef08e7a70b634bf24bd06d9b25bd', src: mediumPackageSvg })), h("td", { key: '977429a1b104886f653b779142d35f9205e14c26' }, h("img", { key: '9adcdb575095ae89ab6d422b0b2ae7cf882d6bac', src: largePackageSvg }))), h("tr", { key: '43fb37f9188445510f9aad5dd9c8205de49271bc' }, h("td", { key: '7c0a22d52384a6030888eb9c26ffa0779f2f6b8d' }), sizeCategories.map(sizeCategory => (h("td", null, h("pn-radio-button", { id: 'findpricecategory-' + sizeCategory.value, radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
211
211
  this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
212
212
  this.weight = { value: 0, name: '' };
213
213
  this.weightvalue = this.weight.value;
214
- } })))))))), h("fieldset", { key: 'd41b3ab2ebe00f9363fec02c670b7ac5c970172b' }, h("legend", { key: '3254f91bc10fb5fa285dcbe5a7e2b1716f513d90', class: "heading" }, state.i18n.weightheading), this.sizecategory.value && weights[this.sizecategory.unit] ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights[this.sizecategory.unit].map(wght => (h("pn-choice-button", { id: 'findpriceweight-' + wght.value, choiceid: this.sizecategory.value + wght.value, name: "weight", type: "radio", value: !this.weight.value ? 0 : weights[this.sizecategory.unit].findIndex(x => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
214
+ } })))))))), h("fieldset", { key: 'cf8eeff6d0f5737d2b977b6176886b64b4dd044d' }, h("legend", { key: '129f078e7ef8588f74f29ce3600d310542bac761', class: "heading" }, state.i18n.weightheading), this.sizecategory.value && weights[this.sizecategory.unit] ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights[this.sizecategory.unit].map(wght => (h("pn-choice-button", { id: 'findpriceweight-' + wght.value, choiceid: this.sizecategory.value + wght.value, name: "weight", type: "radio", value: !this.weight.value ? 0 : weights[this.sizecategory.unit].findIndex(x => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
215
215
  this.weight = weights[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
216
216
  this.weightvalue = this.weight.value;
217
217
  } }, wght.name)))))) : null, this.filteredItems && this.filteredItems.length > 0 ? (h("div", { class: "resultlist" }, state.i18n.resultlistheading ? h("div", { class: "resultHeading" }, state.i18n.resultlistheading) : null, this.filteredItems.map((item) => (h("div", null, h("pn-find-price-result", { item: item })))))) : null)));
@@ -53,7 +53,7 @@ const PnfindServiceAndPriceResult = /*@__PURE__*/ proxyCustomElement(class Pnfin
53
53
  // (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight/1000) + " kg" : this.item.maxweight + " g";
54
54
  }
55
55
  render() {
56
- return (h(Host, { key: 'db162acf54055ef1d6fd9082191fd2655e870d41' }, this.shownitems.map(item => (h("pn-product-card", null, h("pn-illustration", { slot: "illustration", illustration: item.illustration }), h("div", { slot: "content" }, h("div", { class: "content" }, h("h3", null, item.name), item.description ? h("div", { class: "description" }, item.description) : null, item.info ? h("div", { class: "description" }, item.info) : null)), item.maxweight ? h("pn-product-tile-info", { label: state.i18n.maxweightlabel, text: this.weightText }) : null, item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.stampshopcta, amount: item.pricestamps + '', currency: state.market.currency })) : null, item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null, item.note ? (h("small", { slot: "note" }, h("p", null, item.note))) : null)))));
56
+ return (h(Host, { key: '205e3dd24a65ea8a0420eee16f98529c1b4de1ad' }, this.shownitems.map(item => (h("pn-product-card", null, h("pn-illustration", { slot: "illustration", illustration: item.illustration }), h("div", { slot: "content" }, h("div", { class: "content" }, h("h3", null, item.name), item.description ? h("div", { class: "description" }, item.description) : null, item.info ? h("div", { class: "description" }, item.info) : null)), item.maxweight ? h("pn-product-tile-info", { label: state.i18n.maxweightlabel, text: this.weightText }) : null, item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.stampshopcta, amount: item.pricestamps + '', currency: state.market.currency })) : null, item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null, item.note ? (h("small", { slot: "note" }, h("p", null, item.note))) : null)))));
57
57
  }
58
58
  static get watchers() { return {
59
59
  "item": ["composeItems"]
@@ -217,7 +217,7 @@ const PnfindServiceAndPrice = /*@__PURE__*/ proxyCustomElement(class PnfindServi
217
217
  this.filteredItems = weightFilteredData;
218
218
  }
219
219
  render() {
220
- return (h("div", { key: 'c9ac6464edc62f1ea59e0776a2b33f918a7669b2' }, h("div", { key: '0195f8f1e513cb14b28f5591505b647952321bdc', class: "findprice-form" }, state.i18n.componentheading ? h("h2", null, state.i18n.componentheading) : null, h("div", { key: '926ba5ac5a442801fd42f47a541ca411948f1c63', class: "postagetypes" }, postagetypes.map(postagetype => (h("pn-choice-button", { choiceid: postagetype.value, value: postagetype.value, name: "postagetype", type: "radio", checked: postagetype.value === this.postagetype.value, onChange: () => {
220
+ return (h("div", { key: 'd415e3280e0bd4962e67771d8c5f3ac28b8db1ff' }, h("div", { key: '4ed7a5c9fa08ca698c422244d83d3bcfcc27b6a4', class: "findprice-form" }, state.i18n.componentheading ? h("h2", null, state.i18n.componentheading) : null, h("div", { key: 'c0679e75afcb1c196f1f7abf0426785919eca6ee', class: "postagetypes" }, postagetypes.map(postagetype => (h("pn-choice-button", { choiceid: postagetype.value, value: postagetype.value, name: "postagetype", type: "radio", checked: postagetype.value === this.postagetype.value, onChange: () => {
221
221
  this.postagetype = postagetypes.filter(x => x.value === postagetype.value)[0];
222
222
  this.deliveryscope = { value: '', name: '', icon: '' };
223
223
  this.weight = { value: 0, name: '' };
@@ -34,7 +34,7 @@ const PnHeroBlockInternational$1 = /*@__PURE__*/ proxyCustomElement(class PnHero
34
34
  }
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '57001ce40c7508b8aec22ae7c1155fb567d3dfb3', class: `hero-international ${this.centeredLayout ? 'hero-international--centered-layout' : ''} ${this.animateLogo ? 'hero-international--animate' : ''}` }, h("div", { key: 'e91b385e0df3e9c024921e96931d3a78d4f1c804', class: "hero-international__content" }, h("div", { key: 'ce6405545d9ebc6fe45a07e918b0a555aef3af9b', class: "flex-wrapper" }, h("div", { key: 'c89dcd60502b8b786617cb0dea8843419807b64d', class: "content-col" }, h("span", { key: 'e87b664691915fbd34eea787aabffff4e95167fb', class: "hero-international__content__site-tag" }, "International"), h("h1", { key: 'c8a7d1282967151dbfa23c945d99561510367de8', class: "hero-international__content__heading" }, this.heading, " ", h("span", { key: '754831aa07db3a2b3bd64eb88ed6fb56aa785328' }, this.subHeading)), h("p", { key: '479f6999ab61347ecaca45444eaa7c7cf29366dd', class: "hero-international__content__preamble" }, this.preamble), this.hasCtaButtonSlot && (h("div", { key: '691b426fb7fd63dadd9d059b1190621cfaa38340', class: "hero-international__content__cta" }, h("slot", { key: '07eace3f34ebf1da9c221190f6870eb1ad48ec0c', name: "hero-international-cta" })))), !this.centeredLayout && (h("div", { key: '571a0b7f2384d3330bf725a60b115245baeec970', class: "hero-international__content__logo-col" }, h("div", { key: '48d339a3e2354a2e9db4dea1dff38f823109b049', class: "hero-international__content__logo-col__image" }, h("svg", { key: '8b3a539b63bb2b5ecdbbdabccf8bc0d01e4e5564', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 919 336" }, h("circle", { key: 'beec8130572087110c30e5659ccd1905c8e8badd', class: "cls-1", cx: "168", cy: "168", r: "168" }), h("circle", { key: '82ed005c047765a5bb0fd3ee79cab8efb4b94492', class: "cls-1", cx: "519", cy: "168", r: "168" }), h("path", { key: '1cea5be71c324c712c56e52ef814144f2dbf1154', class: "cls-1", d: "M510 0h409v336H510z" }), h("path", { key: '5a70e6ba4bf2695ecf278b0b0100659e415cb647', d: "M235.51 155.55c0 11.19-9.19 15.88-17.84 15.88s-17.46-4.58-17.46-15.4 9.02-15.88 17.84-15.88c8.6 0 17.46 4.63 17.46 15.4Zm-11.65.33c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.48 6.02 6.07 6.02s6.02-2.56 6.02-6.02Zm-147.53 0c0 8.53-5.91 15.56-15.1 15.56-5.64 0-8.27-2.77-8.27-2.77v10.34H42v-37.89h10.96V144s2.85-3.84 9.08-3.84c9.13 0 14.29 6.98 14.29 15.72Zm-11.6 0c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.47 6.02 6.07 6.02s6.02-2.56 6.02-6.02Zm184.35.47c0-4.47 2.74-5.86 6.4-5.86 2.25 0 3.71.53 3.71.53l.27-10.02s-.7-.32-2.58-.32c-6.12 0-7.79 3.84-7.79 3.84v-3.41h-10.96v29.42h10.96v-14.18ZM294 132v38.53h-10.96v-2.88s-2.85 3.84-9.08 3.84c-9.13 0-14.29-6.98-14.29-15.72s5.91-15.56 15.1-15.56c5.64 0 8.27 2.77 8.27 2.77v-8.85L294 132Zm-10.64 23.77c0-3.47-2.47-6.02-6.07-6.02s-6.02 2.56-6.02 6.02c0 3.67 2.42 6.18 6.02 6.18s6.07-2.51 6.07-6.18Zm-96.71-15.62c-6.39 0-8.71 3.84-8.71 3.84v-2.88h-10.96v29.42h10.96v-15.08c0-3.73 1.4-5.44 4.78-5.44s3.87 2.77 3.87 6.29v14.23h11.07v-18.07c0-8.1-3.92-12.31-11.01-12.31Zm-30.74-5.65h-10.96v36.03h10.96v-20.25h5.16l5-9.17h-10.16v-6.61Zm-24.55 17.27c-3.55-.53-5.11-.53-5.11-1.92 0-1.17 1.45-1.65 4.3-1.65 4.83 0 9.08 1.6 9.08 1.6l1.93-8.26s-4.67-1.33-10.91-1.33c-10.48 0-15.96 4-15.96 10.39 0 4.96 2.96 7.89 11.61 9 3.65.48 5 .69 5 2.03s-1.45 1.7-3.98 1.7c-5.48 0-10.64-2.29-10.64-2.29l-2.2 8.53s5.16 1.81 11.88 1.81c11.28 0 16.49-3.95 16.49-10.39 0-5.11-2.79-7.88-11.49-9.22Zm-17.9 3.78c0 11.19-9.19 15.88-17.84 15.88s-17.46-4.58-17.46-15.4 9.03-15.88 17.84-15.88c8.6 0 17.46 4.63 17.46 15.4Zm-11.66.33c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.47 6.02 6.07 6.02s6.02-2.56 6.02-6.02Z", class: "svg-path-style2" }), h("path", { key: '6c1b0afa4aa6ebce1c80db505ca167bdab0b65a0', d: "M167 197.67v-15.01h2.71v15.01H167Zm15.27-7.02c0-2.41-1.92-4.08-4.24-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.51-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm8-3.8h-2.8v-3.62H185v10.99c0 2.01 1.43 3.44 3.46 3.44h1.81v-2.29h-1.32c-.9 0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1Zm11.93 6.2c0-.15.04-.71.04-.97 0-3.31-2.25-5.56-5.49-5.56s-5.56 2.56-5.56 5.74 2.49 5.74 5.73 5.74c2.12 0 3.86-.84 4.98-2.58l-2.05-1.1c-.6.88-1.52 1.48-2.93 1.48-1.68 0-3-1.04-3.33-2.74h8.6m-8.53-1.94c.37-1.48 1.52-2.47 3.07-2.47 1.7 0 2.78.95 3.09 2.47h-6.16Zm16.03-4.26c-1.61 0-2.62.84-3.09 1.83v-1.83h-2.32v10.81h2.47v-5.25c0-1.68 1.1-3 2.71-3h1.08v-2.56h-.86Zm12.55 3.79c0-2.41-1.92-4.08-4.23-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.51-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm11.06-2.27c-.75-1.13-2.14-1.81-3.7-1.81-3.15 0-5.34 2.47-5.34 5.67s2.18 5.67 5.34 5.67c1.56 0 2.95-.68 3.7-1.83v1.59h2.32v-10.81h-2.32v1.52Zm0 3.86c0 1.87-1.32 3.35-3.29 3.35s-3.27-1.48-3.27-3.35 1.3-3.38 3.27-3.38 3.29 1.5 3.29 3.38Zm10.31-5.39h-2.8v-3.62h-2.47v10.99c0 2.01 1.43 3.44 3.46 3.44h1.81v-2.29h-1.32c-.91 0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1Zm1.84-3.22c0 .84.68 1.52 1.54 1.52s1.57-.68 1.57-1.52-.71-1.5-1.57-1.5-1.54.69-1.54 1.5Zm2.78 14.04v-10.81h-2.47v10.81h2.47Zm2.12-5.41c0 3.18 2.49 5.74 5.78 5.74s5.76-2.56 5.76-5.74-2.49-5.74-5.76-5.74-5.78 2.54-5.78 5.74Zm9.06 0c0 1.88-1.39 3.38-3.29 3.38s-3.29-1.5-3.29-3.38 1.37-3.38 3.29-3.38 3.29 1.48 3.29 3.38Zm14.41-1.61c0-2.41-1.92-4.08-4.23-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.52-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm11.06-2.27c-.75-1.13-2.14-1.81-3.7-1.81-3.15 0-5.34 2.47-5.34 5.67s2.18 5.67 5.34 5.67c1.57 0 2.95-.68 3.7-1.83v1.59h2.32v-10.81h-2.32v1.52Zm0 3.86c0 1.87-1.32 3.35-3.29 3.35s-3.26-1.48-3.26-3.35 1.3-3.38 3.26-3.38 3.29 1.5 3.29 3.38Zm9.12 3.2h-.46c-.77 0-1.15-.4-1.15-1.17V182h-2.47v12.69c0 1.81 1.23 2.98 3.13 2.98h.95v-2.23Z", class: "svg-path-style1" })))))), this.showSideLoader && !this.centeredLayout && (h("div", { key: 'bc54283980443f3eefce06fc6c12b15bb3e7d3e6', class: `hero-international__side-loader ${this.animateSideloader ? 'hero-international__side-loader--animate' : ''}` }, h("div", { key: 'efc050466ff155560ad2421a75bf6fccfcf908b8', class: "shape" }))))));
37
+ return (h(Host, { key: 'cd3a9ba8eb365ff05a13f22c217cf6518187344d', class: `hero-international ${this.centeredLayout ? 'hero-international--centered-layout' : ''} ${this.animateLogo ? 'hero-international--animate' : ''}` }, h("div", { key: 'ada4fbb353b6a20cf704beab8a2b3d03c1f242b7', class: "hero-international__content" }, h("div", { key: '79b742cee7177ac79d0c7a262e4e770e4c87161e', class: "flex-wrapper" }, h("div", { key: '8987b7d67a5d47799d9c3a28fbdfdbd4705aba59', class: "content-col" }, h("span", { key: '45775dada897e980f63f132498009a2cb1fc653f', class: "hero-international__content__site-tag" }, "International"), h("h1", { key: '64e02d12cb9f0fdd217337325e3688a074a68f2f', class: "hero-international__content__heading" }, this.heading, " ", h("span", { key: '41fd68780031bab9bd1661ee823fb2a5160efbc9' }, this.subHeading)), h("p", { key: '59a9e5e654c0eb0bb1a587a0516737db7c49e4a9', class: "hero-international__content__preamble" }, this.preamble), this.hasCtaButtonSlot && (h("div", { key: 'f6ddcfa3f618838abf2cfa9998f0d2199a719dff', class: "hero-international__content__cta" }, h("slot", { key: 'fc5282ee26529ab600854cd327d815013f4d719d', name: "hero-international-cta" })))), !this.centeredLayout && (h("div", { key: 'ed8a829af70e56eab2718e0f9f90a334c5d3c709', class: "hero-international__content__logo-col" }, h("div", { key: '79ea2b92017f13690d615e98083a773990a45978', class: "hero-international__content__logo-col__image" }, h("svg", { key: 'd3570ede2e968e22073d85583a716cc69ee3f902', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 919 336" }, h("circle", { key: 'bce0e197353421c3d2f44c13980910e243202b71', class: "cls-1", cx: "168", cy: "168", r: "168" }), h("circle", { key: '4f57bb01acabcd52546ce96a9195cdac7e5513cd', class: "cls-1", cx: "519", cy: "168", r: "168" }), h("path", { key: 'bc1b9a24cbd82f4285e8723201a1ff7c239b7807', class: "cls-1", d: "M510 0h409v336H510z" }), h("path", { key: '6db8c63917cccfc8b26e4831e18d8cba02da4f34', d: "M235.51 155.55c0 11.19-9.19 15.88-17.84 15.88s-17.46-4.58-17.46-15.4 9.02-15.88 17.84-15.88c8.6 0 17.46 4.63 17.46 15.4Zm-11.65.33c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.48 6.02 6.07 6.02s6.02-2.56 6.02-6.02Zm-147.53 0c0 8.53-5.91 15.56-15.1 15.56-5.64 0-8.27-2.77-8.27-2.77v10.34H42v-37.89h10.96V144s2.85-3.84 9.08-3.84c9.13 0 14.29 6.98 14.29 15.72Zm-11.6 0c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.47 6.02 6.07 6.02s6.02-2.56 6.02-6.02Zm184.35.47c0-4.47 2.74-5.86 6.4-5.86 2.25 0 3.71.53 3.71.53l.27-10.02s-.7-.32-2.58-.32c-6.12 0-7.79 3.84-7.79 3.84v-3.41h-10.96v29.42h10.96v-14.18ZM294 132v38.53h-10.96v-2.88s-2.85 3.84-9.08 3.84c-9.13 0-14.29-6.98-14.29-15.72s5.91-15.56 15.1-15.56c5.64 0 8.27 2.77 8.27 2.77v-8.85L294 132Zm-10.64 23.77c0-3.47-2.47-6.02-6.07-6.02s-6.02 2.56-6.02 6.02c0 3.67 2.42 6.18 6.02 6.18s6.07-2.51 6.07-6.18Zm-96.71-15.62c-6.39 0-8.71 3.84-8.71 3.84v-2.88h-10.96v29.42h10.96v-15.08c0-3.73 1.4-5.44 4.78-5.44s3.87 2.77 3.87 6.29v14.23h11.07v-18.07c0-8.1-3.92-12.31-11.01-12.31Zm-30.74-5.65h-10.96v36.03h10.96v-20.25h5.16l5-9.17h-10.16v-6.61Zm-24.55 17.27c-3.55-.53-5.11-.53-5.11-1.92 0-1.17 1.45-1.65 4.3-1.65 4.83 0 9.08 1.6 9.08 1.6l1.93-8.26s-4.67-1.33-10.91-1.33c-10.48 0-15.96 4-15.96 10.39 0 4.96 2.96 7.89 11.61 9 3.65.48 5 .69 5 2.03s-1.45 1.7-3.98 1.7c-5.48 0-10.64-2.29-10.64-2.29l-2.2 8.53s5.16 1.81 11.88 1.81c11.28 0 16.49-3.95 16.49-10.39 0-5.11-2.79-7.88-11.49-9.22Zm-17.9 3.78c0 11.19-9.19 15.88-17.84 15.88s-17.46-4.58-17.46-15.4 9.03-15.88 17.84-15.88c8.6 0 17.46 4.63 17.46 15.4Zm-11.66.33c0-3.68-2.42-6.18-6.02-6.18s-6.07 2.5-6.07 6.18c0 3.46 2.47 6.02 6.07 6.02s6.02-2.56 6.02-6.02Z", class: "svg-path-style2" }), h("path", { key: '9169e1a186a9d655aeb07026c87cb8990f0cd6d7', d: "M167 197.67v-15.01h2.71v15.01H167Zm15.27-7.02c0-2.41-1.92-4.08-4.24-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.51-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm8-3.8h-2.8v-3.62H185v10.99c0 2.01 1.43 3.44 3.46 3.44h1.81v-2.29h-1.32c-.9 0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1Zm11.93 6.2c0-.15.04-.71.04-.97 0-3.31-2.25-5.56-5.49-5.56s-5.56 2.56-5.56 5.74 2.49 5.74 5.73 5.74c2.12 0 3.86-.84 4.98-2.58l-2.05-1.1c-.6.88-1.52 1.48-2.93 1.48-1.68 0-3-1.04-3.33-2.74h8.6m-8.53-1.94c.37-1.48 1.52-2.47 3.07-2.47 1.7 0 2.78.95 3.09 2.47h-6.16Zm16.03-4.26c-1.61 0-2.62.84-3.09 1.83v-1.83h-2.32v10.81h2.47v-5.25c0-1.68 1.1-3 2.71-3h1.08v-2.56h-.86Zm12.55 3.79c0-2.41-1.92-4.08-4.23-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.51-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm11.06-2.27c-.75-1.13-2.14-1.81-3.7-1.81-3.15 0-5.34 2.47-5.34 5.67s2.18 5.67 5.34 5.67c1.56 0 2.95-.68 3.7-1.83v1.59h2.32v-10.81h-2.32v1.52Zm0 3.86c0 1.87-1.32 3.35-3.29 3.35s-3.27-1.48-3.27-3.35 1.3-3.38 3.27-3.38 3.29 1.5 3.29 3.38Zm10.31-5.39h-2.8v-3.62h-2.47v10.99c0 2.01 1.43 3.44 3.46 3.44h1.81v-2.29h-1.32c-.91 0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1Zm1.84-3.22c0 .84.68 1.52 1.54 1.52s1.57-.68 1.57-1.52-.71-1.5-1.57-1.5-1.54.69-1.54 1.5Zm2.78 14.04v-10.81h-2.47v10.81h2.47Zm2.12-5.41c0 3.18 2.49 5.74 5.78 5.74s5.76-2.56 5.76-5.74-2.49-5.74-5.76-5.74-5.78 2.54-5.78 5.74Zm9.06 0c0 1.88-1.39 3.38-3.29 3.38s-3.29-1.5-3.29-3.38 1.37-3.38 3.29-3.38 3.29 1.48 3.29 3.38Zm14.41-1.61c0-2.41-1.92-4.08-4.23-4.08-1.46 0-2.6.59-3.29 1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52 1.04-2.58 2.52-2.58s2.38 1.02 2.38 2.54v6.24h2.47v-7.02Zm11.06-2.27c-.75-1.13-2.14-1.81-3.7-1.81-3.15 0-5.34 2.47-5.34 5.67s2.18 5.67 5.34 5.67c1.57 0 2.95-.68 3.7-1.83v1.59h2.32v-10.81h-2.32v1.52Zm0 3.86c0 1.87-1.32 3.35-3.29 3.35s-3.26-1.48-3.26-3.35 1.3-3.38 3.26-3.38 3.29 1.5 3.29 3.38Zm9.12 3.2h-.46c-.77 0-1.15-.4-1.15-1.17V182h-2.47v12.69c0 1.81 1.23 2.98 3.13 2.98h.95v-2.23Z", class: "svg-path-style1" })))))), this.showSideLoader && !this.centeredLayout && (h("div", { key: '955802798141357badfa0dff8b208636700e6cd4', class: `hero-international__side-loader ${this.animateSideloader ? 'hero-international__side-loader--animate' : ''}` }, h("div", { key: 'b40db830d678ae7eea42886c4e58490709d16c89', class: "shape" }))))));
38
38
  }
39
39
  static get style() { return PnHeroBlockInternationalStyle0; }
40
40
  }, [4, "pn-hero-block-international", {