@ptcwebops/ptcw-design 1.4.9 → 1.5.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 (364) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/bundle-example.cjs.entry.js +30 -30
  3. package/dist/cjs/{bundle-jumbotron-example_16.cjs.entry.js → bundle-jumbotron-example_14.cjs.entry.js} +888 -1119
  4. package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
  5. package/dist/cjs/dynamic-box-bundle.cjs.entry.js +25 -25
  6. package/dist/cjs/innovator-toggle-container.cjs.entry.js +32 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/lottie-player.cjs.entry.js +354 -354
  9. package/dist/cjs/my-component.cjs.entry.js +15 -15
  10. package/dist/cjs/ptc-accordion-item.cjs.entry.js +83 -83
  11. package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
  12. package/dist/cjs/ptc-announcement.cjs.entry.js +50 -50
  13. package/dist/cjs/ptc-bio-card.cjs.entry.js +24 -24
  14. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +122 -122
  15. package/dist/cjs/ptc-card-content.cjs.entry.js +57 -57
  16. package/dist/cjs/ptc-card.cjs.entry.js +66 -66
  17. package/dist/cjs/ptc-checkbox.cjs.entry.js +50 -50
  18. package/dist/cjs/ptc-collapse-list.cjs.entry.js +346 -346
  19. package/dist/cjs/ptc-container.cjs.entry.js +33 -33
  20. package/dist/cjs/ptc-date.cjs.entry.js +50 -50
  21. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  22. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +47 -47
  23. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  24. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  25. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  26. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  27. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  28. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +43 -43
  29. package/dist/cjs/ptc-link.cjs.entry.js +35 -35
  30. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  31. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  32. package/dist/cjs/ptc-media-card.cjs.entry.js +58 -58
  33. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  34. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  35. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -53
  36. package/dist/cjs/ptc-modal.cjs.entry.js +160 -0
  37. package/dist/cjs/ptc-nav-card.cjs.entry.js +36 -36
  38. package/dist/cjs/ptc-nav-link.cjs.entry.js +36 -36
  39. package/dist/cjs/ptc-nav-slider.cjs.entry.js +83 -83
  40. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +18 -18
  41. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  42. package/dist/cjs/ptc-pagenation.cjs.entry.js +307 -307
  43. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -11
  44. package/dist/cjs/ptc-pricing-block.cjs.entry.js +21 -21
  45. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +125 -125
  46. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  47. package/dist/cjs/ptc-readmore.cjs.entry.js +73 -73
  48. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  49. package/dist/cjs/ptc-search-field.cjs.entry.js +71 -71
  50. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  51. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  52. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  53. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  54. package/dist/cjs/ptc-sticky-section.cjs.entry.js +27 -27
  55. package/dist/cjs/ptc-subnav-card.cjs.entry.js +15 -15
  56. package/dist/cjs/ptc-subnav.cjs.entry.js +21 -21
  57. package/dist/cjs/ptc-svg-btn.cjs.entry.js +116 -0
  58. package/dist/cjs/ptc-tab-list.cjs.entry.js +125 -125
  59. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  60. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  61. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +41 -41
  62. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  63. package/dist/cjs/ptcw-design.cjs.js +1 -1
  64. package/dist/cjs/sequential-bundle-example.cjs.entry.js +100 -100
  65. package/dist/cjs/sequential-bundle.cjs.entry.js +88 -88
  66. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  67. package/dist/cjs/tab-header.cjs.entry.js +65 -65
  68. package/dist/cjs/{utils-416c94fe.js → utils-9eb22041.js} +90 -90
  69. package/dist/collection/collection-manifest.json +1 -0
  70. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  71. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  72. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  73. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  74. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  75. package/dist/collection/components/icon-asset/media/designer.svg +397 -397
  76. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  77. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  78. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  79. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +90 -0
  80. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -0
  81. package/dist/collection/components/list-item/list-item.js +144 -144
  82. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  83. package/dist/collection/components/max-width-container/max-width-container.js +105 -105
  84. package/dist/collection/components/my-component/my-component.css +3 -3
  85. package/dist/collection/components/my-component/my-component.js +82 -82
  86. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  87. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +58 -58
  88. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  89. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -88
  90. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  91. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +89 -89
  92. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +152 -152
  93. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  94. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  95. package/dist/collection/components/ptc-announcement/ptc-announcement.js +237 -237
  96. package/dist/collection/components/ptc-background-video/ptc-background-video.css +16 -0
  97. package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -128
  98. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
  99. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
  100. package/dist/collection/components/ptc-button/ptc-button.js +283 -283
  101. package/dist/collection/components/ptc-card/ptc-card.js +362 -362
  102. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  103. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  104. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +214 -214
  105. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  106. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +586 -586
  107. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  108. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  109. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  110. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  111. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +174 -174
  112. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  113. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  114. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  115. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  116. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  117. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
  118. package/dist/collection/components/ptc-img/ptc-img.js +311 -311
  119. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +13 -28
  120. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +349 -317
  121. package/dist/collection/components/ptc-link/ptc-link.js +209 -209
  122. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  123. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  124. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  125. package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
  126. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  127. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  128. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
  129. package/dist/collection/components/ptc-modal/ptc-modal.js +389 -389
  130. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  131. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  132. package/dist/collection/components/ptc-pagenation/ptc-pagenation.css +1 -1
  133. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
  134. package/dist/collection/components/ptc-para/ptc-para.js +242 -242
  135. package/dist/collection/components/ptc-picture/ptc-picture.js +453 -453
  136. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  137. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.css +3 -2
  138. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  139. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +20 -11
  140. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  141. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  142. package/dist/collection/components/ptc-readmore/ptc-readmore.js +298 -298
  143. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  144. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  145. package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
  146. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  147. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  148. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  149. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  150. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  151. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  152. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  153. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +46 -46
  154. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  155. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +177 -177
  156. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  157. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  158. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +180 -180
  159. package/dist/collection/components/ptc-title/ptc-title.css +11 -0
  160. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  161. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +322 -322
  162. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  163. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +114 -114
  164. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +126 -126
  165. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +85 -85
  166. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +47 -47
  167. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
  168. package/dist/collection/components/tab-content/tab-content.js +84 -84
  169. package/dist/collection/components/tab-header/tab-header.css +1 -1
  170. package/dist/collection/components/tab-header/tab-header.js +182 -182
  171. package/dist/collection/index.js +1 -1
  172. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  173. package/dist/collection/media/svg-imgs/close.svg +10 -10
  174. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  175. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  176. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  177. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  178. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  179. package/dist/collection/media/svg-imgs/union.svg +3 -3
  180. package/dist/collection/utils/component.js +3 -3
  181. package/dist/collection/utils/interfaces.js +11 -11
  182. package/dist/collection/utils/utils.js +92 -92
  183. package/dist/custom-elements/index.d.ts +6 -0
  184. package/dist/custom-elements/index.js +4904 -4842
  185. package/dist/esm/bundle-example.entry.js +30 -30
  186. package/dist/esm/{bundle-jumbotron-example_16.entry.js → bundle-jumbotron-example_14.entry.js} +889 -1118
  187. package/dist/esm/dropdown-item.entry.js +10 -10
  188. package/dist/esm/dynamic-box-bundle.entry.js +25 -25
  189. package/dist/esm/innovator-toggle-container.entry.js +28 -0
  190. package/dist/esm/loader.js +1 -1
  191. package/dist/esm/lottie-player.entry.js +354 -354
  192. package/dist/esm/my-component.entry.js +15 -15
  193. package/dist/esm/polyfills/core-js.js +0 -0
  194. package/dist/esm/polyfills/dom.js +0 -0
  195. package/dist/esm/polyfills/es5-html-element.js +0 -0
  196. package/dist/esm/polyfills/index.js +0 -0
  197. package/dist/esm/polyfills/system.js +0 -0
  198. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  199. package/dist/esm/ptc-accordion.entry.js +35 -35
  200. package/dist/esm/ptc-announcement.entry.js +50 -50
  201. package/dist/esm/ptc-bio-card.entry.js +24 -24
  202. package/dist/esm/ptc-card-bottom_3.entry.js +122 -122
  203. package/dist/esm/ptc-card-content.entry.js +57 -57
  204. package/dist/esm/ptc-card.entry.js +66 -66
  205. package/dist/esm/ptc-checkbox.entry.js +50 -50
  206. package/dist/esm/ptc-collapse-list.entry.js +346 -346
  207. package/dist/esm/ptc-container.entry.js +33 -33
  208. package/dist/esm/ptc-date.entry.js +50 -50
  209. package/dist/esm/ptc-dropdown.entry.js +64 -64
  210. package/dist/esm/ptc-dynamic-card.entry.js +47 -47
  211. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  212. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  213. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  214. package/dist/esm/ptc-hero.entry.js +18 -18
  215. package/dist/esm/ptc-icon-list.entry.js +21 -21
  216. package/dist/esm/ptc-icon-minimize.entry.js +43 -43
  217. package/dist/esm/ptc-link.entry.js +35 -35
  218. package/dist/esm/ptc-list.entry.js +49 -49
  219. package/dist/esm/ptc-lottie.entry.js +10 -10
  220. package/dist/esm/ptc-media-card.entry.js +58 -58
  221. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  222. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  223. package/dist/esm/ptc-mobile-select.entry.js +53 -53
  224. package/dist/esm/ptc-modal.entry.js +156 -0
  225. package/dist/esm/ptc-nav-card.entry.js +36 -36
  226. package/dist/esm/ptc-nav-link.entry.js +36 -36
  227. package/dist/esm/ptc-nav-slider.entry.js +83 -83
  228. package/dist/esm/ptc-nav-submenu.entry.js +18 -18
  229. package/dist/esm/ptc-overlay.entry.js +23 -23
  230. package/dist/esm/ptc-pagenation.entry.js +307 -307
  231. package/dist/esm/ptc-previous-url.entry.js +11 -11
  232. package/dist/esm/ptc-pricing-block.entry.js +21 -21
  233. package/dist/esm/ptc-pricing-tabs.entry.js +125 -125
  234. package/dist/esm/ptc-quote.entry.js +23 -23
  235. package/dist/esm/ptc-readmore.entry.js +73 -73
  236. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  237. package/dist/esm/ptc-search-field.entry.js +71 -71
  238. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  239. package/dist/esm/ptc-social-share.entry.js +59 -59
  240. package/dist/esm/ptc-span.entry.js +18 -18
  241. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  242. package/dist/esm/ptc-sticky-section.entry.js +27 -27
  243. package/dist/esm/ptc-subnav-card.entry.js +15 -15
  244. package/dist/esm/ptc-subnav.entry.js +21 -21
  245. package/dist/esm/ptc-svg-btn.entry.js +112 -0
  246. package/dist/esm/ptc-tab-list.entry.js +125 -125
  247. package/dist/esm/ptc-tab.entry.js +20 -20
  248. package/dist/esm/ptc-tabs.entry.js +47 -47
  249. package/dist/esm/ptc-text-copy-with-background.entry.js +41 -41
  250. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  251. package/dist/esm/ptcw-design.js +1 -1
  252. package/dist/esm/sequential-bundle-example.entry.js +100 -100
  253. package/dist/esm/sequential-bundle.entry.js +88 -88
  254. package/dist/esm/tab-content.entry.js +27 -27
  255. package/dist/esm/tab-header.entry.js +65 -65
  256. package/dist/esm/{utils-f937097d.js → utils-38decc43.js} +90 -90
  257. package/dist/ptcw-design/media/brands.svg +1381 -1381
  258. package/dist/ptcw-design/media/designer.svg +397 -397
  259. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  260. package/dist/ptcw-design/media/regular.svg +463 -463
  261. package/dist/ptcw-design/media/solid.svg +3013 -3013
  262. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  263. package/dist/ptcw-design/{p-2ae39c65.entry.js → p-1bd6ad59.entry.js} +1 -1
  264. package/dist/ptcw-design/p-26880c78.entry.js +1 -0
  265. package/dist/ptcw-design/{p-ed0c7f10.entry.js → p-469482ba.entry.js} +1 -1
  266. package/dist/ptcw-design/{p-8a6acf0d.entry.js → p-4702f4e4.entry.js} +1 -1
  267. package/dist/ptcw-design/{p-a6d831ba.entry.js → p-4977dc6d.entry.js} +1 -1
  268. package/dist/ptcw-design/p-81bd0113.entry.js +1 -0
  269. package/dist/ptcw-design/{p-d716bd70.entry.js → p-9e230e0f.entry.js} +1 -1
  270. package/dist/ptcw-design/p-b0188821.entry.js +1 -0
  271. package/dist/ptcw-design/{p-ddce141a.entry.js → p-ba3372d4.entry.js} +1 -1
  272. package/dist/ptcw-design/p-c9bd6b20.entry.js +1 -0
  273. package/dist/ptcw-design/p-e66e3791.entry.js +1 -0
  274. package/dist/ptcw-design/ptcw-design.css +1 -1
  275. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  276. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  277. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  278. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  279. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -0
  280. package/dist/types/components/list-item/list-item.d.ts +16 -16
  281. package/dist/types/components/max-width-container/max-width-container.d.ts +11 -11
  282. package/dist/types/components/my-component/my-component.d.ts +16 -16
  283. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +10 -10
  284. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  285. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  286. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  287. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  288. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  289. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  290. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -31
  291. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
  292. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
  293. package/dist/types/components/ptc-button/ptc-button.d.ts +60 -60
  294. package/dist/types/components/ptc-card/ptc-card.d.ts +71 -71
  295. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  296. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  297. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +24 -24
  298. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  299. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  300. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  301. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  302. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  303. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +23 -23
  304. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  305. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  306. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  307. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  308. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  309. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
  310. package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
  311. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +25 -23
  312. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  313. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  314. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  315. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  316. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  317. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  318. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  319. package/dist/types/components/ptc-modal/ptc-modal.d.ts +67 -67
  320. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  321. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  322. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
  323. package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
  324. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  325. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  326. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  327. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  328. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  329. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +57 -57
  330. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  331. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
  332. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  333. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  334. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  335. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  336. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  337. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  338. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  339. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  340. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +19 -19
  341. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  342. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  343. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +34 -34
  344. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  345. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +55 -55
  346. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  347. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +21 -21
  348. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  349. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +18 -18
  350. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +7 -7
  351. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
  352. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  353. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  354. package/dist/types/components.d.ts +193 -136
  355. package/dist/types/global.d.ts +1072 -1072
  356. package/dist/types/index.d.ts +1 -1
  357. package/dist/types/utils/component.d.ts +1 -1
  358. package/dist/types/utils/interfaces.d.ts +31 -31
  359. package/dist/types/utils/utils.d.ts +5 -5
  360. package/package.json +63 -60
  361. package/readme.md +18 -18
  362. package/dist/ptcw-design/p-df1fb0aa.entry.js +0 -1
  363. package/dist/ptcw-design/p-eb7efacf.entry.js +0 -1
  364. /package/dist/ptcw-design/{p-ea875d9e.js → p-36665caa.js} +0 -0
