@ptcwebops/ptcw-design 6.4.33-beta → 6.4.34-beta

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 (160) hide show
  1. package/dist/cjs/buying-option-cards-slider.cjs.entry.js +1 -1
  2. package/dist/cjs/event-podcast-slider-example.cjs.entry.js +1 -1
  3. package/dist/cjs/featured-events-slider-example.cjs.entry.js +1 -1
  4. package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
  5. package/dist/cjs/icon-asset_2.cjs.entry.js +154 -0
  6. package/dist/cjs/list-item.cjs.entry.js +52 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/ptc-back-to-top.cjs.entry.js +100 -0
  9. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +63 -0
  10. package/dist/cjs/ptc-button.cjs.entry.js +117 -0
  11. package/dist/cjs/ptc-card_2.cjs.entry.js +1 -1
  12. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
  13. package/dist/cjs/ptc-icon-card-slider-example.cjs.entry.js +1 -1
  14. package/dist/cjs/ptc-icon-component.cjs.entry.js +1 -1
  15. package/dist/cjs/ptc-para.cjs.entry.js +139 -0
  16. package/dist/cjs/ptc-picture.cjs.entry.js +185 -0
  17. package/dist/cjs/ptc-product-card.cjs.entry.js +61 -0
  18. package/dist/cjs/ptc-product-category.cjs.entry.js +20 -0
  19. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +80 -0
  20. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +28 -0
  21. package/dist/cjs/ptc-product-list.cjs.entry.js +172 -0
  22. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +178 -0
  23. package/dist/cjs/ptc-readmore.cjs.entry.js +186 -0
  24. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  25. package/dist/cjs/ptc-title.cjs.entry.js +161 -0
  26. package/dist/cjs/ptc-tooltip.cjs.entry.js +113 -0
  27. package/dist/cjs/ptcw-design.cjs.js +1 -1
  28. package/dist/cjs/storefront-enhanced-product-list-alt-example.cjs.entry.js +1 -1
  29. package/dist/cjs/storefront-enhanced-product-list-example.cjs.entry.js +1 -1
  30. package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.css +11 -16
  31. package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +11 -16
  32. package/dist/collection/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.css +11 -16
  33. package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +11 -16
  34. package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.css +11 -16
  35. package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.css +11 -16
  36. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +11 -16
  37. package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +11 -16
  38. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +4 -4
  39. package/dist/collection/components/ptc-seo-title/ptc-seo-title.js +3 -3
  40. package/dist/custom-elements/index.js +9 -9
  41. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  42. package/dist/esm/blog-detail-layout.entry.js +1 -1
  43. package/dist/esm/blogs-search-section.entry.js +1 -1
  44. package/dist/esm/buying-option-cards-slider.entry.js +1 -1
  45. package/dist/esm/event-podcast-slider-example.entry.js +1 -1
  46. package/dist/esm/featured-events-slider-example.entry.js +1 -1
  47. package/dist/esm/homepage-jumbotron.entry.js +2 -2
  48. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  49. package/dist/esm/icon-asset_2.entry.js +149 -0
  50. package/dist/esm/innovator-toggle-container.entry.js +1 -1
  51. package/dist/esm/{interfaces-7c0243be.js → interfaces-4caedd26.js} +1 -1
  52. package/dist/esm/list-item.entry.js +48 -0
  53. package/dist/esm/loader.js +1 -1
  54. package/dist/esm/most-popular-news.entry.js +1 -1
  55. package/dist/esm/my-component.entry.js +1 -1
  56. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  57. package/dist/esm/ptc-back-to-top.entry.js +96 -0
  58. package/dist/esm/ptc-background-video.entry.js +1 -1
  59. package/dist/esm/ptc-breadcrumb.entry.js +59 -0
  60. package/dist/esm/ptc-button.entry.js +113 -0
  61. package/dist/esm/ptc-card_2.entry.js +1 -1
  62. package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
  63. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  64. package/dist/esm/ptc-form-checkbox_4.entry.js +1 -1
  65. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  66. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  67. package/dist/esm/ptc-icon-card-slider-example.entry.js +1 -1
  68. package/dist/esm/ptc-icon-card.entry.js +1 -1
  69. package/dist/esm/ptc-icon-component.entry.js +1 -1
  70. package/dist/esm/ptc-img.entry.js +1 -1
  71. package/dist/esm/ptc-link.entry.js +1 -1
  72. package/dist/esm/ptc-media-card.entry.js +1 -1
  73. package/dist/esm/ptc-para.entry.js +135 -0
  74. package/dist/esm/ptc-picture.entry.js +181 -0
  75. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  76. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  77. package/dist/esm/ptc-product-card.entry.js +57 -0
  78. package/dist/esm/ptc-product-category.entry.js +16 -0
  79. package/dist/esm/ptc-product-dropdown.entry.js +76 -0
  80. package/dist/esm/ptc-product-highlight-card.entry.js +24 -0
  81. package/dist/esm/ptc-product-list.entry.js +168 -0
  82. package/dist/esm/ptc-product-sidebar.entry.js +174 -0
  83. package/dist/esm/ptc-readmore.entry.js +182 -0
  84. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  85. package/dist/esm/ptc-spacer.entry.js +34 -0
  86. package/dist/esm/ptc-title.entry.js +157 -0
  87. package/dist/esm/ptc-tooltip.entry.js +109 -0
  88. package/dist/esm/ptcw-design.js +1 -1
  89. package/dist/esm/storefront-enhanced-product-list-alt-example.entry.js +1 -1
  90. package/dist/esm/storefront-enhanced-product-list-example.entry.js +1 -1
  91. package/dist/esm/{utils-a64ba942.js → utils-bdd0cc16.js} +1 -1
  92. package/dist/ptcw-design/p-00c5879b.entry.js +1 -0
  93. package/dist/ptcw-design/p-03a1e1a5.entry.js +1 -0
  94. package/dist/ptcw-design/p-068b64a1.entry.js +1 -0
  95. package/dist/ptcw-design/p-0ea22cdc.entry.js +1 -0
  96. package/dist/ptcw-design/p-183ba1ca.entry.js +1 -0
  97. package/dist/ptcw-design/p-1acd3617.entry.js +1 -0
  98. package/dist/ptcw-design/p-1b3394a7.entry.js +1 -0
  99. package/dist/ptcw-design/p-2e288e60.entry.js +1 -0
  100. package/dist/ptcw-design/{p-0824f503.entry.js → p-2efd18d8.entry.js} +1 -1
  101. package/dist/ptcw-design/{p-681d26ef.entry.js → p-2f7b6437.entry.js} +1 -1
  102. package/dist/ptcw-design/p-2f82de8f.entry.js +1 -0
  103. package/dist/ptcw-design/p-36d6e662.entry.js +1 -0
  104. package/dist/ptcw-design/p-4313edfb.entry.js +1 -0
  105. package/dist/ptcw-design/p-47aa1583.entry.js +1 -0
  106. package/dist/ptcw-design/p-5119fb48.entry.js +1 -0
  107. package/dist/ptcw-design/p-561a622f.entry.js +1 -0
  108. package/dist/ptcw-design/{p-ed49544c.entry.js → p-562a3e36.entry.js} +1 -1
  109. package/dist/ptcw-design/{p-fa045097.entry.js → p-5b00a563.entry.js} +1 -1
  110. package/dist/ptcw-design/{p-fd269576.entry.js → p-5dd9b00c.entry.js} +1 -1
  111. package/dist/ptcw-design/p-674c828e.entry.js +1 -0
  112. package/dist/ptcw-design/p-709cc1f0.entry.js +1 -0
  113. package/dist/ptcw-design/{p-ee1183b2.js → p-711bcdad.js} +1 -1
  114. package/dist/ptcw-design/p-73293d32.entry.js +1 -0
  115. package/dist/ptcw-design/{p-bdb2e42c.entry.js → p-75c8fceb.entry.js} +1 -1
  116. package/dist/ptcw-design/{p-7524411a.entry.js → p-7777753a.entry.js} +1 -1
  117. package/dist/ptcw-design/{p-a31f22a1.entry.js → p-804dac0c.entry.js} +1 -1
  118. package/dist/ptcw-design/{p-e2da8109.entry.js → p-83dabf2e.entry.js} +1 -1
  119. package/dist/ptcw-design/{p-83632220.entry.js → p-850e6e8c.entry.js} +1 -1
  120. package/dist/ptcw-design/{p-87a9a028.entry.js → p-87215e3a.entry.js} +1 -1
  121. package/dist/ptcw-design/p-87e4c337.entry.js +1 -0
  122. package/dist/ptcw-design/p-89da867f.entry.js +1 -0
  123. package/dist/ptcw-design/p-8efaac1b.entry.js +1 -0
  124. package/dist/ptcw-design/{p-769954c9.entry.js → p-91a9f126.entry.js} +1 -1
  125. package/dist/ptcw-design/{p-7398874a.entry.js → p-9df3c31f.entry.js} +1 -1
  126. package/dist/ptcw-design/{p-2fa5814b.entry.js → p-a318a793.entry.js} +1 -1
  127. package/dist/ptcw-design/p-a3ef1660.entry.js +1 -0
  128. package/dist/ptcw-design/{p-9461c4eb.entry.js → p-a81833cd.entry.js} +1 -1
  129. package/dist/ptcw-design/{p-3596ce5a.entry.js → p-b154bbdb.entry.js} +1 -1
  130. package/dist/ptcw-design/p-b1c51eb4.entry.js +1 -0
  131. package/dist/ptcw-design/{p-fb0f4459.entry.js → p-b2fcbbd8.entry.js} +1 -1
  132. package/dist/ptcw-design/{p-22cf00e7.js → p-c7e948b2.js} +1 -1
  133. package/dist/ptcw-design/p-c9762c88.entry.js +1 -0
  134. package/dist/ptcw-design/{p-1b1fd60d.entry.js → p-cf41ac32.entry.js} +1 -1
  135. package/dist/ptcw-design/{p-b9966f20.entry.js → p-d3c11c68.entry.js} +1 -1
  136. package/dist/ptcw-design/p-d428ba40.entry.js +1 -0
  137. package/dist/ptcw-design/p-e00c5964.entry.js +1 -0
  138. package/dist/ptcw-design/p-e1373325.entry.js +1 -0
  139. package/dist/ptcw-design/{p-edaf241d.entry.js → p-e65cbdb9.entry.js} +1 -1
  140. package/dist/ptcw-design/p-ec22d0b8.entry.js +1 -0
  141. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  142. package/dist/types/components.d.ts +62 -62
  143. package/package.json +101 -101
  144. package/readme.md +23 -23
  145. package/dist/cjs/icon-asset_17.cjs.entry.js +0 -1660
  146. package/dist/cjs/ptc-search-field.cjs.entry.js +0 -95
  147. package/dist/esm/icon-asset_17.entry.js +0 -1640
  148. package/dist/esm/ptc-search-field.entry.js +0 -91
  149. package/dist/ptcw-design/p-045c468a.entry.js +0 -1
  150. package/dist/ptcw-design/p-1a47d0fe.entry.js +0 -1
  151. package/dist/ptcw-design/p-4e8c1ba6.entry.js +0 -1
  152. package/dist/ptcw-design/p-5aed43be.entry.js +0 -1
  153. package/dist/ptcw-design/p-8ffdd794.entry.js +0 -1
  154. package/dist/ptcw-design/p-af46854e.entry.js +0 -1
  155. package/dist/ptcw-design/p-da4b7e23.entry.js +0 -1
  156. package/dist/ptcw-design/p-e50a5a46.entry.js +0 -1
  157. package/dist/ptcw-design/p-e69a0445.entry.js +0 -1
  158. package/dist/ptcw-design/p-e9f834fa.entry.js +0 -1
  159. package/dist/ptcw-design/p-eabf87be.entry.js +0 -1
  160. package/dist/ptcw-design/p-fe445a4a.entry.js +0 -1
