@ptcwebops/ptcw-design 1.5.5 → 1.5.6

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 (374) 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.cjs.entry.js +39 -39
  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/icon-asset_16.cjs.entry.js +887 -887
  7. package/dist/cjs/innovator-toggle-container.cjs.entry.js +21 -21
  8. package/dist/cjs/{interfaces-0ecd8027.js → interfaces-574e6df7.js} +9 -9
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/lottie-player.cjs.entry.js +354 -354
  11. package/dist/cjs/max-width-container_3.cjs.entry.js +215 -215
  12. package/dist/cjs/my-component.cjs.entry.js +15 -15
  13. package/dist/cjs/ptc-accordion-item.cjs.entry.js +83 -83
  14. package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
  15. package/dist/cjs/ptc-announcement.cjs.entry.js +50 -50
  16. package/dist/cjs/ptc-bio-card.cjs.entry.js +24 -24
  17. package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +122 -122
  18. package/dist/cjs/ptc-card-content.cjs.entry.js +57 -57
  19. package/dist/cjs/ptc-card.cjs.entry.js +66 -66
  20. package/dist/cjs/ptc-checkbox.cjs.entry.js +50 -50
  21. package/dist/cjs/ptc-collapse-list.cjs.entry.js +353 -353
  22. package/dist/cjs/ptc-container.cjs.entry.js +33 -33
  23. package/dist/cjs/ptc-date.cjs.entry.js +50 -50
  24. package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
  25. package/dist/cjs/ptc-dynamic-card.cjs.entry.js +47 -47
  26. package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
  27. package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
  28. package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
  29. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  30. package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
  31. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +43 -43
  32. package/dist/cjs/ptc-jumbotron.cjs.entry.js +125 -125
  33. package/dist/cjs/ptc-link.cjs.entry.js +35 -35
  34. package/dist/cjs/ptc-list.cjs.entry.js +49 -49
  35. package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
  36. package/dist/cjs/ptc-media-card.cjs.entry.js +58 -58
  37. package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
  38. package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
  39. package/dist/cjs/ptc-mobile-select.cjs.entry.js +53 -53
  40. package/dist/cjs/ptc-modal.cjs.entry.js +150 -149
  41. package/dist/cjs/ptc-nav-card.cjs.entry.js +36 -36
  42. package/dist/cjs/ptc-nav-link.cjs.entry.js +36 -36
  43. package/dist/cjs/ptc-nav-slider.cjs.entry.js +83 -83
  44. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +18 -18
  45. package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
  46. package/dist/cjs/ptc-pagenation.cjs.entry.js +306 -306
  47. package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -11
  48. package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
  49. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +124 -124
  50. package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
  51. package/dist/cjs/ptc-readmore.cjs.entry.js +73 -73
  52. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  53. package/dist/cjs/ptc-search-field.cjs.entry.js +71 -71
  54. package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
  55. package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
  56. package/dist/cjs/ptc-span.cjs.entry.js +18 -18
  57. package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
  58. package/dist/cjs/ptc-sticky-section.cjs.entry.js +27 -27
  59. package/dist/cjs/ptc-subnav-card.cjs.entry.js +15 -15
  60. package/dist/cjs/ptc-subnav.cjs.entry.js +21 -21
  61. package/dist/cjs/ptc-svg-btn.cjs.entry.js +95 -95
  62. package/dist/cjs/ptc-tab-list.cjs.entry.js +125 -125
  63. package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
  64. package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
  65. package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +42 -42
  66. package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
  67. package/dist/cjs/ptcw-design.cjs.js +1 -1
  68. package/dist/cjs/sequential-bundle-example.cjs.entry.js +100 -100
  69. package/dist/cjs/sequential-bundle.cjs.entry.js +88 -88
  70. package/dist/cjs/tab-content.cjs.entry.js +27 -27
  71. package/dist/cjs/tab-header.cjs.entry.js +64 -64
  72. package/dist/cjs/{utils-416c94fe.js → utils-9eb22041.js} +90 -90
  73. package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
  74. package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +114 -114
  75. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  76. package/dist/collection/components/icon-asset/icon-asset.js +199 -199
  77. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  78. package/dist/collection/components/icon-asset/media/designer.svg +397 -397
  79. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  80. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  81. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  82. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.js +89 -89
  83. package/dist/collection/components/list-item/list-item.js +144 -144
  84. package/dist/collection/components/max-width-container/max-width-container.css +11 -11
  85. package/dist/collection/components/max-width-container/max-width-container.js +105 -105
  86. package/dist/collection/components/my-component/my-component.css +3 -3
  87. package/dist/collection/components/my-component/my-component.js +82 -82
  88. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.css +25 -25
  89. package/dist/collection/components/organism-bundles/bundle-example/bundle-example.js +58 -58
  90. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.css +3 -3
  91. package/dist/collection/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.js +91 -91
  92. package/dist/collection/components/organism-bundles/sequential-bundle/sequential-bundle.js +116 -116
  93. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.css +89 -89
  94. package/dist/collection/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.js +152 -152
  95. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
  96. package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
  97. package/dist/collection/components/ptc-announcement/ptc-announcement.js +237 -237
  98. package/dist/collection/components/ptc-back-to-top/ptc-back-to-top.js +61 -61
  99. package/dist/collection/components/ptc-background-video/ptc-background-video.js +200 -200
  100. package/dist/collection/components/ptc-bio-card/ptc-bio-card.js +130 -130
  101. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +105 -105
  102. package/dist/collection/components/ptc-button/ptc-button.js +283 -283
  103. package/dist/collection/components/ptc-card/ptc-card.js +362 -362
  104. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
  105. package/dist/collection/components/ptc-card-content/ptc-card-content.js +212 -212
  106. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +214 -214
  107. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +152 -152
  108. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +593 -593
  109. package/dist/collection/components/ptc-container/ptc-container.js +138 -138
  110. package/dist/collection/components/ptc-date/ptc-date.js +224 -224
  111. package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
  112. package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
  113. package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +174 -174
  114. package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
  115. package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
  116. package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
  117. package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
  118. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
  119. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +119 -119
  120. package/dist/collection/components/ptc-img/ptc-img.js +311 -311
  121. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -0
  122. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +349 -349
  123. package/dist/collection/components/ptc-link/ptc-link.js +209 -209
  124. package/dist/collection/components/ptc-list/ptc-list.js +99 -99
  125. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  126. package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
  127. package/dist/collection/components/ptc-media-card/ptc-media-card.js +240 -240
  128. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
  129. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
  130. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
  131. package/dist/collection/components/ptc-modal/ptc-modal.js +407 -389
  132. package/dist/collection/components/ptc-nav-card/ptc-nav-card.js +224 -224
  133. package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
  134. package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +573 -573
  135. package/dist/collection/components/ptc-para/ptc-para.js +242 -242
  136. package/dist/collection/components/ptc-picture/ptc-picture.js +473 -473
  137. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +78 -78
  138. package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
  139. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +272 -272
  140. package/dist/collection/components/ptc-product-card/ptc-product-card.js +179 -179
  141. package/dist/collection/components/ptc-product-category/ptc-product-category.js +60 -60
  142. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +185 -185
  143. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.js +96 -96
  144. package/dist/collection/components/ptc-product-list/ptc-product-list.js +171 -171
  145. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.js +237 -237
  146. package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
  147. package/dist/collection/components/ptc-readmore/ptc-readmore.js +298 -298
  148. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  149. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
  150. package/dist/collection/components/ptc-search-field/ptc-search-field.js +247 -247
  151. package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
  152. package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +139 -139
  153. package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
  154. package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
  155. package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
  156. package/dist/collection/components/ptc-span/ptc-span.js +87 -87
  157. package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
  158. package/dist/collection/components/ptc-sticky-section/ptc-sticky-section.js +46 -46
  159. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +109 -109
  160. package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +177 -177
  161. package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
  162. package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
  163. package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +181 -181
  164. package/dist/collection/components/ptc-title/ptc-title.js +310 -310
  165. package/dist/collection/components/ptc-tooltip/ptc-tooltip.css +2 -3
  166. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +342 -342
  167. package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
  168. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.js +114 -114
  169. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +126 -126
  170. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +85 -85
  171. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.js +47 -47
  172. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +133 -133
  173. package/dist/collection/components/tab-content/tab-content.js +84 -84
  174. package/dist/collection/components/tab-header/tab-header.js +182 -182
  175. package/dist/collection/index.js +1 -1
  176. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
  177. package/dist/collection/media/svg-imgs/close.svg +10 -10
  178. package/dist/collection/media/svg-imgs/play-button-dark.svg +20 -20
  179. package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
  180. package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
  181. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  182. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  183. package/dist/collection/media/svg-imgs/union.svg +3 -3
  184. package/dist/collection/utils/component.js +3 -3
  185. package/dist/collection/utils/interfaces.js +11 -11
  186. package/dist/collection/utils/utils.js +92 -92
  187. package/dist/custom-elements/index.js +5300 -5299
  188. package/dist/esm/bundle-example.entry.js +30 -30
  189. package/dist/esm/bundle-jumbotron-example.entry.js +39 -39
  190. package/dist/esm/dropdown-item.entry.js +10 -10
  191. package/dist/esm/dynamic-box-bundle.entry.js +25 -25
  192. package/dist/esm/icon-asset_16.entry.js +887 -887
  193. package/dist/esm/innovator-toggle-container.entry.js +21 -21
  194. package/dist/esm/{interfaces-c1c73092.js → interfaces-7c0243be.js} +9 -9
  195. package/dist/esm/loader.js +1 -1
  196. package/dist/esm/lottie-player.entry.js +354 -354
  197. package/dist/esm/max-width-container_3.entry.js +215 -215
  198. package/dist/esm/my-component.entry.js +15 -15
  199. package/dist/esm/polyfills/core-js.js +0 -0
  200. package/dist/esm/polyfills/dom.js +0 -0
  201. package/dist/esm/polyfills/es5-html-element.js +0 -0
  202. package/dist/esm/polyfills/index.js +0 -0
  203. package/dist/esm/polyfills/system.js +0 -0
  204. package/dist/esm/ptc-accordion-item.entry.js +83 -83
  205. package/dist/esm/ptc-accordion.entry.js +35 -35
  206. package/dist/esm/ptc-announcement.entry.js +50 -50
  207. package/dist/esm/ptc-bio-card.entry.js +24 -24
  208. package/dist/esm/ptc-card-bottom_3.entry.js +122 -122
  209. package/dist/esm/ptc-card-content.entry.js +57 -57
  210. package/dist/esm/ptc-card.entry.js +66 -66
  211. package/dist/esm/ptc-checkbox.entry.js +50 -50
  212. package/dist/esm/ptc-collapse-list.entry.js +353 -353
  213. package/dist/esm/ptc-container.entry.js +33 -33
  214. package/dist/esm/ptc-date.entry.js +50 -50
  215. package/dist/esm/ptc-dropdown.entry.js +64 -64
  216. package/dist/esm/ptc-dynamic-card.entry.js +47 -47
  217. package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
  218. package/dist/esm/ptc-filter-tag.entry.js +57 -57
  219. package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
  220. package/dist/esm/ptc-hero.entry.js +18 -18
  221. package/dist/esm/ptc-icon-list.entry.js +21 -21
  222. package/dist/esm/ptc-icon-minimize.entry.js +43 -43
  223. package/dist/esm/ptc-jumbotron.entry.js +125 -125
  224. package/dist/esm/ptc-link.entry.js +35 -35
  225. package/dist/esm/ptc-list.entry.js +49 -49
  226. package/dist/esm/ptc-lottie.entry.js +10 -10
  227. package/dist/esm/ptc-media-card.entry.js +58 -58
  228. package/dist/esm/ptc-minimized-footer.entry.js +8 -8
  229. package/dist/esm/ptc-minimized-header.entry.js +11 -11
  230. package/dist/esm/ptc-mobile-select.entry.js +53 -53
  231. package/dist/esm/ptc-modal.entry.js +150 -149
  232. package/dist/esm/ptc-nav-card.entry.js +36 -36
  233. package/dist/esm/ptc-nav-link.entry.js +36 -36
  234. package/dist/esm/ptc-nav-slider.entry.js +83 -83
  235. package/dist/esm/ptc-nav-submenu.entry.js +18 -18
  236. package/dist/esm/ptc-overlay.entry.js +23 -23
  237. package/dist/esm/ptc-pagenation.entry.js +306 -306
  238. package/dist/esm/ptc-previous-url.entry.js +11 -11
  239. package/dist/esm/ptc-pricing-block.entry.js +20 -20
  240. package/dist/esm/ptc-pricing-tabs.entry.js +124 -124
  241. package/dist/esm/ptc-quote.entry.js +23 -23
  242. package/dist/esm/ptc-readmore.entry.js +73 -73
  243. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  244. package/dist/esm/ptc-search-field.entry.js +71 -71
  245. package/dist/esm/ptc-shopping-cart.entry.js +50 -50
  246. package/dist/esm/ptc-social-share.entry.js +59 -59
  247. package/dist/esm/ptc-span.entry.js +18 -18
  248. package/dist/esm/ptc-sticky-icons.entry.js +32 -32
  249. package/dist/esm/ptc-sticky-section.entry.js +27 -27
  250. package/dist/esm/ptc-subnav-card.entry.js +15 -15
  251. package/dist/esm/ptc-subnav.entry.js +21 -21
  252. package/dist/esm/ptc-svg-btn.entry.js +95 -95
  253. package/dist/esm/ptc-tab-list.entry.js +125 -125
  254. package/dist/esm/ptc-tab.entry.js +20 -20
  255. package/dist/esm/ptc-tabs.entry.js +47 -47
  256. package/dist/esm/ptc-text-copy-with-background.entry.js +42 -42
  257. package/dist/esm/ptc-two-column-media.entry.js +15 -15
  258. package/dist/esm/ptcw-design.js +1 -1
  259. package/dist/esm/sequential-bundle-example.entry.js +100 -100
  260. package/dist/esm/sequential-bundle.entry.js +88 -88
  261. package/dist/esm/tab-content.entry.js +27 -27
  262. package/dist/esm/tab-header.entry.js +64 -64
  263. package/dist/esm/{utils-f937097d.js → utils-38decc43.js} +90 -90
  264. package/dist/ptcw-design/media/brands.svg +1381 -1381
  265. package/dist/ptcw-design/media/designer.svg +397 -397
  266. package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
  267. package/dist/ptcw-design/media/regular.svg +463 -463
  268. package/dist/ptcw-design/media/solid.svg +3013 -3013
  269. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  270. package/dist/ptcw-design/{p-e2c96087.entry.js → p-078e0f3d.entry.js} +1 -1
  271. package/dist/ptcw-design/{p-6927c111.entry.js → p-45771c7d.entry.js} +1 -1
  272. package/dist/ptcw-design/{p-ed0c7f10.entry.js → p-469482ba.entry.js} +1 -1
  273. package/dist/ptcw-design/{p-8a6acf0d.entry.js → p-4702f4e4.entry.js} +1 -1
  274. package/dist/ptcw-design/{p-a0ead888.entry.js → p-7b671286.entry.js} +1 -1
  275. package/dist/ptcw-design/{p-f9129612.entry.js → p-87d2cfab.entry.js} +1 -1
  276. package/dist/ptcw-design/{p-2414dc2a.entry.js → p-99e80637.entry.js} +1 -1
  277. package/dist/ptcw-design/p-c005febf.entry.js +1 -0
  278. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  279. package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
  280. package/dist/types/components/dynamic-box-bundle/dynamic-box-bundle.d.ts +10 -10
  281. package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
  282. package/dist/types/components/innovator-toggle-container/innovator-toggle-container.d.ts +17 -17
  283. package/dist/types/components/list-item/list-item.d.ts +16 -16
  284. package/dist/types/components/max-width-container/max-width-container.d.ts +11 -11
  285. package/dist/types/components/my-component/my-component.d.ts +16 -16
  286. package/dist/types/components/organism-bundles/bundle-example/bundle-example.d.ts +10 -10
  287. package/dist/types/components/organism-bundles/bundle-jumbotron-example/bundle-jumbotron-example.d.ts +5 -5
  288. package/dist/types/components/organism-bundles/sequential-bundle/sequential-bundle.d.ts +12 -12
  289. package/dist/types/components/organism-bundles/sequential-bundle-example/sequential-bundle-example.d.ts +16 -16
  290. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
  291. package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
  292. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +51 -51
  293. package/dist/types/components/ptc-back-to-top/ptc-back-to-top.d.ts +9 -9
  294. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +45 -45
  295. package/dist/types/components/ptc-bio-card/ptc-bio-card.d.ts +27 -27
  296. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +20 -20
  297. package/dist/types/components/ptc-button/ptc-button.d.ts +60 -60
  298. package/dist/types/components/ptc-card/ptc-card.d.ts +71 -71
  299. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  300. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +19 -19
  301. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +24 -24
  302. package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +14 -14
  303. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
  304. package/dist/types/components/ptc-container/ptc-container.d.ts +13 -13
  305. package/dist/types/components/ptc-date/ptc-date.d.ts +46 -46
  306. package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +19 -19
  307. package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +23 -23
  308. package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
  309. package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
  310. package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
  311. package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
  312. package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
  313. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +12 -12
  314. package/dist/types/components/ptc-img/ptc-img.d.ts +55 -55
  315. package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +25 -25
  316. package/dist/types/components/ptc-link/ptc-link.d.ts +40 -40
  317. package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
  318. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  319. package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +52 -52
  320. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
  321. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
  322. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +36 -36
  323. package/dist/types/components/ptc-modal/ptc-modal.d.ts +71 -67
  324. package/dist/types/components/ptc-nav-card/ptc-nav-card.d.ts +46 -46
  325. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
  326. package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +40 -40
  327. package/dist/types/components/ptc-para/ptc-para.d.ts +47 -47
  328. package/dist/types/components/ptc-picture/ptc-picture.d.ts +97 -97
  329. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +9 -9
  330. package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +7 -7
  331. package/dist/types/components/ptc-pricing-tabs/ptc-pricing-tabs.d.ts +52 -52
  332. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +39 -39
  333. package/dist/types/components/ptc-product-category/ptc-product-category.d.ts +5 -5
  334. package/dist/types/components/ptc-product-dropdown/ptc-product-dropdown.d.ts +18 -18
  335. package/dist/types/components/ptc-product-highlight-card/ptc-product-highlight-card.d.ts +23 -23
  336. package/dist/types/components/ptc-product-list/ptc-product-list.d.ts +17 -17
  337. package/dist/types/components/ptc-product-sidebar/ptc-product-sidebar.d.ts +30 -30
  338. package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
  339. package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +57 -57
  340. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  341. package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +23 -23
  342. package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
  343. package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -10
  344. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
  345. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  346. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  347. package/dist/types/components/ptc-sticky-icons/ptc-sticky-icons.d.ts +7 -7
  348. package/dist/types/components/ptc-sticky-section/ptc-sticky-section.d.ts +9 -9
  349. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +20 -20
  350. package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +19 -19
  351. package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
  352. package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
  353. package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +34 -34
  354. package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
  355. package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +59 -59
  356. package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
  357. package/dist/types/components/subnav/ptc-nav-link/ptc-nav-link.d.ts +21 -21
  358. package/dist/types/components/subnav/ptc-nav-slider/ptc-nav-slider.d.ts +11 -11
  359. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +18 -18
  360. package/dist/types/components/subnav/ptc-subnav/ptc-subnav.d.ts +7 -7
  361. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +27 -27
  362. package/dist/types/components/tab-content/tab-content.d.ts +12 -12
  363. package/dist/types/components/tab-header/tab-header.d.ts +22 -22
  364. package/dist/types/components.d.ts +138 -130
  365. package/dist/types/global.d.ts +1072 -1072
  366. package/dist/types/index.d.ts +1 -1
  367. package/dist/types/utils/component.d.ts +1 -1
  368. package/dist/types/utils/interfaces.d.ts +31 -31
  369. package/dist/types/utils/utils.d.ts +5 -5
  370. package/package.json +63 -63
  371. package/readme.md +18 -18
  372. package/dist/ptcw-design/p-b0188821.entry.js +0 -1
  373. /package/dist/ptcw-design/{p-ea875d9e.js → p-36665caa.js} +0 -0
  374. /package/dist/ptcw-design/{p-50e52c88.js → p-ee1183b2.js} +0 -0