@@ -2,1171 +2,942 @@ import { r as registerInstance, h, H as Host, g as getAssetPath, a as getElement
2
2
 
3
3
  const bundleJumbotronExampleCss = ":host{display:block}";
4
4
 
5
- const BundleJumbotronExample = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.jumbotron = 'light';
9
- this.isIframe = false;
10
- }
11
- render() {
12
- let $pngSrc;
13
- let $gifSrc;
14
- let $bgVideoSrc;
15
- let $bgSrc;
16
- let $popupVideo;
17
- //replace dummy data
18
- if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
19
- $bgSrc = "https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80";
20
- }
21
- else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
22
- //$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
23
- // if is iframe use src from iframe
24
- $bgVideoSrc = "https://player.vimeo.com/video/749261406?h=5e6a60ffc5&muted=1&autoplay=1&loop=1&transparent=0&background=1&app_id=122963%22&controls=0";
25
- }
26
- else if (this.jumbotron === 'png') {
27
- $pngSrc = "https://images.unsplash.com/photo-1676883343977-5f8ecc36856c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NzgyMjcxNDU&ixlib=rb-4.0.3&q=80&w=400";
28
- }
29
- else if (this.jumbotron === 'gif') {
30
- $gifSrc = "https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif";
31
- }
32
- //Optional: set $popupVideo
33
- //$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
34
- return (h(Host, null, h("ptc-jumbotron", Object.assign({ "jumbotron-type": this.jumbotron }, (!!$pngSrc && { pngSrc: $pngSrc }), (!!$gifSrc && { gifSrc: $gifSrc }), (!!$bgVideoSrc && { bgVideoSrc: $bgVideoSrc }), (!!$bgSrc && { bgSrc: $bgSrc }), (!!$popupVideo ), { "main-title": "Sed ut perspiciatis unde omnis iste natus" //bind main title data (multi-line)
35
- ,
36
- "sub-title": "totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." // bind sub title data (multi-line)
37
- ,
38
- "is-iframe": this.isIframe }), h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), h("list-item", Object.assign({ "list-type": "breadcrumb", "link-href": "https://www.ptc.com/contact-us" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "PLM Video Hub"), h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
39
- }
40
- };
5
+ const BundleJumbotronExample = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.jumbotron = 'light';
9
+ this.isIframe = false;
10
+ }
11
+ render() {
12
+ let $pngSrc;
13
+ let $gifSrc;
14
+ let $bgVideoSrc;
15
+ let $bgSrc;
16
+ let $popupVideo;
17
+ //replace dummy data
18
+ if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
19
+ $bgSrc =
20
+ 'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80';
21
+ }
22
+ else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
23
+ //$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
24
+ // if is iframe use src from iframe
25
+ $bgVideoSrc = 'https://player.vimeo.com/video/749261406?h=5e6a60ffc5&muted=1&autoplay=1&loop=1&transparent=0&background=1&app_id=122963%22&controls=0';
26
+ }
27
+ else if (this.jumbotron === 'png') {
28
+ $pngSrc =
29
+ 'https://images.unsplash.com/photo-1676883343977-5f8ecc36856c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NzgyMjcxNDU&ixlib=rb-4.0.3&q=80&w=400';
30
+ }
31
+ else if (this.jumbotron === 'gif') {
32
+ $gifSrc = 'https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif';
33
+ }
34
+ //Optional: set $popupVideo
35
+ //$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
36
+ return (h(Host, null, h("ptc-jumbotron", Object.assign({ "jumbotron-type": this.jumbotron }, (!!$pngSrc && { pngSrc: $pngSrc }), (!!$gifSrc && { gifSrc: $gifSrc }), (!!$bgVideoSrc && { bgVideoSrc: $bgVideoSrc }), (!!$bgSrc && { bgSrc: $bgSrc }), (!!$popupVideo ), { "sub-title": "totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." // bind sub title data (multi-line)
37
+ ,
38
+ "is-iframe": this.isIframe }), h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), h("list-item", Object.assign({ "list-type": "breadcrumb", "link-href": "https://www.ptc.com/contact-us" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "PLM Video Hub"), h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), h("ptc-title", { slot: "main-title", type: "h1", upperline: "no-upperline", "title-size": "xxxx-large", "title-height": "densest", "title-weight": "w-8", "title-margin": "margin-flush", "text-align": "left" // if type=text, text-align=center, otherwise left
39
+ ,
40
+ "title-color": "gray" //if dark, dark-video then "gray-1"
41
+ }, h("ptc-tooltip", { "text-lines": "3", description: "Sed ut perspiciatis unde omnis iste natus", position: "right" })), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
42
+ }
43
+ };
41
44
  BundleJumbotronExample.style = bundleJumbotronExampleCss;
42
45
 
43
46
  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}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}";
44
47
 
45
- const IconAsset = class {
46
- constructor(hostRef) {
47
- registerInstance(this, hostRef);
48
- this.regularSprite = getAssetPath('./media/regular.svg');
49
- this.solidSprite = getAssetPath('./media/solid.svg');
50
- this.brandSprite = getAssetPath('./media/brands.svg');
51
- this.ptcSprite = getAssetPath('./media/designer.svg');
52
- this.name = undefined;
53
- this.size = 'xx-small';
54
- this.type = 'regular';
55
- this.spin = '';
56
- this.pulse = '';
57
- this.color = 'default';
58
- this.isMobileSelect = undefined;
59
- this.injectedStyle = undefined;
60
- }
61
- render() {
62
- const classMap = this.getCssClassMap();
63
- if (this.type == 'brands') {
64
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.brandSprite}#${this.name}` }))));
65
- }
66
- else if (this.type == 'solid') {
67
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.solidSprite}#${this.name}` }))));
68
- }
69
- else if (this.type == 'ptc') {
70
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.ptcSprite}#${this.name}` }))));
71
- }
72
- else {
73
- return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.regularSprite}#${this.name}` }))));
74
- }
75
- }
76
- getCssClassMap() {
77
- return {
78
- [this.size]: true,
79
- [this.spin]: true,
80
- [this.pulse]: true,
81
- [this.color]: true,
82
- ['ismobileselect']: this.isMobileSelect ? true : false
83
- };
84
- }
85
- static get assetsDirs() { return ["media"]; }
86
- };
48
+ const IconAsset = class {
49
+ constructor(hostRef) {
50
+ registerInstance(this, hostRef);
51
+ this.regularSprite = getAssetPath('./media/regular.svg');
52
+ this.solidSprite = getAssetPath('./media/solid.svg');
53
+ this.brandSprite = getAssetPath('./media/brands.svg');
54
+ this.ptcSprite = getAssetPath('./media/designer.svg');
55
+ this.name = undefined;
56
+ this.size = 'xx-small';
57
+ this.type = 'regular';
58
+ this.spin = '';
59
+ this.pulse = '';
60
+ this.color = 'default';
61
+ this.isMobileSelect = undefined;
62
+ this.injectedStyle = undefined;
63
+ }
64
+ render() {
65
+ const classMap = this.getCssClassMap();
66
+ if (this.type == 'brands') {
67
+ return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.brandSprite}#${this.name}` }))));
68
+ }
69
+ else if (this.type == 'solid') {
70
+ return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.solidSprite}#${this.name}` }))));
71
+ }
72
+ else if (this.type == 'ptc') {
73
+ return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.ptcSprite}#${this.name}` }))));
74
+ }
75
+ else {
76
+ return (h(Host, null, this.injectedStyle && h("style", null, this.injectedStyle), h("svg", { class: classMap }, h("use", { href: `${this.regularSprite}#${this.name}` }))));
77
+ }
78
+ }
79
+ getCssClassMap() {
80
+ return {
81
+ [this.size]: true,
82
+ [this.spin]: true,
83
+ [this.pulse]: true,
84
+ [this.color]: true,
85
+ ['ismobileselect']: this.isMobileSelect ? true : false
86
+ };
87
+ }
88
+ static get assetsDirs() { return ["media"]; }
89
+ };
87
90
  IconAsset.style = iconAssetCss;
88
91
 
89
92
  const listItemCss = ":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)}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0}: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(.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,:host(.list-footer) li a:active{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: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(.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)}";
90
93
 
91
- const ListItem = class {
92
- constructor(hostRef) {
93
- registerInstance(this, hostRef);
94
- this.listType = 'list-primary';
95
- this.linkHref = undefined;
96
- this.flushBefore = false;
97
- this.linkTarget = '_self';
98
- this.color = undefined;
99
- this.styles = undefined;
100
- }
101
- render() {
102
- const classMap = this.getCssClassMap();
103
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("li", null, this.linkHref ? (h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})), h("slot", null))) : (h("slot", null)))));
104
- }
105
- getCssClassMap() {
106
- return {
107
- [this.listType]: true,
108
- ['flush-before']: this.flushBefore ? true : false,
109
- [this.color]: !!this.color ? true : false,
110
- };
111
- }
112
- };
94
+ const ListItem = class {
95
+ constructor(hostRef) {
96
+ registerInstance(this, hostRef);
97
+ this.listType = 'list-primary';
98
+ this.linkHref = undefined;
99
+ this.flushBefore = false;
100
+ this.linkTarget = '_self';
101
+ this.color = undefined;
102
+ this.styles = undefined;
103
+ }
104
+ render() {
105
+ const classMap = this.getCssClassMap();
106
+ return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("li", null, this.linkHref ? (h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})), h("slot", null))) : (h("slot", null)))));
107
+ }
108
+ getCssClassMap() {
109
+ return {
110
+ [this.listType]: true,
111
+ ['flush-before']: this.flushBefore ? true : false,
112
+ [this.color]: !!this.color ? true : false,
113
+ };
114
+ }
115
+ };
113
116
  ListItem.style = listItemCss;
114
117
 
115
118
  const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
116
119
 
117
- const MaxWidthContainer = class {
118
- constructor(hostRef) {
119
- registerInstance(this, hostRef);
120
- this.maxWidth = undefined;
121
- this.breakpoint = 768;
122
- this.contentAlign = 'center';
123
- }
124
- componentDidLoad() {
125
- this.handleResize();
126
- window.addEventListener('resize', this.handleResize.bind(this));
127
- }
128
- disconnectedCallback() {
129
- window.removeEventListener('resize', this.handleResize);
130
- }
131
- render() {
132
- const classMap = this.getCssClassMap();
133
- return (h(Host, { class: classMap }, h("slot", null)));
134
- }
135
- getCssClassMap() {
136
- return {
137
- [this.contentAlign]: true,
138
- };
139
- }
140
- handleResize() {
141
- // const selectedContainer = this.el.querySelector('.max-width-container');
142
- if (this.el) {
143
- if (window.innerWidth >= this.breakpoint) {
144
- this.el.style.maxWidth = `${this.maxWidth}px`;
145
- }
146
- else {
147
- this.el.style.maxWidth = 'initial';
148
- }
149
- }
150
- }
151
- get el() { return getElement(this); }
152
- };
120
+ const MaxWidthContainer = class {
121
+ constructor(hostRef) {
122
+ registerInstance(this, hostRef);
123
+ this.maxWidth = undefined;
124
+ this.breakpoint = 768;
125
+ this.contentAlign = 'center';
126
+ }
127
+ componentDidLoad() {
128
+ this.handleResize();
129
+ window.addEventListener('resize', this.handleResize.bind(this));
130
+ }
131
+ disconnectedCallback() {
132
+ window.removeEventListener('resize', this.handleResize);
133
+ }
134
+ render() {
135
+ const classMap = this.getCssClassMap();
136
+ return (h(Host, { class: classMap }, h("slot", null)));
137
+ }
138
+ getCssClassMap() {
139
+ return {
140
+ [this.contentAlign]: true,
141
+ };
142
+ }
143
+ handleResize() {
144
+ // const selectedContainer = this.el.querySelector('.max-width-container');
145
+ if (this.el) {
146
+ if (window.innerWidth >= this.breakpoint) {
147
+ this.el.style.maxWidth = `${this.maxWidth}px`;
148
+ }
149
+ else {
150
+ this.el.style.maxWidth = 'initial';
151
+ }
152
+ }
153
+ }
154
+ get el() { return getElement(this); }
155
+ };
153
156
  MaxWidthContainer.style = maxWidthContainerCss;
154
157
 
