@ptcwebops/ptcw-design 1.5.2 → 1.5.3

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 (341) 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_14.cjs.entry.js +882 -882
  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 +21 -21
  7. package/dist/cjs/lottie-player.cjs.entry.js +354 -354
  8. package/dist/cjs/my-component.cjs.entry.js +15 -15
  9. package/dist/cjs/ptc-accordion-item.cjs.entry.js +83 -83
  10. package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
  11. package/dist/cjs/ptc-announcement.cjs.entry.js +50 -50
  12. package/dist/cjs/ptc-bio-card.cjs.entry.js +24 -24
  13. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +122 -122
  14. package/dist/cjs/ptc-card-content.cjs.entry.js +57 -57
  15. package/dist/cjs/ptc-card.cjs.entry.js +66 -66
  16. package/dist/cjs/ptc-checkbox.cjs.entry.js +50 -50
  17. package/dist/cjs/ptc-collapse-list.cjs.entry.js +353 -346
  18. package/dist/cjs/ptc-container.cjs.entry.js +33 -33
  19. package/dist/cjs/ptc-date.cjs.entry.js +50 -50
  20. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  21. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +47 -47
  22. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  23. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  24. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  25. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  26. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  27. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +43 -43
  28. package/dist/cjs/ptc-link.cjs.entry.js +35 -35
  29. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  30. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  31. package/dist/cjs/ptc-media-card.cjs.entry.js +58 -58
  32. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  33. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  34. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -53
  35. package/dist/cjs/ptc-modal.cjs.entry.js +149 -149
  36. package/dist/cjs/ptc-nav-card.cjs.entry.js +36 -36
  37. package/dist/cjs/ptc-nav-link.cjs.entry.js +36 -36
  38. package/dist/cjs/ptc-nav-slider.cjs.entry.js +83 -83
  39. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +18 -18
  40. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  41. package/dist/cjs/ptc-pagenation.cjs.entry.js +306 -306
  42. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -11
  43. package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
  44. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +124 -124
  45. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  46. package/dist/cjs/ptc-readmore.cjs.entry.js +73 -73
  47. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  48. package/dist/cjs/ptc-search-field.cjs.entry.js +71 -71
  49. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  50. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  51. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  52. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  53. package/dist/cjs/ptc-sticky-section.cjs.entry.js +27 -27
  54. package/dist/cjs/ptc-subnav-card.cjs.entry.js +15 -15
  55. package/dist/cjs/ptc-subnav.cjs.entry.js +21 -21
  56. package/dist/cjs/ptc-svg-btn.cjs.entry.js +95 -95
  57. package/dist/cjs/ptc-tab-list.cjs.entry.js +125 -125
  58. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  59. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  60. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +41 -41
  61. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  62. package/dist/cjs/sequential-bundle-example.cjs.entry.js +100 -100
  63. package/dist/cjs/sequential-bundle.cjs.entry.js +88 -88
  64. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  65. package/dist/cjs/tab-header.cjs.entry.js +64 -64
  66. package/dist/cjs/{utils-9eb22041.js → utils-416c94fe.js} +90 -90
  67. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  68. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  69. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  70. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  71. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  72. package/dist/collection/components/icon-asset/media/designer.svg +397 -397
  73. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  74. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  75. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  76. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -89
  77. package/dist/collection/components/list-item/list-item.js +144 -144
  78. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  79. package/dist/collection/components/max-width-container/max-width-container.js +105 -105
  80. package/dist/collection/components/my-component/my-component.css +3 -3
  81. package/dist/collection/components/my-component/my-component.js +82 -82
  82. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  83. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +58 -58
  84. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  85. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -91
  86. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  87. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +89 -89
  88. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +152 -152
  89. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  90. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  91. package/dist/collection/components/ptc-announcement/ptc-announcement.js +237 -237
  92. package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -200
  93. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
  94. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
  95. package/dist/collection/components/ptc-button/ptc-button.js +283 -283
  96. package/dist/collection/components/ptc-card/ptc-card.js +362 -362
  97. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  98. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  99. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +214 -214
  100. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  101. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +593 -586
  102. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  103. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  104. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  105. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  106. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +174 -174
  107. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  108. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  109. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  110. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  111. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  112. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
  113. package/dist/collection/components/ptc-img/ptc-img.js +311 -311
  114. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +349 -349
  115. package/dist/collection/components/ptc-link/ptc-link.js +209 -209
  116. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  117. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  118. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  119. package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
  120. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  121. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  122. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
  123. package/dist/collection/components/ptc-modal/ptc-modal.js +389 -389
  124. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  125. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  126. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
  127. package/dist/collection/components/ptc-para/ptc-para.js +242 -242
  128. package/dist/collection/components/ptc-picture/ptc-picture.js +453 -453
  129. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  130. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  131. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  132. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  133. package/dist/collection/components/ptc-readmore/ptc-readmore.js +298 -298
  134. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  135. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  136. package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
  137. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  138. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  139. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  140. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  141. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  142. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  143. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  144. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +46 -46
  145. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  146. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +177 -177
  147. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  148. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  149. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +180 -180
  150. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  151. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +322 -322
  152. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  153. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +114 -114
  154. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +126 -126
  155. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +85 -85
  156. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +47 -47
  157. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
  158. package/dist/collection/components/tab-content/tab-content.js +84 -84
  159. package/dist/collection/components/tab-header/tab-header.js +182 -182
  160. package/dist/collection/index.js +1 -1
  161. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  162. package/dist/collection/media/svg-imgs/close.svg +10 -10
  163. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  164. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  165. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  166. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  167. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  168. package/dist/collection/media/svg-imgs/union.svg +3 -3
  169. package/dist/collection/utils/component.js +3 -3
  170. package/dist/collection/utils/interfaces.js +11 -11
  171. package/dist/collection/utils/utils.js +92 -92
  172. package/dist/custom-elements/index.js +4894 -4887
  173. package/dist/esm/bundle-example.entry.js +30 -30
  174. package/dist/esm/bundle-jumbotron-example_14.entry.js +882 -882
  175. package/dist/esm/dropdown-item.entry.js +10 -10
  176. package/dist/esm/dynamic-box-bundle.entry.js +25 -25
  177. package/dist/esm/innovator-toggle-container.entry.js +21 -21
  178. package/dist/esm/lottie-player.entry.js +354 -354
  179. package/dist/esm/my-component.entry.js +15 -15
  180. package/dist/esm/polyfills/core-js.js +0 -0
  181. package/dist/esm/polyfills/dom.js +0 -0
  182. package/dist/esm/polyfills/es5-html-element.js +0 -0
  183. package/dist/esm/polyfills/index.js +0 -0
  184. package/dist/esm/polyfills/system.js +0 -0
  185. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  186. package/dist/esm/ptc-accordion.entry.js +35 -35
  187. package/dist/esm/ptc-announcement.entry.js +50 -50
  188. package/dist/esm/ptc-bio-card.entry.js +24 -24
  189. package/dist/esm/ptc-card-bottom_3.entry.js +122 -122
  190. package/dist/esm/ptc-card-content.entry.js +57 -57
  191. package/dist/esm/ptc-card.entry.js +66 -66
  192. package/dist/esm/ptc-checkbox.entry.js +50 -50
  193. package/dist/esm/ptc-collapse-list.entry.js +353 -346
  194. package/dist/esm/ptc-container.entry.js +33 -33
  195. package/dist/esm/ptc-date.entry.js +50 -50
  196. package/dist/esm/ptc-dropdown.entry.js +64 -64
  197. package/dist/esm/ptc-dynamic-card.entry.js +47 -47
  198. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  199. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  200. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  201. package/dist/esm/ptc-hero.entry.js +18 -18
  202. package/dist/esm/ptc-icon-list.entry.js +21 -21
  203. package/dist/esm/ptc-icon-minimize.entry.js +43 -43
  204. package/dist/esm/ptc-link.entry.js +35 -35
  205. package/dist/esm/ptc-list.entry.js +49 -49
  206. package/dist/esm/ptc-lottie.entry.js +10 -10
  207. package/dist/esm/ptc-media-card.entry.js +58 -58
  208. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  209. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  210. package/dist/esm/ptc-mobile-select.entry.js +53 -53
  211. package/dist/esm/ptc-modal.entry.js +149 -149
  212. package/dist/esm/ptc-nav-card.entry.js +36 -36
  213. package/dist/esm/ptc-nav-link.entry.js +36 -36
  214. package/dist/esm/ptc-nav-slider.entry.js +83 -83
  215. package/dist/esm/ptc-nav-submenu.entry.js +18 -18
  216. package/dist/esm/ptc-overlay.entry.js +23 -23
  217. package/dist/esm/ptc-pagenation.entry.js +306 -306
  218. package/dist/esm/ptc-previous-url.entry.js +11 -11
  219. package/dist/esm/ptc-pricing-block.entry.js +20 -20
  220. package/dist/esm/ptc-pricing-tabs.entry.js +124 -124
  221. package/dist/esm/ptc-quote.entry.js +23 -23
  222. package/dist/esm/ptc-readmore.entry.js +73 -73
  223. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  224. package/dist/esm/ptc-search-field.entry.js +71 -71
  225. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  226. package/dist/esm/ptc-social-share.entry.js +59 -59
  227. package/dist/esm/ptc-span.entry.js +18 -18
  228. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  229. package/dist/esm/ptc-sticky-section.entry.js +27 -27
  230. package/dist/esm/ptc-subnav-card.entry.js +15 -15
  231. package/dist/esm/ptc-subnav.entry.js +21 -21
  232. package/dist/esm/ptc-svg-btn.entry.js +95 -95
  233. package/dist/esm/ptc-tab-list.entry.js +125 -125
  234. package/dist/esm/ptc-tab.entry.js +20 -20
  235. package/dist/esm/ptc-tabs.entry.js +47 -47
  236. package/dist/esm/ptc-text-copy-with-background.entry.js +41 -41
  237. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  238. package/dist/esm/sequential-bundle-example.entry.js +100 -100
  239. package/dist/esm/sequential-bundle.entry.js +88 -88
  240. package/dist/esm/tab-content.entry.js +27 -27
  241. package/dist/esm/tab-header.entry.js +64 -64
  242. package/dist/esm/{utils-38decc43.js → utils-f937097d.js} +90 -90
  243. package/dist/ptcw-design/media/brands.svg +1381 -1381
  244. package/dist/ptcw-design/media/designer.svg +397 -397
  245. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  246. package/dist/ptcw-design/media/regular.svg +463 -463
  247. package/dist/ptcw-design/media/solid.svg +3013 -3013
  248. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  249. package/dist/ptcw-design/p-2414dc2a.entry.js +1 -0
  250. package/dist/ptcw-design/{p-4702f4e4.entry.js → p-8a6acf0d.entry.js} +1 -1
  251. package/dist/ptcw-design/{p-469482ba.entry.js → p-ed0c7f10.entry.js} +1 -1
  252. package/dist/ptcw-design/{p-c9bd6b20.entry.js → p-face0c41.entry.js} +1 -1
  253. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  254. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  255. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  256. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  257. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -17
  258. package/dist/types/components/list-item/list-item.d.ts +16 -16
  259. package/dist/types/components/max-width-container/max-width-container.d.ts +11 -11
  260. package/dist/types/components/my-component/my-component.d.ts +16 -16
  261. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +10 -10
  262. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  263. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  264. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  265. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  266. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  267. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  268. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -45
  269. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
  270. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
  271. package/dist/types/components/ptc-button/ptc-button.d.ts +60 -60
  272. package/dist/types/components/ptc-card/ptc-card.d.ts +71 -71
  273. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  274. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  275. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +24 -24
  276. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  277. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  278. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  279. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  280. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  281. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +23 -23
  282. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  283. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  284. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  285. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  286. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  287. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
  288. package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
  289. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +25 -25
  290. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  291. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  292. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  293. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  294. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  295. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  296. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  297. package/dist/types/components/ptc-modal/ptc-modal.d.ts +67 -67
  298. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  299. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  300. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
  301. package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
  302. package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
  303. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  304. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  305. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  306. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  307. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +57 -57
  308. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  309. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
  310. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  311. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  312. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  313. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  314. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  315. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  316. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  317. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  318. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +19 -19
  319. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  320. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  321. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +34 -34
  322. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  323. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +55 -55
  324. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  325. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +21 -21
  326. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  327. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +18 -18
  328. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +7 -7
  329. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
  330. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  331. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  332. package/dist/types/components.d.ts +130 -130
  333. package/dist/types/global.d.ts +1072 -1072
  334. package/dist/types/index.d.ts +1 -1
  335. package/dist/types/utils/component.d.ts +1 -1
  336. package/dist/types/utils/interfaces.d.ts +31 -31
  337. package/dist/types/utils/utils.d.ts +5 -5
  338. package/package.json +63 -63
  339. package/readme.md +18 -18
  340. package/dist/ptcw-design/p-1bd6ad59.entry.js +0 -1
  341. /package/dist/ptcw-design/{p-36665caa.js → p-ea875d9e.js} +0 -0