@@ -3,954 +3,954 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-88135a6b.js');
6
- const interfaces = require('./interfaces-0ecd8027.js');
6
+ const interfaces = require('./interfaces-574e6df7.js');
7
7
 
8
8
  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}";
9
9
 
10
- const IconAsset = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.regularSprite = index.getAssetPath('./media/regular.svg');
14
- this.solidSprite = index.getAssetPath('./media/solid.svg');
15
- this.brandSprite = index.getAssetPath('./media/brands.svg');
16
- this.ptcSprite = index.getAssetPath('./media/designer.svg');
17
- this.name = undefined;
18
- this.size = 'xx-small';
19
- this.type = 'regular';
20
- this.spin = '';
21
- this.pulse = '';
22
- this.color = 'default';
23
- this.isMobileSelect = undefined;
24
- this.injectedStyle = undefined;
25
- }
26
- render() {
27
- const classMap = this.getCssClassMap();
28
- if (this.type == 'brands') {
29
- 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}` }))));
30
- }
31
- else if (this.type == 'solid') {
32
- 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}` }))));
33
- }
34
- else if (this.type == 'ptc') {
35
- 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}` }))));
36
- }
37
- else {
38
- 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}` }))));
39
- }
40
- }
41
- getCssClassMap() {
42
- return {
43
- [this.size]: true,
44
- [this.spin]: true,
45
- [this.pulse]: true,
46
- [this.color]: true,
47
- ['ismobileselect']: this.isMobileSelect ? true : false
48
- };
49
- }
50
- static get assetsDirs() { return ["media"]; }
51
- };
10
+ const IconAsset = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.regularSprite = index.getAssetPath('./media/regular.svg');
14
+ this.solidSprite = index.getAssetPath('./media/solid.svg');
15
+ this.brandSprite = index.getAssetPath('./media/brands.svg');
16
+ this.ptcSprite = index.getAssetPath('./media/designer.svg');
17
+ this.name = undefined;
18
+ this.size = 'xx-small';
19
+ this.type = 'regular';
20
+ this.spin = '';
21
+ this.pulse = '';
22
+ this.color = 'default';
23
+ this.isMobileSelect = undefined;
24
+ this.injectedStyle = undefined;
25
+ }
26
+ render() {
27
+ const classMap = this.getCssClassMap();
28
+ if (this.type == 'brands') {
29
+ 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}` }))));
30
+ }
31
+ else if (this.type == 'solid') {
32
+ 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}` }))));
33
+ }
34
+ else if (this.type == 'ptc') {
35
+ 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}` }))));
36
+ }
37
+ else {
38
+ 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}` }))));
39
+ }
40
+ }
41
+ getCssClassMap() {
42
+ return {
43
+ [this.size]: true,
44
+ [this.spin]: true,
45
+ [this.pulse]: true,
46
+ [this.color]: true,
47
+ ['ismobileselect']: this.isMobileSelect ? true : false
48
+ };
49
+ }
50
+ static get assetsDirs() { return ["media"]; }
51
+ };
52
52
  IconAsset.style = iconAssetCss;
53
53
 
54
54
  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)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}";
55
55
 
56
- const ListItem = class {
57
- constructor(hostRef) {
58
- index.registerInstance(this, hostRef);
59
- this.listType = 'list-primary';
60
- this.linkHref = undefined;
61
- this.flushBefore = false;
62
- this.linkTarget = '_self';
63
- this.color = undefined;
64
- this.styles = undefined;
65
- }
66
- render() {
67
- const classMap = this.getCssClassMap();
68
- 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)))));
69
- }
70
- getCssClassMap() {
71
- return {
72
- [this.listType]: true,
73
- ['flush-before']: this.flushBefore ? true : false,
74
- [this.color]: !!this.color ? true : false,
75
- };
76
- }
77
- };
56
+ const ListItem = class {
57
+ constructor(hostRef) {
58
+ index.registerInstance(this, hostRef);
59
+ this.listType = 'list-primary';
60
+ this.linkHref = undefined;
61
+ this.flushBefore = false;
62
+ this.linkTarget = '_self';
63
+ this.color = undefined;
64
+ this.styles = undefined;
65
+ }
66
+ render() {
67
+ const classMap = this.getCssClassMap();
68
+ 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)))));
69
+ }
70
+ getCssClassMap() {
71
+ return {
72
+ [this.listType]: true,
73
+ ['flush-before']: this.flushBefore ? true : false,
74
+ [this.color]: !!this.color ? true : false,
75
+ };
76
+ }
77
+ };
78
78
  ListItem.style = listItemCss;
79
79
 
80
80
  const ptcBackToTopCss = ":host{display:block}:host .back-to-top-button{position:fixed;bottom:140px;right:24px;width:64px;height:58px;border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);color:var(--color-gray-10);font-size:12px;font-weight:var(--ptc-font-weight-semibold);outline:none;cursor:pointer;transition:opacity 0.3s ease-in-out;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--ptc-shadow-small)}:host .back-to-top-button:hover{opacity:1}:host .arrow{margin-bottom:5px}";
81
81
 
