@ptcwebops/ptcw-design 6.3.1 → 6.3.2

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 (385) hide show
  1. package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +3095 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-card-bottom.cjs.entry.js +67 -0
  4. package/dist/cjs/ptc-card_2.cjs.entry.js +4 -1
  5. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +3 -1
  7. package/dist/cjs/ptc-nav-link.cjs.entry.js +48 -0
  8. package/dist/cjs/ptc-nav-slider.cjs.entry.js +106 -0
  9. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +51 -0
  10. package/dist/cjs/ptc-sticky-section.cjs.entry.js +70 -0
  11. package/dist/cjs/ptc-subnav.cjs.entry.js +37 -0
  12. package/dist/cjs/ptcw-design.cjs.js +1 -1
  13. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.css +5 -0
  14. package/dist/collection/components/ptc-modal/ptc-modal.js +116 -10
  15. package/dist/collection/components/ptc-multi-select/ptc-multi-select.js +3 -1
  16. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +265 -0
  17. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +3 -0
  18. package/dist/custom-elements/index.js +102 -14
  19. package/dist/esm/academic-form-test.entry.js +1 -1
  20. package/dist/esm/author-listing-example.entry.js +1 -1
  21. package/dist/esm/blog-detail-content_2.entry.js +2 -2
  22. package/dist/esm/blog-detail-layout.entry.js +2 -2
  23. package/dist/esm/blogs-search-section.entry.js +2 -2
  24. package/dist/esm/bundle-example.entry.js +1 -1
  25. package/dist/esm/bundle-jumbotron-example.entry.js +1 -1
  26. package/dist/esm/dropdown-item.entry.js +1 -1
  27. package/dist/esm/dynamic-box-bundle.entry.js +1 -1
  28. package/dist/esm/embedded-form.entry.js +1 -1
  29. package/dist/esm/event-jumbotron-example_15.entry.js +3077 -0
  30. package/dist/esm/event-podcast-slider-example.entry.js +1 -1
  31. package/dist/esm/featured-events-slider-example.entry.js +1 -1
  32. package/dist/esm/featured-list.entry.js +1 -1
  33. package/dist/esm/fl-tab-content_3.entry.js +1 -1
  34. package/dist/esm/footer-form.entry.js +1 -1
  35. package/dist/esm/homepage-clickable-tab.entry.js +1 -1
  36. package/dist/esm/homepage-jumbotron.entry.js +2 -2
  37. package/dist/esm/homepage-toggled-content.entry.js +2 -2
  38. package/dist/esm/{index-0bf594c4.js → index-c83db688.js} +1 -1
  39. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  40. package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
  41. package/dist/esm/jumbotron-sub-mune.entry.js +1 -1
  42. package/dist/esm/loader.js +3 -3
  43. package/dist/esm/max-width-container.entry.js +1 -1
  44. package/dist/esm/most-popular-news.entry.js +2 -2
  45. package/dist/esm/my-component.entry.js +2 -2
  46. package/dist/esm/news-search-result.entry.js +1 -1
  47. package/dist/esm/ptc-accordion-item.entry.js +2 -2
  48. package/dist/esm/ptc-accordion.entry.js +1 -1
  49. package/dist/esm/ptc-announcement.entry.js +1 -1
  50. package/dist/esm/ptc-back-to-top.entry.js +1 -1
  51. package/dist/esm/ptc-background-video.entry.js +2 -2
  52. package/dist/esm/ptc-badge.entry.js +1 -1
  53. package/dist/esm/ptc-bio-card.entry.js +1 -1
  54. package/dist/esm/ptc-brightcov-video.entry.js +1 -1
  55. package/dist/esm/ptc-card-bottom.entry.js +63 -0
  56. package/dist/esm/ptc-card_2.entry.js +5 -2
  57. package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
  58. package/dist/esm/ptc-checkbox-group.entry.js +1 -1
  59. package/dist/esm/ptc-checkbox.entry.js +1 -1
  60. package/dist/esm/ptc-collapse-list.entry.js +2 -2
  61. package/dist/esm/ptc-container.entry.js +1 -1
  62. package/dist/esm/ptc-countdown.entry.js +1 -1
  63. package/dist/esm/ptc-data-lookup.entry.js +1 -1
  64. package/dist/esm/ptc-date.entry.js +1 -1
  65. package/dist/esm/ptc-dropdown.entry.js +1 -1
  66. package/dist/esm/ptc-dynamic-card.entry.js +2 -2
  67. package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
  68. package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
  69. package/dist/esm/ptc-featured-list.entry.js +1 -1
  70. package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
  71. package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
  72. package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
  73. package/dist/esm/ptc-footer.entry.js +1 -1
  74. package/dist/esm/ptc-form-checkbox_2.entry.js +2 -2
  75. package/dist/esm/ptc-form-radio-button.entry.js +1 -1
  76. package/dist/esm/ptc-form-radio-group.entry.js +1 -1
  77. package/dist/esm/ptc-form.entry.js +1 -1
  78. package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
  79. package/dist/esm/ptc-hero.entry.js +1 -1
  80. package/dist/esm/ptc-homepage-image-feature.entry.js +2 -2
  81. package/dist/esm/ptc-homepage-video-background.entry.js +2 -2
  82. package/dist/esm/ptc-icon-card.entry.js +2 -2
  83. package/dist/esm/ptc-icon-component.entry.js +1 -1
  84. package/dist/esm/ptc-icon-list.entry.js +1 -1
  85. package/dist/esm/ptc-icon-minimize.entry.js +1 -1
  86. package/dist/esm/ptc-image-download-strip.entry.js +1 -1
  87. package/dist/esm/ptc-info-tile.entry.js +1 -1
  88. package/dist/esm/ptc-inline-cta.entry.js +1 -1
  89. package/dist/esm/ptc-jumbotron.entry.js +1 -1
  90. package/dist/esm/ptc-list.entry.js +1 -1
  91. package/dist/esm/ptc-media-card.entry.js +2 -2
  92. package/dist/esm/ptc-minimized-nav.entry.js +1 -1
  93. package/dist/esm/ptc-mobile-select.entry.js +1 -1
  94. package/dist/esm/ptc-modal-quiz.entry.js +1 -1
  95. package/dist/esm/ptc-multi-select_2.entry.js +5 -3
  96. package/dist/esm/ptc-nav-card.entry.js +1 -1
  97. package/dist/esm/ptc-nav-link.entry.js +44 -0
  98. package/dist/esm/ptc-nav-pills.entry.js +1 -1
  99. package/dist/esm/ptc-nav-skip-to-content.entry.js +1 -1
  100. package/dist/esm/ptc-nav-slider.entry.js +102 -0
  101. package/dist/esm/ptc-nav-submenu.entry.js +47 -0
  102. package/dist/esm/ptc-nav-tile.entry.js +1 -1
  103. package/dist/esm/ptc-news.entry.js +1 -1
  104. package/dist/esm/ptc-office-location-card.entry.js +1 -1
  105. package/dist/esm/ptc-office-locations.entry.js +1 -1
  106. package/dist/esm/ptc-overlay.entry.js +1 -1
  107. package/dist/esm/ptc-picture.entry.js +1 -1
  108. package/dist/esm/ptc-podcast-card.entry.js +1 -1
  109. package/dist/esm/ptc-preferance-center-form.entry.js +1 -1
  110. package/dist/esm/ptc-previous-url.entry.js +1 -1
  111. package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
  112. package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
  113. package/dist/esm/ptc-pricing-block.entry.js +1 -1
  114. package/dist/esm/ptc-pricing-packaging-table.entry.js +2 -2
  115. package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
  116. package/dist/esm/ptc-product-card.entry.js +1 -1
  117. package/dist/esm/ptc-product-category.entry.js +1 -1
  118. package/dist/esm/ptc-product-dropdown.entry.js +1 -1
  119. package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
  120. package/dist/esm/ptc-product-list.entry.js +1 -1
  121. package/dist/esm/ptc-product-sidebar.entry.js +1 -1
  122. package/dist/esm/ptc-progress-bar.entry.js +1 -1
  123. package/dist/esm/ptc-quantity-counter.entry.js +1 -1
  124. package/dist/esm/ptc-quote.entry.js +1 -1
  125. package/dist/esm/ptc-readmore-char.entry.js +1 -1
  126. package/dist/esm/ptc-readmore-new.entry.js +1 -1
  127. package/dist/esm/ptc-readmore-v3.entry.js +1 -1
  128. package/dist/esm/ptc-readmore.entry.js +1 -1
  129. package/dist/esm/ptc-related-card-rail.entry.js +1 -1
  130. package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
  131. package/dist/esm/ptc-search-field.entry.js +1 -1
  132. package/dist/esm/ptc-seo-title.entry.js +1 -1
  133. package/dist/esm/ptc-shopping-cart.entry.js +1 -1
  134. package/dist/esm/ptc-showcase-card.entry.js +1 -1
  135. package/dist/esm/ptc-skeleton.entry.js +1 -1
  136. package/dist/esm/ptc-slit-card.entry.js +1 -1
  137. package/dist/esm/ptc-social-icons-footer.entry.js +2 -2
  138. package/dist/esm/ptc-social-icons.entry.js +1 -1
  139. package/dist/esm/ptc-span.entry.js +1 -1
  140. package/dist/esm/ptc-square-card.entry.js +1 -1
  141. package/dist/esm/ptc-sticky-icons.entry.js +1 -1
  142. package/dist/esm/ptc-sticky-section.entry.js +66 -0
  143. package/dist/esm/ptc-sticky-title.entry.js +1 -1
  144. package/dist/esm/ptc-subnav-card.entry.js +1 -1
  145. package/dist/esm/ptc-subnav.entry.js +33 -0
  146. package/dist/esm/ptc-svg-btn.entry.js +1 -1
  147. package/dist/esm/ptc-tab-list.entry.js +1 -1
  148. package/dist/esm/ptc-tab.entry.js +1 -1
  149. package/dist/esm/ptc-tabs.entry.js +1 -1
  150. package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
  151. package/dist/esm/ptc-theater-video-modal.entry.js +1 -1
  152. package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
  153. package/dist/esm/ptc-tooltip-v3.entry.js +1 -1
  154. package/dist/esm/ptc-tooltip.entry.js +1 -1
  155. package/dist/esm/ptc-two-column-media.entry.js +1 -1
  156. package/dist/esm/ptc-value-led-card.entry.js +1 -1
  157. package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
  158. package/dist/esm/ptc-value-led-content.entry.js +1 -1
  159. package/dist/esm/ptc-value-led-intro.entry.js +1 -1
  160. package/dist/esm/ptc-value-led-layout.entry.js +1 -1
  161. package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
  162. package/dist/esm/ptc-value-prop-card.entry.js +1 -1
  163. package/dist/esm/ptc-video-embed.entry.js +1 -1
  164. package/dist/esm/ptc-white-paper.entry.js +1 -1
  165. package/dist/esm/ptcw-design.js +3 -3
  166. package/dist/esm/sequential-bundle-example.entry.js +1 -1
  167. package/dist/esm/sequential-bundle.entry.js +1 -1
  168. package/dist/esm/tab-content.entry.js +1 -1
  169. package/dist/esm/tab-header.entry.js +1 -1
  170. package/dist/esm/{utils-63eab4bd.js → utils-ff65c75b.js} +1 -1
  171. package/dist/ptcw-design/{p-ad4f4f33.entry.js → p-00e21489.entry.js} +1 -1
  172. package/dist/ptcw-design/{p-02f0460b.entry.js → p-03a917f8.entry.js} +1 -1
  173. package/dist/ptcw-design/{p-74a845fd.entry.js → p-04aae3f5.entry.js} +1 -1
  174. package/dist/ptcw-design/{p-c9a73ad1.entry.js → p-04f0b1ba.entry.js} +1 -1
  175. package/dist/ptcw-design/{p-135191ce.entry.js → p-04ff81ef.entry.js} +1 -1
  176. package/dist/ptcw-design/{p-7b75091d.entry.js → p-081e969d.entry.js} +1 -1
  177. package/dist/ptcw-design/p-0a214a22.entry.js +1 -0
  178. package/dist/ptcw-design/{p-e8b51e7d.entry.js → p-0a9ee6c2.entry.js} +1 -1
  179. package/dist/ptcw-design/{p-b3b63f67.entry.js → p-0e5932f0.entry.js} +1 -1
  180. package/dist/ptcw-design/{p-f31e17d9.entry.js → p-15758793.entry.js} +1 -1
  181. package/dist/ptcw-design/p-15e36f30.entry.js +1 -0
  182. package/dist/ptcw-design/{p-2ab0f25c.entry.js → p-18ac526f.entry.js} +1 -1
  183. package/dist/ptcw-design/{p-d113403b.entry.js → p-1a6759a4.entry.js} +1 -1
  184. package/dist/ptcw-design/{p-685f2375.entry.js → p-1b257420.entry.js} +1 -1
  185. package/dist/ptcw-design/{p-520542e2.entry.js → p-1ca8a5bf.entry.js} +1 -1
  186. package/dist/ptcw-design/{p-2fd01953.entry.js → p-21fa5abe.entry.js} +1 -1
  187. package/dist/ptcw-design/{p-a22d7ae8.entry.js → p-257a68df.entry.js} +1 -1
  188. package/dist/ptcw-design/{p-d9ec506c.entry.js → p-260ecfef.entry.js} +1 -1
  189. package/dist/ptcw-design/{p-eef5d58b.entry.js → p-27a4ee73.entry.js} +1 -1
  190. package/dist/ptcw-design/{p-14c77b5e.entry.js → p-27e47c25.entry.js} +1 -1
  191. package/dist/ptcw-design/{p-78252282.entry.js → p-282b7d4e.entry.js} +1 -1
  192. package/dist/ptcw-design/{p-f093f6f8.entry.js → p-2b32297b.entry.js} +1 -1
  193. package/dist/ptcw-design/{p-54891548.entry.js → p-2c2f895a.entry.js} +1 -1
  194. package/dist/ptcw-design/p-2c6fc745.entry.js +1 -0
  195. package/dist/ptcw-design/p-36007a57.entry.js +1 -0
  196. package/dist/ptcw-design/{p-794eebdb.entry.js → p-3738a01f.entry.js} +1 -1
  197. package/dist/ptcw-design/{p-a2710bbf.entry.js → p-3872fce7.entry.js} +1 -1
  198. package/dist/ptcw-design/{p-c05e326f.entry.js → p-38a56ed6.entry.js} +1 -1
  199. package/dist/ptcw-design/{p-6d0f7580.entry.js → p-38b782e8.entry.js} +1 -1
  200. package/dist/ptcw-design/{p-7edef9ed.entry.js → p-3c3a7b54.entry.js} +1 -1
  201. package/dist/ptcw-design/p-3ddb6c50.entry.js +1 -0
  202. package/dist/ptcw-design/{p-9dde477c.entry.js → p-3ee2a531.entry.js} +1 -1
  203. package/dist/ptcw-design/{p-1d48bad3.entry.js → p-464d8e22.entry.js} +1 -1
  204. package/dist/ptcw-design/{p-1e9f25fc.entry.js → p-46f67bec.entry.js} +1 -1
  205. package/dist/ptcw-design/{p-88379d69.entry.js → p-48815ee0.entry.js} +1 -1
  206. package/dist/ptcw-design/{p-7e19be10.entry.js → p-4b192f5e.entry.js} +1 -1
  207. package/dist/ptcw-design/p-4cee12b8.entry.js +1 -0
  208. package/dist/ptcw-design/{p-6b7d2579.entry.js → p-4d8f6f46.entry.js} +1 -1
  209. package/dist/ptcw-design/{p-f77c7c78.entry.js → p-4f93c631.entry.js} +1 -1
  210. package/dist/ptcw-design/{p-53d15f85.entry.js → p-51a45b13.entry.js} +1 -1
  211. package/dist/ptcw-design/{p-3c72e82d.entry.js → p-58e91cb8.entry.js} +1 -1
  212. package/dist/ptcw-design/{p-69ef15d4.entry.js → p-593b8eff.entry.js} +1 -1
  213. package/dist/ptcw-design/{p-cab0274c.entry.js → p-5946d7c9.entry.js} +1 -1
  214. package/dist/ptcw-design/{p-807ad5c4.entry.js → p-5980d65d.entry.js} +1 -1
  215. package/dist/ptcw-design/{p-9d32f1bc.entry.js → p-5db7f70b.entry.js} +1 -1
  216. package/dist/ptcw-design/{p-5fb671ee.entry.js → p-61d28206.entry.js} +1 -1
  217. package/dist/ptcw-design/{p-1ec32cbc.entry.js → p-6b32020a.entry.js} +1 -1
  218. package/dist/ptcw-design/{p-cbc6661e.entry.js → p-6d3326da.entry.js} +1 -1
  219. package/dist/ptcw-design/{p-379fcc72.entry.js → p-6e8ed2ee.entry.js} +1 -1
  220. package/dist/ptcw-design/{p-0b182300.entry.js → p-71360e29.entry.js} +1 -1
  221. package/dist/ptcw-design/{p-d21cf742.entry.js → p-72825cf6.entry.js} +1 -1
  222. package/dist/ptcw-design/{p-4ee29b78.entry.js → p-73a853fc.entry.js} +1 -1
  223. package/dist/ptcw-design/p-75988f52.entry.js +1 -0
  224. package/dist/ptcw-design/{p-3e13b735.entry.js → p-76d98c5a.entry.js} +1 -1
  225. package/dist/ptcw-design/p-77cad16c.entry.js +1 -0
  226. package/dist/ptcw-design/{p-ecfc8211.entry.js → p-7a1db471.entry.js} +1 -1
  227. package/dist/ptcw-design/{p-6a561285.entry.js → p-7a9611b4.entry.js} +1 -1
  228. package/dist/ptcw-design/{p-7fada7ae.entry.js → p-7cc9255e.entry.js} +1 -1
  229. package/dist/ptcw-design/{p-183ba1ca.entry.js → p-7d29a418.entry.js} +1 -1
  230. package/dist/ptcw-design/{p-779c3f21.entry.js → p-8038bf31.entry.js} +1 -1
  231. package/dist/ptcw-design/{p-610b5620.entry.js → p-808ec62a.entry.js} +1 -1
  232. package/dist/ptcw-design/{p-a974f98f.entry.js → p-8191928d.entry.js} +1 -1
  233. package/dist/ptcw-design/{p-1948b914.entry.js → p-8521fdd4.entry.js} +1 -1
  234. package/dist/ptcw-design/{p-3c52fabe.entry.js → p-8533988f.entry.js} +1 -1
  235. package/dist/ptcw-design/{p-1ab6201b.entry.js → p-85f32bf5.entry.js} +1 -1
  236. package/dist/ptcw-design/{p-3b6c2a79.entry.js → p-867a808f.entry.js} +1 -1
  237. package/dist/ptcw-design/{p-77b1221e.js → p-8872161f.js} +1 -1
  238. package/dist/ptcw-design/{p-e75dff95.entry.js → p-89177041.entry.js} +1 -1
  239. package/dist/ptcw-design/{p-bf2f9183.entry.js → p-89ba3dfd.entry.js} +1 -1
  240. package/dist/ptcw-design/{p-212d0145.entry.js → p-8c49d736.entry.js} +1 -1
  241. package/dist/ptcw-design/p-8c692bd6.entry.js +1 -0
  242. package/dist/ptcw-design/p-8cd1d668.entry.js +11 -0
  243. package/dist/ptcw-design/{p-73e5243f.entry.js → p-8e8c7a3a.entry.js} +1 -1
  244. package/dist/ptcw-design/{p-eafe37b0.entry.js → p-918fb77d.entry.js} +1 -1
  245. package/dist/ptcw-design/{p-80c56c81.entry.js → p-931650bb.entry.js} +1 -1
  246. package/dist/ptcw-design/{p-e77d2204.entry.js → p-95187918.entry.js} +1 -1
  247. package/dist/ptcw-design/{p-c5886b7b.entry.js → p-97b9f41b.entry.js} +1 -1
  248. package/dist/ptcw-design/p-97eb1025.entry.js +1 -0
  249. package/dist/ptcw-design/{p-139ca5d2.entry.js → p-99b45d23.entry.js} +1 -1
  250. package/dist/ptcw-design/{p-1acd3617.entry.js → p-99daf693.entry.js} +1 -1
  251. package/dist/ptcw-design/{p-761f71c4.entry.js → p-99ee8a0e.entry.js} +1 -1
  252. package/dist/ptcw-design/{p-8eb36507.entry.js → p-9a335b5b.entry.js} +1 -1
  253. package/dist/ptcw-design/{p-0abb6e77.entry.js → p-9ac99185.entry.js} +1 -1
  254. package/dist/ptcw-design/{p-298d02ab.entry.js → p-9b0df204.entry.js} +1 -1
  255. package/dist/ptcw-design/{p-290012e3.entry.js → p-9b26ea67.entry.js} +1 -1
  256. package/dist/ptcw-design/p-9d3a7f36.entry.js +1 -0
  257. package/dist/ptcw-design/{p-6d628113.entry.js → p-9de963f8.entry.js} +1 -1
  258. package/dist/ptcw-design/p-9df7489b.entry.js +1 -0
  259. package/dist/ptcw-design/{p-0a558a22.entry.js → p-9e2fd13c.entry.js} +1 -1
  260. package/dist/ptcw-design/{p-483e20af.entry.js → p-9f194554.entry.js} +1 -1
  261. package/dist/ptcw-design/p-9fe0c27d.entry.js +1 -0
  262. package/dist/ptcw-design/{p-dadbab48.entry.js → p-a0bf3dd2.entry.js} +1 -1
  263. package/dist/ptcw-design/{p-e2e33ddb.entry.js → p-a37c5209.entry.js} +1 -1
  264. package/dist/ptcw-design/{p-09def480.entry.js → p-a412ff0a.entry.js} +1 -1
  265. package/dist/ptcw-design/p-a4f65d28.entry.js +1 -0
  266. package/dist/ptcw-design/p-a54c6da5.entry.js +1 -0
  267. package/dist/ptcw-design/{p-edcad0f1.entry.js → p-a58698ca.entry.js} +1 -1
  268. package/dist/ptcw-design/{p-e6cb2dce.entry.js → p-a791c53a.entry.js} +1 -1
  269. package/dist/ptcw-design/{p-be00fb74.entry.js → p-a7cb3851.entry.js} +1 -1
  270. package/dist/ptcw-design/{p-c5417010.entry.js → p-aac082cf.entry.js} +1 -1
  271. package/dist/ptcw-design/{p-944c5be8.js → p-ac75c7ad.js} +1 -1
  272. package/dist/ptcw-design/{p-647dee4f.entry.js → p-acdd9a1d.entry.js} +1 -1
  273. package/dist/ptcw-design/{p-b29e43cf.entry.js → p-ad821a01.entry.js} +1 -1
  274. package/dist/ptcw-design/p-ae970a60.entry.js +1 -0
  275. package/dist/ptcw-design/{p-b293a0b1.entry.js → p-aea09a70.entry.js} +1 -1
  276. package/dist/ptcw-design/{p-6f8858c3.entry.js → p-b209c116.entry.js} +1 -1
  277. package/dist/ptcw-design/{p-79762cf6.entry.js → p-b436f56d.entry.js} +1 -1
  278. package/dist/ptcw-design/{p-2db8ed95.entry.js → p-b441e3fe.entry.js} +1 -1
  279. package/dist/ptcw-design/p-b50f71dd.entry.js +1 -0
  280. package/dist/ptcw-design/{p-208ec7f3.entry.js → p-bf8fbba7.entry.js} +1 -1
  281. package/dist/ptcw-design/{p-9a28ded2.entry.js → p-bfacfe67.entry.js} +1 -1
  282. package/dist/ptcw-design/{p-0cc79610.entry.js → p-c37a3bd2.entry.js} +1 -1
  283. package/dist/ptcw-design/{p-dd38bf84.entry.js → p-c5f42895.entry.js} +1 -1
  284. package/dist/ptcw-design/{p-61a5012d.entry.js → p-c631608f.entry.js} +1 -1
  285. package/dist/ptcw-design/p-c66b8926.entry.js +1 -0
  286. package/dist/ptcw-design/{p-e87a4ff8.entry.js → p-c68d31c6.entry.js} +1 -1
  287. package/dist/ptcw-design/{p-43756439.entry.js → p-c6a0dd99.entry.js} +1 -1
  288. package/dist/ptcw-design/p-c89030e4.entry.js +1 -0
  289. package/dist/ptcw-design/{p-9b354870.entry.js → p-c95f423e.entry.js} +1 -1
  290. package/dist/ptcw-design/{p-3a50e95a.entry.js → p-cfa6996d.entry.js} +1 -1
  291. package/dist/ptcw-design/{p-00ccc051.entry.js → p-d089dc37.entry.js} +1 -1
  292. package/dist/ptcw-design/p-d10cb999.entry.js +1 -0
  293. package/dist/ptcw-design/{p-aaf8fb04.entry.js → p-d20cf3c5.entry.js} +1 -1
  294. package/dist/ptcw-design/p-d2cc0297.entry.js +1 -0
  295. package/dist/ptcw-design/{p-1b2ff400.entry.js → p-d3ac3758.entry.js} +1 -1
  296. package/dist/ptcw-design/{p-75d8b6ec.entry.js → p-d74ccb19.entry.js} +1 -1
  297. package/dist/ptcw-design/{p-5429a6c0.entry.js → p-d9abe7e8.entry.js} +1 -1
  298. package/dist/ptcw-design/{p-f05be87f.entry.js → p-da02913d.entry.js} +1 -1
  299. package/dist/ptcw-design/{p-81700a7e.entry.js → p-da82dc93.entry.js} +1 -1
  300. package/dist/ptcw-design/{p-bf439f9b.entry.js → p-dbbe35bf.entry.js} +1 -1
  301. package/dist/ptcw-design/{p-afbe8e2c.entry.js → p-dc85c302.entry.js} +1 -1
  302. package/dist/ptcw-design/{p-37899461.entry.js → p-dc8c0a06.entry.js} +1 -1
  303. package/dist/ptcw-design/{p-b4015d90.entry.js → p-e0b873d0.entry.js} +1 -1
  304. package/dist/ptcw-design/{p-0bb3ea9a.entry.js → p-e235bf27.entry.js} +1 -1
  305. package/dist/ptcw-design/{p-d1f57070.entry.js → p-e3bf092e.entry.js} +1 -1
  306. package/dist/ptcw-design/{p-8b37d3ac.entry.js → p-e3f8e5d5.entry.js} +1 -1
  307. package/dist/ptcw-design/{p-14565e90.entry.js → p-e4000363.entry.js} +1 -1
  308. package/dist/ptcw-design/{p-2a3735a5.entry.js → p-e90fbbad.entry.js} +1 -1
  309. package/dist/ptcw-design/p-ec7fb1fb.entry.js +1 -0
  310. package/dist/ptcw-design/{p-4b23b4c3.entry.js → p-ee534211.entry.js} +1 -1
  311. package/dist/ptcw-design/p-f5c97ab2.entry.js +1 -0
  312. package/dist/ptcw-design/{p-3b967df1.entry.js → p-f61a3476.entry.js} +1 -1
  313. package/dist/ptcw-design/{p-5da98805.entry.js → p-f731fc96.entry.js} +1 -1
  314. package/dist/ptcw-design/{p-ac78409e.entry.js → p-f867ebe6.entry.js} +1 -1
  315. package/dist/ptcw-design/{p-235149b5.entry.js → p-f9256e3d.entry.js} +1 -1
  316. package/dist/ptcw-design/{p-0ed4609e.entry.js → p-fb8584e4.entry.js} +1 -1
  317. package/dist/ptcw-design/p-fd7e5935.entry.js +1 -0
  318. package/dist/ptcw-design/{p-e6ebc832.entry.js → p-fdee2cdc.entry.js} +1 -1
  319. package/dist/ptcw-design/{p-4335d7f3.entry.js → p-fe907670.entry.js} +1 -1
  320. package/dist/ptcw-design/{p-c415ab42.entry.js → p-ffb0ff97.entry.js} +1 -1
  321. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  322. package/dist/types/components/ptc-modal/ptc-modal.d.ts +11 -1
  323. package/dist/types/components.d.ts +2 -0
  324. package/package.json +1 -1
  325. package/readme.md +1 -1
  326. package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -1750
  327. package/dist/cjs/icon-asset_6.cjs.entry.js +0 -347
  328. package/dist/cjs/list-item.cjs.entry.js +0 -48
  329. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
  330. package/dist/cjs/ptc-button.cjs.entry.js +0 -87
  331. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -156
  332. package/dist/cjs/ptc-card-content.cjs.entry.js +0 -76
  333. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -252
  334. package/dist/cjs/ptc-img.cjs.entry.js +0 -133
  335. package/dist/cjs/ptc-link.cjs.entry.js +0 -87
  336. package/dist/cjs/ptc-para.cjs.entry.js +0 -127
  337. package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -136
  338. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  339. package/dist/cjs/ptc-title.cjs.entry.js +0 -152
  340. package/dist/esm/event-jumbotron-example.entry.js +0 -1746
  341. package/dist/esm/icon-asset_6.entry.js +0 -338
  342. package/dist/esm/list-item.entry.js +0 -44
  343. package/dist/esm/ptc-breadcrumb.entry.js +0 -43
  344. package/dist/esm/ptc-button.entry.js +0 -83
  345. package/dist/esm/ptc-card-bottom_2.entry.js +0 -151
  346. package/dist/esm/ptc-card-content.entry.js +0 -72
  347. package/dist/esm/ptc-close-icon_2.entry.js +0 -247
  348. package/dist/esm/ptc-img.entry.js +0 -129
  349. package/dist/esm/ptc-link.entry.js +0 -83
  350. package/dist/esm/ptc-para.entry.js +0 -123
  351. package/dist/esm/ptc-scroll-button.entry.js +0 -132
  352. package/dist/esm/ptc-spacer.entry.js +0 -34
  353. package/dist/esm/ptc-title.entry.js +0 -148
  354. package/dist/ptcw-design/p-05b950aa.entry.js +0 -1
  355. package/dist/ptcw-design/p-07b1afd5.entry.js +0 -1
  356. package/dist/ptcw-design/p-11eb4dd1.entry.js +0 -1
  357. package/dist/ptcw-design/p-202b0d92.entry.js +0 -1
  358. package/dist/ptcw-design/p-212cdacd.entry.js +0 -1
  359. package/dist/ptcw-design/p-29223a86.entry.js +0 -1
  360. package/dist/ptcw-design/p-29ae44dd.entry.js +0 -1
  361. package/dist/ptcw-design/p-36c42aae.entry.js +0 -1
  362. package/dist/ptcw-design/p-3717a6e1.entry.js +0 -1
  363. package/dist/ptcw-design/p-39255f59.entry.js +0 -1
  364. package/dist/ptcw-design/p-39ec04d4.entry.js +0 -1
  365. package/dist/ptcw-design/p-3ae14b03.entry.js +0 -1
  366. package/dist/ptcw-design/p-4f523245.entry.js +0 -1
  367. package/dist/ptcw-design/p-53d88f2b.entry.js +0 -1
  368. package/dist/ptcw-design/p-57b28b2b.entry.js +0 -1
  369. package/dist/ptcw-design/p-67a32576.entry.js +0 -1
  370. package/dist/ptcw-design/p-72681e91.entry.js +0 -1
  371. package/dist/ptcw-design/p-753dff04.entry.js +0 -1
  372. package/dist/ptcw-design/p-7e3985cc.entry.js +0 -1
  373. package/dist/ptcw-design/p-815a1a62.entry.js +0 -1
  374. package/dist/ptcw-design/p-88ff7bc5.entry.js +0 -1
  375. package/dist/ptcw-design/p-973b06d1.entry.js +0 -1
  376. package/dist/ptcw-design/p-99e41dc4.entry.js +0 -1
  377. package/dist/ptcw-design/p-9ae901e2.entry.js +0 -1
  378. package/dist/ptcw-design/p-9d8a9a72.entry.js +0 -1
  379. package/dist/ptcw-design/p-b4f05597.entry.js +0 -1
  380. package/dist/ptcw-design/p-cadbf4a0.entry.js +0 -1
  381. package/dist/ptcw-design/p-ec22d0b8.entry.js +0 -1
  382. package/dist/ptcw-design/p-f983f6cc.entry.js +0 -1
  383. package/dist/ptcw-design/p-fd5b7db1.entry.js +0 -1
  384. package/dist/ptcw-design/p-ff0910d6.entry.js +0 -11
  385. package/dist/ptcw-design/p-ffd5c822.entry.js +0 -1
