@postnord/pn-marketweb-components 2.4.29 → 2.4.32

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 (414) hide show
  1. package/cjs/{index-95e5b7f9.js → index-7ebb05d7.js} +1 -1
  2. package/cjs/{index-4199ff85.js → index-d6f2e2f9.js} +6 -0
  3. package/cjs/loader.cjs.js +2 -2
  4. package/cjs/pn-address-autofill.cjs.entry.js +1 -1
  5. package/cjs/pn-animated-tile.cjs.entry.js +1 -1
  6. package/cjs/pn-app-banner.cjs.entry.js +1 -1
  7. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  8. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  9. package/cjs/pn-breakpoints.cjs.entry.js +1 -1
  10. package/cjs/pn-chart.cjs.entry.js +1 -1
  11. package/cjs/pn-charts-card.cjs.entry.js +1 -1
  12. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  13. package/cjs/pn-cta-block.cjs.entry.js +1 -1
  14. package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
  15. package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
  16. package/cjs/pn-date-and-time.cjs.entry.js +1 -1
  17. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
  18. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
  19. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
  20. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  21. package/cjs/pn-find-price-result.cjs.entry.js +3 -3
  22. package/cjs/{pn-find-price-store-e0d1e412.js → pn-find-price-store-1f005e0d.js} +1 -1
  23. package/cjs/pn-find-price.cjs.entry.js +3 -3
  24. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  25. package/cjs/{pn-find-service-and-price-store-6e26630d.js → pn-find-service-and-price-store-0b544d1e.js} +1 -1
  26. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  27. package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
  28. package/cjs/pn-line-shape.cjs.entry.js +1 -1
  29. package/cjs/pn-link-list.cjs.entry.js +57 -0
  30. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  31. package/cjs/{pn-mainnav-store-8c337865.js → pn-mainnav-store-a31c1d1e.js} +1 -1
  32. package/cjs/pn-market-web-components.cjs.js +2 -2
  33. package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
  34. package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
  35. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  36. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
  37. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
  38. package/cjs/{pn-marketweb-siteheader-store-5ced6902.js → pn-marketweb-siteheader-store-a939014c.js} +1 -1
  39. package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
  40. package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
  41. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
  42. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +2 -2
  43. package/cjs/pn-multiple-input.cjs.entry.js +1 -1
  44. package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
  45. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  46. package/cjs/pn-play-on-scroll.cjs.entry.js +1 -1
  47. package/cjs/pn-product-card_3.cjs.entry.js +1 -1
  48. package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
  49. package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
  50. package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
  51. package/cjs/pn-product-tile.cjs.entry.js +1 -1
  52. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
  53. package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
  54. package/cjs/{pn-profile-modal-store-947b08ae.js → pn-profile-modal-store-2525eee2.js} +1 -1
  55. package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
  56. package/cjs/pn-profile-modal.cjs.entry.js +3 -3
  57. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  58. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  59. package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
  60. package/cjs/pn-proxio-findprice.cjs.entry.js +25 -3
  61. package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
  62. package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
  63. package/cjs/pn-quick-cta.cjs.entry.js +1 -1
  64. package/cjs/pn-quote-card.cjs.entry.js +1 -1
  65. package/cjs/pn-scroll_2.cjs.entry.js +1 -1
  66. package/cjs/pn-share-item.cjs.entry.js +1 -1
  67. package/cjs/pn-share.cjs.entry.js +1 -1
  68. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  69. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  70. package/cjs/{pn-sidenav-store-d2389306.js → pn-sidenav-store-18b8c3ff.js} +1 -1
  71. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
  72. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  73. package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
  74. package/cjs/pn-spotlight.cjs.entry.js +1 -1
  75. package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
  76. package/cjs/pn-stats-info.cjs.entry.js +1 -1
  77. package/cjs/pn-teaser-card.cjs.entry.js +1 -1
  78. package/cjs/pn-titletag.cjs.entry.js +1 -1
  79. package/collection/collection-manifest.json +1 -0
  80. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js +1 -1
  81. package/collection/components/widgets/pn-link-list/link-list.stories.js +50 -0
  82. package/collection/components/widgets/pn-link-list/pn-link-list.css +140 -0
  83. package/collection/components/widgets/pn-link-list/pn-link-list.js +185 -0
  84. package/collection/components/widgets/pn-proxio-findprice/data.js +20 -0
  85. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +21 -1
  86. package/components/index.d.ts +1 -0
  87. package/components/index.js +1 -0
  88. package/components/pn-link-list.d.ts +11 -0
  89. package/components/pn-link-list.js +80 -0
  90. package/components/pn-multi-row-connected-dropdown.js +1 -1
  91. package/components/pn-proxio-findprice.js +24 -1
  92. package/esm/{index-ee44c065.js → index-be8c3299.js} +6 -0
  93. package/esm/{index-b71e0f8e.js → index-e6fbe66d.js} +1 -1
  94. package/esm/loader.js +3 -3
  95. package/esm/pn-address-autofill.entry.js +1 -1
  96. package/esm/pn-animated-tile.entry.js +1 -1
  97. package/esm/pn-app-banner.entry.js +1 -1
  98. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  99. package/esm/pn-bonus-progressbar.entry.js +1 -1
  100. package/esm/pn-breakpoints.entry.js +1 -1
  101. package/esm/pn-chart.entry.js +1 -1
  102. package/esm/pn-charts-card.entry.js +1 -1
  103. package/esm/pn-choice-button.entry.js +1 -1
  104. package/esm/pn-cta-block.entry.js +1 -1
  105. package/esm/pn-customernumber-selector-option.entry.js +1 -1
  106. package/esm/pn-customernumber-selector.entry.js +1 -1
  107. package/esm/pn-date-and-time.entry.js +1 -1
  108. package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
  109. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  110. package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  111. package/esm/pn-filter-checkbox.entry.js +1 -1
  112. package/esm/pn-find-price-result.entry.js +3 -3
  113. package/esm/{pn-find-price-store-5810a2b9.js → pn-find-price-store-9d2df21a.js} +1 -1
  114. package/esm/pn-find-price.entry.js +3 -3
  115. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  116. package/esm/{pn-find-service-and-price-store-0b1b3ab7.js → pn-find-service-and-price-store-60025dfc.js} +1 -1
  117. package/esm/pn-find-service-and-price.entry.js +3 -3
  118. package/esm/pn-language-selector_9.entry.js +4 -4
  119. package/esm/pn-line-shape.entry.js +1 -1
  120. package/esm/pn-link-list.entry.js +53 -0
  121. package/esm/pn-mainnav-link.entry.js +3 -3
  122. package/esm/{pn-mainnav-store-8c221c2f.js → pn-mainnav-store-35a91e97.js} +1 -1
  123. package/esm/pn-market-web-components.js +3 -3
  124. package/esm/pn-marketweb-input.entry.js +1 -1
  125. package/esm/pn-marketweb-search.entry.js +1 -1
  126. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  127. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
  128. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
  129. package/esm/{pn-marketweb-siteheader-store-cea5016e.js → pn-marketweb-siteheader-store-aba9e86a.js} +1 -1
  130. package/esm/pn-marketweb-siteheader.entry.js +3 -3
  131. package/esm/pn-multi-formfield.entry.js +1 -1
  132. package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
  133. package/esm/pn-multi-row-connected-dropdown.entry.js +2 -2
  134. package/esm/pn-multiple-input.entry.js +1 -1
  135. package/esm/pn-parcel-tracker.entry.js +1 -1
  136. package/esm/pn-pex-pricefinder.entry.js +1 -1
  137. package/esm/pn-play-on-scroll.entry.js +1 -1
  138. package/esm/pn-product-card_3.entry.js +1 -1
  139. package/esm/pn-product-pricelist-result.entry.js +2 -2
  140. package/esm/pn-product-pricelist.entry.js +3 -3
  141. package/esm/pn-product-tile-info_2.entry.js +1 -1
  142. package/esm/pn-product-tile.entry.js +1 -1
  143. package/esm/pn-profile-modal-customernumber.entry.js +1 -1
  144. package/esm/pn-profile-modal-profile.entry.js +3 -3
  145. package/esm/{pn-profile-modal-store-e08316b5.js → pn-profile-modal-store-12c5acf9.js} +1 -1
  146. package/esm/pn-profile-modal-type.entry.js +3 -3
  147. package/esm/pn-profile-modal.entry.js +3 -3
  148. package/esm/pn-profile-selector-option.entry.js +1 -1
  149. package/esm/pn-profile-selector.entry.js +1 -1
  150. package/esm/pn-proxio-findprice-result.entry.js +1 -1
  151. package/esm/pn-proxio-findprice.entry.js +25 -3
  152. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  153. package/esm/pn-proxio-productcard_4.entry.js +1 -1
  154. package/esm/pn-quick-cta.entry.js +1 -1
  155. package/esm/pn-quote-card.entry.js +1 -1
  156. package/esm/pn-scroll_2.entry.js +1 -1
  157. package/esm/pn-share-item.entry.js +1 -1
  158. package/esm/pn-share.entry.js +1 -1
  159. package/esm/pn-sidenav-level.entry.js +3 -3
  160. package/esm/pn-sidenav-link.entry.js +3 -3
  161. package/esm/{pn-sidenav-store-9530b0da.js → pn-sidenav-store-a515dd69.js} +1 -1
  162. package/esm/pn-sidenav-togglebutton.entry.js +3 -3
  163. package/esm/pn-sidenav.entry.js +3 -3
  164. package/esm/pn-site-footer_3.entry.js +1 -1
  165. package/esm/pn-spotlight.entry.js +1 -1
  166. package/esm/pn-stats-info-data.entry.js +1 -1
  167. package/esm/pn-stats-info.entry.js +1 -1
  168. package/esm/pn-teaser-card.entry.js +1 -1
  169. package/esm/pn-titletag.entry.js +1 -1
  170. package/esm-es5/{index-ee44c065.js → index-be8c3299.js} +1 -1
  171. package/esm-es5/{index-b71e0f8e.js → index-e6fbe66d.js} +1 -1
  172. package/esm-es5/loader.js +1 -1
  173. package/esm-es5/pn-address-autofill.entry.js +1 -1
  174. package/esm-es5/pn-animated-tile.entry.js +1 -1
  175. package/esm-es5/pn-app-banner.entry.js +1 -1
  176. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  177. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  178. package/esm-es5/pn-breakpoints.entry.js +1 -1
  179. package/esm-es5/pn-chart.entry.js +1 -1
  180. package/esm-es5/pn-charts-card.entry.js +1 -1
  181. package/esm-es5/pn-choice-button.entry.js +1 -1
  182. package/esm-es5/pn-cta-block.entry.js +1 -1
  183. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  184. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  185. package/esm-es5/pn-date-and-time.entry.js +1 -1
  186. package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
  187. package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  188. package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  189. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  190. package/esm-es5/pn-find-price-result.entry.js +1 -1
  191. package/esm-es5/{pn-find-price-store-5810a2b9.js → pn-find-price-store-9d2df21a.js} +1 -1
  192. package/esm-es5/pn-find-price.entry.js +1 -1
  193. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  194. package/esm-es5/{pn-find-service-and-price-store-0b1b3ab7.js → pn-find-service-and-price-store-60025dfc.js} +1 -1
  195. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  196. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  197. package/esm-es5/pn-line-shape.entry.js +1 -1
  198. package/esm-es5/pn-link-list.entry.js +1 -0
  199. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  200. package/esm-es5/{pn-mainnav-store-8c221c2f.js → pn-mainnav-store-35a91e97.js} +1 -1
  201. package/esm-es5/pn-market-web-components.js +1 -1
  202. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  203. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  204. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  205. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
  206. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  207. package/esm-es5/pn-marketweb-siteheader-store-aba9e86a.js +1 -0
  208. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  209. package/esm-es5/pn-multi-formfield.entry.js +1 -1
  210. package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
  211. package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
  212. package/esm-es5/pn-multiple-input.entry.js +1 -1
  213. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  214. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  215. package/esm-es5/pn-play-on-scroll.entry.js +1 -1
  216. package/esm-es5/pn-product-card_3.entry.js +1 -1
  217. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  218. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  219. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  220. package/esm-es5/pn-product-tile.entry.js +1 -1
  221. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  222. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  223. package/esm-es5/{pn-profile-modal-store-e08316b5.js → pn-profile-modal-store-12c5acf9.js} +1 -1
  224. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  225. package/esm-es5/pn-profile-modal.entry.js +1 -1
  226. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  227. package/esm-es5/pn-profile-selector.entry.js +1 -1
  228. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
  229. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  230. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  231. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  232. package/esm-es5/pn-quick-cta.entry.js +1 -1
  233. package/esm-es5/pn-quote-card.entry.js +1 -1
  234. package/esm-es5/pn-scroll_2.entry.js +1 -1
  235. package/esm-es5/pn-share-item.entry.js +1 -1
  236. package/esm-es5/pn-share.entry.js +1 -1
  237. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  238. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  239. package/esm-es5/{pn-sidenav-store-9530b0da.js → pn-sidenav-store-a515dd69.js} +1 -1
  240. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  241. package/esm-es5/pn-sidenav.entry.js +1 -1
  242. package/esm-es5/pn-site-footer_3.entry.js +1 -1
  243. package/esm-es5/pn-spotlight.entry.js +1 -1
  244. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  245. package/esm-es5/pn-stats-info.entry.js +1 -1
  246. package/esm-es5/pn-teaser-card.entry.js +1 -1
  247. package/esm-es5/pn-titletag.entry.js +1 -1
  248. package/package.json +1 -1
  249. package/pn-market-web-components/{p-cde2fce7.entry.js → p-00d87476.entry.js} +1 -1
  250. package/pn-market-web-components/{p-b28cf3a3.system.entry.js → p-027911c8.system.entry.js} +1 -1
  251. package/pn-market-web-components/{p-e3a65e18.js → p-03d7d79b.js} +1 -1
  252. package/pn-market-web-components/{p-4fbea675.entry.js → p-0412e417.entry.js} +1 -1
  253. package/pn-market-web-components/{p-83c85053.system.entry.js → p-05257edc.system.entry.js} +1 -1
  254. package/pn-market-web-components/{p-fba780f8.system.entry.js → p-087a6e41.system.entry.js} +1 -1
  255. package/pn-market-web-components/{p-3f2bc920.entry.js → p-0a3aa74f.entry.js} +1 -1
  256. package/pn-market-web-components/{p-f9b8baf0.system.entry.js → p-0f6f212a.system.entry.js} +1 -1
  257. package/pn-market-web-components/{p-e47abff1.system.entry.js → p-0f73d268.system.entry.js} +1 -1
  258. package/pn-market-web-components/{p-c2415b38.entry.js → p-103c054e.entry.js} +1 -1
  259. package/pn-market-web-components/{p-e5d994ff.system.js → p-11f6fb30.system.js} +1 -1
  260. package/pn-market-web-components/{p-1b282c2b.entry.js → p-132feb89.entry.js} +1 -1
  261. package/pn-market-web-components/{p-b1527c0c.entry.js → p-13f2cbda.entry.js} +1 -1
  262. package/pn-market-web-components/{p-bbcd8889.system.entry.js → p-14ebd1f5.system.entry.js} +1 -1
  263. package/pn-market-web-components/{p-3a897643.system.entry.js → p-1565d46e.system.entry.js} +1 -1
  264. package/pn-market-web-components/{p-9d517155.entry.js → p-15fd32d4.entry.js} +1 -1
  265. package/pn-market-web-components/{p-16fedd71.entry.js → p-1998b5b1.entry.js} +1 -1
  266. package/pn-market-web-components/{p-267fc52b.entry.js → p-1e0fd641.entry.js} +1 -1
  267. package/pn-market-web-components/{p-57957809.entry.js → p-26869f6d.entry.js} +1 -1
  268. package/pn-market-web-components/{p-af1be0d9.entry.js → p-294cb592.entry.js} +1 -1
  269. package/pn-market-web-components/{p-62bceebe.system.entry.js → p-29a7c74f.system.entry.js} +1 -1
  270. package/pn-market-web-components/{p-0be5cbf5.entry.js → p-2e6d5633.entry.js} +1 -1
  271. package/pn-market-web-components/p-2ef39f23.entry.js +1 -0
  272. package/pn-market-web-components/{p-c954c090.entry.js → p-2f4aa8c6.entry.js} +1 -1
  273. package/pn-market-web-components/{p-70ef1b2d.system.entry.js → p-30571cc1.system.entry.js} +1 -1
  274. package/pn-market-web-components/{p-0ee378ea.system.entry.js → p-332d070d.system.entry.js} +1 -1
  275. package/pn-market-web-components/{p-e00b1afa.entry.js → p-335d95b7.entry.js} +1 -1
  276. package/pn-market-web-components/{p-436857a8.entry.js → p-345648e8.entry.js} +1 -1
  277. package/pn-market-web-components/{p-38c861d5.system.entry.js → p-35b5ea63.system.entry.js} +1 -1
  278. package/pn-market-web-components/{p-ad952e14.system.entry.js → p-390895ec.system.entry.js} +1 -1
  279. package/pn-market-web-components/{p-738c179b.system.entry.js → p-39f2c4d3.system.entry.js} +1 -1
  280. package/pn-market-web-components/{p-a953d346.entry.js → p-3c2b6fb6.entry.js} +1 -1
  281. package/pn-market-web-components/{p-ca04e415.system.entry.js → p-3d0c3caa.system.entry.js} +1 -1
  282. package/pn-market-web-components/{p-7877ce39.system.entry.js → p-3ee0f67f.system.entry.js} +1 -1
  283. package/pn-market-web-components/{p-8e9e0c04.entry.js → p-4069761c.entry.js} +1 -1
  284. package/pn-market-web-components/{p-e5d9f268.entry.js → p-42ea5bd1.entry.js} +1 -1
  285. package/pn-market-web-components/{p-7364721d.system.entry.js → p-43b76595.system.entry.js} +1 -1
  286. package/pn-market-web-components/{p-1bf35bf0.entry.js → p-4572f290.entry.js} +1 -1
  287. package/pn-market-web-components/{p-1b4a75b3.system.entry.js → p-463a5975.system.entry.js} +1 -1
  288. package/pn-market-web-components/{p-e247fdf4.system.entry.js → p-476c4f58.system.entry.js} +1 -1
  289. package/pn-market-web-components/{p-6fe471aa.system.entry.js → p-48a38770.system.entry.js} +1 -1
  290. package/pn-market-web-components/{p-420c307b.system.js → p-48da3826.system.js} +1 -1
  291. package/pn-market-web-components/{p-759a2b20.system.entry.js → p-49896e47.system.entry.js} +1 -1
  292. package/pn-market-web-components/{p-4b510969.entry.js → p-4e73bb67.entry.js} +1 -1
  293. package/pn-market-web-components/{p-96729f36.system.entry.js → p-550b2b29.system.entry.js} +1 -1
  294. package/pn-market-web-components/p-583df48e.system.entry.js +1 -0
  295. package/pn-market-web-components/{p-7bf30d19.entry.js → p-5840be2e.entry.js} +1 -1
  296. package/pn-market-web-components/{p-153b4454.system.entry.js → p-592360ba.system.entry.js} +1 -1
  297. package/pn-market-web-components/{p-196b2316.system.entry.js → p-595e8f54.system.entry.js} +1 -1
  298. package/pn-market-web-components/{p-2744b30a.entry.js → p-5e61eb13.entry.js} +1 -1
  299. package/pn-market-web-components/{p-3e5d59f2.system.entry.js → p-609f1695.system.entry.js} +1 -1
  300. package/pn-market-web-components/{p-c02fc405.entry.js → p-6125c132.entry.js} +1 -1
  301. package/pn-market-web-components/{p-7ffa5533.system.js → p-6259e4f4.system.js} +1 -1
  302. package/pn-market-web-components/{p-59d44719.entry.js → p-63679401.entry.js} +1 -1
  303. package/pn-market-web-components/{p-c0961278.system.entry.js → p-63b48e94.system.entry.js} +1 -1
  304. package/pn-market-web-components/{p-4afba818.entry.js → p-64048a03.entry.js} +1 -1
  305. package/pn-market-web-components/{p-4f2bdae2.entry.js → p-64691d51.entry.js} +1 -1
  306. package/pn-market-web-components/{p-fec3dc66.entry.js → p-666d2bfb.entry.js} +1 -1
  307. package/pn-market-web-components/{p-4d2d81b8.system.entry.js → p-688d183e.system.entry.js} +1 -1
  308. package/pn-market-web-components/{p-ad7a00b6.system.entry.js → p-69342caf.system.entry.js} +1 -1
  309. package/pn-market-web-components/{p-a7d52aee.js → p-6a230cb1.js} +1 -1
  310. package/pn-market-web-components/{p-e6e7e18a.entry.js → p-6a71dc95.entry.js} +1 -1
  311. package/pn-market-web-components/{p-e05b6e0c.entry.js → p-6aab92c0.entry.js} +1 -1
  312. package/pn-market-web-components/{p-3aef506c.entry.js → p-6aaf35c7.entry.js} +1 -1
  313. package/pn-market-web-components/{p-f074da8f.system.js → p-6b02dc02.system.js} +1 -1
  314. package/pn-market-web-components/p-6d945626.system.entry.js +1 -0
  315. package/pn-market-web-components/{p-f02617fc.entry.js → p-6d9f011f.entry.js} +1 -1
  316. package/pn-market-web-components/{p-fdb1905d.js → p-746a2620.js} +1 -1
  317. package/pn-market-web-components/{p-7c1e5042.entry.js → p-7e6853a7.entry.js} +1 -1
  318. package/pn-market-web-components/{p-1024c80b.entry.js → p-80b04869.entry.js} +1 -1
  319. package/pn-market-web-components/{p-2ee328d2.entry.js → p-81876fba.entry.js} +1 -1
  320. package/pn-market-web-components/{p-81902554.system.entry.js → p-825bdb78.system.entry.js} +1 -1
  321. package/pn-market-web-components/{p-d3511e86.entry.js → p-83d7a808.entry.js} +1 -1
  322. package/pn-market-web-components/p-85101fc7.entry.js +1 -0
  323. package/pn-market-web-components/{p-ce1805f0.entry.js → p-865ee8f6.entry.js} +1 -1
  324. package/pn-market-web-components/{p-b3831534.entry.js → p-88fb2035.entry.js} +1 -1
  325. package/pn-market-web-components/p-8bafabe5.js +1 -0
  326. package/pn-market-web-components/{p-7c876907.entry.js → p-8c7787eb.entry.js} +1 -1
  327. package/pn-market-web-components/{p-9482937b.system.entry.js → p-8cb21818.system.entry.js} +1 -1
  328. package/pn-market-web-components/p-8d5a041f.js +1 -0
  329. package/pn-market-web-components/{p-0739fdcf.system.entry.js → p-8eb8e8b2.system.entry.js} +1 -1
  330. package/pn-market-web-components/{p-47576a14.system.entry.js → p-8f28f717.system.entry.js} +1 -1
  331. package/pn-market-web-components/{p-8cc12089.entry.js → p-9294451c.entry.js} +1 -1
  332. package/pn-market-web-components/{p-37abc8d3.system.entry.js → p-944d00e3.system.entry.js} +1 -1
  333. package/pn-market-web-components/{p-c86c624a.entry.js → p-94e96fcf.entry.js} +1 -1
  334. package/pn-market-web-components/{p-eab25822.entry.js → p-9556936e.entry.js} +1 -1
  335. package/pn-market-web-components/{p-62de103d.system.entry.js → p-9685af07.system.entry.js} +1 -1
  336. package/pn-market-web-components/{p-d2ebaf52.system.entry.js → p-98690006.system.entry.js} +1 -1
  337. package/pn-market-web-components/{p-b4416838.entry.js → p-9cfde6aa.entry.js} +1 -1
  338. package/pn-market-web-components/{p-83f39020.entry.js → p-9d0074fb.entry.js} +1 -1
  339. package/pn-market-web-components/{p-4e7d4e69.entry.js → p-9d331ab6.entry.js} +1 -1
  340. package/pn-market-web-components/{p-4529f4b7.system.entry.js → p-9db7d43b.system.entry.js} +1 -1
  341. package/pn-market-web-components/{p-38183dee.system.js → p-a0a92f86.system.js} +1 -1
  342. package/pn-market-web-components/p-a28fce54.system.js +1 -0
  343. package/pn-market-web-components/{p-4f1df02c.entry.js → p-a2ced6e6.entry.js} +1 -1
  344. package/pn-market-web-components/{p-1afc6f8f.entry.js → p-a53b3be1.entry.js} +1 -1
  345. package/pn-market-web-components/{p-1dc6c4ac.system.entry.js → p-a83c758d.system.entry.js} +1 -1
  346. package/pn-market-web-components/{p-3bc31e82.system.entry.js → p-a8c25cad.system.entry.js} +1 -1
  347. package/pn-market-web-components/{p-01a37a82.entry.js → p-aa485f7f.entry.js} +1 -1
  348. package/pn-market-web-components/{p-85ce2d47.system.entry.js → p-aad5018c.system.entry.js} +1 -1
  349. package/pn-market-web-components/{p-9e47435e.entry.js → p-b2fc3594.entry.js} +1 -1
  350. package/pn-market-web-components/{p-220140a0.entry.js → p-b407caff.entry.js} +1 -1
  351. package/pn-market-web-components/{p-28912c0c.system.entry.js → p-b49d0553.system.entry.js} +1 -1
  352. package/pn-market-web-components/{p-169ccf69.entry.js → p-b6301b42.entry.js} +1 -1
  353. package/pn-market-web-components/{p-7787ca3b.entry.js → p-b8266eeb.entry.js} +1 -1
  354. package/pn-market-web-components/{p-47239bce.system.entry.js → p-ba1cce09.system.entry.js} +1 -1
  355. package/pn-market-web-components/{p-52e8d0ec.system.entry.js → p-bb93f102.system.entry.js} +1 -1
  356. package/pn-market-web-components/p-bdcedfe9.system.js +1 -0
  357. package/pn-market-web-components/{p-612adfb3.system.entry.js → p-bf1f69fa.system.entry.js} +1 -1
  358. package/pn-market-web-components/{p-f1962610.js → p-c02ddf82.js} +1 -1
  359. package/pn-market-web-components/{p-a8aff7ab.system.entry.js → p-c1204325.system.entry.js} +1 -1
  360. package/pn-market-web-components/{p-d2ba5b69.entry.js → p-c1ec42a6.entry.js} +1 -1
  361. package/pn-market-web-components/{p-2cc52ba6.entry.js → p-c3015b3f.entry.js} +1 -1
  362. package/pn-market-web-components/{p-c06e3588.system.entry.js → p-c3899747.system.entry.js} +1 -1
  363. package/pn-market-web-components/{p-8aec3e9e.entry.js → p-c633a40e.entry.js} +1 -1
  364. package/pn-market-web-components/{p-5d2a19e3.entry.js → p-c6409b81.entry.js} +1 -1
  365. package/pn-market-web-components/{p-31b84367.system.entry.js → p-c6f91f94.system.entry.js} +1 -1
  366. package/pn-market-web-components/{p-81608e33.system.entry.js → p-cb9d36ab.system.entry.js} +1 -1
  367. package/pn-market-web-components/{p-3fab06aa.system.entry.js → p-cc5c611e.system.entry.js} +1 -1
  368. package/pn-market-web-components/{p-7a33e360.entry.js → p-cd8185a6.entry.js} +1 -1
  369. package/pn-market-web-components/{p-5afd892a.entry.js → p-cd8ae615.entry.js} +1 -1
  370. package/pn-market-web-components/{p-592b66fc.system.entry.js → p-d0c8d951.system.entry.js} +1 -1
  371. package/pn-market-web-components/{p-57d37022.js → p-d0e65d70.js} +1 -1
  372. package/pn-market-web-components/{p-969d310d.system.entry.js → p-d5c43a05.system.entry.js} +1 -1
  373. package/pn-market-web-components/{p-1bd7e641.entry.js → p-d6492b8a.entry.js} +1 -1
  374. package/pn-market-web-components/{p-e2613cc5.system.entry.js → p-d6893c90.system.entry.js} +1 -1
  375. package/pn-market-web-components/{p-4bd36d2c.system.entry.js → p-dc91c260.system.entry.js} +1 -1
  376. package/pn-market-web-components/{p-356a937e.system.entry.js → p-dd4efba9.system.entry.js} +1 -1
  377. package/pn-market-web-components/{p-793bb22f.system.entry.js → p-dda5e084.system.entry.js} +1 -1
  378. package/pn-market-web-components/{p-41f5086b.system.entry.js → p-e07ff731.system.entry.js} +1 -1
  379. package/pn-market-web-components/{p-46a4dbdd.system.entry.js → p-e13a6bab.system.entry.js} +1 -1
  380. package/pn-market-web-components/{p-2156e251.entry.js → p-e2892448.entry.js} +1 -1
  381. package/pn-market-web-components/{p-4b71d79d.system.entry.js → p-e4e67dad.system.entry.js} +1 -1
  382. package/pn-market-web-components/{p-d1150166.system.entry.js → p-e5c7627c.system.entry.js} +1 -1
  383. package/pn-market-web-components/{p-f4adb442.system.js → p-e5f99384.system.js} +1 -1
  384. package/pn-market-web-components/{p-5032302f.entry.js → p-e62c4259.entry.js} +1 -1
  385. package/pn-market-web-components/{p-743b1d06.system.entry.js → p-e64e95a8.system.entry.js} +1 -1
  386. package/pn-market-web-components/{p-0d0e9547.system.js → p-e76bd03c.system.js} +1 -1
  387. package/pn-market-web-components/{p-71740e7e.system.entry.js → p-e7a1e178.system.entry.js} +1 -1
  388. package/pn-market-web-components/{p-0c1a0814.system.entry.js → p-eaad04e5.system.entry.js} +1 -1
  389. package/pn-market-web-components/p-eb110830.js +1 -0
  390. package/pn-market-web-components/{p-56ac01d0.entry.js → p-eb42a545.entry.js} +1 -1
  391. package/pn-market-web-components/{p-1135350f.system.entry.js → p-eb9a3c2d.system.entry.js} +1 -1
  392. package/pn-market-web-components/{p-a400365f.entry.js → p-eba15c54.entry.js} +1 -1
  393. package/pn-market-web-components/{p-313658e7.entry.js → p-ed9dd574.entry.js} +1 -1
  394. package/pn-market-web-components/{p-e8b144ff.system.entry.js → p-eea5ac80.system.entry.js} +1 -1
  395. package/pn-market-web-components/{p-7e81b501.system.entry.js → p-f737524e.system.entry.js} +1 -1
  396. package/pn-market-web-components/{p-70cc4002.system.entry.js → p-f80e46eb.system.entry.js} +1 -1
  397. package/pn-market-web-components/{p-a4fcfc3c.entry.js → p-fab635c7.entry.js} +1 -1
  398. package/pn-market-web-components/{p-00287dc7.entry.js → p-fba12f1d.entry.js} +1 -1
  399. package/pn-market-web-components/{p-bed03b9c.system.entry.js → p-fbafd07a.system.entry.js} +1 -1
  400. package/pn-market-web-components/{p-76ce7256.entry.js → p-fc583d96.entry.js} +1 -1
  401. package/pn-market-web-components/{p-794af3d3.system.entry.js → p-fce10fa7.system.entry.js} +1 -1
  402. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  403. package/pn-market-web-components/pn-market-web-components.js +1 -1
  404. package/types/components/widgets/pn-link-list/pn-link-list.d.ts +17 -0
  405. package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice.d.ts +1 -0
  406. package/types/components.d.ts +25 -0
  407. package/esm-es5/pn-marketweb-siteheader-store-cea5016e.js +0 -1
  408. package/pn-market-web-components/p-18aca162.system.entry.js +0 -1
  409. package/pn-market-web-components/p-372b4cad.entry.js +0 -1
  410. package/pn-market-web-components/p-6f2e839c.js +0 -1
  411. package/pn-market-web-components/p-ba06f541.system.js +0 -1
  412. package/pn-market-web-components/p-d8e0d7e7.js +0 -1
  413. package/pn-market-web-components/p-f5eddbe2.js +0 -1
  414. package/pn-market-web-components/p-fcdb7381.system.js +0 -1
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,s,r){function i(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,n){function o(e){try{d(r.next(e))}catch(t){n(t)}}function l(e){try{d(r["throw"](e))}catch(t){n(t)}}function d(e){e.done?s(e.value):i(e.value).then(o,l)}d((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return d([e,t])}}function d(l){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(s=0)),s)try{if(r=1,i&&(n=l[0]&2?i["return"]:l[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;if(i=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:s.label++;return{value:l[1],done:false};case 5:s.label++;i=l[1];l=[0];continue;case 7:l=s.ops.pop();s.trys.pop();continue;default:if(!(n=s.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){s.label=l[1];break}if(l[0]===6&&s.label<n[1]){s.label=n[1];n=l;break}if(n&&s.label<n[2]){s.label=n[2];s.ops.push(l);break}if(n[2])s.ops.pop();s.trys.pop();continue}l=t.call(e,s)}catch(d){l=[6,d];i=0}finally{r=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-ee44c065.js";import{F as FetchHelper,M as MarketWebContextService}from"./FetchHelper-62dc55bf.js";import{d as debounce_1}from"./index-8976f360.js";var pnAddressAutofillCss="pn-address-autofill pn-marketweb-input{width:50%}pn-address-autofill .input-container-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-address-autofill .label-container{color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-address-autofill .autocomplete-items{position:absolute;border-radius:0.8rem;border:0.1rem solid #5E554A;width:100%;max-height:30rem;overflow-y:auto}pn-address-autofill .autocomplete-items:hover,pn-address-autofill .autocomplete-items :focus{border:0.1rem solid #00A0D6}pn-address-autofill .autocomplete-items div{padding:1.6rem;cursor:pointer;background-color:#fff;border:0.1rem solid transparent}pn-address-autofill .autocomplete-items div:first-child{border-radius:0.8rem 0.8rem 0 0}pn-address-autofill .autocomplete-items div:last-child{border-radius:0 0 0.8rem 0.8rem}pn-address-autofill .autocomplete-items div:hover{background-color:#e0f8ff}pn-address-autofill .autocomplete-items .autocomplete-active{background-color:#e0f8ff}";var PnAddressAutofill=function(){function e(e){var t=this;registerInstance(this,e);this.addresscomplete=createEvent(this,"addresscomplete",7);this.pnInputPostalCode=null;this.pnInputCity=null;this.pnInputStreetAddress=null;this.pnInputStreetNumber=null;this.postalCodeInputField=null;this.streetAddressInputField=null;this.streetNumberInputField=null;this.pnInputHiddenValue=null;this.endpointPath="/api/location/get-by-location";this._postalCodeProps=null;this._cityProps=null;this._streetAddressProps=null;this._streetNumberProps=null;this.fetchHelper=new FetchHelper("PostalCodeCityAutofill");this.filterStreetNames=function(e){var s=[];t.streetAdressArr=null;e.addresses.forEach((function(e){if(e.postalCode.postalCity===t.city&&!s.includes(e.street)){s.push(e.street)}}));t.streetAdressArr=s};this.filterStreetNumbers=function(e){var s=[];e.addresses.forEach((function(e){if(e.postalCode.postalCode===t.postalCode){var r=e.numberFrom,i=e.numberTo;var n=parseInt(r);var o=parseInt(i);for(var l=n;l<=o;l++){var d=l.toString();if(!s.includes(d)){s.push(l.toString())}}}}));t.streetNumberArr=s};this.market=null;this.environment=null;this.endpoint=null;this.cache=true;this.countryCode=null;this.postalCodeProps=null;this.cityProps=null;this.streetAddressProps=null;this.streetNumberProps=null;this.streetAdressArr=null;this.streetNumberArr=null;this.city=null;this.postalCode=null;this.streetAddress=null;this.streetNumber=null;this.fullAddress=null}e.prototype.componentWillLoad=function(){this.setInitialValues();this._postalCodeProps=this.setProps(this.postalCodeProps);this._cityProps=this.setProps(this.cityProps);this._streetAddressProps=this.setProps(this.streetAddressProps);this._streetNumberProps=this.setProps(this.streetNumberProps)};e.prototype.setProps=function(e){if(typeof e==="string"){return JSON.parse(e)}else{return e}};e.prototype.componentDidLoad=function(){this.postalCodeInputField=this.pnInputPostalCode.querySelector("input");this.streetAddressInputField=this.pnInputStreetAddress.querySelector("input");this.streetNumberInputField=this.pnInputStreetNumber.querySelector("input");this.addEventHandlers()};e.prototype.setInitialValues=function(e){if(e===void 0){e=window.location.href}return __awaiter(this,void 0,void 0,(function(){var t,s,r,i;return __generator(this,(function(n){switch(n.label){case 0:s=new MarketWebContextService(e);if(!!this.environment)return[3,2];r=this;return[4,s.getEnvironmentName()];case 1:r.environment=n.sent();n.label=2;case 2:if(!(!this.endpoint&&((t=this.environment)===null||t===void 0?void 0:t.indexOf("local"))===-1))return[3,4];i=this;return[4,s.getEndpoint(this.environment,this.market)];case 3:i.endpoint=n.sent();n.label=4;case 4:if(!this.endpoint){this.endpoint=""}return[2]}}))}))};e.prototype.addEventHandlers=function(){var e=debounce_1.debounce(this.fetchData.bind(this,this.postalCodeInputField),1e3);this.postalCodeInputField.addEventListener("keyup",e);this.streetAddressInputField.addEventListener("keyup",this.handleStreetAddressDropdown.bind(this));this.streetNumberInputField.addEventListener("focus",this.handleStreetNumberDropdown.bind(this));this.addFormFieldEvent()};e.prototype.addFormFieldEvent=function(){var e=this;var t=this.hostElement.querySelectorAll("input");t.forEach((function(t){["keyup","change"].forEach((function(s){var r=debounce_1.debounce(e.updateHiddenValue.bind(e),1e3);t.addEventListener(s,r)}))}))};e.prototype.updateHiddenValue=function(e){if(e.target===this.streetNumberInputField){this.streetNumber=this.streetNumberInputField.value}if(this.postalCode&&this.city&&this.streetAddress&&this.streetNumber){this.fullAddress="".concat(this.streetAddress," ").concat(this.streetNumber,", ").concat(this.city," ").concat(this.postalCode)}else{this.fullAddress=""}this.addresscomplete.emit(this.fullAddress)};e.prototype.fetchData=function(e,t){return __awaiter(this,void 0,void 0,(function(){var s,r,i,n,o,l,d,a;return __generator(this,(function(u){switch(u.label){case 0:if(t){t.preventDefault();if(t.key==="Tab"){if(this.city){return[2]}}}r="";i=t&&t.target===this.postalCodeInputField;n=e===this.streetAddressInputField&&this.city&&this.city.length;o=e===this.streetNumberInputField&&this.city&&this.city.length&&this.streetAddress&&this.streetAddress.length;if(i){r=this.postalCodeInputField.value;this.streetAdressArr=null;this.streetAddressInputField.value="";this.streetNumberArr=null;this.streetNumberInputField.value="";this.city=null;this.streetAddress=null;this.streetNumber=null}if(n){r="".concat(this.streetAddressInputField.value,", ").concat(this.city);this.streetNumberArr=null;this.streetNumberInputField.value="";this.streetNumber=null}if(o){this.streetAdressArr=null;r="".concat(this.streetAddress,", ").concat(this.city)}if(!(r.length>0))return[3,2];l=this.endpoint.lastIndexOf("/")===this.endpoint.length-1?this.endpoint.substring(0,this.endpoint.length-1):this.endpoint;d="".concat(l).concat(this.endpointPath,"?countryCode=").concat(this.countryCode,"&query=").concat(r);return[4,this.fetchHelper.fetchJson(d,{mode:"cors"},this.cache)];case 1:a=u.sent();if(a){if(i){this.city=a.postalCodes?(s=a.postalCodes[0])===null||s===void 0?void 0:s.postalCity:null}if(n&&a.addresses){this.postalCode=this.postalCodeInputField.value;this.filterStreetNames(a)}if(o&&a.addresses){this.filterStreetNumbers(a)}}u.label=2;case 2:return[2]}}))}))};e.prototype.handleStreetAddressDropdown=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(s){switch(s.label){case 0:t=e.target;if(!(t===this.streetAddressInputField&&t.value.length))return[3,2];if(!(!this.streetAdressArr||!this.streetAdressArr.length))return[3,2];return[4,this.fetchData(this.streetAddressInputField,null)];case 1:s.sent();s.label=2;case 2:if(!t.value||!t.value.length){this.streetAdressArr=null}if(this.streetAdressArr&&this.streetAdressArr.length){this.autoComplete(e,this.streetAdressArr)}return[2]}}))}))};e.prototype.handleStreetNumberDropdown=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(s){switch(s.label){case 0:e.preventDefault();t=e.target;if(!(t===this.streetNumberInputField))return[3,3];if(!(!this.streetNumberArr||!this.streetNumberArr.length))return[3,2];return[4,this.fetchData(this.streetNumberInputField,null)];case 1:s.sent();s.label=2;case 2:if(this.streetNumberArr){this.autoComplete(e,this.streetNumberArr)}s.label=3;case 3:return[2]}}))}))};e.prototype.autoComplete=function(e,t){var s=this;var r=e.target;if(t.length<1){return}var i=0;r.addEventListener("input",(function(){var e=r.value;s.closeAllLists(r);if(!e){return}i=-1;var n=document.createElement("div");n.setAttribute("id","autocomplete-list"+r.name);n.setAttribute("class","autocomplete-items");r.parentElement.appendChild(n);for(var o=0;o<t.length;o++){if(t[o].substring(0,e.length).toUpperCase()==e.toUpperCase()){var l=document.createElement("div");l.innerHTML="<strong>"+t[o].substring(0,e.length)+"</strong>";l.innerHTML+=t[o].substring(e.length);l.innerHTML+="<input type='hidden' value='"+t[o]+"'>";l.addEventListener("click",(function(e){var t=r.closest("pn-marketweb-input");var i=e.target;if(i.nodeName==="STRONG"){i=i.parentElement}t.value=i.getElementsByTagName("input")[0].value;if(r===s.streetNumberInputField){s.streetNumber=t.value}if(r===s.streetAddressInputField){s.streetAddress=t.value}s.closeAllLists(e.target);r.focus()}));n.appendChild(l)}}}));r.addEventListener("keydown",(function(e){var t=document.getElementById("autocomplete-list"+r.name);var n;if(t){n=t.getElementsByTagName("div")}else{n=t}if(e.keyCode==40){i++;s.addActive(n,i)}if(e.keyCode==38){i--;s.addActive(n,i)}if(e.keyCode==13){e.preventDefault();if(i>-1){if(n){n[i].click()}}}}))};e.prototype.closeAllLists=function(e){var t=document.getElementsByClassName("autocomplete-items");for(var s=0;s<t.length;s++){if(e!=t[s]){t[s].parentNode.removeChild(t[s])}}};e.prototype.addActive=function(e,t){if(!e)return;this.removeActive(e);if(t>=e.length)t=0;if(t<0)t=e.length-1;e[t].classList.add("autocomplete-active")};e.prototype.removeActive=function(e){for(var t=0;t<e.length;t++){e[t].classList.remove("autocomplete-active")}};e.prototype.render=function(){var e=this;var t,s,r,i,n,o,l,d,a,u,p,c,f,m,v,b,A;return h(Host,{class:"pn-address-autofill"},((t=this._postalCodeProps)===null||t===void 0?void 0:t.postalCodeCityLabel)?h("div",{class:"label-container"},h("label",null,"".concat(this._postalCodeProps.postalCodeCityLabel))):null,h("div",{class:"input-container-row"},h("pn-marketweb-input",{type:"text",name:(s=this._postalCodeProps)===null||s===void 0?void 0:s.postalCodeInputName,required:(r=this._postalCodeProps)===null||r===void 0?void 0:r.postalCodeInputRequired,placeholder:(i=this._postalCodeProps)===null||i===void 0?void 0:i.postalCodeInputPlaceholder,ref:function(t){return e.pnInputPostalCode=t},autocomplete:"off",helpertext:(n=this._postalCodeProps)===null||n===void 0?void 0:n.postalCodeInputHelpertext}),h("pn-marketweb-input",{type:"text",name:(o=this._cityProps)===null||o===void 0?void 0:o.cityInputName,disabled:true,value:this.city,placeholder:(l=this._cityProps)===null||l===void 0?void 0:l.cityInputPlaceholder,autocomplete:"off",helpertext:(d=this._cityProps)===null||d===void 0?void 0:d.cityInputHelpertext})),((a=this._streetAddressProps)===null||a===void 0?void 0:a.streetAddressNumberLabel)?h("div",{class:"label-container"},h("label",null,"".concat(this._streetAddressProps.streetAddressNumberLabel))):null,h("div",{class:"input-container-row"},h("pn-marketweb-input",{type:"text",name:(u=this._streetAddressProps)===null||u===void 0?void 0:u.streetAddressInputName,required:(p=this._streetAddressProps)===null||p===void 0?void 0:p.streetAddressInputRequired,value:this.streetAddress,placeholder:(c=this._streetAddressProps)===null||c===void 0?void 0:c.streetAddressInputPlaceholder,ref:function(t){return e.pnInputStreetAddress=t},autocomplete:"off",helpertext:(f=this._streetAddressProps)===null||f===void 0?void 0:f.streetAddressInputHelpertext}),h("pn-marketweb-input",{type:"text",name:(m=this._streetNumberProps)===null||m===void 0?void 0:m.streetNumberInputName,required:(v=this._streetNumberProps)===null||v===void 0?void 0:v.streetNumberInputRequired,value:this.streetNumber,placeholder:(b=this._streetNumberProps)===null||b===void 0?void 0:b.streetNumberInputPlaceholder,ref:function(t){return e.pnInputStreetNumber=t},autocomplete:"off",helpertext:(A=this._streetNumberProps)===null||A===void 0?void 0:A.streetNumberInputHelpertext})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnAddressAutofill.style=pnAddressAutofillCss;export{PnAddressAutofill as pn_address_autofill};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,s,r){function i(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,n){function o(e){try{d(r.next(e))}catch(t){n(t)}}function l(e){try{d(r["throw"](e))}catch(t){n(t)}}function d(e){e.done?s(e.value):i(e.value).then(o,l)}d((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return d([e,t])}}function d(l){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(s=0)),s)try{if(r=1,i&&(n=l[0]&2?i["return"]:l[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;if(i=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:s.label++;return{value:l[1],done:false};case 5:s.label++;i=l[1];l=[0];continue;case 7:l=s.ops.pop();s.trys.pop();continue;default:if(!(n=s.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){s.label=l[1];break}if(l[0]===6&&s.label<n[1]){s.label=n[1];n=l;break}if(n&&s.label<n[2]){s.label=n[2];s.ops.push(l);break}if(n[2])s.ops.pop();s.trys.pop();continue}l=t.call(e,s)}catch(d){l=[6,d];i=0}finally{r=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-be8c3299.js";import{F as FetchHelper,M as MarketWebContextService}from"./FetchHelper-62dc55bf.js";import{d as debounce_1}from"./index-8976f360.js";var pnAddressAutofillCss="pn-address-autofill pn-marketweb-input{width:50%}pn-address-autofill .input-container-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-address-autofill .label-container{color:#5E554A;font-size:0.875em;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:end;align-items:flex-end}pn-address-autofill .autocomplete-items{position:absolute;border-radius:0.8rem;border:0.1rem solid #5E554A;width:100%;max-height:30rem;overflow-y:auto}pn-address-autofill .autocomplete-items:hover,pn-address-autofill .autocomplete-items :focus{border:0.1rem solid #00A0D6}pn-address-autofill .autocomplete-items div{padding:1.6rem;cursor:pointer;background-color:#fff;border:0.1rem solid transparent}pn-address-autofill .autocomplete-items div:first-child{border-radius:0.8rem 0.8rem 0 0}pn-address-autofill .autocomplete-items div:last-child{border-radius:0 0 0.8rem 0.8rem}pn-address-autofill .autocomplete-items div:hover{background-color:#e0f8ff}pn-address-autofill .autocomplete-items .autocomplete-active{background-color:#e0f8ff}";var PnAddressAutofill=function(){function e(e){var t=this;registerInstance(this,e);this.addresscomplete=createEvent(this,"addresscomplete",7);this.pnInputPostalCode=null;this.pnInputCity=null;this.pnInputStreetAddress=null;this.pnInputStreetNumber=null;this.postalCodeInputField=null;this.streetAddressInputField=null;this.streetNumberInputField=null;this.pnInputHiddenValue=null;this.endpointPath="/api/location/get-by-location";this._postalCodeProps=null;this._cityProps=null;this._streetAddressProps=null;this._streetNumberProps=null;this.fetchHelper=new FetchHelper("PostalCodeCityAutofill");this.filterStreetNames=function(e){var s=[];t.streetAdressArr=null;e.addresses.forEach((function(e){if(e.postalCode.postalCity===t.city&&!s.includes(e.street)){s.push(e.street)}}));t.streetAdressArr=s};this.filterStreetNumbers=function(e){var s=[];e.addresses.forEach((function(e){if(e.postalCode.postalCode===t.postalCode){var r=e.numberFrom,i=e.numberTo;var n=parseInt(r);var o=parseInt(i);for(var l=n;l<=o;l++){var d=l.toString();if(!s.includes(d)){s.push(l.toString())}}}}));t.streetNumberArr=s};this.market=null;this.environment=null;this.endpoint=null;this.cache=true;this.countryCode=null;this.postalCodeProps=null;this.cityProps=null;this.streetAddressProps=null;this.streetNumberProps=null;this.streetAdressArr=null;this.streetNumberArr=null;this.city=null;this.postalCode=null;this.streetAddress=null;this.streetNumber=null;this.fullAddress=null}e.prototype.componentWillLoad=function(){this.setInitialValues();this._postalCodeProps=this.setProps(this.postalCodeProps);this._cityProps=this.setProps(this.cityProps);this._streetAddressProps=this.setProps(this.streetAddressProps);this._streetNumberProps=this.setProps(this.streetNumberProps)};e.prototype.setProps=function(e){if(typeof e==="string"){return JSON.parse(e)}else{return e}};e.prototype.componentDidLoad=function(){this.postalCodeInputField=this.pnInputPostalCode.querySelector("input");this.streetAddressInputField=this.pnInputStreetAddress.querySelector("input");this.streetNumberInputField=this.pnInputStreetNumber.querySelector("input");this.addEventHandlers()};e.prototype.setInitialValues=function(e){if(e===void 0){e=window.location.href}return __awaiter(this,void 0,void 0,(function(){var t,s,r,i;return __generator(this,(function(n){switch(n.label){case 0:s=new MarketWebContextService(e);if(!!this.environment)return[3,2];r=this;return[4,s.getEnvironmentName()];case 1:r.environment=n.sent();n.label=2;case 2:if(!(!this.endpoint&&((t=this.environment)===null||t===void 0?void 0:t.indexOf("local"))===-1))return[3,4];i=this;return[4,s.getEndpoint(this.environment,this.market)];case 3:i.endpoint=n.sent();n.label=4;case 4:if(!this.endpoint){this.endpoint=""}return[2]}}))}))};e.prototype.addEventHandlers=function(){var e=debounce_1.debounce(this.fetchData.bind(this,this.postalCodeInputField),1e3);this.postalCodeInputField.addEventListener("keyup",e);this.streetAddressInputField.addEventListener("keyup",this.handleStreetAddressDropdown.bind(this));this.streetNumberInputField.addEventListener("focus",this.handleStreetNumberDropdown.bind(this));this.addFormFieldEvent()};e.prototype.addFormFieldEvent=function(){var e=this;var t=this.hostElement.querySelectorAll("input");t.forEach((function(t){["keyup","change"].forEach((function(s){var r=debounce_1.debounce(e.updateHiddenValue.bind(e),1e3);t.addEventListener(s,r)}))}))};e.prototype.updateHiddenValue=function(e){if(e.target===this.streetNumberInputField){this.streetNumber=this.streetNumberInputField.value}if(this.postalCode&&this.city&&this.streetAddress&&this.streetNumber){this.fullAddress="".concat(this.streetAddress," ").concat(this.streetNumber,", ").concat(this.city," ").concat(this.postalCode)}else{this.fullAddress=""}this.addresscomplete.emit(this.fullAddress)};e.prototype.fetchData=function(e,t){return __awaiter(this,void 0,void 0,(function(){var s,r,i,n,o,l,d,a;return __generator(this,(function(u){switch(u.label){case 0:if(t){t.preventDefault();if(t.key==="Tab"){if(this.city){return[2]}}}r="";i=t&&t.target===this.postalCodeInputField;n=e===this.streetAddressInputField&&this.city&&this.city.length;o=e===this.streetNumberInputField&&this.city&&this.city.length&&this.streetAddress&&this.streetAddress.length;if(i){r=this.postalCodeInputField.value;this.streetAdressArr=null;this.streetAddressInputField.value="";this.streetNumberArr=null;this.streetNumberInputField.value="";this.city=null;this.streetAddress=null;this.streetNumber=null}if(n){r="".concat(this.streetAddressInputField.value,", ").concat(this.city);this.streetNumberArr=null;this.streetNumberInputField.value="";this.streetNumber=null}if(o){this.streetAdressArr=null;r="".concat(this.streetAddress,", ").concat(this.city)}if(!(r.length>0))return[3,2];l=this.endpoint.lastIndexOf("/")===this.endpoint.length-1?this.endpoint.substring(0,this.endpoint.length-1):this.endpoint;d="".concat(l).concat(this.endpointPath,"?countryCode=").concat(this.countryCode,"&query=").concat(r);return[4,this.fetchHelper.fetchJson(d,{mode:"cors"},this.cache)];case 1:a=u.sent();if(a){if(i){this.city=a.postalCodes?(s=a.postalCodes[0])===null||s===void 0?void 0:s.postalCity:null}if(n&&a.addresses){this.postalCode=this.postalCodeInputField.value;this.filterStreetNames(a)}if(o&&a.addresses){this.filterStreetNumbers(a)}}u.label=2;case 2:return[2]}}))}))};e.prototype.handleStreetAddressDropdown=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(s){switch(s.label){case 0:t=e.target;if(!(t===this.streetAddressInputField&&t.value.length))return[3,2];if(!(!this.streetAdressArr||!this.streetAdressArr.length))return[3,2];return[4,this.fetchData(this.streetAddressInputField,null)];case 1:s.sent();s.label=2;case 2:if(!t.value||!t.value.length){this.streetAdressArr=null}if(this.streetAdressArr&&this.streetAdressArr.length){this.autoComplete(e,this.streetAdressArr)}return[2]}}))}))};e.prototype.handleStreetNumberDropdown=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(s){switch(s.label){case 0:e.preventDefault();t=e.target;if(!(t===this.streetNumberInputField))return[3,3];if(!(!this.streetNumberArr||!this.streetNumberArr.length))return[3,2];return[4,this.fetchData(this.streetNumberInputField,null)];case 1:s.sent();s.label=2;case 2:if(this.streetNumberArr){this.autoComplete(e,this.streetNumberArr)}s.label=3;case 3:return[2]}}))}))};e.prototype.autoComplete=function(e,t){var s=this;var r=e.target;if(t.length<1){return}var i=0;r.addEventListener("input",(function(){var e=r.value;s.closeAllLists(r);if(!e){return}i=-1;var n=document.createElement("div");n.setAttribute("id","autocomplete-list"+r.name);n.setAttribute("class","autocomplete-items");r.parentElement.appendChild(n);for(var o=0;o<t.length;o++){if(t[o].substring(0,e.length).toUpperCase()==e.toUpperCase()){var l=document.createElement("div");l.innerHTML="<strong>"+t[o].substring(0,e.length)+"</strong>";l.innerHTML+=t[o].substring(e.length);l.innerHTML+="<input type='hidden' value='"+t[o]+"'>";l.addEventListener("click",(function(e){var t=r.closest("pn-marketweb-input");var i=e.target;if(i.nodeName==="STRONG"){i=i.parentElement}t.value=i.getElementsByTagName("input")[0].value;if(r===s.streetNumberInputField){s.streetNumber=t.value}if(r===s.streetAddressInputField){s.streetAddress=t.value}s.closeAllLists(e.target);r.focus()}));n.appendChild(l)}}}));r.addEventListener("keydown",(function(e){var t=document.getElementById("autocomplete-list"+r.name);var n;if(t){n=t.getElementsByTagName("div")}else{n=t}if(e.keyCode==40){i++;s.addActive(n,i)}if(e.keyCode==38){i--;s.addActive(n,i)}if(e.keyCode==13){e.preventDefault();if(i>-1){if(n){n[i].click()}}}}))};e.prototype.closeAllLists=function(e){var t=document.getElementsByClassName("autocomplete-items");for(var s=0;s<t.length;s++){if(e!=t[s]){t[s].parentNode.removeChild(t[s])}}};e.prototype.addActive=function(e,t){if(!e)return;this.removeActive(e);if(t>=e.length)t=0;if(t<0)t=e.length-1;e[t].classList.add("autocomplete-active")};e.prototype.removeActive=function(e){for(var t=0;t<e.length;t++){e[t].classList.remove("autocomplete-active")}};e.prototype.render=function(){var e=this;var t,s,r,i,n,o,l,d,a,u,p,c,f,m,v,b,A;return h(Host,{class:"pn-address-autofill"},((t=this._postalCodeProps)===null||t===void 0?void 0:t.postalCodeCityLabel)?h("div",{class:"label-container"},h("label",null,"".concat(this._postalCodeProps.postalCodeCityLabel))):null,h("div",{class:"input-container-row"},h("pn-marketweb-input",{type:"text",name:(s=this._postalCodeProps)===null||s===void 0?void 0:s.postalCodeInputName,required:(r=this._postalCodeProps)===null||r===void 0?void 0:r.postalCodeInputRequired,placeholder:(i=this._postalCodeProps)===null||i===void 0?void 0:i.postalCodeInputPlaceholder,ref:function(t){return e.pnInputPostalCode=t},autocomplete:"off",helpertext:(n=this._postalCodeProps)===null||n===void 0?void 0:n.postalCodeInputHelpertext}),h("pn-marketweb-input",{type:"text",name:(o=this._cityProps)===null||o===void 0?void 0:o.cityInputName,disabled:true,value:this.city,placeholder:(l=this._cityProps)===null||l===void 0?void 0:l.cityInputPlaceholder,autocomplete:"off",helpertext:(d=this._cityProps)===null||d===void 0?void 0:d.cityInputHelpertext})),((a=this._streetAddressProps)===null||a===void 0?void 0:a.streetAddressNumberLabel)?h("div",{class:"label-container"},h("label",null,"".concat(this._streetAddressProps.streetAddressNumberLabel))):null,h("div",{class:"input-container-row"},h("pn-marketweb-input",{type:"text",name:(u=this._streetAddressProps)===null||u===void 0?void 0:u.streetAddressInputName,required:(p=this._streetAddressProps)===null||p===void 0?void 0:p.streetAddressInputRequired,value:this.streetAddress,placeholder:(c=this._streetAddressProps)===null||c===void 0?void 0:c.streetAddressInputPlaceholder,ref:function(t){return e.pnInputStreetAddress=t},autocomplete:"off",helpertext:(f=this._streetAddressProps)===null||f===void 0?void 0:f.streetAddressInputHelpertext}),h("pn-marketweb-input",{type:"text",name:(m=this._streetNumberProps)===null||m===void 0?void 0:m.streetNumberInputName,required:(v=this._streetNumberProps)===null||v===void 0?void 0:v.streetNumberInputRequired,value:this.streetNumber,placeholder:(b=this._streetNumberProps)===null||b===void 0?void 0:b.streetNumberInputPlaceholder,ref:function(t){return e.pnInputStreetNumber=t},autocomplete:"off",helpertext:(A=this._streetNumberProps)===null||A===void 0?void 0:A.streetNumberInputHelpertext})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnAddressAutofill.style=pnAddressAutofillCss;export{PnAddressAutofill as pn_address_autofill};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";import{c as classnames}from"./index-45541632.js";import"./_commonjsHelpers-27f122dd.js";var pnAnimatedTileCss="pn-animated-tile .pn-animated-tile__container{position:relative;border-radius:2.4rem;height:56rem;cursor:default}pn-animated-tile .pn-animated-tile__content{position:relative;display:-ms-flexbox;display:flex;height:100%;width:100%;background-color:transparent}pn-animated-tile [slot=side-a],pn-animated-tile [slot=side-b]{position:absolute;-ms-flex-item-align:stretch;align-self:stretch;top:0;left:0;width:100%;height:100%}pn-animated-tile [slot=side-a]{padding:0;opacity:1}pn-animated-tile [slot=side-b]{z-index:-1;padding:2.4rem 2.4rem 7rem 2.4rem;opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}pn-animated-tile .pn-animated-tile__toggle{z-index:2;position:absolute;bottom:2.4rem;right:2.4rem;padding:0.8rem;border-radius:50%;border:none;cursor:pointer;background-color:#FFFFFF;-webkit-transition:background-color 0.45s ease-in-out;transition:background-color 0.45s ease-in-out}pn-animated-tile .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF;-webkit-transition:background-color 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s, -webkit-transform 0.45s ease-in-out 0.5s}pn-animated-tile .pn-animated-tile__toggle:hover{background-color:#e9e6e5}pn-animated-tile .pn-animated-tile__toggle:hover pn-icon{background-color:#e9e6e5}pn-animated-tile .button-tooltip{display:none}.cat-animate [slot=side-a],.cat-animate [slot=side-b]{-webkit-transition:opacity 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s, -webkit-transform 0.45s ease-in-out 0.5s}.cat-animate.fade [slot=side-a]{opacity:0;z-index:-1}.cat-animate.fade [slot=side-b]{z-index:1;opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-a]{opacity:1;-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-b]{opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}.cat-animate.toggle.animate pn-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}[data-cat-theme=white] .pn-animated-tile__container{background-color:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle{background-color:#00A0D6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon{background-color:#00A0D6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon svg>path{fill:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle:hover{background-color:#005D92}[data-cat-theme=white] .pn-animated-tile__toggle:hover pn-icon{background-color:#005D92}[data-cat-theme=white] .pn-animated-tile__toggle:focus,[data-cat-theme=white] .pn-animated-tile__toggle:focus-visible{outline-color:#005D92}[data-cat-theme=coral400] .pn-animated-tile__container{background-color:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon svg>path{fill:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle:focus,[data-cat-theme=coral400] .pn-animated-tile__toggle:focus-visible{outline-color:#F06365}[data-cat-theme=private] .pn-animated-tile__container{background-color:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon svg>path{fill:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle:focus,[data-cat-theme=private] .pn-animated-tile__toggle:focus-visible{outline-color:#00A0D6}[data-cat-theme=business] .pn-animated-tile__container{background-color:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon svg>path{fill:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle:focus,[data-cat-theme=business] .pn-animated-tile__toggle:focus-visible{outline-color:#0D234B}[data-cat-theme=hybrid] .pn-animated-tile__container{background-color:#e9e6e5}[data-cat-theme=hybrid] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon svg>path{fill:#005D92}[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus,[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus-visible{outline-color:#005D92}[data-cat-firstpage-only=true] [slot=side-b],[data-cat-firstpage-only=true] .pn-animated-tile__toggle{display:none}";var PnAnimatedTile=function(){function t(t){var e=this;registerInstance(this,t);this.onClickHandler=function(){e.toggled=!e.toggled};this.toggled=false;this.transitionClassName="";this.animateIcon=""}t.prototype.onToggledHandler=function(){this.transitionClassName=classnames({fade:this.toggled,"fade--reversed":!this.toggled});this.animateIcon=classnames({animate:this.toggled,"":!this.toggled})};t.prototype.render=function(){return h(Host,null,h("div",{class:"pn-animated-tile__container"},h("div",{class:"pn-animated-tile__content cat-animate ".concat(this.transitionClassName)},h("slot",{name:"side-a"}),h("slot",{name:"side-b"})),h("button",{type:"button","aria-label":"Read more",class:"pn-animated-tile__toggle cat-animate toggle ".concat(this.animateIcon),onClick:this.onClickHandler},h("pn-icon",{symbol:"plus"}))))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{toggled:["onToggledHandler"]}},enumerable:false,configurable:true});return t}();PnAnimatedTile.style=pnAnimatedTileCss;export{PnAnimatedTile as pn_animated_tile};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";import{c as classnames}from"./index-45541632.js";import"./_commonjsHelpers-27f122dd.js";var pnAnimatedTileCss="pn-animated-tile .pn-animated-tile__container{position:relative;border-radius:2.4rem;height:56rem;cursor:default}pn-animated-tile .pn-animated-tile__content{position:relative;display:-ms-flexbox;display:flex;height:100%;width:100%;background-color:transparent}pn-animated-tile [slot=side-a],pn-animated-tile [slot=side-b]{position:absolute;-ms-flex-item-align:stretch;align-self:stretch;top:0;left:0;width:100%;height:100%}pn-animated-tile [slot=side-a]{padding:0;opacity:1}pn-animated-tile [slot=side-b]{z-index:-1;padding:2.4rem 2.4rem 7rem 2.4rem;opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}pn-animated-tile .pn-animated-tile__toggle{z-index:2;position:absolute;bottom:2.4rem;right:2.4rem;padding:0.8rem;border-radius:50%;border:none;cursor:pointer;background-color:#FFFFFF;-webkit-transition:background-color 0.45s ease-in-out;transition:background-color 0.45s ease-in-out}pn-animated-tile .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF;-webkit-transition:background-color 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s;transition:background-color 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s, -webkit-transform 0.45s ease-in-out 0.5s}pn-animated-tile .pn-animated-tile__toggle:hover{background-color:#e9e6e5}pn-animated-tile .pn-animated-tile__toggle:hover pn-icon{background-color:#e9e6e5}pn-animated-tile .button-tooltip{display:none}.cat-animate [slot=side-a],.cat-animate [slot=side-b]{-webkit-transition:opacity 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s;transition:opacity 0.45s ease-in-out, transform 0.45s ease-in-out 0.5s, -webkit-transform 0.45s ease-in-out 0.5s}.cat-animate.fade [slot=side-a]{opacity:0;z-index:-1}.cat-animate.fade [slot=side-b]{z-index:1;opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-a]{opacity:1;-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-b]{opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}.cat-animate.toggle.animate pn-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}[data-cat-theme=white] .pn-animated-tile__container{background-color:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle{background-color:#00A0D6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon{background-color:#00A0D6}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon svg>path{fill:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle:hover{background-color:#005D92}[data-cat-theme=white] .pn-animated-tile__toggle:hover pn-icon{background-color:#005D92}[data-cat-theme=white] .pn-animated-tile__toggle:focus,[data-cat-theme=white] .pn-animated-tile__toggle:focus-visible{outline-color:#005D92}[data-cat-theme=coral400] .pn-animated-tile__container{background-color:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon svg>path{fill:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle:focus,[data-cat-theme=coral400] .pn-animated-tile__toggle:focus-visible{outline-color:#F06365}[data-cat-theme=private] .pn-animated-tile__container{background-color:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon svg>path{fill:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle:focus,[data-cat-theme=private] .pn-animated-tile__toggle:focus-visible{outline-color:#00A0D6}[data-cat-theme=business] .pn-animated-tile__container{background-color:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon svg>path{fill:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle:focus,[data-cat-theme=business] .pn-animated-tile__toggle:focus-visible{outline-color:#0D234B}[data-cat-theme=hybrid] .pn-animated-tile__container{background-color:#e9e6e5}[data-cat-theme=hybrid] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon svg>path{fill:#005D92}[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus,[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus-visible{outline-color:#005D92}[data-cat-firstpage-only=true] [slot=side-b],[data-cat-firstpage-only=true] .pn-animated-tile__toggle{display:none}";var PnAnimatedTile=function(){function t(t){var e=this;registerInstance(this,t);this.onClickHandler=function(){e.toggled=!e.toggled};this.toggled=false;this.transitionClassName="";this.animateIcon=""}t.prototype.onToggledHandler=function(){this.transitionClassName=classnames({fade:this.toggled,"fade--reversed":!this.toggled});this.animateIcon=classnames({animate:this.toggled,"":!this.toggled})};t.prototype.render=function(){return h(Host,null,h("div",{class:"pn-animated-tile__container"},h("div",{class:"pn-animated-tile__content cat-animate ".concat(this.transitionClassName)},h("slot",{name:"side-a"}),h("slot",{name:"side-b"})),h("button",{type:"button","aria-label":"Read more",class:"pn-animated-tile__toggle cat-animate toggle ".concat(this.animateIcon),onClick:this.onClickHandler},h("pn-icon",{symbol:"plus"}))))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{toggled:["onToggledHandler"]}},enumerable:false,configurable:true});return t}();PnAnimatedTile.style=pnAnimatedTileCss;export{PnAnimatedTile as pn_animated_tile};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnAppBannerCss="pn-app-banner .pn-app-banner__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:1rem;background-color:#F3F2F2;padding:1rem;margin:0 auto}pn-app-banner .pn-app-banner__sticky{position:relative;top:0;width:100%;z-index:999}pn-app-banner .icon-close:hover{cursor:pointer}pn-app-banner .pn-app-banner__icon{height:3.2rem}pn-app-banner .pn-app-banner__text{font-size:1.2rem;line-height:1}pn-app-banner .pn-app-banner__text span{font-weight:600}pn-app-banner .pn-app-banner__cta{margin-left:auto}pn-app-banner[data-is-closed=true]{display:none}";var PnAppBanner=function(){function e(e){var t=this;registerInstance(this,e);this.CLOSED_STORAGE_KEY="SmartAppBannerClosed";this.CLOSED_COOKIE_EXPIRY_DAYS=7;this.handleOnClose=function(){t.isClosed=true;if(t.isLocalStorageAvailable){localStorage.setItem(t.CLOSED_STORAGE_KEY,"true")}else{var e=new Date;e.setDate(e.getDate()+t.CLOSED_COOKIE_EXPIRY_DAYS);document.cookie="".concat(t.CLOSED_STORAGE_KEY,"=true; expires=").concat(e.toUTCString())}};this.appName=undefined;this.appDescription=undefined;this.ctaText=undefined;this.appleStoreLink=undefined;this.googleStoreLink=undefined;this.isClosed=false;this.storeLink=undefined;this.isLocalStorageAvailable=true}e.prototype.checkLocalStorage=function(){try{var e="__test__";localStorage.setItem(e,e);localStorage.removeItem(e)}catch(t){this.isLocalStorageAvailable=false}};e.prototype.detectDeviceAndSetStoreLink=function(){var e=navigator.userAgent;if(e.match(/Android/i)){this.storeLink=this.googleStoreLink}else if(e.match(/iPhone|iPad|iPod/i)){this.storeLink=this.appleStoreLink}else{this.storeLink=null;this.isClosed=true}};e.prototype.componentWillLoad=function(){this.checkLocalStorage();if(this.isLocalStorageAvailable){this.isClosed=localStorage.getItem(this.CLOSED_STORAGE_KEY)==="true"}else{var e=document.cookie.split(";");for(var t=0,n=e;t<n.length;t++){var i=n[t];var a=i.trim().split("="),r=a[0],l=a[1];if(r===this.CLOSED_STORAGE_KEY&&l==="true"){this.isClosed=true;break}}}if(!this.isClosed){this.detectDeviceAndSetStoreLink()}};e.prototype.render=function(){return h(Host,{"data-is-closed":this.isClosed?"true":"false"},h("div",{class:"pn-app-banner__wrapper pn-app-banner__sticky"},h("div",{class:"icon-close",onClick:this.handleOnClose},h("pn-icon",{symbol:"close-small",small:"false",color:"black"})),h("div",{class:"pn-app-banner__icon"},h("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("g",{"clip-path":"url(#clip0_17800_45416)"},h("path",{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",{id:"mask0_17800_45416",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32"},h("path",{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",{mask:"url(#mask0_17800_45416)"},h("path",{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",{d:"M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z",fill:"url(#paint0_linear_17800_45416)"}),h("path",{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",{filter:"url(#filter0_d_17800_45416)"},h("path",{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",{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",{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",{"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",null,h("filter",{id:"filter0_d_17800_45416",x:"-52.5938",y:"-48.5938",width:"137.188",height:"137.188",filterUnits:"userSpaceOnUse","color-interpolation-filters":"s-rGB"},h("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),h("feColorMatrix",{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",{dy:"4"}),h("feGaussianBlur",{stdDeviation:"30"}),h("feColorMatrix",{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",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_17800_45416"}),h("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_17800_45416",result:"shape"})),h("linearGradient",{id:"paint0_linear_17800_45416",x1:"29.2305",y1:"44.3441",x2:"51.5694",y2:"15.1782",gradientUnits:"userSpaceOnUse"},h("stop",{offset:"0.0800778","stop-color":"#0D244C"}),h("stop",{offset:"1","stop-color":"#0D234B"})),h("clipPath",{id:"clip0_17800_45416"},h("rect",{width:"32",height:"32",fill:"white"}))))),h("div",{class:"pn-app-banner__text"},h("span",null,this.appName),h("br",null),this.appDescription),h("div",{class:"pn-app-banner__cta"},h("pn-button",{small:true,href:this.storeLink},this.ctaText))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnAppBanner.style=pnAppBannerCss;export{PnAppBanner as pn_app_banner};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnAppBannerCss="pn-app-banner .pn-app-banner__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:1rem;background-color:#F3F2F2;padding:1rem;margin:0 auto}pn-app-banner .pn-app-banner__sticky{position:relative;top:0;width:100%;z-index:999}pn-app-banner .icon-close:hover{cursor:pointer}pn-app-banner .pn-app-banner__icon{height:3.2rem}pn-app-banner .pn-app-banner__text{font-size:1.2rem;line-height:1}pn-app-banner .pn-app-banner__text span{font-weight:600}pn-app-banner .pn-app-banner__cta{margin-left:auto}pn-app-banner[data-is-closed=true]{display:none}";var PnAppBanner=function(){function e(e){var t=this;registerInstance(this,e);this.CLOSED_STORAGE_KEY="SmartAppBannerClosed";this.CLOSED_COOKIE_EXPIRY_DAYS=7;this.handleOnClose=function(){t.isClosed=true;if(t.isLocalStorageAvailable){localStorage.setItem(t.CLOSED_STORAGE_KEY,"true")}else{var e=new Date;e.setDate(e.getDate()+t.CLOSED_COOKIE_EXPIRY_DAYS);document.cookie="".concat(t.CLOSED_STORAGE_KEY,"=true; expires=").concat(e.toUTCString())}};this.appName=undefined;this.appDescription=undefined;this.ctaText=undefined;this.appleStoreLink=undefined;this.googleStoreLink=undefined;this.isClosed=false;this.storeLink=undefined;this.isLocalStorageAvailable=true}e.prototype.checkLocalStorage=function(){try{var e="__test__";localStorage.setItem(e,e);localStorage.removeItem(e)}catch(t){this.isLocalStorageAvailable=false}};e.prototype.detectDeviceAndSetStoreLink=function(){var e=navigator.userAgent;if(e.match(/Android/i)){this.storeLink=this.googleStoreLink}else if(e.match(/iPhone|iPad|iPod/i)){this.storeLink=this.appleStoreLink}else{this.storeLink=null;this.isClosed=true}};e.prototype.componentWillLoad=function(){this.checkLocalStorage();if(this.isLocalStorageAvailable){this.isClosed=localStorage.getItem(this.CLOSED_STORAGE_KEY)==="true"}else{var e=document.cookie.split(";");for(var t=0,n=e;t<n.length;t++){var i=n[t];var a=i.trim().split("="),r=a[0],l=a[1];if(r===this.CLOSED_STORAGE_KEY&&l==="true"){this.isClosed=true;break}}}if(!this.isClosed){this.detectDeviceAndSetStoreLink()}};e.prototype.render=function(){return h(Host,{"data-is-closed":this.isClosed?"true":"false"},h("div",{class:"pn-app-banner__wrapper pn-app-banner__sticky"},h("div",{class:"icon-close",onClick:this.handleOnClose},h("pn-icon",{symbol:"close-small",small:"false",color:"black"})),h("div",{class:"pn-app-banner__icon"},h("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("g",{"clip-path":"url(#clip0_17800_45416)"},h("path",{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",{id:"mask0_17800_45416",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32"},h("path",{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",{mask:"url(#mask0_17800_45416)"},h("path",{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",{d:"M50.8125 14.1562H18.8125V46.1562H50.8125V14.1562Z",fill:"url(#paint0_linear_17800_45416)"}),h("path",{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",{filter:"url(#filter0_d_17800_45416)"},h("path",{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",{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",{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",{"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",null,h("filter",{id:"filter0_d_17800_45416",x:"-52.5938",y:"-48.5938",width:"137.188",height:"137.188",filterUnits:"userSpaceOnUse","color-interpolation-filters":"s-rGB"},h("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),h("feColorMatrix",{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",{dy:"4"}),h("feGaussianBlur",{stdDeviation:"30"}),h("feColorMatrix",{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",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_17800_45416"}),h("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_17800_45416",result:"shape"})),h("linearGradient",{id:"paint0_linear_17800_45416",x1:"29.2305",y1:"44.3441",x2:"51.5694",y2:"15.1782",gradientUnits:"userSpaceOnUse"},h("stop",{offset:"0.0800778","stop-color":"#0D244C"}),h("stop",{offset:"1","stop-color":"#0D234B"})),h("clipPath",{id:"clip0_17800_45416"},h("rect",{width:"32",height:"32",fill:"white"}))))),h("div",{class:"pn-app-banner__text"},h("span",null,this.appName),h("br",null),this.appDescription),h("div",{class:"pn-app-banner__cta"},h("pn-button",{small:true,href:this.storeLink},this.ctaText))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnAppBanner.style=pnAppBannerCss;export{PnAppBanner as pn_app_banner};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnBonusProgressbarLevelCss='pn-bonus-progressbar-level{position:absolute;width:0.1rem;left:50%}pn-bonus-progressbar-level::after{content:"";width:0.1rem;position:absolute;left:0;border-left:1px dashed #9B1C2E;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:3rem}pn-bonus-progressbar-level:not([current]):nth-child(odd)::after{height:7rem;margin-top:0.6rem}.progressbar-level-percentage{font-size:0.75em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:-3.2rem}[current]>.progressbar-level-percentage{display:none}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-percentage{top:-4.8rem}.progressbar-level-value{font-size:0.75em;white-space:nowrap;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:2.3rem}[current]>.progressbar-level-value{top:-3.2rem}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-value{top:4.2rem}';var PnBonusProgressbarLevel=function(){function e(e){registerInstance(this,e);this.current=false;this.value=0;this.bonuspercentage="";this.visualpercentage=0;this.percentage=0;this.max=0;this.min=0;this.currency=""}e.prototype.componentWillLoad=function(){this.max=parseInt(this.hostElement.parentElement.parentElement.getAttribute("max"),10);this.min=parseInt(this.hostElement.parentElement.parentElement.getAttribute("min"),10);this.currency=this.hostElement.parentElement.parentElement.getAttribute("currency");this.percentage=this.value/this.max*100;if(this.visualpercentage>0){return}this.visualpercentage=this.value===0?0:(this.value-this.min)/(this.max-this.min)*100};e.prototype.formatValue=function(){return"".concat(this.value.toLocaleString("sv-SE",{maximumFractionDigits:0})," ").concat(this.currency)};e.prototype.render=function(){return h(Host,{style:{left:"".concat(this.visualpercentage,"%")}},h("div",{class:"progressbar-level-percentage"},this.bonuspercentage),h("div",{class:"progressbar-level-value"},this.formatValue()))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnBonusProgressbarLevel.style=pnBonusProgressbarLevelCss;export{PnBonusProgressbarLevel as pn_bonus_progressbar_level};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnBonusProgressbarLevelCss='pn-bonus-progressbar-level{position:absolute;width:0.1rem;left:50%}pn-bonus-progressbar-level::after{content:"";width:0.1rem;position:absolute;left:0;border-left:1px dashed #9B1C2E;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:3rem}pn-bonus-progressbar-level:not([current]):nth-child(odd)::after{height:7rem;margin-top:0.6rem}.progressbar-level-percentage{font-size:0.75em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:-3.2rem}[current]>.progressbar-level-percentage{display:none}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-percentage{top:-4.8rem}.progressbar-level-value{font-size:0.75em;white-space:nowrap;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:2.3rem}[current]>.progressbar-level-value{top:-3.2rem}pn-bonus-progressbar-level:not([current]):nth-child(odd) .progressbar-level-value{top:4.2rem}';var PnBonusProgressbarLevel=function(){function e(e){registerInstance(this,e);this.current=false;this.value=0;this.bonuspercentage="";this.visualpercentage=0;this.percentage=0;this.max=0;this.min=0;this.currency=""}e.prototype.componentWillLoad=function(){this.max=parseInt(this.hostElement.parentElement.parentElement.getAttribute("max"),10);this.min=parseInt(this.hostElement.parentElement.parentElement.getAttribute("min"),10);this.currency=this.hostElement.parentElement.parentElement.getAttribute("currency");this.percentage=this.value/this.max*100;if(this.visualpercentage>0){return}this.visualpercentage=this.value===0?0:(this.value-this.min)/(this.max-this.min)*100};e.prototype.formatValue=function(){return"".concat(this.value.toLocaleString("sv-SE",{maximumFractionDigits:0})," ").concat(this.currency)};e.prototype.render=function(){return h(Host,{style:{left:"".concat(this.visualpercentage,"%")}},h("div",{class:"progressbar-level-percentage"},this.bonuspercentage),h("div",{class:"progressbar-level-value"},this.formatValue()))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnBonusProgressbarLevel.style=pnBonusProgressbarLevelCss;export{PnBonusProgressbarLevel as pn_bonus_progressbar_level};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnBonusProgressbarCss="pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:1.6rem}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-sumtext{margin-top:0.4rem;font-size:1.3rem;color:#5E554A}.bonusprogressbar-top-percentage{margin-left:0.8rem;padding:0}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";var PnBonusProgressbar=function(){function e(e){registerInstance(this,e);this.icon=null;this.heading="";this.sumtext=null;this.theme="blue";this.bonuspercentage="0%";this.currency="kr";this.value=0;this.min=0;this.max=0;this.valuepercentage=0;this.progresspercentage=0;this.levelValues=[];this.currentLevelAdjustedValue=0}e.prototype.componentWillLoad=function(){this.setInitialValues();this.setValuePercentage()};e.prototype.setInitialValues=function(){var e=Array.from(this.hostElement.querySelectorAll("pn-bonus-progressbar-level:not([current])"));this.currentLevelAdjustedValue=this.value;this.levelValues=e.map((function(e){return parseInt(e.getAttribute("value"),10)}));if(!this.max){if(this.levelValues&&this.levelValues.length>0){var r=this.levelValues.slice(-1)[0];var s=1.05;if(this.value>r){s=1.2}this.max=Math.floor(r*s)}}if(this.value>this.max){this.currentLevelAdjustedValue=100}};e.prototype.setValuePercentage=function(){this.valuepercentage=this.value/this.max*100;this.progresspercentage=(this.value-this.min)/(this.max-this.min)*100;if(this.progresspercentage<0){if(this.levelValues&&this.levelValues.length&&this.levelValues[0]<this.value){this.min=Math.floor(this.levelValues[0]*.95)}else{this.min=Math.floor(this.value*.95)}}if(this.progresspercentage>100){this.progresspercentage=100;var e=this.levelValues.slice(-1)[0];var r=1.05;if(this.value>e){r=1.2}this.max=Math.floor(e*r)}};e.prototype.iconColor=function(){switch(this.theme){case"red":return"coral700";case"blue":default:return"blue700"}};e.prototype.render=function(){return h(Host,null,h("div",{class:"bonusprogressbar-top"},this.icon?h("div",{class:"bonusprogressbar-top-icon"},h("pn-icon",{symbol:this.icon,small:"false",color:this.iconColor()})):{},h("div",{class:"bonusprogressbar-top-heading"},h("h4",{class:"bonusprogressbar-top-headline"},this.heading," ",h("strong",{class:"bonusprogressbar-top-percentage"},this.bonuspercentage)),this.sumtext?h("div",{class:"bonusprogressbar-sumtext"},this.sumtext):null)),h("div",{class:"bonusprogressbar-wrapper"},h("progress",{class:"bonusprogressbar-progress",value:this.progresspercentage,max:"100"}),h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{currentLevelAdjustedValue:["setValuePercentage"],value:["setValuePercentage"],min:["setValuePercentage"],max:["setValuePercentage"]}},enumerable:false,configurable:true});return e}();PnBonusProgressbar.style=pnBonusProgressbarCss;export{PnBonusProgressbar as pn_bonus_progressbar};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnBonusProgressbarCss="pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:1.6rem}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-sumtext{margin-top:0.4rem;font-size:1.3rem;color:#5E554A}.bonusprogressbar-top-percentage{margin-left:0.8rem;padding:0}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";var PnBonusProgressbar=function(){function e(e){registerInstance(this,e);this.icon=null;this.heading="";this.sumtext=null;this.theme="blue";this.bonuspercentage="0%";this.currency="kr";this.value=0;this.min=0;this.max=0;this.valuepercentage=0;this.progresspercentage=0;this.levelValues=[];this.currentLevelAdjustedValue=0}e.prototype.componentWillLoad=function(){this.setInitialValues();this.setValuePercentage()};e.prototype.setInitialValues=function(){var e=Array.from(this.hostElement.querySelectorAll("pn-bonus-progressbar-level:not([current])"));this.currentLevelAdjustedValue=this.value;this.levelValues=e.map((function(e){return parseInt(e.getAttribute("value"),10)}));if(!this.max){if(this.levelValues&&this.levelValues.length>0){var r=this.levelValues.slice(-1)[0];var s=1.05;if(this.value>r){s=1.2}this.max=Math.floor(r*s)}}if(this.value>this.max){this.currentLevelAdjustedValue=100}};e.prototype.setValuePercentage=function(){this.valuepercentage=this.value/this.max*100;this.progresspercentage=(this.value-this.min)/(this.max-this.min)*100;if(this.progresspercentage<0){if(this.levelValues&&this.levelValues.length&&this.levelValues[0]<this.value){this.min=Math.floor(this.levelValues[0]*.95)}else{this.min=Math.floor(this.value*.95)}}if(this.progresspercentage>100){this.progresspercentage=100;var e=this.levelValues.slice(-1)[0];var r=1.05;if(this.value>e){r=1.2}this.max=Math.floor(e*r)}};e.prototype.iconColor=function(){switch(this.theme){case"red":return"coral700";case"blue":default:return"blue700"}};e.prototype.render=function(){return h(Host,null,h("div",{class:"bonusprogressbar-top"},this.icon?h("div",{class:"bonusprogressbar-top-icon"},h("pn-icon",{symbol:this.icon,small:"false",color:this.iconColor()})):{},h("div",{class:"bonusprogressbar-top-heading"},h("h4",{class:"bonusprogressbar-top-headline"},this.heading," ",h("strong",{class:"bonusprogressbar-top-percentage"},this.bonuspercentage)),this.sumtext?h("div",{class:"bonusprogressbar-sumtext"},this.sumtext):null)),h("div",{class:"bonusprogressbar-wrapper"},h("progress",{class:"bonusprogressbar-progress",value:this.progresspercentage,max:"100"}),h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{currentLevelAdjustedValue:["setValuePercentage"],value:["setValuePercentage"],min:["setValuePercentage"],max:["setValuePercentage"]}},enumerable:false,configurable:true});return e}();PnBonusProgressbar.style=pnBonusProgressbarCss;export{PnBonusProgressbar as pn_bonus_progressbar};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnBreakpointsCss='pn-breakpoints{width:100%}pn-breakpoints .breakpoints--dotcom{width:100%;background-color:aliceblue;text-align:center;margin-bottom:2.4rem;background-color:aliceblue}pn-breakpoints .breakpoints--dotcom .reference::before{content:"less than 321"}@media screen and (min-width: 321px){pn-breakpoints .breakpoints--dotcom{background-color:yellow}pn-breakpoints .breakpoints--dotcom .reference::before{content:"321 (xs)"}}@media screen and (min-width: 576px){pn-breakpoints .breakpoints--dotcom{background-color:aqua}pn-breakpoints .breakpoints--dotcom .reference::before{content:"576 (sm)"}}@media screen and (min-width: 768px){pn-breakpoints .breakpoints--dotcom{background-color:red;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"768 (md)"}}@media screen and (min-width: 992px){pn-breakpoints .breakpoints--dotcom{background-color:green;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"992 (lg)"}}@media screen and (min-width: 1200px){pn-breakpoints .breakpoints--dotcom{background-color:blue;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1200 (xl)"}}@media screen and (min-width: 1640px){pn-breakpoints .breakpoints--dotcom{background-color:pink}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1640 (xxl)"}}@media screen and (min-width: 1920px){pn-breakpoints .breakpoints--dotcom{background-color:orange}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1920 (fhd)"}}';var PnBreakpoints=function(){function e(e){registerInstance(this,e);this.currentWidth=window.innerWidth;this.breakPointClass="dotcom"}e.prototype.handleViewportSizeChange=function(e){this.currentWidth=e.target.innerWidth};e.prototype.createBreakpointClass=function(){return"breakpoints--".concat(this.breakPointClass)};e.prototype.render=function(){return h(Host,null,h("div",{class:"breakpoints ".concat(this.createBreakpointClass()," ")},"".concat(this.currentWidth," px")," min-width: ",h("span",{class:"reference"}," px")))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnBreakpoints.style=pnBreakpointsCss;export{PnBreakpoints as pn_breakpoints};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnBreakpointsCss='pn-breakpoints{width:100%}pn-breakpoints .breakpoints--dotcom{width:100%;background-color:aliceblue;text-align:center;margin-bottom:2.4rem;background-color:aliceblue}pn-breakpoints .breakpoints--dotcom .reference::before{content:"less than 321"}@media screen and (min-width: 321px){pn-breakpoints .breakpoints--dotcom{background-color:yellow}pn-breakpoints .breakpoints--dotcom .reference::before{content:"321 (xs)"}}@media screen and (min-width: 576px){pn-breakpoints .breakpoints--dotcom{background-color:aqua}pn-breakpoints .breakpoints--dotcom .reference::before{content:"576 (sm)"}}@media screen and (min-width: 768px){pn-breakpoints .breakpoints--dotcom{background-color:red;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"768 (md)"}}@media screen and (min-width: 992px){pn-breakpoints .breakpoints--dotcom{background-color:green;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"992 (lg)"}}@media screen and (min-width: 1200px){pn-breakpoints .breakpoints--dotcom{background-color:blue;color:#fff}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1200 (xl)"}}@media screen and (min-width: 1640px){pn-breakpoints .breakpoints--dotcom{background-color:pink}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1640 (xxl)"}}@media screen and (min-width: 1920px){pn-breakpoints .breakpoints--dotcom{background-color:orange}pn-breakpoints .breakpoints--dotcom .reference::before{content:"1920 (fhd)"}}';var PnBreakpoints=function(){function e(e){registerInstance(this,e);this.currentWidth=window.innerWidth;this.breakPointClass="dotcom"}e.prototype.handleViewportSizeChange=function(e){this.currentWidth=e.target.innerWidth};e.prototype.createBreakpointClass=function(){return"breakpoints--".concat(this.breakPointClass)};e.prototype.render=function(){return h(Host,null,h("div",{class:"breakpoints ".concat(this.createBreakpointClass()," ")},"".concat(this.currentWidth," px")," min-width: ",h("span",{class:"reference"}," px")))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnBreakpoints.style=pnBreakpointsCss;export{PnBreakpoints as pn_breakpoints};
@@ -1,4 +1,4 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";import{g as getAugmentedNamespace,c as createCommonjsModule,a as commonjsGlobal}from"./_commonjsHelpers-27f122dd.js";
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";import{g as getAugmentedNamespace,c as createCommonjsModule,a as commonjsGlobal}from"./_commonjsHelpers-27f122dd.js";
2
2
  //! moment.js
3
3
  //! version : 2.29.4
4
4
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnChartsCardCss="pn-charts-card{width:100%;height:100%;display:-ms-flexbox;display:flex}pn-charts-card .pn-charts-card__wrapper{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:2.4rem;padding:2.4rem}@media screen and (min-width: 1200px){pn-charts-card .pn-charts-card__wrapper{padding:3.2rem}}pn-charts-card .pn-charts-card__heading__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;gap:0.8rem}pn-charts-card .pn-charts-card__heading{font-weight:700;font-size:2.4rem;line-height:110%}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__heading{font-size:3.2rem}}pn-charts-card .pn-charts-card__heading__highlight{font-weight:700;font-size:2.4rem;line-height:110%;color:#005D92}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__heading__highlight{font-size:3.2rem}}pn-charts-card .pn-charts-card__content__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}pn-charts-card .pn-charts-card__text__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;height:100%}pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:none}pn-charts-card .pn-charts-card__text__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}pn-charts-card .pn-charts-card__text__wrapper span{display:block;margin-bottom:5.4rem}pn-charts-card .pn-charts-card__preamble{font-weight:400;font-size:1.6rem;line-height:140%;-ms-flex-positive:1;flex-grow:1;margin-bottom:1.6rem}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__preamble{font-size:2rem}}pn-charts-card .pn-charts-card__source{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-charts-card .pn-charts-card__source label{background-color:#00A0D6;color:#FFFFFF;border-radius:0.4rem;font-weight:400;font-size:1rem;line-height:1;text-transform:uppercase;padding:0.4rem;margin-bottom:0.6rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source label{font-size:1.2rem;padding:0.6rem}}pn-charts-card .pn-charts-card__source .pn-chart-card__text__heading{font-weight:400;font-size:1.6rem;line-height:140%;color:#005D92;margin-bottom:0}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source .pn-chart-card__text__heading{font-size:2rem}}pn-charts-card .pn-charts-card__source a{text-decoration:none;color:#005D92;font-weight:500;font-size:1.6rem;text-decoration:none;color:#005D92;font-weight:400}pn-charts-card .pn-charts-card__source a:hover{text-decoration:underline}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source a{font-size:2rem}}pn-charts-card .pn-charts-card__source a pn-icon svg path{fill:#005D92}pn-charts-card .pn-charts-card__source a[target=_blank]:not(.pn-button):after{display:none}.fullwidth>pn-charts-card .pn-charts-card__wrapper{padding:2.4rem}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__wrapper{padding:4rem}}.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper{margin-bottom:3.2rem;gap:1.6rem}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper{-ms-flex-pack:start;justify-content:flex-start}}.fullwidth>pn-charts-card .pn-charts-card__heading,.fullwidth>pn-charts-card .pn-charts-card__heading__highlight{font-size:2.4rem}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__heading,.fullwidth>pn-charts-card .pn-charts-card__heading__highlight{font-size:3.2rem}}.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;gap:5.6rem}}@media screen and (min-width: 1200px){.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{gap:4rem}}@media screen and (min-width: 1640px){.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{gap:3.2rem}}.fullwidth>pn-charts-card .pn-charts-card__text__container{-ms-flex-pack:center;justify-content:center}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__text__container{width:100%}}.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--vertical{display:-ms-flexbox;display:flex}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--vertical{display:none}}.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:none}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:-ms-flexbox;display:flex}}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__preamble{-ms-flex-positive:0;flex-grow:0;font-size:2rem}}pn-charts-card[data-chart-color=blue]>.pn-charts-card__wrapper{background-color:#EFFBFF}pn-charts-card[data-chart-color=coral]>.pn-charts-card__wrapper{background-color:#FDEFEE}pn-charts-card[data-chart-color=green]>.pn-charts-card__wrapper{background-color:#DCF6E7}pn-charts-card[data-chart-color=white]>.pn-charts-card__wrapper{background-color:#FFFFFF}pn-charts-card[data-chart-color=gray]>.pn-charts-card__wrapper{background-color:#F9F8F8}";var PnChartsCard=function(){function r(r){var a=this;registerInstance(this,r);this.showCtaLinkText=function(){if(a.ctaLinkText){return h("a",{class:"link--animated",href:a.sourceUrl,rel:a.openInNewWindow?"noopener nofollower noreferrer":null,target:a.openInNewWindow?"_blank":null},a.ctaLinkText," ",h("pn-icon",{symbol:"arrow-right"}," "))}return null};this.header=undefined;this.highlight=undefined;this.preamble=undefined;this.label=undefined;this.source=undefined;this.sourceUrl=undefined;this.ctaLinkText=undefined;this.openInNewWindow=false}r.prototype.render=function(){return h(Host,null,h("slot",{name:"clickable-block-wrapper"}),h("div",{class:"pn-charts-card__wrapper"},h("div",{class:"pn-charts-card__heading__wrapper pn-charts-card__heading__wrapper--vertical"},h("div",{class:"pn-charts-card__heading"},this.header),h("div",{class:"pn-charts-card__heading__highlight"},this.highlight)),h("div",{class:"pn-charts-card__content__wrapper"},h("slot",{name:"chart"}),h("div",{class:"pn-charts-card__text__container"},h("div",{class:"pn-charts-card__heading__wrapper pn-charts-card__heading__wrapper--horizontal"},h("div",{class:"pn-charts-card__heading pn-charts-card__heading"},this.header),h("div",{class:"pn-charts-card__heading__highlight"},this.highlight)),h("span",{class:"pn-charts-card__preamble"},this.preamble),h("div",{class:"pn-charts-card__text__wrapper"},h("div",{class:"pn-charts-card__source"},h("label",null,this.label),h("h3",{class:"pn-chart-card__text__heading"},this.source),this.showCtaLinkText()))))))};Object.defineProperty(r.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();PnChartsCard.style=pnChartsCardCss;export{PnChartsCard as pn_charts_card};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnChartsCardCss="pn-charts-card{width:100%;height:100%;display:-ms-flexbox;display:flex}pn-charts-card .pn-charts-card__wrapper{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:2.4rem;padding:2.4rem}@media screen and (min-width: 1200px){pn-charts-card .pn-charts-card__wrapper{padding:3.2rem}}pn-charts-card .pn-charts-card__heading__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;gap:0.8rem}pn-charts-card .pn-charts-card__heading{font-weight:700;font-size:2.4rem;line-height:110%}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__heading{font-size:3.2rem}}pn-charts-card .pn-charts-card__heading__highlight{font-weight:700;font-size:2.4rem;line-height:110%;color:#005D92}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__heading__highlight{font-size:3.2rem}}pn-charts-card .pn-charts-card__content__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}pn-charts-card .pn-charts-card__text__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;height:100%}pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:none}pn-charts-card .pn-charts-card__text__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}pn-charts-card .pn-charts-card__text__wrapper span{display:block;margin-bottom:5.4rem}pn-charts-card .pn-charts-card__preamble{font-weight:400;font-size:1.6rem;line-height:140%;-ms-flex-positive:1;flex-grow:1;margin-bottom:1.6rem}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__preamble{font-size:2rem}}pn-charts-card .pn-charts-card__source{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-charts-card .pn-charts-card__source label{background-color:#00A0D6;color:#FFFFFF;border-radius:0.4rem;font-weight:400;font-size:1rem;line-height:1;text-transform:uppercase;padding:0.4rem;margin-bottom:0.6rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source label{font-size:1.2rem;padding:0.6rem}}pn-charts-card .pn-charts-card__source .pn-chart-card__text__heading{font-weight:400;font-size:1.6rem;line-height:140%;color:#005D92;margin-bottom:0}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source .pn-chart-card__text__heading{font-size:2rem}}pn-charts-card .pn-charts-card__source a{text-decoration:none;color:#005D92;font-weight:500;font-size:1.6rem;text-decoration:none;color:#005D92;font-weight:400}pn-charts-card .pn-charts-card__source a:hover{text-decoration:underline}@media screen and (min-width: 1640px){pn-charts-card .pn-charts-card__source a{font-size:2rem}}pn-charts-card .pn-charts-card__source a pn-icon svg path{fill:#005D92}pn-charts-card .pn-charts-card__source a[target=_blank]:not(.pn-button):after{display:none}.fullwidth>pn-charts-card .pn-charts-card__wrapper{padding:2.4rem}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__wrapper{padding:4rem}}.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper{margin-bottom:3.2rem;gap:1.6rem}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper{-ms-flex-pack:start;justify-content:flex-start}}.fullwidth>pn-charts-card .pn-charts-card__heading,.fullwidth>pn-charts-card .pn-charts-card__heading__highlight{font-size:2.4rem}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__heading,.fullwidth>pn-charts-card .pn-charts-card__heading__highlight{font-size:3.2rem}}.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;gap:5.6rem}}@media screen and (min-width: 1200px){.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{gap:4rem}}@media screen and (min-width: 1640px){.fullwidth>pn-charts-card .pn-charts-card__content__wrapper{gap:3.2rem}}.fullwidth>pn-charts-card .pn-charts-card__text__container{-ms-flex-pack:center;justify-content:center}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__text__container{width:100%}}.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--vertical{display:-ms-flexbox;display:flex}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--vertical{display:none}}.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:none}@media screen and (min-width: 992px){.fullwidth>pn-charts-card .pn-charts-card__heading__wrapper--horizontal{display:-ms-flexbox;display:flex}}@media screen and (min-width: 768px){.fullwidth>pn-charts-card .pn-charts-card__preamble{-ms-flex-positive:0;flex-grow:0;font-size:2rem}}pn-charts-card[data-chart-color=blue]>.pn-charts-card__wrapper{background-color:#EFFBFF}pn-charts-card[data-chart-color=coral]>.pn-charts-card__wrapper{background-color:#FDEFEE}pn-charts-card[data-chart-color=green]>.pn-charts-card__wrapper{background-color:#DCF6E7}pn-charts-card[data-chart-color=white]>.pn-charts-card__wrapper{background-color:#FFFFFF}pn-charts-card[data-chart-color=gray]>.pn-charts-card__wrapper{background-color:#F9F8F8}";var PnChartsCard=function(){function r(r){var a=this;registerInstance(this,r);this.showCtaLinkText=function(){if(a.ctaLinkText){return h("a",{class:"link--animated",href:a.sourceUrl,rel:a.openInNewWindow?"noopener nofollower noreferrer":null,target:a.openInNewWindow?"_blank":null},a.ctaLinkText," ",h("pn-icon",{symbol:"arrow-right"}," "))}return null};this.header=undefined;this.highlight=undefined;this.preamble=undefined;this.label=undefined;this.source=undefined;this.sourceUrl=undefined;this.ctaLinkText=undefined;this.openInNewWindow=false}r.prototype.render=function(){return h(Host,null,h("slot",{name:"clickable-block-wrapper"}),h("div",{class:"pn-charts-card__wrapper"},h("div",{class:"pn-charts-card__heading__wrapper pn-charts-card__heading__wrapper--vertical"},h("div",{class:"pn-charts-card__heading"},this.header),h("div",{class:"pn-charts-card__heading__highlight"},this.highlight)),h("div",{class:"pn-charts-card__content__wrapper"},h("slot",{name:"chart"}),h("div",{class:"pn-charts-card__text__container"},h("div",{class:"pn-charts-card__heading__wrapper pn-charts-card__heading__wrapper--horizontal"},h("div",{class:"pn-charts-card__heading pn-charts-card__heading"},this.header),h("div",{class:"pn-charts-card__heading__highlight"},this.highlight)),h("span",{class:"pn-charts-card__preamble"},this.preamble),h("div",{class:"pn-charts-card__text__wrapper"},h("div",{class:"pn-charts-card__source"},h("label",null,this.label),h("h3",{class:"pn-chart-card__text__heading"},this.source),this.showCtaLinkText()))))))};Object.defineProperty(r.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();PnChartsCard.style=pnChartsCardCss;export{PnChartsCard as pn_charts_card};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnChoiceButtonCss="pn-choice-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative;margin:0.2em 0.4em}pn-choice-button input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-button label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0.4rem 0.8rem;border:0.1rem solid #D3CECB;color:#005D92;font-weight:500;border-radius:0.8rem;text-align:center;cursor:pointer;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s;transition:background 0.2s, -webkit-box-shadow 0.1s;transition:box-shadow 0.1s, background 0.2s;transition:box-shadow 0.1s, background 0.2s, -webkit-box-shadow 0.1s}pn-choice-button label pn-illustration{display:inline-block;width:3rem;height:3rem;margin-right:0.9rem}pn-choice-button>input:checked+label.pn-choice-button{background:#E0F8FF;color:#005D92;border-color:#005D92;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13)}pn-choice-button>input:indeterminate+label.pn-choice-button{background:#FFFFFF;color:#005D92}pn-choice-button>input:hover+label.pn-choice-button{background:#E0F8FF}pn-choice-button>input:focus+label.pn-choice-button,pn-choice-button>input:active+label.pn-choice-button{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-choice-button>input:active+label.pn-choice-button{background:#8EDDF9}pn-choice-button>input:disabled+label.pn-choice-button{background-color:#D3CECB}pn-choice-button>input:checked+label.pn-choice-button:hover{background:#8EDDF9}pn-choice-button>input:checked+label.pn-choice-button:active{background:#8EDDF9;border:0.1rem solid #00A0D6}";var PnChoiceButton=function(){function e(e){registerInstance(this,e);this.value=undefined;this.name=undefined;this.choiceid=undefined;this.type="checkbox";this.disabled=false;this.checked=false;this.indeterminate=false}e.prototype.handlechange=function(){this.indeterminate=false};e.prototype.componentDidLoad=function(){this.checkAndSetIndeterminateState()};e.prototype.componentDidUpdate=function(){this.checkAndSetIndeterminateState()};e.prototype.checkAndSetIndeterminateState=function(){var e=this.hostElement.querySelector("#".concat(this.choiceid));if(e){e.indeterminate=this.indeterminate}};e.prototype.render=function(){return h(Host,null,h("input",{type:this.type,id:this.choiceid,value:this.value,name:this.name||this.choiceid,disabled:this.disabled,checked:this.checked}),h("label",{htmlFor:this.choiceid,class:"pn-choice-button"},h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnChoiceButton.style=pnChoiceButtonCss;export{PnChoiceButton as pn_choice_button};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnChoiceButtonCss="pn-choice-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative;margin:0.2em 0.4em}pn-choice-button input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-button label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0.4rem 0.8rem;border:0.1rem solid #D3CECB;color:#005D92;font-weight:500;border-radius:0.8rem;text-align:center;cursor:pointer;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s;transition:background 0.2s, -webkit-box-shadow 0.1s;transition:box-shadow 0.1s, background 0.2s;transition:box-shadow 0.1s, background 0.2s, -webkit-box-shadow 0.1s}pn-choice-button label pn-illustration{display:inline-block;width:3rem;height:3rem;margin-right:0.9rem}pn-choice-button>input:checked+label.pn-choice-button{background:#E0F8FF;color:#005D92;border-color:#005D92;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13)}pn-choice-button>input:indeterminate+label.pn-choice-button{background:#FFFFFF;color:#005D92}pn-choice-button>input:hover+label.pn-choice-button{background:#E0F8FF}pn-choice-button>input:focus+label.pn-choice-button,pn-choice-button>input:active+label.pn-choice-button{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-choice-button>input:active+label.pn-choice-button{background:#8EDDF9}pn-choice-button>input:disabled+label.pn-choice-button{background-color:#D3CECB}pn-choice-button>input:checked+label.pn-choice-button:hover{background:#8EDDF9}pn-choice-button>input:checked+label.pn-choice-button:active{background:#8EDDF9;border:0.1rem solid #00A0D6}";var PnChoiceButton=function(){function e(e){registerInstance(this,e);this.value=undefined;this.name=undefined;this.choiceid=undefined;this.type="checkbox";this.disabled=false;this.checked=false;this.indeterminate=false}e.prototype.handlechange=function(){this.indeterminate=false};e.prototype.componentDidLoad=function(){this.checkAndSetIndeterminateState()};e.prototype.componentDidUpdate=function(){this.checkAndSetIndeterminateState()};e.prototype.checkAndSetIndeterminateState=function(){var e=this.hostElement.querySelector("#".concat(this.choiceid));if(e){e.indeterminate=this.indeterminate}};e.prototype.render=function(){return h(Host,null,h("input",{type:this.type,id:this.choiceid,value:this.value,name:this.name||this.choiceid,disabled:this.disabled,checked:this.checked}),h("label",{htmlFor:this.choiceid,class:"pn-choice-button"},h("slot",null)))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnChoiceButton.style=pnChoiceButtonCss;export{PnChoiceButton as pn_choice_button};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnCtaBlockCss="pn-cta-block .cta-block{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;border-radius:2.4rem;padding:3.2rem 2.4rem;width:100%}@media screen and (min-width: 768px){pn-cta-block .cta-block{-ms-flex-direction:row;flex-direction:row;padding:2.4rem}}@media screen and (min-width: 1140px){pn-cta-block .cta-block{margin-right:auto;margin-left:auto;max-width:95%}}@media screen and (min-width: 1440px){pn-cta-block .cta-block{max-width:90%}}pn-cta-block .cta-block[pn-background-color=blue25]{background-color:#EFFBFF}pn-cta-block .cta-block[pn-background-color=coral50]{background-color:#FDEFEE}pn-cta-block .cta-block[pn-background-color=gray25]{background-color:#F9F8F8}pn-cta-block .cta-block[pn-background-color=green25]{background-color:#EDFBF3}pn-cta-block .cta-block--content-top .cta-block__content{-ms-flex-pack:start;justify-content:flex-start}@media screen and (min-width: 768px){pn-cta-block .cta-block--large .cta-block__heading{font-size:3.6rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block--large .cta-block__text{font-size:2rem}}pn-cta-block .cta-block--small{margin-right:auto;margin-left:auto;width:auto}@media screen and (min-width: 992px){pn-cta-block .cta-block--small{max-width:75%}}pn-cta-block .cta-block--center{-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;padding:3.2rem 2.4rem;text-align:center}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__content{max-width:74rem;padding:0}}pn-cta-block .cta-block--center .cta-block__action{margin-top:0.8rem}pn-cta-block .cta-block--center .cta-block__action>[slot=cta-button]{gap:0.8rem}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__action{-ms-flex-direction:row;flex-direction:row;gap:2.4rem;margin-top:1.6rem}pn-cta-block .cta-block--center .cta-block__action.cta-block__button{margin-bottom:0}pn-cta-block .cta-block--center .cta-block__action>[slot=cta-button]{-ms-flex-direction:row;flex-direction:row;gap:2.4rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__image-wrapper{display:block}}pn-cta-block .cta-block--center .cta-block__image-wrapper>[slot=illustration]{padding-right:0}pn-cta-block .cta-block__image-wrapper{margin-bottom:1.6rem}pn-cta-block .cta-block__image-wrapper>[slot=illustration]>picture>img{border-radius:0.8rem;max-width:100%}@media screen and (min-width: 768px){pn-cta-block .cta-block__image-wrapper{display:none;max-width:20%}}@media screen and (min-width: 992px){pn-cta-block .cta-block__image-wrapper{display:block;margin-bottom:0}pn-cta-block .cta-block__image-wrapper>[slot=illustration]{padding-right:3.2rem}}pn-cta-block .cta-block__content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}@media screen and (min-width: 768px){pn-cta-block .cta-block__content{padding-right:2.4rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block__content .cta-block__heading{max-width:74rem}}pn-cta-block .cta-block__content .cta-block__text{margin-bottom:2.4rem}@media screen and (min-width: 768px){pn-cta-block .cta-block__content .cta-block__text{max-width:74rem}}pn-cta-block .cta-block__heading{margin-bottom:0.8rem}pn-cta-block .cta-block__action{display:-ms-flexbox;display:flex}pn-cta-block .cta-block__action>[slot=cta-button]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;row-gap:1.6rem}@media screen and (min-width: 768px){pn-cta-block .cta-block__action>[slot=cta-button]{gap:1.6rem;margin-top:0}}pn-cta-block .cta-block__action>[slot=cta-button]>a{color:#005D92;font-weight:500;font-size:1.6rem;padding:0.1rem;text-decoration:none}pn-cta-block .cta-block__action>[slot=cta-button]>a pn-icon svg{-webkit-transition:-webkit-transform 0.3s ease-in-out;transition:-webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out}pn-cta-block .cta-block__action>[slot=cta-button]>a pn-icon svg path{fill:#005D92}pn-cta-block .cta-block__action>[slot=cta-button]>a:hover pn-icon svg{-webkit-transition:-webkit-transform 0.3s ease-in-out;transition:-webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:translateX(0.3rem);transform:translateX(0.3rem)}pn-cta-block .cta-block__action>[slot=cta-button]>a:hover pn-icon svg path{fill:#005D92}";var PnCtaBlock=function(){function t(t){registerInstance(this,t);this.heading=null;this.bodyText=null;this.pnBackgroundColor=null;this.isLarge=false;this.isCentered=false;this.isSmall=false;this.contentTop=false;this.hasIllustrationSlot=true;this.hasButtonSlot=true}t.prototype.componentWillLoad=function(){this.hasIllustrationSlot=!!this.hostElement.querySelector('[slot="illustration"]');this.hasButtonSlot=!!this.hostElement.querySelector('[slot="cta-button"]')};t.prototype.render=function(){return h(Host,null,h("div",{"pn-background-color":this.pnBackgroundColor,class:"cta-block ".concat(this.isLarge?"cta-block--large":""," ").concat(this.isCentered?"cta-block--center":""," ").concat(this.isSmall?"cta-block--small":""," ").concat(this.contentTop?"cta-block--content-top":"")},h("div",{class:"cta-block__image-wrapper"},h("slot",{name:"illustration"})),h("div",{class:"cta-block__content"},h("h2",{class:"cta-block__heading"},this.heading),h("p",{class:"cta-block__text"},this.bodyText)),h("div",{class:"cta-block__action"},h("slot",{name:"cta-button"}))))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();PnCtaBlock.style=pnCtaBlockCss;export{PnCtaBlock as pn_cta_block};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnCtaBlockCss="pn-cta-block .cta-block{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;border-radius:2.4rem;padding:3.2rem 2.4rem;width:100%}@media screen and (min-width: 768px){pn-cta-block .cta-block{-ms-flex-direction:row;flex-direction:row;padding:2.4rem}}@media screen and (min-width: 1140px){pn-cta-block .cta-block{margin-right:auto;margin-left:auto;max-width:95%}}@media screen and (min-width: 1440px){pn-cta-block .cta-block{max-width:90%}}pn-cta-block .cta-block[pn-background-color=blue25]{background-color:#EFFBFF}pn-cta-block .cta-block[pn-background-color=coral50]{background-color:#FDEFEE}pn-cta-block .cta-block[pn-background-color=gray25]{background-color:#F9F8F8}pn-cta-block .cta-block[pn-background-color=green25]{background-color:#EDFBF3}pn-cta-block .cta-block--content-top .cta-block__content{-ms-flex-pack:start;justify-content:flex-start}@media screen and (min-width: 768px){pn-cta-block .cta-block--large .cta-block__heading{font-size:3.6rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block--large .cta-block__text{font-size:2rem}}pn-cta-block .cta-block--small{margin-right:auto;margin-left:auto;width:auto}@media screen and (min-width: 992px){pn-cta-block .cta-block--small{max-width:75%}}pn-cta-block .cta-block--center{-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;gap:1.6rem;padding:3.2rem 2.4rem;text-align:center}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__content{max-width:74rem;padding:0}}pn-cta-block .cta-block--center .cta-block__action{margin-top:0.8rem}pn-cta-block .cta-block--center .cta-block__action>[slot=cta-button]{gap:0.8rem}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__action{-ms-flex-direction:row;flex-direction:row;gap:2.4rem;margin-top:1.6rem}pn-cta-block .cta-block--center .cta-block__action.cta-block__button{margin-bottom:0}pn-cta-block .cta-block--center .cta-block__action>[slot=cta-button]{-ms-flex-direction:row;flex-direction:row;gap:2.4rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block--center .cta-block__image-wrapper{display:block}}pn-cta-block .cta-block--center .cta-block__image-wrapper>[slot=illustration]{padding-right:0}pn-cta-block .cta-block__image-wrapper{margin-bottom:1.6rem}pn-cta-block .cta-block__image-wrapper>[slot=illustration]>picture>img{border-radius:0.8rem;max-width:100%}@media screen and (min-width: 768px){pn-cta-block .cta-block__image-wrapper{display:none;max-width:20%}}@media screen and (min-width: 992px){pn-cta-block .cta-block__image-wrapper{display:block;margin-bottom:0}pn-cta-block .cta-block__image-wrapper>[slot=illustration]{padding-right:3.2rem}}pn-cta-block .cta-block__content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}@media screen and (min-width: 768px){pn-cta-block .cta-block__content{padding-right:2.4rem}}@media screen and (min-width: 768px){pn-cta-block .cta-block__content .cta-block__heading{max-width:74rem}}pn-cta-block .cta-block__content .cta-block__text{margin-bottom:2.4rem}@media screen and (min-width: 768px){pn-cta-block .cta-block__content .cta-block__text{max-width:74rem}}pn-cta-block .cta-block__heading{margin-bottom:0.8rem}pn-cta-block .cta-block__action{display:-ms-flexbox;display:flex}pn-cta-block .cta-block__action>[slot=cta-button]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;row-gap:1.6rem}@media screen and (min-width: 768px){pn-cta-block .cta-block__action>[slot=cta-button]{gap:1.6rem;margin-top:0}}pn-cta-block .cta-block__action>[slot=cta-button]>a{color:#005D92;font-weight:500;font-size:1.6rem;padding:0.1rem;text-decoration:none}pn-cta-block .cta-block__action>[slot=cta-button]>a pn-icon svg{-webkit-transition:-webkit-transform 0.3s ease-in-out;transition:-webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out}pn-cta-block .cta-block__action>[slot=cta-button]>a pn-icon svg path{fill:#005D92}pn-cta-block .cta-block__action>[slot=cta-button]>a:hover pn-icon svg{-webkit-transition:-webkit-transform 0.3s ease-in-out;transition:-webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:translateX(0.3rem);transform:translateX(0.3rem)}pn-cta-block .cta-block__action>[slot=cta-button]>a:hover pn-icon svg path{fill:#005D92}";var PnCtaBlock=function(){function t(t){registerInstance(this,t);this.heading=null;this.bodyText=null;this.pnBackgroundColor=null;this.isLarge=false;this.isCentered=false;this.isSmall=false;this.contentTop=false;this.hasIllustrationSlot=true;this.hasButtonSlot=true}t.prototype.componentWillLoad=function(){this.hasIllustrationSlot=!!this.hostElement.querySelector('[slot="illustration"]');this.hasButtonSlot=!!this.hostElement.querySelector('[slot="cta-button"]')};t.prototype.render=function(){return h(Host,null,h("div",{"pn-background-color":this.pnBackgroundColor,class:"cta-block ".concat(this.isLarge?"cta-block--large":""," ").concat(this.isCentered?"cta-block--center":""," ").concat(this.isSmall?"cta-block--small":""," ").concat(this.contentTop?"cta-block--content-top":"")},h("div",{class:"cta-block__image-wrapper"},h("slot",{name:"illustration"})),h("div",{class:"cta-block__content"},h("h2",{class:"cta-block__heading"},this.heading),h("p",{class:"cta-block__text"},this.bodyText)),h("div",{class:"cta-block__action"},h("slot",{name:"cta-button"}))))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();PnCtaBlock.style=pnCtaBlockCss;export{PnCtaBlock as pn_cta_block};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnCustomernumberSelectorOptionCss="pn-customernumber-selector-option{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;overflow:hidden}pn-customernumber-selector-option:last-of-type{border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem}.customernumberoption{overflow:hidden;max-width:100%;text-decoration:none;background:#FFFFFF;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;padding:1.6rem 1rem}.customernumberoption:hover,.customernumberoption:focus,.customernumberoption:active{background:#E0F8FF;text-decoration:none}.customernumberoption-text{font-weight:700;color:#2D2013}.customernumberoption-title{display:block;font-size:1em;color:#005D92;font-weight:700}.customernumberoption-description{font-size:0.75em;color:#5E554A;font-weight:normal}";var PnProfileSelectorOption=function(){function e(e){registerInstance(this,e);this.heading="";this.description="";this.url=""}e.prototype.render=function(){return h(Host,null,h("a",{class:"customernumberoption",href:this.url},h("span",{class:"customernumberoption-text"},h("span",{class:"customernumberoption-title"},this.heading),h("span",{class:"customernumberoption-description"},this.description),h("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileSelectorOption.style=pnCustomernumberSelectorOptionCss;export{PnProfileSelectorOption as pn_customernumber_selector_option};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnCustomernumberSelectorOptionCss="pn-customernumber-selector-option{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;overflow:hidden}pn-customernumber-selector-option:last-of-type{border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem}.customernumberoption{overflow:hidden;max-width:100%;text-decoration:none;background:#FFFFFF;-webkit-transition:background 0.15s ease;transition:background 0.15s ease;padding:1.6rem 1rem}.customernumberoption:hover,.customernumberoption:focus,.customernumberoption:active{background:#E0F8FF;text-decoration:none}.customernumberoption-text{font-weight:700;color:#2D2013}.customernumberoption-title{display:block;font-size:1em;color:#005D92;font-weight:700}.customernumberoption-description{font-size:0.75em;color:#5E554A;font-weight:normal}";var PnProfileSelectorOption=function(){function e(e){registerInstance(this,e);this.heading="";this.description="";this.url=""}e.prototype.render=function(){return h(Host,null,h("a",{class:"customernumberoption",href:this.url},h("span",{class:"customernumberoption-text"},h("span",{class:"customernumberoption-title"},this.heading),h("span",{class:"customernumberoption-description"},this.description),h("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnProfileSelectorOption.style=pnCustomernumberSelectorOptionCss;export{PnProfileSelectorOption as pn_customernumber_selector_option};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-ee44c065.js";var translations={sv:{toggleLinkTitleText:"Välj kundnummer"},en:{toggleLinkTitleText:"Choose customernumber"},da:{toggleLinkTitleText:"Vælg kundenummer"},no:{toggleLinkTitleText:"Velg kundenummer"},fi:{toggleLinkTitleText:"Valitse asiakasnumero"},de:{toggleLinkTitleText:"Kundennummer auswählen"}};var pnCustomernumberSelectorCss=".customernumber-container{position:relative;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:0.8rem;border:0.1rem solid #969087;-webkit-transition:border 0.15s ease;transition:border 0.15s ease}.customernumber-container:hover,pn-customernumber-selector[open] .customernumber-container{border-color:#005D92}pn-customernumber-selector[open] .customernumber-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.customernumber-toggle{display:-ms-flexbox;display:flex;z-index:11;position:relative;margin:0;border-radius:0.8rem;padding:1rem;border:0;background:transparent;font-size:1em;text-align:left;outline:0;cursor:pointer}.customernumber-toggle pn-icon{-ms-flex-item-align:center;align-self:center}.customernumber-selected{-ms-flex-positive:1;flex-grow:1;max-width:calc(100% - 2.4rem);overflow:hidden}.customernumber-selected-title{color:#005D92}.customernumber-selected-description{font-size:0.875em;width:100%;overflow:hidden;text-overflow:ellipsis}.customernumber-options{position:absolute;z-index:10;left:-0.1rem;right:-0.1rem;top:100%;border:0.1rem solid #005D92;border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem;max-height:0;opacity:0;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;overflow-y:auto}pn-customernumber-selector[open] .customernumber-options{opacity:1;-webkit-transition-delay:0s;transition-delay:0s;max-height:500rem}";var PnCustomernumberSelector=function(){function e(e){registerInstance(this,e);this.language="sv";this.open=false;this.heading="";this.description="";this.i18n=translations["en"]}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){this.setTranslations()};e.prototype.setTranslations=function(){if(this.language&&translations[this.language]){this.i18n=translations[this.language]}};e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"customernumber-container"},h("button",{class:"customernumber-toggle","aria-label":this.i18n.toggleLinkTitleText,onClick:function(){return e.open=!e.open}},h("div",{class:"customernumber-selected"},h("strong",{class:"customernumber-selected-title"},this.heading),h("div",{class:"customernumber-selected-description"},this.description)),h("pn-icon",{symbol:this.open?"angle-up":"angle-down",small:"false",color:"blue700"})),h("div",{class:"customernumber-options"},h("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnCustomernumberSelector.style=pnCustomernumberSelectorCss;export{PnCustomernumberSelector as pn_customernumber_selector};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-be8c3299.js";var translations={sv:{toggleLinkTitleText:"Välj kundnummer"},en:{toggleLinkTitleText:"Choose customernumber"},da:{toggleLinkTitleText:"Vælg kundenummer"},no:{toggleLinkTitleText:"Velg kundenummer"},fi:{toggleLinkTitleText:"Valitse asiakasnumero"},de:{toggleLinkTitleText:"Kundennummer auswählen"}};var pnCustomernumberSelectorCss=".customernumber-container{position:relative;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:0.8rem;border:0.1rem solid #969087;-webkit-transition:border 0.15s ease;transition:border 0.15s ease}.customernumber-container:hover,pn-customernumber-selector[open] .customernumber-container{border-color:#005D92}pn-customernumber-selector[open] .customernumber-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.customernumber-toggle{display:-ms-flexbox;display:flex;z-index:11;position:relative;margin:0;border-radius:0.8rem;padding:1rem;border:0;background:transparent;font-size:1em;text-align:left;outline:0;cursor:pointer}.customernumber-toggle pn-icon{-ms-flex-item-align:center;align-self:center}.customernumber-selected{-ms-flex-positive:1;flex-grow:1;max-width:calc(100% - 2.4rem);overflow:hidden}.customernumber-selected-title{color:#005D92}.customernumber-selected-description{font-size:0.875em;width:100%;overflow:hidden;text-overflow:ellipsis}.customernumber-options{position:absolute;z-index:10;left:-0.1rem;right:-0.1rem;top:100%;border:0.1rem solid #005D92;border-bottom-left-radius:0.8rem;border-bottom-right-radius:0.8rem;max-height:0;opacity:0;-webkit-transform-origin:top left;transform-origin:top left;-webkit-transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease;transition:transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s, opacity 0.1s linear, max-height 0.1s ease, -webkit-transform 0.2s cubic-bezier(0.6, 0, 0.4, 1) 0.15s;overflow-y:auto}pn-customernumber-selector[open] .customernumber-options{opacity:1;-webkit-transition-delay:0s;transition-delay:0s;max-height:500rem}";var PnCustomernumberSelector=function(){function e(e){registerInstance(this,e);this.language="sv";this.open=false;this.heading="";this.description="";this.i18n=translations["en"]}e.prototype.componentWillLoad=function(){this.init()};e.prototype.init=function(){this.setTranslations()};e.prototype.setTranslations=function(){if(this.language&&translations[this.language]){this.i18n=translations[this.language]}};e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"customernumber-container"},h("button",{class:"customernumber-toggle","aria-label":this.i18n.toggleLinkTitleText,onClick:function(){return e.open=!e.open}},h("div",{class:"customernumber-selected"},h("strong",{class:"customernumber-selected-title"},this.heading),h("div",{class:"customernumber-selected-description"},this.description)),h("pn-icon",{symbol:this.open?"angle-up":"angle-down",small:"false",color:"blue700"})),h("div",{class:"customernumber-options"},h("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnCustomernumberSelector.style=pnCustomernumberSelectorCss;export{PnCustomernumberSelector as pn_customernumber_selector};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{l(i.next(e))}catch(t){a(t)}}function s(e){try{l(i["throw"](e))}catch(t){a(t)}}function l(e){e.done?n(e.value):r(e.value).then(o,s)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(l){s=[6,l];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-ee44c065.js";var pnDateAndTimeCss="pn-date-and-time label{color:#5E554A;font-size:1.4rem}pn-date-and-time .time-separator{margin-top:auto;margin-bottom:auto}pn-date-and-time .date-and-time-group{margin-bottom:1rem}pn-date-and-time .date-and-time-row{display:-ms-flexbox;display:flex;gap:1rem}pn-date-and-time .helper-text{margin-top:0.2rem;color:#5E554A;display:block}pn-date-and-time .error-message{color:#a70707}";var PnDateAndTime=function(){function e(e){registerInstance(this,e);this.dateandtimerange=createEvent(this,"dateandtimerange",7);this.pnDatePicker=null;this.pnTimeFromHourDropdown=null;this.pnTimeFromMinuteDropdown=null;this.pnTimeToHourDropdown=null;this.pnTimeToMinuteDropdown=null;this.languageCode=null;this.dateAndTimeLabel="";this.dateDaysFromToday=0;this.validTimeRangeMinutes=0;this.errorMessage="";this.dateHelperText="";this.timeHelperText="";this.disableWeekends=false;this.datePlacehodler="";this.language=null;this.hourArr=null;this.minuteArr=null;this.formValue=null;this.invalidTimespan=false;this.selectedDate=null;this.selectedFromHour=null;this.selectedFromMin=null;this.selectedToHour=null;this.selectedToMin=null;this.firstValidDateString="";this.lastValidDateString=""}e.prototype.componentWillLoad=function(){this.setInitialValues()};e.prototype.componentDidLoad=function(){this.setDefaultHiddenValue();this.addEventHandlers()};e.prototype.setInitialValues=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.setLangugaeCode();this.setFirstValidDate();this.hourArr=this.getNumbersAsStringArr(6,22,1);this.minuteArr=this.getNumbersAsStringArr(0,50,10);return[2]}))}))};e.prototype.setFirstValidDate=function(){var e;var t=new Date;t.setDate((e=t.getDate()+this.dateDaysFromToday)!==null&&e!==void 0?e:0);var n=t.getFullYear();var i=(t.getMonth()+1).toString().padStart(2,"0");var r=t.getDate().toString().padStart(2,"0");var a=n+2;this.firstValidDateString="".concat(n.toString(),"-").concat(i,"-").concat(r);this.lastValidDateString="".concat(a.toString(),"-").concat(i,"-").concat(r)};e.prototype.setLangugaeCode=function(){if(typeof this.languageCode==="string"&&this.languageCode.trim()===""){this.language=document.querySelector("html").lang}else{this.language=this.languageCode}};e.prototype.setDefaultHiddenValue=function(){this.selectedFromHour=parseInt(this.hourArr[8]);this.selectedFromMin=0;this.selectedToHour=parseInt(this.hourArr[12]);this.selectedToMin=0;this.updateHiddenValue()};e.prototype.addEventHandlers=function(){this.pnDatePicker.addEventListener("dateselection",this.handleChange.bind(this));this.pnTimeFromHourDropdown.addEventListener("selectchange",this.handleChange.bind(this));this.pnTimeFromMinuteDropdown.addEventListener("selectchange",this.handleChange.bind(this));this.pnTimeToHourDropdown.addEventListener("selectchange",this.handleChange.bind(this));this.pnTimeToMinuteDropdown.addEventListener("selectchange",this.handleChange.bind(this))};e.prototype.handleChange=function(e){var t=e.target;if(t===this.pnDatePicker){this.selectedDate=e.detail}if(t===this.pnTimeFromHourDropdown||t===this.pnTimeFromMinuteDropdown||t===this.pnTimeToHourDropdown||t===this.pnTimeToMinuteDropdown){this.handleTimeChange()}this.updateHiddenValue()};e.prototype.handleTimeChange=function(){var e,t,n,i;var r=(e=this.pnTimeFromHourDropdown.querySelector(".current-selection .pn-option-content"))===null||e===void 0?void 0:e.textContent;var a=(t=this.pnTimeFromMinuteDropdown.querySelector(".current-selection .pn-option-content"))===null||t===void 0?void 0:t.textContent;var o=(n=this.pnTimeToHourDropdown.querySelector(".current-selection .pn-option-content"))===null||n===void 0?void 0:n.textContent;var s=(i=this.pnTimeToMinuteDropdown.querySelector(".current-selection .pn-option-content"))===null||i===void 0?void 0:i.textContent;this.selectedFromHour=parseInt(r);this.selectedFromMin=parseInt(a);this.selectedToHour=parseInt(o);this.selectedToMin=parseInt(s)};e.prototype.updateHiddenValue=function(){var e=new Date;var t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),this.selectedFromHour,this.selectedFromMin,0,0);var n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),this.selectedToHour,this.selectedToMin,0,0);this.validateTimeRange(t.getTime(),n.getTime());if(this.invalidTimespan||!this.selectedDate){this.formValue=""}else{var i=this.selectedFromMin.toString().padStart(2,"0");var r=this.selectedToMin.toString().padStart(2,"0");this.formValue="".concat(this.selectedDate,", ").concat(this.selectedFromHour,":").concat(i,"-").concat(this.selectedToHour,":").concat(r)}this.dateandtimerange.emit(this.formValue)};e.prototype.validateTimeRange=function(e,t){var n=(t-e)/1e3;n/=60;this.invalidTimespan=n<this.validTimeRangeMinutes?true:false};e.prototype.getNumbersAsStringArr=function(e,t,n){var i=Array.from({length:(t-e)/n+1},(function(t,i){return e+i*n}));var r=[];i.forEach((function(e){var t=e.toString().padStart(2,"0");r.push(t)}));return r};e.prototype.removePnOptionSelected=function(){var e=this.hostElement.querySelectorAll("pn-option");e.forEach((function(e){e.removeAttribute("selected")}))};e.prototype.render=function(){var e=this;var t,n,i,r;return h(Host,null,h("div",{class:"date-and-time-group"},this.dateAndTimeLabel?h("div",{class:"date-and-time-row"},h("label",null,this.dateAndTimeLabel)):null,h("div",{class:"date-and-time-row"},h("pn-date-picker",{ref:function(t){return e.pnDatePicker=t},range:"false","disable-weekends":this.disableWeekends,"min-date":this.firstValidDateString,"max-date":this.lastValidDateString,language:this.language,placeholder:this.datePlacehodler})),this.dateHelperText?h("small",{class:"date-and-time-row helper-text"},this.dateHelperText):null),h("div",{class:"date-and-time-group"},h("div",{class:"date-and-time-row"},h("pn-select",{ref:function(t){return e.pnTimeFromHourDropdown=t},name:"date-and-time-from-houre",placeholder:this.hourArr[8],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(t=this.hourArr)===null||t===void 0?void 0:t.map((function(e){return h("pn-option",null,e)}))),h("pn-select",{ref:function(t){return e.pnTimeFromMinuteDropdown=t},name:"date-and-time-from-minute",placeholder:this.minuteArr[0],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(n=this.minuteArr)===null||n===void 0?void 0:n.map((function(e){return h("pn-option",null,e)}))),h("div",{class:"time-separator"},h("span",null,"-")),h("pn-select",{ref:function(t){return e.pnTimeToHourDropdown=t},name:"date-and-time-to-hour",placeholder:this.hourArr[12],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(i=this.hourArr)===null||i===void 0?void 0:i.map((function(e){return h("pn-option",null,e)}))),h("pn-select",{ref:function(t){return e.pnTimeToMinuteDropdown=t},name:"date-and-time-to-minute",placeholder:this.minuteArr[0],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(r=this.minuteArr)===null||r===void 0?void 0:r.map((function(e){return h("pn-option",null,e)})))),this.timeHelperText?h("small",{class:"date-and-time-row helper-text"},this.timeHelperText):null,this.invalidTimespan&&this.errorMessage?h("small",{class:"date-and-time-row error-message"},h("pn-icon",{symbol:"alert-info-circle",small:"false",color:"warning"}),this.errorMessage):null))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnDateAndTime.style=pnDateAndTimeCss;export{PnDateAndTime as pn_date_and_time};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{l(i.next(e))}catch(t){a(t)}}function s(e){try{l(i["throw"](e))}catch(t){a(t)}}function l(e){e.done?n(e.value):r(e.value).then(o,s)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(l){s=[6,l];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-be8c3299.js";var pnDateAndTimeCss="pn-date-and-time label{color:#5E554A;font-size:1.4rem}pn-date-and-time .time-separator{margin-top:auto;margin-bottom:auto}pn-date-and-time .date-and-time-group{margin-bottom:1rem}pn-date-and-time .date-and-time-row{display:-ms-flexbox;display:flex;gap:1rem}pn-date-and-time .helper-text{margin-top:0.2rem;color:#5E554A;display:block}pn-date-and-time .error-message{color:#a70707}";var PnDateAndTime=function(){function e(e){registerInstance(this,e);this.dateandtimerange=createEvent(this,"dateandtimerange",7);this.pnDatePicker=null;this.pnTimeFromHourDropdown=null;this.pnTimeFromMinuteDropdown=null;this.pnTimeToHourDropdown=null;this.pnTimeToMinuteDropdown=null;this.languageCode=null;this.dateAndTimeLabel="";this.dateDaysFromToday=0;this.validTimeRangeMinutes=0;this.errorMessage="";this.dateHelperText="";this.timeHelperText="";this.disableWeekends=false;this.datePlacehodler="";this.language=null;this.hourArr=null;this.minuteArr=null;this.formValue=null;this.invalidTimespan=false;this.selectedDate=null;this.selectedFromHour=null;this.selectedFromMin=null;this.selectedToHour=null;this.selectedToMin=null;this.firstValidDateString="";this.lastValidDateString=""}e.prototype.componentWillLoad=function(){this.setInitialValues()};e.prototype.componentDidLoad=function(){this.setDefaultHiddenValue();this.addEventHandlers()};e.prototype.setInitialValues=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.setLangugaeCode();this.setFirstValidDate();this.hourArr=this.getNumbersAsStringArr(6,22,1);this.minuteArr=this.getNumbersAsStringArr(0,50,10);return[2]}))}))};e.prototype.setFirstValidDate=function(){var e;var t=new Date;t.setDate((e=t.getDate()+this.dateDaysFromToday)!==null&&e!==void 0?e:0);var n=t.getFullYear();var i=(t.getMonth()+1).toString().padStart(2,"0");var r=t.getDate().toString().padStart(2,"0");var a=n+2;this.firstValidDateString="".concat(n.toString(),"-").concat(i,"-").concat(r);this.lastValidDateString="".concat(a.toString(),"-").concat(i,"-").concat(r)};e.prototype.setLangugaeCode=function(){if(typeof this.languageCode==="string"&&this.languageCode.trim()===""){this.language=document.querySelector("html").lang}else{this.language=this.languageCode}};e.prototype.setDefaultHiddenValue=function(){this.selectedFromHour=parseInt(this.hourArr[8]);this.selectedFromMin=0;this.selectedToHour=parseInt(this.hourArr[12]);this.selectedToMin=0;this.updateHiddenValue()};e.prototype.addEventHandlers=function(){this.pnDatePicker.addEventListener("dateselection",this.handleChange.bind(this));this.pnTimeFromHourDropdown.addEventListener("selectchange",this.handleChange.bind(this));this.pnTimeFromMinuteDropdown.addEventListener("selectchange",this.handleChange.bind(this));this.pnTimeToHourDropdown.addEventListener("selectchange",this.handleChange.bind(this));this.pnTimeToMinuteDropdown.addEventListener("selectchange",this.handleChange.bind(this))};e.prototype.handleChange=function(e){var t=e.target;if(t===this.pnDatePicker){this.selectedDate=e.detail}if(t===this.pnTimeFromHourDropdown||t===this.pnTimeFromMinuteDropdown||t===this.pnTimeToHourDropdown||t===this.pnTimeToMinuteDropdown){this.handleTimeChange()}this.updateHiddenValue()};e.prototype.handleTimeChange=function(){var e,t,n,i;var r=(e=this.pnTimeFromHourDropdown.querySelector(".current-selection .pn-option-content"))===null||e===void 0?void 0:e.textContent;var a=(t=this.pnTimeFromMinuteDropdown.querySelector(".current-selection .pn-option-content"))===null||t===void 0?void 0:t.textContent;var o=(n=this.pnTimeToHourDropdown.querySelector(".current-selection .pn-option-content"))===null||n===void 0?void 0:n.textContent;var s=(i=this.pnTimeToMinuteDropdown.querySelector(".current-selection .pn-option-content"))===null||i===void 0?void 0:i.textContent;this.selectedFromHour=parseInt(r);this.selectedFromMin=parseInt(a);this.selectedToHour=parseInt(o);this.selectedToMin=parseInt(s)};e.prototype.updateHiddenValue=function(){var e=new Date;var t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),this.selectedFromHour,this.selectedFromMin,0,0);var n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),this.selectedToHour,this.selectedToMin,0,0);this.validateTimeRange(t.getTime(),n.getTime());if(this.invalidTimespan||!this.selectedDate){this.formValue=""}else{var i=this.selectedFromMin.toString().padStart(2,"0");var r=this.selectedToMin.toString().padStart(2,"0");this.formValue="".concat(this.selectedDate,", ").concat(this.selectedFromHour,":").concat(i,"-").concat(this.selectedToHour,":").concat(r)}this.dateandtimerange.emit(this.formValue)};e.prototype.validateTimeRange=function(e,t){var n=(t-e)/1e3;n/=60;this.invalidTimespan=n<this.validTimeRangeMinutes?true:false};e.prototype.getNumbersAsStringArr=function(e,t,n){var i=Array.from({length:(t-e)/n+1},(function(t,i){return e+i*n}));var r=[];i.forEach((function(e){var t=e.toString().padStart(2,"0");r.push(t)}));return r};e.prototype.removePnOptionSelected=function(){var e=this.hostElement.querySelectorAll("pn-option");e.forEach((function(e){e.removeAttribute("selected")}))};e.prototype.render=function(){var e=this;var t,n,i,r;return h(Host,null,h("div",{class:"date-and-time-group"},this.dateAndTimeLabel?h("div",{class:"date-and-time-row"},h("label",null,this.dateAndTimeLabel)):null,h("div",{class:"date-and-time-row"},h("pn-date-picker",{ref:function(t){return e.pnDatePicker=t},range:"false","disable-weekends":this.disableWeekends,"min-date":this.firstValidDateString,"max-date":this.lastValidDateString,language:this.language,placeholder:this.datePlacehodler})),this.dateHelperText?h("small",{class:"date-and-time-row helper-text"},this.dateHelperText):null),h("div",{class:"date-and-time-group"},h("div",{class:"date-and-time-row"},h("pn-select",{ref:function(t){return e.pnTimeFromHourDropdown=t},name:"date-and-time-from-houre",placeholder:this.hourArr[8],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(t=this.hourArr)===null||t===void 0?void 0:t.map((function(e){return h("pn-option",null,e)}))),h("pn-select",{ref:function(t){return e.pnTimeFromMinuteDropdown=t},name:"date-and-time-from-minute",placeholder:this.minuteArr[0],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(n=this.minuteArr)===null||n===void 0?void 0:n.map((function(e){return h("pn-option",null,e)}))),h("div",{class:"time-separator"},h("span",null,"-")),h("pn-select",{ref:function(t){return e.pnTimeToHourDropdown=t},name:"date-and-time-to-hour",placeholder:this.hourArr[12],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(i=this.hourArr)===null||i===void 0?void 0:i.map((function(e){return h("pn-option",null,e)}))),h("pn-select",{ref:function(t){return e.pnTimeToMinuteDropdown=t},name:"date-and-time-to-minute",placeholder:this.minuteArr[0],class:"date-and-time-dropdown--time",invalid:this.invalidTimespan},(r=this.minuteArr)===null||r===void 0?void 0:r.map((function(e){return h("pn-option",null,e)})))),this.timeHelperText?h("small",{class:"date-and-time-row helper-text"},this.timeHelperText):null,this.invalidTimespan&&this.errorMessage?h("small",{class:"date-and-time-row error-message"},h("pn-icon",{symbol:"alert-info-circle",small:"false",color:"warning"}),this.errorMessage):null))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PnDateAndTime.style=pnDateAndTimeCss;export{PnDateAndTime as pn_date_and_time};
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,a;n<r;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-ee44c065.js";import{d as debounce_1}from"./index-8976f360.js";var pnDropdownChoiceAddsRowCss="pn-dropdown-choice-adds-row{gap:1rem}pn-dropdown-choice-adds-row .dropdown-choice-form-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:50%;margin-bottom:1rem}@media only screen and (max-width: 640px){pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:100%}}pn-dropdown-choice-adds-row .pn-dropdown-choice-table{width:100%;border-spacing:0rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th{text-align:left;padding:1rem 0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th label{color:#5E554A;font-size:1.4rem;font-weight:400}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--name{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--dropdown{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--input{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--delete{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody td{padding:0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody tr:nth-child(even){background-color:#effbff}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody .tr-delete{text-align:center}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td small{color:#A70707;vertical-align:middle}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td pn-icon{margin-right:0.25em;vertical-align:middle}";var pnDropdownChoiceAddsRow=function(){function e(e){var t=this;registerInstance(this,e);this.rowvalues=createEvent(this,"rowvalues",7);this.pnRowSelectDropdown=null;this.tableHead=null;this.tableBody=null;this.formRowEvent=function(e){var o;var n=debounce_1.debounce(t.updateHiddenFieldValue.bind(t),500);if(e.target.matches("input")){["change","keyup"].forEach((function(t){e.target.addEventListener(t,n)}))}else{var r=(o=e.target.closest(".generated-table-row"))===null||o===void 0?void 0:o.querySelector("pn-select");if(r){r.addEventListener("selectchange",n)}}};this.dropdownData=null;this.addRowDropdownName="";this.addRowDropdownPlaceholder="";this.addRowDropdownLabel="";this.rowNameLabel="";this.rowHasDropdown=true;this.rowDropdownLabel="";this.rowDropdownPlaceholder="";this.rowInputLabel="";this.rowDeleteButtonText="";this.totalInputLimit=0;this.inputLimitWarning=null;this.nextRowIndex=null;this.rowSelectDropdownArr=null;this.columnCount=null;this.showWarning=false;this.formValue=null}e.prototype.dropdownDataWatcher=function(){if(typeof this.dropdownData==="string"){this._dropdownData=JSON.parse(this.dropdownData)}else{this._dropdownData=this.dropdownData}};e.prototype.componentWillLoad=function(){this.dropdownDataWatcher()};e.prototype.componentDidLoad=function(){this.setInitialValues();this.addEventHandlers()};e.prototype.addEventHandlers=function(){this.pnRowSelectDropdown.addEventListener("selectchange",this.addRowElement.bind(this))};e.prototype.setInitialValues=function(){this.nextRowIndex=0;this.columnCount=this.rowHasDropdown?4:3;this.setRowSelectDropdownArr()};e.prototype.setRowSelectDropdownArr=function(){var e=this;this.rowSelectDropdownArr=[];this._dropdownData.forEach((function(t){e.rowSelectDropdownArr.push(t.caption)}))};e.prototype.updateHiddenFieldValue=function(){var e=this;var t=__spreadArray([],this.tableBody.querySelectorAll("tr"),true);var o=this.rowHasDropdown?3:2;var n=[];if(t.length){t.forEach((function(t){var r,a,d;var i={row:[]};var l=t.querySelector(".tr-name");var c=t.querySelector(".tr-dropdown");var p=t.querySelector(".tr-input");var s={name:e.rowNameLabel,value:l===null||l===void 0?void 0:l.innerHTML};i.row.push(s);var h=c.querySelector(".current-selection");if(h){var u=(r=h.textContent)!==null&&r!==void 0?r:"";if(u.length){var w={name:e.rowDropdownLabel,value:u};i.row.push(w)}}if(!h&&o===3){var w={name:e.rowDropdownLabel,value:""};i.row.push(w)}var m=parseInt((d=(a=p.querySelector("input"))===null||a===void 0?void 0:a.value)!==null&&d!==void 0?d:"0");if(m>0){var f={name:e.rowInputLabel,value:m.toString()};i.row.push(f)}if(i.row.length===o){n.push(i)}}))}if(n.length&&n.length===t.length){var r=JSON.stringify(n);this.formValue="PN-JSON|".concat(r)}else{this.formValue=""}this.rowvalues.emit(this.formValue);this.checkInputTotal()};e.prototype.addRowElement=function(){var e=this;var t=this.pnRowSelectDropdown.querySelector(".current-selection .pn-option-content");var o=t===null||t===void 0?void 0:t.textContent;var n=this.tableBody;var r=document.createElement("tr");r.setAttribute("index","".concat(this.nextRowIndex));r.setAttribute("class","generated-table-row");r.onclick=function(t){return e.formRowEvent(t)};var a=document.createElement("td");a.setAttribute("class","tr-name");a.innerHTML=o;r.appendChild(a);if(this.rowHasDropdown){var d=this.createDropdownColumn(o);r.appendChild(d)}var i=this.createInputColumn(o);r.appendChild(i);var l=this.createDeleteButtonColumn();r.appendChild(l);n.appendChild(r);this.updateRowSelectDropdown();this.nextRowIndex++};e.prototype.createDropdownColumn=function(e){var t=document.createElement("td");t.setAttribute("class","tr-dropdown");var o=this._dropdownData.find((function(t){return t.caption===e}));if(Array.isArray(o.values)&&o.values.length){var n=document.createElement("pn-select");n.setAttribute("name","".concat(e,"-dropdown"));n.setAttribute("placeholder",this.rowDropdownPlaceholder);o.values.forEach((function(e){var t=document.createElement("pn-option");t.innerHTML=e.caption;n.appendChild(t)}));t.appendChild(n)}return t};e.prototype.createInputColumn=function(e){var t=document.createElement("td");t.setAttribute("class","tr-input");var o=document.createElement("pn-marketweb-input");o.setAttribute("type","number");o.setAttribute("name","".concat(e,"-input"));o.setAttribute("placeholder","0");t.appendChild(o);return t};e.prototype.createDeleteButtonColumn=function(){var e=this;var t=document.createElement("td");t.setAttribute("class","tr-delete");var o=document.createElement("pn-button");o.onclick=function(t){return e.deleteRow(t)};o.setAttribute("appearance","warning");o.setAttribute("small","true");o.appendChild(document.createTextNode(this.rowDeleteButtonText));t.appendChild(o);return t};e.prototype.updateRowSelectDropdown=function(){var e=this;var t=[].map.call(this.tableBody.querySelectorAll(".tr-name"),(function(e){return e.innerHTML}));if(t.length){this.rowSelectDropdownArr=[];this._dropdownData.forEach((function(o){if(!t.includes(o.caption)){e.rowSelectDropdownArr.push(o.caption)}}))}else{this.setRowSelectDropdownArr()}var o=this.pnRowSelectDropdown.querySelectorAll("pn-option");o.forEach((function(e){e.removeAttribute("selected")}));var n=this.pnRowSelectDropdown.querySelector(".pn-option-content");n.innerHTML=this.addRowDropdownPlaceholder;this.updateHiddenFieldValue()};e.prototype.deleteRow=function(e){e.preventDefault();this.nextRowIndex--;var t=e.currentTarget;var o=t.closest("tr");o.remove();var n=__spreadArray([],this.tableBody.querySelectorAll("tr"),true);n.map((function(e,t){e.setAttribute("index","".concat(t))}));this.updateRowSelectDropdown()};e.prototype.checkInputTotal=function(){var e=this.tableBody.querySelectorAll("tr");if(this.totalInputLimit===0||e.length<1){this.showWarning=false;return}var t=0;e.forEach((function(e){var o;var n=e.querySelector("pn-marketweb-input");if(n.value){t+=(o=parseInt(n.value))!==null&&o!==void 0?o:0}}));this.showWarning=t>this.totalInputLimit?true:false};e.prototype.render=function(){var e=this;var t;return h(Host,null,h("div",{class:"dropdown-choice-form-row"},h("pn-select",{ref:function(t){return e.pnRowSelectDropdown=t},name:this.addRowDropdownName,placeholder:this.addRowDropdownPlaceholder,label:this.addRowDropdownLabel,class:"pn-row-select-dropdown"},(t=this.rowSelectDropdownArr)===null||t===void 0?void 0:t.map((function(e){return h("pn-option",null,e)})))),h("div",{class:"dropdown-choice-form-row"},h("table",{class:"pn-dropdown-choice-table"},h("thead",{ref:function(t){return e.tableHead=t}},this.nextRowIndex===0?null:h("tr",null,h("th",{class:"table-header--name"},h("label",null,this.rowNameLabel)),this.rowHasDropdown?h("th",{class:"table-header--dropdown"},h("label",null,this.rowDropdownLabel)):null,h("th",{class:"table-header--input"},h("label",null,this.rowInputLabel)),h("th",{class:"table-header--delete"}))),h("tbody",{ref:function(t){return e.tableBody=t},class:"pn-dropdown-choice-table-slot"},h("slot",null)),h("tfoot",null,this.showWarning?h("tr",null,h("td",{colSpan:this.columnCount},h("pn-icon",{symbol:"alert-exclamation-circle",small:true,color:"warning"}),h("small",{class:"dropdown-choice-error-message"},this.inputLimitWarning))):null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dropdownData:["dropdownDataWatcher"]}},enumerable:false,configurable:true});return e}();pnDropdownChoiceAddsRow.style=pnDropdownChoiceAddsRowCss;export{pnDropdownChoiceAddsRow as pn_dropdown_choice_adds_row};
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,a;n<r;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-be8c3299.js";import{d as debounce_1}from"./index-8976f360.js";var pnDropdownChoiceAddsRowCss="pn-dropdown-choice-adds-row{gap:1rem}pn-dropdown-choice-adds-row .dropdown-choice-form-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:50%;margin-bottom:1rem}@media only screen and (max-width: 640px){pn-dropdown-choice-adds-row .pn-row-select-dropdown{width:100%}}pn-dropdown-choice-adds-row .pn-dropdown-choice-table{width:100%;border-spacing:0rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th{text-align:left;padding:1rem 0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead th label{color:#5E554A;font-size:1.4rem;font-weight:400}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--name{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--dropdown{width:40%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--input{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table thead .table-header--delete{width:10%}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody td{padding:0.5rem}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody tr:nth-child(even){background-color:#effbff}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tbody .tr-delete{text-align:center}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td small{color:#A70707;vertical-align:middle}pn-dropdown-choice-adds-row .pn-dropdown-choice-table tfoot td pn-icon{margin-right:0.25em;vertical-align:middle}";var pnDropdownChoiceAddsRow=function(){function e(e){var t=this;registerInstance(this,e);this.rowvalues=createEvent(this,"rowvalues",7);this.pnRowSelectDropdown=null;this.tableHead=null;this.tableBody=null;this.formRowEvent=function(e){var o;var n=debounce_1.debounce(t.updateHiddenFieldValue.bind(t),500);if(e.target.matches("input")){["change","keyup"].forEach((function(t){e.target.addEventListener(t,n)}))}else{var r=(o=e.target.closest(".generated-table-row"))===null||o===void 0?void 0:o.querySelector("pn-select");if(r){r.addEventListener("selectchange",n)}}};this.dropdownData=null;this.addRowDropdownName="";this.addRowDropdownPlaceholder="";this.addRowDropdownLabel="";this.rowNameLabel="";this.rowHasDropdown=true;this.rowDropdownLabel="";this.rowDropdownPlaceholder="";this.rowInputLabel="";this.rowDeleteButtonText="";this.totalInputLimit=0;this.inputLimitWarning=null;this.nextRowIndex=null;this.rowSelectDropdownArr=null;this.columnCount=null;this.showWarning=false;this.formValue=null}e.prototype.dropdownDataWatcher=function(){if(typeof this.dropdownData==="string"){this._dropdownData=JSON.parse(this.dropdownData)}else{this._dropdownData=this.dropdownData}};e.prototype.componentWillLoad=function(){this.dropdownDataWatcher()};e.prototype.componentDidLoad=function(){this.setInitialValues();this.addEventHandlers()};e.prototype.addEventHandlers=function(){this.pnRowSelectDropdown.addEventListener("selectchange",this.addRowElement.bind(this))};e.prototype.setInitialValues=function(){this.nextRowIndex=0;this.columnCount=this.rowHasDropdown?4:3;this.setRowSelectDropdownArr()};e.prototype.setRowSelectDropdownArr=function(){var e=this;this.rowSelectDropdownArr=[];this._dropdownData.forEach((function(t){e.rowSelectDropdownArr.push(t.caption)}))};e.prototype.updateHiddenFieldValue=function(){var e=this;var t=__spreadArray([],this.tableBody.querySelectorAll("tr"),true);var o=this.rowHasDropdown?3:2;var n=[];if(t.length){t.forEach((function(t){var r,a,d;var i={row:[]};var l=t.querySelector(".tr-name");var c=t.querySelector(".tr-dropdown");var p=t.querySelector(".tr-input");var s={name:e.rowNameLabel,value:l===null||l===void 0?void 0:l.innerHTML};i.row.push(s);var h=c.querySelector(".current-selection");if(h){var u=(r=h.textContent)!==null&&r!==void 0?r:"";if(u.length){var w={name:e.rowDropdownLabel,value:u};i.row.push(w)}}if(!h&&o===3){var w={name:e.rowDropdownLabel,value:""};i.row.push(w)}var m=parseInt((d=(a=p.querySelector("input"))===null||a===void 0?void 0:a.value)!==null&&d!==void 0?d:"0");if(m>0){var f={name:e.rowInputLabel,value:m.toString()};i.row.push(f)}if(i.row.length===o){n.push(i)}}))}if(n.length&&n.length===t.length){var r=JSON.stringify(n);this.formValue="PN-JSON|".concat(r)}else{this.formValue=""}this.rowvalues.emit(this.formValue);this.checkInputTotal()};e.prototype.addRowElement=function(){var e=this;var t=this.pnRowSelectDropdown.querySelector(".current-selection .pn-option-content");var o=t===null||t===void 0?void 0:t.textContent;var n=this.tableBody;var r=document.createElement("tr");r.setAttribute("index","".concat(this.nextRowIndex));r.setAttribute("class","generated-table-row");r.onclick=function(t){return e.formRowEvent(t)};var a=document.createElement("td");a.setAttribute("class","tr-name");a.innerHTML=o;r.appendChild(a);if(this.rowHasDropdown){var d=this.createDropdownColumn(o);r.appendChild(d)}var i=this.createInputColumn(o);r.appendChild(i);var l=this.createDeleteButtonColumn();r.appendChild(l);n.appendChild(r);this.updateRowSelectDropdown();this.nextRowIndex++};e.prototype.createDropdownColumn=function(e){var t=document.createElement("td");t.setAttribute("class","tr-dropdown");var o=this._dropdownData.find((function(t){return t.caption===e}));if(Array.isArray(o.values)&&o.values.length){var n=document.createElement("pn-select");n.setAttribute("name","".concat(e,"-dropdown"));n.setAttribute("placeholder",this.rowDropdownPlaceholder);o.values.forEach((function(e){var t=document.createElement("pn-option");t.innerHTML=e.caption;n.appendChild(t)}));t.appendChild(n)}return t};e.prototype.createInputColumn=function(e){var t=document.createElement("td");t.setAttribute("class","tr-input");var o=document.createElement("pn-marketweb-input");o.setAttribute("type","number");o.setAttribute("name","".concat(e,"-input"));o.setAttribute("placeholder","0");t.appendChild(o);return t};e.prototype.createDeleteButtonColumn=function(){var e=this;var t=document.createElement("td");t.setAttribute("class","tr-delete");var o=document.createElement("pn-button");o.onclick=function(t){return e.deleteRow(t)};o.setAttribute("appearance","warning");o.setAttribute("small","true");o.appendChild(document.createTextNode(this.rowDeleteButtonText));t.appendChild(o);return t};e.prototype.updateRowSelectDropdown=function(){var e=this;var t=[].map.call(this.tableBody.querySelectorAll(".tr-name"),(function(e){return e.innerHTML}));if(t.length){this.rowSelectDropdownArr=[];this._dropdownData.forEach((function(o){if(!t.includes(o.caption)){e.rowSelectDropdownArr.push(o.caption)}}))}else{this.setRowSelectDropdownArr()}var o=this.pnRowSelectDropdown.querySelectorAll("pn-option");o.forEach((function(e){e.removeAttribute("selected")}));var n=this.pnRowSelectDropdown.querySelector(".pn-option-content");n.innerHTML=this.addRowDropdownPlaceholder;this.updateHiddenFieldValue()};e.prototype.deleteRow=function(e){e.preventDefault();this.nextRowIndex--;var t=e.currentTarget;var o=t.closest("tr");o.remove();var n=__spreadArray([],this.tableBody.querySelectorAll("tr"),true);n.map((function(e,t){e.setAttribute("index","".concat(t))}));this.updateRowSelectDropdown()};e.prototype.checkInputTotal=function(){var e=this.tableBody.querySelectorAll("tr");if(this.totalInputLimit===0||e.length<1){this.showWarning=false;return}var t=0;e.forEach((function(e){var o;var n=e.querySelector("pn-marketweb-input");if(n.value){t+=(o=parseInt(n.value))!==null&&o!==void 0?o:0}}));this.showWarning=t>this.totalInputLimit?true:false};e.prototype.render=function(){var e=this;var t;return h(Host,null,h("div",{class:"dropdown-choice-form-row"},h("pn-select",{ref:function(t){return e.pnRowSelectDropdown=t},name:this.addRowDropdownName,placeholder:this.addRowDropdownPlaceholder,label:this.addRowDropdownLabel,class:"pn-row-select-dropdown"},(t=this.rowSelectDropdownArr)===null||t===void 0?void 0:t.map((function(e){return h("pn-option",null,e)})))),h("div",{class:"dropdown-choice-form-row"},h("table",{class:"pn-dropdown-choice-table"},h("thead",{ref:function(t){return e.tableHead=t}},this.nextRowIndex===0?null:h("tr",null,h("th",{class:"table-header--name"},h("label",null,this.rowNameLabel)),this.rowHasDropdown?h("th",{class:"table-header--dropdown"},h("label",null,this.rowDropdownLabel)):null,h("th",{class:"table-header--input"},h("label",null,this.rowInputLabel)),h("th",{class:"table-header--delete"}))),h("tbody",{ref:function(t){return e.tableBody=t},class:"pn-dropdown-choice-table-slot"},h("slot",null)),h("tfoot",null,this.showWarning?h("tr",null,h("td",{colSpan:this.columnCount},h("pn-icon",{symbol:"alert-exclamation-circle",small:true,color:"warning"}),h("small",{class:"dropdown-choice-error-message"},this.inputLimitWarning))):null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dropdownData:["dropdownDataWatcher"]}},enumerable:false,configurable:true});return e}();pnDropdownChoiceAddsRow.style=pnDropdownChoiceAddsRowCss;export{pnDropdownChoiceAddsRow as pn_dropdown_choice_adds_row};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-ee44c065.js";import{d as debounce_1}from"./index-8976f360.js";var pnDropdownWithMultiInputRowsRowCss="pn-dropdown-with-multi-input-rows-row .input-element-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container{width:30%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container pn-marketweb-input .input-container{width:100%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container pn-date-picker{width:100%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container{margin-top:0.3rem}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container__error{color:red;line-height:1}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container__warning{line-height:1}pn-dropdown-with-multi-input-rows-row .delete-button-contianer{margin-top:0.6rem}";var PnDropdownWithMultiInputRowsRow=function(){function t(t){registerInstance(this,t);this.rowValueChange=createEvent(this,"rowValueChange",7);this.deleteRowEvent=createEvent(this,"deleteRowEvent",7);this.firstInputChange=createEvent(this,"firstInputChange",7);this.secondInputChange=createEvent(this,"secondInputChange",7);this.pnFirstInputField=null;this.pnSecondInputField=null;this.pnDatePicker=null;this.pnDeleteRowButton=null;this.languageCode=null;this.fristInputPlaceholder=null;this.firstInputMin=null;this.firstInputMax=null;this.firstInputWarning=null;this.firstInputWarningText=null;this.firstInputLowErrorText=null;this.firstInputHighErrorText=null;this.secondInputPlaceholder=null;this.secondInputMin=null;this.secondInputMax=null;this.secondInputWarning=null;this.secondInputWarningText=null;this.secondInputLowErrorText=null;this.secondInputHighErrorText=null;this.dateLabel=null;this.datePlaceholder=null;this.firstValidDate=null;this.lastValidDate=null;this.predefinedValue=null;this.rowIndex=null;this.minRowCount=null;this.showFirstInputWarning=false;this.showFirstInputLowError=false;this.showFirstInputHighError=false;this.showSecondInputWarning=false;this.showSecondInputLowError=false;this.showSecondInputHighError=false;this.firstInputValue="";this.secondInputValue="";this.dateValue=""}t.prototype.componentWillLoad=function(){this.getPredefinedValues();this.setInitialValues()};t.prototype.componentDidLoad=function(){this.addEventHandlers()};t.prototype.getPredefinedValues=function(){this._predefinedValue=JSON.parse(this.predefinedValue)};t.prototype.applyPredefinedValue=function(){var t,e;this.getPredefinedValues();this.setInitialValues();if((t=this.firstInputValue)===null||t===void 0?void 0:t.length){this.validateFirstInput(parseInt(this.firstInputValue))}if((e=this.secondInputValue)===null||e===void 0?void 0:e.length){this.validateSecondInput(parseInt(this.secondInputValue))}if(this.rowIndex>=this.minRowCount){this.pnDeleteRowButton.addEventListener("click",this.deleteRow.bind(this))}};t.prototype.setInitialValues=function(){this.firstInputValue=this._predefinedValue.firstInput;this.secondInputValue=this._predefinedValue.secondInput;this.dateValue=this._predefinedValue.date};t.prototype.addEventHandlers=function(){var t=debounce_1.debounce(this.emitRowValues.bind(this),500);this.pnFirstInputField.addEventListener("keyup",debounce_1.debounce(this.handleFirstInput.bind(this),500));this.pnSecondInputField.addEventListener("keyup",debounce_1.debounce(this.handleSecondInput.bind(this),500));this.pnDatePicker.addEventListener("dateselection",this.handleDateChange.bind(this));this.pnDatePicker.addEventListener("dateselection",t)};t.prototype.handleFirstInput=function(t){var e=t.target;var n=parseInt(e.value);if(n>0){this.firstInputValue=e.value;this.firstInputChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})}this.validateFirstInput(n);this.emitRowValues()};t.prototype.handleSecondInput=function(t){var e=t.target;var n=parseInt(e.value);if(n>0){this.secondInputValue=e.value;this.secondInputChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})}this.validateSecondInput(n);this.emitRowValues()};t.prototype.validateFirstInput=function(t){this.showFirstInputWarning=false;this.showFirstInputLowError=false;this.showFirstInputHighError=false;if(t<this.firstInputWarning){this.showFirstInputWarning=true}if(t<this.firstInputMin){this.showFirstInputWarning=false;this.showFirstInputLowError=true}if(t>this.firstInputMax){this.showFirstInputWarning=false;this.showFirstInputLowError=false;this.showFirstInputHighError=true}};t.prototype.validateSecondInput=function(t){this.showSecondInputWarning=false;this.showSecondInputLowError=false;this.showSecondInputHighError=false;if(t<this.secondInputWarning){this.showSecondInputWarning=true}if(t<this.secondInputMin){this.showSecondInputWarning=false;this.showSecondInputLowError=true}if(t>this.secondInputMax){this.showSecondInputWarning=false;this.showSecondInputLowError=false;this.showSecondInputHighError=true}};t.prototype.handleDateChange=function(t){var e=t.target;if(e===this.pnDatePicker){this.dateValue=t.detail}};t.prototype.emitRowValues=function(){this.rowValueChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})};t.prototype.deleteRow=function(){this.deleteRowEvent.emit(this._predefinedValue.id)};t.prototype.render=function(){var t=this;var e;return h(Host,null,h("div",{class:"input-element-row"},h("div",{class:"input-container"},h("pn-marketweb-input",{ref:function(e){return t.pnFirstInputField=e},type:"number",placeholder:this.fristInputPlaceholder,value:this.firstInputValue,min:"1"}),this.showFirstInputLowError||this.showFirstInputHighError||this.showFirstInputWarning?h("div",{class:"input-element-message-container"},this.showFirstInputLowError?h("div",{class:"input-element-message-container__error"},h("small",null,this.firstInputLowErrorText)):null,this.showFirstInputHighError?h("div",{class:"input-element-message-container__error"},h("small",null,this.firstInputHighErrorText)):null,this.showFirstInputWarning?h("div",{class:"input-element-message-container__warning"},h("small",null,this.firstInputWarningText)):null):null),h("div",{class:"input-container"},h("pn-marketweb-input",{ref:function(e){return t.pnSecondInputField=e},type:"number",placeholder:this.secondInputPlaceholder,value:this.secondInputValue,min:"1"}),this.showSecondInputLowError||this.showSecondInputHighError||this.showSecondInputWarning?h("div",{class:"input-element-message-container"},this.showSecondInputLowError?h("div",{class:"input-element-message-container__error"},h("small",null,this.secondInputLowErrorText)):null,this.showSecondInputHighError?h("div",{class:"input-element-message-container__error"},h("small",null,this.secondInputHighErrorText)):null,this.showSecondInputWarning?h("div",{class:"input-element-message-container__warning"},h("small",null,this.secondInputWarningText)):null):null),h("div",{class:"input-container"},h("pn-date-picker",{ref:function(e){return t.pnDatePicker=e},range:"false","disable-weekends":true,"min-date":this.firstValidDate,"max-date":this.lastValidDate,language:this.languageCode,placeholder:this.datePlaceholder,start:((e=this.dateValue)===null||e===void 0?void 0:e.length)?this.dateValue:null})),this.rowIndex>=this.minRowCount?h("div",{class:"delete-button-contianer"},h("pn-button",{ref:function(e){return t.pnDeleteRowButton=e},small:"true","icon-only":"true",icon:"minus",appearance:"warning",index:this.rowIndex,onClick:function(){t.deleteRow()}},"Delete")):null))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{predefinedValue:["applyPredefinedValue"]}},enumerable:false,configurable:true});return t}();PnDropdownWithMultiInputRowsRow.style=pnDropdownWithMultiInputRowsRowCss;export{PnDropdownWithMultiInputRowsRow as pn_dropdown_with_multi_input_rows_row};
1
+ import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-be8c3299.js";import{d as debounce_1}from"./index-8976f360.js";var pnDropdownWithMultiInputRowsRowCss="pn-dropdown-with-multi-input-rows-row .input-element-row{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container{width:30%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container pn-marketweb-input .input-container{width:100%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container pn-date-picker{width:100%}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container{margin-top:0.3rem}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container__error{color:red;line-height:1}pn-dropdown-with-multi-input-rows-row .input-element-row .input-container .input-element-message-container__warning{line-height:1}pn-dropdown-with-multi-input-rows-row .delete-button-contianer{margin-top:0.6rem}";var PnDropdownWithMultiInputRowsRow=function(){function t(t){registerInstance(this,t);this.rowValueChange=createEvent(this,"rowValueChange",7);this.deleteRowEvent=createEvent(this,"deleteRowEvent",7);this.firstInputChange=createEvent(this,"firstInputChange",7);this.secondInputChange=createEvent(this,"secondInputChange",7);this.pnFirstInputField=null;this.pnSecondInputField=null;this.pnDatePicker=null;this.pnDeleteRowButton=null;this.languageCode=null;this.fristInputPlaceholder=null;this.firstInputMin=null;this.firstInputMax=null;this.firstInputWarning=null;this.firstInputWarningText=null;this.firstInputLowErrorText=null;this.firstInputHighErrorText=null;this.secondInputPlaceholder=null;this.secondInputMin=null;this.secondInputMax=null;this.secondInputWarning=null;this.secondInputWarningText=null;this.secondInputLowErrorText=null;this.secondInputHighErrorText=null;this.dateLabel=null;this.datePlaceholder=null;this.firstValidDate=null;this.lastValidDate=null;this.predefinedValue=null;this.rowIndex=null;this.minRowCount=null;this.showFirstInputWarning=false;this.showFirstInputLowError=false;this.showFirstInputHighError=false;this.showSecondInputWarning=false;this.showSecondInputLowError=false;this.showSecondInputHighError=false;this.firstInputValue="";this.secondInputValue="";this.dateValue=""}t.prototype.componentWillLoad=function(){this.getPredefinedValues();this.setInitialValues()};t.prototype.componentDidLoad=function(){this.addEventHandlers()};t.prototype.getPredefinedValues=function(){this._predefinedValue=JSON.parse(this.predefinedValue)};t.prototype.applyPredefinedValue=function(){var t,e;this.getPredefinedValues();this.setInitialValues();if((t=this.firstInputValue)===null||t===void 0?void 0:t.length){this.validateFirstInput(parseInt(this.firstInputValue))}if((e=this.secondInputValue)===null||e===void 0?void 0:e.length){this.validateSecondInput(parseInt(this.secondInputValue))}if(this.rowIndex>=this.minRowCount){this.pnDeleteRowButton.addEventListener("click",this.deleteRow.bind(this))}};t.prototype.setInitialValues=function(){this.firstInputValue=this._predefinedValue.firstInput;this.secondInputValue=this._predefinedValue.secondInput;this.dateValue=this._predefinedValue.date};t.prototype.addEventHandlers=function(){var t=debounce_1.debounce(this.emitRowValues.bind(this),500);this.pnFirstInputField.addEventListener("keyup",debounce_1.debounce(this.handleFirstInput.bind(this),500));this.pnSecondInputField.addEventListener("keyup",debounce_1.debounce(this.handleSecondInput.bind(this),500));this.pnDatePicker.addEventListener("dateselection",this.handleDateChange.bind(this));this.pnDatePicker.addEventListener("dateselection",t)};t.prototype.handleFirstInput=function(t){var e=t.target;var n=parseInt(e.value);if(n>0){this.firstInputValue=e.value;this.firstInputChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})}this.validateFirstInput(n);this.emitRowValues()};t.prototype.handleSecondInput=function(t){var e=t.target;var n=parseInt(e.value);if(n>0){this.secondInputValue=e.value;this.secondInputChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})}this.validateSecondInput(n);this.emitRowValues()};t.prototype.validateFirstInput=function(t){this.showFirstInputWarning=false;this.showFirstInputLowError=false;this.showFirstInputHighError=false;if(t<this.firstInputWarning){this.showFirstInputWarning=true}if(t<this.firstInputMin){this.showFirstInputWarning=false;this.showFirstInputLowError=true}if(t>this.firstInputMax){this.showFirstInputWarning=false;this.showFirstInputLowError=false;this.showFirstInputHighError=true}};t.prototype.validateSecondInput=function(t){this.showSecondInputWarning=false;this.showSecondInputLowError=false;this.showSecondInputHighError=false;if(t<this.secondInputWarning){this.showSecondInputWarning=true}if(t<this.secondInputMin){this.showSecondInputWarning=false;this.showSecondInputLowError=true}if(t>this.secondInputMax){this.showSecondInputWarning=false;this.showSecondInputLowError=false;this.showSecondInputHighError=true}};t.prototype.handleDateChange=function(t){var e=t.target;if(e===this.pnDatePicker){this.dateValue=t.detail}};t.prototype.emitRowValues=function(){this.rowValueChange.emit({id:this._predefinedValue.id,firstInput:this.firstInputValue,secondInput:this.secondInputValue,date:this.dateValue})};t.prototype.deleteRow=function(){this.deleteRowEvent.emit(this._predefinedValue.id)};t.prototype.render=function(){var t=this;var e;return h(Host,null,h("div",{class:"input-element-row"},h("div",{class:"input-container"},h("pn-marketweb-input",{ref:function(e){return t.pnFirstInputField=e},type:"number",placeholder:this.fristInputPlaceholder,value:this.firstInputValue,min:"1"}),this.showFirstInputLowError||this.showFirstInputHighError||this.showFirstInputWarning?h("div",{class:"input-element-message-container"},this.showFirstInputLowError?h("div",{class:"input-element-message-container__error"},h("small",null,this.firstInputLowErrorText)):null,this.showFirstInputHighError?h("div",{class:"input-element-message-container__error"},h("small",null,this.firstInputHighErrorText)):null,this.showFirstInputWarning?h("div",{class:"input-element-message-container__warning"},h("small",null,this.firstInputWarningText)):null):null),h("div",{class:"input-container"},h("pn-marketweb-input",{ref:function(e){return t.pnSecondInputField=e},type:"number",placeholder:this.secondInputPlaceholder,value:this.secondInputValue,min:"1"}),this.showSecondInputLowError||this.showSecondInputHighError||this.showSecondInputWarning?h("div",{class:"input-element-message-container"},this.showSecondInputLowError?h("div",{class:"input-element-message-container__error"},h("small",null,this.secondInputLowErrorText)):null,this.showSecondInputHighError?h("div",{class:"input-element-message-container__error"},h("small",null,this.secondInputHighErrorText)):null,this.showSecondInputWarning?h("div",{class:"input-element-message-container__warning"},h("small",null,this.secondInputWarningText)):null):null),h("div",{class:"input-container"},h("pn-date-picker",{ref:function(e){return t.pnDatePicker=e},range:"false","disable-weekends":true,"min-date":this.firstValidDate,"max-date":this.lastValidDate,language:this.languageCode,placeholder:this.datePlaceholder,start:((e=this.dateValue)===null||e===void 0?void 0:e.length)?this.dateValue:null})),this.rowIndex>=this.minRowCount?h("div",{class:"delete-button-contianer"},h("pn-button",{ref:function(e){return t.pnDeleteRowButton=e},small:"true","icon-only":"true",icon:"minus",appearance:"warning",index:this.rowIndex,onClick:function(){t.deleteRow()}},"Delete")):null))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{predefinedValue:["applyPredefinedValue"]}},enumerable:false,configurable:true});return t}();PnDropdownWithMultiInputRowsRow.style=pnDropdownWithMultiInputRowsRowCss;export{PnDropdownWithMultiInputRowsRow as pn_dropdown_with_multi_input_rows_row};
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var o=0,i=e.length,r;o<i;o++){if(r||!(o in e)){if(!r)r=Array.prototype.slice.call(e,0,o);r[o]=e[o]}}return t.concat(r||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-ee44c065.js";import{d as debounce_1}from"./index-8976f360.js";import{v as v4}from"./v4-f450efa7.js";var pnDropdownWithMultiInputRowsCss="pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__row{margin-bottom:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem;padding:1rem;background-color:#F9F8F8}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete pn-button{margin-top:0.9rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label{width:30%;font-size:0.875em;color:#5e554a}pn-dropdown-with-multi-input-rows .sum-row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";var PnDropdownWithMultiInputRows=function(){function t(t){registerInstance(this,t);this.allFormValues=createEvent(this,"allFormValues",7);this.pnFirstDropdown=null;this.pnSecondDropdown=null;this.pnSumField=null;this.pnConfirmDeleteButton=null;this.pnAbortDeleteButton=null;this._firstDropdownSelection=null;this._secondDropdownSelection=null;this._defaultRow={id:this.generateUniqueId(),firstInput:"",secondInput:this.secondInputWarning.toString(),date:""};this.dropdownData=null;this.languageCode=null;this.firstDropdownLabel=null;this.firstDropdownHelperText=null;this.secondDropdownLabel=null;this.secondDropdownHelperText=null;this.secondDropdownMax=null;this.deleteMultipleRowsWarningText=null;this.confirmDeleteButtonText=null;this.abortDeleteButtonText=null;this.fristInputLabel=null;this.fristInputPlaceholder=null;this.firstInputMin=null;this.firstInputMax=null;this.firstInputWarning=null;this.firstInputWarningText=null;this.firstInputLowErrorText=null;this.firstInputHighErrorText=null;this.secondInputLabel=null;this.secondInputPlaceholder=null;this.secondInputMin=null;this.secondInputMax=null;this.secondInputWarning=null;this.secondInputWarningText=null;this.secondInputLowErrorText=null;this.secondInputHighErrorText=null;this.dateLabel=null;this.datePlaceholder=null;this.dateDaysFromToday=1;this.yearsToAddToEndDate=null;this.sumFieldLabel=null;this.addRowText=null;this.elementHelperText=null;this.dropdownDataRoot=null;this.secondDropdownArr=[];this.rowCount=null;this.rowData=null;this.formValues=null;this.firstValidDateString="";this.lastValidDateString="";this.rowSum=null;this.minRowCount=null;this.showDelteConfirm=false}t.prototype.componentWillLoad=function(){this.formValues=[];this.setDropDownData();this.updateSecondDropdown();this.setRowData();this.setFirstValidDate()};t.prototype.componentDidLoad=function(){this.updateSum()};t.prototype.setDropDownData=function(){var t;if(typeof this.dropdownData==="string"){this.dropdownDataRoot=JSON.parse(this.dropdownData)}else{this.dropdownDataRoot=this.dropdownData}if((t=this.dropdownDataRoot)===null||t===void 0?void 0:t.length){this.dropdownDataRoot.forEach((function(t){if(!t.value){t.value=0}}))}if(this.dropdownDataRoot.length>0){this.dropdownDataRoot[0].checked=true;this._firstDropdownSelection=this.dropdownDataRoot[0].caption;this._secondDropdownSelection=this.dropdownDataRoot[0].value;this.minRowCount=this.dropdownDataRoot[0].value}};t.prototype.updateSecondDropdown=function(){var t=this.dropdownDataRoot.find((function(t){return t.checked===true}));this.secondDropdownArr=[];for(var e=t.value;e<=this.secondDropdownMax;e++){this.secondDropdownArr.push(e)}};t.prototype.updateSelectItemArr=function(t,e){t.forEach((function(t){if(t.caption===e){t.checked=!t.checked}else{t.checked=false}}));return t};t.prototype.setRowData=function(){this.rowData=[];for(var t=0;t<this._secondDropdownSelection;t++){var e=Object.assign({},this._defaultRow);e.id=this.generateUniqueId();this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false)}this.rowCount=this.rowData.length};t.prototype.generateUniqueId=function(){return v4()};t.prototype.setFirstValidDate=function(){var t;var e=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2;var n=new Date;n.setDate((t=n.getDate()+this.dateDaysFromToday)!==null&&t!==void 0?t:0);var o=n.getFullYear();var i=(n.getMonth()+1).toString().padStart(2,"0");var r=n.getDate().toString().padStart(2,"0");var s=o+e;this.firstValidDateString="".concat(o.toString(),"-").concat(i,"-").concat(r);this.lastValidDateString="".concat(s.toString(),"-").concat(i,"-").concat(r)};t.prototype.addRow=function(t){var e=Object.assign({},this.rowData[0]);e.id=t?t:this.generateUniqueId();e.date="";this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.updateSum();this.emitValuesIfValid()};t.prototype.handleFirstDropdown=function(){var t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}this.dropdownDataRoot.forEach((function(t){t.checked=false}));var n=this.dropdownDataRoot.find((function(t){return t.caption===e}));n.checked=true;this._firstDropdownSelection=n.caption;this.minRowCount=n.value;if(n.value>this._secondDropdownSelection){this.dropdownDataRoot=__spreadArray([],this.dropdownDataRoot,true);for(var o=this.rowCount;o<n.value;o++){this.addRow(this.generateUniqueId())}}this.updateSecondDropdown();this.updateSum();this.emitValuesIfValid()};t.prototype.handleSecondDropdown=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=parseInt(e);if(n<this._secondDropdownSelection){this.showDelteConfirm=true}else{for(var o=this.rowCount;o<n;o++){this.addRow(this.generateUniqueId())}}this.updateSum();this.emitValuesIfValid()};t.prototype.predefinedValueChange=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail.id}));var n=t.detail;this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:n.firstInput,secondInput:n.secondInput,date:n.date});if(t.type==="firstInputChange"&&e===0){this.updateFirstInputOfRows(n.firstInput)}if(t.type==="secondInputChange"&&e===0){this.updateSecondInputOfRows(n.secondInput)}this.rowData=__spreadArray([],this.rowData,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateFirstInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:t})}};t.prototype.updateSecondInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{secondInput:t})}};t.prototype.deleteRowEvent=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail}));if(e<0){return}this.rowData.splice(e,1);this.rowData=__spreadArray([],this.rowData,true);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateSum=function(){this.rowSum="";var t=0;this.rowData.forEach((function(e){var n;if((n=e===null||e===void 0?void 0:e.firstInput)===null||n===void 0?void 0:n.length){t+=parseInt(e.firstInput)}}));this.rowSum=t.toString()};t.prototype.deleteExcessRows=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=this.rowCount-parseInt(e);for(var o=0;o<n;o++){this.rowData.pop()}this.rowData=__spreadArray([],this.rowData,true);this.showDelteConfirm=false;this.updateSum()};t.prototype.abortDeleteRows=function(){this.showDelteConfirm=false};t.prototype.emitValuesIfValid=function(){var t=this;this.formValues=[];this.rowData.forEach((function(e){var n,o,i,r;var s={row:[]};if((n=t._firstDropdownSelection)===null||n===void 0?void 0:n.length){var a={name:t.firstDropdownLabel,value:t._firstDropdownSelection};s.row.push(a)}if((o=e.firstInput)===null||o===void 0?void 0:o.length){var l={name:t.fristInputLabel,value:e.firstInput};s.row.push(l)}if((i=e.secondInput)===null||i===void 0?void 0:i.length){var d={name:t.secondInputLabel,value:e.secondInput};s.row.push(d)}if((r=e.date)===null||r===void 0?void 0:r.length){var u={name:t.dateLabel,value:e.date};s.row.push(u)}if(s.row.length===4){t.formValues.push(s)}}));if(this.formValues.length===this.rowData.length){var e=JSON.stringify(this.formValues);this.allFormValues.emit(e)}else{this.allFormValues.emit("")}};t.prototype.render=function(){var t=this;var e,n,o,i,r,s;return h(Host,{class:"dropdown-with-multi-input-elemet"},h("div",{class:"dropdown-with-multi-input-elemet__row"},h("div",null,h("pn-select",{ref:function(e){return t.pnFirstDropdown=e},class:"pn-row-select-dropdown dropDown1-dropdown",label:this.firstDropdownLabel},(e=this.dropdownDataRoot)===null||e===void 0?void 0:e.map((function(e,n){return h("pn-option",{index:n,value:e.value,selected:e.checked,onClick:debounce_1.debounce(t.handleFirstDropdown.bind(t),500)},e.caption)}))),((n=this.firstDropdownHelperText)===null||n===void 0?void 0:n.length)?h("small",null,this.firstDropdownHelperText):null)),h("div",{class:"dropdown-with-multi-input-elemet__row"},h("div",null,h("pn-select",{ref:function(e){return t.pnSecondDropdown=e},class:"pn-row-select-dropdown dropDown2-dropdown",label:this.secondDropdownLabel},(o=this.secondDropdownArr)===null||o===void 0?void 0:o.map((function(e,n){return h("pn-option",{index:n,value:e,selected:e===t._secondDropdownSelection,onClick:debounce_1.debounce(t.handleSecondDropdown.bind(t),500)},e)}))),((i=this.secondDropdownHelperText)===null||i===void 0?void 0:i.length)?h("small",null,this.secondDropdownHelperText):null)),this.showDelteConfirm?h("div",{class:"dropdown-with-multi-input-elemet__delete"},h("p",null,this.deleteMultipleRowsWarningText),h("pn-button",{ref:function(e){return t.pnConfirmDeleteButton=e},small:"true",appearance:"warning",onClick:this.deleteExcessRows.bind(this)},this.confirmDeleteButtonText),h("pn-button",{ref:function(e){return t.pnAbortDeleteButton=e},small:"true",appearance:"light",onClick:this.abortDeleteRows.bind(this)},this.abortDeleteButtonText)):null,h("div",{class:"dropdown-with-multi-input-elemet__label-row"},h("div",{class:"dropdown-with-multi-input-elemet__label"},h("label",null,this.fristInputLabel)),h("div",{class:"dropdown-with-multi-input-elemet__label"},h("label",null,this.secondInputLabel)),h("div",{class:"dropdown-with-multi-input-elemet__label"},h("label",null,this.dateLabel))),(r=this.rowData)===null||r===void 0?void 0:r.map((function(e,n){return h("div",{class:"dropdown-with-multi-input-elemet__row generated-row-"+n,id:"generated-row-"+n},h("pn-dropdown-with-multi-input-rows-row",{"language-code":t.languageCode,"frist-input-placeholder":t.fristInputPlaceholder,"first-input-min":t.firstInputMin,"first-input-max":t.firstInputMax,"first-input-warning":t.firstInputWarning,"first-input-warning-text":t.firstInputWarningText,"first-input-low-error-text":t.firstInputLowErrorText,"first-input-high-error-text":t.firstInputHighErrorText,"second-input-placeholder":t.secondInputPlaceholder,"second-input-min":t.secondInputMin,"second-input-max":t.secondInputMax,"second-input-warning":t.secondInputWarning,"second-input-warning-text":t.secondInputWarningText,"second-input-low-error-text":t.secondInputLowErrorText,"second-input-high-error-text":t.secondInputHighErrorText,datePlaceholder:t.datePlaceholder,firstValidDate:t.firstValidDateString,lastValidDate:t.lastValidDateString,"predefined-value":JSON.stringify(e),"min-row-count":t.minRowCount,"row-index":n}))})),h("div",{class:"dropdown-with-multi-input-elemet__row sum-row"},h("pn-marketweb-input",{disabled:true,ref:function(e){return t.pnSumField=e},type:"number",value:this.rowSum,label:this.sumFieldLabel}),h("pn-button",{"icon-only":this.addRowText?false:true,"left-icon":"true","aria-label":"Add",icon:"plus",appearance:"light",variant:"borderless",class:"connected-dropdown__button-right",onClick:function(){t.addRow(t.generateUniqueId())}},this.addRowText)),((s=this.elementHelperText)===null||s===void 0?void 0:s.length)?h("div",{class:"dropdown-with-multi-input-elemet__row"},this.elementHelperText):null)};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();PnDropdownWithMultiInputRows.style=pnDropdownWithMultiInputRowsCss;export{PnDropdownWithMultiInputRows as pn_dropdown_with_multi_input_rows};
1
+ var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var o=0,i=e.length,r;o<i;o++){if(r||!(o in e)){if(!r)r=Array.prototype.slice.call(e,0,o);r[o]=e[o]}}return t.concat(r||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-be8c3299.js";import{d as debounce_1}from"./index-8976f360.js";import{v as v4}from"./v4-f450efa7.js";var pnDropdownWithMultiInputRowsCss="pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__row{margin-bottom:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete{display:-ms-flexbox;display:flex;gap:1rem;margin-bottom:1rem;padding:1rem;background-color:#F9F8F8}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__delete pn-button{margin-top:0.9rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label-row{display:-ms-flexbox;display:flex;gap:1rem}pn-dropdown-with-multi-input-rows .dropdown-with-multi-input-elemet__label{width:30%;font-size:0.875em;color:#5e554a}pn-dropdown-with-multi-input-rows .sum-row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";var PnDropdownWithMultiInputRows=function(){function t(t){registerInstance(this,t);this.allFormValues=createEvent(this,"allFormValues",7);this.pnFirstDropdown=null;this.pnSecondDropdown=null;this.pnSumField=null;this.pnConfirmDeleteButton=null;this.pnAbortDeleteButton=null;this._firstDropdownSelection=null;this._secondDropdownSelection=null;this._defaultRow={id:this.generateUniqueId(),firstInput:"",secondInput:this.secondInputWarning.toString(),date:""};this.dropdownData=null;this.languageCode=null;this.firstDropdownLabel=null;this.firstDropdownHelperText=null;this.secondDropdownLabel=null;this.secondDropdownHelperText=null;this.secondDropdownMax=null;this.deleteMultipleRowsWarningText=null;this.confirmDeleteButtonText=null;this.abortDeleteButtonText=null;this.fristInputLabel=null;this.fristInputPlaceholder=null;this.firstInputMin=null;this.firstInputMax=null;this.firstInputWarning=null;this.firstInputWarningText=null;this.firstInputLowErrorText=null;this.firstInputHighErrorText=null;this.secondInputLabel=null;this.secondInputPlaceholder=null;this.secondInputMin=null;this.secondInputMax=null;this.secondInputWarning=null;this.secondInputWarningText=null;this.secondInputLowErrorText=null;this.secondInputHighErrorText=null;this.dateLabel=null;this.datePlaceholder=null;this.dateDaysFromToday=1;this.yearsToAddToEndDate=null;this.sumFieldLabel=null;this.addRowText=null;this.elementHelperText=null;this.dropdownDataRoot=null;this.secondDropdownArr=[];this.rowCount=null;this.rowData=null;this.formValues=null;this.firstValidDateString="";this.lastValidDateString="";this.rowSum=null;this.minRowCount=null;this.showDelteConfirm=false}t.prototype.componentWillLoad=function(){this.formValues=[];this.setDropDownData();this.updateSecondDropdown();this.setRowData();this.setFirstValidDate()};t.prototype.componentDidLoad=function(){this.updateSum()};t.prototype.setDropDownData=function(){var t;if(typeof this.dropdownData==="string"){this.dropdownDataRoot=JSON.parse(this.dropdownData)}else{this.dropdownDataRoot=this.dropdownData}if((t=this.dropdownDataRoot)===null||t===void 0?void 0:t.length){this.dropdownDataRoot.forEach((function(t){if(!t.value){t.value=0}}))}if(this.dropdownDataRoot.length>0){this.dropdownDataRoot[0].checked=true;this._firstDropdownSelection=this.dropdownDataRoot[0].caption;this._secondDropdownSelection=this.dropdownDataRoot[0].value;this.minRowCount=this.dropdownDataRoot[0].value}};t.prototype.updateSecondDropdown=function(){var t=this.dropdownDataRoot.find((function(t){return t.checked===true}));this.secondDropdownArr=[];for(var e=t.value;e<=this.secondDropdownMax;e++){this.secondDropdownArr.push(e)}};t.prototype.updateSelectItemArr=function(t,e){t.forEach((function(t){if(t.caption===e){t.checked=!t.checked}else{t.checked=false}}));return t};t.prototype.setRowData=function(){this.rowData=[];for(var t=0;t<this._secondDropdownSelection;t++){var e=Object.assign({},this._defaultRow);e.id=this.generateUniqueId();this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false)}this.rowCount=this.rowData.length};t.prototype.generateUniqueId=function(){return v4()};t.prototype.setFirstValidDate=function(){var t;var e=this.yearsToAddToEndDate?this.yearsToAddToEndDate:2;var n=new Date;n.setDate((t=n.getDate()+this.dateDaysFromToday)!==null&&t!==void 0?t:0);var o=n.getFullYear();var i=(n.getMonth()+1).toString().padStart(2,"0");var r=n.getDate().toString().padStart(2,"0");var s=o+e;this.firstValidDateString="".concat(o.toString(),"-").concat(i,"-").concat(r);this.lastValidDateString="".concat(s.toString(),"-").concat(i,"-").concat(r)};t.prototype.addRow=function(t){var e=Object.assign({},this.rowData[0]);e.id=t?t:this.generateUniqueId();e.date="";this.rowData=__spreadArray(__spreadArray([],this.rowData,true),[e],false);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.updateSum();this.emitValuesIfValid()};t.prototype.handleFirstDropdown=function(){var t=this.pnFirstDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}this.dropdownDataRoot.forEach((function(t){t.checked=false}));var n=this.dropdownDataRoot.find((function(t){return t.caption===e}));n.checked=true;this._firstDropdownSelection=n.caption;this.minRowCount=n.value;if(n.value>this._secondDropdownSelection){this.dropdownDataRoot=__spreadArray([],this.dropdownDataRoot,true);for(var o=this.rowCount;o<n.value;o++){this.addRow(this.generateUniqueId())}}this.updateSecondDropdown();this.updateSum();this.emitValuesIfValid()};t.prototype.handleSecondDropdown=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=parseInt(e);if(n<this._secondDropdownSelection){this.showDelteConfirm=true}else{for(var o=this.rowCount;o<n;o++){this.addRow(this.generateUniqueId())}}this.updateSum();this.emitValuesIfValid()};t.prototype.predefinedValueChange=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail.id}));var n=t.detail;this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:n.firstInput,secondInput:n.secondInput,date:n.date});if(t.type==="firstInputChange"&&e===0){this.updateFirstInputOfRows(n.firstInput)}if(t.type==="secondInputChange"&&e===0){this.updateSecondInputOfRows(n.secondInput)}this.rowData=__spreadArray([],this.rowData,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateFirstInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{firstInput:t})}};t.prototype.updateSecondInputOfRows=function(t){for(var e=1;e<this.rowCount;e++){this.rowData[e]=Object.assign(Object.assign({},this.rowData[e]),{secondInput:t})}};t.prototype.deleteRowEvent=function(t){var e=this.rowData.findIndex((function(e){return e.id===t.detail}));if(e<0){return}this.rowData.splice(e,1);this.rowData=__spreadArray([],this.rowData,true);this.rowCount=this.rowData.length;this._secondDropdownSelection=this.rowCount;this.secondDropdownArr=__spreadArray([],this.secondDropdownArr,true);this.emitValuesIfValid();this.updateSum()};t.prototype.updateSum=function(){this.rowSum="";var t=0;this.rowData.forEach((function(e){var n;if((n=e===null||e===void 0?void 0:e.firstInput)===null||n===void 0?void 0:n.length){t+=parseInt(e.firstInput)}}));this.rowSum=t.toString()};t.prototype.deleteExcessRows=function(){var t=this.pnSecondDropdown.querySelector(".current-selection .pn-option-content");var e=t===null||t===void 0?void 0:t.textContent;if(!(e===null||e===void 0?void 0:e.length)){return}var n=this.rowCount-parseInt(e);for(var o=0;o<n;o++){this.rowData.pop()}this.rowData=__spreadArray([],this.rowData,true);this.showDelteConfirm=false;this.updateSum()};t.prototype.abortDeleteRows=function(){this.showDelteConfirm=false};t.prototype.emitValuesIfValid=function(){var t=this;this.formValues=[];this.rowData.forEach((function(e){var n,o,i,r;var s={row:[]};if((n=t._firstDropdownSelection)===null||n===void 0?void 0:n.length){var a={name:t.firstDropdownLabel,value:t._firstDropdownSelection};s.row.push(a)}if((o=e.firstInput)===null||o===void 0?void 0:o.length){var l={name:t.fristInputLabel,value:e.firstInput};s.row.push(l)}if((i=e.secondInput)===null||i===void 0?void 0:i.length){var d={name:t.secondInputLabel,value:e.secondInput};s.row.push(d)}if((r=e.date)===null||r===void 0?void 0:r.length){var u={name:t.dateLabel,value:e.date};s.row.push(u)}if(s.row.length===4){t.formValues.push(s)}}));if(this.formValues.length===this.rowData.length){var e=JSON.stringify(this.formValues);this.allFormValues.emit(e)}else{this.allFormValues.emit("")}};t.prototype.render=function(){var t=this;var e,n,o,i,r,s;return h(Host,{class:"dropdown-with-multi-input-elemet"},h("div",{class:"dropdown-with-multi-input-elemet__row"},h("div",null,h("pn-select",{ref:function(e){return t.pnFirstDropdown=e},class:"pn-row-select-dropdown dropDown1-dropdown",label:this.firstDropdownLabel},(e=this.dropdownDataRoot)===null||e===void 0?void 0:e.map((function(e,n){return h("pn-option",{index:n,value:e.value,selected:e.checked,onClick:debounce_1.debounce(t.handleFirstDropdown.bind(t),500)},e.caption)}))),((n=this.firstDropdownHelperText)===null||n===void 0?void 0:n.length)?h("small",null,this.firstDropdownHelperText):null)),h("div",{class:"dropdown-with-multi-input-elemet__row"},h("div",null,h("pn-select",{ref:function(e){return t.pnSecondDropdown=e},class:"pn-row-select-dropdown dropDown2-dropdown",label:this.secondDropdownLabel},(o=this.secondDropdownArr)===null||o===void 0?void 0:o.map((function(e,n){return h("pn-option",{index:n,value:e,selected:e===t._secondDropdownSelection,onClick:debounce_1.debounce(t.handleSecondDropdown.bind(t),500)},e)}))),((i=this.secondDropdownHelperText)===null||i===void 0?void 0:i.length)?h("small",null,this.secondDropdownHelperText):null)),this.showDelteConfirm?h("div",{class:"dropdown-with-multi-input-elemet__delete"},h("p",null,this.deleteMultipleRowsWarningText),h("pn-button",{ref:function(e){return t.pnConfirmDeleteButton=e},small:"true",appearance:"warning",onClick:this.deleteExcessRows.bind(this)},this.confirmDeleteButtonText),h("pn-button",{ref:function(e){return t.pnAbortDeleteButton=e},small:"true",appearance:"light",onClick:this.abortDeleteRows.bind(this)},this.abortDeleteButtonText)):null,h("div",{class:"dropdown-with-multi-input-elemet__label-row"},h("div",{class:"dropdown-with-multi-input-elemet__label"},h("label",null,this.fristInputLabel)),h("div",{class:"dropdown-with-multi-input-elemet__label"},h("label",null,this.secondInputLabel)),h("div",{class:"dropdown-with-multi-input-elemet__label"},h("label",null,this.dateLabel))),(r=this.rowData)===null||r===void 0?void 0:r.map((function(e,n){return h("div",{class:"dropdown-with-multi-input-elemet__row generated-row-"+n,id:"generated-row-"+n},h("pn-dropdown-with-multi-input-rows-row",{"language-code":t.languageCode,"frist-input-placeholder":t.fristInputPlaceholder,"first-input-min":t.firstInputMin,"first-input-max":t.firstInputMax,"first-input-warning":t.firstInputWarning,"first-input-warning-text":t.firstInputWarningText,"first-input-low-error-text":t.firstInputLowErrorText,"first-input-high-error-text":t.firstInputHighErrorText,"second-input-placeholder":t.secondInputPlaceholder,"second-input-min":t.secondInputMin,"second-input-max":t.secondInputMax,"second-input-warning":t.secondInputWarning,"second-input-warning-text":t.secondInputWarningText,"second-input-low-error-text":t.secondInputLowErrorText,"second-input-high-error-text":t.secondInputHighErrorText,datePlaceholder:t.datePlaceholder,firstValidDate:t.firstValidDateString,lastValidDate:t.lastValidDateString,"predefined-value":JSON.stringify(e),"min-row-count":t.minRowCount,"row-index":n}))})),h("div",{class:"dropdown-with-multi-input-elemet__row sum-row"},h("pn-marketweb-input",{disabled:true,ref:function(e){return t.pnSumField=e},type:"number",value:this.rowSum,label:this.sumFieldLabel}),h("pn-button",{"icon-only":this.addRowText?false:true,"left-icon":"true","aria-label":"Add",icon:"plus",appearance:"light",variant:"borderless",class:"connected-dropdown__button-right",onClick:function(){t.addRow(t.generateUniqueId())}},this.addRowText)),((s=this.elementHelperText)===null||s===void 0?void 0:s.length)?h("div",{class:"dropdown-with-multi-input-elemet__row"},this.elementHelperText):null)};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();PnDropdownWithMultiInputRows.style=pnDropdownWithMultiInputRowsCss;export{PnDropdownWithMultiInputRows as pn_dropdown_with_multi_input_rows};