82
- const PtcBackToTop = class {
83
- constructor(hostRef) {
84
- index.registerInstance(this, hostRef);
85
- this.handleScroll = () => {
86
- const scrollY = window.pageYOffset || document.documentElement.scrollTop;
87
- this.showButton = scrollY > window.innerHeight * 1;
88
- };
89
- this.showButton = false;
90
- }
91
- componentDidLoad() {
92
- window.addEventListener('scroll', this.handleScroll);
93
- }
94
- disconnectedCallback() {
95
- window.removeEventListener('scroll', this.handleScroll);
96
- }
97
- handleClick() {
98
- this.scrollToTop();
99
- }
100
- scrollToTop() {
101
- if ('scrollBehavior' in document.documentElement.style) {
102
- // Smooth scrolling is supported
103
- window.scrollTo({
104
- top: 0,
105
- behavior: 'smooth',
106
- });
107
- }
108
- else {
109
- // Fallback for browsers that do not support smooth scrolling
110
- window.scrollTo(0, 0);
111
- }
112
- }
113
- render() {
114
- return (index.h(index.Host, null, this.showButton && (index.h("button", { class: 'back-to-top-button', title: "Back to Top" }, index.h("span", { class: 'arrow' }, index.h("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M15.5248 11.625L8.9998 5.1L2.4748 11.625L0.112305 9.2625L8.9998 0.375L17.8873 9.2625L15.5248 11.625Z", fill: "#323B42" }))), index.h("span", { class: 'text' }, "Back to Top")))));
115
- }
116
- };
82
+ const PtcBackToTop = class {
83
+ constructor(hostRef) {
84
+ index.registerInstance(this, hostRef);
85
+ this.handleScroll = () => {
86
+ const scrollY = window.pageYOffset || document.documentElement.scrollTop;
87
+ this.showButton = scrollY > window.innerHeight * 1;
88
+ };
89
+ this.showButton = false;
90
+ }
91
+ componentDidLoad() {
92
+ window.addEventListener('scroll', this.handleScroll);
93
+ }
94
+ disconnectedCallback() {
95
+ window.removeEventListener('scroll', this.handleScroll);
96
+ }
97
+ handleClick() {
98
+ this.scrollToTop();
99
+ }
100
+ scrollToTop() {
101
+ if ('scrollBehavior' in document.documentElement.style) {
102
+ // Smooth scrolling is supported
103
+ window.scrollTo({
104
+ top: 0,
105
+ behavior: 'smooth',
106
+ });
107
+ }
108
+ else {
109
+ // Fallback for browsers that do not support smooth scrolling
110
+ window.scrollTo(0, 0);
111
+ }
112
+ }
113
+ render() {
114
+ return (index.h(index.Host, null, this.showButton && (index.h("button", { class: 'back-to-top-button', title: "Back to Top" }, index.h("span", { class: 'arrow' }, index.h("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M15.5248 11.625L8.9998 5.1L2.4748 11.625L0.112305 9.2625L8.9998 0.375L17.8873 9.2625L15.5248 11.625Z", fill: "#323B42" }))), index.h("span", { class: 'text' }, "Back to Top")))));
115
+ }
116
+ };
117
117
  PtcBackToTop.style = ptcBackToTopCss;
118
118
 
119
119
  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}";
120
120
 
121
- const PtcBreadcrumb = class {
122
- constructor(hostRef) {
123
- index.registerInstance(this, hostRef);
124
- this.position = undefined;
125
- this.removeTopMargin = false;
126
- this.color = 'white';
127
- this.styles = undefined;
128
- }
129
- render() {
130
- const classMap = this.getCssClassMap();
131
- 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)));
132
- }
133
- getCssClassMap() {
134
- return {
135
- [this.position]: !!this.position && this.position !== undefined ? true : false,
136
- ['remove-top-margin']: this.removeTopMargin ? true : false,
137
- };
138
- }
139
- };
121
+ const PtcBreadcrumb = class {
122
+ constructor(hostRef) {
123
+ index.registerInstance(this, hostRef);
124
+ this.position = undefined;
125
+ this.removeTopMargin = false;
126
+ this.color = 'white';
127
+ this.styles = undefined;
128
+ }
129
+ render() {
130
+ const classMap = this.getCssClassMap();
131
+ 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)));
132
+ }
133
+ getCssClassMap() {
134
+ return {
135
+ [this.position]: !!this.position && this.position !== undefined ? true : false,
136
+ ['remove-top-margin']: this.removeTopMargin ? true : false,
137
+ };
138
+ }
139
+ };
140
140
  PtcBreadcrumb.style = ptcBreadcrumbCss;
141
141
 
142
142
  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}";
143
143
 
144
- const PtcButton = class {
145
- constructor(hostRef) {
146
- index.registerInstance(this, hostRef);
147
- this.clickEvent = index.createEvent(this, "clickEvent", 7);
148
- this.disabled = false;
149
- this.active = false;
150
- this.type = 'button';
151
- this.color = 'ptc-primary';
152
- this.iconAnimation = '';
153
- this.iconPosition = 'icon-right';
154
- this.linkHref = undefined;
155
- this.linkTitle = undefined;
156
- this.target = '_self';
157
- this.rel = undefined;
158
- this.tabNav = 0;
159
- this.styles = undefined;
160
- }
161
- clickEventHandler() {
162
- this.clickEvent.emit();
163
- }
164
- render() {
165
- const classMap = this.getCssClassMap();
166
- const Tag = !!this.linkHref ? 'a' : 'button';
167
- 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" })))));
168
- }
169
- getCssClassMap() {
170
- return {
171
- [this.color]: true,
172
- [this.iconAnimation]: true,
173
- [this.iconPosition]: true,
174
- ['disabled']: this.disabled ? true : false,
175
- ['active']: this.active ? true : false,
176
- };
177
- }
178
- };
144
+ const PtcButton = class {
145
+ constructor(hostRef) {
146
+ index.registerInstance(this, hostRef);
147
+ this.clickEvent = index.createEvent(this, "clickEvent", 7);
148
+ this.disabled = false;
149
+ this.active = false;
150
+ this.type = 'button';
151
+ this.color = 'ptc-primary';
152
+ this.iconAnimation = '';
153
+ this.iconPosition = 'icon-right';
154
+ this.linkHref = undefined;
155
+ this.linkTitle = undefined;
156
+ this.target = '_self';
157
+ this.rel = undefined;
158
+ this.tabNav = 0;
159
+ this.styles = undefined;
160
+ }
161
+ clickEventHandler() {
162
+ this.clickEvent.emit();
163
+ }
164
+ render() {
165
+ const classMap = this.getCssClassMap();
166
+ const Tag = !!this.linkHref ? 'a' : 'button';
167
+ 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" })))));
168
+ }
169
+ getCssClassMap() {
170
+ return {
171
+ [this.color]: true,
172
+ [this.iconAnimation]: true,
173
+ [this.iconPosition]: true,
174
+ ['disabled']: this.disabled ? true : false,
175
+ ['active']: this.active ? true : false,
176
+ };
177
+ }
178
+ };
179
179
  PtcButton.style = ptcButtonCss;
180
180
 
181
181
  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}";
182
182
 
183
- const PtcPara = class {
184
- constructor(hostRef) {
185
- index.registerInstance(this, hostRef);
186
- this.fontSize = 'x-small';
187
- this.fontWeight = 'w-4';
188
- this.paraStyle = 'default';
189
- this.paraColor = 'primary-grey';
190
- this.paraLineH = 'line-height-normal';
191
- this.paraMargin = undefined;
192
- this.paraAlign = undefined;
193
- this.ellipsisLineCutoff = undefined;
194
- this.paraZIndex = undefined;
195
- this.styles = undefined;
196
- }
197
- render() {
198
- const classMap = this.getCssClassMap();
199
- const colorClass = this.addWhiteClass();
200
- const cutOff = this.getLineCuttoff();
201
- 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))));
202
- }
203
- getCssClassMap() {
204
- return {
205
- [this.fontSize]: true,
206
- [this.fontWeight]: true,
207
- [this.paraStyle]: true,
208
- [this.paraMargin]: !!this.paraMargin ? true : false,
209
- [this.paraColor]: true,
210
- [this.paraLineH]: true,
211
- [this.paraAlign]: !!this.paraAlign ? true : false,
212
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
213
- };
214
- }
215
- //WEB-2392
216
- addWhiteClass() {
217
- if (this.paraColor == 'white') {
218
- return {
219
- [this.paraColor]: true,
220
- };
221
- }
222
- }
223
- getLineCuttoff() {
224
- let result;
225
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
226
- result = {
227
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
228
- };
229
- }
230
- return result;
231
- }
232
- get el() { return index.getElement(this); }
233
- };
183
+ const PtcPara = class {
184
+ constructor(hostRef) {
185
+ index.registerInstance(this, hostRef);
186
+ this.fontSize = 'x-small';
187
+ this.fontWeight = 'w-4';
188
+ this.paraStyle = 'default';
189
+ this.paraColor = 'primary-grey';
190
+ this.paraLineH = 'line-height-normal';
191
+ this.paraMargin = undefined;
192
+ this.paraAlign = undefined;
193
+ this.ellipsisLineCutoff = undefined;
194
+ this.paraZIndex = undefined;
195
+ this.styles = undefined;
196
+ }
197
+ render() {
198
+ const classMap = this.getCssClassMap();
199
+ const colorClass = this.addWhiteClass();
200
+ const cutOff = this.getLineCuttoff();
201
+ 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))));
202
+ }
203
+ getCssClassMap() {
204
+ return {
205
+ [this.fontSize]: true,
206
+ [this.fontWeight]: true,
207
+ [this.paraStyle]: true,
208
+ [this.paraMargin]: !!this.paraMargin ? true : false,
209
+ [this.paraColor]: true,
210
+ [this.paraLineH]: true,
211
+ [this.paraAlign]: !!this.paraAlign ? true : false,
212
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
213
+ };
214
+ }
215
+ //WEB-2392
216
+ addWhiteClass() {
217
+ if (this.paraColor == 'white') {
218
+ return {
219
+ [this.paraColor]: true,
220
+ };
221
+ }
222
+ }
223
+ getLineCuttoff() {
224
+ let result;
225
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
226
+ result = {
227
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
228
+ };
229
+ }
230
+ return result;
231
+ }
232
+ get el() { return index.getElement(this); }
233
+ };
234
234
  PtcPara.style = ptcParaCss;
235
235
 
236
236
  const ptcPictureCss = ":host{display:block;overflow:hidden}:host .inline{display:inline}:host .inline-block{display:inline-block}:host .block{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}";
237
237
 