@@ -0,0 +1,3095 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-63ddc79c.js');
6
+ const utils = require('./utils-ad441b07.js');
7
+ const interfaces = require('./interfaces-574e6df7.js');
8
+
9
+ /*!
10
+ * tabbable 6.2.0
11
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
12
+ */
13
+ // NOTE: separate `:not()` selectors has broader browser support than the newer
14
+ // `:not([inert], [inert] *)` (Feb 2023)
15
+ // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
16
+ // the entire query to fail, resulting in no nodes found, which will break a lot
17
+ // of things... so we have to rely on JS to identify nodes inside an inert container
18
+ var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
19
+ var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
20
+ var NoElement = typeof Element === 'undefined';
21
+ var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
22
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
23
+ var _element$getRootNode;
24
+ return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
25
+ } : function (element) {
26
+ return element === null || element === void 0 ? void 0 : element.ownerDocument;
27
+ };
28
+
29
+ /**
30
+ * Determines if a node is inert or in an inert ancestor.
31
+ * @param {Element} [node]
32
+ * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
33
+ * see if any of them are inert. If false, only `node` itself is considered.
34
+ * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
35
+ * False if `node` is falsy.
36
+ */
37
+ var isInert = function isInert(node, lookUp) {
38
+ var _node$getAttribute;
39
+ if (lookUp === void 0) {
40
+ lookUp = true;
41
+ }
42
+ // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
43
+ // JS API property; we have to check the attribute, which can either be empty or 'true';
44
+ // if it's `null` (not specified) or 'false', it's an active element
45
+ var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
46
+ var inert = inertAtt === '' || inertAtt === 'true';
47
+
48
+ // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
49
+ // if it weren't for `matches()` not being a function on shadow roots; the following
50
+ // code works for any kind of node
51
+ // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
52
+ // so it likely would not support `:is([inert] *)` either...
53
+ var result = inert || lookUp && node && isInert(node.parentNode); // recursive
54
+
55
+ return result;
56
+ };
57
+
58
+ /**
59
+ * Determines if a node's content is editable.
60
+ * @param {Element} [node]
61
+ * @returns True if it's content-editable; false if it's not or `node` is falsy.
62
+ */
63
+ var isContentEditable = function isContentEditable(node) {
64
+ var _node$getAttribute2;
65
+ // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
66
+ // to use the attribute directly to check for this, which can either be empty or 'true';
67
+ // if it's `null` (not specified) or 'false', it's a non-editable element
68
+ var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
69
+ return attValue === '' || attValue === 'true';
70
+ };
71
+
72
+ /**
73
+ * @param {Element} el container to check in
74
+ * @param {boolean} includeContainer add container to check
75
+ * @param {(node: Element) => boolean} filter filter candidates
76
+ * @returns {Element[]}
77
+ */
78
+ var getCandidates = function getCandidates(el, includeContainer, filter) {
79
+ // even if `includeContainer=false`, we still have to check it for inertness because
80
+ // if it's inert, all its children are inert
81
+ if (isInert(el)) {
82
+ return [];
83
+ }
84
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
85
+ if (includeContainer && matches.call(el, candidateSelector)) {
86
+ candidates.unshift(el);
87
+ }
88
+ candidates = candidates.filter(filter);
89
+ return candidates;
90
+ };
91
+
92
+ /**
93
+ * @callback GetShadowRoot
94
+ * @param {Element} element to check for shadow root
95
+ * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
96
+ */
97
+
98
+ /**
99
+ * @callback ShadowRootFilter
100
+ * @param {Element} shadowHostNode the element which contains shadow content
101
+ * @returns {boolean} true if a shadow root could potentially contain valid candidates.
102
+ */
103
+
104
+ /**
105
+ * @typedef {Object} CandidateScope
106
+ * @property {Element} scopeParent contains inner candidates
107
+ * @property {Element[]} candidates list of candidates found in the scope parent
108
+ */
109
+
110
+ /**
111
+ * @typedef {Object} IterativeOptions
112
+ * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
113
+ * if a function, implies shadow support is enabled and either returns the shadow root of an element
114
+ * or a boolean stating if it has an undisclosed shadow root
115
+ * @property {(node: Element) => boolean} filter filter candidates
116
+ * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
117
+ * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
118
+ */
119
+
120
+ /**
121
+ * @param {Element[]} elements list of element containers to match candidates from
122
+ * @param {boolean} includeContainer add container list to check
123
+ * @param {IterativeOptions} options
124
+ * @returns {Array.<Element|CandidateScope>}
125
+ */
126
+ var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
127
+ var candidates = [];
128
+ var elementsToCheck = Array.from(elements);
129
+ while (elementsToCheck.length) {
130
+ var element = elementsToCheck.shift();
131
+ if (isInert(element, false)) {
132
+ // no need to look up since we're drilling down
133
+ // anything inside this container will also be inert
134
+ continue;
135
+ }
136
+ if (element.tagName === 'SLOT') {
137
+ // add shadow dom slot scope (slot itself cannot be focusable)
138
+ var assigned = element.assignedElements();
139
+ var content = assigned.length ? assigned : element.children;
140
+ var nestedCandidates = getCandidatesIteratively(content, true, options);
141
+ if (options.flatten) {
142
+ candidates.push.apply(candidates, nestedCandidates);
143
+ } else {
144
+ candidates.push({
145
+ scopeParent: element,
146
+ candidates: nestedCandidates
147
+ });
148
+ }
149
+ } else {
150
+ // check candidate element
151
+ var validCandidate = matches.call(element, candidateSelector);
152
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
153
+ candidates.push(element);
154
+ }
155
+
156
+ // iterate over shadow content if possible
157
+ var shadowRoot = element.shadowRoot ||
158
+ // check for an undisclosed shadow
159
+ typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
160
+
161
+ // no inert look up because we're already drilling down and checking for inertness
162
+ // on the way down, so all containers to this root node should have already been
163
+ // vetted as non-inert
164
+ var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
165
+ if (shadowRoot && validShadowRoot) {
166
+ // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
167
+ // shadow exists, so look at light dom children as fallback BUT create a scope for any
168
+ // child candidates found because they're likely slotted elements (elements that are
169
+ // children of the web component element (which has the shadow), in the light dom, but
170
+ // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
171
+ // _after_ we return from this recursive call
172
+ var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
173
+ if (options.flatten) {
174
+ candidates.push.apply(candidates, _nestedCandidates);
175
+ } else {
176
+ candidates.push({
177
+ scopeParent: element,
178
+ candidates: _nestedCandidates
179
+ });
180
+ }
181
+ } else {
182
+ // there's not shadow so just dig into the element's (light dom) children
183
+ // __without__ giving the element special scope treatment
184
+ elementsToCheck.unshift.apply(elementsToCheck, element.children);
185
+ }
186
+ }
187
+ }
188
+ return candidates;
189
+ };
190
+
191
+ /**
192
+ * @private
193
+ * Determines if the node has an explicitly specified `tabindex` attribute.
194
+ * @param {HTMLElement} node
195
+ * @returns {boolean} True if so; false if not.
196
+ */
197
+ var hasTabIndex = function hasTabIndex(node) {
198
+ return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
199
+ };
200
+
201
+ /**
202
+ * Determine the tab index of a given node.
203
+ * @param {HTMLElement} node
204
+ * @returns {number} Tab order (negative, 0, or positive number).
205
+ * @throws {Error} If `node` is falsy.
206
+ */
207
+ var getTabIndex = function getTabIndex(node) {
208
+ if (!node) {
209
+ throw new Error('No node provided');
210
+ }
211
+ if (node.tabIndex < 0) {
212
+ // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
213
+ // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
214
+ // yet they are still part of the regular tab order; in FF, they get a default
215
+ // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
216
+ // order, consider their tab index to be 0.
217
+ // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
218
+ // so if they don't have a tabindex attribute specifically set, assume it's 0.
219
+ if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
220
+ return 0;
221
+ }
222
+ }
223
+ return node.tabIndex;
224
+ };
225
+
226
+ /**
227
+ * Determine the tab index of a given node __for sort order purposes__.
228
+ * @param {HTMLElement} node
229
+ * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
230
+ * has tabIndex -1, but needs to be sorted by document order in order for its content to be
231
+ * inserted into the correct sort position.
232
+ * @returns {number} Tab order (negative, 0, or positive number).
233
+ */
234
+ var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
235
+ var tabIndex = getTabIndex(node);
236
+ if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
237
+ return 0;
238
+ }
239
+ return tabIndex;
240
+ };
241
+ var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
242
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
243
+ };
244
+ var isInput = function isInput(node) {
245
+ return node.tagName === 'INPUT';
246
+ };
247
+ var isHiddenInput = function isHiddenInput(node) {
248
+ return isInput(node) && node.type === 'hidden';
249
+ };
250
+ var isDetailsWithSummary = function isDetailsWithSummary(node) {
251
+ var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
252
+ return child.tagName === 'SUMMARY';
253
+ });
254
+ return r;
255
+ };
256
+ var getCheckedRadio = function getCheckedRadio(nodes, form) {
257
+ for (var i = 0; i < nodes.length; i++) {
258
+ if (nodes[i].checked && nodes[i].form === form) {
259
+ return nodes[i];
260
+ }
261
+ }
262
+ };
263
+ var isTabbableRadio = function isTabbableRadio(node) {
264
+ if (!node.name) {
265
+ return true;
266
+ }
267
+ var radioScope = node.form || getRootNode(node);
268
+ var queryRadios = function queryRadios(name) {
269
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
270
+ };
271
+ var radioSet;
272
+ if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
273
+ radioSet = queryRadios(window.CSS.escape(node.name));
274
+ } else {
275
+ try {
276
+ radioSet = queryRadios(node.name);
277
+ } catch (err) {
278
+ // eslint-disable-next-line no-console
279
+ console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
280
+ return false;
281
+ }
282
+ }
283
+ var checked = getCheckedRadio(radioSet, node.form);
284
+ return !checked || checked === node;
285
+ };
286
+ var isRadio = function isRadio(node) {
287
+ return isInput(node) && node.type === 'radio';
288
+ };
289
+ var isNonTabbableRadio = function isNonTabbableRadio(node) {
290
+ return isRadio(node) && !isTabbableRadio(node);
291
+ };
292
+
293
+ // determines if a node is ultimately attached to the window's document
294
+ var isNodeAttached = function isNodeAttached(node) {
295
+ var _nodeRoot;
296
+ // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
297
+ // (but NOT _the_ document; see second 'If' comment below for more).
298
+ // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
299
+ // is attached, and the one we need to check if it's in the document or not (because the
300
+ // shadow, and all nodes it contains, is never considered in the document since shadows
301
+ // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
302
+ // is hidden, or is not in the document itself but is detached, it will affect the shadow's
303
+ // visibility, including all the nodes it contains). The host could be any normal node,
304
+ // or a custom element (i.e. web component). Either way, that's the one that is considered
305
+ // part of the document, not the shadow root, nor any of its children (i.e. the node being
306
+ // tested).
307
+ // To further complicate things, we have to look all the way up until we find a shadow HOST
308
+ // that is attached (or find none) because the node might be in nested shadows...
309
+ // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
310
+ // document (per the docs) and while it's a Document-type object, that document does not
311
+ // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
312
+ // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
313
+ // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
314
+ // node is actually detached.
315
+ // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
316
+ // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
317
+ // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
318
+ // `ownerDocument` will be `null`, hence the optional chaining on it.
319
+ var nodeRoot = node && getRootNode(node);
320
+ var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
321
+
322
+ // in some cases, a detached node will return itself as the root instead of a document or
323
+ // shadow root object, in which case, we shouldn't try to look further up the host chain
324
+ var attached = false;
325
+ if (nodeRoot && nodeRoot !== node) {
326
+ var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
327
+ attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
328
+ while (!attached && nodeRootHost) {
329
+ var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
330
+ // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
331
+ // which means we need to get the host's host and check if that parent host is contained
332
+ // in (i.e. attached to) the document
333
+ nodeRoot = getRootNode(nodeRootHost);
334
+ nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
335
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
336
+ }
337
+ }
338
+ return attached;
339
+ };
340
+ var isZeroArea = function isZeroArea(node) {
341
+ var _node$getBoundingClie = node.getBoundingClientRect(),
342
+ width = _node$getBoundingClie.width,
343
+ height = _node$getBoundingClie.height;
344
+ return width === 0 && height === 0;
345
+ };
346
+ var isHidden = function isHidden(node, _ref) {
347
+ var displayCheck = _ref.displayCheck,
348
+ getShadowRoot = _ref.getShadowRoot;
349
+ // NOTE: visibility will be `undefined` if node is detached from the document
350
+ // (see notes about this further down), which means we will consider it visible
351
+ // (this is legacy behavior from a very long way back)
352
+ // NOTE: we check this regardless of `displayCheck="none"` because this is a
353
+ // _visibility_ check, not a _display_ check
354
+ if (getComputedStyle(node).visibility === 'hidden') {
355
+ return true;
356
+ }
357
+ var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
358
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
359
+ if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
360
+ return true;
361
+ }
362
+ if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
363
+ if (typeof getShadowRoot === 'function') {
364
+ // figure out if we should consider the node to be in an undisclosed shadow and use the
365
+ // 'non-zero-area' fallback
366
+ var originalNode = node;
367
+ while (node) {
368
+ var parentElement = node.parentElement;
369
+ var rootNode = getRootNode(node);
370
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
371
+ ) {
372
+ // node has an undisclosed shadow which means we can only treat it as a black box, so we
373
+ // fall back to a non-zero-area test
374
+ return isZeroArea(node);
375
+ } else if (node.assignedSlot) {
376
+ // iterate up slot
377
+ node = node.assignedSlot;
378
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
379
+ // cross shadow boundary
380
+ node = rootNode.host;
381
+ } else {
382
+ // iterate up normal dom
383
+ node = parentElement;
384
+ }
385
+ }
386
+ node = originalNode;
387
+ }
388
+ // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
389
+ // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
390
+ // it might be a falsy value, which means shadow DOM support is disabled
391
+
392
+ // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
393
+ // now we can just test to see if it would normally be visible or not, provided it's
394
+ // attached to the main document.
395
+ // NOTE: We must consider case where node is inside a shadow DOM and given directly to
396
+ // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
397
+
398
+ if (isNodeAttached(node)) {
399
+ // this works wherever the node is: if there's at least one client rect, it's
400
+ // somehow displayed; it also covers the CSS 'display: contents' case where the
401
+ // node itself is hidden in place of its contents; and there's no need to search
402
+ // up the hierarchy either
403
+ return !node.getClientRects().length;
404
+ }
405
+
406
+ // Else, the node isn't attached to the document, which means the `getClientRects()`
407
+ // API will __always__ return zero rects (this can happen, for example, if React
408
+ // is used to render nodes onto a detached tree, as confirmed in this thread:
409
+ // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
410
+ //
411
+ // It also means that even window.getComputedStyle(node).display will return `undefined`
412
+ // because styles are only computed for nodes that are in the document.
413
+ //
414
+ // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
415
+ // somehow. Though it was never stated officially, anyone who has ever used tabbable
416
+ // APIs on nodes in detached containers has actually implicitly used tabbable in what
417
+ // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
418
+ // considering __everything__ to be visible because of the innability to determine styles.
419
+ //
420
+ // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
421
+ // nodes as visible with the 'none' fallback.__
422
+ if (displayCheck !== 'legacy-full') {
423
+ return true; // hidden
424
+ }
425
+ // else, fallback to 'none' mode and consider the node visible
426
+ } else if (displayCheck === 'non-zero-area') {
427
+ // NOTE: Even though this tests that the node's client rect is non-zero to determine
428
+ // whether it's displayed, and that a detached node will __always__ have a zero-area
429
+ // client rect, we don't special-case for whether the node is attached or not. In
430
+ // this mode, we do want to consider nodes that have a zero area to be hidden at all
431
+ // times, and that includes attached or not.
432
+ return isZeroArea(node);
433
+ }
434
+
435
+ // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
436
+ // it's visible
437
+ return false;
438
+ };
439
+
440
+ // form fields (nested) inside a disabled fieldset are not focusable/tabbable
441
+ // unless they are in the _first_ <legend> element of the top-most disabled
442
+ // fieldset
443
+ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
444
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
445
+ var parentNode = node.parentElement;
446
+ // check if `node` is contained in a disabled <fieldset>
447
+ while (parentNode) {
448
+ if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
449
+ // look for the first <legend> among the children of the disabled <fieldset>
450
+ for (var i = 0; i < parentNode.children.length; i++) {
451
+ var child = parentNode.children.item(i);
452
+ // when the first <legend> (in document order) is found
453
+ if (child.tagName === 'LEGEND') {
454
+ // if its parent <fieldset> is not nested in another disabled <fieldset>,
455
+ // return whether `node` is a descendant of its first <legend>
456
+ return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
457
+ }
458
+ }
459
+ // the disabled <fieldset> containing `node` has no <legend>
460
+ return true;
461
+ }
462
+ parentNode = parentNode.parentElement;
463
+ }
464
+ }
465
+
466
+ // else, node's tabbable/focusable state should not be affected by a fieldset's
467
+ // enabled/disabled state
468
+ return false;
469
+ };
470
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
471
+ if (node.disabled ||
472
+ // we must do an inert look up to filter out any elements inside an inert ancestor
473
+ // because we're limited in the type of selectors we can use in JSDom (see related
474
+ // note related to `candidateSelectors`)
475
+ isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
476
+ // For a details element with a summary, the summary element gets the focus
477
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
478
+ return false;
479
+ }
480
+ return true;
481
+ };
482
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
483
+ if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
484
+ return false;
485
+ }
486
+ return true;
487
+ };
488
+ var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
489
+ var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
490
+ if (isNaN(tabIndex) || tabIndex >= 0) {
491
+ return true;
492
+ }
493
+ // If a custom element has an explicit negative tabindex,
494
+ // browsers will not allow tab targeting said element's children.
495
+ return false;
496
+ };
497
+
498
+ /**
499
+ * @param {Array.<Element|CandidateScope>} candidates
500
+ * @returns Element[]
501
+ */
502
+ var sortByOrder = function sortByOrder(candidates) {
503
+ var regularTabbables = [];
504
+ var orderedTabbables = [];
505
+ candidates.forEach(function (item, i) {
506
+ var isScope = !!item.scopeParent;
507
+ var element = isScope ? item.scopeParent : item;
508
+ var candidateTabindex = getSortOrderTabIndex(element, isScope);
509
+ var elements = isScope ? sortByOrder(item.candidates) : element;
510
+ if (candidateTabindex === 0) {
511
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
512
+ } else {
513
+ orderedTabbables.push({
514
+ documentOrder: i,
515
+ tabIndex: candidateTabindex,
516
+ item: item,
517
+ isScope: isScope,
518
+ content: elements
519
+ });
520
+ }
521
+ });
522
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
523
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
524
+ return acc;
525
+ }, []).concat(regularTabbables);
526
+ };
527
+ var tabbable = function tabbable(container, options) {
528
+ options = options || {};
529
+ var candidates;
530
+ if (options.getShadowRoot) {
531
+ candidates = getCandidatesIteratively([container], options.includeContainer, {
532
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
533
+ flatten: false,
534
+ getShadowRoot: options.getShadowRoot,
535
+ shadowRootFilter: isValidShadowRootTabbable
536
+ });
537
+ } else {
538
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
539
+ }
540
+ return sortByOrder(candidates);
541
+ };
542
+ var focusable = function focusable(container, options) {
543
+ options = options || {};
544
+ var candidates;
545
+ if (options.getShadowRoot) {
546
+ candidates = getCandidatesIteratively([container], options.includeContainer, {
547
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
548
+ flatten: true,
549
+ getShadowRoot: options.getShadowRoot
550
+ });
551
+ } else {
552
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
553
+ }
554
+ return candidates;
555
+ };
556
+ var isTabbable = function isTabbable(node, options) {
557
+ options = options || {};
558
+ if (!node) {
559
+ throw new Error('No node provided');
560
+ }
561
+ if (matches.call(node, candidateSelector) === false) {
562
+ return false;
563
+ }
564
+ return isNodeMatchingSelectorTabbable(options, node);
565
+ };
566
+ var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
567
+ var isFocusable = function isFocusable(node, options) {
568
+ options = options || {};
569
+ if (!node) {
570
+ throw new Error('No node provided');
571
+ }
572
+ if (matches.call(node, focusableCandidateSelector) === false) {
573
+ return false;
574
+ }
575
+ return isNodeMatchingSelectorFocusable(options, node);
576
+ };
577
+
578
+ /*!
579
+ * focus-trap 7.6.4
580
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
581
+ */
582
+
583
+ function _arrayLikeToArray(r, a) {
584
+ (null == a || a > r.length) && (a = r.length);
585
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
586
+ return n;
587
+ }
588
+ function _arrayWithoutHoles(r) {
589
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
590
+ }
591
+ function _defineProperty(e, r, t) {
592
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
593
+ value: t,
594
+ enumerable: true,
595
+ configurable: true,
596
+ writable: true
597
+ }) : e[r] = t, e;
598
+ }
599
+ function _iterableToArray(r) {
600
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
601
+ }
602
+ function _nonIterableSpread() {
603
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
604
+ }
605
+ function ownKeys(e, r) {
606
+ var t = Object.keys(e);
607
+ if (Object.getOwnPropertySymbols) {
608
+ var o = Object.getOwnPropertySymbols(e);
609
+ r && (o = o.filter(function (r) {
610
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
611
+ })), t.push.apply(t, o);
612
+ }
613
+ return t;
614
+ }
615
+ function _objectSpread2(e) {
616
+ for (var r = 1; r < arguments.length; r++) {
617
+ var t = null != arguments[r] ? arguments[r] : {};
618
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
619
+ _defineProperty(e, r, t[r]);
620
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
621
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
622
+ });
623
+ }
624
+ return e;
625
+ }
626
+ function _toConsumableArray(r) {
627
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
628
+ }
629
+ function _toPrimitive(t, r) {
630
+ if ("object" != typeof t || !t) return t;
631
+ var e = t[Symbol.toPrimitive];
632
+ if (undefined !== e) {
633
+ var i = e.call(t, r || "default");
634
+ if ("object" != typeof i) return i;
635
+ throw new TypeError("@@toPrimitive must return a primitive value.");
636
+ }
637
+ return ("string" === r ? String : Number)(t);
638
+ }
639
+ function _toPropertyKey(t) {
640
+ var i = _toPrimitive(t, "string");
641
+ return "symbol" == typeof i ? i : i + "";
642
+ }
643
+ function _unsupportedIterableToArray(r, a) {
644
+ if (r) {
645
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
646
+ var t = {}.toString.call(r).slice(8, -1);
647
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
648
+ }
649
+ }
650
+
651
+ var activeFocusTraps = {
652
+ activateTrap: function activateTrap(trapStack, trap) {
653
+ if (trapStack.length > 0) {
654
+ var activeTrap = trapStack[trapStack.length - 1];
655
+ if (activeTrap !== trap) {
656
+ activeTrap._setPausedState(true);
657
+ }
658
+ }
659
+ var trapIndex = trapStack.indexOf(trap);
660
+ if (trapIndex === -1) {
661
+ trapStack.push(trap);
662
+ } else {
663
+ // move this existing trap to the front of the queue
664
+ trapStack.splice(trapIndex, 1);
665
+ trapStack.push(trap);
666
+ }
667
+ },
668
+ deactivateTrap: function deactivateTrap(trapStack, trap) {
669
+ var trapIndex = trapStack.indexOf(trap);
670
+ if (trapIndex !== -1) {
671
+ trapStack.splice(trapIndex, 1);
672
+ }
673
+ if (trapStack.length > 0 && !trapStack[trapStack.length - 1]._isManuallyPaused()) {
674
+ trapStack[trapStack.length - 1]._setPausedState(false);
675
+ }
676
+ }
677
+ };
678
+ var isSelectableInput = function isSelectableInput(node) {
679
+ return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
680
+ };
681
+ var isEscapeEvent = function isEscapeEvent(e) {
682
+ return (e === null || e === undefined ? undefined : e.key) === 'Escape' || (e === null || e === undefined ? undefined : e.key) === 'Esc' || (e === null || e === undefined ? undefined : e.keyCode) === 27;
683
+ };
684
+ var isTabEvent = function isTabEvent(e) {
685
+ return (e === null || e === undefined ? undefined : e.key) === 'Tab' || (e === null || e === undefined ? undefined : e.keyCode) === 9;
686
+ };
687
+
688
+ // checks for TAB by default
689
+ var isKeyForward = function isKeyForward(e) {
690
+ return isTabEvent(e) && !e.shiftKey;
691
+ };
692
+
693
+ // checks for SHIFT+TAB by default
694
+ var isKeyBackward = function isKeyBackward(e) {
695
+ return isTabEvent(e) && e.shiftKey;
696
+ };
697
+ var delay = function delay(fn) {
698
+ return setTimeout(fn, 0);
699
+ };
700
+
701
+ /**
702
+ * Get an option's value when it could be a plain value, or a handler that provides
703
+ * the value.
704
+ * @param {*} value Option's value to check.
705
+ * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
706
+ * @returns {*} The `value`, or the handler's returned value.
707
+ */
708
+ var valueOrHandler = function valueOrHandler(value) {
709
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
710
+ params[_key - 1] = arguments[_key];
711
+ }
712
+ return typeof value === 'function' ? value.apply(undefined, params) : value;
713
+ };
714
+ var getActualTarget = function getActualTarget(event) {
715
+ // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
716
+ // shadow host. However, event.target.composedPath() will be an array of
717
+ // nodes "clicked" from inner-most (the actual element inside the shadow) to
718
+ // outer-most (the host HTML document). If we have access to composedPath(),
719
+ // then use its first element; otherwise, fall back to event.target (and
720
+ // this only works for an _open_ shadow DOM; otherwise,
721
+ // composedPath()[0] === event.target always).
722
+ return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
723
+ };
724
+
725
+ // NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
726
+ // current instance use the same stack if `userOptions.trapStack` isn't specified
727
+ var internalTrapStack = [];
728
+ var createFocusTrap = function createFocusTrap(elements, userOptions) {
729
+ // SSR: a live trap shouldn't be created in this type of environment so this
730
+ // should be safe code to execute if the `document` option isn't specified
731
+ var doc = (userOptions === null || userOptions === undefined ? undefined : userOptions.document) || document;
732
+ var trapStack = (userOptions === null || userOptions === undefined ? undefined : userOptions.trapStack) || internalTrapStack;
733
+ var config = _objectSpread2({
734
+ returnFocusOnDeactivate: true,
735
+ escapeDeactivates: true,
736
+ delayInitialFocus: true,
737
+ isKeyForward: isKeyForward,
738
+ isKeyBackward: isKeyBackward
739
+ }, userOptions);
740
+ var state = {
741
+ // containers given to createFocusTrap()
742
+ // @type {Array<HTMLElement>}
743
+ containers: [],
744
+ // list of objects identifying tabbable nodes in `containers` in the trap
745
+ // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
746
+ // is active, but the trap should never get to a state where there isn't at least one group
747
+ // with at least one tabbable node in it (that would lead to an error condition that would
748
+ // result in an error being thrown)
749
+ // @type {Array<{
750
+ // container: HTMLElement,
751
+ // tabbableNodes: Array<HTMLElement>, // empty if none
752
+ // focusableNodes: Array<HTMLElement>, // empty if none
753
+ // posTabIndexesFound: boolean,
754
+ // firstTabbableNode: HTMLElement|undefined,
755
+ // lastTabbableNode: HTMLElement|undefined,
756
+ // firstDomTabbableNode: HTMLElement|undefined,
757
+ // lastDomTabbableNode: HTMLElement|undefined,
758
+ // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
759
+ // }>}
760
+ containerGroups: [],
761
+ // same order/length as `containers` list
762
+
763
+ // references to objects in `containerGroups`, but only those that actually have
764
+ // tabbable nodes in them
765
+ // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
766
+ // the same length
767
+ tabbableGroups: [],
768
+ nodeFocusedBeforeActivation: null,
769
+ mostRecentlyFocusedNode: null,
770
+ active: false,
771
+ paused: false,
772
+ manuallyPaused: false,
773
+ // timer ID for when delayInitialFocus is true and initial focus in this trap
774
+ // has been delayed during activation
775
+ delayInitialFocusTimer: undefined,
776
+ // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
777
+ recentNavEvent: undefined
778
+ };
779
+ var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later
780
+
781
+ /**
782
+ * Gets a configuration option value.
783
+ * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
784
+ * value will be taken from this object. Otherwise, value will be taken from base configuration.
785
+ * @param {string} optionName Name of the option whose value is sought.
786
+ * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
787
+ * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
788
+ */
789
+ var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
790
+ return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
791
+ };
792
+
793
+ /**
794
+ * Finds the index of the container that contains the element.
795
+ * @param {HTMLElement} element
796
+ * @param {Event} [event] If available, and `element` isn't directly found in any container,
797
+ * the event's composed path is used to see if includes any known trap containers in the
798
+ * case where the element is inside a Shadow DOM.
799
+ * @returns {number} Index of the container in either `state.containers` or
800
+ * `state.containerGroups` (the order/length of these lists are the same); -1
801
+ * if the element isn't found.
802
+ */
803
+ var findContainerIndex = function findContainerIndex(element, event) {
804
+ var composedPath = typeof (event === null || event === undefined ? undefined : event.composedPath) === 'function' ? event.composedPath() : undefined;
805
+ // NOTE: search `containerGroups` because it's possible a group contains no tabbable
806
+ // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
807
+ // and we still need to find the element in there
808
+ return state.containerGroups.findIndex(function (_ref) {
809
+ var container = _ref.container,
810
+ tabbableNodes = _ref.tabbableNodes;
811
+ return container.contains(element) || (// fall back to explicit tabbable search which will take into consideration any
812
+ // web components if the `tabbableOptions.getShadowRoot` option was used for
813
+ // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
814
+ // look inside web components even if open)
815
+ composedPath === null || composedPath === undefined ? undefined : composedPath.includes(container)) || tabbableNodes.find(function (node) {
816
+ return node === element;
817
+ });
818
+ });
819
+ };
820
+
821
+ /**
822
+ * Gets the node for the given option, which is expected to be an option that
823
+ * can be either a DOM node, a string that is a selector to get a node, `false`
824
+ * (if a node is explicitly NOT given), or a function that returns any of these
825
+ * values.
826
+ * @param {string} optionName
827
+ * @param {Object} options
828
+ * @param {boolean} [options.hasFallback] True if the option could be a selector string
829
+ * and the option allows for a fallback scenario in the case where the selector is
830
+ * valid but does not match a node (i.e. the queried node doesn't exist in the DOM).
831
+ * @param {Array} [options.params] Params to pass to the option if it's a function.
832
+ * @returns {undefined | null | false | HTMLElement | SVGElement} Returns
833
+ * `undefined` if the option is not specified; `null` if the option didn't resolve
834
+ * to a node but `options.hasFallback=true`, `false` if the option resolved to `false`
835
+ * (node explicitly not given); otherwise, the resolved DOM node.
836
+ * @throws {Error} If the option is set, not `false`, and is not, or does not
837
+ * resolve to a node, unless the option is a selector string and `options.hasFallback=true`.
838
+ */
839
+ var getNodeForOption = function getNodeForOption(optionName) {
840
+ var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
841
+ _ref2$hasFallback = _ref2.hasFallback,
842
+ hasFallback = _ref2$hasFallback === undefined ? false : _ref2$hasFallback,
843
+ _ref2$params = _ref2.params,
844
+ params = _ref2$params === undefined ? [] : _ref2$params;
845
+ var optionValue = config[optionName];
846
+ if (typeof optionValue === 'function') {
847
+ optionValue = optionValue.apply(undefined, _toConsumableArray(params));
848
+ }
849
+ if (optionValue === true) {
850
+ optionValue = undefined; // use default value
851
+ }
852
+ if (!optionValue) {
853
+ if (optionValue === undefined || optionValue === false) {
854
+ return optionValue;
855
+ }
856
+ // else, empty string (invalid), null (invalid), 0 (invalid)
857
+
858
+ throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
859
+ }
860
+ var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
861
+
862
+ if (typeof optionValue === 'string') {
863
+ try {
864
+ node = doc.querySelector(optionValue); // resolve to node, or null if fails
865
+ } catch (err) {
866
+ throw new Error("`".concat(optionName, "` appears to be an invalid selector; error=\"").concat(err.message, "\""));
867
+ }
868
+ if (!node) {
869
+ if (!hasFallback) {
870
+ throw new Error("`".concat(optionName, "` as selector refers to no known node"));
871
+ }
872
+ // else, `node` MUST be `null` because that's what `Document.querySelector()` returns
873
+ // if the selector is valid but doesn't match anything
874
+ }
875
+ }
876
+ return node;
877
+ };
878
+ var getInitialFocusNode = function getInitialFocusNode() {
879
+ var node = getNodeForOption('initialFocus', {
880
+ hasFallback: true
881
+ });
882
+
883
+ // false explicitly indicates we want no initialFocus at all
884
+ if (node === false) {
885
+ return false;
886
+ }
887
+ if (node === undefined || node && !isFocusable(node, config.tabbableOptions)) {
888
+ // option not specified nor focusable: use fallback options
889
+ if (findContainerIndex(doc.activeElement) >= 0) {
890
+ node = doc.activeElement;
891
+ } else {
892
+ var firstTabbableGroup = state.tabbableGroups[0];
893
+ var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
894
+
895
+ // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
896
+ node = firstTabbableNode || getNodeForOption('fallbackFocus');
897
+ }
898
+ } else if (node === null) {
899
+ // option is a VALID selector string that doesn't yield a node: use the `fallbackFocus`
900
+ // option instead of the default behavior when the option isn't specified at all
901
+ node = getNodeForOption('fallbackFocus');
902
+ }
903
+ if (!node) {
904
+ throw new Error('Your focus-trap needs to have at least one focusable element');
905
+ }
906
+ return node;
907
+ };
908
+ var updateTabbableNodes = function updateTabbableNodes() {
909
+ state.containerGroups = state.containers.map(function (container) {
910
+ var tabbableNodes = tabbable(container, config.tabbableOptions);
911
+
912
+ // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
913
+ // are a superset of tabbable nodes since nodes with negative `tabindex` attributes
914
+ // are focusable but not tabbable
915
+ var focusableNodes = focusable(container, config.tabbableOptions);
916
+ var firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : undefined;
917
+ var lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : undefined;
918
+ var firstDomTabbableNode = focusableNodes.find(function (node) {
919
+ return isTabbable(node);
920
+ });
921
+ var lastDomTabbableNode = focusableNodes.slice().reverse().find(function (node) {
922
+ return isTabbable(node);
923
+ });
924
+ var posTabIndexesFound = !!tabbableNodes.find(function (node) {
925
+ return getTabIndex(node) > 0;
926
+ });
927
+ return {
928
+ container: container,
929
+ tabbableNodes: tabbableNodes,
930
+ focusableNodes: focusableNodes,
931
+ /** True if at least one node with positive `tabindex` was found in this container. */
932
+ posTabIndexesFound: posTabIndexesFound,
933
+ /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
934
+ firstTabbableNode: firstTabbableNode,
935
+ /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
936
+ lastTabbableNode: lastTabbableNode,
937
+ // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
938
+ // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
939
+ // because that API doesn't work with Shadow DOM as well as it should (@see
940
+ // https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
941
+ // to address an edge case related to positive tabindex support, this seems like a much easier,
942
+ // "close enough most of the time" alternative for positive tabindexes which should generally
943
+ // be avoided anyway...
944
+ /** First tabbable node in container, __DOM__ order; `undefined` if none. */
945
+ firstDomTabbableNode: firstDomTabbableNode,
946
+ /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
947
+ lastDomTabbableNode: lastDomTabbableNode,
948
+ /**
949
+ * Finds the __tabbable__ node that follows the given node in the specified direction,
950
+ * in this container, if any.
951
+ * @param {HTMLElement} node
952
+ * @param {boolean} [forward] True if going in forward tab order; false if going
953
+ * in reverse.
954
+ * @returns {HTMLElement|undefined} The next tabbable node, if any.
955
+ */
956
+ nextTabbableNode: function nextTabbableNode(node) {
957
+ var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
958
+ var nodeIdx = tabbableNodes.indexOf(node);
959
+ if (nodeIdx < 0) {
960
+ // either not tabbable nor focusable, or was focused but not tabbable (negative tabindex):
961
+ // since `node` should at least have been focusable, we assume that's the case and mimic
962
+ // what browsers do, which is set focus to the next node in __document position order__,
963
+ // regardless of positive tabindexes, if any -- and for reasons explained in the NOTE
964
+ // above related to `firstDomTabbable` and `lastDomTabbable` properties, we fall back to
965
+ // basic DOM order
966
+ if (forward) {
967
+ return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find(function (el) {
968
+ return isTabbable(el);
969
+ });
970
+ }
971
+ return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find(function (el) {
972
+ return isTabbable(el);
973
+ });
974
+ }
975
+ return tabbableNodes[nodeIdx + (forward ? 1 : -1)];
976
+ }
977
+ };
978
+ });
979
+ state.tabbableGroups = state.containerGroups.filter(function (group) {
980
+ return group.tabbableNodes.length > 0;
981
+ });
982
+
983
+ // throw if no groups have tabbable nodes and we don't have a fallback focus node either
984
+ if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
985
+ ) {
986
+ throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
987
+ }
988
+
989
+ // NOTE: Positive tabindexes are only properly supported in single-container traps because
990
+ // doing it across multiple containers where tabindexes could be all over the place
991
+ // would require Tabbable to support multiple containers, would require additional
992
+ // specialized Shadow DOM support, and would require Tabbable's multi-container support
993
+ // to look at those containers in document position order rather than user-provided
994
+ // order (as they are treated in Focus-trap, for legacy reasons). See discussion on
995
+ // https://github.com/focus-trap/focus-trap/issues/375 for more details.
996
+ if (state.containerGroups.find(function (g) {
997
+ return g.posTabIndexesFound;
998
+ }) && state.containerGroups.length > 1) {
999
+ throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
1000
+ }
1001
+ };
1002
+
1003
+ /**
1004
+ * Gets the current activeElement. If it's a web-component and has open shadow-root
1005
+ * it will recursively search inside shadow roots for the "true" activeElement.
1006
+ *
1007
+ * @param {Document | ShadowRoot} el
1008
+ *
1009
+ * @returns {HTMLElement} The element that currently has the focus
1010
+ **/
1011
+ var _getActiveElement = function getActiveElement(el) {
1012
+ var activeElement = el.activeElement;
1013
+ if (!activeElement) {
1014
+ return;
1015
+ }
1016
+ if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
1017
+ return _getActiveElement(activeElement.shadowRoot);
1018
+ }
1019
+ return activeElement;
1020
+ };
1021
+ var _tryFocus = function tryFocus(node) {
1022
+ if (node === false) {
1023
+ return;
1024
+ }
1025
+ if (node === _getActiveElement(document)) {
1026
+ return;
1027
+ }
1028
+ if (!node || !node.focus) {
1029
+ _tryFocus(getInitialFocusNode());
1030
+ return;
1031
+ }
1032
+ node.focus({
1033
+ preventScroll: !!config.preventScroll
1034
+ });
1035
+ // NOTE: focus() API does not trigger focusIn event so set MRU node manually
1036
+ state.mostRecentlyFocusedNode = node;
1037
+ if (isSelectableInput(node)) {
1038
+ node.select();
1039
+ }
1040
+ };
1041
+ var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
1042
+ var node = getNodeForOption('setReturnFocus', {
1043
+ params: [previousActiveElement]
1044
+ });
1045
+ return node ? node : node === false ? false : previousActiveElement;
1046
+ };
1047
+
1048
+ /**
1049
+ * Finds the next node (in either direction) where focus should move according to a
1050
+ * keyboard focus-in event.
1051
+ * @param {Object} params
1052
+ * @param {Node} [params.target] Known target __from which__ to navigate, if any.
1053
+ * @param {KeyboardEvent|FocusEvent} [params.event] Event to use if `target` isn't known (event
1054
+ * will be used to determine the `target`). Ignored if `target` is specified.
1055
+ * @param {boolean} [params.isBackward] True if focus should move backward.
1056
+ * @returns {Node|undefined} The next node, or `undefined` if a next node couldn't be
1057
+ * determined given the current state of the trap.
1058
+ */
1059
+ var findNextNavNode = function findNextNavNode(_ref3) {
1060
+ var target = _ref3.target,
1061
+ event = _ref3.event,
1062
+ _ref3$isBackward = _ref3.isBackward,
1063
+ isBackward = _ref3$isBackward === undefined ? false : _ref3$isBackward;
1064
+ target = target || getActualTarget(event);
1065
+ updateTabbableNodes();
1066
+ var destinationNode = null;
1067
+ if (state.tabbableGroups.length > 0) {
1068
+ // make sure the target is actually contained in a group
1069
+ // NOTE: the target may also be the container itself if it's focusable
1070
+ // with tabIndex='-1' and was given initial focus
1071
+ var containerIndex = findContainerIndex(target, event);
1072
+ var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
1073
+ if (containerIndex < 0) {
1074
+ // target not found in any group: quite possible focus has escaped the trap,
1075
+ // so bring it back into...
1076
+ if (isBackward) {
1077
+ // ...the last node in the last group
1078
+ destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
1079
+ } else {
1080
+ // ...the first node in the first group
1081
+ destinationNode = state.tabbableGroups[0].firstTabbableNode;
1082
+ }
1083
+ } else if (isBackward) {
1084
+ // REVERSE
1085
+
1086
+ // is the target the first tabbable node in a group?
1087
+ var startOfGroupIndex = state.tabbableGroups.findIndex(function (_ref4) {
1088
+ var firstTabbableNode = _ref4.firstTabbableNode;
1089
+ return target === firstTabbableNode;
1090
+ });
1091
+ if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
1092
+ // an exception case where the target is either the container itself, or
1093
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
1094
+ // and user clicked on it or node was programmatically given focus)
1095
+ // and is not followed by any other tabbable node, in which
1096
+ // case, we should handle shift+tab as if focus were on the container's
1097
+ // first tabbable node, and go to the last tabbable node of the LAST group
1098
+ startOfGroupIndex = containerIndex;
1099
+ }
1100
+ if (startOfGroupIndex >= 0) {
1101
+ // YES: then shift+tab should go to the last tabbable node in the
1102
+ // previous group (and wrap around to the last tabbable node of
1103
+ // the LAST group if it's the first tabbable node of the FIRST group)
1104
+ var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
1105
+ var destinationGroup = state.tabbableGroups[destinationGroupIndex];
1106
+ destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;
1107
+ } else if (!isTabEvent(event)) {
1108
+ // user must have customized the nav keys so we have to move focus manually _within_
1109
+ // the active group: do this based on the order determined by tabbable()
1110
+ destinationNode = containerGroup.nextTabbableNode(target, false);
1111
+ }
1112
+ } else {
1113
+ // FORWARD
1114
+
1115
+ // is the target the last tabbable node in a group?
1116
+ var lastOfGroupIndex = state.tabbableGroups.findIndex(function (_ref5) {
1117
+ var lastTabbableNode = _ref5.lastTabbableNode;
1118
+ return target === lastTabbableNode;
1119
+ });
1120
+ if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
1121
+ // an exception case where the target is the container itself, or
1122
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
1123
+ // and user clicked on it or node was programmatically given focus)
1124
+ // and is not followed by any other tabbable node, in which
1125
+ // case, we should handle tab as if focus were on the container's
1126
+ // last tabbable node, and go to the first tabbable node of the FIRST group
1127
+ lastOfGroupIndex = containerIndex;
1128
+ }
1129
+ if (lastOfGroupIndex >= 0) {
1130
+ // YES: then tab should go to the first tabbable node in the next
1131
+ // group (and wrap around to the first tabbable node of the FIRST
1132
+ // group if it's the last tabbable node of the LAST group)
1133
+ var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
1134
+ var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
1135
+ destinationNode = getTabIndex(target) >= 0 ? _destinationGroup.firstTabbableNode : _destinationGroup.firstDomTabbableNode;
1136
+ } else if (!isTabEvent(event)) {
1137
+ // user must have customized the nav keys so we have to move focus manually _within_
1138
+ // the active group: do this based on the order determined by tabbable()
1139
+ destinationNode = containerGroup.nextTabbableNode(target);
1140
+ }
1141
+ }
1142
+ } else {
1143
+ // no groups available
1144
+ // NOTE: the fallbackFocus option does not support returning false to opt-out
1145
+ destinationNode = getNodeForOption('fallbackFocus');
1146
+ }
1147
+ return destinationNode;
1148
+ };
1149
+
1150
+ // This needs to be done on mousedown and touchstart instead of click
1151
+ // so that it precedes the focus event.
1152
+ var checkPointerDown = function checkPointerDown(e) {
1153
+ var target = getActualTarget(e);
1154
+ if (findContainerIndex(target, e) >= 0) {
1155
+ // allow the click since it ocurred inside the trap
1156
+ return;
1157
+ }
1158
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
1159
+ // immediately deactivate the trap
1160
+ trap.deactivate({
1161
+ // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
1162
+ // which will result in the outside click setting focus to the node
1163
+ // that was clicked (and if not focusable, to "nothing"); by setting
1164
+ // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
1165
+ // on activation (or the configured `setReturnFocus` node), whether the
1166
+ // outside click was on a focusable node or not
1167
+ returnFocus: config.returnFocusOnDeactivate
1168
+ });
1169
+ return;
1170
+ }
1171
+
1172
+ // This is needed for mobile devices.
1173
+ // (If we'll only let `click` events through,
1174
+ // then on mobile they will be blocked anyways if `touchstart` is blocked.)
1175
+ if (valueOrHandler(config.allowOutsideClick, e)) {
1176
+ // allow the click outside the trap to take place
1177
+ return;
1178
+ }
1179
+
1180
+ // otherwise, prevent the click
1181
+ e.preventDefault();
1182
+ };
1183
+
1184
+ // In case focus escapes the trap for some strange reason, pull it back in.
1185
+ // NOTE: the focusIn event is NOT cancelable, so if focus escapes, it may cause unexpected
1186
+ // scrolling if the node that got focused was out of view; there's nothing we can do to
1187
+ // prevent that from happening by the time we discover that focus escaped
1188
+ var checkFocusIn = function checkFocusIn(event) {
1189
+ var target = getActualTarget(event);
1190
+ var targetContained = findContainerIndex(target, event) >= 0;
1191
+
1192
+ // In Firefox when you Tab out of an iframe the Document is briefly focused.
1193
+ if (targetContained || target instanceof Document) {
1194
+ if (targetContained) {
1195
+ state.mostRecentlyFocusedNode = target;
1196
+ }
1197
+ } else {
1198
+ // escaped! pull it back in to where it just left
1199
+ event.stopImmediatePropagation();
1200
+
1201
+ // focus will escape if the MRU node had a positive tab index and user tried to nav forward;
1202
+ // it will also escape if the MRU node had a 0 tab index and user tried to nav backward
1203
+ // toward a node with a positive tab index
1204
+ var nextNode; // next node to focus, if we find one
1205
+ var navAcrossContainers = true;
1206
+ if (state.mostRecentlyFocusedNode) {
1207
+ if (getTabIndex(state.mostRecentlyFocusedNode) > 0) {
1208
+ // MRU container index must be >=0 otherwise we wouldn't have it as an MRU node...
1209
+ var mruContainerIdx = findContainerIndex(state.mostRecentlyFocusedNode);
1210
+ // there MAY not be any tabbable nodes in the container if there are at least 2 containers
1211
+ // and the MRU node is focusable but not tabbable (focus-trap requires at least 1 container
1212
+ // with at least one tabbable node in order to function, so this could be the other container
1213
+ // with nothing tabbable in it)
1214
+ var tabbableNodes = state.containerGroups[mruContainerIdx].tabbableNodes;
1215
+ if (tabbableNodes.length > 0) {
1216
+ // MRU tab index MAY not be found if the MRU node is focusable but not tabbable
1217
+ var mruTabIdx = tabbableNodes.findIndex(function (node) {
1218
+ return node === state.mostRecentlyFocusedNode;
1219
+ });
1220
+ if (mruTabIdx >= 0) {
1221
+ if (config.isKeyForward(state.recentNavEvent)) {
1222
+ if (mruTabIdx + 1 < tabbableNodes.length) {
1223
+ nextNode = tabbableNodes[mruTabIdx + 1];
1224
+ navAcrossContainers = false;
1225
+ }
1226
+ // else, don't wrap within the container as focus should move to next/previous
1227
+ // container
1228
+ } else {
1229
+ if (mruTabIdx - 1 >= 0) {
1230
+ nextNode = tabbableNodes[mruTabIdx - 1];
1231
+ navAcrossContainers = false;
1232
+ }
1233
+ // else, don't wrap within the container as focus should move to next/previous
1234
+ // container
1235
+ }
1236
+ // else, don't find in container order without considering direction too
1237
+ }
1238
+ }
1239
+ // else, no tabbable nodes in that container (which means we must have at least one other
1240
+ // container with at least one tabbable node in it, otherwise focus-trap would've thrown
1241
+ // an error the last time updateTabbableNodes() was run): find next node among all known
1242
+ // containers
1243
+ } else {
1244
+ // check to see if there's at least one tabbable node with a positive tab index inside
1245
+ // the trap because focus seems to escape when navigating backward from a tabbable node
1246
+ // with tabindex=0 when this is the case (instead of wrapping to the tabbable node with
1247
+ // the greatest positive tab index like it should)
1248
+ if (!state.containerGroups.some(function (g) {
1249
+ return g.tabbableNodes.some(function (n) {
1250
+ return getTabIndex(n) > 0;
1251
+ });
1252
+ })) {
1253
+ // no containers with tabbable nodes with positive tab indexes which means the focus
1254
+ // escaped for some other reason and we should just execute the fallback to the
1255
+ // MRU node or initial focus node, if any
1256
+ navAcrossContainers = false;
1257
+ }
1258
+ }
1259
+ } else {
1260
+ // no MRU node means we're likely in some initial condition when the trap has just
1261
+ // been activated and initial focus hasn't been given yet, in which case we should
1262
+ // fall through to trying to focus the initial focus node, which is what should
1263
+ // happen below at this point in the logic
1264
+ navAcrossContainers = false;
1265
+ }
1266
+ if (navAcrossContainers) {
1267
+ nextNode = findNextNavNode({
1268
+ // move FROM the MRU node, not event-related node (which will be the node that is
1269
+ // outside the trap causing the focus escape we're trying to fix)
1270
+ target: state.mostRecentlyFocusedNode,
1271
+ isBackward: config.isKeyBackward(state.recentNavEvent)
1272
+ });
1273
+ }
1274
+ if (nextNode) {
1275
+ _tryFocus(nextNode);
1276
+ } else {
1277
+ _tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
1278
+ }
1279
+ }
1280
+ state.recentNavEvent = undefined; // clear
1281
+ };
1282
+
1283
+ // Hijack key nav events on the first and last focusable nodes of the trap,
1284
+ // in order to prevent focus from escaping. If it escapes for even a
1285
+ // moment it can end up scrolling the page and causing confusion so we
1286
+ // kind of need to capture the action at the keydown phase.
1287
+ var checkKeyNav = function checkKeyNav(event) {
1288
+ var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1289
+ state.recentNavEvent = event;
1290
+ var destinationNode = findNextNavNode({
1291
+ event: event,
1292
+ isBackward: isBackward
1293
+ });
1294
+ if (destinationNode) {
1295
+ if (isTabEvent(event)) {
1296
+ // since tab natively moves focus, we wouldn't have a destination node unless we
1297
+ // were on the edge of a container and had to move to the next/previous edge, in
1298
+ // which case we want to prevent default to keep the browser from moving focus
1299
+ // to where it normally would
1300
+ event.preventDefault();
1301
+ }
1302
+ _tryFocus(destinationNode);
1303
+ }
1304
+ // else, let the browser take care of [shift+]tab and move the focus
1305
+ };
1306
+ var checkTabKey = function checkTabKey(event) {
1307
+ if (config.isKeyForward(event) || config.isKeyBackward(event)) {
1308
+ checkKeyNav(event, config.isKeyBackward(event));
1309
+ }
1310
+ };
1311
+
1312
+ // we use a different event phase for the Escape key to allow canceling the event and checking for this in escapeDeactivates
1313
+ var checkEscapeKey = function checkEscapeKey(event) {
1314
+ if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
1315
+ event.preventDefault();
1316
+ trap.deactivate();
1317
+ }
1318
+ };
1319
+ var checkClick = function checkClick(e) {
1320
+ var target = getActualTarget(e);
1321
+ if (findContainerIndex(target, e) >= 0) {
1322
+ return;
1323
+ }
1324
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
1325
+ return;
1326
+ }
1327
+ if (valueOrHandler(config.allowOutsideClick, e)) {
1328
+ return;
1329
+ }
1330
+ e.preventDefault();
1331
+ e.stopImmediatePropagation();
1332
+ };
1333
+
1334
+ //
1335
+ // EVENT LISTENERS
1336
+ //
1337
+
1338
+ var addListeners = function addListeners() {
1339
+ if (!state.active) {
1340
+ return;
1341
+ }
1342
+
1343
+ // There can be only one listening focus trap at a time
1344
+ activeFocusTraps.activateTrap(trapStack, trap);
1345
+
1346
+ // Delay ensures that the focused element doesn't capture the event
1347
+ // that caused the focus trap activation.
1348
+ state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
1349
+ _tryFocus(getInitialFocusNode());
1350
+ }) : _tryFocus(getInitialFocusNode());
1351
+ doc.addEventListener('focusin', checkFocusIn, true);
1352
+ doc.addEventListener('mousedown', checkPointerDown, {
1353
+ capture: true,
1354
+ passive: false
1355
+ });
1356
+ doc.addEventListener('touchstart', checkPointerDown, {
1357
+ capture: true,
1358
+ passive: false
1359
+ });
1360
+ doc.addEventListener('click', checkClick, {
1361
+ capture: true,
1362
+ passive: false
1363
+ });
1364
+ doc.addEventListener('keydown', checkTabKey, {
1365
+ capture: true,
1366
+ passive: false
1367
+ });
1368
+ doc.addEventListener('keydown', checkEscapeKey);
1369
+ return trap;
1370
+ };
1371
+ var removeListeners = function removeListeners() {
1372
+ if (!state.active) {
1373
+ return;
1374
+ }
1375
+ doc.removeEventListener('focusin', checkFocusIn, true);
1376
+ doc.removeEventListener('mousedown', checkPointerDown, true);
1377
+ doc.removeEventListener('touchstart', checkPointerDown, true);
1378
+ doc.removeEventListener('click', checkClick, true);
1379
+ doc.removeEventListener('keydown', checkTabKey, true);
1380
+ doc.removeEventListener('keydown', checkEscapeKey);
1381
+ return trap;
1382
+ };
1383
+
1384
+ //
1385
+ // MUTATION OBSERVER
1386
+ //
1387
+
1388
+ var checkDomRemoval = function checkDomRemoval(mutations) {
1389
+ var isFocusedNodeRemoved = mutations.some(function (mutation) {
1390
+ var removedNodes = Array.from(mutation.removedNodes);
1391
+ return removedNodes.some(function (node) {
1392
+ return node === state.mostRecentlyFocusedNode;
1393
+ });
1394
+ });
1395
+
1396
+ // If the currently focused is removed then browsers will move focus to the
1397
+ // <body> element. If this happens, try to move focus back into the trap.
1398
+ if (isFocusedNodeRemoved) {
1399
+ _tryFocus(getInitialFocusNode());
1400
+ }
1401
+ };
1402
+
1403
+ // Use MutationObserver - if supported - to detect if focused node is removed
1404
+ // from the DOM.
1405
+ var mutationObserver = typeof window !== 'undefined' && 'MutationObserver' in window ? new MutationObserver(checkDomRemoval) : undefined;
1406
+ var updateObservedNodes = function updateObservedNodes() {
1407
+ if (!mutationObserver) {
1408
+ return;
1409
+ }
1410
+ mutationObserver.disconnect();
1411
+ if (state.active && !state.paused) {
1412
+ state.containers.map(function (container) {
1413
+ mutationObserver.observe(container, {
1414
+ subtree: true,
1415
+ childList: true
1416
+ });
1417
+ });
1418
+ }
1419
+ };
1420
+
1421
+ //
1422
+ // TRAP DEFINITION
1423
+ //
1424
+
1425
+ trap = {
1426
+ get active() {
1427
+ return state.active;
1428
+ },
1429
+ get paused() {
1430
+ return state.paused;
1431
+ },
1432
+ activate: function activate(activateOptions) {
1433
+ if (state.active) {
1434
+ return this;
1435
+ }
1436
+ var onActivate = getOption(activateOptions, 'onActivate');
1437
+ var onPostActivate = getOption(activateOptions, 'onPostActivate');
1438
+ var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
1439
+ if (!checkCanFocusTrap) {
1440
+ updateTabbableNodes();
1441
+ }
1442
+ state.active = true;
1443
+ state.paused = false;
1444
+ state.nodeFocusedBeforeActivation = doc.activeElement;
1445
+ onActivate === null || onActivate === undefined || onActivate();
1446
+ var finishActivation = function finishActivation() {
1447
+ if (checkCanFocusTrap) {
1448
+ updateTabbableNodes();
1449
+ }
1450
+ addListeners();
1451
+ updateObservedNodes();
1452
+ onPostActivate === null || onPostActivate === undefined || onPostActivate();
1453
+ };
1454
+ if (checkCanFocusTrap) {
1455
+ checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
1456
+ return this;
1457
+ }
1458
+ finishActivation();
1459
+ return this;
1460
+ },
1461
+ deactivate: function deactivate(deactivateOptions) {
1462
+ if (!state.active) {
1463
+ return this;
1464
+ }
1465
+ var options = _objectSpread2({
1466
+ onDeactivate: config.onDeactivate,
1467
+ onPostDeactivate: config.onPostDeactivate,
1468
+ checkCanReturnFocus: config.checkCanReturnFocus
1469
+ }, deactivateOptions);
1470
+ clearTimeout(state.delayInitialFocusTimer); // noop if undefined
1471
+ state.delayInitialFocusTimer = undefined;
1472
+ removeListeners();
1473
+ state.active = false;
1474
+ state.paused = false;
1475
+ updateObservedNodes();
1476
+ activeFocusTraps.deactivateTrap(trapStack, trap);
1477
+ var onDeactivate = getOption(options, 'onDeactivate');
1478
+ var onPostDeactivate = getOption(options, 'onPostDeactivate');
1479
+ var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
1480
+ var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
1481
+ onDeactivate === null || onDeactivate === undefined || onDeactivate();
1482
+ var finishDeactivation = function finishDeactivation() {
1483
+ delay(function () {
1484
+ if (returnFocus) {
1485
+ _tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
1486
+ }
1487
+ onPostDeactivate === null || onPostDeactivate === undefined || onPostDeactivate();
1488
+ });
1489
+ };
1490
+ if (returnFocus && checkCanReturnFocus) {
1491
+ checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
1492
+ return this;
1493
+ }
1494
+ finishDeactivation();
1495
+ return this;
1496
+ },
1497
+ pause: function pause(pauseOptions) {
1498
+ if (!state.active) {
1499
+ return this;
1500
+ }
1501
+ state.manuallyPaused = true;
1502
+ return this._setPausedState(true, pauseOptions);
1503
+ },
1504
+ unpause: function unpause(unpauseOptions) {
1505
+ if (!state.active) {
1506
+ return this;
1507
+ }
1508
+ state.manuallyPaused = false;
1509
+ if (trapStack[trapStack.length - 1] !== this) {
1510
+ return this;
1511
+ }
1512
+ return this._setPausedState(false, unpauseOptions);
1513
+ },
1514
+ updateContainerElements: function updateContainerElements(containerElements) {
1515
+ var elementsAsArray = [].concat(containerElements).filter(Boolean);
1516
+ state.containers = elementsAsArray.map(function (element) {
1517
+ return typeof element === 'string' ? doc.querySelector(element) : element;
1518
+ });
1519
+ if (state.active) {
1520
+ updateTabbableNodes();
1521
+ }
1522
+ updateObservedNodes();
1523
+ return this;
1524
+ }
1525
+ };
1526
+ Object.defineProperties(trap, {
1527
+ _isManuallyPaused: {
1528
+ value: function value() {
1529
+ return state.manuallyPaused;
1530
+ }
1531
+ },
1532
+ _setPausedState: {
1533
+ value: function value(paused, options) {
1534
+ if (state.paused === paused) {
1535
+ return this;
1536
+ }
1537
+ state.paused = paused;
1538
+ if (paused) {
1539
+ var onPause = getOption(options, 'onPause');
1540
+ var onPostPause = getOption(options, 'onPostPause');
1541
+ onPause === null || onPause === undefined || onPause();
1542
+ removeListeners();
1543
+ updateObservedNodes();
1544
+ onPostPause === null || onPostPause === undefined || onPostPause();
1545
+ } else {
1546
+ var onUnpause = getOption(options, 'onUnpause');
1547
+ var onPostUnpause = getOption(options, 'onPostUnpause');
1548
+ onUnpause === null || onUnpause === undefined || onUnpause();
1549
+ updateTabbableNodes();
1550
+ addListeners();
1551
+ updateObservedNodes();
1552
+ onPostUnpause === null || onPostUnpause === undefined || onPostUnpause();
1553
+ }
1554
+ return this;
1555
+ }
1556
+ }
1557
+ });
1558
+
1559
+ // initialize container elements
1560
+ trap.updateContainerElements(elements);
1561
+ return trap;
1562
+ };
1563
+
1564
+ const eventJumbotronExampleCss = "h1.sc-event-jumbotron-example,h2.sc-event-jumbotron-example,h3.sc-event-jumbotron-example,h4.sc-event-jumbotron-example,h5.sc-event-jumbotron-example,h6.sc-event-jumbotron-example,p.sc-event-jumbotron-example,ul.sc-event-jumbotron-example,li.sc-event-jumbotron-example,ptc-subnav.sc-event-jumbotron-example,ptc-tab-list.sc-event-jumbotron-example,ptc-link.sc-event-jumbotron-example,ptc-square-card.sc-event-jumbotron-example,.hyphenate-text.sc-event-jumbotron-example,ptc-footer.sc-event-jumbotron-example{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-event-jumbotron-example,h2.sc-event-jumbotron-example,h3.sc-event-jumbotron-example,h4.sc-event-jumbotron-example,h5.sc-event-jumbotron-example,h6.sc-event-jumbotron-example,p.sc-event-jumbotron-example,ul.sc-event-jumbotron-example,li.sc-event-jumbotron-example,ptc-subnav.sc-event-jumbotron-example,ptc-tab-list.sc-event-jumbotron-example,ptc-link.sc-event-jumbotron-example,ptc-square-card.sc-event-jumbotron-example,.hyphenate-text.sc-event-jumbotron-example,ptc-footer.sc-event-jumbotron-example{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.sc-event-jumbotron-example-h{display:block;position:relative}.event-jumbotron.sc-event-jumbotron-example{margin-bottom:3rem;width:100%}.white-placeholder.sc-event-jumbotron-example{position:absolute;height:130px;width:100%;background-color:#F3f3f3;bottom:0px}.jumbotron-cards-wrapper.sc-event-jumbotron-example{z-index:1;position:relative;display:flex;flex-direction:column}.jumbotron-cards.sc-event-jumbotron-example{display:flex;gap:24px;overflow-x:auto;padding:0 24px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;cursor:grab}.jumbotron-cards.sc-event-jumbotron-example::-webkit-scrollbar{display:none}.jumbotron-cards.dragging.sc-event-jumbotron-example{cursor:grabbing}.card.sc-event-jumbotron-example{flex:1 0 auto;width:250px;height:414px;background:transparent;border-radius:var(--ptc-border-radius-standard);display:flex;justify-content:center;align-items:center;text-align:center;flex-direction:column;padding:24px;position:relative}.card.sc-event-jumbotron-example::after{content:\"\";position:absolute;top:0;left:0;bottom:0;right:0;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);z-index:-1;border-radius:var(--ptc-border-radius-standard)}.card.sc-event-jumbotron-example:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.card.sc-event-jumbotron-example ptc-img.sc-event-jumbotron-example::after{content:\"\";top:0px;left:0px;position:absolute;width:100%;height:100%;border-radius:var(--ptc-border-radius-standard);background:linear-gradient(0deg, black 0%, black 100%);opacity:0.7;transition:opacity var(--ptc-transition-slow) ease-in-out;border:none;outline:1px solid rgba(255, 255, 255, 0.1);outline-offset:-1px}.card.sc-event-jumbotron-example:hover ptc-img.sc-event-jumbotron-example::after{opacity:0.8}.card.sc-event-jumbotron-example:focus ptc-img.sc-event-jumbotron-example::after,.card.sc-event-jumbotron-example:active ptc-img.sc-event-jumbotron-example::after{opacity:0.85}.text-wrapper.sc-event-jumbotron-example{align-self:flex-start;text-align:left}.card-title.sc-event-jumbotron-example{color:var(--color-white);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-x-large);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);position:relative;z-index:2;margin-top:0;margin-bottom:var(--ptc-element-spacing-06)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-weight:var(--ptc-font-weight-medium);display:inline-block}.cta-all.sc-event-jumbotron-example{margin-right:var(--ptc-element-spacing-05)}.panel.sc-event-jumbotron-example{display:none;visibility:hidden}@media only screen and (min-width: 768px){.card-title.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}}@media only screen and (min-width: 992px){.card-title.sc-event-jumbotron-example{font-size:var(--ptc-font-size-x-large)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-size:var(--ptc-font-size-x-large)}.cta-group.sc-event-jumbotron-example{margin-bottom:88px}.jumbotron-cards.sc-event-jumbotron-example{overflow-x:visible;justify-content:space-between;cursor:auto;transition:transform 0.3s ease-in-out;width:100%;padding-left:0px;padding-right:0px}.card.sc-event-jumbotron-example{width:auto;height:530px;padding:var(--ptc-element-spacing-06);cursor:pointer;flex:1}.card.hidden.sc-event-jumbotron-example{opacity:0;pointer-events:none}.card.active.sc-event-jumbotron-example{min-height:530px;border-top-right-radius:0px;border-bottom-right-radius:0px;box-shadow:var(--ptc-shadow-x-large);height:auto}.card.active.sc-event-jumbotron-example ptc-img.sc-event-jumbotron-example::after{border-top-right-radius:0px;border-bottom-right-radius:0px}.card.active.sc-event-jumbotron-example:hover ptc-img.sc-event-jumbotron-example::after{opacity:0.7}.card.active.sc-event-jumbotron-example:focus ptc-img.sc-event-jumbotron-example::after,.card.active.sc-event-jumbotron-example:active ptc-img.sc-event-jumbotron-example::after{opacity:0.7}.panel.sc-event-jumbotron-example{visibility:hidden;opacity:0;position:absolute;top:0;left:0;min-height:530px;padding:40px;background:var(--color-white);border-radius:var(--ptc-border-radius-standard);box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;z-index:10}.panel.visible.sc-event-jumbotron-example{visibility:visible;opacity:1;border-top-left-radius:0px;border-bottom-left-radius:0px;box-shadow:var(--ptc-shadow-x-large);height:auto}.close-panel.sc-event-jumbotron-example{position:absolute;top:0px;right:0px;background:var(--color-white);border:none;text-align:center;cursor:pointer;padding:0px;margin:5px}.hide-scrollbar.sc-event-jumbotron-example{margin-left:-40px;margin-right:-40px}}@media only screen and (min-width: 1200px){.card-title.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}.jumbotron-cards.sc-event-jumbotron-example{padding:0;gap:32px}}@media only screen and (min-width: 1440px){.jumbotron-cards.sc-event-jumbotron-example{gap:40px}}";
1565
+
1566
+ const EventJumbotronExample = class {
1567
+ constructor(hostRef) {
1568
+ index.registerInstance(this, hostRef);
1569
+ this.startX = 0;
1570
+ this.scrollLeft = 0;
1571
+ this.updateContainerClass = () => {
1572
+ if (this.isDesktop) {
1573
+ this.sliderWrapper.classList.add('ptc-container', 'u-paddingRight-flush', 'u-paddingLeft-flush');
1574
+ this.disableDragging();
1575
+ }
1576
+ else {
1577
+ this.sliderWrapper.classList.remove('ptc-container', 'u-paddingRight-flush', 'u-paddingLeft-flush');
1578
+ this.enableDragging();
1579
+ }
1580
+ };
1581
+ this.startDragging = (e) => {
1582
+ this.isMouseDown = true;
1583
+ this.isDragging = false;
1584
+ this.startX = e.pageX;
1585
+ this.scrollLeft = this.slider.scrollLeft;
1586
+ };
1587
+ this.performDragging = (e) => {
1588
+ if (!this.isMouseDown)
1589
+ return;
1590
+ const x = e.pageX - this.slider.offsetLeft;
1591
+ const walk = x - this.startX;
1592
+ this.isDragging = Math.abs(walk) > 5;
1593
+ this.slider.scrollLeft = this.scrollLeft - walk;
1594
+ };
1595
+ this.stopDragging = () => {
1596
+ this.isMouseDown = false;
1597
+ };
1598
+ this.closeActiveModal = () => {
1599
+ document.querySelectorAll('ptc-modal').forEach(modal => {
1600
+ if (modal.show)
1601
+ modal.show = false;
1602
+ });
1603
+ };
1604
+ this.cards = [];
1605
+ this.modalBtnCloseText = 'Close';
1606
+ this.activePanel = null;
1607
+ this.activeCard = null;
1608
+ this.isDragging = false;
1609
+ this.isMouseDown = false;
1610
+ this.isDesktop = window.innerWidth >= 992;
1611
+ this.openedWithKeyboard = false;
1612
+ }
1613
+ onScreenStatusChange() {
1614
+ !this.isDesktop && this.closeActiveModal();
1615
+ }
1616
+ handleCardClick(cardIndex) {
1617
+ const card = this.slider.children[cardIndex];
1618
+ const panelID = `panel-${cardIndex}`;
1619
+ //const cardID = `card-${cardIndex}`
1620
+ const panel = document.getElementById(panelID);
1621
+ if (this.isDesktop && panel) {
1622
+ this.showPanel(card, panel);
1623
+ if (this.openedWithKeyboard) {
1624
+ setTimeout(() => {
1625
+ this.trap = createFocusTrap(panel, {
1626
+ escapeDeactivates: true,
1627
+ clickOutsideDeactivates: true,
1628
+ onActivate: () => {
1629
+ if (!this.openedWithKeyboard) {
1630
+ this.trap.pause(); // Prevent focus trapping when opened by mouse
1631
+ }
1632
+ },
1633
+ onDeactivate: () => {
1634
+ this.closePanel(panelID);
1635
+ this.trap.deactivate();
1636
+ },
1637
+ tabbableOptions: {
1638
+ getShadowRoot: true,
1639
+ },
1640
+ });
1641
+ this.trap.activate();
1642
+ }, 500);
1643
+ }
1644
+ else {
1645
+ if (this.trap) {
1646
+ this.trap.deactivate();
1647
+ }
1648
+ }
1649
+ }
1650
+ else if (!this.isDesktop) {
1651
+ if (!this.isDragging) {
1652
+ const modal = document.getElementById(`modal-${cardIndex}`);
1653
+ console.log('open: ' + modal.id);
1654
+ modal.show = true;
1655
+ }
1656
+ }
1657
+ }
1658
+ showPanel(card, panel) {
1659
+ if (this.activePanel)
1660
+ return;
1661
+ this.slider.style.transform = `translateX(-${card.offsetLeft}px)`;
1662
+ Array.from(this.slider.children).forEach(c => {
1663
+ if (c !== card)
1664
+ c.classList.add('hidden');
1665
+ });
1666
+ panel.style.display = 'block';
1667
+ panel.style.width = `calc(100% - ${card.getBoundingClientRect().width}px`;
1668
+ card.style.height = `${panel.getBoundingClientRect().height}px`;
1669
+ this.arrowButtons = document.querySelectorAll('ptc-scroll-button');
1670
+ setTimeout(() => {
1671
+ panel.style.transform = `translateX(${card.offsetWidth}px)`;
1672
+ panel.classList.add('visible');
1673
+ card.classList.add('active');
1674
+ this.arrowButtons.forEach(button => button.initVisibility());
1675
+ this.activePanel = panel.id;
1676
+ this.activeCard = card.id;
1677
+ }, 100);
1678
+ }
1679
+ closePanel(panelId) {
1680
+ const panel = document.getElementById(panelId);
1681
+ if (panel) {
1682
+ panel.classList.remove('visible');
1683
+ panel.addEventListener('transitionend', () => {
1684
+ if (!panel.classList.contains('visible')) {
1685
+ panel.style.display = 'none';
1686
+ }
1687
+ }, { once: true });
1688
+ }
1689
+ this.activePanel = null;
1690
+ this.slider.style.transform = 'translateX(0)';
1691
+ Array.from(this.slider.children).forEach(card => {
1692
+ card.style.cssText = '';
1693
+ });
1694
+ setTimeout(() => {
1695
+ Array.from(this.slider.children).forEach(card => {
1696
+ card.classList.remove('hidden', 'active');
1697
+ });
1698
+ }, 300);
1699
+ if (this.trap) {
1700
+ this.trap.deactivate();
1701
+ }
1702
+ }
1703
+ enableDragging() {
1704
+ this.slider.addEventListener('mousedown', this.startDragging);
1705
+ this.slider.addEventListener('mousemove', this.performDragging);
1706
+ ['mouseup', 'mouseleave'].forEach(event => this.slider.addEventListener(event, this.stopDragging));
1707
+ }
1708
+ disableDragging() {
1709
+ this.slider.removeEventListener('mousedown', this.startDragging);
1710
+ this.slider.removeEventListener('mousemove', this.performDragging);
1711
+ ['mouseup', 'mouseleave'].forEach(event => this.slider.removeEventListener(event, this.stopDragging));
1712
+ }
1713
+ componentDidLoad() {
1714
+ // const cardOverlays = document.querySelectorAll('overlay');
1715
+ this.sliderWrapper = document.querySelector('.jumbotron-cards-wrapper');
1716
+ this.slider = document.querySelector('.jumbotron-cards');
1717
+ this.updateContainerClass();
1718
+ window.addEventListener('resize', () => {
1719
+ this.isDesktop = window.innerWidth >= 992;
1720
+ this.updateContainerClass();
1721
+ this.activePanel && this.activeCard && this.closePanel(this.activePanel);
1722
+ });
1723
+ document.addEventListener('keydown', event => {
1724
+ if (event.key === 'Tab' || event.key === 'Enter' || event.key === ' ') {
1725
+ this.openedWithKeyboard = true;
1726
+ console.log('keyboard status: ' + this.openedWithKeyboard);
1727
+ }
1728
+ });
1729
+ document.addEventListener('mousedown', () => {
1730
+ this.openedWithKeyboard = false;
1731
+ });
1732
+ // cardOverlays.forEach( (ele=> {(ele as HTMLPtcOverlayElement).setOverlayColorValue('linear-gradient(0deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.70) 100%)')}))
1733
+ }
1734
+ render() {
1735
+ const modalContentSlots = Array.from(this.el.querySelectorAll('template'));
1736
+ return [
1737
+ index.h("div", { class: {
1738
+ 'event-jumbotron': true,
1739
+ 'ptc-container': this.isDesktop,
1740
+ } }, index.h("div", { class: "jumbotron-cards-wrapper" }, index.h("div", { class: "jumbotron-cards" }, this.cards.map((card, index$1) => (index.h("div", { id: `card-${index$1}`, class: "card", onClick: () => this.handleCardClick(index$1), "data-panel": `panel-${index$1}`, onKeyPress: () => this.handleCardClick(index$1), tabindex: "0" }, index.h("ptc-img", { "border-radius": "radius-standard", "image-type": "smart-bg", "img-url": card.cardBg, "load-mode": "lazy-bg", styles: `ptc-img{position: absolute; width: 100%; height: 100%; z-index: 0} ${this.activePanel && 'ptc-img div{border-top-right-radius:0px !important;border-bottom-right-radius:0px !important;'}` }), index.h("div", { class: "text-wrapper" }, index.h("h3", { class: "card-title" }, card.title, " ", index.h("span", null, card.description)), !this.activePanel && [index.h("div", { innerHTML: card.panelContent })]))))), this.cards.map((_, index$1) => (index.h("div", { id: `panel-${index$1}`, class: "panel" }, index.h("button", { tabindex: "-1", class: "close-panel", onClick: () => this.closePanel(`panel-${index$1}`), "aria-label": "Close panel" }, index.h("ptc-close-icon", null)), index.h("slot", { name: `panel-content-${index$1}` })))), !this.isDesktop &&
1741
+ this.cards.map((_, index$1) => (index.h("ptc-modal", { id: `modal-${index$1}`, show: false, "close-on-blur": true, "modal-type": "event-listing", "custom-class": "event-mobile-modal", headerOnlyText1: this.cards[index$1].title, headerOnlyText2: this.cards[index$1].description, headerOnlyBg: this.cards[index$1].cardBg, bottomCloseBtn: this.modalBtnCloseText }, index.h("div", { innerHTML: modalContentSlots[index$1].innerHTML })))))),
1742
+ index.h("div", { class: "white-placeholder" }),
1743
+ ];
1744
+ }
1745
+ get el() { return index.getElement(this); }
1746
+ static get watchers() { return {
1747
+ "isDesktop": ["onScreenStatusChange"]
1748
+ }; }
1749
+ };
1750
+ EventJumbotronExample.style = eventJumbotronExampleCss;
1751
+
1752
+ const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}svg.sc-icon-asset:focus{outline:none !important}svg[tabIndex=\"0\"].sc-icon-asset:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}svg[tabIndex=\"0\"].sc-icon-asset:focus{outline:none !important}";
1753
+
1754
+ const IconAsset = class {
1755
+ constructor(hostRef) {
1756
+ index.registerInstance(this, hostRef);
1757
+ this.ready = index.createEvent(this, "ready", 7);
1758
+ this.regularSprite = index.getAssetPath('./media/regular.svg');
1759
+ this.solidSprite = index.getAssetPath('./media/solid.svg');
1760
+ this.brandSprite = index.getAssetPath('./media/brands.svg');
1761
+ this.ptcSprite = index.getAssetPath('./media/designer-v6.0.6.svg');
1762
+ this.name = undefined;
1763
+ this.size = 'xx-small';
1764
+ this.type = 'regular';
1765
+ this.spin = '';
1766
+ this.pulse = '';
1767
+ this.color = 'default';
1768
+ this.isMobileSelect = undefined;
1769
+ this.injectedStyle = undefined;
1770
+ this.focusOn = false;
1771
+ this.trackerId = "";
1772
+ }
1773
+ componentDidLoad() {
1774
+ this.ready.emit({
1775
+ 'regular-icons': this.regularSprite,
1776
+ 'sold-icons': this.solidSprite,
1777
+ 'brand-icons': this.brandSprite,
1778
+ 'ptc-icons': this.ptcSprite
1779
+ });
1780
+ }
1781
+ render() {
1782
+ const classMap = this.getCssClassMap();
1783
+ if (this.type == 'brands') {
1784
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
1785
+ }
1786
+ else if (this.type == 'solid') {
1787
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
1788
+ }
1789
+ else if (this.type == 'ptc') {
1790
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap, "aria-hidden": this.isMobileSelect && "true", tabindex: this.focusOn ? 0 : -1, id: this.trackerId }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
1791
+ }
1792
+ else {
1793
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
1794
+ }
1795
+ }
1796
+ getCssClassMap() {
1797
+ return {
1798
+ [this.size]: true,
1799
+ [this.spin]: true,
1800
+ [this.pulse]: true,
1801
+ [this.color]: true,
1802
+ ['ismobileselect']: this.isMobileSelect ? true : false,
1803
+ ['mf-listen']: this.trackerId !== "" ? true : false
1804
+ };
1805
+ }
1806
+ static get assetsDirs() { return ["media"]; }
1807
+ };
1808
+ IconAsset.style = iconAssetCss;
1809
+
1810
+ const listItemCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:var(--color-white);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);display:flex;align-items:baseline}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0;margin-left:2px}:host(.breadcrumb) li a.item-link{color:var(--color-white);font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}:host(.breadcrumb) li a.item-link:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);padding-bottom:5px;padding-right:5px}:host(.breadcrumb-center) li{display:inline}:host(.list-green){display:block;margin-bottom:16px}:host(.list-green) li a{font-size:var(--ptc-font-size-xx-small);color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--color-green-04);font-weight:var(--ptc-font-weight-bold);transition:color var(--ptc-transition-medium) var(--ptc-ease-inout);line-height:var(--ptc-line-height-p);text-underline-offset:4px}:host(.list-green) li a:hover{color:var(--color-green-04)}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);font-style:normal;font-stretch:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.list-footer) li a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none !important;border-color:white !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}:host li .has-before-home-icon{display:block}@media only screen and (min-width: 480px){:host li .has-before-home-icon{display:none}}";
1811
+
1812
+ const ListItem = class {
1813
+ constructor(hostRef) {
1814
+ index.registerInstance(this, hostRef);
1815
+ this.listType = 'list-primary';
1816
+ this.linkHref = undefined;
1817
+ this.flushBefore = false;
1818
+ this.linkTarget = '_self';
1819
+ this.hasBeforeHomeIcon = false;
1820
+ this.trackerId = undefined;
1821
+ this.color = undefined;
1822
+ this.styles = undefined;
1823
+ this.ariaLabel = '';
1824
+ }
1825
+ render() {
1826
+ const classMap = this.getCssClassMap();
1827
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", { id: this.trackerId }, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {}), (this.ariaLabel !== '' ? { 'aria-label': this.ariaLabel } : {}), { tabindex: "0" }), index.h("slot", null))) : (index.h("slot", null)))));
1828
+ }
1829
+ getCssClassMap() {
1830
+ let bcEnable = false;
1831
+ if (this.hostElement && this.hostElement.parentElement) {
1832
+ try {
1833
+ bcEnable = (this.hostElement.parentElement.classList.contains('center') && this.hostElement.parentElement.tagName === 'PTC-BREADCRUMB');
1834
+ }
1835
+ catch (err) {
1836
+ console.log(err);
1837
+ }
1838
+ }
1839
+ return {
1840
+ [this.listType]: true,
1841
+ ['flush-before']: this.flushBefore ? true : false,
1842
+ [this.color]: !!this.color ? true : false,
1843
+ ['breadcrumb-center']: bcEnable,
1844
+ ['mf-listen']: true
1845
+ };
1846
+ }
1847
+ get hostElement() { return index.getElement(this); }
1848
+ };
1849
+ ListItem.style = listItemCss;
1850
+
1851
+ const ptcBreadcrumbCss = "h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.sc-ptc-breadcrumb-h{margin-top:var(--ptc-element-spacing-05);display:flex;align-items:flex-start}.sc-ptc-breadcrumb-h .visually-hidden.sc-ptc-breadcrumb{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{position:relative;list-style:none;margin:0;padding:0 0 0 22px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{position:relative;display:inline;font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);word-break:initial;color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb::before{content:\"/\";margin:0 3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:absolute;left:0;margin-top:-3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb::before{display:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout);color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:active{transition:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);display:inline-block}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible.dark-mode-link:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-white)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-white)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-black)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-black)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-green-07)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-green-07)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-06)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-06)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-05)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-05)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-10)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-10)}.left.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-start;align-items:flex-end}.center.sc-ptc-breadcrumb-h{display:flex;justify-content:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{padding:0;text-align:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{display:inline-block}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:relative;left:auto;margin-top:0;vertical-align:text-bottom;margin-bottom:-1px}.right.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-end}.remove-top-margin.sc-ptc-breadcrumb-h{margin-top:0px !important}";
1852
+
1853
+ const PtcBreadcrumb = class {
1854
+ constructor(hostRef) {
1855
+ index.registerInstance(this, hostRef);
1856
+ this.position = undefined;
1857
+ this.removeTopMargin = false;
1858
+ this.color = 'white';
1859
+ this.isDarkMode = false;
1860
+ this.styles = undefined;
1861
+ }
1862
+ componentWillLoad() {
1863
+ this.listItems = this.hostElement.querySelectorAll('list-item');
1864
+ }
1865
+ componentDidLoad() {
1866
+ if (this.listItems) {
1867
+ this.hostElement.querySelectorAll('list-item').forEach((item) => {
1868
+ item.remove();
1869
+ });
1870
+ }
1871
+ }
1872
+ render() {
1873
+ const classMap = this.getCssClassMap();
1874
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("nav", { "aria-label": "Breadcrumb" }, index.h("ol", { class: "ptc-breadcrumb-ol" }, index.h("li", { class: 'home-link mf-listen', id: "homeLinkID" }, index.h("a", { href: "/", "aria-label": "Home Link", class: { ['breadcrumb-item-link']: true, ['dark-mode-link']: this.isDarkMode } }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color }))), Array.from(this.listItems).map((item, index$1, array) => {
1875
+ const textContent = item.textContent.trim();
1876
+ const href = item.getAttribute('link-href');
1877
+ return (index.h("li", { key: index$1, class: "mf-listen", id: `breadcrumb` + index$1 + `ID` }, index$1 < array.length - 1 ? (index.h("a", { href: href, target: '_self', class: { ['breadcrumb-item-link']: true, ['dark-mode-link']: this.isDarkMode } }, textContent)) : (textContent), index.h("span", { class: "visually-hidden" }, "/")));
1878
+ })))));
1879
+ }
1880
+ getCssClassMap() {
1881
+ return {
1882
+ [this.position]: !!this.position && this.position !== undefined ? true : false,
1883
+ ['remove-top-margin']: this.removeTopMargin ? true : false,
1884
+ [this.color]: true
1885
+ };
1886
+ }
1887
+ get hostElement() { return index.getElement(this); }
1888
+ };
1889
+ PtcBreadcrumb.style = ptcBreadcrumbCss;
1890
+
1891
+ const ptcButtonCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}button.disabled{pointer-events:none;opacity:0.6}button{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.reveal-down .content{transition:opacity var(--ptc-transition-medium) var(--ptc-ease-out);opacity:0;font-size:var(--ptc-font-size-xx-small)}button.reveal-down .icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;align-content:center;height:16px}button.reveal-down .icon-wrapper .icon{transition:top var(--ptc-transition-fast) var(--ptc-ease-out);position:absolute;display:inline-block;top:-12px}button:hover.reveal-down .content{opacity:1}button:hover.reveal-down .icon-wrapper .icon{top:4px}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}button.left{text-align:left}button.right{text-align:right}button.center{text-align:center}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}a.left{text-align:left}a.right{text-align:right}a.center{text-align:center}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus-visible{border-radius:4px !important;border:2px solid #FFF !important;outline:5px solid #003DD6 !important;background-color:transparent !important;outline-offset:0px !important}.nav:focus{text-decoration:none;border:solid 2px transparent;outline:none}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus-visible,.ptc-quaternary:focus-visible,.ptc-secondary:focus-visible,.ptc-tertiary:focus-visible,.icon-toggle:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary.small,.ptc-quaternary.small,.ptc-secondary.small,.ptc-tertiary.small,.icon-toggle.small{padding:var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}.ptc-primary.small span,.ptc-quaternary.small span,.ptc-secondary.small span,.ptc-tertiary.small span,.icon-toggle.small span{font-size:var(--ptc-font-size-xx-small)}.ptc-primary.medium,.ptc-quaternary.medium,.ptc-secondary.medium,.ptc-tertiary.medium,.icon-toggle.medium{padding:14px 20px}.ptc-primary.medium span,.ptc-quaternary.medium span,.ptc-secondary.medium span,.ptc-tertiary.medium span,.icon-toggle.medium span{font-size:var(--ptc-font-size-small)}.ptc-primary.large,.ptc-quaternary.large,.ptc-secondary.large,.ptc-tertiary.large,.icon-toggle.large{padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-06)}.ptc-primary.large span,.ptc-quaternary.large span,.ptc-secondary.large span,.ptc-tertiary.large span,.icon-toggle.large span{font-size:var(--ptc-font-size-large)}.ptc-primary.acc-alt-style:focus-visible,.ptc-quaternary.acc-alt-style:focus-visible,.ptc-secondary.acc-alt-style:focus-visible,.ptc-tertiary.acc-alt-style:focus-visible,.icon-toggle.acc-alt-style:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black);transition:none}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black);transition:none}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03);transition:none}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-tertiary ::slotted(a){color:var(--color-gray-10) !important;text-decoration-line:none !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard);cursor:pointer}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09);transition:none}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{transition:none;background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{transition:none;background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.tracker-div{display:inline;display:inline-block}.focus-state-dark-background:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}";
1892
+
1893
+ const PtcButton = class {
1894
+ constructor(hostRef) {
1895
+ index.registerInstance(this, hostRef);
1896
+ this.clickEvent = index.createEvent(this, "clickEvent", 7);
1897
+ this.disabled = false;
1898
+ this.active = false;
1899
+ this.type = 'button';
1900
+ this.color = 'ptc-primary';
1901
+ this.iconAnimation = '';
1902
+ this.iconPosition = 'icon-right';
1903
+ this.linkHref = undefined;
1904
+ this.linkTitle = undefined;
1905
+ this.target = '_self';
1906
+ this.rel = undefined;
1907
+ this.tabNav = 0;
1908
+ this.styles = undefined;
1909
+ this.textAlign = undefined;
1910
+ this.enableAccessibilityAltStyle = false;
1911
+ this.size = undefined;
1912
+ this.buttonTitle = undefined;
1913
+ this.ariaLabel = '';
1914
+ this.seoCompatibilityMode = false;
1915
+ this.maintainContent = false;
1916
+ this.trackerId = undefined;
1917
+ this.darkFocusState = false;
1918
+ }
1919
+ clickEventHandler() {
1920
+ this.clickEvent.emit();
1921
+ }
1922
+ componentWillLoad() {
1923
+ utils.CheckDarkFocusState(this, this.el);
1924
+ }
1925
+ seoCompRender() {
1926
+ const classMap = this.getCssClassMap();
1927
+ const Tag = !!this.linkHref ? 'a' : 'button';
1928
+ const [TagType, firstChild] = utils.getSeoTagType(this.el, Tag);
1929
+ const html = firstChild && firstChild.innerHTML;
1930
+ if (this.el == firstChild) {
1931
+ this.el.innerHTML = '';
1932
+ }
1933
+ if (this.maintainContent) {
1934
+ this.el.innerHTML = html;
1935
+ }
1936
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, index.h(TagType, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), index.h("span", { innerHTML: html }, index.h("slot", { name: "slot-before-text" }), index.h("slot", { name: "slot-after-text" }))))));
1937
+ }
1938
+ standardRender() {
1939
+ const classMap = this.getCssClassMap();
1940
+ const Tag = !!this.linkHref ? 'a' : 'button';
1941
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 }), { title: this.buttonTitle }, (this.ariaLabel !== '' ? { ariaLabel: this.ariaLabel } : {})), this.iconAnimation == 'reveal-down' ?
1942
+ index.h("span", null, index.h("div", { class: "content" }, index.h("slot", null)), index.h("div", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("slot", { name: "slot-after-text" })))) :
1943
+ index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" }))))));
1944
+ }
1945
+ render() {
1946
+ if (this.seoCompatibilityMode) {
1947
+ return this.seoCompRender();
1948
+ }
1949
+ else {
1950
+ return this.standardRender();
1951
+ }
1952
+ }
1953
+ getCssClassMap() {
1954
+ return {
1955
+ [this.color]: true,
1956
+ [this.iconAnimation]: true,
1957
+ [this.iconPosition]: true,
1958
+ ['disabled']: this.disabled ? true : false,
1959
+ ['active']: this.active ? true : false,
1960
+ [this.textAlign]: true,
1961
+ [this.size]: true,
1962
+ ['acc-alt-style']: this.enableAccessibilityAltStyle,
1963
+ ['focus-state-dark-background']: this.darkFocusState
1964
+ };
1965
+ }
1966
+ get el() { return index.getElement(this); }
1967
+ };
1968
+ PtcButton.style = ptcButtonCss;
1969
+
1970
+ const ptcCardContentCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;height:100%}:host ::slotted([slot=seo-content]){display:none}:host(.speed-bump){border:1px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-large);padding:var(--ptc-element-spacing-06) 28px var(--ptc-element-spacing-06) 28px;text-align:center}:host(.speed-bump-2){border:1px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-large);padding:var(--ptc-element-spacing-07) var(--ptc-element-spacing-05);text-align:center}@media only screen and (min-width: 768px){:host(.speed-bump){text-align:left}}@media only screen and (min-width: 768px){:host(.speed-bump-2){text-align:left}}:host(.card-tall) .ptc-card-content-wrapper,:host(.card-video) .ptc-card-content-wrapper,:host(.card-wide) .ptc-card-content-wrapper,:host(.card-playlist) .ptc-card-content-wrapper{border-radius:var(--ptc-border-radius-large);position:relative}:host(.card-tall) .ptc-card-content-wrapper::before,:host(.card-video) .ptc-card-content-wrapper::before,:host(.card-wide) .ptc-card-content-wrapper::before,:host(.card-playlist) .ptc-card-content-wrapper::before{content:\"\";position:absolute;width:100%;height:100%;border-radius:var(--ptc-border-radius-large);top:0;left:0;background:transparent;z-index:1;box-shadow:var(--ptc-shadow-x-small);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-tall) .ptc-card-content-wrapper::after,:host(.card-video) .ptc-card-content-wrapper::after,:host(.card-wide) .ptc-card-content-wrapper::after,:host(.card-playlist) .ptc-card-content-wrapper::after{content:url(\"data:image/svg+xml,%3Csvg width='54' height='56' viewBox='0 0 54 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10476)'%3E%3Cpath d='M42 20L12 36V4L42 20Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10476' x='0' y='0' width='54' height='56' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10476'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10476' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A\");position:absolute;opacity:0;top:52.5%;left:50%;transform:translate(-50%, -50%);z-index:2;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.extra-tall) .ptc-card-content-wrapper{border-radius:var(--ptc-border-radius-large);position:relative;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.12)}:host(.card-2up) .ptc-card-content-wrapper{border-radius:var(--ptc-border-radius-large);position:relative}:host(.card-2up) .ptc-card-content-wrapper::before{content:\"\";position:absolute;width:100%;height:100%;border-radius:var(--ptc-border-radius-large);top:0;left:0;background:transparent;z-index:1;box-shadow:var(--ptc-shadow-x-small);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-2up) .ptc-card-content-wrapper::after{content:\"\";position:absolute;opacity:0;top:52.5%;left:50%;transform:translate(-50%, -50%);z-index:2;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-playlist) .ptc-card-content-wrapper{width:112px;height:112px}:host(.card-playlist) .ptc-card-content-wrapper::before{width:112px;height:112px}:host(.card-playlist) .ptc-card-content-wrapper::after{content:url(\"data:image/svg+xml,%3Csvg width='46' height='48' viewBox='0 0 46 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10337)'%3E%3Cpath d='M34 16L12 28V4L34 16Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10337' x='0' y='0' width='46' height='48' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10337'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10337' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A\");width:40px;height:30px;top:50%}:host(.thumbnail-video-preview) .ptc-card-content-wrapper{cursor:pointer;position:relative}:host(.thumbnail-video-preview) .ptc-card-content-wrapper::before{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:transparent;z-index:1;box-shadow:var(--ptc-shadow-x-small);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.thumbnail-video-preview) .ptc-card-content-wrapper::after{content:url(\"data:image/svg+xml,%3Csvg width='54' height='56' viewBox='0 0 54 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_126_10476)'%3E%3Cpath d='M42 20L12 36V4L42 20Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_126_10476' x='0' y='0' width='54' height='56' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='8'/%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_126_10476'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_126_10476' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A\");position:absolute;opacity:1;top:60%;left:50%;transform:translate(-50%, -50%);z-index:2;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.card-video) .ptc-card-content-wrapper::after{top:59.5%}:host(.mouse-hover) .ptc-card-content-wrapper::before{background:rgba(0, 0, 0, 0.6)}:host(.mouse-hover) .ptc-card-content-wrapper::after{opacity:1}:host(.card-tall) .ptc-card-content-wrapper::before,:host(.card-wide) .ptc-card-content-wrapper::before,:host(.card-2up) .ptc-card-content-wrapper::before{height:100%}:host(.card-playlist){flex:1 2 0%;margin-right:var(--ptc-element-spacing-04)}@media only screen and (min-width: 768px){:host(.card-playlist){margin-right:var(--ptc-element-spacing-03)}}@media only screen and (min-width: 992px){:host(.card-playlist) .ptc-card-content-wrapper{width:88px;height:88px}:host(.card-playlist) .ptc-card-content-wrapper::before{width:88px;height:88px}}@media only screen and (min-width: 768px){:host(.card-playlist) .ptc-card-content-wrapper{width:112px;height:112px}:host(.card-playlist) .ptc-card-content-wrapper::before{width:112px;height:112px}}@media screen and (min-width: 1981px){:host(.card-playlist){margin-right:var(--ptc-element-spacing-04)}}@media only screen and (min-width: 1200px){:host(.card-video-intro){flex:80% 8 1}}:host(.card-video) .ptc-card-content-wrapper{padding-bottom:56.25%}:host(.card-video) .ptc-card-content-wrapper ::slotted(*){position:absolute;width:100%;height:100%;top:0;left:0}:host(.card-tall) .ptc-card-content-wrapper{height:322px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:322px}:host(.card-wide) .ptc-card-content-wrapper{height:268px}:host(.card-wide) .ptc-card-content-wrapper ::slotted(*){height:268px}:host(.card-2up) .ptc-card-content-wrapper{height:322px}:host(.card-2up) .ptc-card-content-wrapper ::slotted(*){height:322px}:host(.extra-tall) .ptc-card-content-wrapper{height:auto}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:auto}:host(.color-outlined){border-radius:var(--ptc-border-radius-large);box-shadow:0px 4px 4px rgba(0, 0, 0, 0.12)}:host(.color-outlined) .ptc-card-content-wrapper{height:235px}:host(.color-outlined) .ptc-card-content-wrapper ::slotted(*){height:235px}@media only screen and (min-width: 480px){:host(.extra-tall) .ptc-card-content-wrapper{height:435px}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:435px}}@media only screen and (min-width: 768px){:host(.card-tall) .ptc-card-content-wrapper{height:325px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:325px}:host(.card-wide) .ptc-card-content-wrapper{height:268px}:host(.card-wide) .ptc-card-content-wrapper ::slotted(*){height:268px}:host(.card-2up) .ptc-card-content-wrapper{height:268px}:host(.card-2up) .ptc-card-content-wrapper ::slotted(*){height:268px}:host(.extra-tall) .ptc-card-content-wrapper{height:507px}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:507px}}@media only screen and (min-width: 992px){:host(.card-tall) .ptc-card-content-wrapper{height:380px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:380px}}@media only screen and (min-width: 1200px){:host(.extra-tall) .ptc-card-content-wrapper{height:663px}:host(.extra-tall) .ptc-card-content-wrapper ::slotted(*){height:663px}}@media only screen and (min-width: 1980px){:host(.card-tall) .ptc-card-content-wrapper{height:546px}:host(.card-tall) .ptc-card-content-wrapper ::slotted(*){height:546px}:host(.card-wide) .ptc-card-content-wrapper{height:376px}:host(.card-wide) .ptc-card-content-wrapper ::slotted(*){height:376px}:host(.card-2up) .ptc-card-content-wrapper{height:376px}:host(.card-2up) .ptc-card-content-wrapper ::slotted(*){height:376px}}:host(.o-red){border:2px solid var(--color-red-07)}:host(.o-green){border:2px solid var(--color-green-07)}:host(.o-slate-grey){border:2px solid var(--color-gray-07)}:host(.o-orange){border:2px solid var(--color-orange-07)}:host(.o-blue){border:2px solid var(--color-blue-07)}";
1971
+
1972
+ const PtcCardContent = class {
1973
+ constructor(hostRef) {
1974
+ index.registerInstance(this, hostRef);
1975
+ this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
1976
+ this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
1977
+ this.cardType = undefined;
1978
+ this.outlineColor = undefined;
1979
+ this.styles = undefined;
1980
+ this.isLoading = false;
1981
+ }
1982
+ hoverEventHandler() {
1983
+ if (!this.el.classList.contains('speed-bump') &&
1984
+ !this.el.classList.contains('card-video-intro') &&
1985
+ !this.el.classList.contains('card-dynamic') &&
1986
+ !this.el.classList.contains('extra-tall')) {
1987
+ this.hoverEvent.emit();
1988
+ this.el.classList.add('mouse-hover');
1989
+ if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && this.el.nextElementSibling) {
1990
+ this.el.nextElementSibling.classList.add('mouse-hover-card-bottom');
1991
+ }
1992
+ }
1993
+ if (this.el.classList.contains('event-podcast')) {
1994
+ const bottomComponent = this.el.nextElementSibling;
1995
+ bottomComponent.addClassOnDefaultSlot();
1996
+ }
1997
+ }
1998
+ leaveEventHandler() {
1999
+ if (!this.el.classList.contains('speed-bump') &&
2000
+ !this.el.classList.contains('card-video-intro') &&
2001
+ !this.el.classList.contains('card-dynamic') &&
2002
+ !this.el.classList.contains('extra-tall')) {
2003
+ this.hoverEvent.emit();
2004
+ this.el.classList.remove('mouse-hover');
2005
+ if (!this.el.classList.contains('card-video') && !this.el.classList.contains('card-playlist') && this.el.nextElementSibling) {
2006
+ this.el.nextElementSibling.classList.remove('mouse-hover-card-bottom');
2007
+ }
2008
+ }
2009
+ if (this.el.classList.contains('event-podcast')) {
2010
+ const bottomComponent = this.el.nextElementSibling;
2011
+ bottomComponent.removeClassOnDefaultSlot();
2012
+ }
2013
+ }
2014
+ async setHeight(height) {
2015
+ this.el.style.height = height + 'px';
2016
+ const image = this.el.querySelector('ptc-picture');
2017
+ image.style.height = height + 'px';
2018
+ }
2019
+ async removeInlineHeight() {
2020
+ this.el.style.removeProperty('height');
2021
+ const image = this.el.querySelector('ptc-picture');
2022
+ if (image)
2023
+ image.style.removeProperty('height');
2024
+ }
2025
+ render() {
2026
+ const classMap = this.getCssClassMap();
2027
+ return (index.h(index.Host, Object.assign({ part: "card-content", class: classMap }, (!this.isLoading ? { onMouseEnter: this.hoverEventHandler.bind(this) } : {}), (!this.isLoading ? { onMouseLeave: this.leaveEventHandler.bind(this) } : {})), this.styles && index.h("style", null, this.styles), index.h("slot", { name: "slot-content" }), index.h("div", { class: "ptc-card-content-wrapper" }, index.h("slot", null))));
2028
+ }
2029
+ getCssClassMap() {
2030
+ return {
2031
+ [this.cardType]: !!this.cardType ? true : false,
2032
+ [this.outlineColor]: !!this.outlineColor ? true : false,
2033
+ };
2034
+ }
2035
+ get el() { return index.getElement(this); }
2036
+ };
2037
+ PtcCardContent.style = ptcCardContentCss;
2038
+
2039
+ const ptcCardWrapperCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host(.card-tall),:host(.card-wide),:host(.card-video),:host(.card-playlist),:host(.card-2up){position:relative}:host(.card-tall) a,:host(.card-wide) a,:host(.card-video) a,:host(.card-playlist) a,:host(.card-2up) a{text-decoration:none !important}:host(.card-tall) a:hover,:host(.card-wide) a:hover,:host(.card-video) a:hover,:host(.card-playlist) a:hover,:host(.card-2up) a:hover{text-decoration:none}:host(.card-tall) a:focus,:host(.card-wide) a:focus,:host(.card-video) a:focus,:host(.card-playlist) a:focus,:host(.card-2up) a:focus{outline:none;text-decoration:none}:host(.card-tall) a:focus-visible,:host(.card-wide) a:focus-visible,:host(.card-video) a:focus-visible,:host(.card-playlist) a:focus-visible,:host(.card-2up) a:focus-visible{outline:none;text-decoration:none}:host(.card-tall) a:focus-visible::before,:host(.card-wide) a:focus-visible::before,:host(.card-video) a:focus-visible::before,:host(.card-playlist) a:focus-visible::before,:host(.card-2up) a:focus-visible::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;border-radius:var(--ptc-border-radius-large);outline:5px solid var(--keyboard-nav-outline)}:host(.card-tall) a.focus-state-dark-background:focus-visible::before,:host(.card-wide) a.focus-state-dark-background:focus-visible::before,:host(.card-video) a.focus-state-dark-background:focus-visible::before,:host(.card-playlist) a.focus-state-dark-background:focus-visible::before,:host(.card-2up) a.focus-state-dark-background:focus-visible::before{border:2px solid white}:host(.card-playlist) div:not(.tracker-div),:host(.card-playlist) a{display:flex;text-decoration:none;outline:none}:host(.card-playlist) div:not(.tracker-div):hover,:host(.card-playlist) a:hover{text-decoration:none;outline:none}:host(.card-video-intro){border-bottom-left-radius:var(--ptc-border-radius-large);border-bottom-right-radius:var(--ptc-border-radius-large)}:host(.card-video-intro) a{text-decoration:none}:host(.card-video-intro) div:not(.tracker-div){display:block}:host(.card-video-shadow){box-shadow:var(--ptc-shadow-x-small)}:host(.extra-tall){position:relative}:host(.extra-tall) a{position:relative;display:block;width:100%;height:100%;inset:0px}:host(.extra-tall) a::after{content:\"\";position:absolute;width:100%;height:100%;background:rgba(0, 0, 0, 0);bottom:0;left:0;border-radius:var(--ptc-border-radius-large);transition:background var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.extra-tall) a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}:host(.color-outlined){position:relative;border-radius:var(--ptc-border-radius-large)}:host(.color-outlined) a:focus-visible{box-shadow:0 0 0 5px var(--keyboard-nav-outline);border-radius:var(--ptc-border-radius-standard) !important;border:2px solid white;display:block;outline:none}:host(.card-video-p){padding:var(--ptc-element-spacing-05);padding-bottom:var(--ptc-element-spacing-06)}:host(.card-m-right){margin-right:var(--ptc-element-spacing-02)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-02)}:host(.extraT-overlay) a::after{background:rgba(0, 0, 0, 0.6)}@media only screen and (min-width: 768px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-03)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-03)}}@media only screen and (min-width: 992px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-04)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-04)}}@media only screen and (min-width: 1200px){:host(.card-video-intro) div:not(.tracker-div){display:flex}}:host(.result-box){width:505px;border:1px solid #6A6A6A;padding-top:56px;padding-bottom:56px;border-radius:var(--ptc-border-radius-large)}:host(.result-box) div:not(.tracker-div){display:flex;justify-content:center;align-items:center;flex-direction:column}:host(.simple-card){border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);box-shadow:var(--ptc-shadow-small);padding:var(--ptc-layout-spacing-03)}:host(.simple-card) a{text-decoration:none}:host(.simple-card) a:hover{text-decoration:none}:host(.most-popular){position:relative;margin:12px;background-color:var(--color-white)}:host(.most-popular) a{text-decoration:none}:host(.most-popular) a:hover{text-decoration:none}:host(.most-popular) a:focus-visible{box-shadow:0 0 0 5px var(--keyboard-nav-outline);border-radius:var(--ptc-border-radius-standard) !important;display:block;outline:none}:host(.disabled) a{pointer-events:none;cursor:default;text-decoration:none}:host(.event-podcast) a:focus-visible{box-shadow:0 0 0 5px var(--keyboard-nav-outline);border-radius:var(--ptc-border-radius-standard) !important;display:block;outline:none}:host(.speed-bump) a{text-decoration:none}";
2040
+
2041
+ const PtcCardPlm = class {
2042
+ constructor(hostRef) {
2043
+ index.registerInstance(this, hostRef);
2044
+ this.hoverEvent = index.createEvent(this, "hoverEvent", 7);
2045
+ this.leaveEvent = index.createEvent(this, "leaveEvent", 7);
2046
+ this.squareHeightChanged = index.createEvent(this, "squareHeightChanged", 7);
2047
+ this.cardType = undefined;
2048
+ this.cardLink = undefined;
2049
+ this.linkTitle = undefined;
2050
+ this.linkTarget = '_self';
2051
+ this.isLoading = false;
2052
+ this.trackerId = undefined;
2053
+ this.disabled = false;
2054
+ this.hideLinkTitle = false;
2055
+ this.styles = undefined;
2056
+ this.darkFocusState = false;
2057
+ }
2058
+ handleResize() {
2059
+ this.checkScreenSize();
2060
+ this.emitHeight();
2061
+ }
2062
+ hoverEventHandler() {
2063
+ if (this.el.classList.contains('extra-tall')) {
2064
+ this.hoverEvent.emit();
2065
+ this.el.classList.add('extraT-overlay');
2066
+ }
2067
+ if (this.el.classList.contains('color-outlined')) {
2068
+ this.hoverEvent.emit();
2069
+ const cardOverlay = this.el.querySelector('ptc-overlay');
2070
+ cardOverlay.setOverlay('black-5');
2071
+ }
2072
+ }
2073
+ leaveEventHandler() {
2074
+ if (this.el.classList.contains('extra-tall')) {
2075
+ this.hoverEvent.emit();
2076
+ this.el.classList.remove('extraT-overlay');
2077
+ }
2078
+ if (this.el.classList.contains('color-outlined')) {
2079
+ this.hoverEvent.emit();
2080
+ const cardOverlay = this.el.querySelector('ptc-overlay');
2081
+ cardOverlay.setOverlay('black-4');
2082
+ }
2083
+ }
2084
+ componentDidLoad() {
2085
+ this.checkScreenSize();
2086
+ this.emitHeight();
2087
+ }
2088
+ render() {
2089
+ const classMap = this.getCssClassMap();
2090
+ const Tag = !!this.cardLink ? 'a' : 'div';
2091
+ return (index.h(index.Host, Object.assign({ class: classMap }, (!this.isLoading ? { onMouseEnter: this.hoverEventHandler.bind(this) } : {}), (!this.isLoading ? { onMouseLeave: this.leaveEventHandler.bind(this) } : {})), this.styles && index.h("style", null, this.styles), index.h("div", { class: "tracker-div mf-listen", id: this.trackerId }, index.h(Tag, Object.assign({ class: `mf-listen ${this.darkFocusState ? "focus-state-dark-background" : ""}` }, (!!this.cardLink && this.cardType !== "simple-card" ? { tabindex: '0' } : { tabindex: '-1' }), (!!this.cardLink && !this.isLoading ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink && !this.isLoading ? { target: this.linkTarget } : {}), (!!this.cardLink && !this.isLoading && !this.hideLinkTitle ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), index.h("slot", null)))));
2092
+ }
2093
+ getCssClassMap() {
2094
+ return {
2095
+ [this.cardType]: this.cardType ? true : false,
2096
+ ['disabled']: this.disabled,
2097
+ };
2098
+ }
2099
+ emitHeight() {
2100
+ const height = this.el.offsetHeight;
2101
+ this.squareHeightChanged.emit(height);
2102
+ }
2103
+ getBtmContentHeight() {
2104
+ const bottomContent = this.el.querySelector('ptc-card-bottom');
2105
+ return bottomContent.offsetHeight;
2106
+ }
2107
+ checkScreenSize() {
2108
+ if (this.cardType === 'extra-tall') {
2109
+ if (window.innerWidth < 768) {
2110
+ const cardContent = this.el.querySelector('ptc-card-content');
2111
+ if (cardContent) {
2112
+ cardContent.setHeight(this.getBtmContentHeight());
2113
+ }
2114
+ }
2115
+ else {
2116
+ const cardContent = this.el.querySelector('ptc-card-content');
2117
+ if (cardContent) {
2118
+ cardContent.removeInlineHeight();
2119
+ }
2120
+ }
2121
+ }
2122
+ }
2123
+ get el() { return index.getElement(this); }
2124
+ };
2125
+ PtcCardPlm.style = ptcCardWrapperCss;
2126
+
2127
+ const ptcCloseIconCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:inline-block}:host:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .close-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:5px solid transparent;box-sizing:border-box;border-radius:var(--ptc-border-radius-standard);cursor:pointer}:host .close-icon svg{padding:7px;border:1px solid transparent;border-radius:var(--ptc-border-radius-standard);background-color:transparent;transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host .close-icon svg:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .close-icon:hover svg{border-color:var(--color-gray-12)}:host .close-icon:active svg{transition-duration:0ms;background-color:var(--color-gray-02);border:1px solid var(--color-gray-12)}";
2128
+
2129
+ const PtcCloseIcon = class {
2130
+ constructor(hostRef) {
2131
+ index.registerInstance(this, hostRef);
2132
+ }
2133
+ render() {
2134
+ return (index.h(index.Host, null, index.h("div", { class: 'close-icon mf-listen', id: "modal-pop-up-close-icon" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", tabindex: 0 }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.00089 8.4151L12.5876 14.0018L14.0018 12.5876L8.4151 7.00089L14.0018 1.41421L12.5876 0L7.00089 5.58667L1.41421 0L0 1.41421L5.58667 7.00089L0 12.5876L1.41421 14.0018L7.00089 8.4151Z", fill: "#20262A" })))));
2135
+ }
2136
+ };
2137
+ PtcCloseIcon.style = ptcCloseIconCss;
2138
+
2139
+ const ptcImgCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}.smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-standard-top{border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-large-top{border-top-left-radius:var(--ptc-border-radius-large);border-top-right-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";
2140
+
2141
+ const PtcImg = class {
2142
+ constructor(hostRef) {
2143
+ index.registerInstance(this, hostRef);
2144
+ this.sizeXs = '510x340';
2145
+ this.sizeSm = '1240x496';
2146
+ this.sizeMd = '1366x500';
2147
+ this.sizeLg = '1920x1080';
2148
+ this.imgUrl = undefined;
2149
+ this.imageType = 'smart-bg';
2150
+ this.borderRadius = '';
2151
+ this.loadMode = 'lazy-bg';
2152
+ this.styles = undefined;
2153
+ }
2154
+ /**
2155
+ * Image Z Index
2156
+ */
2157
+ // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
2158
+ WindowResize() {
2159
+ this.setResponsiveBg();
2160
+ }
2161
+ render() {
2162
+ const classMap = this.getCssClassMap();
2163
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap, "data-xs": `${this.imgUrl}`, "data-sm": `${this.imgUrl}`, "data-md": `${this.imgUrl}`, "data-lg": `${this.imgUrl}` }, this.imageType == 'smart-bg' ? index.h("slot", null) : null)));
2164
+ }
2165
+ componentDidLoad() {
2166
+ this.addIntersectionObserver();
2167
+ this.setResponsiveBg();
2168
+ }
2169
+ componentWillUpdate() {
2170
+ this.addIntersectionObserver();
2171
+ this.setResponsiveBg();
2172
+ }
2173
+ //responsive image
2174
+ setResponsiveBg() {
2175
+ // Define local variables
2176
+ let backgrounds = (this.el || document).querySelectorAll(interfaces.ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
2177
+ // Loop through all target elements
2178
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
2179
+ // Set current variables
2180
+ el = backgrounds[i];
2181
+ elData = el.getAttribute('data-' + currentBreakpoint);
2182
+ // If the data attribute exists, set the background
2183
+ if (elData !== null) {
2184
+ el.style.backgroundImage = "url('" + elData + "')";
2185
+ }
2186
+ else {
2187
+ if (typeof console == 'object') {
2188
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
2189
+ }
2190
+ }
2191
+ }
2192
+ }
2193
+ //lazy loading
2194
+ addIntersectionObserver() {
2195
+ if (!this.imgUrl) {
2196
+ console.log('no image!');
2197
+ return;
2198
+ }
2199
+ if ('IntersectionObserver' in window) {
2200
+ let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
2201
+ let bgObserver = new IntersectionObserver(entries => {
2202
+ entries.forEach(entry => {
2203
+ if (entry.isIntersecting) {
2204
+ const image = entry.target;
2205
+ image.classList.remove('lazy-bg');
2206
+ bgObserver.unobserve(image);
2207
+ }
2208
+ });
2209
+ });
2210
+ lazyLoadBgs.forEach(image => {
2211
+ bgObserver.observe(image);
2212
+ });
2213
+ }
2214
+ }
2215
+ getCssClassMap() {
2216
+ return {
2217
+ [this.imageType]: true,
2218
+ 'ptc-img': true,
2219
+ [this.borderRadius]: true,
2220
+ [this.loadMode]: true,
2221
+ // [this.imageZIndex] : true
2222
+ };
2223
+ }
2224
+ getCurrentBreakPoints() {
2225
+ // Define local variables
2226
+ let doc = window.document, temp = doc.createElement('div'), env;
2227
+ // Append test node
2228
+ doc.body.appendChild(temp);
2229
+ // Loop through breakpoints
2230
+ for (let i = interfaces.ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
2231
+ env = interfaces.ResponsiveBgVariables.envs[i];
2232
+ // Add classes
2233
+ temp.className = 'hidden-' + env;
2234
+ // Found breakpoint
2235
+ if (temp.offsetParent === null) {
2236
+ // Remove our test node
2237
+ doc.body.removeChild(temp);
2238
+ // Return current breakpoint
2239
+ return env;
2240
+ }
2241
+ }
2242
+ // Breakpoint not found, try fallback
2243
+ doc.body.removeChild(temp);
2244
+ return this.getFallbackBreakpoint();
2245
+ }
2246
+ getFallbackBreakpoint() {
2247
+ if (window.matchMedia('(min-width: 992px)').matches) {
2248
+ return 'lg';
2249
+ }
2250
+ else if (window.matchMedia('(min-width: 768px)').matches) {
2251
+ return 'md';
2252
+ }
2253
+ else if (window.matchMedia('(min-width: 576px)').matches) {
2254
+ return 'sm';
2255
+ }
2256
+ else {
2257
+ return 'xs';
2258
+ }
2259
+ }
2260
+ get el() { return index.getElement(this); }
2261
+ };
2262
+ PtcImg.style = ptcImgCss;
2263
+
2264
+ const ptcLinkCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}.disabled{pointer-events:none;cursor:default;text-decoration:none}.ptc-link{display:inline-block;color:var(--color-gray-10);font-weight:var(--ptc-font-weight-extrabold);position:relative;line-height:var(--ptc-line-height-densest);outline:none;text-decoration:none;transition:color var(--ptc-transition-fast) var(--ptc-ease-inout)}.ptc-link.focus-state-dark-background{border:2px solid transparent;margin:-2px}.ptc-link:active{transition:none}.ptc-link:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.ptc-link:focus-visible .focus-state-dark-background:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none;text-decoration-line:none}.simple{text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--color-green-06);text-decoration-thickness:2px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.simple.focus-state-dark-background{border:2px solid transparent;margin:-2px}.simple:hover{color:var(--color-green-06);transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.simple:active{transition:none}.simple:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);transition:none;color:var(--color-green-06);transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.simple:focus-visible.focus-state-dark-background{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none;text-decoration-line:none}.global{font-style:var(--ptc-letter-spacing-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out)}.global:visited{color:var(--color-blue-10)}.global:active,.global:visited:active{color:var(--color-blue-09);transition:none}.global:hover,.global:visited:hover{color:var(--color-blue-08)}.global.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.product-link{font-weight:var(--ptc-font-weight-extrabold);text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--color-green-06);text-decoration-thickness:2px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.product-link:hover{color:var(--color-green-06);transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.product-link:active{transition:none}.underline{border-bottom:2px solid var(--color-green-06)}.underline:hover{color:#00890B;border-bottom:2px solid #00890B}.underline:active{transition:none}.small{font-size:var(--ptc-font-size-xx-small)}.medium{font-size:var(--ptc-font-size-x-small)}.medium-large{font-size:var(--ptc-font-size-small)}.large{font-size:var(--ptc-font-size-medium)}.nav-title:focus,.nav-title-link:focus,.nav-card-link:focus,.primary-nav-link:focus,.secondary-nav-link:focus,.footer-nav-link:focus,.copyright-link:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav-title:active,.nav-title-link:active,.nav-card-link:active,.primary-nav-link:active,.secondary-nav-link:active,.footer-nav-link:active,.copyright-link:active{transition:none}.nav-title{box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-dense);list-style:none;margin-bottom:var(--ptc-element-spacing-02);text-align:left}.primary-nav-link{background-color:transparent;box-sizing:border-box;color:var(--color-gray-01);display:inline-block;font-size:var(--ptc-font-size-x-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-dense);list-style:none;margin:var(--ptc-element-spacing-01) var(--ptc-element-spacing-03);padding:var(--ptc-element-spacing-02) var(--ptc-element-spacing-06);position:relative;text-decoration:none;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.primary-nav-link:hover{border-radius:var(--ptc-border-radius-standard);background-color:var(--color-gray-12);text-decoration:none;outline:none}.primary-nav-link:active{transition:none}.nav-title-link{background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);list-style:none;text-align:left;text-decoration-color:var(--color-white);text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);border-bottom:1.5px solid transparent;display:inline-block}.nav-title-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-green-06)}.nav-title-link:active{transition:none}.nav-card-link{background-color:transparent;box-sizing:border-box;color:var(--color-white);font-stretch:100%;font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);list-style:none;text-align:left;text-decoration:none;text-decoration-color:var(--color-white);transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);display:inline-block;font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 1200px){.nav-card-link{font-size:var(--ptc-font-size-xxx-small)}}.nav-card-link:hover{color:var(--color-white);text-decoration:underline var(--color-green-06) solid 1px;text-underline-offset:2px}.nav-card-link:active{transition:none}.secondary-nav-link{display:inline-block;background-color:transparent;box-sizing:border-box;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-stretch:100%;font-style:normal;font-weight:var(--ptc-font-weight-semibold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-densest);list-style:none;margin-bottom:var(--ptc-element-spacing-03);text-align:left;text-decoration:none;transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);border-bottom:1.5px solid transparent;white-space:nowrap}.secondary-nav-link:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-green-06);border-radius:0;text-decoration:none}.secondary-nav-link:active{transition:none}.footer-nav-link{color:var(--color-white);transition:border var(--ptc-transition-medium) var(--ptc-ease-inout), color var(--ptc-transition-medium) var(--ptc-ease-inout);border-bottom:1px solid transparent;outline:none;text-decoration:none;font-weight:var(--ptc-font-weight-semibold);letter-spacing:var(--ptc-letter-spacing-normal);line-height:var(--ptc-line-height-densest);text-align:left;font-size:var(--ptc-font-size-x-small)}.footer-nav-link:hover{outline:none;text-decoration:none;border-bottom:0.1rem solid var(--color-green-06);color:var(--color-green-06)}.footer-nav-link:active{transition:none}.copyright-link{color:var(--color-white);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-normal);line-height:var(--ptc-line-height-loose);display:inline-block}.d-green-underline{color:var(--color-white);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.d-green-underline:hover{color:var(--color-green-06)}.d-green-underline:active{transition:none}.d-green-underline:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);transition:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.d-green-underline:focus-visible.focus-state-dark-background{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none;text-decoration-line:none}.d-white-underline{color:var(--color-white);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-white);text-underline-offset:5px}.link-area-cover-parent{position:static}.link-area-cover-parent::after{content:\"\";position:absolute;width:100%;height:100%;inset:0;z-index:2}.standard-link,.blog-link{font-weight:800;line-height:1;display:flex;align-items:center;color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.standard-link:hover,.blog-link:hover{color:var(--color-green-06)}.standard-link:active,.blog-link:active{transition:none}.w-thin{font-weight:var(--ptc-font-weight-thin)}.w-regular{font-weight:var(--ptc-font-weight-regular)}.w-medium{font-weight:var(--ptc-font-weight-medium)}.w-semibold{font-weight:var(--ptc-font-weight-semibold)}.w-bold{font-weight:var(--ptc-font-weight-bold)}.w-extrabold{font-weight:var(--ptc-font-weight-extrabold)}.w-black{font-weight:var(--ptc-font-weight-black)}.utility-nav-link{background-color:transparent;box-sizing:border-box;color:var(--color-gray-13);font-stretch:100%;font-weight:var(--ptc-font-weight-semibold);line-height:var(--ptc-line-height-densest);list-style:none;text-align:left;text-decoration:none;text-decoration-color:var(--color-green-06);transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout);display:inline-block;font-size:var(--ptc-font-size-x-small)}.utility-nav-link:hover{text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--color-green-06);text-decoration-thickness:2px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.utility-nav-link:active{transition:none}.tracker-div{display:inline}:host(.event-podcast) a{color:var(--color-green-06);transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}";
2265
+
2266
+ const PtcLink = class {
2267
+ constructor(hostRef) {
2268
+ index.registerInstance(this, hostRef);
2269
+ this.disabled = false;
2270
+ this.external = false;
2271
+ this.href = undefined;
2272
+ this.target = '_self';
2273
+ this.linkTitle = undefined;
2274
+ this.theme = 'simple';
2275
+ this.fontSize = 'medium';
2276
+ this.fontWeight = undefined;
2277
+ this.linkArea = undefined;
2278
+ this.seoCompatibilityMode = false;
2279
+ this.styles = undefined;
2280
+ this.trackerId = undefined;
2281
+ this.tabNav = 0;
2282
+ this.darkFocusState = false;
2283
+ }
2284
+ componentWillLoad() {
2285
+ utils.CheckDarkFocusState(this, this.el);
2286
+ }
2287
+ seoCompRender() {
2288
+ const classMap = this.getCssClassMap();
2289
+ const [TagType, firstChild] = utils.getSeoTagType(this.el, "a");
2290
+ const html = firstChild && firstChild.innerHTML;
2291
+ if (this.el == firstChild) {
2292
+ this.el.innerHTML = '';
2293
+ }
2294
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, index.h(TagType, Object.assign({ class: classMap, innerHTML: html, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), index.h("slot", null)))));
2295
+ }
2296
+ standardRender() {
2297
+ const classMap = this.getCssClassMap();
2298
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { id: this.trackerId, class: "tracker-div mf-listen" }, index.h("a", Object.assign({ class: classMap, href: this.href, target: this.external ? '_blank' : this.target, title: this.linkTitle }, (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), index.h("slot", null)))));
2299
+ }
2300
+ render() {
2301
+ if (this.seoCompatibilityMode) {
2302
+ return this.seoCompRender();
2303
+ }
2304
+ else {
2305
+ return this.standardRender();
2306
+ }
2307
+ }
2308
+ getCssClassMap() {
2309
+ const classOptions = [
2310
+ 'simple',
2311
+ 'underline',
2312
+ 'nav-title',
2313
+ 'primary-nav-link',
2314
+ 'nav-title-link',
2315
+ 'nav-card-link',
2316
+ 'secondary-nav-link',
2317
+ 'footer-nav-link',
2318
+ 'copyright-link',
2319
+ 'product-link',
2320
+ 'd-green-underline',
2321
+ 'd-white-underline',
2322
+ 'global',
2323
+ 'utility-nav-link'
2324
+ ];
2325
+ let mainClass = this.theme;
2326
+ if (classOptions.indexOf(mainClass) < 0) {
2327
+ mainClass = 'simple'; // fallback to simple class if theme is unavailable
2328
+ }
2329
+ return {
2330
+ ['ptc-link']: true,
2331
+ [mainClass]: true,
2332
+ ['disabled']: this.disabled,
2333
+ [this.fontSize]: true,
2334
+ [this.linkArea]: this.linkArea ? true : false,
2335
+ [this.fontWeight]: this.fontWeight ? true : false,
2336
+ ['focus-state-dark-background']: this.darkFocusState
2337
+ };
2338
+ }
2339
+ get el() { return index.getElement(this); }
2340
+ };
2341
+ PtcLink.style = ptcLinkCss;
2342
+
2343
+ const ptcModalCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}.wrapper{position:absolute;width:100vw;height:100%;top:0;left:0;z-index:500001;display:none}.wrapper.fixed{position:fixed}.wrapper .modal-popup{margin:7.5rem auto 1rem;background-color:var(--color-white);box-shadow:var(--ptc-shadow-large);max-width:22.5625rem;width:80%;display:flex;flex-direction:column;align-items:flex-end;align-content:flex-end;z-index:50020;transform:translateY(-100%)}@media only screen and (min-width: 992px){.wrapper .modal-popup{max-width:29.125rem}}.wrapper .modal-popup.md{max-width:44.125rem}.wrapper .modal-popup.lg{max-width:56.25rem}.wrapper .modal-popup.xl{max-width:64.0625rem}.wrapper .modal-popup.max{width:calc(100% - 4rem);max-width:75rem;height:80vh;margin:auto;overflow:hidden}.wrapper .modal-popup.max .close{margin:var(--ptc-element-spacing-02)}.wrapper .modal-popup.max .modal-body iframe{height:100%}.wrapper .modal-popup.sm-modal{width:341px;max-width:341px}@media only screen and (max-width: 360px){.wrapper .modal-popup.sm-modal{max-width:100%;width:100%}}@media only screen and (min-width: 360px) and (max-width: 479.55px){.wrapper .modal-popup.sm-modal{max-width:360px;width:360px}}@media only screen and (min-width: 480px){.wrapper .modal-popup.sm-modal.modal-with-content{width:371px;max-width:371px}}@media only screen and (min-width: 360px) and (max-width: 479.55px){.wrapper .modal-popup.sm-modal.modal-with-content{max-width:360px;width:360px}}.wrapper .modal-popup .modal-body{width:100%}.wrapper .modal-popup .modal-body iframe{opacity:0;overflow:hidden;width:100%;border:0;transition:opacity var(--ptc-ease-inout) var(--ptc-transition-medium)}.wrapper .modal-popup .modal-body iframe.ready{opacity:1}.wrapper .modal-popup .modal-body.frame{overflow:hidden;overflow-y:hidden;overflow-x:hidden}.wrapper .modal-popup .modal-body.html{overflow:hidden}.wrapper .modal-popup.frame .modal-body{display:flex;flex:1;height:100%}.wrapper .modal-popup .close{margin-right:2px;margin-top:2px}.wrapper .modal-popup.shadow-scroller{max-height:calc(100vh - 220px)}@media only screen and (min-width: 992px){.wrapper .modal-popup.shadow-scroller{max-height:756px}}.wrapper .modal-popup.shadow-scroller .modal-header{transition:box-shadow ease-in-out 250ms;position:relative;min-height:57px;border-bottom:1px solid var(--color-gray-02);width:100%}.wrapper .modal-popup.shadow-scroller .modal-header .close{position:absolute;top:8px;right:8px;margin:0}.wrapper .modal-popup.shadow-scroller .modal-body{min-height:200px;overflow-x:hidden}.wrapper .modal-popup.shadow-scroller .modal-footer{transition:box-shadow ease-in-out 250ms;width:100%;min-height:60px;border-top:1px solid var(--color-gray-02);padding-top:1rem}.wrapper .modal-popup.shadow-scroller.scroll-top .modal-header{box-shadow:0px 4px 12px rgba(0, 0, 0, 0.12)}.wrapper .modal-popup.shadow-scroller.scroll-bottom .modal-footer{box-shadow:0px -8px 12px rgba(0, 0, 0, 0.12)}.wrapper.show{display:flex;align-items:flex-start}.wrapper.show .modal-popup{transform:translateY(0)}.wrapper.show .modal-popup.rounded{border-radius:var(--ptc-border-radius-standard)}.overlay{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:50010;display:block;background-color:rgba(0, 0, 0, 0.6)}:host(.standard) .modal-popup{border-radius:var(--ptc-border-radius-standard)}:host(.large) .modal-popup{border-radius:var(--ptc-border-radius-large)}:host(.pill) .modal-popup{border-radius:var(--ptc-border-radius-pill)}:host(.circle) .modal-popup{border-radius:var(--ptc-border-radius-circle)}:host(.enclose-modal) .modal-popup{max-height:calc(100vh - 180px)}:host(.enclose-modal) .modal-popup:not(.frame) .modal-body{overflow-y:auto}:host(.bio-modal) .wrapper.show{align-items:flex-start}@media only screen and (min-width: 768px){:host(.bio-modal) .wrapper.show{align-items:center}}:host(.bio-modal) .modal-popup{padding:30px 15px 30px 0;max-width:1200px;margin:20px auto 0 auto;max-height:calc(100vh - 180px);width:90%;height:100%}:host(.bio-modal) .modal-popup .modal-body{height:100%}@media only screen and (min-width: 768px){:host(.bio-modal) .modal-popup .modal-body{height:auto}}@media (max-height: 450px){:host(.bio-modal) .modal-popup .modal-body{height:100%}}@media only screen and (min-width: 768px){:host(.bio-modal) .modal-popup{max-height:none;width:80%;margin-top:0px;height:auto}}@media only screen and (min-width: 1440px){:host(.bio-modal) .modal-popup{max-width:1400px}}@media (max-height: 450px){:host(.bio-modal) .modal-popup{max-height:calc(100vh - 180px);height:100%}}:host(.bio-modal) .close{position:absolute;margin:0;right:8px;top:8px}:host(.bio-modal) .close svg .cls-1,:host(.bio-modal) .close svg .cls-2{fill:none;stroke-width:2px}:host(.bio-modal) .close svg .cls-1{stroke:#1c2439;stroke-linecap:square}:host(.bio-modal) .close svg .cls-2{stroke:#74c34d}:host(.bio-modal) .close svg path{transition:all ease-in-out 250ms}:host(.bio-modal) .close svg .cls-1:nth-child(1){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close svg .cls-1:nth-child(2){transform:translate(175.5px, 174.985px)}:host(.bio-modal) .close svg .cls-1:nth-child(3){transform:translate(215.5px, 141.393px)}:host(.bio-modal) .close svg .cls-1:nth-child(4){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(1){transform:translate(175.5px, 162px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(2){transform:translate(149px, 174.985px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(3){transform:translate(215.5px, 174px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(4){transform:translate(152.5px, 135.5px)}:host(.no-container) .wrapper .modal-popup.xl{max-width:80rem !important;background:transparent;box-shadow:none}:host(.no-container) .wrapper .modal-popup .close{display:none}:host(.video-modal) .modal-popup{margin:auto}@media (max-height: 768px){:host(.video-modal) .modal-popup.xl{max-width:56rem}}@media (max-height: 600px){:host(.video-modal) .modal-popup.xl{max-width:44rem}}@media (max-height: 500px){:host(.video-modal) .modal-popup.xl{max-width:35rem}}@media (max-height: 400px){:host(.video-modal) .modal-popup.xl{max-width:26rem}}:host(.event-listing) .wrapper .modal-popup{max-width:unset;width:calc(100% - 48px);top:50%;left:50%;transform:translate(-50%, -50%) !important;margin:0px;position:absolute}:host(.vh-center) .wrapper .modal-popup{top:50%;left:50%;transform:translate(-50%, -50%) !important;margin:0px auto;position:absolute}:host(.thank-you) .wrapper .modal-popup{max-width:calc(100% - 48px);width:100%}@media only screen and (min-width: 480px){:host(.thank-you) .wrapper .modal-popup{max-width:640px;width:80%}}:host(.thank-you) .wrapper .modal-popup .modal-body{padding:2px 24px 48px 24px;box-sizing:border-box}@media only screen and (min-width: 992px){:host(.thank-you) .wrapper .modal-popup .modal-body{padding:2px 48px 48px 48px}}:host .wrapper .event-list-header{display:flex;position:absolute;width:100%;height:118px;left:0;transform:translateY(-100%);border-radius:var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px 0px;align-items:center;padding:var(--ptc-element-spacing-06);box-sizing:border-box}:host .wrapper .event-list-header::before{content:\"\";position:absolute;left:0;width:100%;height:100%;border-radius:4px 4px 0px 0px;background:linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);z-index:1}:host .wrapper .event-list-header+.close{margin-top:0px;margin-right:0px;width:40px;height:40px;display:flex;justify-content:center;align-items:center}:host .wrapper .event-list-header .text-wrapper{display:flex;flex-wrap:wrap;column-gap:0.5em}:host .wrapper .event-list-header .text-wrapper span{display:inline-block;color:var(--color-white);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-x-large);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-densest);position:relative;z-index:2}:host .wrapper .event-list-header .text-wrapper span:first-of-type{font-weight:var(--ptc-font-weight-extrabold)}:host .wrapper .event-mobile-modal{border-top-left-radius:0px;border-top-right-radius:0px}:host .wrapper .bottom-close{text-align:center;margin:0 auto 40px auto}:host .wrapper .bottom-close span{cursor:pointer;color:var(--color-hyperlink);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-bold);text-decoration-line:underline;line-height:var(--ptc-line-height-densest)}:host .wrapper .bottom-close span:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .wrapper .bottom-close span:hover{color:var(--color-blue-08)}";
2344
+
2345
+ const PtcModal = class {
2346
+ constructor(hostRef) {
2347
+ index.registerInstance(this, hostRef);
2348
+ this.closed = index.createEvent(this, "closed", 7);
2349
+ this.opened = index.createEvent(this, "opened", 7);
2350
+ this.setReturnFocus = () => {
2351
+ var _a, _b;
2352
+ if (!this.lastFocusElement)
2353
+ return;
2354
+ // Try focusing the last focused element directly
2355
+ if (this.lastFocusElement.tabIndex === 0) {
2356
+ this.lastFocusElement.focus();
2357
+ return;
2358
+ }
2359
+ // If it's inside a shadow DOM, try finding a focusable child
2360
+ const shadowRoot = this.lastFocusElement.shadowRoot;
2361
+ if (shadowRoot) {
2362
+ const focusableElement = shadowRoot.querySelector('button, [tabindex]:not([tabindex="-1"])');
2363
+ if (focusableElement instanceof HTMLElement) {
2364
+ focusableElement.focus();
2365
+ console.log('yes');
2366
+ return;
2367
+ }
2368
+ }
2369
+ // As a fallback, try to find a focusable child within the element
2370
+ const fallbackElement = (_b = (_a = this.lastFocusElement).querySelector) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, [tabindex]:not([tabindex="-1"])');
2371
+ if (fallbackElement instanceof HTMLElement) {
2372
+ fallbackElement.focus();
2373
+ }
2374
+ };
2375
+ //change it with @Watch
2376
+ // componentDidUpdate() {
2377
+ // if (this.show) {
2378
+ // this.lastFocusElement = document.activeElement as HTMLElement;
2379
+ // this.fireOnOpened(this);
2380
+ // } else {
2381
+ // this.fireOnClosed(this);
2382
+ // }
2383
+ // }
2384
+ this.handleKeyPress = (event) => {
2385
+ if (event.key === 'Enter' || event.key === ' ' || event.key === 'Tab') {
2386
+ this.openedByKeyboard = true;
2387
+ }
2388
+ };
2389
+ this.handleMouseDown = () => {
2390
+ this.openedByKeyboard = false;
2391
+ };
2392
+ this.iframeUrl = undefined;
2393
+ this.size = 'sm';
2394
+ this.customClass = undefined;
2395
+ this.show = false;
2396
+ this.overlay = true;
2397
+ this.fixed = false;
2398
+ this.keepInViewport = false;
2399
+ this.closeOnBlur = false;
2400
+ this.rounded = false;
2401
+ this.hideContainer = false;
2402
+ this.showHeaderFooter = false;
2403
+ this.overlayHeight = undefined;
2404
+ this.borderRadius = 'standard';
2405
+ this.isBioModal = false;
2406
+ this.styles = undefined;
2407
+ this.modalType = 'default-modal';
2408
+ this.vhCenter = false;
2409
+ this.headerOnlyBg = undefined;
2410
+ this.headerOnlyText1 = undefined;
2411
+ this.headerOnlyText2 = undefined;
2412
+ this.bottomCloseBtn = undefined;
2413
+ this.initialFocus = true;
2414
+ this.openedByKeyboard = false;
2415
+ this.bodyOverflowSetting = undefined;
2416
+ }
2417
+ onShowChange(newValue) {
2418
+ if (newValue) {
2419
+ this.lastFocusElement = document.activeElement;
2420
+ this.fireOnOpened(this);
2421
+ }
2422
+ else {
2423
+ this.fireOnClosed(this);
2424
+ }
2425
+ }
2426
+ fireOnClosed(modal) {
2427
+ this.closed.emit(modal);
2428
+ document.activeElement.blur();
2429
+ }
2430
+ fireOnOpened(modal) {
2431
+ this.opened.emit(modal);
2432
+ setTimeout(() => {
2433
+ const wrapperEle = this.el.shadowRoot.querySelector('.wrapper');
2434
+ wrapperEle && wrapperEle.focus();
2435
+ this.scrollToTopIfNeeded();
2436
+ }, 100);
2437
+ setTimeout(() => {
2438
+ this.trap = createFocusTrap(this.modalPopUpRef, {
2439
+ escapeDeactivates: true,
2440
+ clickOutsideDeactivates: true,
2441
+ returnFocusOnDeactivate: true,
2442
+ onActivate: () => {
2443
+ if (!this.openedByKeyboard) {
2444
+ this.trap.pause(); // If opened by mouse, prevent immediate focus trapping
2445
+ }
2446
+ },
2447
+ onDeactivate: () => {
2448
+ this.close();
2449
+ this.trap.deactivate();
2450
+ this.setReturnFocus();
2451
+ },
2452
+ tabbableOptions: {
2453
+ getShadowRoot: true,
2454
+ },
2455
+ });
2456
+ if (this.openedByKeyboard) {
2457
+ this.trap.activate();
2458
+ }
2459
+ }, 200);
2460
+ }
2461
+ scrollToTopIfNeeded() {
2462
+ if (this.el && this.modalType === 'event-listing') {
2463
+ const modalRect = this.el.shadowRoot.querySelector('.modal-body').getBoundingClientRect();
2464
+ const modalTopPosition = modalRect.top + window.scrollY;
2465
+ const offset = 160; // Adjust the offset if necessary to account for fixed headers, etc.
2466
+ window.scrollTo({
2467
+ top: modalTopPosition - offset,
2468
+ behavior: 'smooth',
2469
+ });
2470
+ }
2471
+ else {
2472
+ return;
2473
+ }
2474
+ }
2475
+ connectedCallback() {
2476
+ document.addEventListener('keydown', this.handleKeyPress, true);
2477
+ document.addEventListener('mousedown', this.handleMouseDown, true);
2478
+ }
2479
+ disconnectedCallback() {
2480
+ document.removeEventListener('keydown', this.handleKeyPress, true);
2481
+ document.removeEventListener('mousedown', this.handleMouseDown, true);
2482
+ }
2483
+ componentWillLoad() {
2484
+ let body = document.querySelector('body');
2485
+ this.bodyOverflowSetting = {
2486
+ //overflow: body.style['overflow'],
2487
+ overflowY: body.style['overflowY'],
2488
+ overflowX: body.style['overflowX'],
2489
+ };
2490
+ }
2491
+ componentWillRender() {
2492
+ let body = document.querySelector('body');
2493
+ if (body) {
2494
+ if (this.show) {
2495
+ //body.style['overflow'] = 'hidden';
2496
+ if (this.fixed) {
2497
+ body.style['overflowY'] = 'hidden';
2498
+ body.style['overflowX'] = 'hidden';
2499
+ }
2500
+ else {
2501
+ body.style['overflowY'] = 'scroll';
2502
+ body.style['overflowX'] = 'hidden';
2503
+ }
2504
+ }
2505
+ else {
2506
+ //body.style['overflow'] = this.bodyOverflowSetting.overflow;
2507
+ body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
2508
+ body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
2509
+ }
2510
+ }
2511
+ }
2512
+ componentDidLoad() {
2513
+ if (this.show) {
2514
+ this.lastFocusElement = document.activeElement;
2515
+ this.fireOnOpened(this);
2516
+ }
2517
+ if (this.showHeaderFooter) {
2518
+ this.handleScroll();
2519
+ }
2520
+ }
2521
+ resizeIframe(e) {
2522
+ let iFrame = e.target;
2523
+ setTimeout(() => {
2524
+ try {
2525
+ if (iFrame.contentDocument) {
2526
+ iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
2527
+ }
2528
+ else {
2529
+ iFrame.height = '616px'; //default
2530
+ iFrame.removeAttribute('scrolling');
2531
+ }
2532
+ }
2533
+ catch (error) {
2534
+ console.log(error);
2535
+ iFrame.height = '616px'; //default
2536
+ iFrame.removeAttribute('scrolling');
2537
+ }
2538
+ iFrame.classList.add('ready');
2539
+ }, 50);
2540
+ }
2541
+ handleScroll() {
2542
+ let modal = this.el.shadowRoot.querySelector('.shadow-scroller');
2543
+ if (modal) {
2544
+ let body = modal.querySelector('.modal-body');
2545
+ var height = body.clientHeight;
2546
+ var scrollHeight = body.scrollHeight;
2547
+ var scrollTop = body.scrollTop;
2548
+ var offset = body.offsetHeight;
2549
+ if (height < scrollHeight) {
2550
+ //has scrollbar
2551
+ if (scrollTop > 0) {
2552
+ //can scroll up
2553
+ modal.classList.add('scroll-top');
2554
+ }
2555
+ else {
2556
+ modal.classList.remove('scroll-top');
2557
+ }
2558
+ if (offset + scrollTop < scrollHeight) {
2559
+ //can scroll down
2560
+ modal.classList.add('scroll-bottom');
2561
+ }
2562
+ else {
2563
+ modal.classList.remove('scroll-bottom');
2564
+ }
2565
+ }
2566
+ }
2567
+ }
2568
+ close() {
2569
+ this.show = false;
2570
+ }
2571
+ render() {
2572
+ let content;
2573
+ let overlay;
2574
+ let type = this.iframeUrl ? 'frame' : 'html';
2575
+ let closebtn = (index.h("div", { class: "close", id: "modal-close" }, index.h("ptc-close-icon", { onClick: e => {
2576
+ e.preventDefault();
2577
+ this.close();
2578
+ }, onKeyPress: e => {
2579
+ e.preventDefault();
2580
+ this.close();
2581
+ this.setReturnFocus();
2582
+ if (this.trap) {
2583
+ this.trap.deactivate();
2584
+ }
2585
+ } })));
2586
+ let bottomCloseBtnEle = (index.h("div", { class: "bottom-close", id: "modal-bottom-close", onClick: e => {
2587
+ e.preventDefault();
2588
+ this.close();
2589
+ }, onKeyPress: e => {
2590
+ e.preventDefault();
2591
+ this.close();
2592
+ } }, index.h("span", null, this.bottomCloseBtn)));
2593
+ if (this.iframeUrl) {
2594
+ content = index.h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: '100%', width: '100%', scrolling: "no", onLoad: this.resizeIframe });
2595
+ }
2596
+ else {
2597
+ if (this.showHeaderFooter) {
2598
+ content = index.h("slot", { name: "body" });
2599
+ }
2600
+ else {
2601
+ content = index.h("slot", null);
2602
+ }
2603
+ }
2604
+ if (this.overlay) {
2605
+ if (this.closeOnBlur) {
2606
+ overlay = index.h("div", { class: "overlay", onClick: _ => this.close() });
2607
+ }
2608
+ else {
2609
+ overlay = index.h("div", { class: "overlay" });
2610
+ }
2611
+ }
2612
+ return (index.h(index.Host, { class: this.getCssClassMap() }, this.styles && index.h("style", null, this.styles), index.h("div", { class: `wrapper ${this.show ? 'show' : 'hide'} ${this.fixed ? 'fixed' : ''} ` }, overlay, index.h("div", { class: `modal-popup ${this.customClass ? this.customClass : ''} ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} `, ref: el => (this.modalPopUpRef = el) }, this.modalType === 'event-listing' && this.headerOnlyBg
2613
+ ? [
2614
+ index.h("div", { class: "event-list-header" }, index.h("ptc-img", { "img-url": this.headerOnlyBg, "image-type": "smart-img", styles: ".ptc-img{border-radius: var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px 0px;}" }), index.h("div", { class: "text-wrapper" }, index.h("span", null, this.headerOnlyText1 ? this.headerOnlyText1 : ''), index.h("span", null, this.headerOnlyText2 ? this.headerOnlyText2 : ''))),
2615
+ ]
2616
+ : null, this.showHeaderFooter
2617
+ ? [
2618
+ index.h("div", { class: "modal-header" }, index.h("slot", { name: "header" }), closebtn),
2619
+ index.h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
2620
+ index.h("div", { class: "modal-footer" }, index.h("slot", { name: "footer" })),
2621
+ ]
2622
+ : [closebtn, index.h("div", { class: "modal-body" }, content)], this.modalType === 'event-listing' && this.bottomCloseBtn ? [bottomCloseBtnEle] : null))));
2623
+ }
2624
+ getCssClassMap() {
2625
+ return {
2626
+ ['no-container']: this.hideContainer,
2627
+ ['bio-modal']: this.isBioModal,
2628
+ ['enclose-modal']: !this.isBioModal && this.keepInViewport,
2629
+ [this.borderRadius]: true,
2630
+ [this.modalType]: true,
2631
+ ['vh-center']: this.vhCenter,
2632
+ };
2633
+ }
2634
+ async showModal() {
2635
+ this.show = true;
2636
+ }
2637
+ async hideModal() {
2638
+ this.show = false;
2639
+ }
2640
+ async toggleModal() {
2641
+ this.show = !this.show;
2642
+ }
2643
+ async reloadIframe() {
2644
+ if (this.iframeUrl) {
2645
+ let iframe = this.el.shadowRoot.querySelector('iframe');
2646
+ if (iframe) {
2647
+ iframe.src = iframe.src;
2648
+ }
2649
+ }
2650
+ }
2651
+ get el() { return index.getElement(this); }
2652
+ static get watchers() { return {
2653
+ "show": ["onShowChange"]
2654
+ }; }
2655
+ };
2656
+ PtcModal.style = ptcModalCss;
2657
+
2658
+ const ptcParaCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{position:relative;z-index:1}:host .tooltip-enabled{position:relative}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.gray-darker{color:var(--color-gray-11)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.htmlquote-para{font-size:var(--ptc-font-size-small)}@media only screen and (min-width: 992px){p.htmlquote-para{font-size:var(--ptc-font-size-large)}}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-8 ::slotted(a){font-weight:var(--ptc-font-weight-extrabold) !important}p.w-9{font-weight:var(--ptc-font-weight-black)}p.w-9 ::slotted(a){font-weight:var(--ptc-font-weight-black) !important}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.right-768above{text-align:left}@media (min-width: 768px){p.right-768above{text-align:right}}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}p.line-clamp-title{display:-webkit-box !important;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 768px){:host(.hide-tooltip-on-mobile) .line-clamp-title{-webkit-line-clamp:initial !important}}";
2659
+
2660
+ const PtcPara = class {
2661
+ constructor(hostRef) {
2662
+ index.registerInstance(this, hostRef);
2663
+ this.fontSize = 'x-small';
2664
+ this.fontWeight = 'w-4';
2665
+ this.paraStyle = 'default';
2666
+ this.paraColor = 'primary-grey';
2667
+ this.paraLineH = 'line-height-normal';
2668
+ this.paraMargin = undefined;
2669
+ this.paraAlign = undefined;
2670
+ this.ellipsisLineCutoff = undefined;
2671
+ this.paraZIndex = undefined;
2672
+ this.styles = undefined;
2673
+ this.seoCompatibilityMode = false;
2674
+ this.tooltipZIndex = 'auto';
2675
+ this.tooltipPosition = 'bottom';
2676
+ this.tooltipTheme = 'standard';
2677
+ this.enableTooltip = false;
2678
+ this.maxChars = undefined;
2679
+ this.maxLines = undefined;
2680
+ this.hideTooltipOnMobile = false;
2681
+ this.ismob = undefined;
2682
+ this.noOverflow = false;
2683
+ this.tooltipWidth = 'default';
2684
+ }
2685
+ // Tooltip Properties ends
2686
+ render() {
2687
+ if (this.seoCompatibilityMode) {
2688
+ utils.seoSlotReset(this.el);
2689
+ }
2690
+ return this.standardRender();
2691
+ }
2692
+ //tooltip code
2693
+ getSortedText(content) {
2694
+ if (!this.enableTooltip)
2695
+ return;
2696
+ const trimmedContent = content.trim();
2697
+ const shouldTruncate = (trimmedContent.length > this.maxChars) && !this.maxLines;
2698
+ return shouldTruncate ? `${trimmedContent.slice(0, this.maxChars).trimEnd()}\u00A0\u2026` : trimmedContent;
2699
+ }
2700
+ componentDidLoad() {
2701
+ if (this.hideTooltipOnMobile) {
2702
+ this.el.classList.add('hide-tooltip-on-mobile');
2703
+ }
2704
+ this.el.addEventListener('mouseenter', () => { this.toggleTitleTooltip(true); });
2705
+ this.el.addEventListener('mouseleave', () => { this.toggleTitleTooltip(false); });
2706
+ if (this.enableTooltip) {
2707
+ let paraContent = this.el.innerText || this.el.textContent;
2708
+ this.tooltipText = paraContent.trim();
2709
+ this.el.innerText = this.getSortedText(paraContent);
2710
+ }
2711
+ }
2712
+ toggleTitleTooltip(show) {
2713
+ const tooltipClass = 'tooltip-box';
2714
+ const existingTooltip = this.el.querySelector(`.${tooltipClass}`);
2715
+ const text = this.el.shadowRoot.querySelectorAll('.line-clamp-title');
2716
+ let maxLinesShowCheck = false;
2717
+ if (text) {
2718
+ text.forEach(t => {
2719
+ maxLinesShowCheck = t.scrollHeight > t.clientHeight;
2720
+ });
2721
+ }
2722
+ const ifCharExceeds = this.maxChars ? (this.tooltipText.length > this.maxChars) && !this.maxLines : false;
2723
+ const ifLinesExceeds = this.maxLines && maxLinesShowCheck;
2724
+ if (show && this.enableTooltip) {
2725
+ if (((!existingTooltip && ifCharExceeds) || (!existingTooltip && ifLinesExceeds)) && !this.noOverflow) {
2726
+ const tooltipMarkup = document.createElement('div');
2727
+ tooltipMarkup.className = tooltipClass;
2728
+ tooltipMarkup.innerText = this.tooltipText;
2729
+ tooltipMarkup.style.zIndex = String(this.tooltipZIndex); // Ensures zIndex is a string
2730
+ tooltipMarkup.classList.add(this.tooltipPosition, this.tooltipTheme, this.tooltipWidth);
2731
+ if (this.hideTooltipOnMobile) {
2732
+ tooltipMarkup.classList.add('hide-tooltip-mobile');
2733
+ }
2734
+ this.el.appendChild(tooltipMarkup);
2735
+ }
2736
+ }
2737
+ else {
2738
+ existingTooltip === null || existingTooltip === void 0 ? void 0 : existingTooltip.remove();
2739
+ }
2740
+ }
2741
+ //tooltip code ends
2742
+ standardRender() {
2743
+ const classMap = this.getCssClassMap();
2744
+ const colorClass = this.addWhiteClass();
2745
+ const cutOff = this.getLineCuttoff();
2746
+ return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex} trunc-text` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
2747
+ }
2748
+ getCssClassMap() {
2749
+ return {
2750
+ [this.fontSize]: true,
2751
+ [this.fontWeight]: true,
2752
+ [this.paraStyle]: true,
2753
+ [this.paraMargin]: !!this.paraMargin ? true : false,
2754
+ [this.paraColor]: true,
2755
+ [this.paraLineH]: true,
2756
+ [this.paraAlign]: !!this.paraAlign ? true : false,
2757
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
2758
+ ['line-clamp-title']: this.maxLines && this.maxLines > 0, //tooltip code,
2759
+ };
2760
+ }
2761
+ //WEB-2392
2762
+ addWhiteClass() {
2763
+ if (this.paraColor == 'white') {
2764
+ return {
2765
+ [this.paraColor]: true,
2766
+ };
2767
+ }
2768
+ }
2769
+ getLineCuttoff() {
2770
+ const lineClamp = this.ellipsisLineCutoff > 0 ? this.ellipsisLineCutoff : this.maxLines;
2771
+ return lineClamp > 0 ? { '-webkit-line-clamp': `${lineClamp}` } : {};
2772
+ }
2773
+ get el() { return index.getElement(this); }
2774
+ };
2775
+ PtcPara.style = ptcParaCss;
2776
+
2777
+ const ptcScrollButtonCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}.scroll-btn{position:absolute;top:50%;transform:translate(0%, -50%);display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:0px 4px 4px 0px;background:var(--color-gray-12);box-shadow:var(--ptc-shadow-medium);width:36px;height:36px;padding:var(--ptc-element-spacing-02)}.scroll-btn.left{left:0%}.scroll-btn.right{left:100%;transform:translate(-100%, -50%)}.scroll-btn:focus{outline:none}.scroll-btn[tabIndex=\"0\"]:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.scroll-btn icon-asset{width:20px;height:20px}";
2778
+
2779
+ const PtcScrollButton = class {
2780
+ constructor(hostRef) {
2781
+ index.registerInstance(this, hostRef);
2782
+ //slider!: HTMLElement;
2783
+ this.startX = 0;
2784
+ this.scrollLeft = 0;
2785
+ this.startDragging = (e) => {
2786
+ this.isMouseDown = true;
2787
+ this.isDragging = false;
2788
+ this.containerCards.forEach((card) => {
2789
+ card.disabled = false;
2790
+ });
2791
+ this.startX = e.pageX;
2792
+ this.scrollLeft = this.scrollContainer.scrollLeft;
2793
+ };
2794
+ this.performDragging = (e) => {
2795
+ if (!this.isMouseDown)
2796
+ return;
2797
+ const x = e.pageX - this.scrollContainer.offsetLeft;
2798
+ const walk = x - this.startX;
2799
+ this.isDragging = Math.abs(walk) > 5;
2800
+ this.scrollContainer.scrollLeft = this.scrollLeft - walk;
2801
+ this.containerCards.forEach((card) => {
2802
+ card.disabled = true;
2803
+ });
2804
+ };
2805
+ this.stopDragging = () => {
2806
+ this.isMouseDown = false;
2807
+ this.containerCards.forEach((card) => {
2808
+ card.disabled = false;
2809
+ });
2810
+ };
2811
+ this.handleScroll = () => {
2812
+ this.updateVisibility();
2813
+ };
2814
+ this.handleClick = () => {
2815
+ if (!this.scrollContainer)
2816
+ return;
2817
+ const scrollValue = this.scrollAmount * (this.direction === 'left' || this.direction === 'up' ? -1 : 1);
2818
+ if (this.orientation === 'horizontal') {
2819
+ console.log('hello, left/right scroll click!');
2820
+ this.scrollContainer.scrollBy({
2821
+ left: scrollValue,
2822
+ behavior: 'smooth',
2823
+ });
2824
+ }
2825
+ else if (this.orientation === 'vertical') {
2826
+ this.scrollContainer.scrollBy({
2827
+ top: scrollValue,
2828
+ behavior: 'smooth',
2829
+ });
2830
+ }
2831
+ };
2832
+ this.direction = undefined;
2833
+ this.scrollContainerClass = undefined;
2834
+ this.scrollAmount = 100;
2835
+ this.orientation = 'horizontal';
2836
+ this.trackerId = undefined;
2837
+ this.styles = undefined;
2838
+ this.isVisible = true;
2839
+ this.isDragging = false;
2840
+ this.isMouseDown = false;
2841
+ }
2842
+ componentWillLoad() {
2843
+ this.scrollContainer = document.querySelector(`.${this.scrollContainerClass}`);
2844
+ if (this.scrollContainer) {
2845
+ this.scrollContainer.classList.add('hide-scrollbar');
2846
+ this.updateVisibility(); // Initial visibility check
2847
+ this.scrollContainer.addEventListener('scroll', this.handleScroll);
2848
+ }
2849
+ else {
2850
+ console.error('scrollContainer ele not found');
2851
+ }
2852
+ }
2853
+ componentDidLoad() {
2854
+ this.containerCards = document.querySelectorAll(`.${this.scrollContainerClass} ptc-card-wrapper`);
2855
+ if (this.scrollContainer) {
2856
+ this.enableDragging();
2857
+ }
2858
+ }
2859
+ disconnectedCallback() {
2860
+ if (this.scrollContainer) {
2861
+ this.scrollContainer.removeEventListener('scroll', this.handleScroll);
2862
+ this.disableDragging();
2863
+ }
2864
+ }
2865
+ async initVisibility() {
2866
+ this.updateVisibility();
2867
+ }
2868
+ enableDragging() {
2869
+ this.scrollContainer.addEventListener('mousedown', this.startDragging);
2870
+ this.scrollContainer.addEventListener('mousemove', this.performDragging);
2871
+ ['mouseup', 'mouseleave'].forEach(event => this.scrollContainer.addEventListener(event, this.stopDragging));
2872
+ }
2873
+ disableDragging() {
2874
+ this.scrollContainer.removeEventListener('mousedown', this.startDragging);
2875
+ this.scrollContainer.removeEventListener('mousemove', this.performDragging);
2876
+ ['mouseup', 'mouseleave'].forEach(event => this.scrollContainer.removeEventListener(event, this.stopDragging));
2877
+ }
2878
+ updateVisibility() {
2879
+ if (!this.scrollContainer)
2880
+ return;
2881
+ const { scrollLeft, scrollTop, scrollWidth, scrollHeight, clientWidth, clientHeight } = this.scrollContainer;
2882
+ if (this.orientation === 'horizontal') {
2883
+ if (this.direction === 'left') {
2884
+ this.isVisible = scrollLeft > 0;
2885
+ }
2886
+ else if (this.direction === 'right') {
2887
+ this.isVisible = scrollLeft + clientWidth + 1 < scrollWidth; // "+1" adjustments after adding margin-right 40px
2888
+ // console.log('scorllLeft: ' + scrollLeft + ", scrollWidth: " + scrollWidth + ", clientWidth: " + clientWidth);
2889
+ }
2890
+ }
2891
+ else if (this.orientation === 'vertical') {
2892
+ if (this.direction === 'up') {
2893
+ this.isVisible = scrollTop > 0;
2894
+ }
2895
+ else if (this.direction === 'down') {
2896
+ this.isVisible = scrollTop + clientHeight < scrollHeight;
2897
+ }
2898
+ }
2899
+ }
2900
+ render() {
2901
+ return (index.h(index.Host, { "is-dragging": this.isDragging }, this.styles && index.h("style", null, this.styles), this.isVisible && (index.h("button", { id: this.trackerId, onClick: this.handleClick, class: `scroll-btn ${this.direction}`, "aria-label": this.direction, tabindex: "0" }, this.direction === 'left' && index.h("icon-asset", { name: "left-scroll-arrow", size: "small", color: "white", type: "ptc", "injected-style": "svg:focus{outline:none;}" }), this.direction === 'right' && index.h("icon-asset", { name: "right-scroll-arrow", size: "small", color: "white", type: "ptc", "injected-style": "svg:focus{outline:none;}" }), this.direction === 'up' && '▲', this.direction === 'down' && '▼'))));
2902
+ }
2903
+ };
2904
+ PtcScrollButton.style = ptcScrollButtonCss;
2905
+
2906
+ const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.99em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 75em){:host(.ptc-spacer-xx-large){display:block}}:host(.ptc-spacer-xxx-large){display:none}@media (min-width: 90em){:host(.ptc-spacer-xxx-large){display:block}}";
2907
+
2908
+ const PtcSpacer = class {
2909
+ constructor(hostRef) {
2910
+ index.registerInstance(this, hostRef);
2911
+ this.breakpoint = '';
2912
+ this.size = 'medium';
2913
+ this.direction = 'vertical';
2914
+ }
2915
+ render() {
2916
+ const classMap = this.getCssClassMap();
2917
+ return (index.h(index.Host, { class: classMap }));
2918
+ }
2919
+ getCssClassMap() {
2920
+ return {
2921
+ [this.size]: true,
2922
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
2923
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
2924
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
2925
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
2926
+ ['ptc-spacer-small']: this.breakpoint === 'small',
2927
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
2928
+ ['ptc-spacer-large']: this.breakpoint === 'large',
2929
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
2930
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
2931
+ ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
2932
+ };
2933
+ }
2934
+ };
2935
+ PtcSpacer.style = ptcSpacerCss;
2936
+
2937
+ const ptcTitleCss = "h1.sc-ptc-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title,.hyphenate-text.sc-ptc-title,ptc-footer.sc-ptc-title{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title,.hyphenate-text.sc-ptc-title,ptc-footer.sc-ptc-title{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before,div.center.dotted.sc-ptc-title h4.sc-ptc-title::before,div.center.dotted.sc-ptc-title h5.sc-ptc-title::before,div.center.dotted.sc-ptc-title h6.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left;width:100%}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before,div.left.dotted.sc-ptc-title h4.sc-ptc-title::before,div.left.dotted.sc-ptc-title h5.sc-ptc-title::before,div.left.dotted.sc-ptc-title h6.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before,div.right.dotted.sc-ptc-title h4.sc-ptc-title::before,div.right.dotted.sc-ptc-title h5.sc-ptc-title::before,div.right.dotted.sc-ptc-title h6.sc-ptc-title::before{right:0%}div.inherit.sc-ptc-title{text-align:inherit}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before,div.dotted.sc-ptc-title h4.sc-ptc-title::before,div.dotted.sc-ptc-title h5.sc-ptc-title::before,div.dotted.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed var(--color-green-07)}div.solid.sc-ptc-title h1.sc-ptc-title,div.solid.sc-ptc-title h2.sc-ptc-title,div.solid.sc-ptc-title h3.sc-ptc-title,div.solid.sc-ptc-title h4.sc-ptc-title,div.solid.sc-ptc-title h5.sc-ptc-title,div.solid.sc-ptc-title h6.sc-ptc-title{padding-top:12px}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before,div.solid.sc-ptc-title h4.sc-ptc-title::before,div.solid.sc-ptc-title h5.sc-ptc-title::before,div.solid.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-gray-03);opacity:0.9;left:0px;top:0}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after,div.solid.sc-ptc-title h4.sc-ptc-title::after,div.solid.sc-ptc-title h5.sc-ptc-title::after,div.solid.sc-ptc-title h6.sc-ptc-title::after{content:\"\";position:absolute;width:56px;height:2px;background-color:var(--color-green-07);top:-2px;left:0px}div.is-standard.sc-ptc-title h1.sc-ptc-title,div.is-standard.sc-ptc-title h2.sc-ptc-title,div.is-standard.sc-ptc-title h3.sc-ptc-title,div.is-standard.sc-ptc-title h4.sc-ptc-title,div.is-standard.sc-ptc-title h5.sc-ptc-title,div.is-standard.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title,div.is-plm-hub.sc-ptc-title h2.sc-ptc-title,div.is-plm-hub.sc-ptc-title h3.sc-ptc-title,div.is-plm-hub.sc-ptc-title h4.sc-ptc-title,div.is-plm-hub.sc-ptc-title h5.sc-ptc-title,div.is-plm-hub.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px;color:var(--color-white) !important}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-flush.sc-ptc-title h1.sc-ptc-title,div.margin-flush.sc-ptc-title h2.sc-ptc-title,div.margin-flush.sc-ptc-title h3.sc-ptc-title,div.margin-flush.sc-ptc-title h4.sc-ptc-title,div.margin-flush.sc-ptc-title h5.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}div.margin-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}div.margin-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}div.margin-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}div.margin-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}div.margin-5.sc-ptc-title h4.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}div.margin-9.sc-ptc-title{margin-top:var(--ptc-element-spacing-09);margin-bottom:var(--ptc-element-spacing-09)}div.green.sc-ptc-title h1.sc-ptc-title,div.green.sc-ptc-title h2.sc-ptc-title,div.green.sc-ptc-title h3.sc-ptc-title,div.green.sc-ptc-title h4.sc-ptc-title,div.green.sc-ptc-title h5.sc-ptc-title,div.green.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-green-07)}div.blue.sc-ptc-title h1.sc-ptc-title,div.blue.sc-ptc-title h2.sc-ptc-title,div.blue.sc-ptc-title h3.sc-ptc-title,div.blue.sc-ptc-title h4.sc-ptc-title,div.blue.sc-ptc-title h5.sc-ptc-title,div.blue.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-blue-07)}div.red.sc-ptc-title h1.sc-ptc-title,div.red.sc-ptc-title h2.sc-ptc-title,div.red.sc-ptc-title h3.sc-ptc-title,div.red.sc-ptc-title h4.sc-ptc-title,div.red.sc-ptc-title h5.sc-ptc-title,div.red.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-red-07)}div.orange.sc-ptc-title h1.sc-ptc-title,div.orange.sc-ptc-title h2.sc-ptc-title,div.orange.sc-ptc-title h3.sc-ptc-title,div.orange.sc-ptc-title h4.sc-ptc-title,div.orange.sc-ptc-title h5.sc-ptc-title,div.orange.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-orange-07)}div.slate-grey.sc-ptc-title h1.sc-ptc-title,div.slate-grey.sc-ptc-title h2.sc-ptc-title,div.slate-grey.sc-ptc-title h3.sc-ptc-title,div.slate-grey.sc-ptc-title h4.sc-ptc-title,div.slate-grey.sc-ptc-title h5.sc-ptc-title,div.slate-grey.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-gray-07)}div.w-3.sc-ptc-title h1.sc-ptc-title,div.w-3.sc-ptc-title h2.sc-ptc-title,div.w-3.sc-ptc-title h3.sc-ptc-title,div.w-3.sc-ptc-title h4.sc-ptc-title,div.w-3.sc-ptc-title h5.sc-ptc-title,div.w-3.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-thin)}div.w-4.sc-ptc-title h1.sc-ptc-title,div.w-4.sc-ptc-title h2.sc-ptc-title,div.w-4.sc-ptc-title h3.sc-ptc-title,div.w-4.sc-ptc-title h4.sc-ptc-title,div.w-4.sc-ptc-title h5.sc-ptc-title,div.w-4.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-regular)}div.w-5.sc-ptc-title h1.sc-ptc-title,div.w-5.sc-ptc-title h2.sc-ptc-title,div.w-5.sc-ptc-title h3.sc-ptc-title,div.w-5.sc-ptc-title h4.sc-ptc-title,div.w-5.sc-ptc-title h5.sc-ptc-title,div.w-5.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-medium)}div.w-6.sc-ptc-title h1.sc-ptc-title,div.w-6.sc-ptc-title h2.sc-ptc-title,div.w-6.sc-ptc-title h3.sc-ptc-title,div.w-6.sc-ptc-title h4.sc-ptc-title,div.w-6.sc-ptc-title h5.sc-ptc-title,div.w-6.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-semibold)}div.w-7.sc-ptc-title h1.sc-ptc-title,div.w-7.sc-ptc-title h2.sc-ptc-title,div.w-7.sc-ptc-title h3.sc-ptc-title,div.w-7.sc-ptc-title h4.sc-ptc-title,div.w-7.sc-ptc-title h5.sc-ptc-title,div.w-7.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-bold)}div.w-8.sc-ptc-title h1.sc-ptc-title,div.w-8.sc-ptc-title h2.sc-ptc-title,div.w-8.sc-ptc-title h3.sc-ptc-title,div.w-8.sc-ptc-title h4.sc-ptc-title,div.w-8.sc-ptc-title h5.sc-ptc-title,div.w-8.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-extrabold)}div.w-9.sc-ptc-title h1.sc-ptc-title,div.w-9.sc-ptc-title h2.sc-ptc-title,div.w-9.sc-ptc-title h3.sc-ptc-title,div.w-9.sc-ptc-title h4.sc-ptc-title,div.w-9.sc-ptc-title h5.sc-ptc-title,div.w-9.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-black)}div.xx-small.sc-ptc-title h1.sc-ptc-title,div.xx-small.sc-ptc-title h2.sc-ptc-title,div.xx-small.sc-ptc-title h3.sc-ptc-title,div.xx-small.sc-ptc-title h4.sc-ptc-title,div.xx-small.sc-ptc-title h5.sc-ptc-title,div.xx-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-small)}div.x-small.sc-ptc-title h1.sc-ptc-title,div.x-small.sc-ptc-title h2.sc-ptc-title,div.x-small.sc-ptc-title h3.sc-ptc-title,div.x-small.sc-ptc-title h4.sc-ptc-title,div.x-small.sc-ptc-title h5.sc-ptc-title,div.x-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-small)}div.small.sc-ptc-title h1.sc-ptc-title,div.small.sc-ptc-title h2.sc-ptc-title,div.small.sc-ptc-title h3.sc-ptc-title,div.small.sc-ptc-title h4.sc-ptc-title,div.small.sc-ptc-title h5.sc-ptc-title,div.small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-small)}div.medium.sc-ptc-title h1.sc-ptc-title,div.medium.sc-ptc-title h2.sc-ptc-title,div.medium.sc-ptc-title h3.sc-ptc-title,div.medium.sc-ptc-title h4.sc-ptc-title,div.medium.sc-ptc-title h5.sc-ptc-title,div.medium.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-medium)}div.large.sc-ptc-title h1.sc-ptc-title,div.large.sc-ptc-title h2.sc-ptc-title,div.large.sc-ptc-title h3.sc-ptc-title,div.large.sc-ptc-title h4.sc-ptc-title,div.large.sc-ptc-title h5.sc-ptc-title,div.large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-large)}div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-medium)}@media only screen and (min-width: 768px){div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-large)}}div.x-large.sc-ptc-title h1.sc-ptc-title,div.x-large.sc-ptc-title h2.sc-ptc-title,div.x-large.sc-ptc-title h3.sc-ptc-title,div.x-large.sc-ptc-title h4.sc-ptc-title,div.x-large.sc-ptc-title h5.sc-ptc-title,div.x-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}@media only screen and (min-width: 768px){div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}@media only screen and (min-width: 768px){div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}}div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 768px){div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}div.xxxx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.densest.sc-ptc-title h1.sc-ptc-title,div.densest.sc-ptc-title h2.sc-ptc-title,div.densest.sc-ptc-title h3.sc-ptc-title,div.densest.sc-ptc-title h4.sc-ptc-title,div.densest.sc-ptc-title h5.sc-ptc-title,div.densest.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-densest)}div.denser.sc-ptc-title h1.sc-ptc-title,div.denser.sc-ptc-title h2.sc-ptc-title,div.denser.sc-ptc-title h3.sc-ptc-title,div.denser.sc-ptc-title h4.sc-ptc-title,div.denser.sc-ptc-title h5.sc-ptc-title,div.denser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-denser)}div.dense.sc-ptc-title h1.sc-ptc-title,div.dense.sc-ptc-title h2.sc-ptc-title,div.dense.sc-ptc-title h3.sc-ptc-title,div.dense.sc-ptc-title h4.sc-ptc-title,div.dense.sc-ptc-title h5.sc-ptc-title,div.dense.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-dense)}div.normal.sc-ptc-title h1.sc-ptc-title,div.normal.sc-ptc-title h2.sc-ptc-title,div.normal.sc-ptc-title h3.sc-ptc-title,div.normal.sc-ptc-title h4.sc-ptc-title,div.normal.sc-ptc-title h5.sc-ptc-title,div.normal.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-normal)}div.loose.sc-ptc-title h1.sc-ptc-title,div.loose.sc-ptc-title h2.sc-ptc-title,div.loose.sc-ptc-title h3.sc-ptc-title,div.loose.sc-ptc-title h4.sc-ptc-title,div.loose.sc-ptc-title h5.sc-ptc-title,div.loose.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-loose)}div.looser.sc-ptc-title h1.sc-ptc-title,div.looser.sc-ptc-title h2.sc-ptc-title,div.looser.sc-ptc-title h3.sc-ptc-title,div.looser.sc-ptc-title h4.sc-ptc-title,div.looser.sc-ptc-title h5.sc-ptc-title,div.looser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-looser)}div.paragraph.sc-ptc-title h1.sc-ptc-title,div.paragraph.sc-ptc-title h2.sc-ptc-title,div.paragraph.sc-ptc-title h3.sc-ptc-title,div.paragraph.sc-ptc-title h4.sc-ptc-title,div.paragraph.sc-ptc-title h5.sc-ptc-title,div.paragraph.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-paragraph)}div.black.sc-ptc-title h1.sc-ptc-title,div.black.sc-ptc-title h2.sc-ptc-title,div.black.sc-ptc-title h3.sc-ptc-title,div.black.sc-ptc-title h4.sc-ptc-title,div.black.sc-ptc-title h5.sc-ptc-title,div.black.sc-ptc-title h6.sc-ptc-title{color:var(--color-black)}div.white.sc-ptc-title h1.sc-ptc-title,div.white.sc-ptc-title h2.sc-ptc-title,div.white.sc-ptc-title h3.sc-ptc-title,div.white.sc-ptc-title h4.sc-ptc-title,div.white.sc-ptc-title h5.sc-ptc-title,div.white.sc-ptc-title h6.sc-ptc-title{color:var(--color-white)}div.gray-1.sc-ptc-title h1.sc-ptc-title,div.gray-1.sc-ptc-title h2.sc-ptc-title,div.gray-1.sc-ptc-title h3.sc-ptc-title,div.gray-1.sc-ptc-title h4.sc-ptc-title,div.gray-1.sc-ptc-title h5.sc-ptc-title,div.gray-1.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-01)}div.gray.sc-ptc-title h1.sc-ptc-title,div.gray.sc-ptc-title h2.sc-ptc-title,div.gray.sc-ptc-title h3.sc-ptc-title,div.gray.sc-ptc-title h4.sc-ptc-title,div.gray.sc-ptc-title h5.sc-ptc-title,div.gray.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-10)}div.gray-darker.sc-ptc-title h1.sc-ptc-title,div.gray-darker.sc-ptc-title h2.sc-ptc-title,div.gray-darker.sc-ptc-title h3.sc-ptc-title,div.gray-darker.sc-ptc-title h4.sc-ptc-title,div.gray-darker.sc-ptc-title h5.sc-ptc-title,div.gray-darker.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-11)}div.ellipsis-boxing.sc-ptc-title h1.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h2.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h3.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h4.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h5.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h6.sc-ptc-title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}div.block.sc-ptc-title h1.sc-ptc-title,div.block.sc-ptc-title h2.sc-ptc-title,div.block.sc-ptc-title h3.sc-ptc-title,div.block.sc-ptc-title h4.sc-ptc-title,div.block.sc-ptc-title h5.sc-ptc-title,div.block.sc-ptc-title h6.sc-ptc-title{display:block}.line-clamp-title.sc-ptc-title{display:-webkit-box !important;-webkit-box-orient:vertical;overflow:hidden}.sc-ptc-title-h{display:block}.sc-ptc-title-h div.sc-ptc-title{position:relative}";
2938
+
2939
+ const PtcTitle = class {
2940
+ constructor(hostRef) {
2941
+ index.registerInstance(this, hostRef);
2942
+ this.isPlmHub = false;
2943
+ this.type = 'h2';
2944
+ this.textAlign = undefined;
2945
+ this.upperline = 'dotted';
2946
+ this.titleShadow = undefined;
2947
+ this.titleColor = 'gray';
2948
+ this.titleMargin = undefined;
2949
+ this.titleWeight = undefined;
2950
+ this.titleSize = undefined;
2951
+ this.titleHeight = 'densest';
2952
+ this.styles = undefined;
2953
+ this.ellipsisLineCutoff = undefined;
2954
+ this.titleDisplay = 'inline-block';
2955
+ this.seoCompatibilityMode = false;
2956
+ this.tooltipZIndex = 'auto';
2957
+ this.tooltipPosition = 'bottom';
2958
+ this.tooltipTheme = 'standard';
2959
+ this.enableTooltip = false;
2960
+ this.maxChars = undefined;
2961
+ this.maxLines = undefined;
2962
+ this.hideTooltipOnMobile = false;
2963
+ this.ismob = undefined;
2964
+ this.tooltipWidth = 'default';
2965
+ }
2966
+ // Tooltip Properties ends
2967
+ componentDidLoad() {
2968
+ if (this.hideTooltipOnMobile) {
2969
+ this.el.classList.add('hide-tooltip-on-mobile');
2970
+ }
2971
+ this.el.addEventListener('mouseenter', () => this.toggleTitleTooltip(true));
2972
+ this.el.addEventListener('mouseleave', () => this.toggleTitleTooltip(false));
2973
+ }
2974
+ render() {
2975
+ if (this.seoCompatibilityMode) {
2976
+ return this.seoCompRender();
2977
+ }
2978
+ else {
2979
+ return this.standardRender();
2980
+ }
2981
+ }
2982
+ getSortedText(content) {
2983
+ if (!this.enableTooltip)
2984
+ return;
2985
+ const trimmedContent = content.trim();
2986
+ const shouldTruncate = (trimmedContent.length > this.maxChars) && !this.maxLines;
2987
+ return shouldTruncate ? trimmedContent.slice(0, this.maxChars) + '...' : trimmedContent;
2988
+ }
2989
+ toggleTitleTooltip(show) {
2990
+ var _a;
2991
+ const tooltipClass = 'tooltip-box';
2992
+ const existingTooltip = this.el.querySelector(`.${tooltipClass}`);
2993
+ const text = this.el.querySelectorAll('.line-clamp-title');
2994
+ let maxLinesShowCheck = false;
2995
+ if (text) {
2996
+ text.forEach(t => {
2997
+ maxLinesShowCheck = t.scrollHeight > t.clientHeight;
2998
+ });
2999
+ }
3000
+ const ifCharExceeds = this.tooltipText && (this.tooltipText.length > this.maxChars) && !this.maxLines;
3001
+ const ifLinesExceeds = this.maxLines && maxLinesShowCheck;
3002
+ if (show && this.enableTooltip) {
3003
+ if ((!existingTooltip && ifCharExceeds) || (!existingTooltip && ifLinesExceeds)) {
3004
+ const tooltipMarkup = document.createElement('div');
3005
+ tooltipMarkup.className = tooltipClass;
3006
+ tooltipMarkup.innerText = this.tooltipText;
3007
+ tooltipMarkup.style.zIndex = String(this.tooltipZIndex); // Ensures zIndex is a string
3008
+ tooltipMarkup.classList.add(this.tooltipPosition, this.tooltipTheme, this.tooltipWidth);
3009
+ if (this.hideTooltipOnMobile) {
3010
+ tooltipMarkup.classList.add('hide-tooltip-mobile');
3011
+ }
3012
+ (_a = this.el.querySelector('div')) === null || _a === void 0 ? void 0 : _a.appendChild(tooltipMarkup);
3013
+ }
3014
+ }
3015
+ else {
3016
+ existingTooltip === null || existingTooltip === void 0 ? void 0 : existingTooltip.remove();
3017
+ }
3018
+ }
3019
+ seoCompRender() {
3020
+ const classMap = this.getCssClassMap();
3021
+ const cutOff = this.getLineCuttoff();
3022
+ const [TagType, firstChild] = utils.getSeoTagType(this.el, this.type);
3023
+ let html = firstChild && firstChild.innerHTML;
3024
+ // added for tooltip
3025
+ this.tooltipText = html.trim();
3026
+ let eleText = firstChild && firstChild.innerText;
3027
+ html = (this.enableTooltip) ? this.getSortedText(eleText) : html;
3028
+ if (this.el == firstChild) {
3029
+ this.el.innerHTML = '';
3030
+ }
3031
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { innerHTML: html, style: cutOff, class: this.maxLines && this.maxLines > 0 ? 'line-clamp-title' : '' }))));
3032
+ }
3033
+ standardRender() {
3034
+ const classMap = this.getCssClassMap();
3035
+ const cutOff = this.getLineCuttoff();
3036
+ let TagType;
3037
+ switch (this.type) {
3038
+ case 'h1':
3039
+ TagType = 'h1';
3040
+ break;
3041
+ case 'h3':
3042
+ TagType = 'h3';
3043
+ break;
3044
+ case 'h4':
3045
+ TagType = 'h4';
3046
+ break;
3047
+ case 'h5':
3048
+ TagType = 'h5';
3049
+ break;
3050
+ case 'h6':
3051
+ TagType = 'h6';
3052
+ break;
3053
+ default:
3054
+ TagType = 'h2';
3055
+ }
3056
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { style: cutOff }, index.h("slot", null)))));
3057
+ }
3058
+ getCssClassMap() {
3059
+ return {
3060
+ [this.textAlign]: !!this.textAlign ? true : false,
3061
+ [this.upperline]: true,
3062
+ [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
3063
+ [this.titleMargin]: !!this.titleMargin ? true : false,
3064
+ [this.titleShadow]: !!this.titleShadow ? true : false,
3065
+ [this.titleWeight]: !!this.titleWeight ? true : false,
3066
+ [this.titleSize]: !!this.titleSize ? true : false,
3067
+ [this.titleHeight]: !!this.titleHeight ? true : false,
3068
+ [this.titleColor]: !!this.titleColor ? true : false,
3069
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
3070
+ [this.titleDisplay]: !!this.titleDisplay ? true : false,
3071
+ };
3072
+ }
3073
+ getLineCuttoff() {
3074
+ const lineClamp = this.ellipsisLineCutoff > 0 ? this.ellipsisLineCutoff : this.maxLines;
3075
+ return lineClamp > 0 ? { '-webkit-line-clamp': `${lineClamp}` } : {};
3076
+ }
3077
+ get el() { return index.getElement(this); }
3078
+ };
3079
+ PtcTitle.style = ptcTitleCss;
3080
+
3081
+ exports.event_jumbotron_example = EventJumbotronExample;
3082
+ exports.icon_asset = IconAsset;
3083
+ exports.list_item = ListItem;
3084
+ exports.ptc_breadcrumb = PtcBreadcrumb;
3085
+ exports.ptc_button = PtcButton;
3086
+ exports.ptc_card_content = PtcCardContent;
3087
+ exports.ptc_card_wrapper = PtcCardPlm;
3088
+ exports.ptc_close_icon = PtcCloseIcon;
3089
+ exports.ptc_img = PtcImg;
3090
+ exports.ptc_link = PtcLink;
3091
+ exports.ptc_modal = PtcModal;
3092
+ exports.ptc_para = PtcPara;
3093
+ exports.ptc_scroll_button = PtcScrollButton;
3094
+ exports.ptc_spacer = PtcSpacer;
3095
+ exports.ptc_title = PtcTitle;