@@ -6,942 +6,942 @@ const index = require('./index-88135a6b.js');
6
6
 
7
7
  const bundleJumbotronExampleCss = ":host{display:block}";
8
8
 
9
- const BundleJumbotronExample = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.jumbotron = 'light';
13
- this.isIframe = false;
14
- }
15
- render() {
16
- let $pngSrc;
17
- let $gifSrc;
18
- let $bgVideoSrc;
19
- let $bgSrc;
20
- let $popupVideo;
21
- //replace dummy data
22
- if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
23
- $bgSrc =
24
- 'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80';
25
- }
26
- else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
27
- //$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
28
- // if is iframe use src from iframe
29
- $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';
30
- }
31
- else if (this.jumbotron === 'png') {
32
- $pngSrc =
33
- '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';
34
- }
35
- else if (this.jumbotron === 'gif') {
36
- $gifSrc = 'https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif';
37
- }
38
- //Optional: set $popupVideo
39
- //$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
40
- return (index.h(index.Host, null, index.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)
41
- ,
42
- "is-iframe": this.isIframe }), index.h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), index.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"), index.h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), index.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
43
- ,
44
- "title-color": "gray" //if dark, dark-video then "gray-1"
45
- }, index.h("ptc-tooltip", { "text-lines": "3", description: "Sed ut perspiciatis unde omnis iste natus", position: "right" })), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
46
- }
47
- };
9
+ const BundleJumbotronExample = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.jumbotron = 'light';
13
+ this.isIframe = false;
14
+ }
15
+ render() {
16
+ let $pngSrc;
17
+ let $gifSrc;
18
+ let $bgVideoSrc;
19
+ let $bgSrc;
20
+ let $popupVideo;
21
+ //replace dummy data
22
+ if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
23
+ $bgSrc =
24
+ 'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80';
25
+ }
26
+ else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
27
+ //$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
28
+ // if is iframe use src from iframe
29
+ $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';
30
+ }
31
+ else if (this.jumbotron === 'png') {
32
+ $pngSrc =
33
+ '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';
34
+ }
35
+ else if (this.jumbotron === 'gif') {
36
+ $gifSrc = 'https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif';
37
+ }
38
+ //Optional: set $popupVideo
39
+ //$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
40
+ return (index.h(index.Host, null, index.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)
41
+ ,
42
+ "is-iframe": this.isIframe }), index.h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), index.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"), index.h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), index.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
43
+ ,
44
+ "title-color": "gray" //if dark, dark-video then "gray-1"
45
+ }, index.h("ptc-tooltip", { "text-lines": "3", description: "Sed ut perspiciatis unde omnis iste natus", position: "right" })), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), index.h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
46
+ }
47
+ };
48
48
  BundleJumbotronExample.style = bundleJumbotronExampleCss;
49
49
 
50
50
  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}";
51
51
 
52
- const IconAsset = class {
53
- constructor(hostRef) {
54
- index.registerInstance(this, hostRef);
55
- this.regularSprite = index.getAssetPath('./media/regular.svg');
56
- this.solidSprite = index.getAssetPath('./media/solid.svg');
57
- this.brandSprite = index.getAssetPath('./media/brands.svg');
58
- this.ptcSprite = index.getAssetPath('./media/designer.svg');
59
- this.name = undefined;
60
- this.size = 'xx-small';
61
- this.type = 'regular';
62
- this.spin = '';
63
- this.pulse = '';
64
- this.color = 'default';
65
- this.isMobileSelect = undefined;
66
- this.injectedStyle = undefined;
67
- }
68
- render() {
69
- const classMap = this.getCssClassMap();
70
- if (this.type == 'brands') {
71
- return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
72
- }
73
- else if (this.type == 'solid') {
74
- return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
75
- }
76
- else if (this.type == 'ptc') {
77
- return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
78
- }
79
- else {
80
- return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
81
- }
82
- }
83
- getCssClassMap() {
84
- return {
85
- [this.size]: true,
86
- [this.spin]: true,
87
- [this.pulse]: true,
88
- [this.color]: true,
89
- ['ismobileselect']: this.isMobileSelect ? true : false
90
- };
91
- }
92
- static get assetsDirs() { return ["media"]; }
93
- };
52
+ const IconAsset = class {
53
+ constructor(hostRef) {
54
+ index.registerInstance(this, hostRef);
55
+ this.regularSprite = index.getAssetPath('./media/regular.svg');
56
+ this.solidSprite = index.getAssetPath('./media/solid.svg');
57
+ this.brandSprite = index.getAssetPath('./media/brands.svg');
58
+ this.ptcSprite = index.getAssetPath('./media/designer.svg');
59
+ this.name = undefined;
60
+ this.size = 'xx-small';
61
+ this.type = 'regular';
62
+ this.spin = '';
63
+ this.pulse = '';
64
+ this.color = 'default';
65
+ this.isMobileSelect = undefined;
66
+ this.injectedStyle = undefined;
67
+ }
68
+ render() {
69
+ const classMap = this.getCssClassMap();
70
+ if (this.type == 'brands') {
71
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
72
+ }
73
+ else if (this.type == 'solid') {
74
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
75
+ }
76
+ else if (this.type == 'ptc') {
77
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
78
+ }
79
+ else {
80
+ return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
81
+ }
82
+ }
83
+ getCssClassMap() {
84
+ return {
85
+ [this.size]: true,
86
+ [this.spin]: true,
87
+ [this.pulse]: true,
88
+ [this.color]: true,
89
+ ['ismobileselect']: this.isMobileSelect ? true : false
90
+ };
91
+ }
92
+ static get assetsDirs() { return ["media"]; }
93
+ };
94
94
  IconAsset.style = iconAssetCss;
95
95
 
96
96
  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)}";
97
97
 
