@postnord/pn-marketweb-components 3.0.3 → 3.0.4

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 (756) hide show
  1. package/cjs/{FetchHelper-8d537d38.js → FetchHelper-dcfe4038.js} +122 -123
  2. package/cjs/FetchHelper-dcfe4038.js.map +1 -0
  3. package/cjs/loader.cjs.js +1 -1
  4. package/cjs/pn-address-autofill.cjs.entry.js +47 -49
  5. package/cjs/pn-address-autofill.cjs.entry.js.map +1 -1
  6. package/cjs/pn-animated-tile.cjs.entry.js +4 -4
  7. package/cjs/pn-animated-tile.cjs.entry.js.map +1 -1
  8. package/cjs/pn-app-banner.cjs.entry.js +15 -15
  9. package/cjs/pn-app-banner.cjs.entry.js.map +1 -1
  10. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  11. package/cjs/pn-bonus-progressbar-level.cjs.entry.js.map +1 -1
  12. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  13. package/cjs/pn-bonus-progressbar.cjs.entry.js.map +1 -1
  14. package/cjs/pn-breakpoints.cjs.entry.js +1 -1
  15. package/cjs/pn-breakpoints.cjs.entry.js.map +1 -1
  16. package/cjs/pn-chart.cjs.entry.js +47 -10
  17. package/cjs/pn-chart.cjs.entry.js.map +1 -1
  18. package/cjs/pn-charts-card.cjs.entry.js +7 -7
  19. package/cjs/pn-charts-card.cjs.entry.js.map +1 -1
  20. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  21. package/cjs/pn-choice-button.cjs.entry.js.map +1 -1
  22. package/cjs/pn-cta-block.cjs.entry.js +1 -1
  23. package/cjs/pn-cta-block.cjs.entry.js.map +1 -1
  24. package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
  25. package/cjs/pn-customernumber-selector-option.cjs.entry.js.map +1 -1
  26. package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
  27. package/cjs/pn-customernumber-selector.cjs.entry.js.map +1 -1
  28. package/cjs/pn-date-and-time.cjs.entry.js +13 -15
  29. package/cjs/pn-date-and-time.cjs.entry.js.map +1 -1
  30. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +33 -36
  31. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js.map +1 -1
  32. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +13 -10
  33. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js.map +1 -1
  34. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +46 -40
  35. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js.map +1 -1
  36. package/cjs/pn-filter-checkbox.cjs.entry.js +2 -3
  37. package/cjs/pn-filter-checkbox.cjs.entry.js.map +1 -1
  38. package/cjs/pn-find-price.cjs.entry.js +1 -2
  39. package/cjs/pn-find-price.cjs.entry.js.map +1 -1
  40. package/cjs/pn-find-service-and-price.cjs.entry.js +2 -3
  41. package/cjs/pn-find-service-and-price.cjs.entry.js.map +1 -1
  42. package/cjs/pn-hero-block-international.cjs.entry.js +3 -3
  43. package/cjs/pn-hero-block-international.cjs.entry.js.map +1 -1
  44. package/cjs/pn-language-selector_9.cjs.entry.js +83 -79
  45. package/cjs/pn-language-selector_9.cjs.entry.js.map +1 -1
  46. package/cjs/pn-line-shape.cjs.entry.js +1 -1
  47. package/cjs/pn-line-shape.cjs.entry.js.map +1 -1
  48. package/cjs/pn-link-list.cjs.entry.js +33 -37
  49. package/cjs/pn-link-list.cjs.entry.js.map +1 -1
  50. package/cjs/pn-mainnav-link.cjs.entry.js +2 -2
  51. package/cjs/pn-mainnav-link.cjs.entry.js.map +1 -1
  52. package/cjs/pn-market-web-components.cjs.js +1 -1
  53. package/cjs/pn-marketweb-input.cjs.entry.js +1 -2
  54. package/cjs/pn-marketweb-input.cjs.entry.js.map +1 -1
  55. package/cjs/pn-marketweb-search.cjs.entry.js +5 -1
  56. package/cjs/pn-marketweb-search.cjs.entry.js.map +1 -1
  57. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +18 -24
  58. package/cjs/pn-marketweb-sitefooter.cjs.entry.js.map +1 -1
  59. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +17 -20
  60. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js.map +1 -1
  61. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +5 -5
  62. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js.map +1 -1
  63. package/cjs/pn-marketweb-siteheader.cjs.entry.js +22 -27
  64. package/cjs/pn-marketweb-siteheader.cjs.entry.js.map +1 -1
  65. package/cjs/pn-media-block.cjs.entry.js +31 -29
  66. package/cjs/pn-media-block.cjs.entry.js.map +1 -1
  67. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +37 -45
  68. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js.map +1 -1
  69. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +39 -33
  70. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js.map +1 -1
  71. package/cjs/pn-multiple-input.cjs.entry.js +9 -6
  72. package/cjs/pn-multiple-input.cjs.entry.js.map +1 -1
  73. package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
  74. package/cjs/pn-parcel-tracker.cjs.entry.js.map +1 -1
  75. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  76. package/cjs/pn-pex-pricefinder.cjs.entry.js.map +1 -1
  77. package/cjs/pn-play-on-scroll.cjs.entry.js +19 -17
  78. package/cjs/pn-play-on-scroll.cjs.entry.js.map +1 -1
  79. package/cjs/pn-product-pricelist.cjs.entry.js +2 -3
  80. package/cjs/pn-product-pricelist.cjs.entry.js.map +1 -1
  81. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +2 -1
  82. package/cjs/pn-profile-modal-customernumber.cjs.entry.js.map +1 -1
  83. package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -1
  84. package/cjs/pn-profile-modal-profile.cjs.entry.js.map +1 -1
  85. package/cjs/pn-profile-modal-type.cjs.entry.js +1 -1
  86. package/cjs/pn-profile-modal-type.cjs.entry.js.map +1 -1
  87. package/cjs/pn-profile-modal.cjs.entry.js +1 -1
  88. package/cjs/pn-profile-modal.cjs.entry.js.map +1 -1
  89. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  90. package/cjs/pn-profile-selector-option.cjs.entry.js.map +1 -1
  91. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  92. package/cjs/pn-profile-selector.cjs.entry.js.map +1 -1
  93. package/cjs/pn-proxio-findprice-result.cjs.entry.js +8 -12
  94. package/cjs/pn-proxio-findprice-result.cjs.entry.js.map +1 -1
  95. package/cjs/pn-proxio-findprice.cjs.entry.js +16 -23
  96. package/cjs/pn-proxio-findprice.cjs.entry.js.map +1 -1
  97. package/cjs/pn-proxio-pricegroup.cjs.entry.js +9 -13
  98. package/cjs/pn-proxio-pricegroup.cjs.entry.js.map +1 -1
  99. package/cjs/pn-quick-cta.cjs.entry.js +1 -1
  100. package/cjs/pn-quick-cta.cjs.entry.js.map +1 -1
  101. package/cjs/pn-quote-card.cjs.entry.js +1 -1
  102. package/cjs/pn-quote-card.cjs.entry.js.map +1 -1
  103. package/cjs/pn-scroll_2.cjs.entry.js +16 -15
  104. package/cjs/pn-scroll_2.cjs.entry.js.map +1 -1
  105. package/cjs/pn-share-item.cjs.entry.js +1 -1
  106. package/cjs/pn-share-item.cjs.entry.js.map +1 -1
  107. package/cjs/pn-share.cjs.entry.js +1 -1
  108. package/cjs/pn-share.cjs.entry.js.map +1 -1
  109. package/cjs/pn-sidenav-level.cjs.entry.js +3 -4
  110. package/cjs/pn-sidenav-level.cjs.entry.js.map +1 -1
  111. package/cjs/pn-sidenav-link.cjs.entry.js +2 -2
  112. package/cjs/pn-sidenav-link.cjs.entry.js.map +1 -1
  113. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +1 -1
  114. package/cjs/pn-sidenav-togglebutton.cjs.entry.js.map +1 -1
  115. package/cjs/pn-sidenav.cjs.entry.js +1 -1
  116. package/cjs/pn-sidenav.cjs.entry.js.map +1 -1
  117. package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
  118. package/cjs/pn-site-footer_3.cjs.entry.js.map +1 -1
  119. package/cjs/pn-spotlight.cjs.entry.js +1 -1
  120. package/cjs/pn-spotlight.cjs.entry.js.map +1 -1
  121. package/cjs/pn-stats-info-data.cjs.entry.js +5 -5
  122. package/cjs/pn-stats-info-data.cjs.entry.js.map +1 -1
  123. package/cjs/pn-teaser-card.cjs.entry.js +2 -3
  124. package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
  125. package/cjs/pn-titletag.cjs.entry.js +1 -1
  126. package/cjs/pn-titletag.cjs.entry.js.map +1 -1
  127. package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
  128. package/cjs/pn-usp-promoter.cjs.entry.js.map +1 -1
  129. package/collection/components/animation/pn-animated-tile/pn-animated-tile.js +4 -3
  130. package/collection/components/animation/pn-animated-tile/pn-animated-tile.js.map +1 -1
  131. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +19 -16
  132. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js.map +1 -1
  133. package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js +11 -9
  134. package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js.map +1 -1
  135. package/collection/components/animation/pn-scroll/pn-scroll.js +5 -4
  136. package/collection/components/animation/pn-scroll/pn-scroll.js.map +1 -1
  137. package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js +1 -0
  138. package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.js.map +1 -1
  139. package/collection/components/cards/pn-quote-card/pn-quote-card.js +1 -0
  140. package/collection/components/cards/pn-quote-card/pn-quote-card.js.map +1 -1
  141. package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +2 -2
  142. package/collection/components/cards/pn-teaser-card/pn-teaser-card.js.map +1 -1
  143. package/collection/components/charts/pn-chart/pn-chart-helper.js +32 -7
  144. package/collection/components/charts/pn-chart/pn-chart-helper.js.map +1 -1
  145. package/collection/components/charts/pn-chart/pn-chart.js +15 -2
  146. package/collection/components/charts/pn-chart/pn-chart.js.map +1 -1
  147. package/collection/components/charts/pn-charts-card/pn-charts-card.js +7 -6
  148. package/collection/components/charts/pn-charts-card/pn-charts-card.js.map +1 -1
  149. package/collection/components/cta/pn-cta-block/pn-cta-block.js +1 -0
  150. package/collection/components/cta/pn-cta-block/pn-cta-block.js.map +1 -1
  151. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +1 -0
  152. package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js.map +1 -1
  153. package/collection/components/cta/pn-quick-cta/pn-quick-cta.js +1 -0
  154. package/collection/components/cta/pn-quick-cta/pn-quick-cta.js.map +1 -1
  155. package/collection/components/cta/pn-share/pn-share-item.js +1 -0
  156. package/collection/components/cta/pn-share/pn-share-item.js.map +1 -1
  157. package/collection/components/cta/pn-share/pn-share.js +1 -0
  158. package/collection/components/cta/pn-share/pn-share.js.map +1 -1
  159. package/collection/components/cta/pn-spotlight/pn-spotlight.js +1 -0
  160. package/collection/components/cta/pn-spotlight/pn-spotlight.js.map +1 -1
  161. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +5 -5
  162. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js.map +1 -1
  163. package/collection/components/input/pn-address-autofill/pn-address-autofill.js +46 -47
  164. package/collection/components/input/pn-address-autofill/pn-address-autofill.js.map +1 -1
  165. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js +1 -0
  166. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js.map +1 -1
  167. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +1 -0
  168. package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js.map +1 -1
  169. package/collection/components/input/pn-choice-button/pn-choice-button.js +1 -0
  170. package/collection/components/input/pn-choice-button/pn-choice-button.js.map +1 -1
  171. package/collection/components/input/pn-date-and-time/pn-date-and-time.js +13 -14
  172. package/collection/components/input/pn-date-and-time/pn-date-and-time.js.map +1 -1
  173. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +51 -35
  174. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js.map +1 -1
  175. package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.stories.js +1 -1
  176. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.js +13 -9
  177. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.js.map +1 -1
  178. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js +46 -39
  179. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.js.map +1 -1
  180. package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.stories.js +1 -1
  181. package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js +2 -2
  182. package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.js.map +1 -1
  183. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +1 -2
  184. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js.map +1 -1
  185. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +5 -0
  186. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js.map +1 -1
  187. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.js +37 -44
  188. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.js.map +1 -1
  189. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js +39 -32
  190. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.js.map +1 -1
  191. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.stories.js +1 -1
  192. package/collection/components/input/pn-multiple-input/pn-multiple-input.js +9 -5
  193. package/collection/components/input/pn-multiple-input/pn-multiple-input.js.map +1 -1
  194. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +17 -22
  195. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js.map +1 -1
  196. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +2 -0
  197. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js.map +1 -1
  198. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +5 -4
  199. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js.map +1 -1
  200. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +6 -7
  201. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js.map +1 -1
  202. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +1 -0
  203. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js.map +1 -1
  204. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +7 -8
  205. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js.map +1 -1
  206. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +7 -6
  207. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js.map +1 -1
  208. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js +3 -2
  209. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js.map +1 -1
  210. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +1 -0
  211. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js.map +1 -1
  212. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +21 -25
  213. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js.map +1 -1
  214. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +5 -22
  215. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js.map +1 -1
  216. package/collection/components/media/pn-media-block/pn-media-block.js +31 -28
  217. package/collection/components/media/pn-media-block/pn-media-block.js.map +1 -1
  218. package/collection/components/minor/pn-app-banner/pn-app-banner.js +15 -14
  219. package/collection/components/minor/pn-app-banner/pn-app-banner.js.map +1 -1
  220. package/collection/components/minor/pn-swan/pn-swan.js +1 -0
  221. package/collection/components/minor/pn-swan/pn-swan.js.map +1 -1
  222. package/collection/components/minor/pn-titletag/pn-titletag.js +1 -0
  223. package/collection/components/minor/pn-titletag/pn-titletag.js.map +1 -1
  224. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +1 -0
  225. package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js.map +1 -1
  226. package/collection/components/navigation/pn-language-selector/pn-language-selector.js +4 -2
  227. package/collection/components/navigation/pn-language-selector/pn-language-selector.js.map +1 -1
  228. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +2 -1
  229. package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js.map +1 -1
  230. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +2 -1
  231. package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js.map +1 -1
  232. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +1 -0
  233. package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js.map +1 -1
  234. package/collection/components/navigation/pn-mainnav/pn-mainnav.js +4 -0
  235. package/collection/components/navigation/pn-mainnav/pn-mainnav.js.map +1 -1
  236. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +3 -3
  237. package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js.map +1 -1
  238. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +2 -1
  239. package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js.map +1 -1
  240. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +1 -0
  241. package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js.map +1 -1
  242. package/collection/components/navigation/pn-sidenav/pn-sidenav.js +1 -0
  243. package/collection/components/navigation/pn-sidenav/pn-sidenav.js.map +1 -1
  244. package/collection/components/navigation/pn-site-selector/pn-site-selector.js +1 -0
  245. package/collection/components/navigation/pn-site-selector/pn-site-selector.js.map +1 -1
  246. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +1 -0
  247. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js.map +1 -1
  248. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +1 -0
  249. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js.map +1 -1
  250. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +2 -0
  251. package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js.map +1 -1
  252. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +3 -0
  253. package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js.map +1 -1
  254. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +1 -0
  255. package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js.map +1 -1
  256. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +1 -0
  257. package/collection/components/profile/pn-profile-modal/pn-profile-modal.js.map +1 -1
  258. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +1 -0
  259. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js.map +1 -1
  260. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +1 -0
  261. package/collection/components/profile/pn-profile-selector/pn-profile-selector.js.map +1 -1
  262. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +1 -0
  263. package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js.map +1 -1
  264. package/collection/components/widgets/pn-find-price/pn-find-price.js +1 -2
  265. package/collection/components/widgets/pn-find-price/pn-find-price.js.map +1 -1
  266. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +2 -3
  267. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js.map +1 -1
  268. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +3 -2
  269. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js.map +1 -1
  270. package/collection/components/widgets/pn-link-list/pn-link-list.js +33 -37
  271. package/collection/components/widgets/pn-link-list/pn-link-list.js.map +1 -1
  272. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +1 -0
  273. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js.map +1 -1
  274. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -3
  275. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js.map +1 -1
  276. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +8 -12
  277. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js.map +1 -1
  278. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +15 -22
  279. package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js.map +1 -1
  280. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +8 -12
  281. package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js.map +1 -1
  282. package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js +1 -0
  283. package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js.map +1 -1
  284. package/collection/globals/FetchHelper.js +35 -35
  285. package/collection/globals/FetchHelper.js.map +1 -1
  286. package/collection/globals/MarketWebContextService.js +86 -87
  287. package/collection/globals/MarketWebContextService.js.map +1 -1
  288. package/collection/globals/MarketWebLoginManager.js +60 -61
  289. package/collection/globals/MarketWebLoginManager.js.map +1 -1
  290. package/components/FetchHelper.js +121 -122
  291. package/components/FetchHelper.js.map +1 -1
  292. package/components/pn-address-autofill.js +46 -48
  293. package/components/pn-address-autofill.js.map +1 -1
  294. package/components/pn-animated-tile.js +4 -4
  295. package/components/pn-animated-tile.js.map +1 -1
  296. package/components/pn-app-banner.js +15 -15
  297. package/components/pn-app-banner.js.map +1 -1
  298. package/components/pn-bonus-progressbar-level.js +1 -1
  299. package/components/pn-bonus-progressbar-level.js.map +1 -1
  300. package/components/pn-bonus-progressbar.js +1 -1
  301. package/components/pn-bonus-progressbar.js.map +1 -1
  302. package/components/pn-breakpoints.js +1 -1
  303. package/components/pn-breakpoints.js.map +1 -1
  304. package/components/pn-chart.js +47 -10
  305. package/components/pn-chart.js.map +1 -1
  306. package/components/pn-charts-card.js +7 -7
  307. package/components/pn-charts-card.js.map +1 -1
  308. package/components/pn-choice-button2.js +1 -1
  309. package/components/pn-choice-button2.js.map +1 -1
  310. package/components/pn-cta-block.js +1 -1
  311. package/components/pn-cta-block.js.map +1 -1
  312. package/components/pn-customernumber-selector-option.js +1 -1
  313. package/components/pn-customernumber-selector-option.js.map +1 -1
  314. package/components/pn-customernumber-selector.js +1 -1
  315. package/components/pn-customernumber-selector.js.map +1 -1
  316. package/components/pn-date-and-time.js +13 -15
  317. package/components/pn-date-and-time.js.map +1 -1
  318. package/components/pn-dropdown-choice-adds-row.js +34 -36
  319. package/components/pn-dropdown-choice-adds-row.js.map +1 -1
  320. package/components/pn-dropdown-with-multi-input-rows-row2.js +13 -10
  321. package/components/pn-dropdown-with-multi-input-rows-row2.js.map +1 -1
  322. package/components/pn-dropdown-with-multi-input-rows.js +46 -40
  323. package/components/pn-dropdown-with-multi-input-rows.js.map +1 -1
  324. package/components/pn-filter-checkbox2.js +2 -3
  325. package/components/pn-filter-checkbox2.js.map +1 -1
  326. package/components/pn-find-price.js +1 -2
  327. package/components/pn-find-price.js.map +1 -1
  328. package/components/pn-find-service-and-price.js +2 -3
  329. package/components/pn-find-service-and-price.js.map +1 -1
  330. package/components/pn-hero-block-international.js +3 -3
  331. package/components/pn-hero-block-international.js.map +1 -1
  332. package/components/pn-language-selector-option2.js +1 -0
  333. package/components/pn-language-selector-option2.js.map +1 -1
  334. package/components/pn-language-selector2.js +4 -3
  335. package/components/pn-language-selector2.js.map +1 -1
  336. package/components/pn-line-shape.js +1 -1
  337. package/components/pn-line-shape.js.map +1 -1
  338. package/components/pn-link-list.js +33 -37
  339. package/components/pn-link-list.js.map +1 -1
  340. package/components/pn-mainnav-level2.js +2 -2
  341. package/components/pn-mainnav-level2.js.map +1 -1
  342. package/components/pn-mainnav-link2.js +2 -2
  343. package/components/pn-mainnav-link2.js.map +1 -1
  344. package/components/pn-mainnav-list2.js +1 -1
  345. package/components/pn-mainnav-list2.js.map +1 -1
  346. package/components/pn-mainnav2.js +4 -1
  347. package/components/pn-mainnav2.js.map +1 -1
  348. package/components/pn-marketweb-input2.js +1 -2
  349. package/components/pn-marketweb-input2.js.map +1 -1
  350. package/components/pn-marketweb-search.js +5 -1
  351. package/components/pn-marketweb-search.js.map +1 -1
  352. package/components/pn-marketweb-sitefooter.js +17 -23
  353. package/components/pn-marketweb-sitefooter.js.map +1 -1
  354. package/components/pn-marketweb-siteheader-login-button2.js +2 -1
  355. package/components/pn-marketweb-siteheader-login-button2.js.map +1 -1
  356. package/components/pn-marketweb-siteheader-login-linklist2.js +5 -5
  357. package/components/pn-marketweb-siteheader-login-linklist2.js.map +1 -1
  358. package/components/pn-marketweb-siteheader-login-links2.js +6 -8
  359. package/components/pn-marketweb-siteheader-login-links2.js.map +1 -1
  360. package/components/pn-marketweb-siteheader-login-mypage-button2.js +1 -1
  361. package/components/pn-marketweb-siteheader-login-mypage-button2.js.map +1 -1
  362. package/components/pn-marketweb-siteheader-login-profileselection2.js +7 -9
  363. package/components/pn-marketweb-siteheader-login-profileselection2.js.map +1 -1
  364. package/components/pn-marketweb-siteheader-login2.js +67 -68
  365. package/components/pn-marketweb-siteheader-login2.js.map +1 -1
  366. package/components/pn-marketweb-siteheader-search2.js +3 -3
  367. package/components/pn-marketweb-siteheader-search2.js.map +1 -1
  368. package/components/pn-marketweb-siteheader-unified-login2.js +1 -1
  369. package/components/pn-marketweb-siteheader-unified-login2.js.map +1 -1
  370. package/components/pn-marketweb-siteheader.js +21 -26
  371. package/components/pn-marketweb-siteheader.js.map +1 -1
  372. package/components/pn-media-block.js +31 -29
  373. package/components/pn-media-block.js.map +1 -1
  374. package/components/pn-multi-row-connected-dropdown-row2.js +37 -45
  375. package/components/pn-multi-row-connected-dropdown-row2.js.map +1 -1
  376. package/components/pn-multi-row-connected-dropdown.js +39 -33
  377. package/components/pn-multi-row-connected-dropdown.js.map +1 -1
  378. package/components/pn-multiple-input.js +9 -6
  379. package/components/pn-multiple-input.js.map +1 -1
  380. package/components/pn-parcel-tracker.js +1 -1
  381. package/components/pn-parcel-tracker.js.map +1 -1
  382. package/components/pn-pex-pricefinder.js +1 -1
  383. package/components/pn-pex-pricefinder.js.map +1 -1
  384. package/components/pn-play-on-scroll2.js +19 -17
  385. package/components/pn-play-on-scroll2.js.map +1 -1
  386. package/components/pn-product-pricelist.js +2 -3
  387. package/components/pn-product-pricelist.js.map +1 -1
  388. package/components/pn-profile-modal-customernumber.js +2 -1
  389. package/components/pn-profile-modal-customernumber.js.map +1 -1
  390. package/components/pn-profile-modal-profile.js +3 -1
  391. package/components/pn-profile-modal-profile.js.map +1 -1
  392. package/components/pn-profile-modal-type.js +1 -1
  393. package/components/pn-profile-modal-type.js.map +1 -1
  394. package/components/pn-profile-modal.js +1 -1
  395. package/components/pn-profile-modal.js.map +1 -1
  396. package/components/pn-profile-selector-option.js +1 -1
  397. package/components/pn-profile-selector-option.js.map +1 -1
  398. package/components/pn-profile-selector.js +1 -1
  399. package/components/pn-profile-selector.js.map +1 -1
  400. package/components/pn-proxio-findprice-result2.js +8 -12
  401. package/components/pn-proxio-findprice-result2.js.map +1 -1
  402. package/components/pn-proxio-findprice.js +15 -22
  403. package/components/pn-proxio-findprice.js.map +1 -1
  404. package/components/pn-proxio-pricegroup.js +8 -12
  405. package/components/pn-proxio-pricegroup.js.map +1 -1
  406. package/components/pn-quick-cta.js +1 -1
  407. package/components/pn-quick-cta.js.map +1 -1
  408. package/components/pn-quote-card.js +1 -1
  409. package/components/pn-quote-card.js.map +1 -1
  410. package/components/pn-scroll2.js +5 -5
  411. package/components/pn-scroll2.js.map +1 -1
  412. package/components/pn-share-item2.js +1 -1
  413. package/components/pn-share-item2.js.map +1 -1
  414. package/components/pn-share.js +1 -1
  415. package/components/pn-share.js.map +1 -1
  416. package/components/pn-sidenav-level.js +3 -4
  417. package/components/pn-sidenav-level.js.map +1 -1
  418. package/components/pn-sidenav-link.js +2 -2
  419. package/components/pn-sidenav-link.js.map +1 -1
  420. package/components/pn-sidenav-togglebutton.js +1 -1
  421. package/components/pn-sidenav-togglebutton.js.map +1 -1
  422. package/components/pn-sidenav.js +1 -1
  423. package/components/pn-sidenav.js.map +1 -1
  424. package/components/pn-site-selector2.js +1 -1
  425. package/components/pn-site-selector2.js.map +1 -1
  426. package/components/pn-spotlight.js +1 -1
  427. package/components/pn-spotlight.js.map +1 -1
  428. package/components/pn-stats-info-data2.js +5 -5
  429. package/components/pn-stats-info-data2.js.map +1 -1
  430. package/components/pn-swan2.js +1 -1
  431. package/components/pn-swan2.js.map +1 -1
  432. package/components/pn-teaser-card.js +2 -3
  433. package/components/pn-teaser-card.js.map +1 -1
  434. package/components/pn-titletag2.js +1 -1
  435. package/components/pn-titletag2.js.map +1 -1
  436. package/components/pn-usp-promoter.js +1 -1
  437. package/components/pn-usp-promoter.js.map +1 -1
  438. package/components/pn-video-overlay2.js +11 -10
  439. package/components/pn-video-overlay2.js.map +1 -1
  440. package/esm/{FetchHelper-03b37a44.js → FetchHelper-da579b12.js} +122 -123
  441. package/esm/FetchHelper-da579b12.js.map +1 -0
  442. package/esm/loader.js +1 -1
  443. package/esm/pn-address-autofill.entry.js +48 -50
  444. package/esm/pn-address-autofill.entry.js.map +1 -1
  445. package/esm/pn-animated-tile.entry.js +5 -5
  446. package/esm/pn-animated-tile.entry.js.map +1 -1
  447. package/esm/pn-app-banner.entry.js +16 -16
  448. package/esm/pn-app-banner.entry.js.map +1 -1
  449. package/esm/pn-bonus-progressbar-level.entry.js +2 -2
  450. package/esm/pn-bonus-progressbar-level.entry.js.map +1 -1
  451. package/esm/pn-bonus-progressbar.entry.js +2 -2
  452. package/esm/pn-bonus-progressbar.entry.js.map +1 -1
  453. package/esm/pn-breakpoints.entry.js +2 -2
  454. package/esm/pn-breakpoints.entry.js.map +1 -1
  455. package/esm/pn-chart.entry.js +48 -11
  456. package/esm/pn-chart.entry.js.map +1 -1
  457. package/esm/pn-charts-card.entry.js +8 -8
  458. package/esm/pn-charts-card.entry.js.map +1 -1
  459. package/esm/pn-choice-button.entry.js +2 -2
  460. package/esm/pn-choice-button.entry.js.map +1 -1
  461. package/esm/pn-cta-block.entry.js +2 -2
  462. package/esm/pn-cta-block.entry.js.map +1 -1
  463. package/esm/pn-customernumber-selector-option.entry.js +2 -2
  464. package/esm/pn-customernumber-selector-option.entry.js.map +1 -1
  465. package/esm/pn-customernumber-selector.entry.js +2 -2
  466. package/esm/pn-customernumber-selector.entry.js.map +1 -1
  467. package/esm/pn-date-and-time.entry.js +14 -16
  468. package/esm/pn-date-and-time.entry.js.map +1 -1
  469. package/esm/pn-dropdown-choice-adds-row.entry.js +34 -37
  470. package/esm/pn-dropdown-choice-adds-row.entry.js.map +1 -1
  471. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +14 -11
  472. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js.map +1 -1
  473. package/esm/pn-dropdown-with-multi-input-rows.entry.js +47 -41
  474. package/esm/pn-dropdown-with-multi-input-rows.entry.js.map +1 -1
  475. package/esm/pn-filter-checkbox.entry.js +3 -4
  476. package/esm/pn-filter-checkbox.entry.js.map +1 -1
  477. package/esm/pn-find-price.entry.js +1 -2
  478. package/esm/pn-find-price.entry.js.map +1 -1
  479. package/esm/pn-find-service-and-price.entry.js +2 -3
  480. package/esm/pn-find-service-and-price.entry.js.map +1 -1
  481. package/esm/pn-hero-block-international.entry.js +4 -4
  482. package/esm/pn-hero-block-international.entry.js.map +1 -1
  483. package/esm/pn-language-selector_9.entry.js +84 -80
  484. package/esm/pn-language-selector_9.entry.js.map +1 -1
  485. package/esm/pn-line-shape.entry.js +2 -2
  486. package/esm/pn-line-shape.entry.js.map +1 -1
  487. package/esm/pn-link-list.entry.js +33 -37
  488. package/esm/pn-link-list.entry.js.map +1 -1
  489. package/esm/pn-mainnav-link.entry.js +3 -3
  490. package/esm/pn-mainnav-link.entry.js.map +1 -1
  491. package/esm/pn-market-web-components.js +1 -1
  492. package/esm/pn-marketweb-input.entry.js +1 -2
  493. package/esm/pn-marketweb-input.entry.js.map +1 -1
  494. package/esm/pn-marketweb-search.entry.js +6 -2
  495. package/esm/pn-marketweb-search.entry.js.map +1 -1
  496. package/esm/pn-marketweb-sitefooter.entry.js +19 -25
  497. package/esm/pn-marketweb-sitefooter.entry.js.map +1 -1
  498. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +18 -21
  499. package/esm/pn-marketweb-siteheader-login-button_5.entry.js.map +1 -1
  500. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +6 -6
  501. package/esm/pn-marketweb-siteheader-login-linklist.entry.js.map +1 -1
  502. package/esm/pn-marketweb-siteheader.entry.js +23 -28
  503. package/esm/pn-marketweb-siteheader.entry.js.map +1 -1
  504. package/esm/pn-media-block.entry.js +32 -30
  505. package/esm/pn-media-block.entry.js.map +1 -1
  506. package/esm/pn-multi-row-connected-dropdown-row.entry.js +38 -46
  507. package/esm/pn-multi-row-connected-dropdown-row.entry.js.map +1 -1
  508. package/esm/pn-multi-row-connected-dropdown.entry.js +40 -34
  509. package/esm/pn-multi-row-connected-dropdown.entry.js.map +1 -1
  510. package/esm/pn-multiple-input.entry.js +10 -7
  511. package/esm/pn-multiple-input.entry.js.map +1 -1
  512. package/esm/pn-parcel-tracker.entry.js +2 -2
  513. package/esm/pn-parcel-tracker.entry.js.map +1 -1
  514. package/esm/pn-pex-pricefinder.entry.js +2 -2
  515. package/esm/pn-pex-pricefinder.entry.js.map +1 -1
  516. package/esm/pn-play-on-scroll.entry.js +20 -18
  517. package/esm/pn-play-on-scroll.entry.js.map +1 -1
  518. package/esm/pn-product-pricelist.entry.js +2 -3
  519. package/esm/pn-product-pricelist.entry.js.map +1 -1
  520. package/esm/pn-profile-modal-customernumber.entry.js +3 -2
  521. package/esm/pn-profile-modal-customernumber.entry.js.map +1 -1
  522. package/esm/pn-profile-modal-profile.entry.js +4 -2
  523. package/esm/pn-profile-modal-profile.entry.js.map +1 -1
  524. package/esm/pn-profile-modal-type.entry.js +2 -2
  525. package/esm/pn-profile-modal-type.entry.js.map +1 -1
  526. package/esm/pn-profile-modal.entry.js +2 -2
  527. package/esm/pn-profile-modal.entry.js.map +1 -1
  528. package/esm/pn-profile-selector-option.entry.js +2 -2
  529. package/esm/pn-profile-selector-option.entry.js.map +1 -1
  530. package/esm/pn-profile-selector.entry.js +2 -2
  531. package/esm/pn-profile-selector.entry.js.map +1 -1
  532. package/esm/pn-proxio-findprice-result.entry.js +8 -12
  533. package/esm/pn-proxio-findprice-result.entry.js.map +1 -1
  534. package/esm/pn-proxio-findprice.entry.js +16 -23
  535. package/esm/pn-proxio-findprice.entry.js.map +1 -1
  536. package/esm/pn-proxio-pricegroup.entry.js +9 -13
  537. package/esm/pn-proxio-pricegroup.entry.js.map +1 -1
  538. package/esm/pn-quick-cta.entry.js +2 -2
  539. package/esm/pn-quick-cta.entry.js.map +1 -1
  540. package/esm/pn-quote-card.entry.js +2 -2
  541. package/esm/pn-quote-card.entry.js.map +1 -1
  542. package/esm/pn-scroll_2.entry.js +17 -16
  543. package/esm/pn-scroll_2.entry.js.map +1 -1
  544. package/esm/pn-share-item.entry.js +2 -2
  545. package/esm/pn-share-item.entry.js.map +1 -1
  546. package/esm/pn-share.entry.js +2 -2
  547. package/esm/pn-share.entry.js.map +1 -1
  548. package/esm/pn-sidenav-level.entry.js +4 -5
  549. package/esm/pn-sidenav-level.entry.js.map +1 -1
  550. package/esm/pn-sidenav-link.entry.js +3 -3
  551. package/esm/pn-sidenav-link.entry.js.map +1 -1
  552. package/esm/pn-sidenav-togglebutton.entry.js +2 -2
  553. package/esm/pn-sidenav-togglebutton.entry.js.map +1 -1
  554. package/esm/pn-sidenav.entry.js +2 -2
  555. package/esm/pn-sidenav.entry.js.map +1 -1
  556. package/esm/pn-site-footer_3.entry.js +1 -1
  557. package/esm/pn-site-footer_3.entry.js.map +1 -1
  558. package/esm/pn-spotlight.entry.js +2 -2
  559. package/esm/pn-spotlight.entry.js.map +1 -1
  560. package/esm/pn-stats-info-data.entry.js +5 -5
  561. package/esm/pn-stats-info-data.entry.js.map +1 -1
  562. package/esm/pn-teaser-card.entry.js +3 -4
  563. package/esm/pn-teaser-card.entry.js.map +1 -1
  564. package/esm/pn-titletag.entry.js +2 -2
  565. package/esm/pn-titletag.entry.js.map +1 -1
  566. package/esm/pn-usp-promoter.entry.js +2 -2
  567. package/esm/pn-usp-promoter.entry.js.map +1 -1
  568. package/package.json +1 -2
  569. package/pn-market-web-components/{p-8ca34ec3.entry.js → p-0247c553.entry.js} +2 -2
  570. package/pn-market-web-components/p-0247c553.entry.js.map +1 -0
  571. package/pn-market-web-components/{p-3f50be05.entry.js → p-09b9cc06.entry.js} +2 -2
  572. package/pn-market-web-components/{p-3f50be05.entry.js.map → p-09b9cc06.entry.js.map} +1 -1
  573. package/pn-market-web-components/{p-03dfc155.entry.js → p-0a522476.entry.js} +2 -2
  574. package/pn-market-web-components/{p-03dfc155.entry.js.map → p-0a522476.entry.js.map} +1 -1
  575. package/pn-market-web-components/{p-2b2b615e.entry.js → p-1317587f.entry.js} +4 -4
  576. package/pn-market-web-components/{p-2b2b615e.entry.js.map → p-1317587f.entry.js.map} +1 -1
  577. package/pn-market-web-components/p-1535a09f.entry.js +2 -0
  578. package/pn-market-web-components/p-1535a09f.entry.js.map +1 -0
  579. package/pn-market-web-components/{p-470ca6e7.entry.js → p-1578e02e.entry.js} +2 -2
  580. package/pn-market-web-components/{p-470ca6e7.entry.js.map → p-1578e02e.entry.js.map} +1 -1
  581. package/pn-market-web-components/p-16f70311.entry.js +2 -0
  582. package/pn-market-web-components/{p-b7a5fb1b.entry.js.map → p-16f70311.entry.js.map} +1 -1
  583. package/pn-market-web-components/{p-c8bbdd96.entry.js → p-190c671b.entry.js} +2 -2
  584. package/pn-market-web-components/{p-c8bbdd96.entry.js.map → p-190c671b.entry.js.map} +1 -1
  585. package/pn-market-web-components/{p-3e4208bb.entry.js → p-1bd5fa26.entry.js} +2 -2
  586. package/pn-market-web-components/{p-3e4208bb.entry.js.map → p-1bd5fa26.entry.js.map} +1 -1
  587. package/pn-market-web-components/{p-e74e962e.entry.js → p-2044eddc.entry.js} +2 -2
  588. package/pn-market-web-components/{p-e74e962e.entry.js.map → p-2044eddc.entry.js.map} +1 -1
  589. package/pn-market-web-components/p-370829c6.entry.js +2 -0
  590. package/pn-market-web-components/p-370829c6.entry.js.map +1 -0
  591. package/pn-market-web-components/p-391970af.entry.js +2 -0
  592. package/pn-market-web-components/p-391970af.entry.js.map +1 -0
  593. package/pn-market-web-components/{p-49fd7182.entry.js → p-40538914.entry.js} +2 -2
  594. package/pn-market-web-components/{p-49fd7182.entry.js.map → p-40538914.entry.js.map} +1 -1
  595. package/pn-market-web-components/{p-fa9ea740.entry.js → p-4372d10e.entry.js} +2 -2
  596. package/pn-market-web-components/p-4372d10e.entry.js.map +1 -0
  597. package/pn-market-web-components/p-4ea1409d.entry.js +2 -0
  598. package/pn-market-web-components/p-4ea1409d.entry.js.map +1 -0
  599. package/pn-market-web-components/{p-66981606.entry.js → p-56bd346e.entry.js} +2 -2
  600. package/pn-market-web-components/{p-66981606.entry.js.map → p-56bd346e.entry.js.map} +1 -1
  601. package/pn-market-web-components/p-586a1e3c.entry.js +2 -0
  602. package/pn-market-web-components/{p-f8eb860b.entry.js.map → p-586a1e3c.entry.js.map} +1 -1
  603. package/pn-market-web-components/{p-baa28521.entry.js → p-5a467ca6.entry.js} +2 -2
  604. package/pn-market-web-components/{p-baa28521.entry.js.map → p-5a467ca6.entry.js.map} +1 -1
  605. package/pn-market-web-components/p-5ac23b38.entry.js +2 -0
  606. package/pn-market-web-components/p-5ac23b38.entry.js.map +1 -0
  607. package/pn-market-web-components/{p-7fdc49d1.entry.js → p-63505736.entry.js} +2 -2
  608. package/pn-market-web-components/p-63505736.entry.js.map +1 -0
  609. package/pn-market-web-components/{p-3696ebf8.entry.js → p-67d862ac.entry.js} +2 -2
  610. package/pn-market-web-components/{p-3696ebf8.entry.js.map → p-67d862ac.entry.js.map} +1 -1
  611. package/pn-market-web-components/{p-3d3f0648.entry.js → p-68aa55f7.entry.js} +2 -2
  612. package/pn-market-web-components/{p-3d3f0648.entry.js.map → p-68aa55f7.entry.js.map} +1 -1
  613. package/pn-market-web-components/{p-d2109ea6.entry.js → p-6e9875e5.entry.js} +2 -2
  614. package/pn-market-web-components/p-6e9875e5.entry.js.map +1 -0
  615. package/pn-market-web-components/p-7021985c.entry.js +2 -0
  616. package/pn-market-web-components/{p-c64cb117.entry.js.map → p-7021985c.entry.js.map} +1 -1
  617. package/pn-market-web-components/{p-716165d2.entry.js → p-721598b8.entry.js} +2 -2
  618. package/pn-market-web-components/p-721598b8.entry.js.map +1 -0
  619. package/pn-market-web-components/p-73cef33c.js +2 -0
  620. package/pn-market-web-components/p-73cef33c.js.map +1 -0
  621. package/pn-market-web-components/p-74203d3e.entry.js +2 -0
  622. package/pn-market-web-components/{p-545ea4ef.entry.js.map → p-74203d3e.entry.js.map} +1 -1
  623. package/pn-market-web-components/p-781ef432.entry.js +2 -0
  624. package/pn-market-web-components/p-781ef432.entry.js.map +1 -0
  625. package/pn-market-web-components/{p-3a08299c.entry.js → p-78fbc88c.entry.js} +2 -2
  626. package/pn-market-web-components/{p-3a08299c.entry.js.map → p-78fbc88c.entry.js.map} +1 -1
  627. package/pn-market-web-components/{p-22a65c3e.entry.js → p-796ebfee.entry.js} +2 -2
  628. package/pn-market-web-components/p-796ebfee.entry.js.map +1 -0
  629. package/pn-market-web-components/p-7b05d7c7.entry.js +2 -0
  630. package/pn-market-web-components/p-7b05d7c7.entry.js.map +1 -0
  631. package/pn-market-web-components/{p-6b2009dc.entry.js → p-81b3e038.entry.js} +2 -2
  632. package/pn-market-web-components/{p-6b2009dc.entry.js.map → p-81b3e038.entry.js.map} +1 -1
  633. package/pn-market-web-components/p-828449da.entry.js +2 -0
  634. package/pn-market-web-components/{p-db2f3f6d.entry.js.map → p-828449da.entry.js.map} +1 -1
  635. package/pn-market-web-components/p-85d57c9d.entry.js +2 -0
  636. package/pn-market-web-components/p-85d57c9d.entry.js.map +1 -0
  637. package/pn-market-web-components/p-90ba1d8e.entry.js +2 -0
  638. package/pn-market-web-components/{p-655e6f71.entry.js.map → p-90ba1d8e.entry.js.map} +1 -1
  639. package/pn-market-web-components/{p-eee5ec0a.entry.js → p-931d3a9b.entry.js} +2 -2
  640. package/pn-market-web-components/{p-eee5ec0a.entry.js.map → p-931d3a9b.entry.js.map} +1 -1
  641. package/pn-market-web-components/{p-9a93bcd0.entry.js → p-95c10b7e.entry.js} +2 -2
  642. package/pn-market-web-components/{p-9a93bcd0.entry.js.map → p-95c10b7e.entry.js.map} +1 -1
  643. package/pn-market-web-components/{p-138ecede.entry.js → p-95e054fd.entry.js} +2 -2
  644. package/pn-market-web-components/{p-138ecede.entry.js.map → p-95e054fd.entry.js.map} +1 -1
  645. package/pn-market-web-components/p-9776a1c5.entry.js +2 -0
  646. package/pn-market-web-components/p-9776a1c5.entry.js.map +1 -0
  647. package/pn-market-web-components/{p-db2e2762.entry.js → p-9998c29d.entry.js} +2 -2
  648. package/pn-market-web-components/p-9998c29d.entry.js.map +1 -0
  649. package/pn-market-web-components/p-9a7abcee.entry.js +2 -0
  650. package/pn-market-web-components/p-9a7abcee.entry.js.map +1 -0
  651. package/pn-market-web-components/{p-0dca82de.entry.js → p-9be27d72.entry.js} +2 -2
  652. package/pn-market-web-components/{p-0dca82de.entry.js.map → p-9be27d72.entry.js.map} +1 -1
  653. package/pn-market-web-components/{p-48f6e683.entry.js → p-a8220c88.entry.js} +2 -2
  654. package/pn-market-web-components/{p-48f6e683.entry.js.map → p-a8220c88.entry.js.map} +1 -1
  655. package/pn-market-web-components/p-a9d2f528.entry.js +2 -0
  656. package/pn-market-web-components/p-a9d2f528.entry.js.map +1 -0
  657. package/pn-market-web-components/p-acbe60df.entry.js +2 -0
  658. package/pn-market-web-components/p-acbe60df.entry.js.map +1 -0
  659. package/pn-market-web-components/{p-5666f0e7.entry.js → p-ade7ffcf.entry.js} +2 -2
  660. package/pn-market-web-components/p-ade7ffcf.entry.js.map +1 -0
  661. package/pn-market-web-components/p-b2dcce7c.entry.js +2 -0
  662. package/pn-market-web-components/p-b2dcce7c.entry.js.map +1 -0
  663. package/pn-market-web-components/{p-10a3c6f4.entry.js → p-b765e4a9.entry.js} +2 -2
  664. package/pn-market-web-components/p-b765e4a9.entry.js.map +1 -0
  665. package/pn-market-web-components/{p-914e1d15.entry.js → p-c224d7c4.entry.js} +2 -2
  666. package/pn-market-web-components/p-c224d7c4.entry.js.map +1 -0
  667. package/pn-market-web-components/{p-787e20a1.entry.js → p-c5856c0b.entry.js} +2 -2
  668. package/pn-market-web-components/{p-787e20a1.entry.js.map → p-c5856c0b.entry.js.map} +1 -1
  669. package/pn-market-web-components/p-c696bedf.entry.js +2 -0
  670. package/pn-market-web-components/{p-012ee486.entry.js.map → p-c696bedf.entry.js.map} +1 -1
  671. package/pn-market-web-components/p-c9f21ea3.entry.js +2 -0
  672. package/pn-market-web-components/{p-03cb46c2.entry.js.map → p-c9f21ea3.entry.js.map} +1 -1
  673. package/pn-market-web-components/{p-87aa1f73.entry.js → p-d07cf4c8.entry.js} +2 -2
  674. package/pn-market-web-components/{p-87aa1f73.entry.js.map → p-d07cf4c8.entry.js.map} +1 -1
  675. package/pn-market-web-components/p-d40ff187.entry.js +2 -0
  676. package/pn-market-web-components/p-d40ff187.entry.js.map +1 -0
  677. package/pn-market-web-components/{p-f21fdae0.entry.js → p-e42f0fbe.entry.js} +2 -2
  678. package/pn-market-web-components/{p-f21fdae0.entry.js.map → p-e42f0fbe.entry.js.map} +1 -1
  679. package/pn-market-web-components/{p-4f2a7d41.entry.js → p-e4c7aaec.entry.js} +2 -2
  680. package/pn-market-web-components/{p-4f2a7d41.entry.js.map → p-e4c7aaec.entry.js.map} +1 -1
  681. package/pn-market-web-components/{p-107568aa.entry.js → p-e5345c69.entry.js} +2 -2
  682. package/pn-market-web-components/p-e5345c69.entry.js.map +1 -0
  683. package/pn-market-web-components/p-e9501c6f.entry.js +2 -0
  684. package/pn-market-web-components/p-e9501c6f.entry.js.map +1 -0
  685. package/pn-market-web-components/{p-fa3ccbfb.entry.js → p-ebaeee5e.entry.js} +2 -2
  686. package/pn-market-web-components/{p-fa3ccbfb.entry.js.map → p-ebaeee5e.entry.js.map} +1 -1
  687. package/pn-market-web-components/{p-9de267ec.entry.js → p-f2d0d0cc.entry.js} +2 -2
  688. package/pn-market-web-components/{p-9de267ec.entry.js.map → p-f2d0d0cc.entry.js.map} +1 -1
  689. package/pn-market-web-components/{p-da953848.entry.js → p-f62879f6.entry.js} +2 -2
  690. package/pn-market-web-components/p-f62879f6.entry.js.map +1 -0
  691. package/pn-market-web-components/{p-ec3fcbf9.entry.js → p-fbc07c7a.entry.js} +2 -2
  692. package/pn-market-web-components/{p-ec3fcbf9.entry.js.map → p-fbc07c7a.entry.js.map} +1 -1
  693. package/pn-market-web-components/p-fbe70284.entry.js +2 -0
  694. package/pn-market-web-components/{p-663e4bb8.entry.js.map → p-fbe70284.entry.js.map} +1 -1
  695. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  696. package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
  697. package/types/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.d.ts +1 -0
  698. package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
  699. package/types/components.d.ts +2 -0
  700. package/umd/standalone-loader-salesforce.js +3 -3
  701. package/umd/standalone-loader.js +2 -2
  702. package/cjs/FetchHelper-8d537d38.js.map +0 -1
  703. package/esm/FetchHelper-03b37a44.js.map +0 -1
  704. package/pn-market-web-components/p-012ee486.entry.js +0 -2
  705. package/pn-market-web-components/p-03cb46c2.entry.js +0 -2
  706. package/pn-market-web-components/p-07253be3.entry.js +0 -2
  707. package/pn-market-web-components/p-07253be3.entry.js.map +0 -1
  708. package/pn-market-web-components/p-08a64973.entry.js +0 -2
  709. package/pn-market-web-components/p-08a64973.entry.js.map +0 -1
  710. package/pn-market-web-components/p-107568aa.entry.js.map +0 -1
  711. package/pn-market-web-components/p-10a3c6f4.entry.js.map +0 -1
  712. package/pn-market-web-components/p-161970d1.entry.js +0 -2
  713. package/pn-market-web-components/p-161970d1.entry.js.map +0 -1
  714. package/pn-market-web-components/p-22a65c3e.entry.js.map +0 -1
  715. package/pn-market-web-components/p-2ac83614.entry.js +0 -2
  716. package/pn-market-web-components/p-2ac83614.entry.js.map +0 -1
  717. package/pn-market-web-components/p-2fd40198.entry.js +0 -2
  718. package/pn-market-web-components/p-2fd40198.entry.js.map +0 -1
  719. package/pn-market-web-components/p-3ae1657a.entry.js +0 -2
  720. package/pn-market-web-components/p-3ae1657a.entry.js.map +0 -1
  721. package/pn-market-web-components/p-545ea4ef.entry.js +0 -2
  722. package/pn-market-web-components/p-5666f0e7.entry.js.map +0 -1
  723. package/pn-market-web-components/p-5ff663be.entry.js +0 -2
  724. package/pn-market-web-components/p-5ff663be.entry.js.map +0 -1
  725. package/pn-market-web-components/p-655e6f71.entry.js +0 -2
  726. package/pn-market-web-components/p-657957fc.entry.js +0 -2
  727. package/pn-market-web-components/p-657957fc.entry.js.map +0 -1
  728. package/pn-market-web-components/p-663e4bb8.entry.js +0 -2
  729. package/pn-market-web-components/p-716165d2.entry.js.map +0 -1
  730. package/pn-market-web-components/p-7fdc49d1.entry.js.map +0 -1
  731. package/pn-market-web-components/p-8ca34ec3.entry.js.map +0 -1
  732. package/pn-market-web-components/p-914e1d15.entry.js.map +0 -1
  733. package/pn-market-web-components/p-af16f7e3.entry.js +0 -2
  734. package/pn-market-web-components/p-af16f7e3.entry.js.map +0 -1
  735. package/pn-market-web-components/p-b7a5fb1b.entry.js +0 -2
  736. package/pn-market-web-components/p-be6e903e.entry.js +0 -2
  737. package/pn-market-web-components/p-be6e903e.entry.js.map +0 -1
  738. package/pn-market-web-components/p-bece6791.entry.js +0 -2
  739. package/pn-market-web-components/p-bece6791.entry.js.map +0 -1
  740. package/pn-market-web-components/p-c64cb117.entry.js +0 -2
  741. package/pn-market-web-components/p-c95def57.js +0 -2
  742. package/pn-market-web-components/p-c95def57.js.map +0 -1
  743. package/pn-market-web-components/p-d2109ea6.entry.js.map +0 -1
  744. package/pn-market-web-components/p-da0c533f.entry.js +0 -2
  745. package/pn-market-web-components/p-da0c533f.entry.js.map +0 -1
  746. package/pn-market-web-components/p-da953848.entry.js.map +0 -1
  747. package/pn-market-web-components/p-db2e2762.entry.js.map +0 -1
  748. package/pn-market-web-components/p-db2f3f6d.entry.js +0 -2
  749. package/pn-market-web-components/p-e0f4dc3d.entry.js +0 -2
  750. package/pn-market-web-components/p-e0f4dc3d.entry.js.map +0 -1
  751. package/pn-market-web-components/p-e8189227.entry.js +0 -2
  752. package/pn-market-web-components/p-e8189227.entry.js.map +0 -1
  753. package/pn-market-web-components/p-f8eb860b.entry.js +0 -2
  754. package/pn-market-web-components/p-fa9ea740.entry.js.map +0 -1
  755. package/pn-market-web-components/p-fd639f58.entry.js +0 -2
  756. package/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KAAK,WAAW,GAAG,IAAI,CAAC,YAAY,GAAG,EAAE,EAC/D,IAAI,EAAE,IAAI,CAAC,YAAY,KAAK,WAAW,GAAG,KAAK,GAAG,cAAc,iBACnD,IAAI,CAAC,YAAY,KAAK,WAAW,GAAG,OAAO,GAAG,MAAM,GACjE,CACM,IACR,IAAI,CACJ,EAEL,CAAC,OAAO,IAAI,4DAAK,KAAK,EAAC,6BAA6B,EAAC,EAAE,EAAC,mBAAmB,GAAO,EAElF,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,aAAa,MACvC,4DAAK,KAAK,EAAC,gCAAgC,IACxC,IAAI,CAAC,YAAY,IAAI,EAAC,UAAU,qDAAC,KAAK,EAAC,4BAA4B,IAAE,IAAI,CAAC,YAAY,CAAc,EACpG,IAAI,CAAC,aAAa,IAAI,0DAAG,KAAK,EAAC,uBAAuB,IAAE,IAAI,CAAC,aAAa,CAAK,EAC/E,aAAa,KACZ,4DAAK,KAAK,EAAC,uBAAuB,IAChC,6DAAM,IAAI,EAAC,YAAY,GAAG,CACtB,CACP,CACG,CACP,CACG,EAEN,4DAAK,EAAE,EAAC,gBAAgB,GAAO,CAC3B,EACN;KACH;;;;;;;","names":[],"sources":["src/components/media/pn-media-block/pn-media-block.scss?tag=pn-media-block","src/components/media/pn-media-block/pn-media-block.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\n$animationDuration: 20s;\n\npn-media-block {\n .media-block {\n .media-block__block-container {\n display: grid;\n overflow: hidden;\n }\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n grid-area: 1 / 1;\n width: 100%;\n position: relative;\n }\n\n .media-block__media-container {\n height: 100vh;\n overflow: hidden;\n position: relative;\n\n img,\n video {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n object-fit: cover;\n pointer-events: none;\n max-width: 100%;\n max-height: none;\n height: 100%;\n width: 100%;\n pointer-events: none;\n }\n\n pn-play-on-scroll {\n width: 100%;\n height: 100%;\n }\n\n .scroll-wrapper {\n width: 100%;\n height: 100%;\n }\n\n [slot='scroll-affected'] {\n width: 100%;\n height: 100%;\n display: flex;\n }\n\n .scroll-wrapper,\n .scroll-affected {\n width: 100%;\n height: 100%;\n display: flex;\n }\n video {\n width: 100%;\n height: 100%;\n }\n }\n\n .media-block__overlay-filter {\n z-index: 2;\n }\n\n .media-block__content-container {\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: opacity 1s;\n flex-direction: column;\n margin: 0 auto;\n padding: 3.4rem 0;\n\n @include inner-container;\n\n @media screen and (min-width: 992px) {\n padding: 6.4rem 0;\n }\n\n @media screen and (min-width: 1200px) {\n padding: 7.2rem 0;\n }\n\n @media screen and (min-width: 1640px) {\n padding: 8rem 0;\n }\n\n .media-block__block-heading {\n max-width: 100rem;\n text-wrap: balance;\n color: white;\n font-size: 3.2rem;\n text-align: center;\n font-weight: 700;\n line-height: 1.1;\n margin-bottom: 3rem;\n\n @media screen and (min-width: 576px) {\n font-size: 4rem;\n }\n\n @media screen and (min-width: 768px) {\n font-size: 4.8rem;\n }\n\n @media screen and (min-width: 992px) {\n font-size: 5.6rem;\n }\n\n @media screen and (min-width: 1200px) {\n font-size: 8rem;\n }\n\n @media screen and (min-width: 1640px) {\n font-size: 8.8rem;\n }\n }\n\n .media-block__preamble {\n max-width: 80rem;\n max-width: 80ch;\n text-wrap: balance;\n display: flex;\n color: white;\n font-size: 1.8rem;\n text-align: center;\n font-weight: 300;\n\n @media screen and (min-width: 576px) {\n font-size: 2rem;\n }\n\n @media screen and (min-width: 1200px) {\n font-size: 2.4rem;\n }\n\n @media screen and (min-width: 1640px) {\n font-weight: 500;\n }\n }\n\n .media-block__cta-link {\n margin-top: 3rem;\n }\n }\n }\n\n .media-block--height-100svh {\n min-height: 100vh;\n\n @supports (height: 100svh) {\n height: 100svh;\n }\n\n .media-block__block-container {\n height: 100vh;\n\n @supports (max-height: 100svh) {\n max-height: 100svh;\n }\n\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n height: 100vh;\n\n @supports (max-height: 100svh) {\n max-height: 100svh;\n }\n }\n\n .media-block__media-container picture {\n height: 100vh;\n\n @supports (max-height: 100svh) {\n max-height: 100svh;\n }\n }\n }\n }\n\n .media-block--height-65svh {\n min-height: 65svh;\n overflow: auto;\n\n .media-block__block-container {\n height: 65vh;\n\n @supports (max-height: 100svh) {\n max-height: 65svh;\n }\n\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n height: 65vh;\n\n @supports (max-height: 100svh) {\n max-height: 65svh;\n }\n }\n }\n\n .media-block__media-container img {\n max-height: none !important;\n height: auto !important;\n }\n }\n\n .media-block--height-dynamic {\n height: auto;\n overflow: auto;\n\n .media-block__block-container {\n height: auto;\n max-height: none;\n\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n height: auto;\n max-height: none;\n }\n }\n }\n\n .media-block--with-overlay {\n .media-block__block-container .media-block__overlay-filter {\n z-index: 2;\n background: radial-gradient(circle, rgba(13, 35, 75, 0.68) 7%, rgba(13, 35, 75, 0) 80%);\n }\n }\n\n .media-block--fixed-background {\n .media-block__block-container {\n .media-block__media-container,\n .media-block__overlay-filter {\n position: relative;\n overflow: hidden;\n top: 0;\n width: 100%;\n display: flex !important;\n clip-path: inset(0);\n }\n\n .media-block__media-container {\n picture {\n position: absolute;\n top: 0;\n width: 100%;\n display: flex !important;\n clip-path: inset(0);\n height: 100%;\n\n img {\n position: fixed;\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 1;\n }\n }\n }\n }\n }\n\n .media-block--video {\n .media-block__content-container {\n max-width: 80%;\n }\n }\n\n .media-block--animate-overlay-background {\n .media-block__overlay-filter {\n background-size: 200% 200% !important;\n animation: overlayBackgroundAnimation $animationDuration ease infinite;\n }\n }\n\n @keyframes overlayBackgroundAnimation {\n 0% {\n background-position: 100% 100%;\n }\n 50% {\n background-position: 50% 60%;\n }\n 100% {\n background-position: 100% 100%;\n }\n }\n\n .media-block--margin-bottom {\n margin-bottom: 3.2rem;\n\n @media screen and (min-width:768px) {\n margin-bottom: 4rem;\n }\n\n @media screen and (min-width:992px) {\n margin-bottom: 5.6rem;\n }\n\n @media screen and (min-width:1200px) {\n margin-bottom: 7.2rem;\n }\n }\n}\n","import { Component, Element, Prop, h, State } from '@stencil/core';\n\nfunction userPrefersReducedMotion(): boolean {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n}\n\n@Component({\n tag: 'pn-media-block',\n styleUrl: 'pn-media-block.scss',\n})\nexport class PnmediaBlock {\n @Prop() blockHeight: string = null;\n @Prop() imageSrc?: string = null;\n @Prop() imageSrcSmallScreenFormat?: string = undefined;\n @Prop() imageAltText?: string = '';\n @Prop() videoSrc?: string = null;\n @Prop() parallaxScroll: boolean = false;\n @Prop() showOverlayLayer: boolean = false;\n @Prop() customOverlayBackground?: string = null;\n @Prop() animateOverlayBackground: boolean = false;\n @Prop() scrollSnapBlock: boolean = false;\n @Prop() fixedBackground: boolean = false;\n @Prop() blockHeading?: string = null;\n @Prop() blockHeadingLevel?: number = 2;\n @Prop() blockPreamble?: string = null;\n\n @State() pnPlayOnScrollObserverOptions: IntersectionObserverInit = {\n root: document,\n threshold: 1,\n rootMargin: '220px 0px 220px 0px',\n };\n\n @State() calculatedBlockHeight: number;\n @State() hasButtonSlot: boolean = true;\n\n @Element() block: HTMLElement;\n\n get blockHeadingLevelChecked() {\n if (this.blockHeading && this.blockHeading !== null) {\n console.warn('blockHeadingLevel is required when blockHeading is set');\n return undefined;\n }\n return this.blockHeadingLevel;\n }\n\n get hasVideo() {\n if (this.videoSrc !== null && this.videoSrc !== 'undefined') {\n return true;\n }\n return false;\n }\n\n get hasImage() {\n if (this.imageSrc !== null && this.imageSrc !== 'undefined') {\n return true;\n }\n return false;\n }\n\n private observerScroll: IntersectionObserver;\n private observerSnap: IntersectionObserver;\n\n componentWillLoad() {\n this.hasButtonSlot = !!this.block.querySelector('[slot=\"cta-button\"]');\n }\n\n async componentDidLoad() {\n const scrollTrigger = document.getElementById('scroll-trigger');\n this.calculatedBlockHeight = this.block.offsetHeight;\n\n const overlayElement = this.block.querySelector('#mediaBlockOverlay') as HTMLElement;\n if (this.customOverlayBackground != null || this.customOverlayBackground != 'undefined') {\n overlayElement.style.background = `${this.customOverlayBackground}`;\n }\n\n if (this.parallaxScroll) {\n this.observerScroll = new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n window.addEventListener('scroll', this.handleScroll);\n } else {\n window.removeEventListener('scroll', this.handleScroll);\n }\n });\n },\n { rootMargin: `0px 0px` },\n );\n\n this.observerScroll.observe(scrollTrigger);\n }\n\n if (this.scrollSnapBlock) {\n this.observerSnap = new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n // The block is within 100px of the viewport, scroll it into view\n if (this.block instanceof HTMLElement) {\n setTimeout(() => {\n this.block.scrollIntoView({ behavior: 'smooth', block: 'start' });\n }, 1000); // Adjust the delay as needed\n } else {\n console.error('this.block is not a valid HTMLElement');\n }\n }\n });\n },\n {\n root: document,\n rootMargin: '100px 0px 100px 0px',\n threshold: 0,\n },\n );\n\n this.observerSnap.observe(scrollTrigger);\n }\n }\n\n disconnectedCallback() {\n // Clean up the observer and event listener when the component is removed\n if (this.observerScroll) {\n this.observerScroll.disconnect();\n }\n if (this.observerSnap) {\n this.observerSnap.disconnect();\n }\n window.removeEventListener('scroll', this.handleScroll);\n }\n\n handleScroll = () => {\n const mediaBlockElement = this.block.firstElementChild as HTMLElement;\n const scrollTrigger = this.block.querySelector('#scroll-trigger') as HTMLElement;\n const videoPauseButton = this.block.querySelector('#overlayed-button-pause-video') as HTMLButtonElement;\n\n const scrollTriggerTop = scrollTrigger.getBoundingClientRect().top;\n const mediaBlockElementHeight = mediaBlockElement.offsetHeight;\n\n const scrollPosition = mediaBlockElementHeight - scrollTriggerTop;\n\n const parallaxSpeedContent = 0.3;\n const parallaxSpeedMedia = 0.2;\n\n const mediaContainer = this.block.querySelector('.media-block__media-container') as HTMLElement;\n const content = this.block.querySelector('.media-block__content-container') as HTMLElement;\n\n if (mediaContainer != null) {\n // Move the image or video at a slower speed\n mediaContainer.style.transform = `translate(0, ${scrollPosition * (0.1 + parallaxSpeedMedia)}px)`;\n\n if (videoPauseButton != null) {\n // Move the pause button up\n videoPauseButton.style.transform = `translate(0, ${-scrollPosition * (0.3 + parallaxSpeedMedia)}px)`;\n }\n }\n\n if (content) {\n // Move the content at a faster speed\n content.style.transform = `translate(0, ${scrollPosition * (0.5 + parallaxSpeedContent)}px)`;\n\n // Change the opacity based on the scroll position\n const opacity = Math.max(0, 1 - scrollPosition / 600);\n content.style.opacity = `${opacity}`;\n }\n };\n\n render() {\n const { showOverlayLayer, fixedBackground, blockHeight, scrollSnapBlock, blockHeadingLevelChecked, hasButtonSlot, hasVideo, hasImage, animateOverlayBackground } = this;\n const HeadingTag = `h${blockHeadingLevelChecked ?? 2}`;\n const isVideo = hasVideo;\n const isImage = hasImage;\n\n const classes = [\n 'media-block',\n blockHeight ? `media-block--height-${blockHeight}` : '',\n showOverlayLayer ? 'media-block--with-overlay' : '',\n animateOverlayBackground ? `media-block--animate-overlay-background` : '',\n isVideo ? 'media-block--video' : '',\n scrollSnapBlock ? 'scroll-snap' : 'no-scroll-snap',\n fixedBackground ? 'media-block--fixed-background' : '',\n ].join(' ');\n\n const pnPlayOnScrollObserverOptions: IntersectionObserverInit = {\n root: this.blockHeight === \"100svh\" ? this.block : null,\n threshold: [0, 0.5, 1], // Callback will be executed when 0%, 50%, and 100% of the target is visible\n };\n\n return (\n <div class={classes}>\n <div class=\"media-block__block-container\">\n <div class=\"media-block__media-container\">\n {isVideo ? (\n <pn-play-on-scroll show-overlay={this.showOverlayLayer} observerOptions={pnPlayOnScrollObserverOptions} video-src={this.videoSrc}></pn-play-on-scroll>\n ) : isImage ? (\n <picture>\n <source media=\"(min-width: 1400px)\" srcSet={this.imageSrc} />\n <source media=\"(min-width: 1224px)\" srcSet={this.imageSrc} />\n <source media=\"(min-width: 1140px)\" srcSet={this.imageSrc} />\n <source\n media=\"(min-width: 1023px)\"\n srcSet={this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n />\n <source\n media=\"(min-width: 768px)\"\n srcSet={this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n />\n <source\n media=\"(min-width: 500px)\"\n srcSet={this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n />\n <img\n src={this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n alt={this.imageAltText !== 'undefined' ? this.imageAltText : ''}\n role={this.imageAltText !== 'undefined' ? 'img' : 'presentation'}\n aria-hidden={this.imageAltText !== 'undefined' ? 'false' : 'true'}\n />\n </picture>\n ) : null}\n </div>\n\n {!isVideo && <div class=\"media-block__overlay-filter\" id=\"mediaBlockOverlay\"></div>}\n\n {(this.blockHeading || this.blockPreamble) && (\n <div class=\"media-block__content-container\">\n {this.blockHeading && <HeadingTag class=\"media-block__block-heading\">{this.blockHeading}</HeadingTag>}\n {this.blockPreamble && <p class=\"media-block__preamble\">{this.blockPreamble}</p>}\n {hasButtonSlot && (\n <div class=\"media-block__cta-link\">\n <slot name=\"cta-button\" />\n </div>\n )}\n </div>\n )}\n </div>\n\n <div id=\"scroll-trigger\"></div>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-media-block.entry.js","mappings":";;AAAA,MAAM,eAAe,GAAG,knRAAknR,CAAC;AAC3oR,2BAAe,eAAe;;MCSjB,YAAY;;;2BACO,IAAI;wBACN,IAAI;yCACa,SAAS;4BACtB,EAAE;wBACN,IAAI;8BACE,KAAK;gCACH,KAAK;uCACE,IAAI;wCACH,KAAK;+BACd,KAAK;+BAC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AO,EAElF,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,aAAa,MACvC,4DAAK,KAAK,EAAC,gCAAgC,IACxC,IAAI,CAAC,YAAY,IAAI,EAAC,UAAU,qDAAC,KAAK,EAAC,4BAA4B,IAAE,IAAI,CAAC,YAAY,CAAc,EACpG,IAAI,CAAC,aAAa,IAAI,0DAAG,KAAK,EAAC,uBAAuB,IAAE,IAAI,CAAC,aAAa,CAAK,EAC/E,aAAa,KACZ,4DAAK,KAAK,EAAC,uBAAuB,IAChC,6DAAM,IAAI,EAAC,YAAY,GAAG,CACtB,CACP,CACG,CACP,CACG,EAEN,4DAAK,EAAE,EAAC,gBAAgB,GAAO,CAC3B,EACN;KACH;;;;;;","names":[],"sources":["src/components/media/pn-media-block/pn-media-block.scss?tag=pn-media-block","src/components/media/pn-media-block/pn-media-block.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\n$animationDuration: 20s;\n\npn-media-block {\n .media-block {\n .media-block__block-container {\n display: grid;\n overflow: hidden;\n }\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n grid-area: 1 / 1;\n width: 100%;\n position: relative;\n }\n\n .media-block__media-container {\n height: 100vh;\n overflow: hidden;\n position: relative;\n\n img,\n video {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n object-fit: cover;\n pointer-events: none;\n max-width: 100%;\n max-height: none;\n height: 100%;\n width: 100%;\n pointer-events: none;\n }\n\n pn-play-on-scroll {\n width: 100%;\n height: 100%;\n }\n\n .scroll-wrapper {\n width: 100%;\n height: 100%;\n }\n\n [slot='scroll-affected'] {\n width: 100%;\n height: 100%;\n display: flex;\n }\n\n .scroll-wrapper,\n .scroll-affected {\n width: 100%;\n height: 100%;\n display: flex;\n }\n video {\n width: 100%;\n height: 100%;\n }\n }\n\n .media-block__overlay-filter {\n z-index: 2;\n }\n\n .media-block__content-container {\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: opacity 1s;\n flex-direction: column;\n margin: 0 auto;\n padding: 3.4rem 0;\n\n @include inner-container;\n\n @media screen and (min-width: 992px) {\n padding: 6.4rem 0;\n }\n\n @media screen and (min-width: 1200px) {\n padding: 7.2rem 0;\n }\n\n @media screen and (min-width: 1640px) {\n padding: 8rem 0;\n }\n\n .media-block__block-heading {\n max-width: 100rem;\n text-wrap: balance;\n color: white;\n font-size: 3.2rem;\n text-align: center;\n font-weight: 700;\n line-height: 1.1;\n margin-bottom: 3rem;\n\n @media screen and (min-width: 576px) {\n font-size: 4rem;\n }\n\n @media screen and (min-width: 768px) {\n font-size: 4.8rem;\n }\n\n @media screen and (min-width: 992px) {\n font-size: 5.6rem;\n }\n\n @media screen and (min-width: 1200px) {\n font-size: 8rem;\n }\n\n @media screen and (min-width: 1640px) {\n font-size: 8.8rem;\n }\n }\n\n .media-block__preamble {\n max-width: 80rem;\n max-width: 80ch;\n text-wrap: balance;\n display: flex;\n color: white;\n font-size: 1.8rem;\n text-align: center;\n font-weight: 300;\n\n @media screen and (min-width: 576px) {\n font-size: 2rem;\n }\n\n @media screen and (min-width: 1200px) {\n font-size: 2.4rem;\n }\n\n @media screen and (min-width: 1640px) {\n font-weight: 500;\n }\n }\n\n .media-block__cta-link {\n margin-top: 3rem;\n }\n }\n }\n\n .media-block--height-100svh {\n min-height: 100vh;\n\n @supports (height: 100svh) {\n height: 100svh;\n }\n\n .media-block__block-container {\n height: 100vh;\n\n @supports (max-height: 100svh) {\n max-height: 100svh;\n }\n\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n height: 100vh;\n\n @supports (max-height: 100svh) {\n max-height: 100svh;\n }\n }\n\n .media-block__media-container picture {\n height: 100vh;\n\n @supports (max-height: 100svh) {\n max-height: 100svh;\n }\n }\n }\n }\n\n .media-block--height-65svh {\n min-height: 65svh;\n overflow: auto;\n\n .media-block__block-container {\n height: 65vh;\n\n @supports (max-height: 100svh) {\n max-height: 65svh;\n }\n\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n height: 65vh;\n\n @supports (max-height: 100svh) {\n max-height: 65svh;\n }\n }\n }\n\n .media-block__media-container img {\n max-height: none !important;\n height: auto !important;\n }\n }\n\n .media-block--height-dynamic {\n height: auto;\n overflow: auto;\n\n .media-block__block-container {\n height: auto;\n max-height: none;\n\n .media-block__media-container,\n .media-block__content-container,\n .media-block__overlay-filter {\n height: auto;\n max-height: none;\n }\n }\n }\n\n .media-block--with-overlay {\n .media-block__block-container .media-block__overlay-filter {\n z-index: 2;\n background: radial-gradient(circle, rgba(13, 35, 75, 0.68) 7%, rgba(13, 35, 75, 0) 80%);\n }\n }\n\n .media-block--fixed-background {\n .media-block__block-container {\n .media-block__media-container,\n .media-block__overlay-filter {\n position: relative;\n overflow: hidden;\n top: 0;\n width: 100%;\n display: flex !important;\n clip-path: inset(0);\n }\n\n .media-block__media-container {\n picture {\n position: absolute;\n top: 0;\n width: 100%;\n display: flex !important;\n clip-path: inset(0);\n height: 100%;\n\n img {\n position: fixed;\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 1;\n }\n }\n }\n }\n }\n\n .media-block--video {\n .media-block__content-container {\n max-width: 80%;\n }\n }\n\n .media-block--animate-overlay-background {\n .media-block__overlay-filter {\n background-size: 200% 200% !important;\n animation: overlayBackgroundAnimation $animationDuration ease infinite;\n }\n }\n\n @keyframes overlayBackgroundAnimation {\n 0% {\n background-position: 100% 100%;\n }\n 50% {\n background-position: 50% 60%;\n }\n 100% {\n background-position: 100% 100%;\n }\n }\n\n .media-block--margin-bottom {\n margin-bottom: 3.2rem;\n\n @media screen and (min-width:768px) {\n margin-bottom: 4rem;\n }\n\n @media screen and (min-width:992px) {\n margin-bottom: 5.6rem;\n }\n\n @media screen and (min-width:1200px) {\n margin-bottom: 7.2rem;\n }\n }\n}\n","import { Component, Element, Prop, h, State } from '@stencil/core';\n\nfunction userPrefersReducedMotion(): boolean {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n}\n\n@Component({\n tag: 'pn-media-block',\n styleUrl: 'pn-media-block.scss',\n})\nexport class PnmediaBlock {\n @Prop() blockHeight: string = null;\n @Prop() imageSrc?: string = null;\n @Prop() imageSrcSmallScreenFormat?: string = undefined;\n @Prop() imageAltText?: string = '';\n @Prop() videoSrc?: string = null;\n @Prop() parallaxScroll: boolean = false;\n @Prop() showOverlayLayer: boolean = false;\n @Prop() customOverlayBackground?: string = null;\n @Prop() animateOverlayBackground: boolean = false;\n @Prop() scrollSnapBlock: boolean = false;\n @Prop() fixedBackground: boolean = false;\n @Prop() blockHeading?: string = null;\n @Prop() blockHeadingLevel?: number = 2;\n @Prop() blockPreamble?: string = null;\n\n @State() pnPlayOnScrollObserverOptions: IntersectionObserverInit = {\n root: document,\n threshold: 1,\n rootMargin: '220px 0px 220px 0px',\n };\n\n @State() calculatedBlockHeight: number;\n @State() hasButtonSlot: boolean = true;\n\n @Element() block: HTMLElement;\n\n get blockHeadingLevelChecked() {\n if (this.blockHeading && this.blockHeading !== null) {\n console.warn('blockHeadingLevel is required when blockHeading is set');\n return undefined;\n }\n return this.blockHeadingLevel;\n }\n\n get hasVideo() {\n if (this.videoSrc !== null && this.videoSrc !== 'undefined') {\n return true;\n }\n return false;\n }\n\n get hasImage() {\n if (this.imageSrc !== null && this.imageSrc !== 'undefined') {\n return true;\n }\n return false;\n }\n\n private observerScroll: IntersectionObserver;\n private observerSnap: IntersectionObserver;\n\n componentWillLoad() {\n this.hasButtonSlot = !!this.block.querySelector('[slot=\"cta-button\"]');\n }\n\n async componentDidLoad() {\n const scrollTrigger = document.getElementById('scroll-trigger');\n this.calculatedBlockHeight = this.block.offsetHeight;\n\n const overlayElement = this.block.querySelector('#mediaBlockOverlay') as HTMLElement;\n if (this.customOverlayBackground != null || this.customOverlayBackground != 'undefined') {\n overlayElement.style.background = `${this.customOverlayBackground}`;\n }\n\n if (this.parallaxScroll) {\n this.observerScroll = new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n window.addEventListener('scroll', this.handleScroll);\n } else {\n window.removeEventListener('scroll', this.handleScroll);\n }\n });\n },\n { rootMargin: `0px 0px` },\n );\n\n this.observerScroll.observe(scrollTrigger);\n }\n\n if (this.scrollSnapBlock) {\n this.observerSnap = new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n // The block is within 100px of the viewport, scroll it into view\n if (this.block instanceof HTMLElement) {\n setTimeout(() => {\n this.block.scrollIntoView({ behavior: 'smooth', block: 'start' });\n }, 1000); // Adjust the delay as needed\n } else {\n console.error('this.block is not a valid HTMLElement');\n }\n }\n });\n },\n {\n root: document,\n rootMargin: '100px 0px 100px 0px',\n threshold: 0,\n },\n );\n\n this.observerSnap.observe(scrollTrigger);\n }\n }\n\n disconnectedCallback() {\n // Clean up the observer and event listener when the component is removed\n if (this.observerScroll) {\n this.observerScroll.disconnect();\n }\n if (this.observerSnap) {\n this.observerSnap.disconnect();\n }\n window.removeEventListener('scroll', this.handleScroll);\n }\n\n handleScroll = () => {\n const mediaBlockElement = this.block.firstElementChild as HTMLElement;\n const scrollTrigger = this.block.querySelector('#scroll-trigger') as HTMLElement;\n const videoPauseButton = this.block.querySelector('#overlayed-button-pause-video') as HTMLButtonElement;\n\n const scrollTriggerTop = scrollTrigger.getBoundingClientRect().top;\n const mediaBlockElementHeight = mediaBlockElement.offsetHeight;\n\n const scrollPosition = mediaBlockElementHeight - scrollTriggerTop;\n\n const parallaxSpeedContent = 0.3;\n const parallaxSpeedMedia = 0.2;\n\n const mediaContainer = this.block.querySelector('.media-block__media-container') as HTMLElement;\n const content = this.block.querySelector('.media-block__content-container') as HTMLElement;\n\n if (mediaContainer != null) {\n // Move the image or video at a slower speed\n mediaContainer.style.transform = `translate(0, ${scrollPosition * (0.1 + parallaxSpeedMedia)}px)`;\n\n if (videoPauseButton != null) {\n // Move the pause button up\n videoPauseButton.style.transform = `translate(0, ${-scrollPosition * (0.3 + parallaxSpeedMedia)}px)`;\n }\n }\n\n if (content) {\n // Move the content at a faster speed\n content.style.transform = `translate(0, ${scrollPosition * (0.5 + parallaxSpeedContent)}px)`;\n\n // Change the opacity based on the scroll position\n const opacity = Math.max(0, 1 - scrollPosition / 600);\n content.style.opacity = `${opacity}`;\n }\n };\n\n render() {\n const { showOverlayLayer, fixedBackground, blockHeight, scrollSnapBlock, blockHeadingLevelChecked, hasButtonSlot, hasVideo, hasImage, animateOverlayBackground } = this;\n const HeadingTag = `h${blockHeadingLevelChecked ?? 2}`;\n const isVideo = hasVideo;\n const isImage = hasImage;\n\n const classes = [\n 'media-block',\n blockHeight ? `media-block--height-${blockHeight}` : '',\n showOverlayLayer ? 'media-block--with-overlay' : '',\n animateOverlayBackground ? `media-block--animate-overlay-background` : '',\n isVideo ? 'media-block--video' : '',\n scrollSnapBlock ? 'scroll-snap' : 'no-scroll-snap',\n fixedBackground ? 'media-block--fixed-background' : '',\n ].join(' ');\n\n const pnPlayOnScrollObserverOptions: IntersectionObserverInit = {\n root: this.blockHeight === \"100svh\" ? this.block : null,\n threshold: [0, 0.5, 1], // Callback will be executed when 0%, 50%, and 100% of the target is visible\n };\n\n return (\n <div class={classes}>\n <div class=\"media-block__block-container\">\n <div class=\"media-block__media-container\">\n {isVideo ? (\n <pn-play-on-scroll show-overlay={this.showOverlayLayer} observerOptions={pnPlayOnScrollObserverOptions} video-src={this.videoSrc}></pn-play-on-scroll>\n ) : isImage ? (\n <picture>\n <source media=\"(min-width: 1400px)\" srcSet={this.imageSrc} />\n <source media=\"(min-width: 1224px)\" srcSet={this.imageSrc} />\n <source media=\"(min-width: 1140px)\" srcSet={this.imageSrc} />\n <source\n media=\"(min-width: 1023px)\"\n srcSet={this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n />\n <source\n media=\"(min-width: 768px)\"\n srcSet={this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n />\n <source\n media=\"(min-width: 500px)\"\n srcSet={this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n />\n <img\n src={this.imageSrcSmallScreenFormat !== 'undefined' ? this.imageSrcSmallScreenFormat : this.imageSrc}\n alt={this.imageAltText !== 'undefined' ? this.imageAltText : ''}\n role={this.imageAltText !== 'undefined' ? 'img' : 'presentation'}\n aria-hidden={this.imageAltText !== 'undefined' ? 'false' : 'true'}\n />\n </picture>\n ) : null}\n </div>\n\n {!isVideo && <div class=\"media-block__overlay-filter\" id=\"mediaBlockOverlay\"></div>}\n\n {(this.blockHeading || this.blockPreamble) && (\n <div class=\"media-block__content-container\">\n {this.blockHeading && <HeadingTag class=\"media-block__block-heading\">{this.blockHeading}</HeadingTag>}\n {this.blockPreamble && <p class=\"media-block__preamble\">{this.blockPreamble}</p>}\n {hasButtonSlot && (\n <div class=\"media-block__cta-link\">\n <slot name=\"cta-button\" />\n </div>\n )}\n </div>\n )}\n </div>\n\n <div id=\"scroll-trigger\"></div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, d as Host, g as getElement } from './index-fa51bde4.js';
1
+ import { r as registerInstance, c as createEvent, g as getElement, h, d as Host } from './index-fa51bde4.js';
2
2
  import { d as debounce } from './index-1093ae90.js';
3
3
  import { m as minus } from './minus-2b8ae0b8.js';
4
4
  import { v as v4 } from './v4-964634d6.js';
@@ -11,22 +11,6 @@ const PnMultiRowConnectedDropdownRow = class {
11
11
  registerInstance(this, hostRef);
12
12
  this.rowValueChange = createEvent(this, "rowValueChange", 7);
13
13
  this.deleteRowEvent = createEvent(this, "deleteRowEvent", 7);
14
- this.pnConnectedDropdown = null;
15
- this.pnConnectedDropdownSlotElement = null;
16
- this.pnAddFieldButton = null;
17
- this.pnFirstDropdown = null;
18
- this.pnSecondDropdown = null;
19
- this.pnInputField = null;
20
- this.pnSingleDatePicker = null;
21
- this.pnStartDate = null;
22
- this.pnEndDate = null;
23
- this.pnShowDateRangeFiledButton = null;
24
- this.pnDateRangeContainer = null;
25
- this.pnGenerateDatesButton = null;
26
- this.pnDaysRow = null;
27
- this.pnGeneratedDatesSlot = null;
28
- this.pnSaveGeneratedDatesButton = null;
29
- this.pnDeleteRowButton = null;
30
14
  this.dropdownData = null;
31
15
  this.languageCode = null;
32
16
  this.label = null;
@@ -66,6 +50,27 @@ const PnMultiRowConnectedDropdownRow = class {
66
50
  this.dateValue = '';
67
51
  this.daysArr = null;
68
52
  }
53
+ get hostElement() { return getElement(this); }
54
+ _dropdownData;
55
+ _predefinedValue;
56
+ pnConnectedDropdown = null;
57
+ pnConnectedDropdownSlotElement = null;
58
+ pnAddFieldButton = null;
59
+ pnFirstDropdown = null;
60
+ pnSecondDropdown = null;
61
+ pnInputField = null;
62
+ pnSingleDatePicker = null;
63
+ pnStartDate = null;
64
+ pnEndDate = null;
65
+ pnShowDateRangeFiledButton = null;
66
+ pnDateRangeContainer = null;
67
+ pnGenerateDatesButton = null;
68
+ pnDaysRow = null;
69
+ pnGeneratedDatesSlot = null;
70
+ pnSaveGeneratedDatesButton = null;
71
+ pnDeleteRowButton = null;
72
+ rowValueChange;
73
+ deleteRowEvent;
69
74
  componentWillLoad() {
70
75
  this.getPredefinedValues();
71
76
  this.setDropDownData();
@@ -102,9 +107,8 @@ const PnMultiRowConnectedDropdownRow = class {
102
107
  this.secondDropdownClass = this.secondDropdownLabel.replace(' ', '_') + '-dropdown';
103
108
  }
104
109
  setButtonsValue() {
105
- var _a;
106
110
  this.buttonsArray = [];
107
- if ((_a = this._predefinedValue.buttons) === null || _a === void 0 ? void 0 : _a.length) {
111
+ if (this._predefinedValue.buttons?.length) {
108
112
  this.buttonsArray = this._predefinedValue.buttons;
109
113
  this.buttonsArray.forEach(item => {
110
114
  if (item.selected) {
@@ -120,45 +124,39 @@ const PnMultiRowConnectedDropdownRow = class {
120
124
  }
121
125
  }
122
126
  setFirstDropdownValues() {
123
- var _a;
124
127
  this.firstDropdownArr = [];
125
- if ((_a = this._predefinedValue.firstDropdown) === null || _a === void 0 ? void 0 : _a.length) {
128
+ if (this._predefinedValue.firstDropdown?.length) {
126
129
  this.firstDropdownArr = [...this._predefinedValue.firstDropdown];
127
130
  }
128
131
  }
129
132
  setSecondDropdownValues() {
130
- var _a;
131
133
  this.secondDropdownArr = [];
132
- if ((_a = this._predefinedValue.secondDropdown) === null || _a === void 0 ? void 0 : _a.length) {
134
+ if (this._predefinedValue.secondDropdown?.length) {
133
135
  this.secondDropdownArr = [...this._predefinedValue.secondDropdown];
134
136
  }
135
137
  }
136
138
  setInputField() {
137
- var _a;
138
- this.inputFieldValue = ((_a = this._predefinedValue.input) === null || _a === void 0 ? void 0 : _a.length) ? this._predefinedValue.input : '';
139
+ this.inputFieldValue = this._predefinedValue.input?.length ? this._predefinedValue.input : '';
139
140
  }
140
141
  setDateValue() {
141
- var _a, _b, _c;
142
142
  if (this.allowMultipleDates) {
143
- this.pnDateRangeContainer.style.display = ((_a = this._predefinedValue.dates["start"]) === null || _a === void 0 ? void 0 : _a.length) ? '' : 'none';
144
- this.generatedDatesArr = ((_b = this._predefinedValue.dates["start"]) === null || _b === void 0 ? void 0 : _b.length) ? this._predefinedValue.dates["start"].split(',') : [];
143
+ this.pnDateRangeContainer.style.display = this._predefinedValue.dates["start"]?.length ? '' : 'none';
144
+ this.generatedDatesArr = this._predefinedValue.dates["start"]?.length ? this._predefinedValue.dates["start"].split(',') : [];
145
145
  this.saveGeneratedDates();
146
146
  }
147
147
  else {
148
- this.dateValue = ((_c = this._predefinedValue.dates["start"]) === null || _c === void 0 ? void 0 : _c.length) ? this._predefinedValue.dates["start"] : '';
148
+ this.dateValue = this._predefinedValue.dates["start"]?.length ? this._predefinedValue.dates["start"] : '';
149
149
  }
150
150
  }
151
151
  setDateRangeDefaults() {
152
- var _a, _b;
153
152
  this.daysArr = this._predefinedValue.dateRange.days;
154
- this.starDateValue = ((_a = this._predefinedValue.dateRange.startDate) === null || _a === void 0 ? void 0 : _a.length) ? this._predefinedValue.dateRange.startDate : '';
155
- this.endDateValue = ((_b = this._predefinedValue.dateRange.endDate) === null || _b === void 0 ? void 0 : _b.length) ? this._predefinedValue.dateRange.endDate : '';
153
+ this.starDateValue = this._predefinedValue.dateRange.startDate?.length ? this._predefinedValue.dateRange.startDate : '';
154
+ this.endDateValue = this._predefinedValue.dateRange.endDate?.length ? this._predefinedValue.dateRange.endDate : '';
156
155
  }
157
156
  setFirstValidDate() {
158
- var _a;
159
157
  const yearsToadd = this.yearsToAddToEndDate ? this.yearsToAddToEndDate : 2;
160
158
  const date = new Date();
161
- date.setDate((_a = date.getDate() + this.dateDaysFromToday) !== null && _a !== void 0 ? _a : 0);
159
+ date.setDate(date.getDate() + this.dateDaysFromToday ?? 0);
162
160
  const year = date.getFullYear();
163
161
  const month = (date.getMonth() + 1).toString().padStart(2, '0');
164
162
  const day = date.getDate().toString().padStart(2, '0');
@@ -205,12 +203,11 @@ const PnMultiRowConnectedDropdownRow = class {
205
203
  return arr;
206
204
  }
207
205
  handleOptionButtonClick(e) {
208
- var _a;
209
206
  e.preventDefault();
210
207
  const elmValue = e.target.innerHTML;
211
208
  this.buttonsArray = [...this.updateSelectItemArr(this.buttonsArray, elmValue)];
212
209
  this.selectedButtonValue = this.buttonsArray.filter(e => e.selected === true).length > 0 ? elmValue : '';
213
- if ((_a = this.selectedButtonValue) === null || _a === void 0 ? void 0 : _a.length) {
210
+ if (this.selectedButtonValue?.length) {
214
211
  this.firstDropdownArr = [];
215
212
  const selectionChildren = this._dropdownData.find(arr => arr.label === elmValue);
216
213
  selectionChildren.values.forEach(item => {
@@ -239,7 +236,7 @@ const PnMultiRowConnectedDropdownRow = class {
239
236
  }
240
237
  handleFirstDropdownChange() {
241
238
  const selected = this.pnFirstDropdown.querySelector("[aria-selected=true]");
242
- const selectedValue = selected === null || selected === void 0 ? void 0 : selected.textContent;
239
+ const selectedValue = selected?.textContent;
243
240
  this.firstDropdownArr = [...this.updateSelectItemArr(this.firstDropdownArr, selectedValue)];
244
241
  const firstDropdownText = this.pnFirstDropdown.querySelector('.pn-select-content span');
245
242
  firstDropdownText.innerHTML = selectedValue;
@@ -257,7 +254,7 @@ const PnMultiRowConnectedDropdownRow = class {
257
254
  }
258
255
  handleSecondDropdownChange() {
259
256
  const selected = this.pnSecondDropdown.querySelector("[aria-selected=true]");
260
- const selectedValue = selected === null || selected === void 0 ? void 0 : selected.textContent;
257
+ const selectedValue = selected?.textContent;
261
258
  this.secondDropdownArr = [...this.updateSelectItemArr(this.secondDropdownArr, selectedValue)];
262
259
  const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');
263
260
  secondDropdownText.innerHTML = selectedValue;
@@ -287,7 +284,6 @@ const PnMultiRowConnectedDropdownRow = class {
287
284
  }
288
285
  }
289
286
  generateDates(e) {
290
- var _a;
291
287
  e.preventDefault();
292
288
  const allCheckboxes = this.pnDaysRow.querySelectorAll('pn-filter-checkbox');
293
289
  const selectedDays = [];
@@ -311,7 +307,7 @@ const PnMultiRowConnectedDropdownRow = class {
311
307
  const endDate = new Date(Date.parse(this.endDateValue));
312
308
  for (var d = startDate; d <= endDate; d.setDate(d.getDate() + 1)) {
313
309
  const i = this.daysArr.findIndex(item => parseInt(item.value) === d.getDay());
314
- if ((_a = this.daysArr[i]) === null || _a === void 0 ? void 0 : _a.selected) {
310
+ if (this.daysArr[i]?.selected) {
315
311
  const year = d.getFullYear();
316
312
  const month = (d.getMonth() + 1).toString().padStart(2, '0');
317
313
  const day = d.getDate().toString().padStart(2, '0');
@@ -325,8 +321,7 @@ const PnMultiRowConnectedDropdownRow = class {
325
321
  this.generatedDatesArr = [...this.generatedDatesArr];
326
322
  }
327
323
  saveGeneratedDates() {
328
- var _a;
329
- if ((_a = this.generatedDatesArr) === null || _a === void 0 ? void 0 : _a.length) {
324
+ if (this.generatedDatesArr?.length) {
330
325
  this.dateValue = String(this.generatedDatesArr);
331
326
  const dateCount = this.generatedDatesArr.length;
332
327
  const buttonTextElm = this.pnShowDateRangeFiledButton.querySelector('.pn-button-content');
@@ -362,11 +357,8 @@ const PnMultiRowConnectedDropdownRow = class {
362
357
  return active ? 'connected-dropdown__button active' : 'connected-dropdown__button';
363
358
  }
364
359
  render() {
365
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
366
- return (h(Host, { key: 'ad539e2ba8ab36a8b052be6cd30a901847de6f00' }, h("div", { key: '36b00805294171c2bf910cda8fb80da2b449cd31', ref: el => (this.pnConnectedDropdownSlotElement = el), class: "connected-dropdown-slot-element" }, h("div", { key: '3d3e46feab301b4e9f3db92365fd0e3c4b69a518', class: "connected-dropdown-parent-element connected-dropdown" }, h("div", { key: '62bd8eb88f0ca11ad06c2a1053bd823500719c6a', class: "connected-dropdown__row__no-margin" }, h("label", { key: 'afe3977594b5a3e54865e6cd10a6cbdefb578c79' }, this.label)), h("div", { key: '96ffced084b72620088cb2357f8266fc12c9fc87', class: "connected-dropdown__row button-row" }, h("div", { key: '9539103ef44c6e314c792f46b8ef33e114ce8306', class: "connected-dropdown__button-container option-buttons" }, (_a = this.buttonsArray) === null || _a === void 0 ? void 0 : _a.map(item => (h("button", { class: `${this.setActive(item.selected)}`, id: this.generateUniqueId(), onClick: this.handleOptionButtonClick.bind(this) }, item.value)))), h("div", { key: '39fdaad5b12573c7e8d453deaf5b10ad558a8eb3', class: "connected-dropdown__button-container delete-button" }, this.index > 0 ? (h("pn-button", { ref: el => (this.pnDeleteRowButton = el), small: "true", icon: minus, appearance: "warning", index: this.index }, "Delete")) : null)), h("div", { key: 'c8c808aa6214dfd234b0d383c2f3dbe075c938af', class: "connected-dropdown__row input-row" }, h("pn-select", { key: '54a0e807950b4d70b6a253ffff772452767a9d1b', ref: el => (this.pnFirstDropdown = el), class: "pn-row-select-dropdown dropDown1-dropdown", placeholder: this.firstDropdownPlaceholder, label: this.firstDropdownLabel, "empty-option": "true" }, (_b = this.firstDropdownArr) === null || _b === void 0 ? void 0 : _b.map((item, i) => (h("pn-option", { index: i, label: item.label, value: item.value, selected: item.selected, onClick: debounce(this.handleFirstDropdownChange.bind(this), 500) })))), h("pn-select", { key: 'ac1a665b98da67b0cb7e74609c4e21f0d67a7244', ref: el => (this.pnSecondDropdown = el), class: "pn-row-select-dropdown dropDown2-dropdown", placeholder: this.secondDropdownPlaceholder, label: this.secondDropdownLabel, "empty-option": "true" }, (_c = this.secondDropdownArr) === null || _c === void 0 ? void 0 : _c.map((item, i) => (h("pn-option", { index: i, label: item.label, value: item.value, selected: item.selected, onClick: debounce(this.handleSecondDropdownChange.bind(this), 500) })))), h("pn-marketweb-input", { key: '7c8c8093092dae071cb25473062b0da157f7070f', ref: el => (this.pnInputField = el), type: "number", placeholder: "0", label: this.inputFildLabel, value: this.inputFieldValue, min: "1" }), this.allowMultipleDates ? (h("pn-button", { ref: el => (this.pnShowDateRangeFiledButton = el), class: "connected-dropdown__toggle-date-button", small: "true", appearance: "light" }, this.dateButtonText)) : (h("div", { class: "connected-dropdown__date-container" }, h("div", { class: "connected-dropdown__label-container" }, h("label", null, this.dateButtonText)), h("pn-date-picker", { ref: el => (this.pnSingleDatePicker = el), range: "false", "disable-weekends": true, "min-date": this.firstValidDateString, language: this.languageCode, placeholder: this.datePlaceholder, class: "connected-dropdown__date-picker", start: ((_d = this.dateValue) === null || _d === void 0 ? void 0 : _d.length) ? this.dateValue : null })))), this.allowMultipleDates ? (h("div", { ref: el => (this.pnDateRangeContainer = el), class: "connected-dropdown__date-container", style: { display: 'none' } }, this.multiDateHelperText ? (h("div", { class: "connected-dropdown__row" }, h("p", null, this.multiDateHelperText))) : null, h("div", { class: "connected-dropdown__multi-date-row" }, h("div", { class: "connected-dropdown__date-container" }, h("div", { class: "connected-dropdown__label-container" }, h("label", null, this.startDateLabel)), h("pn-date-picker", { ref: el => (this.pnStartDate = el), range: "false", "disable-weekends": true, class: "connected-dropdown__date-picker", "min-date": this.firstValidDateString, "max-date": this.lastValidDateString, language: this.languageCode, placeholder: this.datePlaceholder, start: ((_e = this.starDateValue) === null || _e === void 0 ? void 0 : _e.length) ? this.starDateValue : null })), h("div", { class: "connected-dropdown__date-container" }, h("div", { class: "connected-dropdown__label-container" }, h("label", null, this.endDateLabel)), h("pn-date-picker", { ref: el => (this.pnEndDate = el), range: "false", "disable-weekends": true, class: "connected-dropdown__date-picker", "min-date": this.firstValidDateString, "max-date": this.lastValidDateString, language: this.languageCode, placeholder: this.datePlaceholder, start: ((_f = this.endDateValue) === null || _f === void 0 ? void 0 : _f.length) ? this.endDateValue : null }))), h("div", { ref: el => (this.pnDaysRow = el), class: "connected-dropdown__multi-date-row" }, (_g = this.daysArr) === null || _g === void 0 ? void 0 : _g.map((day) => (h("div", { class: "connected-dropdown__checkbox" }, h("pn-filter-checkbox", { checkboxid: 'day-' + day.value, name: '__' + day.label, value: day.value, checked: day.selected }), h("label", { htmlFor: 'day-' + day.value }, day.label))))), h("div", { class: "connected-dropdown__row" }, h("pn-button", { ref: el => (this.pnGenerateDatesButton = el), small: "true" }, this.generateDatesButtonText)), h("div", { ref: el => (this.pnGeneratedDatesSlot = el), class: "connected-dropdown__date-slot" }, (_h = this.generatedDatesArr) === null || _h === void 0 ? void 0 :
367
- _h.map((date, i) => (h("div", { class: "connected-dropdown__row generated-date-row" }, h("p", null, date), h("pn-button", { index: i, small: "true", icon: minus, appearance: "warning", id: 'delete-date-' + i, onClick: this.deleteGeneratedDateRow.bind(this, i) }, date)))), !((_j = this.generatedDatesArr) === null || _j === void 0 ? void 0 : _j.length) ? h("p", null, this.noDatesText) : null), h("div", { class: "connected-dropdown__row" }, h("pn-button", { ref: el => (this.pnSaveGeneratedDatesButton = el), class: "connected-dropdown__button-right", small: "true" }, this.saveDateButtonText)))) : null))));
360
+ return (h(Host, { key: 'ad539e2ba8ab36a8b052be6cd30a901847de6f00' }, h("div", { key: '36b00805294171c2bf910cda8fb80da2b449cd31', ref: el => (this.pnConnectedDropdownSlotElement = el), class: "connected-dropdown-slot-element" }, h("div", { key: '3d3e46feab301b4e9f3db92365fd0e3c4b69a518', class: "connected-dropdown-parent-element connected-dropdown" }, h("div", { key: '62bd8eb88f0ca11ad06c2a1053bd823500719c6a', class: "connected-dropdown__row__no-margin" }, h("label", { key: 'afe3977594b5a3e54865e6cd10a6cbdefb578c79' }, this.label)), h("div", { key: '96ffced084b72620088cb2357f8266fc12c9fc87', class: "connected-dropdown__row button-row" }, h("div", { key: '9539103ef44c6e314c792f46b8ef33e114ce8306', class: "connected-dropdown__button-container option-buttons" }, this.buttonsArray?.map(item => (h("button", { class: `${this.setActive(item.selected)}`, id: this.generateUniqueId(), onClick: this.handleOptionButtonClick.bind(this) }, item.value)))), h("div", { key: '39fdaad5b12573c7e8d453deaf5b10ad558a8eb3', class: "connected-dropdown__button-container delete-button" }, this.index > 0 ? (h("pn-button", { ref: el => (this.pnDeleteRowButton = el), small: "true", icon: minus, appearance: "warning", index: this.index }, "Delete")) : null)), h("div", { key: 'c8c808aa6214dfd234b0d383c2f3dbe075c938af', class: "connected-dropdown__row input-row" }, h("pn-select", { key: '8064a2e6e5130f4d187a6be672170b34073842eb', ref: el => (this.pnFirstDropdown = el), class: "pn-row-select-dropdown dropDown1-dropdown", placeholder: this.firstDropdownPlaceholder, label: this.firstDropdownLabel, "empty-option": "true", language: this.languageCode }, this.firstDropdownArr?.map((item, i) => (h("pn-option", { index: i, label: item.label, value: item.value, selected: item.selected, onClick: debounce(this.handleFirstDropdownChange.bind(this), 500) })))), h("pn-select", { key: '34c00a277ecaadf0b9fbcecbe1d15f04c05525bd', ref: el => (this.pnSecondDropdown = el), class: "pn-row-select-dropdown dropDown2-dropdown", placeholder: this.secondDropdownPlaceholder, label: this.secondDropdownLabel, "empty-option": "true", language: this.languageCode }, this.secondDropdownArr?.map((item, i) => (h("pn-option", { index: i, label: item.label, value: item.value, selected: item.selected, onClick: debounce(this.handleSecondDropdownChange.bind(this), 500) })))), h("pn-marketweb-input", { key: 'b2cf89246de1720e848ce243f41c1232128405bc', ref: el => (this.pnInputField = el), type: "number", placeholder: "0", label: this.inputFildLabel, value: this.inputFieldValue, min: "1" }), this.allowMultipleDates ? (h("pn-button", { ref: el => (this.pnShowDateRangeFiledButton = el), class: "connected-dropdown__toggle-date-button", small: "true", appearance: "light" }, this.dateButtonText)) : (h("div", { class: "connected-dropdown__date-container" }, h("div", { class: "connected-dropdown__label-container" }, h("label", null, this.dateButtonText)), h("pn-date-picker", { ref: el => (this.pnSingleDatePicker = el), range: "false", "disable-weekends": true, "min-date": this.firstValidDateString, language: this.languageCode, placeholder: this.datePlaceholder, class: "connected-dropdown__date-picker", start: this.dateValue?.length ? this.dateValue : null })))), this.allowMultipleDates ? (h("div", { ref: el => (this.pnDateRangeContainer = el), class: "connected-dropdown__date-container", style: { display: 'none' } }, this.multiDateHelperText ? (h("div", { class: "connected-dropdown__row" }, h("p", null, this.multiDateHelperText))) : null, h("div", { class: "connected-dropdown__multi-date-row" }, h("div", { class: "connected-dropdown__date-container" }, h("div", { class: "connected-dropdown__label-container" }, h("label", null, this.startDateLabel)), h("pn-date-picker", { ref: el => (this.pnStartDate = el), range: "false", "disable-weekends": true, class: "connected-dropdown__date-picker", "min-date": this.firstValidDateString, "max-date": this.lastValidDateString, language: this.languageCode, placeholder: this.datePlaceholder, start: this.starDateValue?.length ? this.starDateValue : null })), h("div", { class: "connected-dropdown__date-container" }, h("div", { class: "connected-dropdown__label-container" }, h("label", null, this.endDateLabel)), h("pn-date-picker", { ref: el => (this.pnEndDate = el), range: "false", "disable-weekends": true, class: "connected-dropdown__date-picker", "min-date": this.firstValidDateString, "max-date": this.lastValidDateString, language: this.languageCode, placeholder: this.datePlaceholder, start: this.endDateValue?.length ? this.endDateValue : null }))), h("div", { ref: el => (this.pnDaysRow = el), class: "connected-dropdown__multi-date-row" }, this.daysArr?.map((day) => (h("div", { class: "connected-dropdown__checkbox" }, h("pn-filter-checkbox", { checkboxid: 'day-' + day.value, name: '__' + day.label, value: day.value, checked: day.selected }), h("label", { htmlFor: 'day-' + day.value }, day.label))))), h("div", { class: "connected-dropdown__row" }, h("pn-button", { ref: el => (this.pnGenerateDatesButton = el), small: "true" }, this.generateDatesButtonText)), h("div", { ref: el => (this.pnGeneratedDatesSlot = el), class: "connected-dropdown__date-slot" }, this.generatedDatesArr?.map((date, i) => (h("div", { class: "connected-dropdown__row generated-date-row" }, h("p", null, date), h("pn-button", { index: i, small: "true", icon: minus, appearance: "warning", id: 'delete-date-' + i, onClick: this.deleteGeneratedDateRow.bind(this, i) }, date)))), !this.generatedDatesArr?.length ? h("p", null, this.noDatesText) : null), h("div", { class: "connected-dropdown__row" }, h("pn-button", { ref: el => (this.pnSaveGeneratedDatesButton = el), class: "connected-dropdown__button-right", small: "true" }, this.saveDateButtonText)))) : null))));
368
361
  }
369
- get hostElement() { return getElement(this); }
370
362
  static get watchers() { return {
371
363
  "predefinedValue": ["applyPredefinedValue"]
372
364
  }; }
@@ -1 +1 @@
1
- {"file":"pn-multi-row-connected-dropdown-row.entry.js","mappings":";;;;;AAAA,MAAM,iCAAiC,GAAG,0xEAA0xE,CAAC;AACr0E,6CAAe,iCAAiC;;MCSnC,8BAA8B;;;;;QAIzC,wBAAmB,GAAgB,IAAI,CAAC;QACxC,mCAA8B,GAAgB,IAAI,CAAC;QACnD,qBAAgB,GAAgB,IAAI,CAAC;QACrC,oBAAe,GAAgB,IAAI,CAAC;QACpC,qBAAgB,GAAgB,IAAI,CAAC;QACrC,iBAAY,GAAgB,IAAI,CAAC;QACjC,uBAAkB,GAAgB,IAAI,CAAC;QACvC,gBAAW,GAAgB,IAAI,CAAC;QAChC,cAAS,GAAgB,IAAI,CAAC;QAC9B,+BAA0B,GAAgB,IAAI,CAAC;QAC/C,yBAAoB,GAAgB,IAAI,CAAC;QACzC,0BAAqB,GAAgB,IAAI,CAAC;QAC1C,cAAS,GAAgB,IAAI,CAAC;QAC9B,yBAAoB,GAAgB,IAAI,CAAC;QACzC,+BAA0B,GAAgB,IAAI,CAAC;QAC/C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AAC,EAAE,KAAK,EAAC,+BAA+B,IACnG,MAAA,IAAI,CAAC,iBAAiB;eAAE,GAAG,CAAC,CAAC,IAAY,EAAE,CAAC,MAC3C,WAAK,KAAK,EAAC,4CAA4C,IACrD,aAAI,IAAI,CAAK,EACb,iBAAW,KAAK,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,KAAK,EAAE,UAAU,EAAC,SAAS,EAAC,EAAE,EAAE,cAAc,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAC3I,IAAI,CACK,CACR,CACP,CAAC,EAED,EAAC,MAAA,IAAI,CAAC,iBAAiB,0CAAE,MAAM,CAAA,GAAG,aAAI,IAAI,CAAC,WAAW,CAAK,GAAG,IAAI,CAC/D,EAEN,WAAK,KAAK,EAAC,yBAAyB,IAClC,iBAAW,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,0BAA0B,GAAG,EAAiB,CAAC,EAAE,KAAK,EAAC,kCAAkC,EAAC,KAAK,EAAC,MAAM,IAC/H,IAAI,CAAC,kBAAkB,CACd,CACR,CACF,IACJ,IAAI,CACJ,CACF,CACD,EACP;KACH;;;;;;;;;;","names":["uuidv4"],"sources":["src/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.scss?tag=pn-multi-row-connected-dropdown-row","src/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-multi-row-connected-dropdown-row {\n gap: 1rem;\n\n .connected-dropdown-parent-element {\n margin-bottom: 0.5rem;\n }\n\n pn-select {\n width: 35%;\n }\n\n pn-marketweb-input {\n width: 10%;\n\n input {\n height: 4.3rem;\n }\n }\n\n .connected-dropdown {\n padding: 1rem;\n border-left: 0.2rem solid $blue700;\n\n &:hover {\n background-color: $gray25;\n }\n\n &__toggle-date-button {\n width: 20%;\n margin-bottom: 0.5rem;\n }\n\n &__row {\n display: flex;\n align-items: flex-end;\n gap: 1rem;\n margin-bottom: 1rem;\n justify-content: space-between;\n\n &__no-margin {\n margin: 0;\n }\n }\n\n &__multi-date-row {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-bottom: 1rem;\n }\n\n &__button-container {\n display: flex;\n align-items: flex-end;\n gap: 1rem;\n }\n\n &__button {\n background-color: #ffffff;\n border: solid;\n border-width: 0.1rem;\n border-radius: 0.8rem;\n border-color: $blue700;\n padding: 0.4rem 0.8rem;\n color: $blue700;\n font-size: 1.4rem;\n text-align: center;\n text-decoration: none;\n cursor: pointer;\n\n &:hover,\n &.active {\n background-color: $blue900;\n border-color: $blue900;\n color: #ffffff;\n }\n }\n\n &__buttom-container-right {\n display: flex;\n }\n\n &__button-right {\n margin-left: auto;\n }\n\n &__label-container {\n margin-bottom: 0.4rem;\n color: $gray700;\n font-size: 0.875em;\n justify-content: space-between;\n align-items: flex-end;\n }\n\n &__checkbox {\n display: flex;\n gap: 0.5rem;\n }\n\n &__date-slot {\n border: 0.1rem solid $blue700;\n margin-bottom: 1rem;\n padding: 1rem;\n }\n }\n\n .generated-date-row {\n border-bottom: 0.1rem solid $blue700;\n }\n}\n","import { Component, Prop, h, Element, Host, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport { Root, SelectItem, PredefinedValues } from './types';\nimport debounce from 'debounce';\nimport { v4 as uuidv4 } from 'uuid';\nimport { minus } from 'pn-design-assets/pn-assets/icons.js';\n\n@Component({\n tag: 'pn-multi-row-connected-dropdown-row',\n styleUrl: 'pn-multi-row-connected-dropdown-row.scss',\n})\nexport class PnMultiRowConnectedDropdownRow {\n @Element() hostElement: Element;\n private _dropdownData: Root[];\n private _predefinedValue: PredefinedValues;\n pnConnectedDropdown: HTMLElement = null;\n pnConnectedDropdownSlotElement: HTMLElement = null;\n pnAddFieldButton: HTMLElement = null;\n pnFirstDropdown: HTMLElement = null;\n pnSecondDropdown: HTMLElement = null;\n pnInputField: HTMLElement = null;\n pnSingleDatePicker: HTMLElement = null;\n pnStartDate: HTMLElement = null;\n pnEndDate: HTMLElement = null;\n pnShowDateRangeFiledButton: HTMLElement = null;\n pnDateRangeContainer: HTMLElement = null;\n pnGenerateDatesButton: HTMLElement = null;\n pnDaysRow: HTMLElement = null;\n pnGeneratedDatesSlot: HTMLElement = null;\n pnSaveGeneratedDatesButton: HTMLElement = null;\n pnDeleteRowButton: HTMLElement = null;\n\n @Prop() dropdownData: string | Root[] = null;\n @Prop() languageCode: string = null;\n @Prop() label: string = null;\n @Prop() firstDropdownLabel: string = null;\n @Prop() secondDropdownLabel: string = null;\n @Prop() dropdownPlaceholder: string = null;\n @Prop() addRowText: string = null;\n @Prop() inputFildLabel: string = null;\n @Prop() inputFildPlaceholder: string = null;\n @Prop() dateButtonText: string = null;\n @Prop() datePlaceholder: string = null;\n @Prop() dateDaysFromToday: number = 1;\n @Prop() allowMultipleDates: boolean = null;\n @Prop() startDateLabel: string = null;\n @Prop() endDateLabel: string = null;\n @Prop() multiDateHelperText: string = null;\n @Prop() generateDatesButtonText: string = null;\n @Prop() saveDateButtonText: string = null;\n @Prop() noDatesText: string = null;\n @Prop() index: number = null;\n @Prop() predefinedValue: string = null;\n @Prop() yearsToAddToEndDate: number = null;\n\n @State() buttonsArray: SelectItem[] = null;\n @State() firstDropdownArr: SelectItem[] = null;\n @State() secondDropdownArr: SelectItem[] = [];\n @State() firstDropdownClass: string = null;\n @State() secondDropdownClass: string = null;\n @State() firstValidDateString: string = '';\n @State() lastValidDateString: string = '';\n @State() firstDropdownPlaceholder: string = '-';\n @State() secondDropdownPlaceholder: string = '-';\n @State() starDateValue: string = '';\n @State() endDateValue: string = '';\n @State() generatedDatesArr: string[] = [];\n @State() selectedButtonValue: string = '';\n @State() inputFieldValue: string = '';\n @State() dateValue: string = '';\n @State() daysArr: SelectItem[] = null;\n\n @Event() rowValueChange: EventEmitter<PredefinedValues>;\n @Event() deleteRowEvent: EventEmitter<string>;\n\n componentWillLoad() {\n this.getPredefinedValues();\n this.setDropDownData();\n this.setFirstValidDate();\n }\n\n componentDidLoad() {\n this.setInitialValues();\n this.addEventHandlers();\n this.emittRowValues();\n }\n\n setDropDownData() {\n if (typeof this.dropdownData === 'string') {\n this._dropdownData = JSON.parse(this.dropdownData);\n } else {\n this._dropdownData = this.dropdownData;\n }\n }\n\n getPredefinedValues() {\n this._predefinedValue = JSON.parse(this.predefinedValue);\n }\n\n @Watch('predefinedValue')\n applyPredefinedValue() {\n this.getPredefinedValues();\n this.setInitialValues();\n }\n\n setInitialValues() {\n this.setButtonsValue();\n this.setFirstDropdownValues();\n this.setSecondDropdownValues();\n this.setInputField();\n this.setDateValue();\n this.setDateRangeDefaults();\n\n this.firstDropdownClass = this.firstDropdownLabel.replace(' ', '_') + '-dropdown';\n this.secondDropdownClass = this.secondDropdownLabel.replace(' ', '_') + '-dropdown';\n }\n\n setButtonsValue() {\n this.buttonsArray = [];\n\n if (this._predefinedValue.buttons?.length) {\n this.buttonsArray = this._predefinedValue.buttons;\n\n this.buttonsArray.forEach(item => {\n if (item.selected) {\n this.selectedButtonValue = item.value;\n }\n });\n } else {\n this._dropdownData.forEach(item => {\n const button: SelectItem = { selected: false, value: item.label, label: item.label };\n this.buttonsArray.push(button);\n });\n }\n }\n\n setFirstDropdownValues() {\n this.firstDropdownArr = [];\n\n if (this._predefinedValue.firstDropdown?.length) {\n this.firstDropdownArr = [...this._predefinedValue.firstDropdown];\n }\n }\n\n setSecondDropdownValues() {\n this.secondDropdownArr = [];\n\n if (this._predefinedValue.secondDropdown?.length) {\n this.secondDropdownArr = [...this._predefinedValue.secondDropdown];\n }\n }\n\n setInputField() {\n this.inputFieldValue = this._predefinedValue.input?.length ? this._predefinedValue.input : '';\n }\n\n setDateValue() {\n if (this.allowMultipleDates) {\n this.pnDateRangeContainer.style.display = this._predefinedValue.dates[\"start\"]?.length ? '' : 'none';\n this.generatedDatesArr = this._predefinedValue.dates[\"start\"]?.length ? this._predefinedValue.dates[\"start\"].split(',') : [];\n this.saveGeneratedDates();\n } else {\n this.dateValue = this._predefinedValue.dates[\"start\"]?.length ? this._predefinedValue.dates[\"start\"] : '';\n }\n }\n\n setDateRangeDefaults() {\n this.daysArr = this._predefinedValue.dateRange.days;\n this.starDateValue = this._predefinedValue.dateRange.startDate?.length ? this._predefinedValue.dateRange.startDate : '';\n this.endDateValue = this._predefinedValue.dateRange.endDate?.length ? this._predefinedValue.dateRange.endDate : '';\n }\n\n setFirstValidDate() {\n const yearsToadd = this.yearsToAddToEndDate ? this.yearsToAddToEndDate : 2;\n const date = new Date();\n date.setDate(date.getDate() + this.dateDaysFromToday ?? 0);\n\n const year = date.getFullYear();\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n const day = date.getDate().toString().padStart(2, '0');\n const endYear = year + yearsToadd;\n\n this.firstValidDateString = `${year.toString()}-${month}-${day}`;\n this.lastValidDateString = `${endYear.toString()}-${month}-${day}`;\n }\n\n addEventHandlers() {\n const emmitValues = debounce(this.emittRowValues.bind(this), 500);\n\n this.pnInputField.addEventListener('keyup', this.handleInput.bind(this));\n this.pnInputField.addEventListener('change', this.handleInput.bind(this));\n this.pnInputField.addEventListener('input', this.handleInput.bind(this));\n this.pnInputField.addEventListener('keyup', emmitValues);\n this.pnInputField.addEventListener('change', emmitValues);\n this.pnInputField.addEventListener('input', emmitValues);\n\n if (this.allowMultipleDates) {\n this.pnShowDateRangeFiledButton.addEventListener('click', this.showDateRangeRow.bind(this));\n this.pnStartDate.addEventListener('dateselection', this.HandleRangeDatePickers.bind(this));\n this.pnEndDate.addEventListener('dateselection', this.HandleRangeDatePickers.bind(this));\n this.pnGenerateDatesButton.addEventListener('click', this.generateDates.bind(this));\n this.pnSaveGeneratedDatesButton.addEventListener('click', this.saveGeneratedDates.bind(this));\n this.pnSaveGeneratedDatesButton.addEventListener('click', emmitValues);\n } else {\n this.pnSingleDatePicker.addEventListener('dateselection', this.setSingleDateValue.bind(this));\n this.pnSingleDatePicker.addEventListener('dateselection', emmitValues);\n }\n\n if (this.index > 0) {\n this.pnDeleteRowButton.addEventListener('click', this.deleteRow.bind(this));\n }\n }\n\n generateUniqueId() {\n return uuidv4();\n }\n\n updateSelectItemArr(arr: SelectItem[], val: string) {\n arr.forEach(item => {\n if (item.value === val) {\n item.selected = !item.selected;\n } else {\n item.selected = false;\n }\n });\n return arr;\n }\n\n handleOptionButtonClick(e) {\n e.preventDefault();\n const elmValue = e.target.innerHTML;\n\n this.buttonsArray = [...this.updateSelectItemArr(this.buttonsArray, elmValue)];\n this.selectedButtonValue = this.buttonsArray.filter(e => e.selected === true).length > 0 ? elmValue : '';\n\n if (this.selectedButtonValue?.length) {\n this.firstDropdownArr = [];\n const selectionChildren = this._dropdownData.find(arr => arr.label === elmValue);\n selectionChildren.values.forEach(item => {\n this.firstDropdownArr.push({ selected: false, value: item.label, label: item.label });\n });\n\n this.firstDropdownArr = [...this.firstDropdownArr];\n this.firstDropdownPlaceholder = this.dropdownPlaceholder;\n const firstDropdownText = this.pnFirstDropdown.querySelector('.pn-select-content span');\n firstDropdownText.innerHTML = this.dropdownPlaceholder;\n\n this.secondDropdownArr = [];\n this.secondDropdownPlaceholder = '-';\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = this.secondDropdownPlaceholder;\n } else {\n this.firstDropdownArr = [];\n this.firstDropdownPlaceholder = '-';\n const firstDropdownText = this.pnFirstDropdown.querySelector('.pn-select-content span');\n firstDropdownText.innerHTML = this.firstDropdownPlaceholder;\n\n this.secondDropdownArr = [];\n this.secondDropdownPlaceholder = '-';\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = this.secondDropdownPlaceholder;\n }\n\n this.emittRowValues();\n }\n\n handleFirstDropdownChange() {\n const selected = this.pnFirstDropdown.querySelector(\"[aria-selected=true]\");\n const selectedValue = selected?.textContent;\n this.firstDropdownArr = [...this.updateSelectItemArr(this.firstDropdownArr, selectedValue)];\n const firstDropdownText = this.pnFirstDropdown.querySelector('.pn-select-content span');\n firstDropdownText.innerHTML = selectedValue;\n\n this.secondDropdownArr = [];\n const selectedButton = this.buttonsArray.findIndex(item => item.selected === true);\n const firstChildren = this._dropdownData.find(arr => arr.label === this.buttonsArray[selectedButton].value);\n const secondChildren = firstChildren.values.find(arr => arr.label === selectedValue);\n secondChildren.values.forEach(item => {\n this.secondDropdownArr.push({ selected: false, value: item.label, label: item.label });\n });\n\n this.secondDropdownPlaceholder = this.dropdownPlaceholder;\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = this.secondDropdownPlaceholder;\n this.emittRowValues();\n }\n\n handleSecondDropdownChange() {\n const selected = this.pnSecondDropdown.querySelector(\"[aria-selected=true]\");\n const selectedValue = selected?.textContent;\n this.secondDropdownArr = [...this.updateSelectItemArr(this.secondDropdownArr, selectedValue)];\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = selectedValue;\n this.emittRowValues();\n }\n\n handleInput(e) {\n const elm = e.target;\n if (elm.value !== '0') {\n this.inputFieldValue = elm.value;\n }\n }\n\n showDateRangeRow() {\n if (this.pnDateRangeContainer.style.display === 'none') {\n this.pnDateRangeContainer.style.display = '';\n } else {\n this.pnDateRangeContainer.style.display = 'none';\n }\n }\n\n HandleRangeDatePickers(e) {\n const elm = e.target;\n\n if (elm === this.pnStartDate) {\n this.starDateValue = e.detail;\n }\n\n if (elm === this.pnEndDate) {\n this.endDateValue = e.detail;\n }\n }\n\n generateDates(e) {\n e.preventDefault();\n const allCheckboxes = this.pnDaysRow.querySelectorAll('pn-filter-checkbox');\n const selectedDays: string[] = [];\n this.generatedDatesArr = [];\n allCheckboxes.forEach(element => {\n const input = element.querySelector('input');\n if (input.value) {\n selectedDays.push(input.value);\n }\n });\n\n if (selectedDays.length && this.starDateValue && this.endDateValue) {\n this.daysArr.forEach(item => {\n if (selectedDays.some(x => x === item.value)) {\n item.selected = true;\n } else {\n item.selected = false;\n }\n });\n\n const startDate = new Date(Date.parse(this.starDateValue));\n const endDate = new Date(Date.parse(this.endDateValue));\n\n for (var d = startDate; d <= endDate; d.setDate(d.getDate() + 1)) {\n const i = this.daysArr.findIndex(item => parseInt(item.value) === d.getDay());\n\n if (this.daysArr[i]?.selected) {\n const year = d.getFullYear();\n const month = (d.getMonth() + 1).toString().padStart(2, '0');\n const day = d.getDate().toString().padStart(2, '0');\n this.generatedDatesArr.push(`${year}-${month}-${day}`);\n }\n }\n }\n }\n\n deleteGeneratedDateRow(index) {\n this.generatedDatesArr.splice(index, 1);\n this.generatedDatesArr = [...this.generatedDatesArr];\n }\n\n saveGeneratedDates() {\n if (this.generatedDatesArr?.length) {\n this.dateValue = String(this.generatedDatesArr);\n const dateCount = this.generatedDatesArr.length;\n const buttonTextElm = this.pnShowDateRangeFiledButton.querySelector('.pn-button-content');\n buttonTextElm.innerHTML = dateCount > 0 ? `${this.dateButtonText} (${dateCount})` : this.dateButtonText;\n this.showDateRangeRow();\n }\n }\n\n setSingleDateValue(e) {\n const elm = e.target;\n if (elm === this.pnSingleDatePicker) {\n this.dateValue = e.detail;\n }\n }\n\n emittRowValues() {\n this.rowValueChange.emit({\n id: this._predefinedValue.id,\n buttons: this.buttonsArray,\n firstDropdown: this.firstDropdownArr,\n secondDropdown: this.secondDropdownArr,\n input: this.inputFieldValue,\n dates: this.dateValue,\n dateRange: {\n days: this.daysArr,\n startDate: this.starDateValue,\n endDate: this.endDateValue,\n },\n });\n }\n\n deleteRow() {\n this.deleteRowEvent.emit(this._predefinedValue.id);\n }\n\n setActive(active: boolean) {\n return active ? 'connected-dropdown__button active' : 'connected-dropdown__button';\n }\n\n render() {\n return (\n <Host>\n <div ref={el => (this.pnConnectedDropdownSlotElement = el as HTMLElement)} class=\"connected-dropdown-slot-element\">\n <div class=\"connected-dropdown-parent-element connected-dropdown\">\n <div class=\"connected-dropdown__row__no-margin\">\n <label>{this.label}</label>\n </div>\n\n <div class=\"connected-dropdown__row button-row\">\n <div class=\"connected-dropdown__button-container option-buttons\">\n {this.buttonsArray?.map(item => (\n <button class={`${this.setActive(item.selected)}`} id={this.generateUniqueId()} onClick={this.handleOptionButtonClick.bind(this)}>\n {item.value}\n </button>\n ))}\n </div>\n\n <div class=\"connected-dropdown__button-container delete-button\">\n {this.index > 0 ? (\n <pn-button ref={el => (this.pnDeleteRowButton = el as HTMLElement)} small=\"true\" icon={minus} appearance=\"warning\" index={this.index}>\n Delete\n </pn-button>\n ) : null}\n </div>\n </div>\n\n <div class=\"connected-dropdown__row input-row\">\n <pn-select\n ref={el => (this.pnFirstDropdown = el as HTMLElement)}\n class=\"pn-row-select-dropdown dropDown1-dropdown\"\n placeholder={this.firstDropdownPlaceholder}\n label={this.firstDropdownLabel}\n empty-option=\"true\"\n >\n {this.firstDropdownArr?.map((item, i) => (\n <pn-option index={i} label={item.label} value={item.value} selected={item.selected} onClick={debounce(this.handleFirstDropdownChange.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n\n <pn-select\n ref={el => (this.pnSecondDropdown = el as HTMLElement)}\n class=\"pn-row-select-dropdown dropDown2-dropdown\"\n placeholder={this.secondDropdownPlaceholder}\n label={this.secondDropdownLabel}\n empty-option=\"true\"\n >\n {this.secondDropdownArr?.map((item, i) => (\n <pn-option index={i} label={item.label} value={item.value} selected={item.selected} onClick={debounce(this.handleSecondDropdownChange.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n\n <pn-marketweb-input\n ref={el => (this.pnInputField = el as HTMLElement)}\n type=\"number\"\n placeholder=\"0\"\n label={this.inputFildLabel}\n value={this.inputFieldValue}\n min=\"1\"\n ></pn-marketweb-input>\n\n {this.allowMultipleDates ? (\n <pn-button ref={el => (this.pnShowDateRangeFiledButton = el as HTMLElement)} class=\"connected-dropdown__toggle-date-button\" small=\"true\" appearance=\"light\">\n {this.dateButtonText}\n </pn-button>\n ) : (\n <div class=\"connected-dropdown__date-container\">\n <div class=\"connected-dropdown__label-container\">\n <label>{this.dateButtonText}</label>\n </div>\n <pn-date-picker\n ref={el => (this.pnSingleDatePicker = el as HTMLElement)}\n range=\"false\"\n disable-weekends={true}\n min-date={this.firstValidDateString}\n language={this.languageCode}\n placeholder={this.datePlaceholder}\n class=\"connected-dropdown__date-picker\"\n start={this.dateValue?.length ? this.dateValue : null}\n ></pn-date-picker>\n </div>\n )}\n </div>\n\n {this.allowMultipleDates ? (\n <div ref={el => (this.pnDateRangeContainer = el as HTMLElement)} class=\"connected-dropdown__date-container\" style={{ display: 'none' }}>\n {this.multiDateHelperText ? (\n <div class=\"connected-dropdown__row\">\n <p>{this.multiDateHelperText}</p>\n </div>\n ) : null}\n\n <div class=\"connected-dropdown__multi-date-row\">\n <div class=\"connected-dropdown__date-container\">\n <div class=\"connected-dropdown__label-container\">\n <label>{this.startDateLabel}</label>\n </div>\n\n <pn-date-picker\n ref={el => (this.pnStartDate = el as HTMLElement)}\n range=\"false\"\n disable-weekends={true}\n class=\"connected-dropdown__date-picker\"\n min-date={this.firstValidDateString}\n max-date={this.lastValidDateString}\n language={this.languageCode}\n placeholder={this.datePlaceholder}\n start={this.starDateValue?.length ? this.starDateValue : null}\n ></pn-date-picker>\n </div>\n\n <div class=\"connected-dropdown__date-container\">\n <div class=\"connected-dropdown__label-container\">\n <label>{this.endDateLabel}</label>\n </div>\n <pn-date-picker\n ref={el => (this.pnEndDate = el as HTMLElement)}\n range=\"false\"\n disable-weekends={true}\n class=\"connected-dropdown__date-picker\"\n min-date={this.firstValidDateString}\n max-date={this.lastValidDateString}\n language={this.languageCode}\n placeholder={this.datePlaceholder}\n start={this.endDateValue?.length ? this.endDateValue : null}\n ></pn-date-picker>\n </div>\n </div>\n <div ref={el => (this.pnDaysRow = el as HTMLElement)} class=\"connected-dropdown__multi-date-row\">\n {this.daysArr?.map((day: SelectItem) => (\n <div class=\"connected-dropdown__checkbox\">\n <pn-filter-checkbox checkboxid={'day-' + day.value} name={'__' + day.label} value={day.value} checked={day.selected}></pn-filter-checkbox>\n <label htmlFor={'day-' + day.value}>{day.label}</label>\n </div>\n ))}\n </div>\n\n <div class=\"connected-dropdown__row\">\n <pn-button ref={el => (this.pnGenerateDatesButton = el as HTMLElement)} small=\"true\">\n {this.generateDatesButtonText}\n </pn-button>\n </div>\n\n <div ref={el => (this.pnGeneratedDatesSlot = el as HTMLElement)} class=\"connected-dropdown__date-slot\">\n {this.generatedDatesArr?.map((date: string, i) => (\n <div class=\"connected-dropdown__row generated-date-row\">\n <p>{date}</p>\n <pn-button index={i} small=\"true\" icon={minus} appearance=\"warning\" id={'delete-date-' + i} onClick={this.deleteGeneratedDateRow.bind(this, i)}>\n {date}\n </pn-button>\n </div>\n ))}\n\n {!this.generatedDatesArr?.length ? <p>{this.noDatesText}</p> : null}\n </div>\n\n <div class=\"connected-dropdown__row\">\n <pn-button ref={el => (this.pnSaveGeneratedDatesButton = el as HTMLElement)} class=\"connected-dropdown__button-right\" small=\"true\">\n {this.saveDateButtonText}\n </pn-button>\n </div>\n </div>\n ) : null}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pn-multi-row-connected-dropdown-row.entry.js","mappings":";;;;;AAAA,MAAM,iCAAiC,GAAG,0xEAA0xE,CAAC;AACr0E,6CAAe,iCAAiC;;MCSnC,8BAA8B;;;;;4BAqBD,IAAI;4BACb,IAAI;qBACX,IAAI;kCACS,IAAI;mCACH,IAAI;mCACJ,IAAI;0BACb,IAAI;8BACA,IAAI;oCACE,IAAI;8BACV,IAAI;+BACH,IAAI;iCACF,CAAC;kCACC,IAAI;8BACT,IAAI;4BACN,IAAI;mCACG,IAAI;uCACA,IAAI;kCACT,IAAI;2BACX,IAAI;qBACV,IAAI;+BACM,IAAI;mCACA,IAAI;4BAEJ,IAAI;gCACA,IAAI;iCACH,EAAE;kCACP,IAAI;mCACH,IAAI;oCACH,EAAE;mCACH,EAAE;wCACG,GAAG;yCACF,GAAG;6BACf,EAAE;4BACH,EAAE;iCACK,EAAE;mCAC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EAAC,+BAA+B,IACnG,IAAI,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,IAAY,EAAE,CAAC,MAC3C,WAAK,KAAK,EAAC,4CAA4C,IACrD,aAAI,IAAI,CAAK,EACb,iBAAW,KAAK,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,KAAK,EAAE,UAAU,EAAC,SAAS,EAAC,EAAE,EAAE,cAAc,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAC3I,IAAI,CACK,CACR,CACP,CAAC,EAED,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,aAAI,IAAI,CAAC,WAAW,CAAK,GAAG,IAAI,CAC/D,EAEN,WAAK,KAAK,EAAC,yBAAyB,IAClC,iBAAW,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,0BAA0B,GAAG,EAAiB,CAAC,EAAE,KAAK,EAAC,kCAAkC,EAAC,KAAK,EAAC,MAAM,IAC/H,IAAI,CAAC,kBAAkB,CACd,CACR,CACF,IACJ,IAAI,CACJ,CACF,CACD,EACP;KACH;;;;;;;;;","names":["uuidv4"],"sources":["src/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.scss?tag=pn-multi-row-connected-dropdown-row","src/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.tsx"],"sourcesContent":["@import '../../../globals/main.scss';\n\npn-multi-row-connected-dropdown-row {\n gap: 1rem;\n\n .connected-dropdown-parent-element {\n margin-bottom: 0.5rem;\n }\n\n pn-select {\n width: 35%;\n }\n\n pn-marketweb-input {\n width: 10%;\n\n input {\n height: 4.3rem;\n }\n }\n\n .connected-dropdown {\n padding: 1rem;\n border-left: 0.2rem solid $blue700;\n\n &:hover {\n background-color: $gray25;\n }\n\n &__toggle-date-button {\n width: 20%;\n margin-bottom: 0.5rem;\n }\n\n &__row {\n display: flex;\n align-items: flex-end;\n gap: 1rem;\n margin-bottom: 1rem;\n justify-content: space-between;\n\n &__no-margin {\n margin: 0;\n }\n }\n\n &__multi-date-row {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-bottom: 1rem;\n }\n\n &__button-container {\n display: flex;\n align-items: flex-end;\n gap: 1rem;\n }\n\n &__button {\n background-color: #ffffff;\n border: solid;\n border-width: 0.1rem;\n border-radius: 0.8rem;\n border-color: $blue700;\n padding: 0.4rem 0.8rem;\n color: $blue700;\n font-size: 1.4rem;\n text-align: center;\n text-decoration: none;\n cursor: pointer;\n\n &:hover,\n &.active {\n background-color: $blue900;\n border-color: $blue900;\n color: #ffffff;\n }\n }\n\n &__buttom-container-right {\n display: flex;\n }\n\n &__button-right {\n margin-left: auto;\n }\n\n &__label-container {\n margin-bottom: 0.4rem;\n color: $gray700;\n font-size: 0.875em;\n justify-content: space-between;\n align-items: flex-end;\n }\n\n &__checkbox {\n display: flex;\n gap: 0.5rem;\n }\n\n &__date-slot {\n border: 0.1rem solid $blue700;\n margin-bottom: 1rem;\n padding: 1rem;\n }\n }\n\n .generated-date-row {\n border-bottom: 0.1rem solid $blue700;\n }\n}\n","import { Component, Prop, h, Element, Host, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport { Root, SelectItem, PredefinedValues } from './types';\nimport debounce from 'debounce';\nimport { v4 as uuidv4 } from 'uuid';\nimport { minus } from 'pn-design-assets/pn-assets/icons.js';\n\n@Component({\n tag: 'pn-multi-row-connected-dropdown-row',\n styleUrl: 'pn-multi-row-connected-dropdown-row.scss',\n})\nexport class PnMultiRowConnectedDropdownRow {\n @Element() hostElement: Element;\n private _dropdownData: Root[];\n private _predefinedValue: PredefinedValues;\n pnConnectedDropdown: HTMLElement = null;\n pnConnectedDropdownSlotElement: HTMLElement = null;\n pnAddFieldButton: HTMLElement = null;\n pnFirstDropdown: HTMLElement = null;\n pnSecondDropdown: HTMLElement = null;\n pnInputField: HTMLElement = null;\n pnSingleDatePicker: HTMLElement = null;\n pnStartDate: HTMLElement = null;\n pnEndDate: HTMLElement = null;\n pnShowDateRangeFiledButton: HTMLElement = null;\n pnDateRangeContainer: HTMLElement = null;\n pnGenerateDatesButton: HTMLElement = null;\n pnDaysRow: HTMLElement = null;\n pnGeneratedDatesSlot: HTMLElement = null;\n pnSaveGeneratedDatesButton: HTMLElement = null;\n pnDeleteRowButton: HTMLElement = null;\n\n @Prop() dropdownData: string | Root[] = null;\n @Prop() languageCode: string = null;\n @Prop() label: string = null;\n @Prop() firstDropdownLabel: string = null;\n @Prop() secondDropdownLabel: string = null;\n @Prop() dropdownPlaceholder: string = null;\n @Prop() addRowText: string = null;\n @Prop() inputFildLabel: string = null;\n @Prop() inputFildPlaceholder: string = null;\n @Prop() dateButtonText: string = null;\n @Prop() datePlaceholder: string = null;\n @Prop() dateDaysFromToday: number = 1;\n @Prop() allowMultipleDates: boolean = null;\n @Prop() startDateLabel: string = null;\n @Prop() endDateLabel: string = null;\n @Prop() multiDateHelperText: string = null;\n @Prop() generateDatesButtonText: string = null;\n @Prop() saveDateButtonText: string = null;\n @Prop() noDatesText: string = null;\n @Prop() index: number = null;\n @Prop() predefinedValue: string = null;\n @Prop() yearsToAddToEndDate: number = null;\n\n @State() buttonsArray: SelectItem[] = null;\n @State() firstDropdownArr: SelectItem[] = null;\n @State() secondDropdownArr: SelectItem[] = [];\n @State() firstDropdownClass: string = null;\n @State() secondDropdownClass: string = null;\n @State() firstValidDateString: string = '';\n @State() lastValidDateString: string = '';\n @State() firstDropdownPlaceholder: string = '-';\n @State() secondDropdownPlaceholder: string = '-';\n @State() starDateValue: string = '';\n @State() endDateValue: string = '';\n @State() generatedDatesArr: string[] = [];\n @State() selectedButtonValue: string = '';\n @State() inputFieldValue: string = '';\n @State() dateValue: string = '';\n @State() daysArr: SelectItem[] = null;\n\n @Event() rowValueChange: EventEmitter<PredefinedValues>;\n @Event() deleteRowEvent: EventEmitter<string>;\n\n componentWillLoad() {\n this.getPredefinedValues();\n this.setDropDownData();\n this.setFirstValidDate();\n }\n\n componentDidLoad() {\n this.setInitialValues();\n this.addEventHandlers();\n this.emittRowValues();\n }\n\n setDropDownData() {\n if (typeof this.dropdownData === 'string') {\n this._dropdownData = JSON.parse(this.dropdownData);\n } else {\n this._dropdownData = this.dropdownData;\n }\n }\n\n getPredefinedValues() {\n this._predefinedValue = JSON.parse(this.predefinedValue);\n }\n\n @Watch('predefinedValue')\n applyPredefinedValue() {\n this.getPredefinedValues();\n this.setInitialValues();\n }\n\n setInitialValues() {\n this.setButtonsValue();\n this.setFirstDropdownValues();\n this.setSecondDropdownValues();\n this.setInputField();\n this.setDateValue();\n this.setDateRangeDefaults();\n\n this.firstDropdownClass = this.firstDropdownLabel.replace(' ', '_') + '-dropdown';\n this.secondDropdownClass = this.secondDropdownLabel.replace(' ', '_') + '-dropdown';\n }\n\n setButtonsValue() {\n this.buttonsArray = [];\n\n if (this._predefinedValue.buttons?.length) {\n this.buttonsArray = this._predefinedValue.buttons;\n\n this.buttonsArray.forEach(item => {\n if (item.selected) {\n this.selectedButtonValue = item.value;\n }\n });\n } else {\n this._dropdownData.forEach(item => {\n const button: SelectItem = { selected: false, value: item.label, label: item.label };\n this.buttonsArray.push(button);\n });\n }\n }\n\n setFirstDropdownValues() {\n this.firstDropdownArr = [];\n\n if (this._predefinedValue.firstDropdown?.length) {\n this.firstDropdownArr = [...this._predefinedValue.firstDropdown];\n }\n }\n\n setSecondDropdownValues() {\n this.secondDropdownArr = [];\n\n if (this._predefinedValue.secondDropdown?.length) {\n this.secondDropdownArr = [...this._predefinedValue.secondDropdown];\n }\n }\n\n setInputField() {\n this.inputFieldValue = this._predefinedValue.input?.length ? this._predefinedValue.input : '';\n }\n\n setDateValue() {\n if (this.allowMultipleDates) {\n this.pnDateRangeContainer.style.display = this._predefinedValue.dates[\"start\"]?.length ? '' : 'none';\n this.generatedDatesArr = this._predefinedValue.dates[\"start\"]?.length ? this._predefinedValue.dates[\"start\"].split(',') : [];\n this.saveGeneratedDates();\n } else {\n this.dateValue = this._predefinedValue.dates[\"start\"]?.length ? this._predefinedValue.dates[\"start\"] : '';\n }\n }\n\n setDateRangeDefaults() {\n this.daysArr = this._predefinedValue.dateRange.days;\n this.starDateValue = this._predefinedValue.dateRange.startDate?.length ? this._predefinedValue.dateRange.startDate : '';\n this.endDateValue = this._predefinedValue.dateRange.endDate?.length ? this._predefinedValue.dateRange.endDate : '';\n }\n\n setFirstValidDate() {\n const yearsToadd = this.yearsToAddToEndDate ? this.yearsToAddToEndDate : 2;\n const date = new Date();\n date.setDate(date.getDate() + this.dateDaysFromToday ?? 0);\n\n const year = date.getFullYear();\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n const day = date.getDate().toString().padStart(2, '0');\n const endYear = year + yearsToadd;\n\n this.firstValidDateString = `${year.toString()}-${month}-${day}`;\n this.lastValidDateString = `${endYear.toString()}-${month}-${day}`;\n }\n\n addEventHandlers() {\n const emmitValues = debounce(this.emittRowValues.bind(this), 500);\n\n this.pnInputField.addEventListener('keyup', this.handleInput.bind(this));\n this.pnInputField.addEventListener('change', this.handleInput.bind(this));\n this.pnInputField.addEventListener('input', this.handleInput.bind(this));\n this.pnInputField.addEventListener('keyup', emmitValues);\n this.pnInputField.addEventListener('change', emmitValues);\n this.pnInputField.addEventListener('input', emmitValues);\n\n if (this.allowMultipleDates) {\n this.pnShowDateRangeFiledButton.addEventListener('click', this.showDateRangeRow.bind(this));\n this.pnStartDate.addEventListener('dateselection', this.HandleRangeDatePickers.bind(this));\n this.pnEndDate.addEventListener('dateselection', this.HandleRangeDatePickers.bind(this));\n this.pnGenerateDatesButton.addEventListener('click', this.generateDates.bind(this));\n this.pnSaveGeneratedDatesButton.addEventListener('click', this.saveGeneratedDates.bind(this));\n this.pnSaveGeneratedDatesButton.addEventListener('click', emmitValues);\n } else {\n this.pnSingleDatePicker.addEventListener('dateselection', this.setSingleDateValue.bind(this));\n this.pnSingleDatePicker.addEventListener('dateselection', emmitValues);\n }\n\n if (this.index > 0) {\n this.pnDeleteRowButton.addEventListener('click', this.deleteRow.bind(this));\n }\n }\n\n generateUniqueId() {\n return uuidv4();\n }\n\n updateSelectItemArr(arr: SelectItem[], val: string) {\n arr.forEach(item => {\n if (item.value === val) {\n item.selected = !item.selected;\n } else {\n item.selected = false;\n }\n });\n return arr;\n }\n\n handleOptionButtonClick(e) {\n e.preventDefault();\n const elmValue = e.target.innerHTML;\n\n this.buttonsArray = [...this.updateSelectItemArr(this.buttonsArray, elmValue)];\n this.selectedButtonValue = this.buttonsArray.filter(e => e.selected === true).length > 0 ? elmValue : '';\n\n if (this.selectedButtonValue?.length) {\n this.firstDropdownArr = [];\n const selectionChildren = this._dropdownData.find(arr => arr.label === elmValue);\n selectionChildren.values.forEach(item => {\n this.firstDropdownArr.push({ selected: false, value: item.label, label: item.label });\n });\n\n this.firstDropdownArr = [...this.firstDropdownArr];\n this.firstDropdownPlaceholder = this.dropdownPlaceholder;\n const firstDropdownText = this.pnFirstDropdown.querySelector('.pn-select-content span');\n firstDropdownText.innerHTML = this.dropdownPlaceholder;\n\n this.secondDropdownArr = [];\n this.secondDropdownPlaceholder = '-';\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = this.secondDropdownPlaceholder;\n } else {\n this.firstDropdownArr = [];\n this.firstDropdownPlaceholder = '-';\n const firstDropdownText = this.pnFirstDropdown.querySelector('.pn-select-content span');\n firstDropdownText.innerHTML = this.firstDropdownPlaceholder;\n\n this.secondDropdownArr = [];\n this.secondDropdownPlaceholder = '-';\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = this.secondDropdownPlaceholder;\n }\n\n this.emittRowValues();\n }\n\n handleFirstDropdownChange() {\n const selected = this.pnFirstDropdown.querySelector(\"[aria-selected=true]\");\n const selectedValue = selected?.textContent;\n this.firstDropdownArr = [...this.updateSelectItemArr(this.firstDropdownArr, selectedValue)];\n const firstDropdownText = this.pnFirstDropdown.querySelector('.pn-select-content span');\n firstDropdownText.innerHTML = selectedValue;\n\n this.secondDropdownArr = [];\n const selectedButton = this.buttonsArray.findIndex(item => item.selected === true);\n const firstChildren = this._dropdownData.find(arr => arr.label === this.buttonsArray[selectedButton].value);\n const secondChildren = firstChildren.values.find(arr => arr.label === selectedValue);\n secondChildren.values.forEach(item => {\n this.secondDropdownArr.push({ selected: false, value: item.label, label: item.label });\n });\n\n this.secondDropdownPlaceholder = this.dropdownPlaceholder;\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = this.secondDropdownPlaceholder;\n this.emittRowValues();\n }\n\n handleSecondDropdownChange() {\n const selected = this.pnSecondDropdown.querySelector(\"[aria-selected=true]\");\n const selectedValue = selected?.textContent;\n this.secondDropdownArr = [...this.updateSelectItemArr(this.secondDropdownArr, selectedValue)];\n const secondDropdownText = this.pnSecondDropdown.querySelector('.pn-select-content span');\n secondDropdownText.innerHTML = selectedValue;\n this.emittRowValues();\n }\n\n handleInput(e) {\n const elm = e.target;\n if (elm.value !== '0') {\n this.inputFieldValue = elm.value;\n }\n }\n\n showDateRangeRow() {\n if (this.pnDateRangeContainer.style.display === 'none') {\n this.pnDateRangeContainer.style.display = '';\n } else {\n this.pnDateRangeContainer.style.display = 'none';\n }\n }\n\n HandleRangeDatePickers(e) {\n const elm = e.target;\n\n if (elm === this.pnStartDate) {\n this.starDateValue = e.detail;\n }\n\n if (elm === this.pnEndDate) {\n this.endDateValue = e.detail;\n }\n }\n\n generateDates(e) {\n e.preventDefault();\n const allCheckboxes = this.pnDaysRow.querySelectorAll('pn-filter-checkbox');\n const selectedDays: string[] = [];\n this.generatedDatesArr = [];\n allCheckboxes.forEach(element => {\n const input = element.querySelector('input');\n if (input.value) {\n selectedDays.push(input.value);\n }\n });\n\n if (selectedDays.length && this.starDateValue && this.endDateValue) {\n this.daysArr.forEach(item => {\n if (selectedDays.some(x => x === item.value)) {\n item.selected = true;\n } else {\n item.selected = false;\n }\n });\n\n const startDate = new Date(Date.parse(this.starDateValue));\n const endDate = new Date(Date.parse(this.endDateValue));\n\n for (var d = startDate; d <= endDate; d.setDate(d.getDate() + 1)) {\n const i = this.daysArr.findIndex(item => parseInt(item.value) === d.getDay());\n\n if (this.daysArr[i]?.selected) {\n const year = d.getFullYear();\n const month = (d.getMonth() + 1).toString().padStart(2, '0');\n const day = d.getDate().toString().padStart(2, '0');\n this.generatedDatesArr.push(`${year}-${month}-${day}`);\n }\n }\n }\n }\n\n deleteGeneratedDateRow(index) {\n this.generatedDatesArr.splice(index, 1);\n this.generatedDatesArr = [...this.generatedDatesArr];\n }\n\n saveGeneratedDates() {\n if (this.generatedDatesArr?.length) {\n this.dateValue = String(this.generatedDatesArr);\n const dateCount = this.generatedDatesArr.length;\n const buttonTextElm = this.pnShowDateRangeFiledButton.querySelector('.pn-button-content');\n buttonTextElm.innerHTML = dateCount > 0 ? `${this.dateButtonText} (${dateCount})` : this.dateButtonText;\n this.showDateRangeRow();\n }\n }\n\n setSingleDateValue(e) {\n const elm = e.target;\n if (elm === this.pnSingleDatePicker) {\n this.dateValue = e.detail;\n }\n }\n\n emittRowValues() {\n this.rowValueChange.emit({\n id: this._predefinedValue.id,\n buttons: this.buttonsArray,\n firstDropdown: this.firstDropdownArr,\n secondDropdown: this.secondDropdownArr,\n input: this.inputFieldValue,\n dates: this.dateValue,\n dateRange: {\n days: this.daysArr,\n startDate: this.starDateValue,\n endDate: this.endDateValue,\n },\n });\n }\n\n deleteRow() {\n this.deleteRowEvent.emit(this._predefinedValue.id);\n }\n\n setActive(active: boolean) {\n return active ? 'connected-dropdown__button active' : 'connected-dropdown__button';\n }\n\n render() {\n return (\n <Host>\n <div ref={el => (this.pnConnectedDropdownSlotElement = el as HTMLElement)} class=\"connected-dropdown-slot-element\">\n <div class=\"connected-dropdown-parent-element connected-dropdown\">\n <div class=\"connected-dropdown__row__no-margin\">\n <label>{this.label}</label>\n </div>\n\n <div class=\"connected-dropdown__row button-row\">\n <div class=\"connected-dropdown__button-container option-buttons\">\n {this.buttonsArray?.map(item => (\n <button class={`${this.setActive(item.selected)}`} id={this.generateUniqueId()} onClick={this.handleOptionButtonClick.bind(this)}>\n {item.value}\n </button>\n ))}\n </div>\n\n <div class=\"connected-dropdown__button-container delete-button\">\n {this.index > 0 ? (\n <pn-button ref={el => (this.pnDeleteRowButton = el as HTMLElement)} small=\"true\" icon={minus} appearance=\"warning\" index={this.index}>\n Delete\n </pn-button>\n ) : null}\n </div>\n </div>\n\n <div class=\"connected-dropdown__row input-row\">\n <pn-select\n ref={el => (this.pnFirstDropdown = el as HTMLElement)}\n class=\"pn-row-select-dropdown dropDown1-dropdown\"\n placeholder={this.firstDropdownPlaceholder}\n label={this.firstDropdownLabel}\n empty-option=\"true\"\n language={this.languageCode}\n >\n {this.firstDropdownArr?.map((item, i) => (\n <pn-option index={i} label={item.label} value={item.value} selected={item.selected} onClick={debounce(this.handleFirstDropdownChange.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n\n <pn-select\n ref={el => (this.pnSecondDropdown = el as HTMLElement)}\n class=\"pn-row-select-dropdown dropDown2-dropdown\"\n placeholder={this.secondDropdownPlaceholder}\n label={this.secondDropdownLabel}\n empty-option=\"true\"\n language={this.languageCode}\n >\n {this.secondDropdownArr?.map((item, i) => (\n <pn-option index={i} label={item.label} value={item.value} selected={item.selected} onClick={debounce(this.handleSecondDropdownChange.bind(this), 500)}></pn-option>\n ))}\n </pn-select>\n\n <pn-marketweb-input\n ref={el => (this.pnInputField = el as HTMLElement)}\n type=\"number\"\n placeholder=\"0\"\n label={this.inputFildLabel}\n value={this.inputFieldValue}\n min=\"1\"\n ></pn-marketweb-input>\n\n {this.allowMultipleDates ? (\n <pn-button ref={el => (this.pnShowDateRangeFiledButton = el as HTMLElement)} class=\"connected-dropdown__toggle-date-button\" small=\"true\" appearance=\"light\">\n {this.dateButtonText}\n </pn-button>\n ) : (\n <div class=\"connected-dropdown__date-container\">\n <div class=\"connected-dropdown__label-container\">\n <label>{this.dateButtonText}</label>\n </div>\n <pn-date-picker\n ref={el => (this.pnSingleDatePicker = el as HTMLElement)}\n range=\"false\"\n disable-weekends={true}\n min-date={this.firstValidDateString}\n language={this.languageCode}\n placeholder={this.datePlaceholder}\n class=\"connected-dropdown__date-picker\"\n start={this.dateValue?.length ? this.dateValue : null}\n ></pn-date-picker>\n </div>\n )}\n </div>\n\n {this.allowMultipleDates ? (\n <div ref={el => (this.pnDateRangeContainer = el as HTMLElement)} class=\"connected-dropdown__date-container\" style={{ display: 'none' }}>\n {this.multiDateHelperText ? (\n <div class=\"connected-dropdown__row\">\n <p>{this.multiDateHelperText}</p>\n </div>\n ) : null}\n\n <div class=\"connected-dropdown__multi-date-row\">\n <div class=\"connected-dropdown__date-container\">\n <div class=\"connected-dropdown__label-container\">\n <label>{this.startDateLabel}</label>\n </div>\n\n <pn-date-picker\n ref={el => (this.pnStartDate = el as HTMLElement)}\n range=\"false\"\n disable-weekends={true}\n class=\"connected-dropdown__date-picker\"\n min-date={this.firstValidDateString}\n max-date={this.lastValidDateString}\n language={this.languageCode}\n placeholder={this.datePlaceholder}\n start={this.starDateValue?.length ? this.starDateValue : null}\n ></pn-date-picker>\n </div>\n\n <div class=\"connected-dropdown__date-container\">\n <div class=\"connected-dropdown__label-container\">\n <label>{this.endDateLabel}</label>\n </div>\n <pn-date-picker\n ref={el => (this.pnEndDate = el as HTMLElement)}\n range=\"false\"\n disable-weekends={true}\n class=\"connected-dropdown__date-picker\"\n min-date={this.firstValidDateString}\n max-date={this.lastValidDateString}\n language={this.languageCode}\n placeholder={this.datePlaceholder}\n start={this.endDateValue?.length ? this.endDateValue : null}\n ></pn-date-picker>\n </div>\n </div>\n <div ref={el => (this.pnDaysRow = el as HTMLElement)} class=\"connected-dropdown__multi-date-row\">\n {this.daysArr?.map((day: SelectItem) => (\n <div class=\"connected-dropdown__checkbox\">\n <pn-filter-checkbox checkboxid={'day-' + day.value} name={'__' + day.label} value={day.value} checked={day.selected}></pn-filter-checkbox>\n <label htmlFor={'day-' + day.value}>{day.label}</label>\n </div>\n ))}\n </div>\n\n <div class=\"connected-dropdown__row\">\n <pn-button ref={el => (this.pnGenerateDatesButton = el as HTMLElement)} small=\"true\">\n {this.generateDatesButtonText}\n </pn-button>\n </div>\n\n <div ref={el => (this.pnGeneratedDatesSlot = el as HTMLElement)} class=\"connected-dropdown__date-slot\">\n {this.generatedDatesArr?.map((date: string, i) => (\n <div class=\"connected-dropdown__row generated-date-row\">\n <p>{date}</p>\n <pn-button index={i} small=\"true\" icon={minus} appearance=\"warning\" id={'delete-date-' + i} onClick={this.deleteGeneratedDateRow.bind(this, i)}>\n {date}\n </pn-button>\n </div>\n ))}\n\n {!this.generatedDatesArr?.length ? <p>{this.noDatesText}</p> : null}\n </div>\n\n <div class=\"connected-dropdown__row\">\n <pn-button ref={el => (this.pnSaveGeneratedDatesButton = el as HTMLElement)} class=\"connected-dropdown__button-right\" small=\"true\">\n {this.saveDateButtonText}\n </pn-button>\n </div>\n </div>\n ) : null}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}