155
- const ptcBackgroundVideoCss = ":host{display:block;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}";
156
-
157
- const PtcBackgroundVideo = class {
158
- constructor(hostRef) {
159
- registerInstance(this, hostRef);
160
- this.videoSrc = undefined;
161
- this.posterSrc = undefined;
162
- this.overlay = true;
163
- this.type = 'default';
164
- this.isIframe = false;
165
- }
166
- // componentDidLoad() {
167
- // if(this.isIframe){
168
- // const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
169
- // const iframeDoc = iframe.contentDocument
170
- // const iframeVideo = iframeDoc.querySelector('video');
171
- // console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
172
- // iframeVideo.style.objectFit = 'cover';
173
- // }
174
- // }
175
- render() {
176
- const videoConten = this.isIframe ? (h("div", { class: "iframe-wrapper" }, h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
177
- return (h(Host, { class: this.type }, videoConten, this.overlay ? h("div", { class: "video-overlay" }) : '', this.type == 'default' ? h("slot", null) : ''));
178
- }
179
- get el() { return getElement(this); }
180
- };
158
+ const ptcBackgroundVideoCss = ":host{display:block;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button{top:unset;bottom:3.75rem;right:2rem}}";
159
+
160
+ const PtcBackgroundVideo = class {
161
+ constructor(hostRef) {
162
+ registerInstance(this, hostRef);
163
+ this.videoSrc = undefined;
164
+ this.posterSrc = undefined;
165
+ this.overlay = true;
166
+ this.playButtonTitle = undefined;
167
+ this.pauseButtonTitle = undefined;
168
+ this.paused = undefined;
169
+ this.type = 'default';
170
+ this.isIframe = false;
171
+ }
172
+ // componentDidLoad() {
173
+ // if(this.isIframe){
174
+ // const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
175
+ // const iframeDoc = iframe.contentDocument
176
+ // const iframeVideo = iframeDoc.querySelector('video');
177
+ // console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
178
+ // iframeVideo.style.objectFit = 'cover';
179
+ // }
180
+ // }
181
+ // @Method()
182
+ // async toggleVideo() {
183
+ // // show a prompt
184
+ // this.paused = !this.paused;
185
+ // let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
186
+ // if (video) {
187
+ // if (this.paused) {
188
+ // video.pause();
189
+ // } else {
190
+ // video.play().catch(z => console.error(z));
191
+ // }
192
+ // }
193
+ // console.log('Hello, I am a publish method from ptc-background-video!');
194
+ // }
195
+ componentWillLoad() {
196
+ this.paused = false;
197
+ }
198
+ render() {
199
+ const videoContent = this.isIframe ? (h("div", { class: "iframe-wrapper" }, h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
200
+ return (h(Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (h("div", { class: "play-button" }, this.paused && (h("ptc-tooltip", { class: "play-btn", mode: "wrapper", description: this.playButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }" }, h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (h("ptc-tooltip", { class: "pause-btn", mode: "wrapper", description: this.pauseButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e) }, h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? h("div", { class: "video-overlay" }) : '', this.type == 'default' ? h("slot", null) : ''));
201
+ }
202
+ toggleVideoPlay(e) {
203
+ e.preventDefault();
204
+ this.paused = !this.paused;
205
+ let video = this.el.shadowRoot.querySelector('video');
206
+ if (video) {
207
+ if (this.paused) {
208
+ video.pause();
209
+ }
210
+ else {
211
+ video.play().catch(z => console.error(z));
212
+ }
213
+ }
214
+ }
215
+ get el() { return getElement(this); }
216
+ };
181
217
  PtcBackgroundVideo.style = ptcBackgroundVideoCss;
182
218
 
183
219
  const ptcBreadcrumbCss = ":host{display:block;margin-top:var(--ptc-element-spacing-05)}::slotted(*){transform:translate(-2px, -2px)}:host(.left){display:flex;justify-content:flex-start;align-items:flex-end}:host(.center){display:flex;justify-content:center}:host(.right){display:flex;justify-content:flex-end}:host(.remove-top-margin){margin-top:0px !important}";
184
220
 
185
- const PtcBreadcrumb = class {
186
- constructor(hostRef) {
187
- registerInstance(this, hostRef);
188
- this.position = undefined;
189
- this.removeTopMargin = false;
190
- this.color = 'white';
191
- this.styles = undefined;
192
- }
193
- render() {
194
- const classMap = this.getCssClassMap();
195
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("list-item", { listType: "breadcrumb", flushBefore: true, "link-href": "https://www.ptc.com" }, h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })), h("slot", null)));
196
- }
197
- getCssClassMap() {
198
- return {
199
- [this.position]: !!this.position && this.position !== undefined ? true : false,
200
- ['remove-top-margin']: this.removeTopMargin ? true : false,
201
- };
202
- }
203
- };
221
+ const PtcBreadcrumb = class {
222
+ constructor(hostRef) {
223
+ registerInstance(this, hostRef);
224
+ this.position = undefined;
225
+ this.removeTopMargin = false;
226
+ this.color = 'white';
227
+ this.styles = undefined;
228
+ }
229
+ render() {
230
+ const classMap = this.getCssClassMap();
231
+ return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("list-item", { listType: "breadcrumb", flushBefore: true, "link-href": "https://www.ptc.com" }, h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })), h("slot", null)));
232
+ }
233
+ getCssClassMap() {
234
+ return {
235
+ [this.position]: !!this.position && this.position !== undefined ? true : false,
236
+ ['remove-top-margin']: this.removeTopMargin ? true : false,
237
+ };
238
+ }
239
+ };
204
240
  PtcBreadcrumb.style = ptcBreadcrumbCss;
205
241
 
206
242
  const ptcButtonCss = "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.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)}.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))}.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{outline:3px solid var(--color-blue-07);outline-offset:2px}.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,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.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{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)}.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)}.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)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.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{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{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}";
207
243
 
208
- const PtcButton = class {
209
- constructor(hostRef) {
210
- registerInstance(this, hostRef);
211
- this.clickEvent = createEvent(this, "clickEvent", 7);
212
- this.disabled = false;
213
- this.active = false;
214
- this.type = 'button';
215
- this.color = 'ptc-primary';
216
- this.iconAnimation = '';
217
- this.iconPosition = 'icon-right';
218
- this.linkHref = undefined;
219
- this.linkTitle = undefined;
220
- this.target = '_self';
221
- this.rel = undefined;
222
- this.tabNav = 0;
223
- this.styles = undefined;
224
- }
225
- clickEventHandler() {
226
- this.clickEvent.emit();
227
- }
228
- render() {
229
- const classMap = this.getCssClassMap();
230
- const Tag = !!this.linkHref ? 'a' : 'button';
231
- return (h(Host, null, this.styles && h("style", null, this.styles), 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 })), h("span", null, h("slot", { name: "slot-before-text" }), h("slot", null), h("slot", { name: "slot-after-text" })))));
232
- }
233
- getCssClassMap() {
234
- return {
235
- [this.color]: true,
236
- [this.iconAnimation]: true,
237
- [this.iconPosition]: true,
238
- ['disabled']: this.disabled ? true : false,
239
- ['active']: this.active ? true : false,
240
- };
241
- }
242
- };
244
+ const PtcButton = class {
245
+ constructor(hostRef) {
246
+ registerInstance(this, hostRef);
247
+ this.clickEvent = createEvent(this, "clickEvent", 7);
248
+ this.disabled = false;
249
+ this.active = false;
250
+ this.type = 'button';
251
+ this.color = 'ptc-primary';
252
+ this.iconAnimation = '';
253
+ this.iconPosition = 'icon-right';
254
+ this.linkHref = undefined;
255
+ this.linkTitle = undefined;
256
+ this.target = '_self';
257
+ this.rel = undefined;
258
+ this.tabNav = 0;
259
+ this.styles = undefined;
260
+ }
261
+ clickEventHandler() {
262
+ this.clickEvent.emit();
263
+ }
264
+ render() {
265
+ const classMap = this.getCssClassMap();
266
+ const Tag = !!this.linkHref ? 'a' : 'button';
267
+ return (h(Host, null, this.styles && h("style", null, this.styles), 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 })), h("span", null, h("slot", { name: "slot-before-text" }), h("slot", null), h("slot", { name: "slot-after-text" })))));
268
+ }
269
+ getCssClassMap() {
270
+ return {
271
+ [this.color]: true,
272
+ [this.iconAnimation]: true,
273
+ [this.iconPosition]: true,
274
+ ['disabled']: this.disabled ? true : false,
275
+ ['active']: this.active ? true : false,
276
+ };
277
+ }
278
+ };
243
279
  PtcButton.style = ptcButtonCss;
244
280
 
245
- let ResponsiveBgVariables = {
246
- envs: ['xs', 'sm', 'md', 'lg'],
247
- selector: '.ptc-img',
248
- interval: 250
249
- };
250
- let ResponsivePictureVariables = {
251
- envs: ['xs', 'sm', 'md', 'lg'],
252
- selector: '.ptc-picture',
253
- interval: 250
281
+ let ResponsiveBgVariables = {
282
+ envs: ['xs', 'sm', 'md', 'lg'],
283
+ selector: '.ptc-img',
284
+ interval: 250
285
+ };
286
+ let ResponsivePictureVariables = {
287
+ envs: ['xs', 'sm', 'md', 'lg'],
288
+ selector: '.ptc-picture',
289
+ interval: 250
254
290
  };
255
291
 
256
292
  const ptcImgCss = ".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}}";
257
293
 
258
- const PtcImg = class {
259
- constructor(hostRef) {
260
- registerInstance(this, hostRef);
261
- this.sizeXs = '510x340';
262
- this.sizeSm = '1240x496';
263
- this.sizeMd = '1366x500';
264
- this.sizeLg = '1920x1080';
265
- this.imgUrl = undefined;
266
- this.imageType = 'smart-bg';
267
- this.borderRadius = '';
268
- this.loadMode = 'lazy-bg';
269
- this.styles = undefined;
270
- }
271
- /**
272
- * Image Z Index
273
- */
274
- // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
275
- WindowResize() {
276
- this.setResponsiveBg();
277
- }
278
- render() {
279
- const classMap = this.getCssClassMap();
280
- return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? h("slot", null) : null)));
281
- }
282
- componentDidLoad() {
283
- this.addIntersectionObserver();
284
- this.setResponsiveBg();
285
- }
286
- componentWillUpdate() {
287
- this.addIntersectionObserver();
288
- this.setResponsiveBg();
289
- }
290
- //responsive image
291
- setResponsiveBg() {
292
- // Define local variables
293
- let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
294
- // Loop through all target elements
295
- for (var i = 0, len = backgrounds.length; i < len; i++) {
296
- // Set current variables
297
- el = backgrounds[i];
298
- elData = el.getAttribute('data-' + currentBreakpoint);
299
- // If the data attribute exists, set the background
300
- if (elData !== null) {
301
- el.style.backgroundImage = "url('" + elData + "')";
302
- }
303
- else {
304
- if (typeof console == 'object') {
305
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
306
- }
307
- }
308
- }
309
- }
310
- //lazy loading
311
- addIntersectionObserver() {
312
- if (!this.imgUrl) {
313
- console.log('no image!');
314
- return;
315
- }
316
- if ('IntersectionObserver' in window) {
317
- let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
318
- let bgObserver = new IntersectionObserver(entries => {
319
- entries.forEach(entry => {
320
- if (entry.isIntersecting) {
321
- const image = entry.target;
322
- image.classList.remove('lazy-bg');
323
- bgObserver.unobserve(image);
324
- }
325
- });
326
- });
327
- lazyLoadBgs.forEach(image => {
328
- bgObserver.observe(image);
329
- });
330
- }
331
- }
332
- getCssClassMap() {
333
- return {
334
- [this.imageType]: true,
335
- 'ptc-img': true,
336
- [this.borderRadius]: true,
337
- [this.loadMode]: true,
338
- // [this.imageZIndex] : true
339
- };
340
- }
341
- getCurrentBreakPoints() {
342
- // Define local variables
343
- let doc = window.document, temp = doc.createElement('div'), env;
344
- // Append test node
345
- doc.body.appendChild(temp);
346
- // Loop through breakpoints
347
- for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
348
- env = ResponsiveBgVariables.envs[i];
349
- // Add classes
350
- temp.className = 'hidden-' + env;
351
- // Found breakpoint
352
- if (temp.offsetParent === null) {
353
- // Remove our test node
354
- doc.body.removeChild(temp);
355
- // Return current breakpoint
356
- return env;
357
- }
358
- }
359
- // Breakpoint not found, try fallback
360
- doc.body.removeChild(temp);
361
- return this.getFallbackBreakpoint();
362
- }
363
- getFallbackBreakpoint() {
364
- if (window.matchMedia('(min-width: 992px)').matches) {
365
- return 'lg';
366
- }
367
- else if (window.matchMedia('(min-width: 768px)').matches) {
368
- return 'md';
369
- }
370
- else if (window.matchMedia('(min-width: 576px)').matches) {
371
- return 'sm';
372
- }
373
- else {
374
- return 'xs';
375
- }
376
- }
377
- get el() { return getElement(this); }
378
- };
294
+ const PtcImg = class {
295
+ constructor(hostRef) {
296
+ registerInstance(this, hostRef);
297
+ this.sizeXs = '510x340';
298
+ this.sizeSm = '1240x496';
299
+ this.sizeMd = '1366x500';
300
+ this.sizeLg = '1920x1080';
301
+ this.imgUrl = undefined;
302
+ this.imageType = 'smart-bg';
303
+ this.borderRadius = '';
304
+ this.loadMode = 'lazy-bg';
305
+ this.styles = undefined;
306
+ }
307
+ /**
308
+ * Image Z Index
309
+ */
310
+ // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
311
+ WindowResize() {
312
+ this.setResponsiveBg();
313
+ }
314
+ render() {
315
+ const classMap = this.getCssClassMap();
316
+ return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? h("slot", null) : null)));
317
+ }
318
+ componentDidLoad() {
319
+ this.addIntersectionObserver();
320
+ this.setResponsiveBg();
321
+ }
322
+ componentWillUpdate() {
323
+ this.addIntersectionObserver();
324
+ this.setResponsiveBg();
325
+ }
326
+ //responsive image
327
+ setResponsiveBg() {
328
+ // Define local variables
329
+ let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
330
+ // Loop through all target elements
331
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
332
+ // Set current variables
333
+ el = backgrounds[i];
334
+ elData = el.getAttribute('data-' + currentBreakpoint);
335
+ // If the data attribute exists, set the background
336
+ if (elData !== null) {
337
+ el.style.backgroundImage = "url('" + elData + "')";
338
+ }
339
+ else {
340
+ if (typeof console == 'object') {
341
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
342
+ }
343
+ }
344
+ }
345
+ }
346
+ //lazy loading
347
+ addIntersectionObserver() {
348
+ if (!this.imgUrl) {
349
+ console.log('no image!');
350
+ return;
351
+ }
352
+ if ('IntersectionObserver' in window) {
353
+ let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
354
+ let bgObserver = new IntersectionObserver(entries => {
355
+ entries.forEach(entry => {
356
+ if (entry.isIntersecting) {
357
+ const image = entry.target;
358
+ image.classList.remove('lazy-bg');
359
+ bgObserver.unobserve(image);
360
+ }
361
+ });
362
+ });
363
+ lazyLoadBgs.forEach(image => {
364
+ bgObserver.observe(image);
365
+ });
366
+ }
367
+ }
368
+ getCssClassMap() {
369
+ return {
370
+ [this.imageType]: true,
371
+ 'ptc-img': true,
372
+ [this.borderRadius]: true,
373
+ [this.loadMode]: true,
374
+ // [this.imageZIndex] : true
375
+ };
376
+ }
377
+ getCurrentBreakPoints() {
378
+ // Define local variables
379
+ let doc = window.document, temp = doc.createElement('div'), env;
380
+ // Append test node
381
+ doc.body.appendChild(temp);
382
+ // Loop through breakpoints
383
+ for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
384
+ env = ResponsiveBgVariables.envs[i];
385
+ // Add classes
386
+ temp.className = 'hidden-' + env;
387
+ // Found breakpoint
388
+ if (temp.offsetParent === null) {
389
+ // Remove our test node
390
+ doc.body.removeChild(temp);
391
+ // Return current breakpoint
392
+ return env;
393
+ }
394
+ }
395
+ // Breakpoint not found, try fallback
396
+ doc.body.removeChild(temp);
397
+ return this.getFallbackBreakpoint();
398
+ }
399
+ getFallbackBreakpoint() {
400
+ if (window.matchMedia('(min-width: 992px)').matches) {
401
+ return 'lg';
402
+ }
403
+ else if (window.matchMedia('(min-width: 768px)').matches) {
404
+ return 'md';
405
+ }
406
+ else if (window.matchMedia('(min-width: 576px)').matches) {
407
+ return 'sm';
408
+ }
409
+ else {
410
+ return 'xs';
411
+ }
412
+ }
413
+ get el() { return getElement(this); }
414
+ };
379
415
  PtcImg.style = ptcImgCss;
380
416
 