98
- const ListItem = class {
99
- constructor(hostRef) {
100
- index.registerInstance(this, hostRef);
101
- this.listType = 'list-primary';
102
- this.linkHref = undefined;
103
- this.flushBefore = false;
104
- this.linkTarget = '_self';
105
- this.color = undefined;
106
- this.styles = undefined;
107
- }
108
- render() {
109
- const classMap = this.getCssClassMap();
110
- return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})), index.h("slot", null))) : (index.h("slot", null)))));
111
- }
112
- getCssClassMap() {
113
- return {
114
- [this.listType]: true,
115
- ['flush-before']: this.flushBefore ? true : false,
116
- [this.color]: !!this.color ? true : false,
117
- };
118
- }
119
- };
98
+ const ListItem = class {
99
+ constructor(hostRef) {
100
+ index.registerInstance(this, hostRef);
101
+ this.listType = 'list-primary';
102
+ this.linkHref = undefined;
103
+ this.flushBefore = false;
104
+ this.linkTarget = '_self';
105
+ this.color = undefined;
106
+ this.styles = undefined;
107
+ }
108
+ render() {
109
+ const classMap = this.getCssClassMap();
110
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})), index.h("slot", null))) : (index.h("slot", null)))));
111
+ }
112
+ getCssClassMap() {
113
+ return {
114
+ [this.listType]: true,
115
+ ['flush-before']: this.flushBefore ? true : false,
116
+ [this.color]: !!this.color ? true : false,
117
+ };
118
+ }
119
+ };
120
120
  ListItem.style = listItemCss;
121
121
 
122
122
  const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
123
123
 
124
- const MaxWidthContainer = class {
125
- constructor(hostRef) {
126
- index.registerInstance(this, hostRef);
127
- this.maxWidth = undefined;
128
- this.breakpoint = 768;
129
- this.contentAlign = 'center';
130
- }
131
- componentDidLoad() {
132
- this.handleResize();
133
- window.addEventListener('resize', this.handleResize.bind(this));
134
- }
135
- disconnectedCallback() {
136
- window.removeEventListener('resize', this.handleResize);
137
- }
138
- render() {
139
- const classMap = this.getCssClassMap();
140
- return (index.h(index.Host, { class: classMap }, index.h("slot", null)));
141
- }
142
- getCssClassMap() {
143
- return {
144
- [this.contentAlign]: true,
145
- };
146
- }
147
- handleResize() {
148
- // const selectedContainer = this.el.querySelector('.max-width-container');
149
- if (this.el) {
150
- if (window.innerWidth >= this.breakpoint) {
151
- this.el.style.maxWidth = `${this.maxWidth}px`;
152
- }
153
- else {
154
- this.el.style.maxWidth = 'initial';
155
- }
156
- }
157
- }
158
- get el() { return index.getElement(this); }
159
- };
124
+ const MaxWidthContainer = class {
125
+ constructor(hostRef) {
126
+ index.registerInstance(this, hostRef);
127
+ this.maxWidth = undefined;
128
+ this.breakpoint = 768;
129
+ this.contentAlign = 'center';
130
+ }
131
+ componentDidLoad() {
132
+ this.handleResize();
133
+ window.addEventListener('resize', this.handleResize.bind(this));
134
+ }
135
+ disconnectedCallback() {
136
+ window.removeEventListener('resize', this.handleResize);
137
+ }
138
+ render() {
139
+ const classMap = this.getCssClassMap();
140
+ return (index.h(index.Host, { class: classMap }, index.h("slot", null)));
141
+ }
142
+ getCssClassMap() {
143
+ return {
144
+ [this.contentAlign]: true,
145
+ };
146
+ }
147
+ handleResize() {
148
+ // const selectedContainer = this.el.querySelector('.max-width-container');
149
+ if (this.el) {
150
+ if (window.innerWidth >= this.breakpoint) {
151
+ this.el.style.maxWidth = `${this.maxWidth}px`;
152
+ }
153
+ else {
154
+ this.el.style.maxWidth = 'initial';
155
+ }
156
+ }
157
+ }
158
+ get el() { return index.getElement(this); }
159
+ };
160
160
  MaxWidthContainer.style = maxWidthContainerCss;
161
161
 
162
162
  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}}";
163
163
 
164
- const PtcBackgroundVideo = class {
165
- constructor(hostRef) {
166
- index.registerInstance(this, hostRef);
167
- this.videoSrc = undefined;
168
- this.posterSrc = undefined;
169
- this.overlay = true;
170
- this.playButtonTitle = undefined;
171
- this.pauseButtonTitle = undefined;
172
- this.paused = undefined;
173
- this.type = 'default';
174
- this.isIframe = false;
175
- }
176
- // componentDidLoad() {
177
- // if(this.isIframe){
178
- // const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
179
- // const iframeDoc = iframe.contentDocument
180
- // const iframeVideo = iframeDoc.querySelector('video');
181
- // console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
182
- // iframeVideo.style.objectFit = 'cover';
183
- // }
184
- // }
185
- // @Method()
186
- // async toggleVideo() {
187
- // // show a prompt
188
- // this.paused = !this.paused;
189
- // let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
190
- // if (video) {
191
- // if (this.paused) {
192
- // video.pause();
193
- // } else {
194
- // video.play().catch(z => console.error(z));
195
- // }
196
- // }
197
- // console.log('Hello, I am a publish method from ptc-background-video!');
198
- // }
199
- componentWillLoad() {
200
- this.paused = false;
201
- }
202
- render() {
203
- const videoContent = this.isIframe ? (index.h("div", { class: "iframe-wrapper" }, index.h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (index.h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
204
- return (index.h(index.Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (index.h("div", { class: "play-button" }, this.paused && (index.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;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }" }, index.h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (index.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;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e) }, index.h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? index.h("div", { class: "video-overlay" }) : '', this.type == 'default' ? index.h("slot", null) : ''));
205
- }
206
- toggleVideoPlay(e) {
207
- e.preventDefault();
208
- this.paused = !this.paused;
209
- let video = this.el.shadowRoot.querySelector('video');
210
- if (video) {
211
- if (this.paused) {
212
- video.pause();
213
- }
214
- else {
215
- video.play().catch(z => console.error(z));
216
- }
217
- }
218
- }
219
- get el() { return index.getElement(this); }
220
- };
164
+ const PtcBackgroundVideo = class {
165
+ constructor(hostRef) {
166
+ index.registerInstance(this, hostRef);
167
+ this.videoSrc = undefined;
168
+ this.posterSrc = undefined;
169
+ this.overlay = true;
170
+ this.playButtonTitle = undefined;
171
+ this.pauseButtonTitle = undefined;
172
+ this.paused = undefined;
173
+ this.type = 'default';
174
+ this.isIframe = false;
175
+ }
176
+ // componentDidLoad() {
177
+ // if(this.isIframe){
178
+ // const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
179
+ // const iframeDoc = iframe.contentDocument
180
+ // const iframeVideo = iframeDoc.querySelector('video');
181
+ // console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
182
+ // iframeVideo.style.objectFit = 'cover';
183
+ // }
184
+ // }
185
+ // @Method()
186
+ // async toggleVideo() {
187
+ // // show a prompt
188
+ // this.paused = !this.paused;
189
+ // let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
190
+ // if (video) {
191
+ // if (this.paused) {
192
+ // video.pause();
193
+ // } else {
194
+ // video.play().catch(z => console.error(z));
195
+ // }
196
+ // }
197
+ // console.log('Hello, I am a publish method from ptc-background-video!');
198
+ // }
199
+ componentWillLoad() {
200
+ this.paused = false;
201
+ }
202
+ render() {
203
+ const videoContent = this.isIframe ? (index.h("div", { class: "iframe-wrapper" }, index.h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (index.h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
204
+ return (index.h(index.Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (index.h("div", { class: "play-button" }, this.paused && (index.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;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }" }, index.h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (index.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;}" }, index.h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e) }, index.h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? index.h("div", { class: "video-overlay" }) : '', this.type == 'default' ? index.h("slot", null) : ''));
205
+ }
206
+ toggleVideoPlay(e) {
207
+ e.preventDefault();
208
+ this.paused = !this.paused;
209
+ let video = this.el.shadowRoot.querySelector('video');
210
+ if (video) {
211
+ if (this.paused) {
212
+ video.pause();
213
+ }
214
+ else {
215
+ video.play().catch(z => console.error(z));
216
+ }
217
+ }
218
+ }
219
+ get el() { return index.getElement(this); }
220
+ };
221
221
  PtcBackgroundVideo.style = ptcBackgroundVideoCss;
222
222
 
223
223
  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}";
224
224
 
225
- const PtcBreadcrumb = class {
226
- constructor(hostRef) {
227
- index.registerInstance(this, hostRef);
228
- this.position = undefined;
229
- this.removeTopMargin = false;
230
- this.color = 'white';
231
- this.styles = undefined;
232
- }
233
- render() {
234
- const classMap = this.getCssClassMap();
235
- return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("list-item", { listType: "breadcrumb", flushBefore: true, "link-href": "https://www.ptc.com" }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })), index.h("slot", null)));
236
- }
237
- getCssClassMap() {
238
- return {
239
- [this.position]: !!this.position && this.position !== undefined ? true : false,
240
- ['remove-top-margin']: this.removeTopMargin ? true : false,
241
- };
242
- }
243
- };
225
+ const PtcBreadcrumb = class {
226
+ constructor(hostRef) {
227
+ index.registerInstance(this, hostRef);
228
+ this.position = undefined;
229
+ this.removeTopMargin = false;
230
+ this.color = 'white';
231
+ this.styles = undefined;
232
+ }
233
+ render() {
234
+ const classMap = this.getCssClassMap();
235
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("list-item", { listType: "breadcrumb", flushBefore: true, "link-href": "https://www.ptc.com" }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color })), index.h("slot", null)));
236
+ }
237
+ getCssClassMap() {
238
+ return {
239
+ [this.position]: !!this.position && this.position !== undefined ? true : false,
240
+ ['remove-top-margin']: this.removeTopMargin ? true : false,
241
+ };
242
+ }
243
+ };
244
244
  PtcBreadcrumb.style = ptcBreadcrumbCss;
245
245
 
246
246
  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}";
247
247
 