238
- const PtcPicture = class {
239
- constructor(hostRef) {
240
- index.registerInstance(this, hostRef);
241
- this.src = undefined;
242
- this.alt = 'image';
243
- this.sizeXs = '510x340';
244
- this.sizeSm = '1240x496';
245
- this.sizeMd = '1366x500';
246
- this.sizeLg = '1920x1080';
247
- this.oldSrc = undefined;
248
- this.imagePosition = 'static';
249
- this.borderRadius = undefined;
250
- this.height = undefined;
251
- this.width = undefined;
252
- this.objectFit = 'cover';
253
- this.isFullHeight = false;
254
- this.isFullWidth = false;
255
- this.styles = undefined;
256
- this.imageAlignment = 'left';
257
- this.maxWidth = undefined;
258
- this.displayImage = 'block';
259
- }
260
- WindowResize() {
261
- this.addIntersectionObserver();
262
- }
263
- componentDidLoad() {
264
- this.addIntersectionObserver();
265
- }
266
- componentWillUpdate() {
267
- if (this.src !== this.oldSrc) {
268
- this.addIntersectionObserver();
269
- }
270
- this.oldSrc = this.src;
271
- }
272
- //lazy-loading
273
- addIntersectionObserver() {
274
- if (!this.src) {
275
- return;
276
- }
277
- if ('IntersectionObserver' in window) {
278
- let lazyLoadImages = new IntersectionObserver(entries => {
279
- entries.forEach(entry => {
280
- if (entry.isIntersecting) {
281
- const image = this.el.shadowRoot.querySelector('img');
282
- image.src = this.setResponsiveBg();
283
- lazyLoadImages.unobserve(image);
284
- }
285
- });
286
- });
287
- let tempImg = this.el.shadowRoot.querySelector('img');
288
- if (tempImg) {
289
- lazyLoadImages.observe(tempImg);
290
- }
291
- }
292
- else {
293
- // fall back to setTimeout for Safari and IE
294
- setTimeout(() => {
295
- const image = this.el.shadowRoot.querySelector('img');
296
- image.src = this.setResponsiveBg();
297
- image.onload = () => {
298
- image.removeAttribute('data-src');
299
- console.log('loaded fallback');
300
- };
301
- }, 5000);
302
- }
303
- }
304
- //responsive image
305
- setResponsiveBg() {
306
- // Define local variables
307
- let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
308
- for (var i = 0, len = backgrounds.length; i < len; i++) {
309
- // Set current variables
310
- el = backgrounds[i];
311
- elData = el.getAttribute('data-' + currentBreakpoint);
312
- if (elData !== null) {
313
- return elData;
314
- }
315
- else {
316
- if (typeof console == 'object') {
317
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
318
- }
319
- }
320
- }
321
- }
322
- render() {
323
- const classMap = this.getCssClassMap();
324
- const classMapHost = this.getCssClassMapHost();
325
- 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)));
326
- }
327
- getCurrentBreakPoints() {
328
- // Define local variables
329
- let doc = window.document, temp = doc.createElement('div'), env;
330
- // Append test node
331
- doc.body.appendChild(temp);
332
- // Loop through breakpoints
333
- for (let i = interfaces.ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
334
- env = interfaces.ResponsivePictureVariables.envs[i];
335
- // Add classes
336
- temp.className = 'hidden-' + env;
337
- // Found breakpoint
338
- if (temp.offsetParent === null) {
339
- // Remove our test node
340
- doc.body.removeChild(temp);
341
- // Return current breakpoint
342
- return env;
343
- }
344
- }
345
- // Breakpoint not found, try fallback
346
- doc.body.removeChild(temp);
347
- return this.getFallbackBreakpoint();
348
- }
349
- getFallbackBreakpoint() {
350
- if (window.matchMedia('(min-width: 992px)').matches) {
351
- return 'lg';
352
- }
353
- else if (window.matchMedia('(min-width: 768px)').matches) {
354
- return 'md';
355
- }
356
- else if (window.matchMedia('(min-width: 576px)').matches) {
357
- return 'sm';
358
- }
359
- else {
360
- return 'xs';
361
- }
362
- }
363
- getCssClassMap() {
364
- return {
365
- [this.borderRadius]: this.borderRadius ? true : false,
366
- [this.objectFit]: true,
367
- [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
368
- [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
369
- [this.displayImage]: true
370
- };
371
- }
372
- getCssClassMapHost() {
373
- return {
374
- [this.imagePosition]: true,
375
- [this.imageAlignment]: true,
376
- };
377
- }
378
- get el() { return index.getElement(this); }
379
- };
238
+ const PtcPicture = class {
239
+ constructor(hostRef) {
240
+ index.registerInstance(this, hostRef);
241
+ this.src = undefined;
242
+ this.alt = 'image';
243
+ this.sizeXs = '510x340';
244
+ this.sizeSm = '1240x496';
245
+ this.sizeMd = '1366x500';
246
+ this.sizeLg = '1920x1080';
247
+ this.oldSrc = undefined;
248
+ this.imagePosition = 'static';
249
+ this.borderRadius = undefined;
250
+ this.height = undefined;
251
+ this.width = undefined;
252
+ this.objectFit = 'cover';
253
+ this.isFullHeight = false;
254
+ this.isFullWidth = false;
255
+ this.styles = undefined;
256
+ this.imageAlignment = 'left';
257
+ this.maxWidth = undefined;
258
+ this.displayImage = 'block';
259
+ }
260
+ WindowResize() {
261
+ this.addIntersectionObserver();
262
+ }
263
+ componentDidLoad() {
264
+ this.addIntersectionObserver();
265
+ }
266
+ componentWillUpdate() {
267
+ if (this.src !== this.oldSrc) {
268
+ this.addIntersectionObserver();
269
+ }
270
+ this.oldSrc = this.src;
271
+ }
272
+ //lazy-loading
273
+ addIntersectionObserver() {
274
+ if (!this.src) {
275
+ return;
276
+ }
277
+ if ('IntersectionObserver' in window) {
278
+ let lazyLoadImages = new IntersectionObserver(entries => {
279
+ entries.forEach(entry => {
280
+ if (entry.isIntersecting) {
281
+ const image = this.el.shadowRoot.querySelector('img');
282
+ image.src = this.setResponsiveBg();
283
+ lazyLoadImages.unobserve(image);
284
+ }
285
+ });
286
+ });
287
+ let tempImg = this.el.shadowRoot.querySelector('img');
288
+ if (tempImg) {
289
+ lazyLoadImages.observe(tempImg);
290
+ }
291
+ }
292
+ else {
293
+ // fall back to setTimeout for Safari and IE
294
+ setTimeout(() => {
295
+ const image = this.el.shadowRoot.querySelector('img');
296
+ image.src = this.setResponsiveBg();
297
+ image.onload = () => {
298
+ image.removeAttribute('data-src');
299
+ console.log('loaded fallback');
300
+ };
301
+ }, 5000);
302
+ }
303
+ }
304
+ //responsive image
305
+ setResponsiveBg() {
306
+ // Define local variables
307
+ let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
308
+ for (var i = 0, len = backgrounds.length; i < len; i++) {
309
+ // Set current variables
310
+ el = backgrounds[i];
311
+ elData = el.getAttribute('data-' + currentBreakpoint);
312
+ if (elData !== null) {
313
+ return elData;
314
+ }
315
+ else {
316
+ if (typeof console == 'object') {
317
+ console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
318
+ }
319
+ }
320
+ }
321
+ }
322
+ render() {
323
+ const classMap = this.getCssClassMap();
324
+ const classMapHost = this.getCssClassMapHost();
325
+ 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)));
326
+ }
327
+ getCurrentBreakPoints() {
328
+ // Define local variables
329
+ let doc = window.document, temp = doc.createElement('div'), env;
330
+ // Append test node
331
+ doc.body.appendChild(temp);
332
+ // Loop through breakpoints
333
+ for (let i = interfaces.ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
334
+ env = interfaces.ResponsivePictureVariables.envs[i];
335
+ // Add classes
336
+ temp.className = 'hidden-' + env;
337
+ // Found breakpoint
338
+ if (temp.offsetParent === null) {
339
+ // Remove our test node
340
+ doc.body.removeChild(temp);
341
+ // Return current breakpoint
342
+ return env;
343
+ }
344
+ }
345
+ // Breakpoint not found, try fallback
346
+ doc.body.removeChild(temp);
347
+ return this.getFallbackBreakpoint();
348
+ }
349
+ getFallbackBreakpoint() {
350
+ if (window.matchMedia('(min-width: 992px)').matches) {
351
+ return 'lg';
352
+ }
353
+ else if (window.matchMedia('(min-width: 768px)').matches) {
354
+ return 'md';
355
+ }
356
+ else if (window.matchMedia('(min-width: 576px)').matches) {
357
+ return 'sm';
358
+ }
359
+ else {
360
+ return 'xs';
361
+ }
362
+ }
363
+ getCssClassMap() {
364
+ return {
365
+ [this.borderRadius]: this.borderRadius ? true : false,
366
+ [this.objectFit]: true,
367
+ [this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
368
+ [this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
369
+ [this.displayImage]: true
370
+ };
371
+ }
372
+ getCssClassMapHost() {
373
+ return {
374
+ [this.imagePosition]: true,
375
+ [this.imageAlignment]: true,
376
+ };
377
+ }
378
+ get el() { return index.getElement(this); }
379
+ };
380
380
  PtcPicture.style = ptcPictureCss;
381
381
 
382
382
  const ptcProductCardCss = ":host{display:block;background-color:var(--color-white);padding-top:var(--ptc-layout-spacing-03);border-radius:var(--ptc-border-radius-standard);margin-bottom:var(--ptc-layout-spacing-03)}:host .card-wrap{display:flex;align-items:center}:host .card-wrap ptc-picture{display:none}@media only screen and (min-width: 768px){:host .card-wrap ptc-picture{display:block;margin-left:var(--ptc-element-spacing-06);min-width:38px;max-width:38px}}:host .card-wrap .content{padding:0 38px 24px 38px}@media only screen and (min-width: 768px){:host .card-wrap .content{padding:0 44px 24px 44px}}@media only screen and (min-width: 1200px){:host .card-wrap .content{display:flex;align-items:center}}:host .card-wrap .content .cta-wrap{margin-left:0;margin-top:24px}@media only screen and (min-width: 1200px){:host .card-wrap .content .cta-wrap{margin-top:0px;margin-left:44px}}:host .toggle-btn{padding:16px;text-align:center;border-top:1px solid var(--color-gray-04);display:block;cursor:pointer}:host .toggle-btn svg{margin-right:var(--ptc-element-spacing-03);vertical-align:middle;margin-top:-2px}:host .product-highlights-container{padding:0px 20px 16px 20px}";
383
383
 
384
- const PtcProductCard = class {
385
- constructor(hostRef) {
386
- index.registerInstance(this, hostRef);
387
- this.isOpenProductHighlight = index.createEvent(this, "isOpenProductHighlight", 7);
388
- this.cardTitle = undefined;
389
- this.cardImage = undefined;
390
- this.cardImageAltText = undefined;
391
- this.cardDescription = undefined;
392
- this.cardCtaText = undefined;
393
- this.toggleCtaTitle = undefined;
394
- this.isOpen = false;
395
- this.isSlotEmpty = undefined;
396
- }
397
- togglePanel() {
398
- this.isOpen = !this.isOpen;
399
- }
400
- render() {
401
- return (index.h(index.Host, null, index.h("div", { class: "card-wrap" }, index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "display-image": "inline-block", width: '38' }), index.h("div", { class: "content" }, index.h("div", null, index.h("ptc-title", { type: 'h3', upperline: "no-upperline", "title-size": "medium", "title-weight": "w-8", "title-height": "densest", "title-margin": 'margin-flush' }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "16", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))), index.h("div", { class: 'cta-wrap' }, index.h("slot", { name: "cta" })))), this.toggleCtaTitle &&
402
- index.h("ptc-para", { class: "toggle-btn", "font-size": "small", "para-margin": "margin-flush", "para-line-h": "line-height-p", "para-z-index": "z-auto", onClick: () => this.togglePanel() }, index.h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("rect", { width: "18", height: "18", rx: "4", fill: "#00890B" }), this.isOpen ? (index.h("g", { "clip-path": "url(#clip0_187_1609)" }, index.h("path", { d: "M4.86365 7.98779V10.0128H14.3824V7.98779H4.86365Z", fill: "white" }))) : (index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.953 4.23535H8.04712V8.04712H4.23535V9.953H8.04712V13.7648H9.953V9.953H13.7648V8.04712H9.953V4.23535Z", fill: "white" })), index.h("defs", null, index.h("clipPath", { id: "clip0_187_1609" }, index.h("rect", { width: "9.51872", height: "9.52941", fill: "white", transform: "translate(4.86365 4.23535)" })))), index.h("span", null, this.toggleCtaTitle)), this.isOpen && (index.h("div", { class: 'product-highlights-container' }, index.h("slot", null)))));
403
- }
404
- get hostElement() { return index.getElement(this); }
405
- };
384
+ const PtcProductCard = class {
385
+ constructor(hostRef) {
386
+ index.registerInstance(this, hostRef);
387
+ this.isOpenProductHighlight = index.createEvent(this, "isOpenProductHighlight", 7);
388
+ this.cardTitle = undefined;
389
+ this.cardImage = undefined;
390
+ this.cardImageAltText = undefined;
391
+ this.cardDescription = undefined;
392
+ this.cardCtaText = undefined;
393
+ this.toggleCtaTitle = undefined;
394
+ this.isOpen = false;
395
+ this.isSlotEmpty = undefined;
396
+ }
397
+ togglePanel() {
398
+ this.isOpen = !this.isOpen;
399
+ }
400
+ render() {
401
+ return (index.h(index.Host, null, index.h("div", { class: "card-wrap" }, index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "display-image": "inline-block", width: '38' }), index.h("div", { class: "content" }, index.h("div", null, index.h("ptc-title", { type: 'h3', upperline: "no-upperline", "title-size": "medium", "title-weight": "w-8", "title-height": "densest", "title-margin": 'margin-flush' }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "16", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))), index.h("div", { class: 'cta-wrap' }, index.h("slot", { name: "cta" })))), this.toggleCtaTitle &&
402
+ index.h("ptc-para", { class: "toggle-btn", "font-size": "small", "para-margin": "margin-flush", "para-line-h": "line-height-p", "para-z-index": "z-auto", onClick: () => this.togglePanel() }, index.h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("rect", { width: "18", height: "18", rx: "4", fill: "#00890B" }), this.isOpen ? (index.h("g", { "clip-path": "url(#clip0_187_1609)" }, index.h("path", { d: "M4.86365 7.98779V10.0128H14.3824V7.98779H4.86365Z", fill: "white" }))) : (index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.953 4.23535H8.04712V8.04712H4.23535V9.953H8.04712V13.7648H9.953V9.953H13.7648V8.04712H9.953V4.23535Z", fill: "white" })), index.h("defs", null, index.h("clipPath", { id: "clip0_187_1609" }, index.h("rect", { width: "9.51872", height: "9.52941", fill: "white", transform: "translate(4.86365 4.23535)" })))), index.h("span", null, this.toggleCtaTitle)), this.isOpen && (index.h("div", { class: 'product-highlights-container' }, index.h("slot", null)))));
403
+ }
404
+ get hostElement() { return index.getElement(this); }
405
+ };
406
406
  PtcProductCard.style = ptcProductCardCss;
407
407
 
408
408
  const ptcProductCategoryCss = ":host{display:block;padding-bottom:var(--ptc-layout-spacing-03)}";
409
409
 
410
- const PtcProductCategory = class {
411
- constructor(hostRef) {
412
- index.registerInstance(this, hostRef);
413
- this.categoryTitle = undefined;
414
- this.categoryDescription = undefined;
415
- }
416
- render() {
417
- return (index.h(index.Host, null, index.h("ptc-title", { type: "h2", upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "xx-large" }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-999", description: this.categoryTitle, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "x-small" }), index.h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), index.h("ptc-para", { "para-margin": "margin-flush", "font-size": "small", "para-line-h": "line-height-p", "font-weight": "w-5", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "9", "z-index": "z-999", description: this.categoryDescription, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "large" }), index.h("slot", null)));
418
- }
419
- };
410
+ const PtcProductCategory = class {
411
+ constructor(hostRef) {
412
+ index.registerInstance(this, hostRef);
413
+ this.categoryTitle = undefined;
414
+ this.categoryDescription = undefined;
415
+ }
416
+ render() {
417
+ return (index.h(index.Host, null, index.h("ptc-title", { type: "h2", upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "xx-large" }, index.h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-999", description: this.categoryTitle, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "x-small" }), index.h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), index.h("ptc-para", { "para-margin": "margin-flush", "font-size": "small", "para-line-h": "line-height-p", "font-weight": "w-5", "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "9", "z-index": "z-999", description: this.categoryDescription, position: "bottom", width: 'full-width' })), index.h("ptc-spacer", { size: "large" }), index.h("slot", null)));
418
+ }
419
+ };
420
420
  PtcProductCategory.style = ptcProductCategoryCss;
421
421
 
422
422
  const ptcProductDropdownCss = ":host{display:block;margin-top:4px;background-color:var(--color-white)}:host .hidden{display:none}:host .dropdown{position:relative;display:inline-block;width:100%;font-size:16px}:host .dropdown .dropdown-toggle{padding:0.5rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);cursor:pointer;display:flex;align-items:center;justify-content:space-between}:host .dropdown .dropdown-toggle .dropdown-placeholder{font-size:14px;color:var(--color-gray-07)}:host .caret{display:inline-block;margin-left:0.25rem;width:0;height:0;border-top:0.4rem solid;border-right:0.4rem solid transparent;border-left:0.4rem solid transparent;vertical-align:middle}:host .dropdown-menu{position:absolute;top:100%;left:0;min-width:10rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);z-index:105;max-height:400px;overflow-y:auto}:host .dropdown-menu::-webkit-scrollbar{width:5px}:host .dropdown-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .dropdown-menu::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .checkbox-label{display:flex;align-items:flex-start;padding:6px 16px;cursor:pointer;font-size:14px}:host .checkbox-label:first-child{padding-top:20px}:host .checkbox-label:last-child{padding-bottom:20px}:host .checkbox-label input[type=checkbox]{min-width:20px;margin-right:8px;width:20px;height:20px;margin-top:0}";
423
423
 
424
- const PtcProductDropdown = class {
425
- constructor(hostRef) {
426
- index.registerInstance(this, hostRef);
427
- this.selectedValues = index.createEvent(this, "selectedValues", 7);
428
- this.dropdownTouched = index.createEvent(this, "dropdownTouched", 7);
429
- this.internalOptions = undefined;
430
- this.newOptions = undefined;
431
- this.selectedOptions = [];
432
- this.placeholder = undefined;
433
- this.isOpen = false;
434
- }
435
- parseOptions() {
436
- let options = Array.from(this.hostElement.querySelectorAll('span'));
437
- if (options) {
438
- this.internalOptions = options.map((option) => {
439
- return option.textContent;
440
- });
441
- }
442
- }
443
- toggleDropdown() {
444
- this.isOpen = !this.isOpen;
445
- this.dropdownTouched.emit({
446
- 'sender': this,
447
- 'isOpen': this.isOpen
448
- });
449
- }
450
- handleSearchResult(event) {
451
- const { sender, searchTerm } = event.detail;
452
- if (sender) {
453
- if (searchTerm === "") {
454
- this.selectedOptions = [];
455
- this.isOpen = false;
456
- }
457
- }
458
- }
459
- handleinputChanged(event) {
460
- const { sender } = event.detail;
461
- if (sender) {
462
- this.selectedOptions = [];
463
- this.isOpen = false;
464
- }
465
- }
466
- handleCheckboxChange(option) {
467
- const index = this.selectedOptions.indexOf(option);
468
- if (index > -1) {
469
- this.selectedOptions.splice(index, 1);
470
- //console.log(this.selectedOptions);
471
- this.selectedValues.emit({
472
- 'sender': this,
473
- 'selectedOptions': this.selectedOptions
474
- });
475
- }
476
- else {
477
- this.selectedOptions.push(option);
478
- //console.log(this.selectedOptions);
479
- this.selectedValues.emit({
480
- 'sender': this,
481
- 'selectedOptions': this.selectedOptions
482
- });
483
- }
484
- }
485
- componentWillLoad() {
486
- this.parseOptions();
487
- }
488
- render() {
489
- return (index.h(index.Host, null, index.h("div", { class: "dropdown" }, index.h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown() }, index.h("span", { class: "dropdown-placeholder" }, this.placeholder), index.h("span", { class: "caret" })), this.isOpen && (index.h("div", { class: "dropdown-menu" }, this.internalOptions.map((option) => (index.h("label", { class: "checkbox-label" }, index.h("input", { type: "checkbox", checked: this.selectedOptions.includes(option), onChange: () => this.handleCheckboxChange(option) }), option)))))), index.h("div", { class: "hidden" }, index.h("slot", null))));
490
- }
491
- get hostElement() { return index.getElement(this); }
492
- };
424
+ const PtcProductDropdown = class {
425
+ constructor(hostRef) {
426
+ index.registerInstance(this, hostRef);
427
+ this.selectedValues = index.createEvent(this, "selectedValues", 7);
428
+ this.dropdownTouched = index.createEvent(this, "dropdownTouched", 7);
429
+ this.internalOptions = undefined;
430
+ this.newOptions = undefined;
431
+ this.selectedOptions = [];
432
+ this.placeholder = undefined;
433
+ this.isOpen = false;
434
+ }
435
+ parseOptions() {
436
+ let options = Array.from(this.hostElement.querySelectorAll('span'));
437
+ if (options) {
438
+ this.internalOptions = options.map((option) => {
439
+ return option.textContent;
440
+ });
441
+ }
442
+ }
443
+ toggleDropdown() {
444
+ this.isOpen = !this.isOpen;
445
+ this.dropdownTouched.emit({
446
+ 'sender': this,
447
+ 'isOpen': this.isOpen
448
+ });
449
+ }
450
+ handleSearchResult(event) {
451
+ const { sender, searchTerm } = event.detail;
452
+ if (sender) {
453
+ if (searchTerm === "") {
454
+ this.selectedOptions = [];
455
+ this.isOpen = false;
456
+ }
457
+ }
458
+ }
459
+ handleinputChanged(event) {
460
+ const { sender } = event.detail;
461
+ if (sender) {
462
+ this.selectedOptions = [];
463
+ this.isOpen = false;
464
+ }
465
+ }
466
+ handleCheckboxChange(option) {
467
+ const index = this.selectedOptions.indexOf(option);
468
+ if (index > -1) {
469
+ this.selectedOptions.splice(index, 1);
470
+ //console.log(this.selectedOptions);
471
+ this.selectedValues.emit({
472
+ 'sender': this,
473
+ 'selectedOptions': this.selectedOptions
474
+ });
475
+ }
476
+ else {
477
+ this.selectedOptions.push(option);
478
+ //console.log(this.selectedOptions);
479
+ this.selectedValues.emit({
480
+ 'sender': this,
481
+ 'selectedOptions': this.selectedOptions
482
+ });
483
+ }
484
+ }
485
+ componentWillLoad() {
486
+ this.parseOptions();
487
+ }
488
+ render() {
489
+ return (index.h(index.Host, null, index.h("div", { class: "dropdown" }, index.h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown() }, index.h("span", { class: "dropdown-placeholder" }, this.placeholder), index.h("span", { class: "caret" })), this.isOpen && (index.h("div", { class: "dropdown-menu" }, this.internalOptions.map((option) => (index.h("label", { class: "checkbox-label" }, index.h("input", { type: "checkbox", checked: this.selectedOptions.includes(option), onChange: () => this.handleCheckboxChange(option) }), option)))))), index.h("div", { class: "hidden" }, index.h("slot", null))));
490
+ }
491
+ get hostElement() { return index.getElement(this); }
492
+ };
493
493
  PtcProductDropdown.style = ptcProductDropdownCss;