@@ -0,0 +1,57 @@
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-0bf594c4.js';
2
+
3
+ const ptcProductCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003dd6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.white-links a{color:var(--color-white) !important}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}.vjs-social-share-links a{color:var(--color-white)}.vjs-social-share-links a:hover{color:var(--color-white)}:host{display:block;background-color:var(--color-white);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:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-04) var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-04)}@media only screen and (min-width: 768px){:host .card-wrap .content{padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-03) 44px}}@media only screen and (min-width: 1200px){:host .card-wrap .content{display:flex;align-items:center;justify-content:space-between;width:100%}}:host .card-wrap .content .cta-wrap{margin-left:0;margin-top:24px;min-width:146px;text-align:left}@media only screen and (min-width: 1200px){:host .card-wrap .content .cta-wrap{margin-top:0px;margin-left:44px;text-align:right}}:host .toggle-btn{padding:16px;text-align:center;border-top:1px solid var(--color-gray-04);display:block;cursor:pointer}:host .toggle-btn:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .toggle-btn svg{margin-right:var(--ptc-element-spacing-03);vertical-align:middle;margin-top:-2px}:host .toggle-btn .toggleText::before{content:\"\";display:inline-block;width:18px;height:18px;background-image:url('data:image/svg+xml,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"18\" height=\"18\" rx=\"4\" fill=\"%2300890B\"/><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\"/></svg>');margin-right:12px;vertical-align:middle;margin-top:-2px}:host .product-highlights-container{padding:0px 20px 16px 20px;display:none}:host(.has-opened) .toggleText::before{background-image:url('data:image/svg+xml,<svg width=\"19\" height=\"18\" viewBox=\"0 0 19 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"0.632812\" width=\"17.9798\" height=\"18\" rx=\"4\" fill=\"%2300890B\"/><g clip-path=\"url(%23clip0_220_1413)\"><path d=\"M4.86328 7.98749V10.0125H14.382V7.98749H4.86328Z\" fill=\"white\"/></g><defs><clipPath id=\"clip0_220_1413\"><rect width=\"9.51872\" height=\"9.52941\" fill=\"white\" transform=\"translate(4.86328 4.23529)\"/></clipPath></defs></svg>')}:host(.has-opened) .product-highlights-container{display:block}::slotted(.cta-group){display:flex;flex-direction:row;gap:12px;flex-wrap:wrap;-moz-column-gap:16px;column-gap:16px}@media only screen and (min-width: 1200px){::slotted(.cta-group){flex-direction:column}}";
4
+
5
+ const PtcProductCard = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.cardImage = undefined;
9
+ this.cardImageAltText = undefined;
10
+ this.cardDescription = undefined;
11
+ this.cardCtaText = undefined;
12
+ this.toggleCtaTitle = undefined;
13
+ this.isOpen = false;
14
+ this.isSlotEmpty = undefined;
15
+ }
16
+ togglePanel() {
17
+ this.isOpen = !this.isOpen;
18
+ }
19
+ handleReadmoreToggle(event) {
20
+ const siblingCards = Array.from(this.hostElement.querySelectorAll(".ptc-product-highlight-card"));
21
+ siblingCards.forEach((card) => {
22
+ var _a, _b;
23
+ const readmoreComponent = card === null || card === void 0 ? void 0 : card.querySelector("ptc-readmore");
24
+ const rmText = (_a = readmoreComponent.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".read-more-text");
25
+ const isReadMore = rmText.scrollHeight > rmText.clientHeight;
26
+ const rmCheckbox = (_b = readmoreComponent.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("#expanded");
27
+ if (readmoreComponent &&
28
+ readmoreComponent !== event.detail.sender) {
29
+ // Update the sibling readmore component
30
+ rmCheckbox.checked = event.detail.isExpanded;
31
+ // Trigger the update programmatically
32
+ const cta = readmoreComponent.shadowRoot.querySelector(".read-more-cta-label");
33
+ if (cta) {
34
+ event.detail.isExpanded
35
+ ? (cta.innerHTML = `<span>${readmoreComponent.lessText || ""}</span>`)
36
+ : (cta.innerHTML = `<span>${readmoreComponent.moreText || ""}</span>`);
37
+ if (event.detail.isExpanded) {
38
+ if (isReadMore) {
39
+ cta.classList.add("show-less-cta");
40
+ }
41
+ }
42
+ else {
43
+ cta.classList.remove("show-less-cta");
44
+ }
45
+ }
46
+ rmText.classList[isReadMore ? "add" : "remove"]("truncated");
47
+ }
48
+ });
49
+ }
50
+ render() {
51
+ return (h(Host, null, h("div", { class: "card-wrap" }, this.cardImage && (h("ptc-picture", { alt: "image-test", src: this.cardImage, "display-image": "inline-block", width: "38" })), h("div", { class: "content" }, h("div", null, h("slot", { name: "title" }), h("ptc-spacer", { size: "x-small" }), h("ptc-spacer", { size: "xx-small", breakpoint: "x-small" }), h("div", null, h("slot", { name: "content" }))), h("div", { class: "cta-wrap" }, h("slot", { name: "cta" })))), this.toggleCtaTitle && (h("ptc-para", { class: "toggle-btn mf-listen", "font-size": "small", "para-margin": "margin-flush", "para-line-h": "line-height-p", "para-z-index": "z-auto", onClick: () => this.togglePanel(), tabIndex: 0 }, h("span", { class: "toggleText" }, this.toggleCtaTitle))), h("div", { class: "product-highlights-container" }, h("slot", null))));
52
+ }
53
+ get hostElement() { return getElement(this); }
54
+ };
55
+ PtcProductCard.style = ptcProductCardCss;
56
+
57
+ export { PtcProductCard as ptc_product_card };
@@ -0,0 +1,16 @@
1
+ import { r as registerInstance, h, H as Host } from './index-0bf594c4.js';
2
+
3
+ const ptcProductCategoryCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003dd6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.white-links a{color:var(--color-white) !important}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}.vjs-social-share-links a{color:var(--color-white)}.vjs-social-share-links a:hover{color:var(--color-white)}:host{display:block;padding-bottom:var(--ptc-layout-spacing-03)}:host .category-header{margin-bottom:var(--ptc-layout-spacing-03)}:host .tooltip-box{visibility:visible;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background-color:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:var(--ptc-border-radius-standard);width:auto;height:auto;text-align:left;text-shadow:none;white-space:normal;position:absolute;z-index:999;line-height:1.5}@media only screen and (min-width: 480px){:host .tooltip-box{width:273px}}:host .tooltip-box.hide-tooltip-mobile{display:none !important}@media only screen and (min-width: 768px){:host .tooltip-box.hide-tooltip-mobile{display:block !important}}:host .tooltip-box.full-width{width:100%}:host .tooltip-box::after{content:\"\";position:absolute}:host .tooltip-box.bottom{bottom:-12px;transform:translateY(100%)}:host .tooltip-box.bottom::after{top:1px;left:50%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}:host .tooltip-box.left{bottom:-12px;transform:translate(-80%, 100%)}:host .tooltip-box.left::after{top:1px;right:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}:host .tooltip-box.right{bottom:-12px;transform:translateY(100%);right:0px}@-moz-document url-prefix(){:host .tooltip-box.right{right:unset !important;bottom:unset !important;transform:translate(60%, 8px) !important}@media screen and (min-width: 992px){:host .tooltip-box.right{transform:translate(100%, 8px) !important}}}:host .tooltip-box.right::after{top:1px;left:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}:host .tooltip-box.top{top:-8px;transform:translateY(-100%)}:host .tooltip-box.top::after{left:50%;bottom:1px;transform:translate(-50%, 100%);border:8px solid transparent;border-top:8px solid var(--color-gray-09)}:host .tooltip-box.bottom-right{bottom:-12px;transform:translate(100%, 100%)}:host .tooltip-box.bottom-right::after{top:1px;left:10%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}:host .tooltip-box.danger{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)}:host .tooltip-box.danger a{color:var(--color-hyperlink)}@media (max-width: 768px){:host .hide-tooltip-on-mobile h1,:host .hide-tooltip-on-mobile h2,:host .hide-tooltip-on-mobile h3,:host .hide-tooltip-on-mobile h4,:host .hide-tooltip-on-mobile h5,:host .hide-tooltip-on-mobile h6{-webkit-line-clamp:initial !important}}";
4
+
5
+ const PtcProductCategory = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.categoryDescription = undefined;
9
+ }
10
+ render() {
11
+ return (h(Host, null, h("div", { class: "category-header" }, h("slot", { name: "title" }), h("ptc-spacer", { size: "x-small" }), h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), 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", "enable-tooltip": true, "max-lines": "9", "tooltip-z-index": "999", "tooltip-width": "full-width", "seo-compatibility-mode": true }, this.categoryDescription)), h("slot", null)));
12
+ }
13
+ };
14
+ PtcProductCategory.style = ptcProductCategoryCss;
15
+
16
+ export { PtcProductCategory as ptc_product_category };
@@ -0,0 +1,76 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bf594c4.js';
2
+
3
+ const ptcProductDropdownCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;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;min-height:34px;box-sizing:border-box}:host .dropdown .dropdown-toggle:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .dropdown .dropdown-toggle .dropdown-placeholder{font-size:14px;color:var(--color-gray-07)}:host .caret{display:inline-block;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;width:100%;box-sizing:border-box}: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}:host .checkbox-label input[type=checkbox]:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}";
4
+
5
+ const PtcProductDropdown = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.selectedValues = createEvent(this, "selectedValues", 7);
9
+ this.dropdownTouched = createEvent(this, "dropdownTouched", 7);
10
+ this.internalOptions = undefined;
11
+ this.newOptions = undefined;
12
+ this.selectedOptions = [];
13
+ this.placeholder = undefined;
14
+ this.isOpen = false;
15
+ }
16
+ parseOptions() {
17
+ let options = Array.from(this.hostElement.querySelectorAll("span"));
18
+ if (options) {
19
+ this.internalOptions = options.map((option) => {
20
+ return option.textContent;
21
+ });
22
+ }
23
+ }
24
+ toggleDropdown() {
25
+ this.isOpen = !this.isOpen;
26
+ this.dropdownTouched.emit({
27
+ sender: this,
28
+ isOpen: this.isOpen,
29
+ });
30
+ }
31
+ handleSearchResult(event) {
32
+ const { sender, searchTerm } = event.detail;
33
+ if (sender) {
34
+ if (searchTerm === "") {
35
+ this.selectedOptions = [];
36
+ this.isOpen = false;
37
+ }
38
+ }
39
+ }
40
+ handleinputChanged(event) {
41
+ const { sender } = event.detail;
42
+ if (sender) {
43
+ this.selectedOptions = [];
44
+ this.isOpen = false;
45
+ }
46
+ }
47
+ handleCheckboxChange(option) {
48
+ const index = this.selectedOptions.indexOf(option);
49
+ if (index > -1) {
50
+ this.selectedOptions.splice(index, 1);
51
+ this.selectedValues.emit({
52
+ sender: this,
53
+ selectedOptions: this.selectedOptions,
54
+ });
55
+ }
56
+ else {
57
+ this.selectedOptions.push(option);
58
+ this.selectedValues.emit({
59
+ sender: this,
60
+ selectedOptions: this.selectedOptions,
61
+ });
62
+ }
63
+ }
64
+ componentWillLoad() {
65
+ this.parseOptions();
66
+ }
67
+ render() {
68
+ return (h(Host, null, h("div", { class: "dropdown" }, h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown(), onKeyDown: (e) => {
69
+ e.key === "Enter" ? this.toggleDropdown() : null;
70
+ }, tabIndex: 0 }, h("span", { class: "dropdown-placeholder" }, this.placeholder), h("span", { class: "caret" }, h("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1.86537 0.917969L6.14614 4.56922L10.4269 0.917969L11.9769 2.23997L6.14614 7.21323L0.31543 2.23997L1.86537 0.917969Z", fill: "#323B42" })))), this.isOpen && (h("div", { class: "dropdown-menu" }, this.internalOptions.map((option) => (h("label", { class: "checkbox-label" }, h("input", { type: "checkbox", checked: this.selectedOptions.includes(option), onChange: () => this.handleCheckboxChange(option) }), option)))))), h("div", { class: "hidden" }, h("slot", null))));
71
+ }
72
+ get hostElement() { return getElement(this); }
73
+ };
74
+ PtcProductDropdown.style = ptcProductDropdownCss;
75
+
76
+ export { PtcProductDropdown as ptc_product_dropdown };
@@ -0,0 +1,24 @@
1
+ import { r as registerInstance, h, H as Host } from './index-0bf594c4.js';
2
+
3
+ const ptcProductHighlightCardCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003dd6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.white-links a{color:var(--color-white) !important}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}.vjs-social-share-links a{color:var(--color-white)}.vjs-social-share-links a:hover{color:var(--color-white)}: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;height:100%}:host ptc-picture{min-height:100px}:host ptc-para ptc-readmore .box input~label{margin-right:0px}:host ptc-para a{color:var(--color-hyperlink)}";
4
+
5
+ const PtcProductHighlightCard = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.cardTitle = undefined;
9
+ this.cardImage = undefined;
10
+ this.cardImageAltText = undefined;
11
+ this.moreText = "More";
12
+ this.lessText = "Less";
13
+ this.cardDescription = undefined;
14
+ this.browserFirefox = false;
15
+ this.currentLanguage = undefined;
16
+ }
17
+ render() {
18
+ return (h(Host, null, h("ptc-title", { type: "h4", upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "small", "text-align": "center" }, h("ptc-tooltip", { "text-display": "block", "text-lines": "2", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: "full-width" })), h("ptc-picture", { alt: this.cardImageAltText, src: this.cardImage, "image-alignment": "center", width: "69", "display-image": "inline-block", styles: "img{margin: 12px auto 18px auto}" }), 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" }, this.browserFirefox &&
19
+ this.currentLanguage.toLowerCase().includes("ja") ? (h("slot", null)) : (h("ptc-readmore", { "more-text": this.moreText, "less-text": this.lessText, "visible-lines-custom": "8", "read-more-position": "left" }, h("slot", null))))));
20
+ }
21
+ };
22
+ PtcProductHighlightCard.style = ptcProductHighlightCardCss;
23
+
24
+ export { PtcProductHighlightCard as ptc_product_highlight_card };
@@ -0,0 +1,168 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bf594c4.js';
2
+
3
+ const ptcProductListCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;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}";
4
+
5
+ const PtcProductList = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.clearCtaClicked = createEvent(this, "clearCtaClicked", 7);
9
+ this.emptyTitle = undefined;
10
+ this.emptySubTitle = undefined;
11
+ this.clearButtonLabel = undefined;
12
+ }
13
+ handleSearchResult(event) {
14
+ const { sender, searchTerm } = event.detail;
15
+ if (sender) {
16
+ this.sortCards(searchTerm);
17
+ }
18
+ }
19
+ handleMultipleSearchResult(event) {
20
+ const { sender, selectedOptions } = event.detail;
21
+ if (sender) {
22
+ this.sortMultipleCards(selectedOptions);
23
+ }
24
+ }
25
+ handleEmptyResult(event) {
26
+ const { sender, searchTerm } = event.detail;
27
+ if (sender) {
28
+ this.noresultSection.classList.add("show");
29
+ this.sortCards(searchTerm);
30
+ }
31
+ }
32
+ sortMultipleCards(searchItems) {
33
+ const categoryList = Array.from(this.hostElement.querySelectorAll("ptc-product-category"));
34
+ categoryList.forEach((category) => {
35
+ const categoryTitle = category.getAttribute("category-title");
36
+ const productList = Array.from(category.querySelectorAll("ptc-product-card"));
37
+ if (searchItems.length > 0) {
38
+ const shouldDisplayCategory = searchItems.some((searchItem) => categoryTitle && categoryTitle.includes(searchItem));
39
+ category.style.display = shouldDisplayCategory
40
+ ? "block"
41
+ : "none";
42
+ if (shouldDisplayCategory) {
43
+ productList.forEach((product) => {
44
+ product.style.display = "block";
45
+ });
46
+ }
47
+ else {
48
+ productList.forEach((product) => {
49
+ const productTitle = product.getAttribute("card-title");
50
+ const shouldDisplayProduct = searchItems.some((searchItem) => productTitle &&
51
+ productTitle.includes(searchItem));
52
+ product.style.display = shouldDisplayProduct
53
+ ? "block"
54
+ : "none";
55
+ });
56
+ }
57
+ }
58
+ else {
59
+ category.style.display = "block";
60
+ productList.forEach((product) => {
61
+ product.style.display = "block";
62
+ });
63
+ }
64
+ });
65
+ }
66
+ // Sorting the
67
+ sortCards(searchItem) {
68
+ const categoryList = this.hostElement.querySelectorAll("ptc-product-category");
69
+ categoryList.forEach((category) => {
70
+ const categoryTitle = category.getAttribute("category-title");
71
+ const productList = category.querySelectorAll("ptc-product-card");
72
+ category.style.display = "none";
73
+ if (searchItem === "") {
74
+ category.style.display = "block";
75
+ productList.forEach((product) => {
76
+ product.style.display = "block";
77
+ });
78
+ this.noresultSection.classList.remove("show");
79
+ }
80
+ else {
81
+ const searchItemLowerCase = searchItem; //
82
+ if (searchItemLowerCase === categoryTitle) {
83
+ category.style.display = "block";
84
+ productList.forEach((product) => {
85
+ product.style.display = "block";
86
+ });
87
+ }
88
+ else {
89
+ productList.forEach((product) => {
90
+ const productTitle = product.getAttribute("card-title");
91
+ product.style.display = "none";
92
+ if (searchItemLowerCase === productTitle) {
93
+ product.style.display = "block";
94
+ category.style.display = "block";
95
+ }
96
+ });
97
+ }
98
+ }
99
+ });
100
+ }
101
+ componentDidLoad() {
102
+ // ptcLogger.log('Component loaded!');
103
+ // ptcLogger.info('Component loaded!');
104
+ // ptcLogger.warn('Component loaded!');
105
+ // ptcLogger.error('Component loaded!');
106
+ this.addIds();
107
+ this.noresultSection = this.hostElement.shadowRoot.querySelector(".no-result-wrap");
108
+ this.productList = this.hostElement.shadowRoot.querySelector(".product-list");
109
+ const productCards = this.hostElement.querySelectorAll("ptc-product-category ptc-product-card");
110
+ productCards.forEach((card) => {
111
+ const toggleBtn = card.shadowRoot.querySelector(".toggle-btn");
112
+ if (toggleBtn) {
113
+ const handleToggle = () => {
114
+ if (card.classList.contains("has-opened")) {
115
+ card.classList.remove("has-opened");
116
+ }
117
+ else {
118
+ card.classList.add("has-opened");
119
+ }
120
+ this.hideAllCards(card);
121
+ };
122
+ toggleBtn.addEventListener("click", handleToggle);
123
+ toggleBtn.addEventListener("keydown", (event) => {
124
+ if (event.key === "Enter") {
125
+ handleToggle();
126
+ }
127
+ });
128
+ }
129
+ });
130
+ }
131
+ hideAllCards(selectedCard) {
132
+ const productCards = this.hostElement.querySelectorAll("ptc-product-category ptc-product-card");
133
+ productCards.forEach((card) => {
134
+ if (selectedCard != card) {
135
+ card.classList.remove("has-opened");
136
+ }
137
+ });
138
+ }
139
+ handleClick(event) {
140
+ this.clearCtaClicked.emit({
141
+ sender: this,
142
+ event: event,
143
+ });
144
+ }
145
+ // Adding id to the category and product cards
146
+ addIds() {
147
+ const categoryList = this.hostElement.querySelectorAll("ptc-product-category");
148
+ categoryList.forEach((category) => {
149
+ const categoryTitle = category.getAttribute("category-title");
150
+ category.setAttribute("id", categoryTitle);
151
+ const productList = category.querySelectorAll("ptc-product-card");
152
+ productList.forEach((product) => {
153
+ const productTitle = product.getAttribute("card-title");
154
+ product.setAttribute("id", productTitle);
155
+ });
156
+ });
157
+ }
158
+ render() {
159
+ return (h(Host, null, h("div", { class: "product-list" }, h("slot", null)), h("div", { class: "no-result-wrap" }, h("div", { class: "no-result" }, h("div", null, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "large" }, this.emptyTitle || "No Results Found"), h("ptc-para", { "font-size": "x-small" }, this.emptySubTitle ||
160
+ "Try changing or removing some of your filters"), h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => {
161
+ this.handleClick(e);
162
+ } }, this.clearButtonLabel || "Clear Filters"))))));
163
+ }
164
+ get hostElement() { return getElement(this); }
165
+ };
166
+ PtcProductList.style = ptcProductListCss;
167
+
168
+ export { PtcProductList as ptc_product_list };
@@ -0,0 +1,174 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bf594c4.js';
2
+
3
+ const ptcProductSidebarCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;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: 768px){: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-xx-small);font-weight:600}@media only screen and (min-width: 992px){:host .filter-result-wrap label{font-size:var(--ptc-font-size-x-small)}}: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:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}: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: 768px){: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 .input-wrap input:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}: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:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}: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}";
4
+
5
+ const PtcProductSidebar = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.selectedResult = createEvent(this, "selectedResult", 7);
9
+ this.clearsearch = createEvent(this, "clearsearch", 7);
10
+ this.inputChanged = createEvent(this, "inputChanged", 7);
11
+ this.emptyResult = createEvent(this, "emptyResult", 7);
12
+ this.searchTerm = "";
13
+ this.suggestions = [];
14
+ this.filterResults = "Filter Results";
15
+ this.filterText = "Filter";
16
+ this.clearText = "Clear";
17
+ this.technologyText = "Technology";
18
+ this.jumpToProduct = "Jump to Product";
19
+ this.selectTechnology = "Select a technology";
20
+ this.suggestionList = [];
21
+ }
22
+ componentWillLoad() {
23
+ this.getDomData();
24
+ }
25
+ componentDidLoad() {
26
+ this.productListWrap = this.hostElement.shadowRoot.querySelector(".product-list-wrap");
27
+ this.clearBtn = this.hostElement.shadowRoot.querySelector(".clear-cta");
28
+ this.inputBox = this.hostElement.shadowRoot.querySelector("#searchBox");
29
+ }
30
+ // Getting category title and products list
31
+ getDomData() {
32
+ const categoryList = document.querySelectorAll("ptc-product-category");
33
+ categoryList.forEach((category) => {
34
+ let categoryTitle = category.getAttribute("category-title");
35
+ let categoryObject = { categoryName: categoryTitle, products: [] };
36
+ this.suggestionList.push(categoryObject);
37
+ let productList = category.querySelectorAll("ptc-product-card");
38
+ productList.forEach((product) => {
39
+ let productTitle = product.getAttribute("card-title");
40
+ categoryObject.products.push(productTitle);
41
+ });
42
+ });
43
+ }
44
+ handleInputChange(event) {
45
+ const inputElement = event.target;
46
+ this.searchTerm = inputElement.value.toLocaleLowerCase();
47
+ this.clearBtn.classList.add("show");
48
+ this.getSuggestions();
49
+ this.inputChanged.emit({
50
+ sender: this,
51
+ event: event,
52
+ });
53
+ }
54
+ getSuggestions() {
55
+ const searchTerm = this.searchTerm.toLowerCase();
56
+ const suggestions = this.suggestionList.reduce((acc, item) => {
57
+ if (item.categoryName.toLowerCase().includes(searchTerm)) {
58
+ acc.push(item.categoryName); // Include the category if it matches the search term
59
+ }
60
+ const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
61
+ if (matchedProducts.length > 0) {
62
+ acc.push(...matchedProducts); // Include the matching products
63
+ }
64
+ return acc;
65
+ }, []);
66
+ this.suggestions = suggestions;
67
+ }
68
+ handleSelectSuggestion(suggestion, event) {
69
+ this.searchTerm = suggestion;
70
+ this.productListWrap.classList.add("hide");
71
+ this.selectedResult.emit({
72
+ sender: this,
73
+ event: event,
74
+ searchTerm: this.searchTerm,
75
+ });
76
+ }
77
+ handleKeyUp(e) {
78
+ const inputElement = e.target;
79
+ this.searchTerm = inputElement.value.toLocaleLowerCase();
80
+ if (e.keyCode === 13 && this.suggestions.length == 0) {
81
+ this.emptyResult.emit({
82
+ sender: this,
83
+ event: e,
84
+ });
85
+ }
86
+ else if (e.key === "Escape") {
87
+ this.clearSearch(e);
88
+ this.inputBox.focus();
89
+ }
90
+ }
91
+ handleKeyDownClearCta(e) {
92
+ if (e.key === "Enter") {
93
+ this.clearSearch(e);
94
+ }
95
+ }
96
+ clearSearch(event) {
97
+ let input = this.hostElement.shadowRoot.querySelector("input");
98
+ this.productListWrap.classList.remove("hide");
99
+ this.clearBtn.classList.remove("show");
100
+ if (input) {
101
+ input.value = "";
102
+ }
103
+ this.suggestions = [];
104
+ this.clearsearch.emit({
105
+ sender: this,
106
+ event: event,
107
+ searchTerm: input.value,
108
+ });
109
+ }
110
+ handleDropdownTouched(event) {
111
+ const { sender, isOpen } = event.detail;
112
+ if (sender) {
113
+ if (isOpen) {
114
+ let input = this.hostElement.shadowRoot.querySelector("input");
115
+ if (input) {
116
+ input.value = "";
117
+ }
118
+ }
119
+ }
120
+ }
121
+ handleClick() {
122
+ this.suggestions = [];
123
+ }
124
+ handleclearCtaClicked(eve) {
125
+ const { sender, event } = eve.detail;
126
+ if (sender) {
127
+ this.clearSearch(event);
128
+ }
129
+ }
130
+ handleSelectedValues(event) {
131
+ const { sender, selectedOptions } = event.detail;
132
+ if (sender) {
133
+ if (selectedOptions.length > 0) {
134
+ this.clearBtn.classList.add("show");
135
+ this.productListWrap.classList.add("hide");
136
+ }
137
+ else {
138
+ this.clearBtn.classList.remove("show");
139
+ this.productListWrap.classList.remove("hide");
140
+ }
141
+ }
142
+ }
143
+ handleSuggestionKeyDown(e, index, suggestion) {
144
+ var _a;
145
+ const listItems = (_a = e.currentTarget.parentElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll("li");
146
+ if (!listItems)
147
+ return;
148
+ if (e.key === "Enter") {
149
+ this.handleSelectSuggestion(suggestion, e);
150
+ this.suggestions = [];
151
+ }
152
+ else if (e.key === "Tab") {
153
+ e.preventDefault();
154
+ const isShift = e.shiftKey;
155
+ const nextIndex = isShift
156
+ ? (index - 1 + listItems.length) % listItems.length
157
+ : (index + 1) % listItems.length;
158
+ listItems[nextIndex].focus();
159
+ }
160
+ else if (e.key === "Escape") {
161
+ this.clearSearch(e);
162
+ this.inputBox.focus();
163
+ }
164
+ }
165
+ render() {
166
+ return (h(Host, { class: "search-box" }, h("div", { class: "filter-result-wrap white-box" }, h("div", { class: "result-header" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.filterResults), h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e), tabIndex: 0, onKeyDown: (e) => {
167
+ this.handleKeyDownClearCta(e);
168
+ } }, this.clearText)), h("div", { class: "sort-wrap" }, h("div", { class: "typeahead-input" }, h("label", { htmlFor: "searchBox" }, this.filterText), h("div", { class: "input-wrap" }, h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: "searchBox" })), this.suggestions.length > 0 && (h("div", { class: "suggestion-wrap" }, h("ul", { class: "suggestions" }, this.suggestions.map((suggestion, index) => (h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e), tabIndex: 0, onKeyDown: (e) => this.handleSuggestionKeyDown(e, index, suggestion) }, suggestion))))))), h("div", { class: "dropdwon-filter" }, h("label", { htmlFor: "tech-dropdown" }, this.technologyText), h("ptc-product-dropdown", { placeholder: this.selectTechnology, id: "tech-dropdown" }, this.suggestionList.map((item) => (h("span", null, item.categoryName))))))), h("ptc-spacer", { size: "large" }), h("ptc-spacer", { size: "large" }), h("div", { class: "product-list-wrap white-box" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.jumpToProduct), this.suggestionList.map((item) => (h("div", { class: "category-list" }, h("ptc-para", { "font-size": "x-small", "font-weight": "w-7", "para-line-h": "line-height-densest", "para-margin": "margin-flush" }, h("list-item", { "list-type": "list-underline", "link-href": "#" + item.categoryName }, h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), h("div", { class: "product-list" }, h("ul", null, item.products.map((product) => (h("list-item", { "list-type": "list-underline", "link-href": "#" + product }, product)))))))))));
169
+ }
170
+ get hostElement() { return getElement(this); }
171
+ };
172
+ PtcProductSidebar.style = ptcProductSidebarCss;
173
+
174
+ export { PtcProductSidebar as ptc_product_sidebar };