248
- const PtcButton = class {
249
- constructor(hostRef) {
250
- index.registerInstance(this, hostRef);
251
- this.clickEvent = index.createEvent(this, "clickEvent", 7);
252
- this.disabled = false;
253
- this.active = false;
254
- this.type = 'button';
255
- this.color = 'ptc-primary';
256
- this.iconAnimation = '';
257
- this.iconPosition = 'icon-right';
258
- this.linkHref = undefined;
259
- this.linkTitle = undefined;
260
- this.target = '_self';
261
- this.rel = undefined;
262
- this.tabNav = 0;
263
- this.styles = undefined;
264
- }
265
- clickEventHandler() {
266
- this.clickEvent.emit();
267
- }
268
- render() {
269
- const classMap = this.getCssClassMap();
270
- const Tag = !!this.linkHref ? 'a' : 'button';
271
- return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
272
- }
273
- getCssClassMap() {
274
- return {
275
- [this.color]: true,
276
- [this.iconAnimation]: true,
277
- [this.iconPosition]: true,
278
- ['disabled']: this.disabled ? true : false,
279
- ['active']: this.active ? true : false,
280
- };
281
- }
282
- };
248
+ const PtcButton = class {
249
+ constructor(hostRef) {
250
+ index.registerInstance(this, hostRef);
251
+ this.clickEvent = index.createEvent(this, "clickEvent", 7);
252
+ this.disabled = false;
253
+ this.active = false;
254
+ this.type = 'button';
255
+ this.color = 'ptc-primary';
256
+ this.iconAnimation = '';
257
+ this.iconPosition = 'icon-right';
258
+ this.linkHref = undefined;
259
+ this.linkTitle = undefined;
260
+ this.target = '_self';
261
+ this.rel = undefined;
262
+ this.tabNav = 0;
263
+ this.styles = undefined;
264
+ }
265
+ clickEventHandler() {
266
+ this.clickEvent.emit();
267
+ }
268
+ render() {
269
+ const classMap = this.getCssClassMap();
270
+ const Tag = !!this.linkHref ? 'a' : 'button';
271
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
272
+ }
273
+ getCssClassMap() {
274
+ return {
275
+ [this.color]: true,
276
+ [this.iconAnimation]: true,
277
+ [this.iconPosition]: true,
278
+ ['disabled']: this.disabled ? true : false,
279
+ ['active']: this.active ? true : false,
280
+ };
281
+ }
282
+ };
283
283
  PtcButton.style = ptcButtonCss;
284
284
 
285
- let ResponsiveBgVariables = {
286
- envs: ['xs', 'sm', 'md', 'lg'],
287
- selector: '.ptc-img',
288
- interval: 250
289
- };
290
- let ResponsivePictureVariables = {
291
- envs: ['xs', 'sm', 'md', 'lg'],
292
- selector: '.ptc-picture',
293
- interval: 250
285
+ let ResponsiveBgVariables = {
286
+ envs: ['xs', 'sm', 'md', 'lg'],
287
+ selector: '.ptc-img',
288
+ interval: 250
289
+ };
290
+ let ResponsivePictureVariables = {
291
+ envs: ['xs', 'sm', 'md', 'lg'],
292
+ selector: '.ptc-picture',
293
+ interval: 250
294
294
  };
295
295
 
296
296
  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}}";
297
297
 
298
- const PtcImg = class {
299
- constructor(hostRef) {
300
- index.registerInstance(this, hostRef);
301
- this.sizeXs = '510x340';
302
- this.sizeSm = '1240x496';
303
- this.sizeMd = '1366x500';
304
- this.sizeLg = '1920x1080';
305
- this.imgUrl = undefined;
306
- this.imageType = 'smart-bg';
307
- this.borderRadius = '';
308
- this.loadMode = 'lazy-bg';
309
- this.styles = undefined;
310
- }
311
- /**
312
- * Image Z Index
313
- */
314
- // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
315
- WindowResize() {
316
- this.setResponsiveBg();
317
- }
318
- render() {
319
- const classMap = this.getCssClassMap();
320
- return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.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' ? index.h("slot", null) : null)));
321
- }
322
- componentDidLoad() {
323
- this.addIntersectionObserver();
324
- this.setResponsiveBg();
325
- }
326
- componentWillUpdate() {
327
- this.addIntersectionObserver();
328
- this.setResponsiveBg();
329
- }
330
- //responsive image
331
- setResponsiveBg() {
332
- // Define local variables
333
- let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
334
- // Loop through all target elements
335
- for (var i = 0, len = backgrounds.length; i < len; i++) {
336
- // Set current variables
337
- el = backgrounds[i];
338
- elData = el.getAttribute('data-' + currentBreakpoint);
339
- // If the data attribute exists, set the background
340
- if (elData !== null) {
341
- el.style.backgroundImage = "url('" + elData + "')";
342
- }
343
- else {
344
- if (typeof console == 'object') {
345
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
346
- }
347
- }
348
- }
349
- }
350
- //lazy loading
351
- addIntersectionObserver() {
352
- if (!this.imgUrl) {
353
- console.log('no image!');
354
- return;
355
- }
356
- if ('IntersectionObserver' in window) {
357
- let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
358
- let bgObserver = new IntersectionObserver(entries => {
359
- entries.forEach(entry => {
360
- if (entry.isIntersecting) {
361
- const image = entry.target;
362
- image.classList.remove('lazy-bg');
363
- bgObserver.unobserve(image);
364
- }
365
- });
366
- });
367
- lazyLoadBgs.forEach(image => {
368
- bgObserver.observe(image);
369
- });
370
- }
371
- }
372
- getCssClassMap() {
373
- return {
374
- [this.imageType]: true,
375
- 'ptc-img': true,
376
- [this.borderRadius]: true,
377
- [this.loadMode]: true,
378
- // [this.imageZIndex] : true
379
- };
380
- }
381
- getCurrentBreakPoints() {
382
- // Define local variables
383
- let doc = window.document, temp = doc.createElement('div'), env;
384
- // Append test node
385
- doc.body.appendChild(temp);
386
- // Loop through breakpoints
387
- for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
388
- env = ResponsiveBgVariables.envs[i];
389
- // Add classes
390
- temp.className = 'hidden-' + env;
391
- // Found breakpoint
392
- if (temp.offsetParent === null) {
393
- // Remove our test node
394
- doc.body.removeChild(temp);
395
- // Return current breakpoint
396
- return env;
397
- }
398
- }
399
- // Breakpoint not found, try fallback
400
- doc.body.removeChild(temp);
401
- return this.getFallbackBreakpoint();
402
- }
403
- getFallbackBreakpoint() {
404
- if (window.matchMedia('(min-width: 992px)').matches) {
405
- return 'lg';
406
- }
407
- else if (window.matchMedia('(min-width: 768px)').matches) {
408
- return 'md';
409
- }
410
- else if (window.matchMedia('(min-width: 576px)').matches) {
411
- return 'sm';
412
- }
413
- else {
414
- return 'xs';
415
- }
416
- }
417
- get el() { return index.getElement(this); }
418
- };
298
+ const PtcImg = class {
299
+ constructor(hostRef) {
300
+ index.registerInstance(this, hostRef);
301
+ this.sizeXs = '510x340';
302
+ this.sizeSm = '1240x496';
303
+ this.sizeMd = '1366x500';
304
+ this.sizeLg = '1920x1080';
305
+ this.imgUrl = undefined;
306
+ this.imageType = 'smart-bg';
307
+ this.borderRadius = '';
308
+ this.loadMode = 'lazy-bg';
309
+ this.styles = undefined;
310
+ }
311
+ /**
312
+ * Image Z Index
313
+ */
314
+ // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
315
+ WindowResize() {
316
+ this.setResponsiveBg();
317
+ }
318
+ render() {
319
+ const classMap = this.getCssClassMap();
320
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.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' ? index.h("slot", null) : null)));
321
+ }
322
+ componentDidLoad() {
323
+ this.addIntersectionObserver();
324
+ this.setResponsiveBg();
325
+ }
326
+ componentWillUpdate() {
327
+ this.addIntersectionObserver();
328
+ this.setResponsiveBg();
329
+ }
330
+ //responsive image
331
+ setResponsiveBg() {
332
+ // Define local variables
333
+ let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
334
+ // Loop through all target elements
335
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
336
+ // Set current variables
337
+ el = backgrounds[i];
338
+ elData = el.getAttribute('data-' + currentBreakpoint);
339
+ // If the data attribute exists, set the background
340
+ if (elData !== null) {
341
+ el.style.backgroundImage = "url('" + elData + "')";
342
+ }
343
+ else {
344
+ if (typeof console == 'object') {
345
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
346
+ }
347
+ }
348
+ }
349
+ }
350
+ //lazy loading
351
+ addIntersectionObserver() {
352
+ if (!this.imgUrl) {
353
+ console.log('no image!');
354
+ return;
355
+ }
356
+ if ('IntersectionObserver' in window) {
357
+ let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
358
+ let bgObserver = new IntersectionObserver(entries => {
359
+ entries.forEach(entry => {
360
+ if (entry.isIntersecting) {
361
+ const image = entry.target;
362
+ image.classList.remove('lazy-bg');
363
+ bgObserver.unobserve(image);
364
+ }
365
+ });
366
+ });
367
+ lazyLoadBgs.forEach(image => {
368
+ bgObserver.observe(image);
369
+ });
370
+ }
371
+ }
372
+ getCssClassMap() {
373
+ return {
374
+ [this.imageType]: true,
375
+ 'ptc-img': true,
376
+ [this.borderRadius]: true,
377
+ [this.loadMode]: true,
378
+ // [this.imageZIndex] : true
379
+ };
380
+ }
381
+ getCurrentBreakPoints() {
382
+ // Define local variables
383
+ let doc = window.document, temp = doc.createElement('div'), env;
384
+ // Append test node
385
+ doc.body.appendChild(temp);
386
+ // Loop through breakpoints
387
+ for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
388
+ env = ResponsiveBgVariables.envs[i];
389
+ // Add classes
390
+ temp.className = 'hidden-' + env;
391
+ // Found breakpoint
392
+ if (temp.offsetParent === null) {
393
+ // Remove our test node
394
+ doc.body.removeChild(temp);
395
+ // Return current breakpoint
396
+ return env;
397
+ }
398
+ }
399
+ // Breakpoint not found, try fallback
400
+ doc.body.removeChild(temp);
401
+ return this.getFallbackBreakpoint();
402
+ }
403
+ getFallbackBreakpoint() {
404
+ if (window.matchMedia('(min-width: 992px)').matches) {
405
+ return 'lg';
406
+ }
407
+ else if (window.matchMedia('(min-width: 768px)').matches) {
408
+ return 'md';
409
+ }
410
+ else if (window.matchMedia('(min-width: 576px)').matches) {
411
+ return 'sm';
412
+ }
413
+ else {
414
+ return 'xs';
415
+ }
416
+ }
417
+ get el() { return index.getElement(this); }
418
+ };
419
419
  PtcImg.style = ptcImgCss;