494
494
 
495
495
  const ptcProductHighlightCardCss = ":host{max-width:300px;display:block;padding:18px 10px 12px 10px;border:1px solid var(--color-gray-04);border-radius:var(--ptc-border-radius-standard);margin:auto}:host ptc-picture{min-height:100px}";
496
496
 
497
- const PtcProductHighlightCard = class {
498
- constructor(hostRef) {
499
- index.registerInstance(this, hostRef);
500
- this.cardTitle = undefined;
501
- this.cardImage = undefined;
502
- this.cardImageAltText = undefined;
503
- this.cardDescription = undefined;
504
- }
505
- render() {
506
- return (index.h(index.Host, null, index.h("ptc-title", { type: 'h4', upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "small", "text-align": 'center' }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "2", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "image-alignment": "center", width: "69", "display-image": "inline-block", styles: "img{margin: 12px auto 18px auto}" }), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-align": 'left', "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))));
507
- }
508
- };
497
+ const PtcProductHighlightCard = class {
498
+ constructor(hostRef) {
499
+ index.registerInstance(this, hostRef);
500
+ this.cardTitle = undefined;
501
+ this.cardImage = undefined;
502
+ this.cardImageAltText = undefined;
503
+ this.cardDescription = undefined;
504
+ }
505
+ render() {
506
+ return (index.h(index.Host, null, index.h("ptc-title", { type: 'h4', upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "small", "text-align": 'center' }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "2", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), index.h("ptc-picture", { alt: "image-test", src: this.cardImage, "image-alignment": "center", width: "69", "display-image": "inline-block", styles: "img{margin: 12px auto 18px auto}" }), index.h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-align": 'left', "para-z-index": "z-auto" }, index.h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))));
507
+ }
508
+ };
509
509
  PtcProductHighlightCard.style = ptcProductHighlightCardCss;
510
510
 
511
511
  const ptcProductListCss = ":host{display:block;padding-bottom:52px}@media only screen and (min-width: 992px){:host{padding-bottom:102px}}:host .no-result-wrap{display:none}:host .no-result-wrap.show{display:block}:host .no-result-wrap .no-result{display:flex;justify-content:center;align-items:center;min-height:160px;padding:20px;text-align:center}";
512
512
 
513
- const PtcProductList = class {
514
- constructor(hostRef) {
515
- index.registerInstance(this, hostRef);
516
- this.clearCtaClicked = index.createEvent(this, "clearCtaClicked", 7);
517
- }
518
- handleSearchResult(event) {
519
- const { sender, searchTerm } = event.detail;
520
- if (sender) {
521
- this.sortCards(searchTerm);
522
- }
523
- }
524
- handleMultipleSearchResult(event) {
525
- const { sender, selectedOptions } = event.detail;
526
- if (sender) {
527
- this.sortMultipleCards(selectedOptions);
528
- }
529
- }
530
- handleEmptyResult(event) {
531
- const { sender, searchTerm } = event.detail;
532
- if (sender) {
533
- this.noresultSection.classList.add('show');
534
- this.sortCards(searchTerm);
535
- }
536
- }
537
- sortMultipleCards(searchItems) {
538
- const categoryList = Array.from(this.hostElement.querySelectorAll('ptc-product-category'));
539
- categoryList.forEach((category) => {
540
- const categoryTitle = category.getAttribute('category-title');
541
- const productList = Array.from(category.querySelectorAll('ptc-product-card'));
542
- if (searchItems.length > 0) {
543
- const shouldDisplayCategory = searchItems.some(searchItem => categoryTitle && categoryTitle.includes(searchItem));
544
- category.style.display = shouldDisplayCategory ? 'block' : 'none';
545
- if (shouldDisplayCategory) {
546
- productList.forEach(product => {
547
- product.style.display = 'block';
548
- });
549
- }
550
- else {
551
- productList.forEach(product => {
552
- const productTitle = product.getAttribute('card-title');
553
- const shouldDisplayProduct = searchItems.some(searchItem => productTitle && productTitle.includes(searchItem));
554
- product.style.display = shouldDisplayProduct ? 'block' : 'none';
555
- });
556
- }
557
- }
558
- else {
559
- category.style.display = 'block';
560
- productList.forEach(product => {
561
- product.style.display = 'block';
562
- });
563
- }
564
- });
565
- }
566
- // Sorting the
567
- sortCards(searchItem) {
568
- const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
569
- categoryList.forEach((category) => {
570
- const categoryTitle = category.getAttribute('category-title');
571
- const productList = category.querySelectorAll('ptc-product-card');
572
- category.style.display = 'none';
573
- if (searchItem === '') {
574
- category.style.display = 'block';
575
- productList.forEach(product => {
576
- product.style.display = 'block';
577
- });
578
- this.noresultSection.classList.remove('show');
579
- }
580
- else {
581
- const searchItemLowerCase = searchItem; //
582
- if (searchItemLowerCase === categoryTitle) {
583
- category.style.display = 'block';
584
- productList.forEach(product => {
585
- product.style.display = 'block';
586
- });
587
- }
588
- else {
589
- productList.forEach(product => {
590
- const productTitle = product.getAttribute('card-title');
591
- product.style.display = 'none';
592
- if (searchItemLowerCase === productTitle) {
593
- product.style.display = 'block';
594
- category.style.display = 'block';
595
- }
596
- });
597
- }
598
- }
599
- });
600
- }
601
- componentDidLoad() {
602
- this.addIds();
603
- this.noresultSection = this.hostElement.shadowRoot.querySelector('.no-result-wrap');
604
- this.productList = this.hostElement.shadowRoot.querySelector('.product-list');
605
- }
606
- handleClick(event) {
607
- this.clearCtaClicked.emit({
608
- 'sender': this,
609
- 'event': event,
610
- });
611
- }
612
- // Adding id to the category and product cards
613
- addIds() {
614
- const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
615
- categoryList.forEach((category) => {
616
- const categoryTitle = category.getAttribute('category-title');
617
- category.setAttribute('id', categoryTitle);
618
- const productList = category.querySelectorAll('ptc-product-card');
619
- productList.forEach(product => {
620
- const productTitle = product.getAttribute('card-title');
621
- product.setAttribute('id', productTitle);
622
- });
623
- });
624
- }
625
- render() {
626
- return (index.h(index.Host, null, index.h("div", { class: "product-list" }, index.h("slot", null)), index.h("div", { class: "no-result-wrap" }, index.h("div", { class: "no-result" }, index.h("div", null, index.h("ptc-title", { type: 'h3', "title-margin": "margin-flush", upperline: 'no-upperline', "title-size": "large" }, "No Results Found"), index.h("ptc-para", { "font-size": "x-small" }, "Try changing or removing some of your filters"), index.h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => { this.handleClick(e); } }, "Clear Filters"))))));
627
- }
628
- get hostElement() { return index.getElement(this); }
629
- };
513
+ const PtcProductList = class {
514
+ constructor(hostRef) {
515
+ index.registerInstance(this, hostRef);
516
+ this.clearCtaClicked = index.createEvent(this, "clearCtaClicked", 7);
517
+ }
518
+ handleSearchResult(event) {
519
+ const { sender, searchTerm } = event.detail;
520
+ if (sender) {
521
+ this.sortCards(searchTerm);
522
+ }
523
+ }
524
+ handleMultipleSearchResult(event) {
525
+ const { sender, selectedOptions } = event.detail;
526
+ if (sender) {
527
+ this.sortMultipleCards(selectedOptions);
528
+ }
529
+ }
530
+ handleEmptyResult(event) {
531
+ const { sender, searchTerm } = event.detail;
532
+ if (sender) {
533
+ this.noresultSection.classList.add('show');
534
+ this.sortCards(searchTerm);
535
+ }
536
+ }
537
+ sortMultipleCards(searchItems) {
538
+ const categoryList = Array.from(this.hostElement.querySelectorAll('ptc-product-category'));
539
+ categoryList.forEach((category) => {
540
+ const categoryTitle = category.getAttribute('category-title');
541
+ const productList = Array.from(category.querySelectorAll('ptc-product-card'));
542
+ if (searchItems.length > 0) {
543
+ const shouldDisplayCategory = searchItems.some(searchItem => categoryTitle && categoryTitle.includes(searchItem));
544
+ category.style.display = shouldDisplayCategory ? 'block' : 'none';
545
+ if (shouldDisplayCategory) {
546
+ productList.forEach(product => {
547
+ product.style.display = 'block';
548
+ });
549
+ }
550
+ else {
551
+ productList.forEach(product => {
552
+ const productTitle = product.getAttribute('card-title');
553
+ const shouldDisplayProduct = searchItems.some(searchItem => productTitle && productTitle.includes(searchItem));
554
+ product.style.display = shouldDisplayProduct ? 'block' : 'none';
555
+ });
556
+ }
557
+ }
558
+ else {
559
+ category.style.display = 'block';
560
+ productList.forEach(product => {
561
+ product.style.display = 'block';
562
+ });
563
+ }
564
+ });
565
+ }
566
+ // Sorting the
567
+ sortCards(searchItem) {
568
+ const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
569
+ categoryList.forEach((category) => {
570
+ const categoryTitle = category.getAttribute('category-title');
571
+ const productList = category.querySelectorAll('ptc-product-card');
572
+ category.style.display = 'none';
573
+ if (searchItem === '') {
574
+ category.style.display = 'block';
575
+ productList.forEach(product => {
576
+ product.style.display = 'block';
577
+ });
578
+ this.noresultSection.classList.remove('show');
579
+ }
580
+ else {
581
+ const searchItemLowerCase = searchItem; //
582
+ if (searchItemLowerCase === categoryTitle) {
583
+ category.style.display = 'block';
584
+ productList.forEach(product => {
585
+ product.style.display = 'block';
586
+ });
587
+ }
588
+ else {
589
+ productList.forEach(product => {
590
+ const productTitle = product.getAttribute('card-title');
591
+ product.style.display = 'none';
592
+ if (searchItemLowerCase === productTitle) {
593
+ product.style.display = 'block';
594
+ category.style.display = 'block';
595
+ }
596
+ });
597
+ }
598
+ }
599
+ });
600
+ }
601
+ componentDidLoad() {
602
+ this.addIds();
603
+ this.noresultSection = this.hostElement.shadowRoot.querySelector('.no-result-wrap');
604
+ this.productList = this.hostElement.shadowRoot.querySelector('.product-list');
605
+ }
606
+ handleClick(event) {
607
+ this.clearCtaClicked.emit({
608
+ 'sender': this,
609
+ 'event': event,
610
+ });
611
+ }
612
+ // Adding id to the category and product cards
613
+ addIds() {
614
+ const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
615
+ categoryList.forEach((category) => {
616
+ const categoryTitle = category.getAttribute('category-title');
617
+ category.setAttribute('id', categoryTitle);
618
+ const productList = category.querySelectorAll('ptc-product-card');
619
+ productList.forEach(product => {
620
+ const productTitle = product.getAttribute('card-title');
621
+ product.setAttribute('id', productTitle);
622
+ });
623
+ });
624
+ }
625
+ render() {
626
+ return (index.h(index.Host, null, index.h("div", { class: "product-list" }, index.h("slot", null)), index.h("div", { class: "no-result-wrap" }, index.h("div", { class: "no-result" }, index.h("div", null, index.h("ptc-title", { type: 'h3', "title-margin": "margin-flush", upperline: 'no-upperline', "title-size": "large" }, "No Results Found"), index.h("ptc-para", { "font-size": "x-small" }, "Try changing or removing some of your filters"), index.h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => { this.handleClick(e); } }, "Clear Filters"))))));
627
+ }
628
+ get hostElement() { return index.getElement(this); }
629
+ };
630
630
  PtcProductList.style = ptcProductListCss;