381
- const ptcJumbotronCss = ".ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid{width:100%}.u-para-sm{font-size:var(--ptc-font-size-small) !important}.u-para-md{font-size:var(--ptc-font-size-medium) !important}.u-para-lg{font-size:var(--ptc-font-size-large) !important}.u-para-xl{font-size:var(--ptc-font-size-x-large) !important}.u-para-xxl{font-size:var(--ptc-font-size-xx-large) !important}.u-para-xxxl{font-size:var(--ptc-font-size-xxx-large) !important}@media only screen and (min-width: 768px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.05vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.05vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.05vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.05vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.05vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.05vw) !important}}@media only screen and (min-width: 992px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.1vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.1vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.1vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.1vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.1vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.1vw) !important}}@media only screen and (min-width: 1200px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.15vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.15vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.15vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.15vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.15vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.15vw) !important}}@media only screen and (min-width: 1440px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.2vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.2vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.2vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.2vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.2vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.2vw) !important}}@media only screen and (min-width: 1600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.25vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.25vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.25vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.25vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.25vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.25vw) !important}}@media only screen and (min-width: 1980px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.3vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.3vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.3vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.3vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.3vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.3vw) !important}}@media only screen and (min-width: 2600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.35vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.35vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.35vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.35vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.35vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.35vw) !important}}.u-para-body{font-size:var(--ptc-font-size-medium) !important}.u-color-white{color:var(--color-white) !important}.u-uppercase{text-transform:uppercase !important}.u-margin-flush{margin:0 !important}.u-marginTop-flush{margin-top:0 !important}.u-marginLeft-flush{margin-left:0 !important}.u-marginRight-flush{margin-right:0 !important}.u-marginBottom-flush{margin-bottom:0 !important}.u-padding-flush{padding:0 !important}.u-paddingTop-flush{padding-top:0 !important}.u-paddingLeft-flush{padding-left:0 !important}.u-paddingRight-flush{padding-right:0 !important}.u-paddingBottom-flush{padding-bottom:0 !important}.u-margin-xs{margin:var(--ptc-element-spacing-01) !important}.u-marginTop-xs{margin-top:var(--ptc-element-spacing-01) !important}.u-marginLeft-xs{margin-left:var(--ptc-element-spacing-01) !important}.u-marginRight-xs{margin-right:var(--ptc-element-spacing-01) !important}.u-marginBottom-xs{margin-bottom:var(--ptc-element-spacing-01) !important}.u-margin-sm{margin:var(--ptc-element-spacing-02) !important}.u-marginTop-sm{margin-top:var(--ptc-element-spacing-02) !important}.u-marginLeft-sm{margin-left:var(--ptc-element-spacing-02) !important}.u-marginRight-sm{margin-right:var(--ptc-element-spacing-02) !important}.u-marginBottom-sm{margin-bottom:var(--ptc-element-spacing-02) !important}.u-margin-md{margin:var(--ptc-element-spacing-03) !important}.u-marginTop-md{margin-top:var(--ptc-element-spacing-03) !important}.u-marginLeft-md{margin-left:var(--ptc-element-spacing-03) !important}.u-marginRight-md{margin-right:var(--ptc-element-spacing-03) !important}.u-marginBottom-md{margin-bottom:var(--ptc-element-spacing-03) !important}.u-margin-lg{margin:var(--ptc-element-spacing-04) !important}.u-marginTop-lg{margin-top:var(--ptc-element-spacing-04) !important}.u-marginLeft-lg{margin-left:var(--ptc-element-spacing-04) !important}.u-marginRight-lg{margin-right:var(--ptc-element-spacing-04) !important}.u-marginBottom-lg{margin-bottom:var(--ptc-element-spacing-04) !important}.u-margin-xl{margin:var(--ptc-element-spacing-05) !important}.u-marginTop-xl{margin-top:var(--ptc-element-spacing-05) !important}.u-marginLeft-xl{margin-left:var(--ptc-element-spacing-05) !important}.u-marginRight-xl{margin-right:var(--ptc-element-spacing-05) !important}.u-marginBottom-xl{margin-bottom:var(--ptc-element-spacing-05) !important}.u-margin-xxl{margin:var(--ptc-element-spacing-06) !important}.u-marginTop-xxl{margin-top:var(--ptc-element-spacing-06) !important}.u-marginLeft-xxl{margin-left:var(--ptc-element-spacing-06) !important}.u-marginRight-xxl{margin-right:var(--ptc-element-spacing-06) !important}.u-marginBottom-xxl{margin-bottom:var(--ptc-element-spacing-06) !important}.u-textAlign-ctr{text-align:center !important}.u-textAlign-right{text-align:right !important}.u-textAlign-left{text-align:left !important}.u-textWhite{color:var(--color-white) !important}.u-textGreen1{color:var(--color-green-07) !important}.u-textGreen2{color:var(--color-green-06) !important}.u-text-nowrap{white-space:nowrap}.u-text-bold{font-weight:var(--ptc-font-weight-bold)}.u-text-thin{font-weight:var(--ptc-font-weight-thin)}.u-textStyle-normal{font-style:normal !important}.u-no-scroll{overflow:hidden}.u-background-reset{background-color:transparent !important}.u-white-overylay{background:rgba(242, 242, 242, 0.9)}.u-cursor-pointer{cursor:pointer}.u-clear{clear:both}@media only screen and (min-width: 768px){.u-hero-width{width:525px}.u-margin-center{margin:0 auto}.u-justify-self-end{justify-self:flex-end}}.u-hero-pushup{transform:translateY(-120px)}@media only screen and (min-width: 768px){.u-hero-pushup{transform:translateY(-144px)}}@media only screen and (min-width: 768px){.grid-order-1-md{order:1}.grid-order-2-md{order:2}.grid-order-3-md{order:3}}.standard-list{list-style:none;margin-left:0;margin-bottom:20px;padding:0}.is-spaced-between{justify-content:space-between}.grid-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-large-col-gap-md{column-gap:3rem}}.grid-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-large-col-gap-sm{column-gap:3rem}}.grid-x-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-x-large-col-gap-md{column-gap:4rem}}.grid-x-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-x-large-col-gap-sm{column-gap:4rem}}.grid-medium-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-medium-col-gap-md{column-gap:2rem}}.grid-medium-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-medium-col-gap-sm{column-gap:2rem}}.is-float-left{float:left}.is-float-right{float:right}.is-mobile{display:block}.is-desktop{display:none}@media only screen and (min-width: 992px){.is-mobile{display:none}.is-desktop{display:block}}.ptc-section{padding-top:2rem;padding-bottom:2rem}@media only screen and (min-width: 992px){.ptc-section{padding-top:3rem;padding-bottom:3rem}}.ptc-section-standard{padding-top:3rem;padding-bottom:3rem}.ptc-section-half{padding-top:1.5rem;padding-bottom:1.5rem}.u-flex{display:flex}@media only screen and (min-width: 480px){.u-flex-xs{display:flex}}@media only screen and (min-width: 768px){.u-flex-sm{display:flex}}@media only screen and (min-width: 992px){.u-flex-md{display:flex}}@media only screen and (min-width: 1200px){.u-flex-lg{display:flex}}@media only screen and (min-width: 1440px){.u-flex-xl{display:flex}}@media only screen and (min-width: 1600px){.u-flex-xxl{display:flex}}@media only screen and (min-width: 1980px){.u-flex-2k{display:flex}}@media only screen and (min-width: 2600px){.u-flex-4k{display:flex}}.u-align-center{margin:auto;align-self:center}.u-align-left{margin-right:auto;align-self:center}.u-align-right{margin-left:auto;align-self:center}.u-align-x-center{margin-right:auto;margin-left:auto}.u-align-x-left{margin-right:auto}.u-align-x-right{margin-left:auto}.u-align-y-center{align-self:center}.u-align-y-top{align-self:flex-start}.u-align-y-bottom{align-self:flex-end}.is-flex-column{flex-direction:column}.flex-align-items{align-items:flex-end}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap{flex-wrap:wrap}.u-align-self-start{align-self:start}.u-align-self-center{align-self:center}.u-align-self-stretch{align-self:stretch}.u-justify-self-start{justify-self:start}.u-justify-self-center{justify-self:center}.u-justify-self-stretch{justify-self:stretch}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-md)}@media only screen and (min-width: 992px){.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-lg)}}.fef-two-column-two-media .is-col-6-md{padding-bottom:3rem}.fef-two-column-two-media .is-col-6-md:last-child{padding-bottom:0rem}@media only screen and (min-width: 768px){.fef-two-column-two-media .is-col-6-md{padding-bottom:0rem}}ptc-icon-list.icon-top-align-list a{text-decoration:none;transition:color 0.3s ease;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-font-size-x-large);border-bottom:0.094rem solid var(--color-green-06);color:var(--color-gray-10)}ptc-icon-list.icon-top-align-list a:hover{color:var(--color-green-06)}@media only screen and (min-width: 768px){.is-grid.grid-large-col-gap-xs-0{row-gap:0}}.max-content{max-width:90%;margin:auto}@media only screen and (min-width: 480px){.max-content{max-width:80%}}.product-tab ptc-title h3{font-size:20px !important;font-weight:900}@media only screen and (min-width: 1200px){.product-tab ptc-title h3{font-size:15px !important;font-weight:800}}.product-tab .is-grid{grid-column-gap:20px;grid-row-gap:12px}ptc-bio-card .bio-modal-open-content{color:var(--color-gray-10);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-denser)}ptc-bio-card .bio-modal-open-content h3{letter-spacing:0.08rem;margin-bottom:2px;font-size:var(--ptc-font-size-small)}ptc-bio-card .bio-modal-open-content ul{margin-top:0}ptc-bio-card .bio-modal-open-content ul li{line-height:var(--ptc-line-height-p)}ptc-bio-card .bio-modal-open-content ul li a{text-decoration:none;color:var(--color-green-06);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content ul li a:hover{color:var(--color-gray-10);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content .btn-blackgrey{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:14px 20px;border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard);color:var(--color-white);font-weight:700}ptc-bio-card .bio-modal-open-content .btn-blackgrey:hover{background-color:var(--color-gray-09);border-color:var(--color-gray-08)}ptc-bio-card .bio-modal-open-content .btn-blackgrey svg{display:none}ptc-bio-card .bio-modal-open-content hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.u-justify-space-between{justify-content:space-between}ptc-nav-submenu .dropdown-content{display:none}ptc-nav-submenu .dropdown-content.open{padding-top:5px;padding-bottom:5px;display:block}ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-04)}@media only screen and (min-width: 1200px){ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-04)}}:host{display:block}.parent{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-column-gap:0px;grid-row-gap:0px;position:unset;z-index:999}.div1{grid-area:1/1/2/2;min-height:300px}.div1.hidden{display:none}.mobile-media-image{display:flex;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.mobile-media-image{display:none}}.gif-bg{background-color:#F3F3F3}.gif-bg img{width:100%;height:auto}@media only screen and (min-width: 768px){.gif-bg img{width:auto}}.video-ratio{position:relative;overflow:hidden;height:0;padding-bottom:100%}@media screen and (min-width: 550px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 768px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 992px){.video-ratio{padding-bottom:59.37%;max-height:500px}}@media only screen and (min-width: 1200px){.video-ratio{padding-bottom:min(578px, 46.67%)}}@media only screen and (min-width: 1440px){.video-ratio{padding-bottom:min(578px, 39.67%)}}.div2{grid-area:2/1/3/2;position:relative}.bg-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.content-layout{display:flex;flex-direction:column}@media only screen and (min-width: 992px){.content-layout{flex-direction:row}}.gap-adjustment{gap:var(--ptc-element-spacing-07);margin-bottom:var(--ptc-element-spacing-07)}.text-adjustment{justify-content:flex-start}@media only screen and (min-width: 992px){.text-adjustment{justify-content:center}}.desktop-media-image{width:40%;display:none}@media only screen and (min-width: 992px){.desktop-media-image{display:block}}.desk-gif-adjustment{z-index:3}@media only screen and (min-width: 992px){.parent{grid-template-columns:1fr;grid-template-rows:1fr;grid-column-gap:0px;grid-row-gap:0px;min-height:500px;position:relative}.div1{grid-area:1/1/2/2;min-height:unset}.div2{grid-area:1/1/2/2;align-self:center;position:unset}}ptc-svg-btn{position:absolute;left:50%;top:0%;transform:translate(-50%, -200%)}@media only screen and (min-width: 480px){ptc-svg-btn{transform:translate(-50%, -260%)}}@media screen and (min-width: 550px){ptc-svg-btn{transform:translate(-50%, -235%)}}@media only screen and (min-width: 768px){ptc-svg-btn{transform:translate(-50%, -306%)}}@media only screen and (min-width: 992px){ptc-svg-btn{top:50%;left:75%;transform:translate(-50%, -50%)}}";
382
-
383
- const PtcJumbotron = class {
384
- constructor(hostRef) {
385
- registerInstance(this, hostRef);
386
- this.jumbotronType = 'light';
387
- this.popupVideo = undefined;
388
- this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
389
- this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
390
- this.pngSrc = undefined;
391
- this.gifSrc = undefined;
392
- this.bgVideoSrc = undefined;
393
- this.bgSrc = undefined;
394
- this.isIframe = false;
395
- this.contentBackground = undefined;
396
- this.contentColor = undefined;
397
- this.textAlign = 'left';
398
- this.isMobile = undefined;
399
- }
400
- handleResize() {
401
- this.getContentBackground();
402
- this.adjustJumbotronHeight();
403
- }
404
- connectedCallback() {
405
- this.getContentBackground();
406
- }
407
- componentDidLoad() {
408
- if (!!this.popupVideo) {
409
- const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
410
- const PtcModal = this.el.shadowRoot.querySelector('#j-modal');
411
- if (selectedBtn && PtcModal) {
412
- selectedBtn.addEventListener('click', function () {
413
- PtcModal.show = true;
414
- });
415
- const iframe = PtcModal.shadowRoot.querySelector('iframe');
416
- console.log('iframe');
417
- console.log(iframe);
418
- const iframeDoc = iframe.contentDocument;
419
- //const shadowVideo = shadowIframe.querySelector('document')
420
- console.log('video: ');
421
- console.log(iframeDoc);
422
- }
423
- }
424
- this.adjustJumbotronHeight();
425
- }
426
- render() {
427
- console.log('render');
428
- const classMap = this.getCssClassMap();
429
- let mediaElement;
430
- switch (this.jumbotronType) {
431
- case 'png':
432
- mediaElement = (h("div", { class: "mobile-media-image" }, h("ptc-picture", { src: this.pngSrc })));
433
- break;
434
- case 'gif':
435
- mediaElement = (h("div", { class: "mobile-media-image gif-bg" }, h("img", { src: this.gifSrc })));
436
- break;
437
- case 'dark-video':
438
- case 'light-video':
439
- mediaElement = h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc, isIframe: this.isIframe });
440
- break;
441
- default:
442
- mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
443
- }
444
- return (h(Host, { class: classMap }, h("div", { class: "parent" }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: "ptc-container content-layout" }, h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-title", { type: "h1", upperline: "no-upperline", "title-size": "xxxx-large", "title-height": "densest", "title-weight": "w-8", "title-margin": "margin-flush", "text-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "3", description: this.mainTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": this.jumbotronType === 'text' && this.isMobile ? 'w-7' : 'w-4', "para-margin": "margin-bottom-6", "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))), !!this.popupVideo
445
- ? [
446
- h("ptc-modal", { id: "j-modal", show: false, size: "lg", "iframe-url": this.popupVideo, fixed: true }),
447
- h("ptc-svg-btn", { id: "j-modal-btn", "svg-name": "play", display: "block", "z-index": 2 }),
448
- ]
449
- : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
450
- }
451
- getCssClassMap() {
452
- return {
453
- // [this.imageZIndex] : true
454
- };
455
- }
456
- getContentBackground() {
457
- if (window.innerWidth < 992) {
458
- switch (this.jumbotronType) {
459
- case 'light':
460
- case 'light-video':
461
- this.contentBackground = '#F3F3F3';
462
- this.contentColor = 'var(--color-gray-10)';
463
- break;
464
- case 'dark':
465
- case 'dark-video':
466
- this.contentBackground = 'var(--color-gray-09)';
467
- this.contentColor = 'var(--color-gray-01)';
468
- break;
469
- default:
470
- this.contentBackground = 'transparent';
471
- this.contentColor = 'var(--color-gray-10)';
472
- }
473
- this.isMobile = true;
474
- }
475
- else {
476
- switch (this.jumbotronType) {
477
- case 'light':
478
- case 'light-video':
479
- this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
480
- this.contentColor = 'var(--color-gray-10)';
481
- break;
482
- case 'dark':
483
- case 'dark-video':
484
- this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
485
- this.contentColor = 'var(--color-gray-01)';
486
- break;
487
- case 'gif':
488
- this.contentBackground = '#F3F3F3';
489
- this.contentColor = 'var(--color-gray-10)';
490
- break;
491
- default:
492
- this.contentBackground = 'transparent';
493
- this.contentColor = 'var(--color-gray-10)';
494
- }
495
- this.isMobile = false;
496
- }
497
- }
498
- adjustJumbotronHeight() {
499
- const contentContainerH = this.el.shadowRoot.querySelector('.content-container').clientHeight;
500
- const videoEle = !!this.el.shadowRoot.querySelector('.video-ratio') ? this.el.shadowRoot.querySelector('.video-ratio') : null;
501
- if (contentContainerH < 500 && videoEle && !this.isMobile) {
502
- videoEle.style.paddingBottom = '500px';
503
- }
504
- else {
505
- !!videoEle ? videoEle.style.paddingBottom = '' : null;
506
- }
507
- }
508
- get el() { return getElement(this); }
509
- };
417
+ const ptcJumbotronCss = ".ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid{width:100%}.u-para-sm{font-size:var(--ptc-font-size-small) !important}.u-para-md{font-size:var(--ptc-font-size-medium) !important}.u-para-lg{font-size:var(--ptc-font-size-large) !important}.u-para-xl{font-size:var(--ptc-font-size-x-large) !important}.u-para-xxl{font-size:var(--ptc-font-size-xx-large) !important}.u-para-xxxl{font-size:var(--ptc-font-size-xxx-large) !important}@media only screen and (min-width: 768px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.05vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.05vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.05vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.05vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.05vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.05vw) !important}}@media only screen and (min-width: 992px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.1vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.1vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.1vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.1vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.1vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.1vw) !important}}@media only screen and (min-width: 1200px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.15vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.15vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.15vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.15vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.15vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.15vw) !important}}@media only screen and (min-width: 1440px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.2vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.2vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.2vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.2vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.2vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.2vw) !important}}@media only screen and (min-width: 1600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.25vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.25vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.25vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.25vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.25vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.25vw) !important}}@media only screen and (min-width: 1980px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.3vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.3vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.3vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.3vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.3vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.3vw) !important}}@media only screen and (min-width: 2600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.35vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.35vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.35vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.35vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.35vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.35vw) !important}}.u-para-body{font-size:var(--ptc-font-size-medium) !important}.u-color-white{color:var(--color-white) !important}.u-uppercase{text-transform:uppercase !important}.u-margin-flush{margin:0 !important}.u-marginTop-flush{margin-top:0 !important}.u-marginLeft-flush{margin-left:0 !important}.u-marginRight-flush{margin-right:0 !important}.u-marginBottom-flush{margin-bottom:0 !important}.u-padding-flush{padding:0 !important}.u-paddingTop-flush{padding-top:0 !important}.u-paddingLeft-flush{padding-left:0 !important}.u-paddingRight-flush{padding-right:0 !important}.u-paddingBottom-flush{padding-bottom:0 !important}.u-margin-xs{margin:var(--ptc-element-spacing-01) !important}.u-marginTop-xs{margin-top:var(--ptc-element-spacing-01) !important}.u-marginLeft-xs{margin-left:var(--ptc-element-spacing-01) !important}.u-marginRight-xs{margin-right:var(--ptc-element-spacing-01) !important}.u-marginBottom-xs{margin-bottom:var(--ptc-element-spacing-01) !important}.u-margin-sm{margin:var(--ptc-element-spacing-02) !important}.u-marginTop-sm{margin-top:var(--ptc-element-spacing-02) !important}.u-marginLeft-sm{margin-left:var(--ptc-element-spacing-02) !important}.u-marginRight-sm{margin-right:var(--ptc-element-spacing-02) !important}.u-marginBottom-sm{margin-bottom:var(--ptc-element-spacing-02) !important}.u-margin-md{margin:var(--ptc-element-spacing-03) !important}.u-marginTop-md{margin-top:var(--ptc-element-spacing-03) !important}.u-marginLeft-md{margin-left:var(--ptc-element-spacing-03) !important}.u-marginRight-md{margin-right:var(--ptc-element-spacing-03) !important}.u-marginBottom-md{margin-bottom:var(--ptc-element-spacing-03) !important}.u-margin-lg{margin:var(--ptc-element-spacing-04) !important}.u-marginTop-lg{margin-top:var(--ptc-element-spacing-04) !important}.u-marginLeft-lg{margin-left:var(--ptc-element-spacing-04) !important}.u-marginRight-lg{margin-right:var(--ptc-element-spacing-04) !important}.u-marginBottom-lg{margin-bottom:var(--ptc-element-spacing-04) !important}.u-margin-xl{margin:var(--ptc-element-spacing-05) !important}.u-marginTop-xl{margin-top:var(--ptc-element-spacing-05) !important}.u-marginLeft-xl{margin-left:var(--ptc-element-spacing-05) !important}.u-marginRight-xl{margin-right:var(--ptc-element-spacing-05) !important}.u-marginBottom-xl{margin-bottom:var(--ptc-element-spacing-05) !important}.u-margin-xxl{margin:var(--ptc-element-spacing-06) !important}.u-marginTop-xxl{margin-top:var(--ptc-element-spacing-06) !important}.u-marginLeft-xxl{margin-left:var(--ptc-element-spacing-06) !important}.u-marginRight-xxl{margin-right:var(--ptc-element-spacing-06) !important}.u-marginBottom-xxl{margin-bottom:var(--ptc-element-spacing-06) !important}.u-textAlign-ctr{text-align:center !important}.u-textAlign-right{text-align:right !important}.u-textAlign-left{text-align:left !important}.u-textWhite{color:var(--color-white) !important}.u-textGreen1{color:var(--color-green-07) !important}.u-textGreen2{color:var(--color-green-06) !important}.u-text-nowrap{white-space:nowrap}.u-text-bold{font-weight:var(--ptc-font-weight-bold)}.u-text-thin{font-weight:var(--ptc-font-weight-thin)}.u-textStyle-normal{font-style:normal !important}.u-no-scroll{overflow:hidden}.u-background-reset{background-color:transparent !important}.u-white-overylay{background:rgba(242, 242, 242, 0.9)}.u-cursor-pointer{cursor:pointer}.u-clear{clear:both}@media only screen and (min-width: 768px){.u-hero-width{width:525px}.u-margin-center{margin:0 auto}.u-justify-self-end{justify-self:flex-end}}.u-hero-pushup{transform:translateY(-120px)}@media only screen and (min-width: 768px){.u-hero-pushup{transform:translateY(-144px)}}@media only screen and (min-width: 768px){.grid-order-1-md{order:1}.grid-order-2-md{order:2}.grid-order-3-md{order:3}}@media only screen and (min-width: 992px){.grid-order-1-lg{order:1}.grid-order-2-lg{order:2}.grid-order-3-lg{order:3}}.standard-list{list-style:none;margin-left:0;margin-bottom:20px;padding:0}.is-spaced-between{justify-content:space-between}.grid-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-large-col-gap-md{column-gap:3rem}}.grid-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-large-col-gap-sm{column-gap:3rem}}.grid-x-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-x-large-col-gap-md{column-gap:4rem}}.grid-x-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-x-large-col-gap-sm{column-gap:4rem}}.grid-medium-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-medium-col-gap-md{column-gap:2rem}}.grid-medium-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-medium-col-gap-sm{column-gap:2rem}}.is-float-left{float:left}.is-float-right{float:right}.is-mobile{display:block}.is-desktop{display:none}@media only screen and (min-width: 992px){.is-mobile{display:none}.is-desktop{display:block}}.ptc-section{padding-top:2rem;padding-bottom:2rem}@media only screen and (min-width: 992px){.ptc-section{padding-top:3rem;padding-bottom:3rem}}.ptc-section-standard{padding-top:3rem;padding-bottom:3rem}.ptc-section-half{padding-top:1.5rem;padding-bottom:1.5rem}.u-flex{display:flex}@media only screen and (min-width: 480px){.u-flex-xs{display:flex}}@media only screen and (min-width: 768px){.u-flex-sm{display:flex}}@media only screen and (min-width: 992px){.u-flex-md{display:flex}}@media only screen and (min-width: 1200px){.u-flex-lg{display:flex}}@media only screen and (min-width: 1440px){.u-flex-xl{display:flex}}@media only screen and (min-width: 1600px){.u-flex-xxl{display:flex}}@media only screen and (min-width: 1980px){.u-flex-2k{display:flex}}@media only screen and (min-width: 2600px){.u-flex-4k{display:flex}}.u-align-center{margin:auto;align-self:center}.u-align-left{margin-right:auto;align-self:center}.u-align-right{margin-left:auto;align-self:center}.u-align-x-center{margin-right:auto;margin-left:auto}.u-align-x-left{margin-right:auto}.u-align-x-right{margin-left:auto}.u-align-y-center{align-self:center}.u-align-y-top{align-self:flex-start}.u-align-y-bottom{align-self:flex-end}.is-flex-column{flex-direction:column}.flex-align-items{align-items:flex-end}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap{flex-wrap:wrap}.u-align-self-start{align-self:start}.u-align-self-center{align-self:center}.u-align-self-stretch{align-self:stretch}.u-justify-self-start{justify-self:start}.u-justify-self-center{justify-self:center}.u-justify-self-stretch{justify-self:stretch}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-md)}@media only screen and (min-width: 992px){.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-lg)}}.fef-two-column-two-media .is-col-6-md{padding-bottom:3rem}.fef-two-column-two-media .is-col-6-md:last-child{padding-bottom:0rem}@media only screen and (min-width: 768px){.fef-two-column-two-media .is-col-6-md{padding-bottom:0rem}}ptc-icon-list.icon-top-align-list a{text-decoration:none;transition:color 0.3s ease;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-font-size-x-large);border-bottom:0.094rem solid var(--color-green-06);color:var(--color-gray-10)}ptc-icon-list.icon-top-align-list a:hover{color:var(--color-green-06)}@media only screen and (min-width: 768px){.is-grid.grid-large-col-gap-xs-0{row-gap:0}}.max-content{max-width:90%;margin:auto}@media only screen and (min-width: 480px){.max-content{max-width:80%}}.product-tab ptc-title h3{font-size:20px !important;font-weight:900}@media only screen and (min-width: 1200px){.product-tab ptc-title h3{font-size:15px !important;font-weight:800}}.product-tab .is-grid{grid-column-gap:20px;grid-row-gap:12px}ptc-bio-card .bio-modal-open-content{color:var(--color-gray-10);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-denser)}ptc-bio-card .bio-modal-open-content h3{letter-spacing:0.08rem;margin-bottom:2px;font-size:var(--ptc-font-size-small)}ptc-bio-card .bio-modal-open-content ul{margin-top:0}ptc-bio-card .bio-modal-open-content ul li{line-height:var(--ptc-line-height-p)}ptc-bio-card .bio-modal-open-content ul li a{text-decoration:none;color:var(--color-green-06);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content ul li a:hover{color:var(--color-gray-10);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content .btn-blackgrey{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:14px 20px;border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard);color:var(--color-white);font-weight:700}ptc-bio-card .bio-modal-open-content .btn-blackgrey:hover{background-color:var(--color-gray-09);border-color:var(--color-gray-08)}ptc-bio-card .bio-modal-open-content .btn-blackgrey svg{display:none}ptc-bio-card .bio-modal-open-content hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.u-justify-space-between{justify-content:space-between}ptc-nav-submenu .dropdown-content{display:none}ptc-nav-submenu .dropdown-content.open{padding-top:5px;padding-bottom:5px;display:block}ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-04)}@media only screen and (min-width: 1200px){ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-04)}}:host{display:block}.parent{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-column-gap:0px;grid-row-gap:0px;position:unset;z-index:999}.div1{grid-area:1/1/2/2;min-height:300px}.div1.hidden{display:none}.mobile-media-image{display:flex;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.mobile-media-image{display:none}}.gif-bg{background-color:#F3F3F3}.gif-bg img{width:100%;height:auto}@media only screen and (min-width: 768px){.gif-bg img{width:auto}}.video-ratio{position:relative;overflow:hidden;height:0;padding-bottom:100%}@media screen and (min-width: 550px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 768px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 992px){.video-ratio{padding-bottom:59.37%;max-height:500px}}@media only screen and (min-width: 1200px){.video-ratio{padding-bottom:min(578px, 46.67%)}}@media only screen and (min-width: 1440px){.video-ratio{padding-bottom:min(578px, 39.67%)}}.div2{grid-area:2/1/3/2;position:relative}.bg-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.content-layout{display:flex;flex-direction:column}@media only screen and (min-width: 992px){.content-layout{flex-direction:row}}.gap-adjustment{gap:var(--ptc-element-spacing-07);margin-bottom:var(--ptc-element-spacing-07)}.text-adjustment{justify-content:flex-start}@media only screen and (min-width: 992px){.text-adjustment{justify-content:center}}.desktop-media-image{width:40%;display:none}@media only screen and (min-width: 992px){.desktop-media-image{display:block}}.desk-gif-adjustment{z-index:3}@media only screen and (min-width: 992px){.parent{grid-template-columns:1fr;grid-template-rows:1fr;grid-column-gap:0px;grid-row-gap:0px;min-height:500px;position:relative}.div1{grid-area:1/1/2/2;min-height:unset}.div2{grid-area:1/1/2/2;align-self:center;position:unset}}";
418
+
419
+ const PtcJumbotron = class {
420
+ constructor(hostRef) {
421
+ registerInstance(this, hostRef);
422
+ this.jumbotronType = 'light';
423
+ this.hasPopupVideo = false;
424
+ this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
425
+ this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
426
+ this.pngSrc = undefined;
427
+ this.gifSrc = undefined;
428
+ this.bgVideoSrc = undefined;
429
+ this.bgSrc = undefined;
430
+ this.isIframe = false;
431
+ this.playButtonTitle = undefined;
432
+ this.pauseButtonTitle = undefined;
433
+ this.contentBackground = undefined;
434
+ this.contentColor = undefined;
435
+ this.textAlign = 'left';
436
+ this.isMobile = undefined;
437
+ }
438
+ handleResize() {
439
+ this.getContentBackground();
440
+ this.adjustJumbotronHeight();
441
+ }
442
+ connectedCallback() {
443
+ this.getContentBackground();
444
+ }
445
+ componentDidLoad() {
446
+ // if (!!this.popupVideo) {
447
+ // const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
448
+ // const PtcModal: HTMLPtcModalElement = this.el.shadowRoot.querySelector('#j-modal');
449
+ // if (selectedBtn && PtcModal) {
450
+ // selectedBtn.addEventListener('click', function () {
451
+ // PtcModal.show = true;
452
+ // });
453
+ // const iframe = PtcModal.shadowRoot.querySelector('iframe');
454
+ // console.log('iframe')
455
+ // console.log(iframe);
456
+ // const iframeDoc= iframe.contentDocument
457
+ // //const shadowVideo = shadowIframe.querySelector('document')
458
+ // console.log('video: ')
459
+ // console.log(iframeDoc)
460
+ // }
461
+ // }
462
+ this.adjustJumbotronHeight();
463
+ }
464
+ render() {
465
+ console.log('render');
466
+ const classMap = this.getCssClassMap();
467
+ let mediaElement;
468
+ switch (this.jumbotronType) {
469
+ case 'png':
470
+ mediaElement = (h("div", { class: "mobile-media-image" }, h("ptc-picture", { src: this.pngSrc })));
471
+ break;
472
+ case 'gif':
473
+ mediaElement = (h("div", { class: "mobile-media-image gif-bg" }, h("img", { src: this.gifSrc })));
474
+ break;
475
+ case 'dark-video':
476
+ case 'light-video':
477
+ mediaElement = (h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc, isIframe: this.isIframe, "play-button-title": this.playButtonTitle, "pause-button-title": this.pauseButtonTitle }));
478
+ break;
479
+ default:
480
+ mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
481
+ }
482
+ return (h(Host, { class: classMap }, h("div", { class: "parent" }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: "ptc-container content-layout" }, h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": this.jumbotronType === 'text' && this.isMobile ? 'w-7' : 'w-4', "para-margin": "margin-bottom-6", "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))), this.hasPopupVideo ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
483
+ }
484
+ getCssClassMap() {
485
+ return {
486
+ // [this.imageZIndex] : true
487
+ };
488
+ }
489
+ getContentBackground() {
490
+ if (window.innerWidth < 992) {
491
+ switch (this.jumbotronType) {
492
+ case 'light':
493
+ case 'light-video':
494
+ this.contentBackground = '#F3F3F3';
495
+ this.contentColor = 'var(--color-gray-10)';
496
+ break;
497
+ case 'dark':
498
+ case 'dark-video':
499
+ this.contentBackground = 'var(--color-gray-09)';
500
+ this.contentColor = 'var(--color-gray-01)';
501
+ break;
502
+ default:
503
+ this.contentBackground = 'transparent';
504
+ this.contentColor = 'var(--color-gray-10)';
505
+ }
506
+ this.isMobile = true;
507
+ }
508
+ else {
509
+ switch (this.jumbotronType) {
510
+ case 'light':
511
+ case 'light-video':
512
+ this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
513
+ this.contentColor = 'var(--color-gray-10)';
514
+ break;
515
+ case 'dark':
516
+ case 'dark-video':
517
+ this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
518
+ this.contentColor = 'var(--color-gray-01)';
519
+ break;
520
+ case 'gif':
521
+ this.contentBackground = '#F3F3F3';
522
+ this.contentColor = 'var(--color-gray-10)';
523
+ break;
524
+ default:
525
+ this.contentBackground = 'transparent';
526
+ this.contentColor = 'var(--color-gray-10)';
527
+ }
528
+ this.isMobile = false;
529
+ }
530
+ }
531
+ adjustJumbotronHeight() {
532
+ const contentContainerH = this.el.shadowRoot.querySelector('.content-container').clientHeight;
533
+ const videoEle = !!this.el.shadowRoot.querySelector('.video-ratio') ? this.el.shadowRoot.querySelector('.video-ratio') : null;
534
+ if (contentContainerH < 500 && videoEle && !this.isMobile) {
535
+ videoEle.style.paddingBottom = '500px';
536
+ }
537
+ else {
538
+ !!videoEle ? (videoEle.style.paddingBottom = '') : null;
539
+ }
540
+ }
541
+ get el() { return getElement(this); }
542
+ };
510
543
  PtcJumbotron.style = ptcJumbotronCss;