420
420
 
421
421
  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}}";
422
422
 
423
- const PtcJumbotron = class {
424
- constructor(hostRef) {
425
- index.registerInstance(this, hostRef);
426
- this.jumbotronType = 'light';
427
- this.hasPopupVideo = false;
428
- this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
429
- this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
430
- this.pngSrc = undefined;
431
- this.gifSrc = undefined;
432
- this.bgVideoSrc = undefined;
433
- this.bgSrc = undefined;
434
- this.isIframe = false;
435
- this.playButtonTitle = undefined;
436
- this.pauseButtonTitle = undefined;
437
- this.contentBackground = undefined;
438
- this.contentColor = undefined;
439
- this.textAlign = 'left';
440
- this.isMobile = undefined;
441
- }
442
- handleResize() {
443
- this.getContentBackground();
444
- this.adjustJumbotronHeight();
445
- }
446
- connectedCallback() {
447
- this.getContentBackground();
448
- }
449
- componentDidLoad() {
450
- // if (!!this.popupVideo) {
451
- // const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
452
- // const PtcModal: HTMLPtcModalElement = this.el.shadowRoot.querySelector('#j-modal');
453
- // if (selectedBtn && PtcModal) {
454
- // selectedBtn.addEventListener('click', function () {
455
- // PtcModal.show = true;
456
- // });
457
- // const iframe = PtcModal.shadowRoot.querySelector('iframe');
458
- // console.log('iframe')
459
- // console.log(iframe);
460
- // const iframeDoc= iframe.contentDocument
461
- // //const shadowVideo = shadowIframe.querySelector('document')
462
- // console.log('video: ')
463
- // console.log(iframeDoc)
464
- // }
465
- // }
466
- this.adjustJumbotronHeight();
467
- }
468
- render() {
469
- console.log('render');
470
- const classMap = this.getCssClassMap();
471
- let mediaElement;
472
- switch (this.jumbotronType) {
473
- case 'png':
474
- mediaElement = (index.h("div", { class: "mobile-media-image" }, index.h("ptc-picture", { src: this.pngSrc })));
475
- break;
476
- case 'gif':
477
- mediaElement = (index.h("div", { class: "mobile-media-image gif-bg" }, index.h("img", { src: this.gifSrc })));
478
- break;
479
- case 'dark-video':
480
- case 'light-video':
481
- mediaElement = (index.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 }));
482
- break;
483
- default:
484
- mediaElement = index.h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
485
- }
486
- return (index.h(index.Host, { class: classMap }, index.h("div", { class: "parent" }, index.h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), index.h("div", { class: "div2 content-container" }, index.h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), index.h("div", { class: "ptc-container content-layout" }, index.h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign }, index.h("slot", { name: "breadcrumb" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("slot", { name: "main-title" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.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' }, index.h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), index.h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, index.h("slot", { name: "j-cta" }))), this.hasPopupVideo ? index.h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (index.h("div", { class: "desktop-media-image" }, index.h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (index.h("div", { class: "desktop-media-image desk-gif-adjustment" }, index.h("img", { src: this.gifSrc }))) : null)))));
487
- }
488
- getCssClassMap() {
489
- return {
490
- // [this.imageZIndex] : true
491
- };
492
- }
493
- getContentBackground() {
494
- if (window.innerWidth < 992) {
495
- switch (this.jumbotronType) {
496
- case 'light':
497
- case 'light-video':
498
- this.contentBackground = '#F3F3F3';
499
- this.contentColor = 'var(--color-gray-10)';
500
- break;
501
- case 'dark':
502
- case 'dark-video':
503
- this.contentBackground = 'var(--color-gray-09)';
504
- this.contentColor = 'var(--color-gray-01)';
505
- break;
506
- default:
507
- this.contentBackground = 'transparent';
508
- this.contentColor = 'var(--color-gray-10)';
509
- }
510
- this.isMobile = true;
511
- }
512
- else {
513
- switch (this.jumbotronType) {
514
- case 'light':
515
- case 'light-video':
516
- this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
517
- this.contentColor = 'var(--color-gray-10)';
518
- break;
519
- case 'dark':
520
- case 'dark-video':
521
- this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
522
- this.contentColor = 'var(--color-gray-01)';
523
- break;
524
- case 'gif':
525
- this.contentBackground = '#F3F3F3';
526
- this.contentColor = 'var(--color-gray-10)';
527
- break;
528
- default:
529
- this.contentBackground = 'transparent';
530
- this.contentColor = 'var(--color-gray-10)';
531
- }
532
- this.isMobile = false;
533
- }
534
- }
535
- adjustJumbotronHeight() {
536
- const contentContainerH = this.el.shadowRoot.querySelector('.content-container').clientHeight;
537
- const videoEle = !!this.el.shadowRoot.querySelector('.video-ratio') ? this.el.shadowRoot.querySelector('.video-ratio') : null;
538
- if (contentContainerH < 500 && videoEle && !this.isMobile) {
539
- videoEle.style.paddingBottom = '500px';
540
- }
541
- else {
542
- !!videoEle ? (videoEle.style.paddingBottom = '') : null;
543
- }
544
- }
545
- get el() { return index.getElement(this); }
546
- };
423
+ const PtcJumbotron = class {
424
+ constructor(hostRef) {
425
+ index.registerInstance(this, hostRef);
426
+ this.jumbotronType = 'light';
427
+ this.hasPopupVideo = false;
428
+ this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
429
+ this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
430
+ this.pngSrc = undefined;
431
+ this.gifSrc = undefined;
432
+ this.bgVideoSrc = undefined;
433
+ this.bgSrc = undefined;
434
+ this.isIframe = false;
435
+ this.playButtonTitle = undefined;
436
+ this.pauseButtonTitle = undefined;
437
+ this.contentBackground = undefined;
438
+ this.contentColor = undefined;
439
+ this.textAlign = 'left';
440
+ this.isMobile = undefined;
441
+ }
442
+ handleResize() {
443
+ this.getContentBackground();
444
+ this.adjustJumbotronHeight();
445
+ }
446
+ connectedCallback() {
447
+ this.getContentBackground();
448
+ }
449
+ componentDidLoad() {
450
+ // if (!!this.popupVideo) {
451
+ // const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
452
+ // const PtcModal: HTMLPtcModalElement = this.el.shadowRoot.querySelector('#j-modal');
453
+ // if (selectedBtn && PtcModal) {
454
+ // selectedBtn.addEventListener('click', function () {
455
+ // PtcModal.show = true;
456
+ // });
457
+ // const iframe = PtcModal.shadowRoot.querySelector('iframe');
458
+ // console.log('iframe')
459
+ // console.log(iframe);
460
+ // const iframeDoc= iframe.contentDocument
461
+ // //const shadowVideo = shadowIframe.querySelector('document')
462
+ // console.log('video: ')
463
+ // console.log(iframeDoc)
464
+ // }
465
+ // }
466
+ this.adjustJumbotronHeight();
467
+ }
468
+ render() {
469
+ console.log('render');
470
+ const classMap = this.getCssClassMap();
471
+ let mediaElement;
472
+ switch (this.jumbotronType) {
473
+ case 'png':
474
+ mediaElement = (index.h("div", { class: "mobile-media-image" }, index.h("ptc-picture", { src: this.pngSrc })));
475
+ break;
476
+ case 'gif':
477
+ mediaElement = (index.h("div", { class: "mobile-media-image gif-bg" }, index.h("img", { src: this.gifSrc })));
478
+ break;
479
+ case 'dark-video':
480
+ case 'light-video':
481
+ mediaElement = (index.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 }));
482
+ break;
483
+ default:
484
+ mediaElement = index.h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
485
+ }
486
+ return (index.h(index.Host, { class: classMap }, index.h("div", { class: "parent" }, index.h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), index.h("div", { class: "div2 content-container" }, index.h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), index.h("div", { class: "ptc-container content-layout" }, index.h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign }, index.h("slot", { name: "breadcrumb" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("slot", { name: "main-title" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.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' }, index.h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), index.h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, index.h("slot", { name: "j-cta" }))), this.hasPopupVideo ? index.h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (index.h("div", { class: "desktop-media-image" }, index.h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (index.h("div", { class: "desktop-media-image desk-gif-adjustment" }, index.h("img", { src: this.gifSrc }))) : null)))));
487
+ }
488
+ getCssClassMap() {
489
+ return {
490
+ // [this.imageZIndex] : true
491
+ };
492
+ }
493
+ getContentBackground() {
494
+ if (window.innerWidth < 992) {
495
+ switch (this.jumbotronType) {
496
+ case 'light':
497
+ case 'light-video':
498
+ this.contentBackground = '#F3F3F3';
499
+ this.contentColor = 'var(--color-gray-10)';
500
+ break;
501
+ case 'dark':
502
+ case 'dark-video':
503
+ this.contentBackground = 'var(--color-gray-09)';
504
+ this.contentColor = 'var(--color-gray-01)';
505
+ break;
506
+ default:
507
+ this.contentBackground = 'transparent';
508
+ this.contentColor = 'var(--color-gray-10)';
509
+ }
510
+ this.isMobile = true;
511
+ }
512
+ else {
513
+ switch (this.jumbotronType) {
514
+ case 'light':
515
+ case 'light-video':
516
+ this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
517
+ this.contentColor = 'var(--color-gray-10)';
518
+ break;
519
+ case 'dark':
520
+ case 'dark-video':
521
+ this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
522
+ this.contentColor = 'var(--color-gray-01)';
523
+ break;
524
+ case 'gif':
525
+ this.contentBackground = '#F3F3F3';
526
+ this.contentColor = 'var(--color-gray-10)';
527
+ break;
528
+ default:
529
+ this.contentBackground = 'transparent';
530
+ this.contentColor = 'var(--color-gray-10)';
531
+ }
532
+ this.isMobile = false;
533
+ }
534
+ }
535
+ adjustJumbotronHeight() {
536
+ const contentContainerH = this.el.shadowRoot.querySelector('.content-container').clientHeight;
537
+ const videoEle = !!this.el.shadowRoot.querySelector('.video-ratio') ? this.el.shadowRoot.querySelector('.video-ratio') : null;
538
+ if (contentContainerH < 500 && videoEle && !this.isMobile) {
539
+ videoEle.style.paddingBottom = '500px';
540
+ }
541
+ else {
542
+ !!videoEle ? (videoEle.style.paddingBottom = '') : null;
543
+ }
544
+ }
545
+ get el() { return index.getElement(this); }
546
+ };
547
547
  PtcJumbotron.style = ptcJumbotronCss;
548
548
 
549
549
  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}";
550
550
 
551
- const PtcPara = class {
552
- constructor(hostRef) {
553
- index.registerInstance(this, hostRef);
554
- this.fontSize = 'x-small';
555
- this.fontWeight = 'w-4';
556
- this.paraStyle = 'default';
557
- this.paraColor = 'primary-grey';
558
- this.paraLineH = 'line-height-normal';
559
- this.paraMargin = undefined;
560
- this.paraAlign = undefined;
561
- this.ellipsisLineCutoff = undefined;
562
- this.paraZIndex = undefined;
563
- this.styles = undefined;
564
- }
565
- render() {
566
- const classMap = this.getCssClassMap();
567
- const colorClass = this.addWhiteClass();
568
- const cutOff = this.getLineCuttoff();
569
- return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
570
- }
571
- getCssClassMap() {
572
- return {
573
- [this.fontSize]: true,
574
- [this.fontWeight]: true,
575
- [this.paraStyle]: true,
576
- [this.paraMargin]: !!this.paraMargin ? true : false,
577
- [this.paraColor]: true,
578
- [this.paraLineH]: true,
579
- [this.paraAlign]: !!this.paraAlign ? true : false,
580
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
581
- };
582
- }
583
- //WEB-2392
584
- addWhiteClass() {
585
- if (this.paraColor == 'white') {
586
- return {
587
- [this.paraColor]: true,
588
- };
589
- }
590
- }
591
- getLineCuttoff() {
592
- let result;
593
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
594
- result = {
595
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
596
- };
597
- }
598
- return result;
599
- }
600
- get el() { return index.getElement(this); }
601
- };
551
+ const PtcPara = class {
552
+ constructor(hostRef) {
553
+ index.registerInstance(this, hostRef);
554
+ this.fontSize = 'x-small';
555
+ this.fontWeight = 'w-4';
556
+ this.paraStyle = 'default';
557
+ this.paraColor = 'primary-grey';
558
+ this.paraLineH = 'line-height-normal';
559
+ this.paraMargin = undefined;
560
+ this.paraAlign = undefined;
561
+ this.ellipsisLineCutoff = undefined;
562
+ this.paraZIndex = undefined;
563
+ this.styles = undefined;
564
+ }
565
+ render() {
566
+ const classMap = this.getCssClassMap();
567
+ const colorClass = this.addWhiteClass();
568
+ const cutOff = this.getLineCuttoff();
569
+ return (index.h(index.Host, { class: `${colorClass} ${this.paraZIndex}` }, this.styles && index.h("style", null, this.styles), index.h("p", { class: classMap, part: "part-para", style: cutOff }, index.h("slot", null))));
570
+ }
571
+ getCssClassMap() {
572
+ return {
573
+ [this.fontSize]: true,
574
+ [this.fontWeight]: true,
575
+ [this.paraStyle]: true,
576
+ [this.paraMargin]: !!this.paraMargin ? true : false,
577
+ [this.paraColor]: true,
578
+ [this.paraLineH]: true,
579
+ [this.paraAlign]: !!this.paraAlign ? true : false,
580
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
581
+ };
582
+ }
583
+ //WEB-2392
584
+ addWhiteClass() {
585
+ if (this.paraColor == 'white') {
586
+ return {
587
+ [this.paraColor]: true,
588
+ };
589
+ }
590
+ }
591
+ getLineCuttoff() {
592
+ let result;
593
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
594
+ result = {
595
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
596
+ };
597
+ }
598
+ return result;
599
+ }
600
+ get el() { return index.getElement(this); }
601
+ };
602
602
  PtcPara.style = ptcParaCss;
603
603
 
604
604
  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}";
605
605
 
606
- const PtcPicture = class {
607
- constructor(hostRef) {
608
- index.registerInstance(this, hostRef);
609
- this.src = undefined;
610
- this.alt = 'image';
611
- this.sizeXs = '510x340';
612
- this.sizeSm = '1240x496';
613
- this.sizeMd = '1366x500';
614
- this.sizeLg = '1920x1080';
615
- this.oldSrc = undefined;
616
- this.imagePosition = 'static';
617
- this.borderRadius = undefined;
618
- this.height = undefined;
619
- this.width = undefined;
620
- this.objectFit = 'cover';
621
- this.isFullHeight = false;
622
- this.isFullWidth = false;
623
- this.styles = undefined;
624
- this.imageAlignment = 'left';
625
- this.maxWidth = undefined;
626
- }
627
- WindowResize() {
628
- this.addIntersectionObserver();
629
- }
630
- componentDidLoad() {
631
- this.addIntersectionObserver();
632
- }
633
- componentWillUpdate() {
634
- if (this.src !== this.oldSrc) {
635
- this.addIntersectionObserver();
636
- }
637
- this.oldSrc = this.src;
638
- }
639
- //lazy-loading
640
- addIntersectionObserver() {
641
- if (!this.src) {
642
- return;
643
- }
644
- if ('IntersectionObserver' in window) {
645
- let lazyLoadImages = new IntersectionObserver(entries => {
646
- entries.forEach(entry => {
647
- if (entry.isIntersecting) {
648
- const image = this.el.shadowRoot.querySelector('img');
649
- image.src = this.setResponsiveBg();
650
- lazyLoadImages.unobserve(image);
651
- }
652
- });
653
- });
654
- let tempImg = this.el.shadowRoot.querySelector('img');
655
- if (tempImg) {
656
- lazyLoadImages.observe(tempImg);
657
- }
658
- }
659
- else {
660
- // fall back to setTimeout for Safari and IE
661
- setTimeout(() => {
662
- const image = this.el.shadowRoot.querySelector('img');
663
- image.src = this.setResponsiveBg();
664
- image.onload = () => {
665
- image.removeAttribute('data-src');
666
- console.log('loaded fallback');
667
- };
668
- }, 5000);
669
- }
670
- }
671
- //responsive image
672
- setResponsiveBg() {
673
- // Define local variables
674
- let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
675
- for (var i = 0, len = backgrounds.length; i < len; i++) {
676
- // Set current variables
677
- el = backgrounds[i];
678
- elData = el.getAttribute('data-' + currentBreakpoint);
679
- if (elData !== null) {
680
- return elData;
681
- }
682
- else {
683
- if (typeof console == 'object') {
684
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
685
- }
686
- }
687
- }
688
- }
689
- render() {
690
- const classMap = this.getCssClassMap();
691
- const classMapHost = this.getCssClassMapHost();
692
- return (index.h(index.Host, { class: classMapHost }, this.styles && index.h("style", null, this.styles), index.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' } : {})) })), index.h("slot", null)));
693
- }
694
- getCurrentBreakPoints() {
695
- // Define local variables
696
- let doc = window.document, temp = doc.createElement('div'), env;
697
- // Append test node
698
- doc.body.appendChild(temp);
699
- // Loop through breakpoints
700
- for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
701
- env = ResponsivePictureVariables.envs[i];
702
- // Add classes
703
- temp.className = 'hidden-' + env;
704
- // Found breakpoint
705
- if (temp.offsetParent === null) {
706
- // Remove our test node
707
- doc.body.removeChild(temp);
708
- // Return current breakpoint
709
- return env;
710
- }
711
- }
712
- // Breakpoint not found, try fallback
713
- doc.body.removeChild(temp);
714
- return this.getFallbackBreakpoint();
715
- }
716
- getFallbackBreakpoint() {
717
- if (window.matchMedia('(min-width: 992px)').matches) {
718
- return 'lg';
719
- }
720
- else if (window.matchMedia('(min-width: 768px)').matches) {
721
- return 'md';
722
- }
723
- else if (window.matchMedia('(min-width: 576px)').matches) {
724
- return 'sm';
725
- }
726
- else {
727
- return 'xs';
728
- }
729
- }
730
- getCssClassMap() {
731
- return {
732
- [this.borderRadius]: this.borderRadius ? true : false,
733
- [this.objectFit]: true,
734
- [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
735
- [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
736
- };
737
- }
738
- getCssClassMapHost() {
739
- return {
740
- [this.imagePosition]: true,
741
- [this.imageAlignment]: true,
742
- };
743
- }
744
- get el() { return index.getElement(this); }
745
- };
606
+ const PtcPicture = class {
607
+ constructor(hostRef) {
608
+ index.registerInstance(this, hostRef);
609
+ this.src = undefined;
610
+ this.alt = 'image';
611
+ this.sizeXs = '510x340';
612
+ this.sizeSm = '1240x496';
613
+ this.sizeMd = '1366x500';
614
+ this.sizeLg = '1920x1080';
615
+ this.oldSrc = undefined;
616
+ this.imagePosition = 'static';
617
+ this.borderRadius = undefined;
618
+ this.height = undefined;
619
+ this.width = undefined;
620
+ this.objectFit = 'cover';
621
+ this.isFullHeight = false;
622
+ this.isFullWidth = false;
623
+ this.styles = undefined;
624
+ this.imageAlignment = 'left';
625
+ this.maxWidth = undefined;
626
+ }
627
+ WindowResize() {
628
+ this.addIntersectionObserver();
629
+ }
630
+ componentDidLoad() {
631
+ this.addIntersectionObserver();
632
+ }
633
+ componentWillUpdate() {
634
+ if (this.src !== this.oldSrc) {
635
+ this.addIntersectionObserver();
636
+ }
637
+ this.oldSrc = this.src;
638
+ }
639
+ //lazy-loading
640
+ addIntersectionObserver() {
641
+ if (!this.src) {
642
+ return;
643
+ }
644
+ if ('IntersectionObserver' in window) {
645
+ let lazyLoadImages = new IntersectionObserver(entries => {
646
+ entries.forEach(entry => {
647
+ if (entry.isIntersecting) {
648
+ const image = this.el.shadowRoot.querySelector('img');
649
+ image.src = this.setResponsiveBg();
650
+ lazyLoadImages.unobserve(image);
651
+ }
652
+ });
653
+ });
654
+ let tempImg = this.el.shadowRoot.querySelector('img');
655
+ if (tempImg) {
656
+ lazyLoadImages.observe(tempImg);
657
+ }
658
+ }
659
+ else {
660
+ // fall back to setTimeout for Safari and IE
661
+ setTimeout(() => {
662
+ const image = this.el.shadowRoot.querySelector('img');
663
+ image.src = this.setResponsiveBg();
664
+ image.onload = () => {
665
+ image.removeAttribute('data-src');
666
+ console.log('loaded fallback');
667
+ };
668
+ }, 5000);
669
+ }
670
+ }
671
+ //responsive image
672
+ setResponsiveBg() {
673
+ // Define local variables
674
+ let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
675
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
676
+ // Set current variables
677
+ el = backgrounds[i];
678
+ elData = el.getAttribute('data-' + currentBreakpoint);
679
+ if (elData !== null) {
680
+ return elData;
681
+ }
682
+ else {
683
+ if (typeof console == 'object') {
684
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
685
+ }
686
+ }
687
+ }
688
+ }
689
+ render() {
690
+ const classMap = this.getCssClassMap();
691
+ const classMapHost = this.getCssClassMapHost();
692
+ return (index.h(index.Host, { class: classMapHost }, this.styles && index.h("style", null, this.styles), index.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' } : {})) })), index.h("slot", null)));
693
+ }
694
+ getCurrentBreakPoints() {
695
+ // Define local variables
696
+ let doc = window.document, temp = doc.createElement('div'), env;
697
+ // Append test node
698
+ doc.body.appendChild(temp);
699
+ // Loop through breakpoints
700
+ for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
701
+ env = ResponsivePictureVariables.envs[i];
702
+ // Add classes
703
+ temp.className = 'hidden-' + env;
704
+ // Found breakpoint
705
+ if (temp.offsetParent === null) {
706
+ // Remove our test node
707
+ doc.body.removeChild(temp);
708
+ // Return current breakpoint
709
+ return env;
710
+ }
711
+ }
712
+ // Breakpoint not found, try fallback
713
+ doc.body.removeChild(temp);
714
+ return this.getFallbackBreakpoint();
715
+ }
716
+ getFallbackBreakpoint() {
717
+ if (window.matchMedia('(min-width: 992px)').matches) {
718
+ return 'lg';
719
+ }
720
+ else if (window.matchMedia('(min-width: 768px)').matches) {
721
+ return 'md';
722
+ }
723
+ else if (window.matchMedia('(min-width: 576px)').matches) {
724
+ return 'sm';
725
+ }
726
+ else {
727
+ return 'xs';
728
+ }
729
+ }
730
+ getCssClassMap() {
731
+ return {
732
+ [this.borderRadius]: this.borderRadius ? true : false,
733
+ [this.objectFit]: true,
734
+ [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
735
+ [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
736
+ };
737
+ }
738
+ getCssClassMapHost() {
739
+ return {
740
+ [this.imagePosition]: true,
741
+ [this.imageAlignment]: true,
742
+ };
743
+ }
744
+ get el() { return index.getElement(this); }
745
+ };
746
746
  PtcPicture.style = ptcPictureCss;
747
747
 
748
748
  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}}";
749
749
 
750
- const PtcSpacer = class {
751
- constructor(hostRef) {
752
- index.registerInstance(this, hostRef);
753
- this.breakpoint = '';
754
- this.size = 'medium';
755
- this.direction = 'vertical';
756
- }
757
- render() {
758
- const classMap = this.getCssClassMap();
759
- return (index.h(index.Host, { class: classMap }));
760
- }
761
- getCssClassMap() {
762
- return {
763
- [this.size]: true,
764
- ['ptc-spacer-horizontal']: this.direction === 'horizontal',
765
- ['ptc-spacer-vertical']: this.direction === 'vertical',
766
- ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
767
- ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
768
- ['ptc-spacer-small']: this.breakpoint === 'small',
769
- ['ptc-spacer-medium']: this.breakpoint === 'medium',
770
- ['ptc-spacer-large']: this.breakpoint === 'large',
771
- ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
772
- ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
773
- ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
774
- };
775
- }
776
- };
750
+ const PtcSpacer = class {
751
+ constructor(hostRef) {
752
+ index.registerInstance(this, hostRef);
753
+ this.breakpoint = '';
754
+ this.size = 'medium';
755
+ this.direction = 'vertical';
756
+ }
757
+ render() {
758
+ const classMap = this.getCssClassMap();
759
+ return (index.h(index.Host, { class: classMap }));
760
+ }
761
+ getCssClassMap() {
762
+ return {
763
+ [this.size]: true,
764
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
765
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
766
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
767
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
768
+ ['ptc-spacer-small']: this.breakpoint === 'small',
769
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
770
+ ['ptc-spacer-large']: this.breakpoint === 'large',
771
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
772
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
773
+ ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
774
+ };
775
+ }
776
+ };
777
777
  PtcSpacer.style = ptcSpacerCss;
778
778
 
779
779
  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}";
780
780
 
781
- const PtcTitle = class {
782
- constructor(hostRef) {
783
- index.registerInstance(this, hostRef);
784
- this.isPlmHub = false;
785
- this.type = 'h2';
786
- this.textAlign = undefined;
787
- this.upperline = 'dotted';
788
- this.titleShadow = undefined;
789
- this.titleColor = 'gray';
790
- this.titleMargin = undefined;
791
- this.titleWeight = undefined;
792
- this.titleSize = undefined;
793
- this.titleHeight = 'paragraph';
794
- this.styles = undefined;
795
- this.ellipsisLineCutoff = undefined;
796
- this.titleDisplay = 'inline-block';
797
- }
798
- render() {
799
- const classMap = this.getCssClassMap();
800
- const cutOff = this.getLineCuttoff();
801
- let TagType;
802
- switch (this.type) {
803
- case 'h1':
804
- TagType = 'h1';
805
- break;
806
- case 'h3':
807
- TagType = 'h3';
808
- break;
809
- case 'h4':
810
- TagType = 'h4';
811
- break;
812
- case 'h5':
813
- TagType = 'h5';
814
- break;
815
- case 'h6':
816
- TagType = 'h6';
817
- break;
818
- default:
819
- TagType = 'h2';
820
- }
821
- return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { style: cutOff }, index.h("slot", null)))));
822
- }
823
- getCssClassMap() {
824
- return {
825
- [this.textAlign]: !!this.textAlign ? true : false,
826
- [this.upperline]: true,
827
- [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
828
- [this.titleMargin]: !!this.titleMargin ? true : false,
829
- [this.titleShadow]: !!this.titleShadow ? true : false,
830
- [this.titleWeight]: !!this.titleWeight ? true : false,
831
- [this.titleSize]: !!this.titleSize ? true : false,
832
- [this.titleHeight]: !!this.titleHeight ? true : false,
833
- [this.titleColor]: !!this.titleColor ? true : false,
834
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
835
- [this.titleDisplay]: !!this.titleDisplay ? true : false,
836
- };
837
- }
838
- getLineCuttoff() {
839
- let result;
840
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
841
- result = {
842
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
843
- };
844
- }
845
- return result;
846
- }
847
- };
781
+ const PtcTitle = class {
782
+ constructor(hostRef) {
783
+ index.registerInstance(this, hostRef);
784
+ this.isPlmHub = false;
785
+ this.type = 'h2';
786
+ this.textAlign = undefined;
787
+ this.upperline = 'dotted';
788
+ this.titleShadow = undefined;
789
+ this.titleColor = 'gray';
790
+ this.titleMargin = undefined;
791
+ this.titleWeight = undefined;
792
+ this.titleSize = undefined;
793
+ this.titleHeight = 'paragraph';
794
+ this.styles = undefined;
795
+ this.ellipsisLineCutoff = undefined;
796
+ this.titleDisplay = 'inline-block';
797
+ }
798
+ render() {
799
+ const classMap = this.getCssClassMap();
800
+ const cutOff = this.getLineCuttoff();
801
+ let TagType;
802
+ switch (this.type) {
803
+ case 'h1':
804
+ TagType = 'h1';
805
+ break;
806
+ case 'h3':
807
+ TagType = 'h3';
808
+ break;
809
+ case 'h4':
810
+ TagType = 'h4';
811
+ break;
812
+ case 'h5':
813
+ TagType = 'h5';
814
+ break;
815
+ case 'h6':
816
+ TagType = 'h6';
817
+ break;
818
+ default:
819
+ TagType = 'h2';
820
+ }
821
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { style: cutOff }, index.h("slot", null)))));
822
+ }
823
+ getCssClassMap() {
824
+ return {
825
+ [this.textAlign]: !!this.textAlign ? true : false,
826
+ [this.upperline]: true,
827
+ [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
828
+ [this.titleMargin]: !!this.titleMargin ? true : false,
829
+ [this.titleShadow]: !!this.titleShadow ? true : false,
830
+ [this.titleWeight]: !!this.titleWeight ? true : false,
831
+ [this.titleSize]: !!this.titleSize ? true : false,
832
+ [this.titleHeight]: !!this.titleHeight ? true : false,
833
+ [this.titleColor]: !!this.titleColor ? true : false,
834
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
835
+ [this.titleDisplay]: !!this.titleDisplay ? true : false,
836
+ };
837
+ }
838
+ getLineCuttoff() {
839
+ let result;
840
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
841
+ result = {
842
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
843
+ };
844
+ }
845
+ return result;
846
+ }
847
+ };
848
848
  PtcTitle.style = ptcTitleCss;