631
631
 
632
632
  const ptcProductSidebarCss = ":host{display:block;position:relative}:host .hide{display:none !important}:host .white-box{padding:12px;background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard)}:host .sort-wrap{display:block}@media only screen and (min-width: 480px){:host .sort-wrap{display:flex;justify-content:space-between}}@media only screen and (min-width: 992px){:host .sort-wrap{display:block}}:host .filter-result-wrap label{font-size:var(--ptc-font-size-x-small);font-weight:600}:host .filter-result-wrap .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}@media only screen and (min-width: 992px){:host .filter-result-wrap .result-header{margin-bottom:26px}}:host .filter-result-wrap .result-header .clear-cta{cursor:pointer;display:none;color:var(--color-gray-07);font-size:var(--ptc-font-size-x-small);text-decoration:underline}:host .filter-result-wrap .result-header .clear-cta.show{display:block}:host .filter-result-wrap .typeahead-input{box-sizing:border-box;margin-bottom:14px;width:100%;margin-right:0}@media only screen and (min-width: 480px){:host .filter-result-wrap .typeahead-input{margin-right:40px}}@media only screen and (min-width: 992px){:host .filter-result-wrap .typeahead-input{margin-right:0}}:host .filter-result-wrap .typeahead-input .input-wrap{position:relative}:host .filter-result-wrap .typeahead-input .input-wrap svg{position:absolute;left:8px;top:8px}:host .filter-result-wrap .typeahead-input .input-wrap input{margin-top:4px;padding:8px 8px 8px 34px;display:block;width:100%;box-sizing:border-box;border:1px solid var(--color-gray-03);font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap{position:relative;width:100%}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions{border:1px solid var(--color-gray-03);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);background-color:var(--color-white);position:absolute;z-index:105;top:0;margin:0;width:100%;box-sizing:border-box;padding:0;max-height:400px;overflow-y:auto}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar{width:5px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li{list-style:none;padding:10px 16px;cursor:pointer;display:block;font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:first-child{padding-top:20px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:last-child{padding-bottom:20px}:host .filter-result-wrap .dropdwon-filter{margin-bottom:10px;width:100%}:host .product-list-wrap{display:none}@media only screen and (min-width: 992px){:host .product-list-wrap{display:block}}:host .product-list-wrap .category-list{display:block;padding:12px 4px;font-size:var(--ptc-font-size-x-small)}:host .product-list-wrap .category-list ptc-para{padding-bottom:4px;display:block}:host .product-list-wrap .category-list ul{padding-left:20px;margin:0}";
633
633
 