511
544
 
512
- const ptcModalCss = ":host{display:block}.wrapper{position:absolute;width:100vw;height:100%;top:0;left:0;z-index:3000;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:3020;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 .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}.wrapper .modal-popup .modal-body.html{overflow:hidden}.wrapper .modal-popup .close{margin-right:var(--ptc-element-spacing-03);margin-top:var(--ptc-element-spacing-03)}.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:var(--spacing-md);right:var(--spacing-md);margin:0}.wrapper .modal-popup.shadow-scroller .modal-body{min-height:200px;overflow-x:hidden;overflow-y:auto}.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:3010;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(.bio-modal) .modal-popup{padding:30px 15px 30px 0;max-width:1200px}@media only screen and (min-width: 1440px){:host(.bio-modal) .modal-popup{max-width:1400px}}:host(.bio-modal) .close{position:absolute;margin:0;right:15px;top:30px}: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)}";
513
-
514
- const PtcModal = class {
515
- constructor(hostRef) {
516
- registerInstance(this, hostRef);
517
- this.closed = createEvent(this, "closed", 7);
518
- this.opened = createEvent(this, "opened", 7);
519
- this.iframeUrl = undefined;
520
- this.size = 'sm';
521
- this.show = false;
522
- this.overlay = true;
523
- this.fixed = false;
524
- this.closeOnBlur = false;
525
- this.rounded = false;
526
- this.showHeaderFooter = false;
527
- this.overlayHeight = undefined;
528
- this.borderRadius = 'standard';
529
- this.isBioModal = false;
530
- this.bodyOverflowSetting = undefined;
531
- }
532
- fireOnClosed(modal) {
533
- this.closed.emit(modal);
534
- }
535
- fireOnOpened(modal) {
536
- this.opened.emit(modal);
537
- }
538
- componentWillLoad() {
539
- let body = document.querySelector('body');
540
- this.bodyOverflowSetting = {
541
- //overflow: body.style['overflow'],
542
- overflowY: body.style['overflowY'],
543
- overflowX: body.style['overflowX'],
544
- };
545
- }
546
- componentWillRender() {
547
- let body = document.querySelector('body');
548
- if (body) {
549
- if (this.show) {
550
- //body.style['overflow'] = 'hidden';
551
- body.style['overflowY'] = 'scroll';
552
- body.style['overflowX'] = 'hidden';
553
- }
554
- else {
555
- //body.style['overflow'] = this.bodyOverflowSetting.overflow;
556
- body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
557
- body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
558
- }
559
- }
560
- }
561
- componentDidLoad() {
562
- if (this.show) {
563
- this.fireOnOpened(this);
564
- }
565
- if (this.showHeaderFooter) {
566
- this.handleScroll();
567
- }
568
- }
569
- componentDidUpdate() {
570
- if (this.show) {
571
- this.fireOnOpened(this);
572
- }
573
- else {
574
- this.fireOnClosed(this);
575
- }
576
- }
577
- resizeIframe(e) {
578
- let iFrame = e.target;
579
- setTimeout(() => {
580
- try {
581
- if (iFrame.contentDocument) {
582
- iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
583
- }
584
- else {
585
- iFrame.height = '616px'; //default
586
- iFrame.removeAttribute('scrolling');
587
- }
588
- }
589
- catch (error) {
590
- console.log(error);
591
- iFrame.height = '616px'; //default
592
- iFrame.removeAttribute('scrolling');
593
- }
594
- iFrame.classList.add('ready');
595
- }, 50);
596
- }
597
- handleScroll() {
598
- let modal = this.el.shadowRoot.querySelector('.shadow-scroller');
599
- if (modal) {
600
- let body = modal.querySelector('.modal-body');
601
- var height = body.clientHeight;
602
- var scrollHeight = body.scrollHeight;
603
- var scrollTop = body.scrollTop;
604
- var offset = body.offsetHeight;
605
- if (height < scrollHeight) { //has scrollbar
606
- if (scrollTop > 0) { //can scroll up
607
- modal.classList.add('scroll-top');
608
- }
609
- else {
610
- modal.classList.remove('scroll-top');
611
- }
612
- if (offset + scrollTop < scrollHeight) { //can scroll down
613
- modal.classList.add('scroll-bottom');
614
- }
615
- else {
616
- modal.classList.remove('scroll-bottom');
617
- }
618
- }
619
- }
620
- }
621
- close() {
622
- this.show = false;
623
- }
624
- render() {
625
- let content;
626
- let overlay;
627
- let type = this.iframeUrl ? 'frame' : 'html';
628
- let closebtn = (h("div", { class: "close" }, h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, this.isBioModal
629
- ?
630
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "42", height: "41.485", viewBox: "0 0 42 41.485" }, h("g", { "data-name": "Group 1042", transform: "rotate(180 108.25 87.993)" }, h("path", { d: "M0 0v39.486", class: "cls-1", "data-name": "Line 446" }), h("path", { d: "M0 0h40", class: "cls-1", "data-name": "Line 447" }), h("path", { d: "M0 33.592V0", class: "cls-1", "data-name": "Line 448" }), h("path", { d: "M23.994 0H0", class: "cls-1", "data-name": "Line 449" }), h("path", { d: "M0 0l17.596 17.596", class: "cls-2", "data-name": "Line 450", transform: "translate(187.229 147.226)" }), h("path", { d: "M0 7.198L7.199 0", class: "cls-2", "data-name": "Line 451", transform: "translate(197.55 147.312)" }), h("path", { d: "M0 7.2L7.2 0", class: "cls-2", "data-name": "Path 114", transform: "translate(187.313 157.549)" })))
631
- :
632
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h("path", { d: "M1 1L13 13", stroke: "black" }), h("path", { d: "M13 1L1 13", stroke: "black" })))));
633
- if (this.iframeUrl) {
634
- content = (h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
635
- }
636
- else {
637
- if (this.showHeaderFooter) {
638
- content = (h("slot", { name: "body" }));
639
- }
640
- else {
641
- content = (h("slot", null));
642
- }
643
- }
644
- if (this.overlay) {
645
- if (this.closeOnBlur) {
646
- overlay = h("div", { class: "overlay", onClick: (_) => this.close() });
647
- }
648
- else {
649
- overlay = h("div", { class: "overlay" });
650
- }
651
- }
652
- return (h(Host, { class: `${this.isBioModal ? "bio-modal" : ""} ${this.borderRadius}` }, h("div", { class: `wrapper ${this.show ? "show" : "hide"} ${this.fixed ? 'fixed' : ''} ` }, overlay, h("div", { class: `modal-popup ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.showHeaderFooter ? [
653
- h("div", { class: "modal-header" }, h("slot", { name: "header" }), closebtn),
654
- h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
655
- h("div", { class: "modal-footer" }, h("slot", { name: "footer" }))
656
- ] : [
657
- closebtn,
658
- h("div", { class: "modal-body" }, content)
659
- ]))));
660
- }
661
- get el() { return getElement(this); }
662
- };
663
- PtcModal.style = ptcModalCss;
664
-
665
545
  const ptcParaCss = ":host{position:relative;z-index:1}: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.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-9{font-weight:var(--ptc-font-weight-black)}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.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}";
666
546
 
667
- const PtcPara = class {
668
- constructor(hostRef) {
669
- registerInstance(this, hostRef);
670
- this.fontSize = 'x-small';
671
- this.fontWeight = 'w-4';
672
- this.paraStyle = 'default';
673
- this.paraColor = 'primary-grey';
674
- this.paraLineH = 'line-height-normal';
675
- this.paraMargin = undefined;
676
- this.paraAlign = undefined;
677
- this.ellipsisLineCutoff = undefined;
678
- this.paraZIndex = undefined;
679
- this.styles = undefined;
680
- }
681
- render() {
682
- const classMap = this.getCssClassMap();
683
- const colorClass = this.addWhiteClass();
684
- const cutOff = this.getLineCuttoff();
685
- return (h(Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && h("style", null, this.styles), h("p", { class: classMap, part: "part-para", style: cutOff }, h("slot", null))));
686
- }
687
- getCssClassMap() {
688
- return {
689
- [this.fontSize]: true,
690
- [this.fontWeight]: true,
691
- [this.paraStyle]: true,
692
- [this.paraMargin]: !!this.paraMargin ? true : false,
693
- [this.paraColor]: true,
694
- [this.paraLineH]: true,
695
- [this.paraAlign]: !!this.paraAlign ? true : false,
696
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
697
- };
698
- }
699
- //WEB-2392
700
- addWhiteClass() {
701
- if (this.paraColor == 'white') {
702
- return {
703
- [this.paraColor]: true,
704
- };
705
- }
706
- }
707
- getLineCuttoff() {
708
- let result;
709
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
710
- result = {
711
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
712
- };
713
- }
714
- return result;
715
- }
716
- get el() { return getElement(this); }
717
- };
547
+ const PtcPara = class {
548
+ constructor(hostRef) {
549
+ registerInstance(this, hostRef);
550
+ this.fontSize = 'x-small';
551
+ this.fontWeight = 'w-4';
552
+ this.paraStyle = 'default';
553
+ this.paraColor = 'primary-grey';
554
+ this.paraLineH = 'line-height-normal';
555
+ this.paraMargin = undefined;
556
+ this.paraAlign = undefined;
557
+ this.ellipsisLineCutoff = undefined;
558
+ this.paraZIndex = undefined;
559
+ this.styles = undefined;
560
+ }
561
+ render() {
562
+ const classMap = this.getCssClassMap();
563
+ const colorClass = this.addWhiteClass();
564
+ const cutOff = this.getLineCuttoff();
565
+ return (h(Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && h("style", null, this.styles), h("p", { class: classMap, part: "part-para", style: cutOff }, h("slot", null))));
566
+ }
567
+ getCssClassMap() {
568
+ return {
569
+ [this.fontSize]: true,
570
+ [this.fontWeight]: true,
571
+ [this.paraStyle]: true,
572
+ [this.paraMargin]: !!this.paraMargin ? true : false,
573
+ [this.paraColor]: true,
574
+ [this.paraLineH]: true,
575
+ [this.paraAlign]: !!this.paraAlign ? true : false,
576
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
577
+ };
578
+ }
579
+ //WEB-2392
580
+ addWhiteClass() {
581
+ if (this.paraColor == 'white') {
582
+ return {
583
+ [this.paraColor]: true,
584
+ };
585
+ }
586
+ }
587
+ getLineCuttoff() {
588
+ let result;
589
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
590
+ result = {
591
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
592
+ };
593
+ }
594
+ return result;
595
+ }
596
+ get el() { return getElement(this); }
597
+ };
718
598
  PtcPara.style = ptcParaCss;
719
599
 
720
600
  const ptcPictureCss = ":host{display:block;overflow:hidden}:host img{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
721
601
 
722
- const PtcPicture = class {
723
- constructor(hostRef) {
724
- registerInstance(this, hostRef);
725
- this.src = undefined;
726
- this.alt = 'image';
727
- this.sizeXs = '510x340';
728
- this.sizeSm = '1240x496';
729
- this.sizeMd = '1366x500';
730
- this.sizeLg = '1920x1080';
731
- this.oldSrc = undefined;
732
- this.imagePosition = 'static';
733
- this.borderRadius = undefined;
734
- this.height = undefined;
735
- this.width = undefined;
736
- this.objectFit = 'cover';
737
- this.isFullHeight = false;
738
- this.isFullWidth = false;
739
- this.styles = undefined;
740
- this.imageAlignment = 'left';
741
- this.maxWidth = undefined;
742
- }
743
- WindowResize() {
744
- this.addIntersectionObserver();
745
- }
746
- componentDidLoad() {
747
- this.addIntersectionObserver();
748
- }
749
- componentWillUpdate() {
750
- if (this.src !== this.oldSrc) {
751
- this.addIntersectionObserver();
752
- }
753
- this.oldSrc = this.src;
754
- }
755
- //lazy-loading
756
- addIntersectionObserver() {
757
- if (!this.src) {
758
- return;
759
- }
760
- if ('IntersectionObserver' in window) {
761
- let lazyLoadImages = new IntersectionObserver(entries => {
762
- entries.forEach(entry => {
763
- if (entry.isIntersecting) {
764
- const image = this.el.shadowRoot.querySelector('img');
765
- image.src = this.setResponsiveBg();
766
- lazyLoadImages.unobserve(image);
767
- }
768
- });
769
- });
770
- let tempImg = this.el.shadowRoot.querySelector('img');
771
- if (tempImg) {
772
- lazyLoadImages.observe(tempImg);
773
- }
774
- }
775
- else {
776
- // fall back to setTimeout for Safari and IE
777
- setTimeout(() => {
778
- const image = this.el.shadowRoot.querySelector('img');
779
- image.src = this.setResponsiveBg();
780
- image.onload = () => {
781
- image.removeAttribute('data-src');
782
- console.log('loaded fallback');
783
- };
784
- }, 5000);
785
- }
786
- }
787
- //responsive image
788
- setResponsiveBg() {
789
- // Define local variables
790
- let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
791
- for (var i = 0, len = backgrounds.length; i < len; i++) {
792
- // Set current variables
793
- el = backgrounds[i];
794
- elData = el.getAttribute('data-' + currentBreakpoint);
795
- if (elData !== null) {
796
- return elData;
797
- }
798
- else {
799
- if (typeof console == 'object') {
800
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
801
- }
802
- }
803
- }
804
- }
805
- render() {
806
- const classMap = this.getCssClassMap();
807
- const classMapHost = this.getCssClassMapHost();
808
- return (h(Host, { class: classMapHost }, this.styles && h("style", null, this.styles), h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), h("slot", null)));
809
- }
810
- getCurrentBreakPoints() {
811
- // Define local variables
812
- let doc = window.document, temp = doc.createElement('div'), env;
813
- // Append test node
814
- doc.body.appendChild(temp);
815
- // Loop through breakpoints
816
- for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
817
- env = ResponsivePictureVariables.envs[i];
818
- // Add classes
819
- temp.className = 'hidden-' + env;
820
- // Found breakpoint
821
- if (temp.offsetParent === null) {
822
- // Remove our test node
823
- doc.body.removeChild(temp);
824
- // Return current breakpoint
825
- return env;
826
- }
827
- }
828
- // Breakpoint not found, try fallback
829
- doc.body.removeChild(temp);
830
- return this.getFallbackBreakpoint();
831
- }
832
- getFallbackBreakpoint() {
833
- if (window.matchMedia('(min-width: 992px)').matches) {
834
- return 'lg';
835
- }
836
- else if (window.matchMedia('(min-width: 768px)').matches) {
837
- return 'md';
838
- }
839
- else if (window.matchMedia('(min-width: 576px)').matches) {
840
- return 'sm';
841
- }
842
- else {
843
- return 'xs';
844
- }
845
- }
846
- getCssClassMap() {
847
- return {
848
- [this.borderRadius]: this.borderRadius ? true : false,
849
- [this.objectFit]: true,
850
- [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
851
- [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
852
- };
853
- }
854
- getCssClassMapHost() {
855
- return {
856
- [this.imagePosition]: true,
857
- [this.imageAlignment]: true,
858
- };
859
- }
860
- get el() { return getElement(this); }
861
- };
602
+ const PtcPicture = class {
603
+ constructor(hostRef) {
604
+ registerInstance(this, hostRef);
605
+ this.src = undefined;
606
+ this.alt = 'image';
607
+ this.sizeXs = '510x340';
608
+ this.sizeSm = '1240x496';
609
+ this.sizeMd = '1366x500';
610
+ this.sizeLg = '1920x1080';
611
+ this.oldSrc = undefined;
612
+ this.imagePosition = 'static';
613
+ this.borderRadius = undefined;
614
+ this.height = undefined;
615
+ this.width = undefined;
616
+ this.objectFit = 'cover';
617
+ this.isFullHeight = false;
618
+ this.isFullWidth = false;
619
+ this.styles = undefined;
620
+ this.imageAlignment = 'left';
621
+ this.maxWidth = undefined;
622
+ }
623
+ WindowResize() {
624
+ this.addIntersectionObserver();
625
+ }
626
+ componentDidLoad() {
627
+ this.addIntersectionObserver();
628
+ }
629
+ componentWillUpdate() {
630
+ if (this.src !== this.oldSrc) {
631
+ this.addIntersectionObserver();
632
+ }
633
+ this.oldSrc = this.src;
634
+ }
635
+ //lazy-loading
636
+ addIntersectionObserver() {
637
+ if (!this.src) {
638
+ return;
639
+ }
640
+ if ('IntersectionObserver' in window) {
641
+ let lazyLoadImages = new IntersectionObserver(entries => {
642
+ entries.forEach(entry => {
643
+ if (entry.isIntersecting) {
644
+ const image = this.el.shadowRoot.querySelector('img');
645
+ image.src = this.setResponsiveBg();
646
+ lazyLoadImages.unobserve(image);
647
+ }
648
+ });
649
+ });
650
+ let tempImg = this.el.shadowRoot.querySelector('img');
651
+ if (tempImg) {
652
+ lazyLoadImages.observe(tempImg);
653
+ }
654
+ }
655
+ else {
656
+ // fall back to setTimeout for Safari and IE
657
+ setTimeout(() => {
658
+ const image = this.el.shadowRoot.querySelector('img');
659
+ image.src = this.setResponsiveBg();
660
+ image.onload = () => {
661
+ image.removeAttribute('data-src');
662
+ console.log('loaded fallback');
663
+ };
664
+ }, 5000);
665
+ }
666
+ }
667
+ //responsive image
668
+ setResponsiveBg() {
669
+ // Define local variables
670
+ let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
671
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
672
+ // Set current variables
673
+ el = backgrounds[i];
674
+ elData = el.getAttribute('data-' + currentBreakpoint);
675
+ if (elData !== null) {
676
+ return elData;
677
+ }
678
+ else {
679
+ if (typeof console == 'object') {
680
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
681
+ }
682
+ }
683
+ }
684
+ }
685
+ render() {
686
+ const classMap = this.getCssClassMap();
687
+ const classMapHost = this.getCssClassMapHost();
688
+ return (h(Host, { class: classMapHost }, this.styles && h("style", null, this.styles), h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), h("slot", null)));
689
+ }
690
+ getCurrentBreakPoints() {
691
+ // Define local variables
692
+ let doc = window.document, temp = doc.createElement('div'), env;
693
+ // Append test node
694
+ doc.body.appendChild(temp);
695
+ // Loop through breakpoints
696
+ for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
697
+ env = ResponsivePictureVariables.envs[i];
698
+ // Add classes
699
+ temp.className = 'hidden-' + env;
700
+ // Found breakpoint
701
+ if (temp.offsetParent === null) {
702
+ // Remove our test node
703
+ doc.body.removeChild(temp);
704
+ // Return current breakpoint
705
+ return env;
706
+ }
707
+ }
708
+ // Breakpoint not found, try fallback
709
+ doc.body.removeChild(temp);
710
+ return this.getFallbackBreakpoint();
711
+ }
712
+ getFallbackBreakpoint() {
713
+ if (window.matchMedia('(min-width: 992px)').matches) {
714
+ return 'lg';
715
+ }
716
+ else if (window.matchMedia('(min-width: 768px)').matches) {
717
+ return 'md';
718
+ }
719
+ else if (window.matchMedia('(min-width: 576px)').matches) {
720
+ return 'sm';
721
+ }
722
+ else {
723
+ return 'xs';
724
+ }
725
+ }
726
+ getCssClassMap() {
727
+ return {
728
+ [this.borderRadius]: this.borderRadius ? true : false,
729
+ [this.objectFit]: true,
730
+ [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
731
+ [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
732
+ };
733
+ }
734
+ getCssClassMapHost() {
735
+ return {
736
+ [this.imagePosition]: true,
737
+ [this.imageAlignment]: true,
738
+ };
739
+ }
740
+ get el() { return getElement(this); }
741
+ };
862
742
  PtcPicture.style = ptcPictureCss;
863
743
 
864
744
  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}}";
865
745
 
866
- const PtcSpacer = class {
867
- constructor(hostRef) {
868
- registerInstance(this, hostRef);
869
- this.breakpoint = '';
870
- this.size = 'medium';
871
- this.direction = 'vertical';
872
- }
873
- render() {
874
- const classMap = this.getCssClassMap();
875
- return (h(Host, { class: classMap }));
876
- }
877
- getCssClassMap() {
878
- return {
879
- [this.size]: true,
880
- ['ptc-spacer-horizontal']: this.direction === 'horizontal',
881
- ['ptc-spacer-vertical']: this.direction === 'vertical',
882
- ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
883
- ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
884
- ['ptc-spacer-small']: this.breakpoint === 'small',
885
- ['ptc-spacer-medium']: this.breakpoint === 'medium',
886
- ['ptc-spacer-large']: this.breakpoint === 'large',
887
- ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
888
- ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
889
- ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
890
- };
891
- }
892
- };
746
+ const PtcSpacer = class {
747
+ constructor(hostRef) {
748
+ registerInstance(this, hostRef);
749
+ this.breakpoint = '';
750
+ this.size = 'medium';
751
+ this.direction = 'vertical';
752
+ }
753
+ render() {
754
+ const classMap = this.getCssClassMap();
755
+ return (h(Host, { class: classMap }));
756
+ }
757
+ getCssClassMap() {
758
+ return {
759
+ [this.size]: true,
760
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
761
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
762
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
763
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
764
+ ['ptc-spacer-small']: this.breakpoint === 'small',
765
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
766
+ ['ptc-spacer-large']: this.breakpoint === 'large',
767
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
768
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
769
+ ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
770
+ };
771
+ }
772
+ };
893
773
  PtcSpacer.style = ptcSpacerCss;
894
774
 
895
- const closeSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 42 41.485">
896
- <g id="Group_1042" data-name="Group 1042" transform="rotate(180 108.25 87.993)">
897
- <path id="Line_446" d="M0 0v39.486" class="cls-1" data-name="Line 446"></path>
898
- <path id="Line_447" d="M0 0h40" class="cls-1" data-name="Line 447"></path>
899
- <path id="Line_448" d="M0 33.592V0" class="cls-1" data-name="Line 448"></path>
900
- <path id="Line_449" d="M23.994 0H0" class="cls-1" data-name="Line 449"></path>
901
- <path id="Line_450" d="M0 0l17.596 17.596" class="cls-2" data-name="Line 450" transform="translate(187.229 147.226)"></path>
902
- <path id="Line_451" d="M0 7.198L7.199 0" class="cls-2" data-name="Line 451" transform="translate(197.55 147.312)"></path>
903
- <path id="Path_114" d="M0 7.2L7.2 0" class="cls-2" data-name="Path 114" transform="translate(187.313 157.549)"></path>
904
- </g>
905
- </svg>`;
906
-
907
- const arrowSvgLeft = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
908
- <g filter="url(#filter0_d_494_37)">
909
- <circle cx="24" cy="22" r="20" fill="white"/>
910
- <path d="M23.1444 16L23.1444 20.5762L31 20.5762L31 23.4239L23.1444 23.4239L23.1444 28L17 21.9669L23.1444 16Z" class="arrow"/>
911
- </g>
912
- <defs>
913
- <filter id="filter0_d_494_37" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
914
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
915
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
916
- <feOffset dy="2"/>
917
- <feGaussianBlur stdDeviation="2"/>
918
- <feComposite in2="hardAlpha" operator="out"/>
919
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
920
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_37"/>
921
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_37" result="shape"/>
922
- </filter>
923
- </defs>
924
- </svg>
925
- `;
926
-
927
- const arrowSvgRight = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
928
- <g filter="url(#filter0_d_494_34)">
929
- <circle cx="24" cy="22" r="20" fill="white"/>
930
- <path d="M24.8556 16L24.8556 20.5762L17 20.5762L17 23.4239L24.8556 23.4239L24.8556 28L31 21.9669L24.8556 16Z" class="arrow"/>
931
- </g>
932
- <defs>
933
- <filter id="filter0_d_494_34" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
934
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
935
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
936
- <feOffset dy="2"/>
937
- <feGaussianBlur stdDeviation="2"/>
938
- <feComposite in2="hardAlpha" operator="out"/>
939
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
940
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_34"/>
941
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_34" result="shape"/>
942
- </filter>
943
- </defs>
944
- </svg>
945
- `;
946
-
947
- const backarrow = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 311 512">
948
- <defs>
949
- <style>
950
- .cls-1 {
951
- fill: #fff;
952
- fill-rule: evenodd;
953
- }
954
- </style>
955
- </defs>
956
- <path class="cls-1" d="M251.762,512L311,452.638,114.774,256,311,59.362,251.762,0,0,252.29Z"/>
957
- </svg>
958
- `;
959
-
960
- const play = `<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
961
- <g filter="url(#filter0_d_241_171)">
962
- <circle cx="42" cy="38" r="36" fill="#1F2024"/>
963
- <circle cx="42" cy="38" r="35" stroke="#33A13C" stroke-width="2"/>
964
- </g>
965
- <path d="M58 38L34 51.8564L34 24.1436L58 38Z" fill="white"/>
966
- <defs>
967
- <filter id="filter0_d_241_171" x="0" y="0" width="84" height="84" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
968
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
969
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
970
- <feMorphology radius="2" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_241_171"/>
971
- <feOffset dy="4"/>
972
- <feGaussianBlur stdDeviation="2"/>
973
- <feComposite in2="hardAlpha" operator="out"/>
974
- <feColorMatrix type="matrix" values="0 0 0 0 0.231373 0 0 0 0 0.270588 0 0 0 0 0.313726 0 0 0 0.1 0"/>
975
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_241_171"/>
976
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_241_171" result="shape"/>
977
- </filter>
978
- </defs>
979
- </svg>
980
- `;
981
-
982
- const ptcSvgBtnCss = ":host{cursor:pointer}:host(.block){display:block}:host(.inline){display:inline}:host(.inline-block){display:inline-block}:host(.flex){display:flex}:host(:focus-visible){outline:none}:host(.backarrow){margin:8px 8px 0px -2px}:focus-visible{outline:none}.svg-close svg .cls-1,.svg-close svg .cls-2{fill:none;stroke-width:2px}.svg-close svg .cls-1{stroke:var(--color-gray-10);stroke-linecap:square}.svg-close svg .cls-2{stroke:var(--color-gray-10)}.svg-close svg path{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}.svg-close svg .cls-1:first-child{-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close svg .cls-1:nth-child(2){-webkit-transform:translate(175.5px, 174.985px);-ms-transform:translate(175.5px, 174.985px);transform:translate(175.5px, 174.985px)}.svg-close svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 141.393px);-ms-transform:translate(215.5px, 141.393px);transform:translate(215.5px, 141.393px)}.svg-close svg .cls-1:nth-child(4){-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close:hover svg .cls-1:first-child{-webkit-transform:translate(175.5px, 162px);-ms-transform:translate(175.5px, 162px);transform:translate(175.5px, 162px)}.svg-close:hover svg .cls-1:nth-child(2){-webkit-transform:translate(149px, 174.985px);-ms-transform:translate(149px, 174.985px);transform:translate(149px, 174.985px)}.svg-close:hover svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 174px);-ms-transform:translate(215.5px, 174px);transform:translate(215.5px, 174px)}.svg-close:hover svg .cls-1:nth-child(4){-webkit-transform:translate(152.5px, 135.5px);-ms-transform:translate(152.5px, 135.5px);transform:translate(152.5px, 135.5px)}.svg-close.svg-close-white .cls-1{stroke:var(--color-white)}.slider-left,.slider-right{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}.slider-left svg .arrow,.slider-right svg .arrow{fill:var(--color-gray-10)}.slider-left:hover svg .arrow,.slider-right:hover svg .arrow{fill:var(--color-green-06)}.back-arrow{display:inline-block;fill:none;stroke-width:30px;stroke:var(--color-gray-10);stroke-linecap:square;height:10px;width:20px;position:relative;top:1px;text-align:center}@media only screen and (max-width: 1024px) and (min-width: 576px){:host(.back-arrow){margin:8px 8px 16px -2px}}";
983
-
984
- const PtcSvgBtn = class {
985
- constructor(hostRef) {
986
- registerInstance(this, hostRef);
987
- this.svgName = 'close';
988
- this.display = 'block';
989
- this.zIndex = undefined;
990
- this.styles = undefined;
991
- }
992
- render() {
993
- const classMap = this.getCssClassMap();
994
- return (h(Host, Object.assign({ class: classMap }, (this.zIndex !== undefined ? { style: { zIndex: this.zIndex } } : null)), this.styles && h("style", null, this.styles), !!this.svgName && this.svgName === 'close' ? h("div", { class: "svg-close", innerHTML: closeSvg }) : null, !!this.svgName && this.svgName === 'slider-left' ? h("div", { class: "slider-left", innerHTML: arrowSvgLeft }) : null, !!this.svgName && this.svgName === 'slider-right' ? h("div", { class: "slider-right", innerHTML: arrowSvgRight }) : null, !!this.svgName && this.svgName === 'back-arrow' ? h("div", { class: "back-arrow", innerHTML: backarrow }) : null, !!this.svgName && this.svgName === 'play' ? h("div", { class: "play", innerHTML: play }) : null));
995
- }
996
- getCssClassMap() {
997
- return {
998
- [this.display]: true,
999
- };
1000
- }
1001
- };
1002
- PtcSvgBtn.style = ptcSvgBtnCss;
1003
-
1004
- const ptcTitleCss = "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}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:4px}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}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-xxxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}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)}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.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.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 screen and (min-width: 769px){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.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.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}";
1005
-
1006
- const PtcTitle = class {
1007
- constructor(hostRef) {
1008
- registerInstance(this, hostRef);
1009
- this.isPlmHub = false;
1010
- this.type = 'h2';
1011
- this.textAlign = undefined;
1012
- this.upperline = 'dotted';
1013
- this.titleShadow = undefined;
1014
- this.titleColor = 'gray';
1015
- this.titleMargin = undefined;
1016
- this.titleWeight = undefined;
1017
- this.titleSize = undefined;
1018
- this.titleHeight = 'paragraph';
1019
- this.styles = undefined;
1020
- this.ellipsisLineCutoff = undefined;
1021
- this.titleDisplay = 'inline-block';
1022
- }
1023
- render() {
1024
- const classMap = this.getCssClassMap();
1025
- const cutOff = this.getLineCuttoff();
1026
- let TagType;
1027
- switch (this.type) {
1028
- case 'h1':
1029
- TagType = 'h1';
1030
- break;
1031
- case 'h3':
1032
- TagType = 'h3';
1033
- break;
1034
- case 'h4':
1035
- TagType = 'h4';
1036
- break;
1037
- case 'h5':
1038
- TagType = 'h5';
1039
- break;
1040
- case 'h6':
1041
- TagType = 'h6';
1042
- break;
1043
- default:
1044
- TagType = 'h2';
1045
- }
1046
- return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap }, h(TagType, { style: cutOff }, h("slot", null)))));
1047
- }
1048
- getCssClassMap() {
1049
- return {
1050
- [this.textAlign]: !!this.textAlign ? true : false,
1051
- [this.upperline]: true,
1052
- [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
1053
- [this.titleMargin]: !!this.titleMargin ? true : false,
1054
- [this.titleShadow]: !!this.titleShadow ? true : false,
1055
- [this.titleWeight]: !!this.titleWeight ? true : false,
1056
- [this.titleSize]: !!this.titleSize ? true : false,
1057
- [this.titleHeight]: !!this.titleHeight ? true : false,
1058
- [this.titleColor]: !!this.titleColor ? true : false,
1059
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
1060
- [this.titleDisplay]: !!this.titleDisplay ? true : false,
1061
- };
1062
- }
1063
- getLineCuttoff() {
1064
- let result;
1065
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
1066
- result = {
1067
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
1068
- };
1069
- }
1070
- return result;
1071
- }
1072
- };
775
+ const ptcTitleCss = "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}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:4px}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}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-xxxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}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)}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.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.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 screen and (min-width: 769px){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-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}";
776
+
777
+ const PtcTitle = class {
778
+ constructor(hostRef) {
779
+ registerInstance(this, hostRef);
780
+ this.isPlmHub = false;
781
+ this.type = 'h2';
782
+ this.textAlign = undefined;
783
+ this.upperline = 'dotted';
784
+ this.titleShadow = undefined;
785
+ this.titleColor = 'gray';
786
+ this.titleMargin = undefined;
787
+ this.titleWeight = undefined;
788
+ this.titleSize = undefined;
789
+ this.titleHeight = 'paragraph';
790
+ this.styles = undefined;
791
+ this.ellipsisLineCutoff = undefined;
792
+ this.titleDisplay = 'inline-block';
793
+ }
794
+ render() {
795
+ const classMap = this.getCssClassMap();
796
+ const cutOff = this.getLineCuttoff();
797
+ let TagType;
798
+ switch (this.type) {
799
+ case 'h1':
800
+ TagType = 'h1';
801
+ break;
802
+ case 'h3':
803
+ TagType = 'h3';
804
+ break;
805
+ case 'h4':
806
+ TagType = 'h4';
807
+ break;
808
+ case 'h5':
809
+ TagType = 'h5';
810
+ break;
811
+ case 'h6':
812
+ TagType = 'h6';
813
+ break;
814
+ default:
815
+ TagType = 'h2';
816
+ }
817
+ return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap }, h(TagType, { style: cutOff }, h("slot", null)))));
818
+ }
819
+ getCssClassMap() {
820
+ return {
821
+ [this.textAlign]: !!this.textAlign ? true : false,
822
+ [this.upperline]: true,
823
+ [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
824
+ [this.titleMargin]: !!this.titleMargin ? true : false,
825
+ [this.titleShadow]: !!this.titleShadow ? true : false,
826
+ [this.titleWeight]: !!this.titleWeight ? true : false,
827
+ [this.titleSize]: !!this.titleSize ? true : false,
828
+ [this.titleHeight]: !!this.titleHeight ? true : false,
829
+ [this.titleColor]: !!this.titleColor ? true : false,
830
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
831
+ [this.titleDisplay]: !!this.titleDisplay ? true : false,
832
+ };
833
+ }
834
+ getLineCuttoff() {
835
+ let result;
836
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
837
+ result = {
838
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
839
+ };
840
+ }
841
+ return result;
842
+ }
843
+ };
1073
844
  PtcTitle.style = ptcTitleCss;
1074
845
 
1075
846
  const ptcTooltipCss = ".sc-ptc-tooltip-h{position:relative}.inline.sc-ptc-tooltip-h{display:inline}.block.sc-ptc-tooltip-h{display:block}.text-ellipsis.sc-ptc-tooltip{position:relative;display:inline}.text-ellipsis.sc-ptc-tooltip:not(.truncated){z-index:auto !important}.z-auto.sc-ptc-tooltip{z-index:auto}.z-1.sc-ptc-tooltip{z-index:1}.z-2.sc-ptc-tooltip{z-index:2}.z-3.sc-ptc-tooltip{z-index:3}.z-999.sc-ptc-tooltip{z-index:999}.tooltip.sc-ptc-tooltip{position:absolute;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:auto;height:auto;visibility:hidden;text-align:left;text-shadow:none;white-space:normal}@media only screen and (min-width: 480px){.tooltip.sc-ptc-tooltip{width:273px}}.tooltip.danger.sc-ptc-tooltip{color:var(--color-red-07);font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-p);border:2px solid var(--color-red-07);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);padding:var(--ptc-element-spacing-06)}.tooltip.danger.sc-ptc-tooltip a.sc-ptc-tooltip{color:var(--color-blue-07)}.tooltip.bottom.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%)}.tooltip.bottom.sc-ptc-tooltip::after{top:1px;left:50%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.left.sc-ptc-tooltip{bottom:-12px;transform:translate(-80%, 100%)}.tooltip.left.sc-ptc-tooltip::after{top:1px;right:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.right.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%);right:0px}@-moz-document url-prefix(){.tooltip.right{right:unset !important;top:100px;transform:translate(170%, 50%) !important;height:fit-content}}.tooltip.right.sc-ptc-tooltip::after{top:1px;left:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.top.sc-ptc-tooltip{top:-8px;transform:translateY(-100%)}.tooltip.top.sc-ptc-tooltip::after{left:50%;bottom:1px;transform:translate(-50%, 100%);border:8px solid transparent;border-top:8px solid var(--color-gray-09)}.tooltip.bottom-right.sc-ptc-tooltip{bottom:-12px;transform:translate(-60%, 100%)}.tooltip.bottom-right.sc-ptc-tooltip::after{top:1px;left:75%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.danger.sc-ptc-tooltip::after{top:0;border-bottom:8px solid var(--color-red-07)}.truncated.sc-ptc-tooltip{cursor:help}.truncated.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.wrapper-content.sc-ptc-tooltip{display:inline-block;position:relative}.wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{width:auto;min-width:72px;max-width:273px}.wrapper-content.sc-ptc-tooltip .slot-content.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.tooltip.sc-ptc-tooltip::after{content:\"\";position:absolute}.ellipsis-by-line-boxing.sc-ptc-tooltip{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}";
1076
847
 
1077
- const PtcTooltip = class {
1078
- constructor(hostRef) {
1079
- registerInstance(this, hostRef);
1080
- this.textDisplay = 'inline';
1081
- this.maxLength = 45;
1082
- this.textLines = undefined;
1083
- this.description = 'This is a tooltip text placeholder';
1084
- this.zIndex = 'z-auto';
1085
- this.position = 'bottom';
1086
- this.styles = undefined;
1087
- this.mode = 'text-only';
1088
- this.theme = 'standard';
1089
- this.hideOnMobile = false;
1090
- this.isSmallScreen = undefined;
1091
- }
1092
- addTruncatedClass() {
1093
- const appRoot = this.el;
1094
- const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
1095
- text.forEach(t => {
1096
- t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
1097
- });
1098
- }
1099
- windowResize() {
1100
- this.verifiyScreenSize();
1101
- }
1102
- verifiyScreenSize() {
1103
- this.isSmallScreen = window.innerWidth < 768;
1104
- }
1105
- // Created this function to initialize the truncate function on specific elements like tabs
1106
- enableAddTruncatedClass(element) {
1107
- const allTabHeaders = document.querySelectorAll(element);
1108
- for (const element of Array.from(allTabHeaders)) {
1109
- let tabHeader = element;
1110
- if (tabHeader) {
1111
- tabHeader.addEventListener('click', () => {
1112
- setTimeout(() => {
1113
- this.addTruncatedClass();
1114
- }, 100);
1115
- });
1116
- }
1117
- }
1118
- }
1119
- componentWillLoad() {
1120
- this.verifiyScreenSize();
1121
- }
1122
- componentDidLoad() {
1123
- //this.addTruncatedClass();
1124
- setTimeout(() => {
1125
- this.addTruncatedClass();
1126
- }, 1000);
1127
- this.enableAddTruncatedClass('tab-header');
1128
- this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
1129
- document.addEventListener('readystatechange', () => {
1130
- if (document.readyState === 'complete') {
1131
- this.addTruncatedClass();
1132
- }
1133
- });
1134
- }
1135
- render() {
1136
- if (this.mode == 'wrapper') {
1137
- return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), h("div", { class: "wrapper-content" }, h("div", { class: "slot-content" }, h("slot", null)), h("div", { class: `tooltip ${this.position} ${this.theme}` }, h("slot", { name: "description" }), this.description))));
1138
- }
1139
- else {
1140
- const classMap = this.getCssClassMap();
1141
- const cutOff = this.getLineCuttoff();
1142
- let truncatedText = this.description.substring(0, this.maxLength);
1143
- if (this.description.length > this.maxLength) {
1144
- const lastSpace = truncatedText.lastIndexOf(' ');
1145
- truncatedText = truncatedText.substring(0, lastSpace);
1146
- truncatedText += '... ';
1147
- }
1148
- return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), (this.hideOnMobile && this.isSmallScreen) ? (h("div", null, this.description)) : (h("div", null, this.textLines > 0 && !!this.textLines ? (h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description)) : (h("div", { class: classMap }, truncatedText)), h("div", { class: `tooltip ${this.position} ${this.theme}` }, this.description)))));
1149
- }
1150
- }
1151
- getCssClassMap() {
1152
- return {
1153
- // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
1154
- ['text-ellipsis']: true,
1155
- [this.zIndex]: this.description.length > this.maxLength ? true : false,
1156
- ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
1157
- };
1158
- }
1159
- getLineCuttoff() {
1160
- let result;
1161
- if (this.textLines && this.textLines > 0) {
1162
- result = {
1163
- ['-webkit-line-clamp']: `${this.textLines}`,
1164
- };
1165
- }
1166
- return result;
1167
- }
1168
- get el() { return getElement(this); }
1169
- };
848
+ const PtcTooltip = class {
849
+ constructor(hostRef) {
850
+ registerInstance(this, hostRef);
851
+ this.textDisplay = 'inline';
852
+ this.maxLength = 45;
853
+ this.textLines = undefined;
854
+ this.description = 'This is a tooltip text placeholder';
855
+ this.zIndex = 'z-auto';
856
+ this.position = 'bottom';
857
+ this.styles = undefined;
858
+ this.mode = 'text-only';
859
+ this.theme = 'standard';
860
+ this.hideOnMobile = false;
861
+ this.isSmallScreen = undefined;
862
+ }
863
+ addTruncatedClass() {
864
+ const appRoot = this.el;
865
+ const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
866
+ text.forEach(t => {
867
+ t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
868
+ });
869
+ }
870
+ windowResize() {
871
+ this.verifiyScreenSize();
872
+ }
873
+ verifiyScreenSize() {
874
+ this.isSmallScreen = window.innerWidth < 768;
875
+ }
876
+ // Created this function to initialize the truncate function on specific elements like tabs
877
+ enableAddTruncatedClass(element) {
878
+ const allTabHeaders = document.querySelectorAll(element);
879
+ for (const element of Array.from(allTabHeaders)) {
880
+ let tabHeader = element;
881
+ if (tabHeader) {
882
+ tabHeader.addEventListener('click', () => {
883
+ setTimeout(() => {
884
+ this.addTruncatedClass();
885
+ }, 100);
886
+ });
887
+ }
888
+ }
889
+ }
890
+ componentWillLoad() {
891
+ this.verifiyScreenSize();
892
+ }
893
+ componentDidLoad() {
894
+ //this.addTruncatedClass();
895
+ setTimeout(() => {
896
+ this.addTruncatedClass();
897
+ }, 1000);
898
+ this.enableAddTruncatedClass('tab-header');
899
+ this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
900
+ document.addEventListener('readystatechange', () => {
901
+ if (document.readyState === 'complete') {
902
+ this.addTruncatedClass();
903
+ }
904
+ });
905
+ }
906
+ render() {
907
+ if (this.mode == 'wrapper') {
908
+ return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), h("div", { class: "wrapper-content" }, h("div", { class: "slot-content" }, h("slot", null)), h("div", { class: `tooltip ${this.position} ${this.theme}` }, h("slot", { name: "description" }), this.description))));
909
+ }
910
+ else {
911
+ const classMap = this.getCssClassMap();
912
+ const cutOff = this.getLineCuttoff();
913
+ let truncatedText = this.description.substring(0, this.maxLength);
914
+ if (this.description.length > this.maxLength) {
915
+ const lastSpace = truncatedText.lastIndexOf(' ');
916
+ truncatedText = truncatedText.substring(0, lastSpace);
917
+ truncatedText += '... ';
918
+ }
919
+ return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), (this.hideOnMobile && this.isSmallScreen) ? (h("div", null, this.description)) : (h("div", null, this.textLines > 0 && !!this.textLines ? (h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description)) : (h("div", { class: classMap }, truncatedText)), h("div", { class: `tooltip ${this.position} ${this.theme}` }, this.description)))));
920
+ }
921
+ }
922
+ getCssClassMap() {
923
+ return {
924
+ // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
925
+ ['text-ellipsis']: true,
926
+ [this.zIndex]: this.description.length > this.maxLength ? true : false,
927
+ ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
928
+ };
929
+ }
930
+ getLineCuttoff() {
931
+ let result;
932
+ if (this.textLines && this.textLines > 0) {
933
+ result = {
934
+ ['-webkit-line-clamp']: `${this.textLines}`,
935
+ };
936
+ }
937
+ return result;
938
+ }
939
+ get el() { return getElement(this); }
940
+ };
1170
941
  PtcTooltip.style = ptcTooltipCss;
1171
942
 
1172
- export { BundleJumbotronExample as bundle_jumbotron_example, IconAsset as icon_asset, ListItem as list_item, MaxWidthContainer as max_width_container, PtcBackgroundVideo as ptc_background_video, PtcBreadcrumb as ptc_breadcrumb, PtcButton as ptc_button, PtcImg as ptc_img, PtcJumbotron as ptc_jumbotron, PtcModal as ptc_modal, PtcPara as ptc_para, PtcPicture as ptc_picture, PtcSpacer as ptc_spacer, PtcSvgBtn as ptc_svg_btn, PtcTitle as ptc_title, PtcTooltip as ptc_tooltip };
943
+ export { BundleJumbotronExample as bundle_jumbotron_example, IconAsset as icon_asset, ListItem as list_item, MaxWidthContainer as max_width_container, PtcBackgroundVideo as ptc_background_video, PtcBreadcrumb as ptc_breadcrumb, PtcButton as ptc_button, PtcImg as ptc_img, PtcJumbotron as ptc_jumbotron, PtcPara as ptc_para, PtcPicture as ptc_picture, PtcSpacer as ptc_spacer, PtcTitle as ptc_title, PtcTooltip as ptc_tooltip };