849
849
 
850
850
  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}";
851
851
 
852
- const PtcTooltip = class {
853
- constructor(hostRef) {
854
- index.registerInstance(this, hostRef);
855
- this.textDisplay = 'inline';
856
- this.maxLength = 45;
857
- this.textLines = undefined;
858
- this.description = 'This is a tooltip text placeholder';
859
- this.zIndex = 'z-auto';
860
- this.position = 'bottom';
861
- this.styles = undefined;
862
- this.mode = 'text-only';
863
- this.theme = 'standard';
864
- this.hideOnMobile = false;
865
- this.isSmallScreen = undefined;
866
- }
867
- addTruncatedClass() {
868
- const appRoot = this.el;
869
- const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
870
- text.forEach(t => {
871
- t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
872
- });
873
- }
874
- windowResize() {
875
- this.verifiyScreenSize();
876
- }
877
- verifiyScreenSize() {
878
- this.isSmallScreen = window.innerWidth < 768;
879
- }
880
- // Created this function to initialize the truncate function on specific elements like tabs
881
- enableAddTruncatedClass(element) {
882
- const allTabHeaders = document.querySelectorAll(element);
883
- for (const element of Array.from(allTabHeaders)) {
884
- let tabHeader = element;
885
- if (tabHeader) {
886
- tabHeader.addEventListener('click', () => {
887
- setTimeout(() => {
888
- this.addTruncatedClass();
889
- }, 100);
890
- });
891
- }
892
- }
893
- }
894
- componentWillLoad() {
895
- this.verifiyScreenSize();
896
- }
897
- componentDidLoad() {
898
- //this.addTruncatedClass();
899
- setTimeout(() => {
900
- this.addTruncatedClass();
901
- }, 1000);
902
- this.enableAddTruncatedClass('tab-header');
903
- this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
904
- document.addEventListener('readystatechange', () => {
905
- if (document.readyState === 'complete') {
906
- this.addTruncatedClass();
907
- }
908
- });
909
- }
910
- render() {
911
- if (this.mode == 'wrapper') {
912
- return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "wrapper-content" }, index.h("div", { class: "slot-content" }, index.h("slot", null)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, index.h("slot", { name: "description" }), this.description))));
913
- }
914
- else {
915
- const classMap = this.getCssClassMap();
916
- const cutOff = this.getLineCuttoff();
917
- let truncatedText = this.description.substring(0, this.maxLength);
918
- if (this.description.length > this.maxLength) {
919
- const lastSpace = truncatedText.lastIndexOf(' ');
920
- truncatedText = truncatedText.substring(0, lastSpace);
921
- truncatedText += '... ';
922
- }
923
- return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), (this.hideOnMobile && this.isSmallScreen) ? (index.h("div", null, this.description)) : (index.h("div", null, this.textLines > 0 && !!this.textLines ? (index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description)) : (index.h("div", { class: classMap }, truncatedText)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, this.description)))));
924
- }
925
- }
926
- getCssClassMap() {
927
- return {
928
- // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
929
- ['text-ellipsis']: true,
930
- [this.zIndex]: this.description.length > this.maxLength ? true : false,
931
- ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
932
- };
933
- }
934
- getLineCuttoff() {
935
- let result;
936
- if (this.textLines && this.textLines > 0) {
937
- result = {
938
- ['-webkit-line-clamp']: `${this.textLines}`,
939
- };
940
- }
941
- return result;
942
- }
943
- get el() { return index.getElement(this); }
944
- };
852
+ const PtcTooltip = class {
853
+ constructor(hostRef) {
854
+ index.registerInstance(this, hostRef);
855
+ this.textDisplay = 'inline';
856
+ this.maxLength = 45;
857
+ this.textLines = undefined;
858
+ this.description = 'This is a tooltip text placeholder';
859
+ this.zIndex = 'z-auto';
860
+ this.position = 'bottom';
861
+ this.styles = undefined;
862
+ this.mode = 'text-only';
863
+ this.theme = 'standard';
864
+ this.hideOnMobile = false;
865
+ this.isSmallScreen = undefined;
866
+ }
867
+ addTruncatedClass() {
868
+ const appRoot = this.el;
869
+ const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
870
+ text.forEach(t => {
871
+ t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
872
+ });
873
+ }
874
+ windowResize() {
875
+ this.verifiyScreenSize();
876
+ }
877
+ verifiyScreenSize() {
878
+ this.isSmallScreen = window.innerWidth < 768;
879
+ }
880
+ // Created this function to initialize the truncate function on specific elements like tabs
881
+ enableAddTruncatedClass(element) {
882
+ const allTabHeaders = document.querySelectorAll(element);
883
+ for (const element of Array.from(allTabHeaders)) {
884
+ let tabHeader = element;
885
+ if (tabHeader) {
886
+ tabHeader.addEventListener('click', () => {
887
+ setTimeout(() => {
888
+ this.addTruncatedClass();
889
+ }, 100);
890
+ });
891
+ }
892
+ }
893
+ }
894
+ componentWillLoad() {
895
+ this.verifiyScreenSize();
896
+ }
897
+ componentDidLoad() {
898
+ //this.addTruncatedClass();
899
+ setTimeout(() => {
900
+ this.addTruncatedClass();
901
+ }, 1000);
902
+ this.enableAddTruncatedClass('tab-header');
903
+ this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
904
+ document.addEventListener('readystatechange', () => {
905
+ if (document.readyState === 'complete') {
906
+ this.addTruncatedClass();
907
+ }
908
+ });
909
+ }
910
+ render() {
911
+ if (this.mode == 'wrapper') {
912
+ return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), index.h("div", { class: "wrapper-content" }, index.h("div", { class: "slot-content" }, index.h("slot", null)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, index.h("slot", { name: "description" }), this.description))));
913
+ }
914
+ else {
915
+ const classMap = this.getCssClassMap();
916
+ const cutOff = this.getLineCuttoff();
917
+ let truncatedText = this.description.substring(0, this.maxLength);
918
+ if (this.description.length > this.maxLength) {
919
+ const lastSpace = truncatedText.lastIndexOf(' ');
920
+ truncatedText = truncatedText.substring(0, lastSpace);
921
+ truncatedText += '... ';
922
+ }
923
+ return (index.h(index.Host, { class: this.textDisplay }, this.styles && index.h("style", null, this.styles), (this.hideOnMobile && this.isSmallScreen) ? (index.h("div", null, this.description)) : (index.h("div", null, this.textLines > 0 && !!this.textLines ? (index.h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description)) : (index.h("div", { class: classMap }, truncatedText)), index.h("div", { class: `tooltip ${this.position} ${this.theme}` }, this.description)))));
924
+ }
925
+ }
926
+ getCssClassMap() {
927
+ return {
928
+ // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
929
+ ['text-ellipsis']: true,
930
+ [this.zIndex]: this.description.length > this.maxLength ? true : false,
931
+ ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
932
+ };
933
+ }
934
+ getLineCuttoff() {
935
+ let result;
936
+ if (this.textLines && this.textLines > 0) {
937
+ result = {
938
+ ['-webkit-line-clamp']: `${this.textLines}`,
939
+ };
940
+ }
941
+ return result;
942
+ }
943
+ get el() { return index.getElement(this); }
944
+ };
945
945
  PtcTooltip.style = ptcTooltipCss;
946
946
 
947
947
  exports.bundle_jumbotron_example = BundleJumbotronExample;