634
- const PtcProductSidebar = class {
635
- constructor(hostRef) {
636
- index.registerInstance(this, hostRef);
637
- this.selectedResult = index.createEvent(this, "selectedResult", 7);
638
- this.clearsearch = index.createEvent(this, "clearsearch", 7);
639
- this.inputChanged = index.createEvent(this, "inputChanged", 7);
640
- this.emptyResult = index.createEvent(this, "emptyResult", 7);
641
- this.searchTerm = '';
642
- this.suggestions = [];
643
- this.suggestionList = [];
644
- }
645
- componentWillLoad() {
646
- this.getDomData();
647
- }
648
- componentDidLoad() {
649
- this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
650
- this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
651
- }
652
- // Getting category title and products list
653
- getDomData() {
654
- const categoryList = document.querySelectorAll('ptc-product-category');
655
- categoryList.forEach(category => {
656
- let categoryTitle = category.getAttribute('category-title');
657
- let categoryObject = { categoryName: categoryTitle, products: [] };
658
- this.suggestionList.push(categoryObject);
659
- let productList = category.querySelectorAll('ptc-product-card');
660
- productList.forEach(product => {
661
- let productTitle = product.getAttribute('card-title');
662
- categoryObject.products.push(productTitle);
663
- });
664
- });
665
- }
666
- handleInputChange(event) {
667
- const inputElement = event.target;
668
- this.searchTerm = inputElement.value.toLocaleLowerCase();
669
- this.productListWrap.classList.add('hide');
670
- this.clearBtn.classList.add('show');
671
- this.getSuggestions();
672
- this.inputChanged.emit({
673
- 'sender': this,
674
- 'event': event,
675
- });
676
- }
677
- getSuggestions() {
678
- const searchTerm = this.searchTerm.toLowerCase();
679
- const suggestions = this.suggestionList.reduce((acc, item) => {
680
- if (item.categoryName.toLowerCase().includes(searchTerm)) {
681
- acc.push(item.categoryName); // Include the category if it matches the search term
682
- }
683
- const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
684
- if (matchedProducts.length > 0) {
685
- acc.push(...matchedProducts); // Include the matching products
686
- }
687
- return acc;
688
- }, []);
689
- this.suggestions = suggestions;
690
- }
691
- handleSelectSuggestion(suggestion, event) {
692
- this.searchTerm = suggestion;
693
- //this.serachInput.setAttribute('value', this.searchTerm);
694
- this.selectedResult.emit({
695
- 'sender': this,
696
- 'event': event,
697
- 'searchTerm': this.searchTerm
698
- });
699
- }
700
- handleKeyUp(e) {
701
- const inputElement = e.target;
702
- this.searchTerm = inputElement.value.toLocaleLowerCase();
703
- if (e.keyCode === 13 && this.suggestions.length == 0) {
704
- console.log('Enter key pressed');
705
- this.emptyResult.emit({
706
- 'sender': this,
707
- 'event': e,
708
- });
709
- }
710
- }
711
- clearSearch(event) {
712
- let input = this.hostElement.shadowRoot.querySelector('input');
713
- this.productListWrap.classList.remove('hide');
714
- this.clearBtn.classList.remove('show');
715
- if (input) {
716
- input.value = "";
717
- }
718
- this.suggestions = [];
719
- this.clearsearch.emit({
720
- 'sender': this,
721
- 'event': event,
722
- 'searchTerm': input.value
723
- });
724
- }
725
- handleDropdownTouched(event) {
726
- const { sender, isOpen } = event.detail;
727
- if (sender) {
728
- this.productListWrap.classList.add('hide');
729
- this.clearBtn.classList.add('show');
730
- if (isOpen) {
731
- let input = this.hostElement.shadowRoot.querySelector('input');
732
- if (input) {
733
- input.value = "";
734
- }
735
- }
736
- }
737
- }
738
- handleClick() {
739
- this.suggestions = [];
740
- }
741
- handleclearCtaClicked(event) {
742
- const { sender, event: mouseEvent, } = event.detail;
743
- if (sender) {
744
- this.clearSearch(mouseEvent);
745
- }
746
- }
747
- render() {
748
- return (index.h(index.Host, { class: 'search-box' }, index.h("div", { class: "filter-result-wrap white-box" }, index.h("div", { class: "result-header" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Filter Result"), index.h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, "Clear")), index.h("div", { class: "sort-wrap" }, index.h("div", { class: "typeahead-input" }, index.h("label", { htmlFor: "searchBox" }, "Filter"), index.h("div", { class: "input-wrap" }, index.h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), index.h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
749
- index.h("div", { class: "suggestion-wrap" }, index.h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (index.h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), index.h("div", { class: "dropdwon-filter" }, index.h("label", { htmlFor: "tech-dropdown" }, "Technology"), index.h("ptc-product-dropdown", { placeholder: "Select a technology", id: "tech-dropdown" }, this.suggestionList.map((item) => (index.h("span", null, item.categoryName))))))), index.h("ptc-spacer", { size: "large" }), index.h("div", { class: "product-list-wrap white-box" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Jump to Product"), this.suggestionList.map((item) => (index.h("div", { class: "category-list" }, index.h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, index.h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, item.categoryName)), index.h("div", { class: "product-list" }, index.h("ul", null, item.products.map((product) => (index.h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
750
- }
751
- get hostElement() { return index.getElement(this); }
752
- };
634
+ const PtcProductSidebar = class {
635
+ constructor(hostRef) {
636
+ index.registerInstance(this, hostRef);
637
+ this.selectedResult = index.createEvent(this, "selectedResult", 7);
638
+ this.clearsearch = index.createEvent(this, "clearsearch", 7);
639
+ this.inputChanged = index.createEvent(this, "inputChanged", 7);
640
+ this.emptyResult = index.createEvent(this, "emptyResult", 7);
641
+ this.searchTerm = '';
642
+ this.suggestions = [];
643
+ this.suggestionList = [];
644
+ }
645
+ componentWillLoad() {
646
+ this.getDomData();
647
+ }
648
+ componentDidLoad() {
649
+ this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
650
+ this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
651
+ }
652
+ // Getting category title and products list
653
+ getDomData() {
654
+ const categoryList = document.querySelectorAll('ptc-product-category');
655
+ categoryList.forEach(category => {
656
+ let categoryTitle = category.getAttribute('category-title');
657
+ let categoryObject = { categoryName: categoryTitle, products: [] };
658
+ this.suggestionList.push(categoryObject);
659
+ let productList = category.querySelectorAll('ptc-product-card');
660
+ productList.forEach(product => {
661
+ let productTitle = product.getAttribute('card-title');
662
+ categoryObject.products.push(productTitle);
663
+ });
664
+ });
665
+ }
666
+ handleInputChange(event) {
667
+ const inputElement = event.target;
668
+ this.searchTerm = inputElement.value.toLocaleLowerCase();
669
+ this.productListWrap.classList.add('hide');
670
+ this.clearBtn.classList.add('show');
671
+ this.getSuggestions();
672
+ this.inputChanged.emit({
673
+ 'sender': this,
674
+ 'event': event,
675
+ });
676
+ }
677
+ getSuggestions() {
678
+ const searchTerm = this.searchTerm.toLowerCase();
679
+ const suggestions = this.suggestionList.reduce((acc, item) => {
680
+ if (item.categoryName.toLowerCase().includes(searchTerm)) {
681
+ acc.push(item.categoryName); // Include the category if it matches the search term
682
+ }
683
+ const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
684
+ if (matchedProducts.length > 0) {
685
+ acc.push(...matchedProducts); // Include the matching products
686
+ }
687
+ return acc;
688
+ }, []);
689
+ this.suggestions = suggestions;
690
+ }
691
+ handleSelectSuggestion(suggestion, event) {
692
+ this.searchTerm = suggestion;
693
+ //this.serachInput.setAttribute('value', this.searchTerm);
694
+ this.selectedResult.emit({
695
+ 'sender': this,
696
+ 'event': event,
697
+ 'searchTerm': this.searchTerm
698
+ });
699
+ }
700
+ handleKeyUp(e) {
701
+ const inputElement = e.target;
702
+ this.searchTerm = inputElement.value.toLocaleLowerCase();
703
+ if (e.keyCode === 13 && this.suggestions.length == 0) {
704
+ console.log('Enter key pressed');
705
+ this.emptyResult.emit({
706
+ 'sender': this,
707
+ 'event': e,
708
+ });
709
+ }
710
+ }
711
+ clearSearch(event) {
712
+ let input = this.hostElement.shadowRoot.querySelector('input');
713
+ this.productListWrap.classList.remove('hide');
714
+ this.clearBtn.classList.remove('show');
715
+ if (input) {
716
+ input.value = "";
717
+ }
718
+ this.suggestions = [];
719
+ this.clearsearch.emit({
720
+ 'sender': this,
721
+ 'event': event,
722
+ 'searchTerm': input.value
723
+ });
724
+ }
725
+ handleDropdownTouched(event) {
726
+ const { sender, isOpen } = event.detail;
727
+ if (sender) {
728
+ this.productListWrap.classList.add('hide');
729
+ this.clearBtn.classList.add('show');
730
+ if (isOpen) {
731
+ let input = this.hostElement.shadowRoot.querySelector('input');
732
+ if (input) {
733
+ input.value = "";
734
+ }
735
+ }
736
+ }
737
+ }
738
+ handleClick() {
739
+ this.suggestions = [];
740
+ }
741
+ handleclearCtaClicked(event) {
742
+ const { sender, event: mouseEvent, } = event.detail;
743
+ if (sender) {
744
+ this.clearSearch(mouseEvent);
745
+ }
746
+ }
747
+ render() {
748
+ return (index.h(index.Host, { class: 'search-box' }, index.h("div", { class: "filter-result-wrap white-box" }, index.h("div", { class: "result-header" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Filter Result"), index.h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, "Clear")), index.h("div", { class: "sort-wrap" }, index.h("div", { class: "typeahead-input" }, index.h("label", { htmlFor: "searchBox" }, "Filter"), index.h("div", { class: "input-wrap" }, index.h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), index.h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
749
+ index.h("div", { class: "suggestion-wrap" }, index.h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (index.h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), index.h("div", { class: "dropdwon-filter" }, index.h("label", { htmlFor: "tech-dropdown" }, "Technology"), index.h("ptc-product-dropdown", { placeholder: "Select a technology", id: "tech-dropdown" }, this.suggestionList.map((item) => (index.h("span", null, item.categoryName))))))), index.h("ptc-spacer", { size: "large" }), index.h("div", { class: "product-list-wrap white-box" }, index.h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Jump to Product"), this.suggestionList.map((item) => (index.h("div", { class: "category-list" }, index.h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, index.h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, item.categoryName)), index.h("div", { class: "product-list" }, index.h("ul", null, item.products.map((product) => (index.h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
750
+ }
751
+ get hostElement() { return index.getElement(this); }
752
+ };
753
753
  PtcProductSidebar.style = ptcProductSidebarCss;
754
754
 
755
755
  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}}";
756
756
 
757
- const PtcSpacer = class {
758
- constructor(hostRef) {
759
- index.registerInstance(this, hostRef);
760
- this.breakpoint = '';
761
- this.size = 'medium';
762
- this.direction = 'vertical';
763
- }
764
- render() {
765
- const classMap = this.getCssClassMap();
766
- return (index.h(index.Host, { class: classMap }));
767
- }
768
- getCssClassMap() {
769
- return {
770
- [this.size]: true,
771
- ['ptc-spacer-horizontal']: this.direction === 'horizontal',
772
- ['ptc-spacer-vertical']: this.direction === 'vertical',
773
- ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
774
- ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
775
- ['ptc-spacer-small']: this.breakpoint === 'small',
776
- ['ptc-spacer-medium']: this.breakpoint === 'medium',
777
- ['ptc-spacer-large']: this.breakpoint === 'large',
778
- ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
779
- ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
780
- ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
781
- };
782
- }
783
- };
757
+ const PtcSpacer = class {
758
+ constructor(hostRef) {
759
+ index.registerInstance(this, hostRef);
760
+ this.breakpoint = '';
761
+ this.size = 'medium';
762
+ this.direction = 'vertical';
763
+ }
764
+ render() {
765
+ const classMap = this.getCssClassMap();
766
+ return (index.h(index.Host, { class: classMap }));
767
+ }
768
+ getCssClassMap() {
769
+ return {
770
+ [this.size]: true,
771
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
772
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
773
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
774
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
775
+ ['ptc-spacer-small']: this.breakpoint === 'small',
776
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
777
+ ['ptc-spacer-large']: this.breakpoint === 'large',
778
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
779
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
780
+ ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
781
+ };
782
+ }
783
+ };
784
784
  PtcSpacer.style = ptcSpacerCss;
785
785
 
786
786
  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-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.densest.sc-ptc-title h1.sc-ptc-title,div.densest.sc-ptc-title h2.sc-ptc-title,div.densest.sc-ptc-title h3.sc-ptc-title,div.densest.sc-ptc-title h4.sc-ptc-title,div.densest.sc-ptc-title h5.sc-ptc-title,div.densest.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-densest)}div.denser.sc-ptc-title h1.sc-ptc-title,div.denser.sc-ptc-title h2.sc-ptc-title,div.denser.sc-ptc-title h3.sc-ptc-title,div.denser.sc-ptc-title h4.sc-ptc-title,div.denser.sc-ptc-title h5.sc-ptc-title,div.denser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-denser)}div.dense.sc-ptc-title h1.sc-ptc-title,div.dense.sc-ptc-title h2.sc-ptc-title,div.dense.sc-ptc-title h3.sc-ptc-title,div.dense.sc-ptc-title h4.sc-ptc-title,div.dense.sc-ptc-title h5.sc-ptc-title,div.dense.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-dense)}div.normal.sc-ptc-title h1.sc-ptc-title,div.normal.sc-ptc-title h2.sc-ptc-title,div.normal.sc-ptc-title h3.sc-ptc-title,div.normal.sc-ptc-title h4.sc-ptc-title,div.normal.sc-ptc-title h5.sc-ptc-title,div.normal.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-normal)}div.loose.sc-ptc-title h1.sc-ptc-title,div.loose.sc-ptc-title h2.sc-ptc-title,div.loose.sc-ptc-title h3.sc-ptc-title,div.loose.sc-ptc-title h4.sc-ptc-title,div.loose.sc-ptc-title h5.sc-ptc-title,div.loose.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-loose)}div.looser.sc-ptc-title h1.sc-ptc-title,div.looser.sc-ptc-title h2.sc-ptc-title,div.looser.sc-ptc-title h3.sc-ptc-title,div.looser.sc-ptc-title h4.sc-ptc-title,div.looser.sc-ptc-title h5.sc-ptc-title,div.looser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-looser)}div.paragraph.sc-ptc-title h1.sc-ptc-title,div.paragraph.sc-ptc-title h2.sc-ptc-title,div.paragraph.sc-ptc-title h3.sc-ptc-title,div.paragraph.sc-ptc-title h4.sc-ptc-title,div.paragraph.sc-ptc-title h5.sc-ptc-title,div.paragraph.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-paragraph)}div.black.sc-ptc-title h1.sc-ptc-title,div.black.sc-ptc-title h2.sc-ptc-title,div.black.sc-ptc-title h3.sc-ptc-title,div.black.sc-ptc-title h4.sc-ptc-title,div.black.sc-ptc-title h5.sc-ptc-title,div.black.sc-ptc-title h6.sc-ptc-title{color:var(--color-black)}div.white.sc-ptc-title h1.sc-ptc-title,div.white.sc-ptc-title h2.sc-ptc-title,div.white.sc-ptc-title h3.sc-ptc-title,div.white.sc-ptc-title h4.sc-ptc-title,div.white.sc-ptc-title h5.sc-ptc-title,div.white.sc-ptc-title h6.sc-ptc-title{color:var(--color-white)}div.gray-1.sc-ptc-title h1.sc-ptc-title,div.gray-1.sc-ptc-title h2.sc-ptc-title,div.gray-1.sc-ptc-title h3.sc-ptc-title,div.gray-1.sc-ptc-title h4.sc-ptc-title,div.gray-1.sc-ptc-title h5.sc-ptc-title,div.gray-1.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-01)}div.gray.sc-ptc-title h1.sc-ptc-title,div.gray.sc-ptc-title h2.sc-ptc-title,div.gray.sc-ptc-title h3.sc-ptc-title,div.gray.sc-ptc-title h4.sc-ptc-title,div.gray.sc-ptc-title h5.sc-ptc-title,div.gray.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-10)}div.gray-darker.sc-ptc-title h1.sc-ptc-title,div.gray-darker.sc-ptc-title h2.sc-ptc-title,div.gray-darker.sc-ptc-title h3.sc-ptc-title,div.gray-darker.sc-ptc-title h4.sc-ptc-title,div.gray-darker.sc-ptc-title h5.sc-ptc-title,div.gray-darker.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-11)}div.ellipsis-boxing.sc-ptc-title h1.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h2.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h3.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h4.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h5.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h6.sc-ptc-title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}div.block.sc-ptc-title h1.sc-ptc-title,div.block.sc-ptc-title h2.sc-ptc-title,div.block.sc-ptc-title h3.sc-ptc-title,div.block.sc-ptc-title h4.sc-ptc-title,div.block.sc-ptc-title h5.sc-ptc-title,div.block.sc-ptc-title h6.sc-ptc-title{display:block}";
787
787
 
788
- const PtcTitle = class {
789
- constructor(hostRef) {
790
- index.registerInstance(this, hostRef);
791
- this.isPlmHub = false;
792
- this.type = 'h2';
793
- this.textAlign = undefined;
794
- this.upperline = 'dotted';
795
- this.titleShadow = undefined;
796
- this.titleColor = 'gray';
797
- this.titleMargin = undefined;
798
- this.titleWeight = undefined;
799
- this.titleSize = undefined;
800
- this.titleHeight = 'paragraph';
801
- this.styles = undefined;
802
- this.ellipsisLineCutoff = undefined;
803
- this.titleDisplay = 'inline-block';
804
- }
805
- render() {
806
- const classMap = this.getCssClassMap();
807
- const cutOff = this.getLineCuttoff();
808
- let TagType;
809
- switch (this.type) {
810
- case 'h1':
811
- TagType = 'h1';
812
- break;
813
- case 'h3':
814
- TagType = 'h3';
815
- break;
816
- case 'h4':
817
- TagType = 'h4';
818
- break;
819
- case 'h5':
820
- TagType = 'h5';
821
- break;
822
- case 'h6':
823
- TagType = 'h6';
824
- break;
825
- default:
826
- TagType = 'h2';
827
- }
828
- 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)))));
829
- }
830
- getCssClassMap() {
831
- return {
832
- [this.textAlign]: !!this.textAlign ? true : false,
833
- [this.upperline]: true,
834
- [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
835
- [this.titleMargin]: !!this.titleMargin ? true : false,
836
- [this.titleShadow]: !!this.titleShadow ? true : false,
837
- [this.titleWeight]: !!this.titleWeight ? true : false,
838
- [this.titleSize]: !!this.titleSize ? true : false,
839
- [this.titleHeight]: !!this.titleHeight ? true : false,
840
- [this.titleColor]: !!this.titleColor ? true : false,
841
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
842
- [this.titleDisplay]: !!this.titleDisplay ? true : false,
843
- };
844
- }
845
- getLineCuttoff() {
846
- let result;
847
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
848
- result = {
849
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
850
- };
851
- }
852
- return result;
853
- }
854
- };
788
+ const PtcTitle = class {
789
+ constructor(hostRef) {
790
+ index.registerInstance(this, hostRef);
791
+ this.isPlmHub = false;
792
+ this.type = 'h2';
793
+ this.textAlign = undefined;
794
+ this.upperline = 'dotted';
795
+ this.titleShadow = undefined;
796
+ this.titleColor = 'gray';
797
+ this.titleMargin = undefined;
798
+ this.titleWeight = undefined;
799
+ this.titleSize = undefined;
800
+ this.titleHeight = 'paragraph';
801
+ this.styles = undefined;
802
+ this.ellipsisLineCutoff = undefined;
803
+ this.titleDisplay = 'inline-block';
804
+ }
805
+ render() {
806
+ const classMap = this.getCssClassMap();
807
+ const cutOff = this.getLineCuttoff();
808
+ let TagType;
809
+ switch (this.type) {
810
+ case 'h1':
811
+ TagType = 'h1';
812
+ break;
813
+ case 'h3':
814
+ TagType = 'h3';
815
+ break;
816
+ case 'h4':
817
+ TagType = 'h4';
818
+ break;
819
+ case 'h5':
820
+ TagType = 'h5';
821
+ break;
822
+ case 'h6':
823
+ TagType = 'h6';
824
+ break;
825
+ default:
826
+ TagType = 'h2';
827
+ }
828
+ 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)))));
829
+ }
830
+ getCssClassMap() {
831
+ return {
832
+ [this.textAlign]: !!this.textAlign ? true : false,
833
+ [this.upperline]: true,
834
+ [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
835
+ [this.titleMargin]: !!this.titleMargin ? true : false,
836
+ [this.titleShadow]: !!this.titleShadow ? true : false,
837
+ [this.titleWeight]: !!this.titleWeight ? true : false,
838
+ [this.titleSize]: !!this.titleSize ? true : false,
839
+ [this.titleHeight]: !!this.titleHeight ? true : false,
840
+ [this.titleColor]: !!this.titleColor ? true : false,
841
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
842
+ [this.titleDisplay]: !!this.titleDisplay ? true : false,
843
+ };
844
+ }
845
+ getLineCuttoff() {
846
+ let result;
847
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
848
+ result = {
849
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
850
+ };
851
+ }
852
+ return result;
853
+ }
854
+ };
855
855
  PtcTitle.style = ptcTitleCss;
856
856
 
857
- 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}.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}@media only screen and (min-width: 480px){.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}}";
858
-
859
- const PtcTooltip = class {
860
- constructor(hostRef) {
861
- index.registerInstance(this, hostRef);
862
- this.textDisplay = 'inline';
863
- this.maxLength = 45;
864
- this.textLines = undefined;
865
- this.description = 'This is a tooltip text placeholder';
866
- this.zIndex = 'z-auto';
867
- this.position = 'bottom';
868
- this.styles = undefined;
869
- this.mode = 'text-only';
870
- this.theme = 'standard';
871
- this.width = 'default';
872
- this.hideOnMobile = false;
873
- this.isSmallScreen = undefined;
874
- }
875
- addTruncatedClass() {
876
- const appRoot = this.el;
877
- const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
878
- text.forEach(t => {
879
- t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
880
- });
881
- }
882
- windowResize() {
883
- this.verifiyScreenSize();
884
- }
885
- verifiyScreenSize() {
886
- this.isSmallScreen = window.innerWidth < 768;
887
- }
888
- // Created this function to initialize the truncate function on specific elements like tabs
889
- enableAddTruncatedClass(element) {
890
- const allTabHeaders = document.querySelectorAll(element);
891
- for (const element of Array.from(allTabHeaders)) {
892
- let tabHeader = element;
893
- if (tabHeader) {
894
- tabHeader.addEventListener('click', () => {
895
- setTimeout(() => {
896
- this.addTruncatedClass();
897
- }, 100);
898
- });
899
- }
900
- }
901
- }
902
- componentWillLoad() {
903
- this.verifiyScreenSize();
904
- }
905
- componentDidLoad() {
906
- //this.addTruncatedClass();
907
- setTimeout(() => {
908
- this.addTruncatedClass();
909
- }, 1000);
910
- this.enableAddTruncatedClass('tab-header');
911
- this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
912
- this.enableAddTruncatedClass('ptc-product-card');
913
- document.addEventListener('readystatechange', () => {
914
- if (document.readyState === 'complete') {
915
- this.addTruncatedClass();
916
- }
917
- });
918
- }
919
- render() {
920
- if (this.mode == 'wrapper') {
921
- 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))));
922
- }
923
- else {
924
- const classMap = this.getCssClassMap();
925
- const cutOff = this.getLineCuttoff();
926
- let truncatedText = this.description.substring(0, this.maxLength);
927
- if (this.description.length > this.maxLength) {
928
- const lastSpace = truncatedText.lastIndexOf(' ');
929
- truncatedText = truncatedText.substring(0, lastSpace);
930
- truncatedText += '... ';
931
- }
932
- return (index.h(index.Host, { class: this.textDisplay + " " + this.width }, 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)))));
933
- }
934
- }
935
- getCssClassMap() {
936
- return {
937
- // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
938
- ['text-ellipsis']: true,
939
- [this.zIndex]: this.description.length > this.maxLength ? true : false,
940
- ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
941
- };
942
- }
943
- getLineCuttoff() {
944
- let result;
945
- if (this.textLines && this.textLines > 0) {
946
- result = {
947
- ['-webkit-line-clamp']: `${this.textLines}`,
948
- };
949
- }
950
- return result;
951
- }
952
- get el() { return index.getElement(this); }
953
- };
857
+ 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;bottom:unset !important;transform:translate(100%, 8px) !important}}.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}.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}@media only screen and (min-width: 480px){.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}}";
858
+
859
+ const PtcTooltip = class {
860
+ constructor(hostRef) {
861
+ index.registerInstance(this, hostRef);
862
+ this.textDisplay = 'inline';
863
+ this.maxLength = 45;
864
+ this.textLines = undefined;
865
+ this.description = 'This is a tooltip text placeholder';
866
+ this.zIndex = 'z-auto';
867
+ this.position = 'bottom';
868
+ this.styles = undefined;
869
+ this.mode = 'text-only';
870
+ this.theme = 'standard';
871
+ this.width = 'default';
872
+ this.hideOnMobile = false;
873
+ this.isSmallScreen = undefined;
874
+ }
875
+ addTruncatedClass() {
876
+ const appRoot = this.el;
877
+ const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
878
+ text.forEach(t => {
879
+ t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
880
+ });
881
+ }
882
+ windowResize() {
883
+ this.verifiyScreenSize();
884
+ }
885
+ verifiyScreenSize() {
886
+ this.isSmallScreen = window.innerWidth < 768;
887
+ }
888
+ // Created this function to initialize the truncate function on specific elements like tabs
889
+ enableAddTruncatedClass(element) {
890
+ const allTabHeaders = document.querySelectorAll(element);
891
+ for (const element of Array.from(allTabHeaders)) {
892
+ let tabHeader = element;
893
+ if (tabHeader) {
894
+ tabHeader.addEventListener('click', () => {
895
+ setTimeout(() => {
896
+ this.addTruncatedClass();
897
+ }, 100);
898
+ });
899
+ }
900
+ }
901
+ }
902
+ componentWillLoad() {
903
+ this.verifiyScreenSize();
904
+ }
905
+ componentDidLoad() {
906
+ //this.addTruncatedClass();
907
+ setTimeout(() => {
908
+ this.addTruncatedClass();
909
+ }, 1000);
910
+ this.enableAddTruncatedClass('tab-header');
911
+ this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
912
+ this.enableAddTruncatedClass('ptc-product-card');
913
+ document.addEventListener('readystatechange', () => {
914
+ if (document.readyState === 'complete') {
915
+ this.addTruncatedClass();
916
+ }
917
+ });
918
+ }
919
+ render() {
920
+ if (this.mode == 'wrapper') {
921
+ 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))));
922
+ }
923
+ else {
924
+ const classMap = this.getCssClassMap();
925
+ const cutOff = this.getLineCuttoff();
926
+ let truncatedText = this.description.substring(0, this.maxLength);
927
+ if (this.description.length > this.maxLength) {
928
+ const lastSpace = truncatedText.lastIndexOf(' ');
929
+ truncatedText = truncatedText.substring(0, lastSpace);
930
+ truncatedText += '... ';
931
+ }
932
+ return (index.h(index.Host, { class: this.textDisplay + " " + this.width }, 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)))));
933
+ }
934
+ }
935
+ getCssClassMap() {
936
+ return {
937
+ // ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
938
+ ['text-ellipsis']: true,
939
+ [this.zIndex]: this.description.length > this.maxLength ? true : false,
940
+ ['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
941
+ };
942
+ }
943
+ getLineCuttoff() {
944
+ let result;
945
+ if (this.textLines && this.textLines > 0) {
946
+ result = {
947
+ ['-webkit-line-clamp']: `${this.textLines}`,
948
+ };
949
+ }
950
+ return result;
951
+ }
952
+ get el() { return index.getElement(this); }
953
+ };
954
954
  PtcTooltip.style = ptcTooltipCss;
955
955
 
956
956
  exports.icon_asset = IconAsset;